/tmp/vendor.js:(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[121],{6675(module,__unused_webpack_exports,__webpack_require__){var Buffer=__webpack_require__(8287).hp,t;t=(__WEBPACK_EXTERNAL_MODULE__155__,__WEBPACK_EXTERNAL_MODULE__514__)=>(()=>{var __webpack_modules__={777(e,t,n){"use strict";function r(e){return null==e||""===e?null:e}function o(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function i(e){return!o(e)}function a(e){return null==e||0===e.length}function s(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 c(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"==typeof e?e:/true/i.test(e))}function u(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach(function(e){return t.push(e)}),t}return Object.values(e)}n.r(t),n.d(t,{AbstractHeaderCellCtrl:()=>jc,AgAbstractField:()=>Po,AgAbstractLabel:()=>xo,AgCheckbox:()=>Ho,AgDialog:()=>rp,AgGroupComponent:()=>kd,AgInputNumberField:()=>pi,AgInputRange:()=>Pd,AgInputTextArea:()=>xd,AgInputTextField:()=>ui,AgMenuItemComponent:()=>Xd,AgMenuList:()=>$d,AgMenuPanel:()=>Qd,AgPanel:()=>ep,AgPickerField:()=>Ro,AgPromise:()=>$r,AgPromiseStatus:()=>Ur,AgRadioButton:()=>Wo,AgSelect:()=>Bo,AgSlider:()=>Rd,AgStackComponentsRegistry:()=>Pt,AgToggleButton:()=>Sd,AlignedGridsService:()=>xp,AllCommunityModules:()=>Yg,AnimateShowChangeCellRenderer:()=>Ji,AnimateSlideCellRenderer:()=>ta,AnimationFrameService:()=>zu,AutoScrollService:()=>Ts,AutoWidthCalculator:()=>Qu,Autowired:()=>$,BarColumnLabelPlacement:()=>Rf,BaseComponentWrapper:()=>Hf,BaseCreator:()=>Fg,BaseGridSerializingSession:()=>kg,Bean:()=>z,BeanStub:()=>Le,Beans:()=>el,BodyDropPivotTarget:()=>yc,BodyDropTarget:()=>Cc,CHART_TOOLBAR_ALLOW_LIST:()=>zf,CHART_TOOL_PANEL_ALLOW_LIST:()=>Wf,CHART_TOOL_PANEL_MENU_OPTIONS:()=>$f,CellComp:()=>uc,CellCtrl:()=>ul,CellNavigationService:()=>Ep,CellPositionUtils:()=>zh,CellRangeType:()=>Us,ChangedPath:()=>pd,CheckboxSelectionComponent:()=>sa,ClientSideRowModelModule:()=>Cg,ClientSideRowModelSteps:()=>ss,ColDefUtil:()=>Ue,Column:()=>ae,ColumnApi:()=>Ip,ColumnFactory:()=>je,ColumnGroup:()=>ot,ColumnKeyCreator:()=>p,ColumnModel:()=>Ct,ColumnUtils:()=>St,Component:()=>no,ComponentUtil:()=>Ke,Context:()=>V,CssClassApplier:()=>Sc,CssClassManager:()=>Zr,CsvCreator:()=>Vg,CsvExportModule:()=>zg,CtrlsService:()=>pf,CustomTooltipFeature:()=>Xr,DEFAULT_CHART_GROUPS:()=>Gf,DateFilter:()=>ti,DisplayedGroupCreator:()=>xt,Downloader:()=>Lg,DragAndDropService:()=>pa,DragService:()=>us,DragSourceType:()=>mi,Environment:()=>Dh,EventService:()=>ee,Events:()=>Ve,ExcelFactoryMode:()=>da,ExpressionService:()=>jp,FilterManager:()=>ys,FloatingFilterMapper:()=>ns,FocusService:()=>lp,GROUP_AUTO_COLUMN_ID:()=>lt,Grid:()=>Uf,GridApi:()=>fs,GridBodyComp:()=>Yl,GridBodyCtrl:()=>Gs,GridComp:()=>Xp,GridCoreCreator:()=>Vf,GridCtrl:()=>Qp,GridHeaderComp:()=>Pu,GridHeaderCtrl:()=>xu,GridOptionsService:()=>If,GridSerializer:()=>Wg,GroupCellRenderer:()=>Sa,GroupCellRendererCtrl:()=>_a,GroupInstanceIdCreator:()=>it,HeaderCellCtrl:()=>nu,HeaderFilterCellComp:()=>Cs,HeaderFilterCellCtrl:()=>Kc,HeaderGroupCellCtrl:()=>uu,HeaderNavigationDirection:()=>Fc,HeaderNavigationService:()=>Eu,HeaderPositionUtils:()=>rf,HeaderRowComp:()=>kc,HeaderRowContainerComp:()=>bu,HeaderRowContainerCtrl:()=>yu,HeaderRowCtrl:()=>fu,HeaderRowType:()=>Hl,HorizontalDirection:()=>yi,HorizontalResizeService:()=>Ru,InfiniteRowModelModule:()=>Ig,KeyCode:()=>Pr,LargeTextCellEditor:()=>$i,LayoutCssClasses:()=>hs,LocaleService:()=>kf,Logger:()=>zp,LoggerFactory:()=>Wp,ManagedFocusFeature:()=>vo,ModuleNames:()=>X,ModuleRegistry:()=>te,MouseEventService:()=>nc,MoveColumnFeature:()=>wc,NavigationService:()=>ac,NumberFilter:()=>Ai,NumberSequence:()=>Wr,Optional:()=>K,PaginationProxy:()=>wd,PinnedRowModel:()=>ud,PopupComponent:()=>Wi,PopupEditorWrapper:()=>lc,PopupService:()=>fp,PositionableFeature:()=>_o,PostConstruct:()=>G,PreConstruct:()=>H,PreDestroy:()=>W,PropertyKeys:()=>We,ProvidedColumnGroup:()=>se,ProvidedFilter:()=>So,Qualifier:()=>q,QuerySelector:()=>ro,RefSelector:()=>oo,ResizeObserverService:()=>Hu,RowAnimationCssClasses:()=>Ss,RowContainerComp:()=>mc,RowContainerCtrl:()=>$l,RowContainerName:()=>hl,RowContainerType:()=>fl,RowCtrl:()=>ml,RowHighlightPosition:()=>as,RowNode:()=>ra,RowNodeBlock:()=>fd,RowNodeBlockLoader:()=>vd,RowNodeSorter:()=>uf,RowPositionUtils:()=>Gh,RowRenderer:()=>rd,RowType:()=>rg,ScalarFilter:()=>Yo,ScrollVisibleService:()=>Jl,SelectCellEditor:()=>qi,SelectableService:()=>Fh,SelectionHandleType:()=>js,ServerSideTransactionResultStatus:()=>Uu,SetLeftFeature:()=>Vc,SimpleFilter:()=>Qo,SortController:()=>nh,SortIndicatorComp:()=>Li,StandardMenuFactory:()=>ku,StylingService:()=>Cd,TabGuardClassNames:()=>dd,TabGuardComp:()=>Hd,TabGuardCtrl:()=>jd,TabbedLayout:()=>Nu,TemplateService:()=>Vp,TextCellEditor:()=>Xi,TextFilter:()=>Ci,TextFloatingFilter:()=>Ri,Timer:()=>Kr,TouchListener:()=>Ii,UserComponentFactory:()=>is,UserComponentRegistry:()=>Na,ValueCache:()=>hh,ValueFormatterService:()=>sd,ValueService:()=>Lp,VanillaFrameworkOverrides:()=>wp,VerticalDirection:()=>vi,VirtualList:()=>vp,XmlFactory:()=>Kg,ZipContainer:()=>qg,_:()=>Gr,__FORCE_MODULE_DETECTION:()=>Kf,getRowContainerTypeForName:()=>Vl,simpleHttpRequest:()=>ju});var d=Object.freeze({__proto__:null,makeNull:r,exists:o,missing:i,missingOrEmpty:a,toStringOrNull:s,attrToNumber:l,attrToBoolean:c,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:function(e,t,n){void 0===n&&(n=!1);var r=null==e,o=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&o)return 0;if(r)return-1;if(o)return 1;function i(e,t){return e>t?1:e<t?-1:0}if("string"!=typeof e)return i(e,t);if(!n)return i(e,t);try{return e.localeCompare(t)}catch(n){return i(e,t)}},values:u}),p=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=s(e);for(var n=0;;){var r=void 0;if(e?(r=e,0!==n&&(r+="_"+n)):t?(r=t,0!==n&&(r+="_"+n)):r=""+n,!this.existingKeys[r])return this.existingKeys[r]=!0,r;n++}},e}();function h(e,t){null!=e&&(Array.isArray(e)?e.forEach(function(e,n){return t(""+n,e)}):Object.keys(e).forEach(function(n){return t(n,e[n])}))}function f(e){for(var t={},n=Object.keys(e),r=0;r<n.length;r++){var o=n[r],i=e[o];t[o]=i}return t}function g(e,t){if(e){var n=e,r={};return Object.keys(n).forEach(function(e){if(!(t&&t.indexOf(e)>=0)){var o=n[e],i=E(o)&&o.constructor===Object;r[e]=i?g(o):o}}),r}}function m(e,t){return e[t]}function v(e,t,n){e[t]=n}function y(e,t,n,r){var o=m(e,n);void 0!==o&&v(t,n,r?r(o):o)}function A(e){var t={};return e.filter(function(e){return null!=e}).forEach(function(e){Object.keys(e).forEach(function(e){return t[e]=null})}),Object.keys(t)}function w(e){if(!e)return[];var t=Object;if("function"==typeof t.values)return t.values(e);var n=[];for(var r in e)e.hasOwnProperty(r)&&e.propertyIsEnumerable(r)&&n.push(e[r]);return n}function b(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1),o(t)&&h(t,function(t,o){var i=e[t];i!==o&&(r&&null==i&&null!=o&&"object"==typeof o&&o.constructor===Object&&(i={},e[t]=i),E(o)&&E(i)&&!Array.isArray(i)?b(i,o,n,r):(n||void 0!==o)&&(e[t]=o))})}function _(e,t,n){if(t&&e){if(!n)return e[t];for(var r=t.split("."),o=e,i=0;i<r.length;i++){if(null==o)return;o=o[r[i]]}return o}}function C(e,t){Object.keys(e).forEach(function(t){"object"==typeof e[t]&&(e[t]=void 0)});var n=Object.getPrototypeOf(e),r={};Object.keys(n).forEach(function(e){"function"==typeof n[e]&&(r[e]={value:function(){console.warn("AG Grid: "+t+" function "+e+"() cannot be called as the grid has been destroyed.\n                     Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n                     be keeping the API reference, your application has a memory leak! Remove the API reference\n                     when the grid is destroyed.")},writable:!0})}),Object.defineProperties(e,r)}function E(e){return"object"==typeof e&&null!==e}var S=Object.freeze({__proto__:null,iterateObject:h,cloneObject:f,deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},deepCloneDefinition:g,getProperty:m,setProperty:v,copyPropertiesIfPresent:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];n.forEach(function(n){return y(e,t,n)})},copyPropertyIfPresent:y,getAllKeysInObjects:A,getAllValuesInObject:w,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 r=t.split("."),o=e;r.length>1;)if(null==(o=o[r.shift()]))return n;var i=o[r[0]];return null!=i?i:n},set:function(e,t,n){if(null!=e){var r=t.split("."),o=e;r.forEach(function(e,t){o[e]||(o[e]={}),t<r.length-1&&(o=o[e])}),o[r[r.length-1]]=n}},getValueUsingField:_,removeAllReferences:C,isNonNullObject:E}),O={};function x(e,t){O[t]||(e(),O[t]=!0)}function D(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function P(e){return!!(e&&e.constructor&&e.call&&e.apply)}function M(e){F(e,400)}var T=[],R=!1;function I(e){T.push(e),R||(R=!0,window.setTimeout(function(){var e=T.slice();T.length=0,R=!1,e.forEach(function(e){return e()})},0))}function F(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout(function(){return e.forEach(function(e){return e()})},t)}function k(e,t){var n;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this;window.clearTimeout(n),n=window.setTimeout(function(){e.apply(i,r)},t)}}function L(e,t){var n=0;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=(new Date).getTime();i-n<t||(n=i,e.apply(this,r))}}function B(e,t,n,r){void 0===n&&(n=100);var o=(new Date).getTime(),i=null,a=!1,s=function(){var s=(new Date).getTime()-o>n;(e()||s)&&(t(),a=!0,null!=i&&(window.clearInterval(i),i=null),s&&r&&console.warn(r))};s(),a||(i=window.setInterval(s,10))}function N(e){e&&e()}var j=Object.freeze({__proto__:null,doOnce:x,getFunctionName:D,isFunction:P,executeInAWhile:M,executeNextVMTurn:I,executeAfter:F,debounce:k,throttle:L,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:N,noop:function(){}}),U=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},V=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 u(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"),o(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),h(this.beanWrappers,function(t,n){var r;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(r=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var o=e.getBeansForParameters(r,n.bean.name),i=new(n.bean.bind.apply(n.bean,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(U(arguments[t]));return e}([null],o)));n.beanInstance=i});var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t,n=e.__agBeanMetaData;if(!n)return t=e.prototype.constructor?D(e.prototype.constructor):""+e,void console.error("Context item "+t+" is not a bean");var r={bean:e,beanInstance:null,beanName:n.beanName};this.beanWrappers[n.beanName]=r},e.prototype.autoWireBeans=function(e){var t=this;e.forEach(function(e){t.forEachMetaDataInHierarchy(e,function(n,r){var o=n.agClassAttributes;o&&o.forEach(function(n){var o=t.lookupBeanInstance(r,n.beanName,n.optional);e[n.attributeName]=o})})})},e.prototype.methodWireBeans=function(e){var t=this;e.forEach(function(e){t.forEachMetaDataInHierarchy(e,function(n,r){h(n.autowireMethods,function(n,o){if("agConstructor"!==n){var i=t.getBeansForParameters(o,r);e[n].apply(e,i)}})})})},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var n=Object.getPrototypeOf(e);null!=n;){var r=n.constructor;r.hasOwnProperty("__agBeanMetaData")&&t(r.__agBeanMetaData,this.getBeanName(r)),n=Object.getPrototypeOf(n)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var n=this,r=[];return e&&h(e,function(e,o){var i=n.lookupBeanInstance(t,o);r[Number(e)]=i}),r},e.prototype.lookupBeanInstance=function(e,t,n){if(void 0===n&&(n=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var r=this.beanWrappers[t];return r?r.beanInstance:(n||console.error("AG Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var n=this;e.forEach(function(e){return n.callLifeCycleMethodsOnBean(e,t)})},e.prototype.callLifeCycleMethodsOnBean=function(e,t,n){var r={};this.forEachMetaDataInHierarchy(e,function(e){var o=e[t];o&&o.forEach(function(e){e!=n&&(r[e]=!0)})}),Object.keys(r).forEach(function(t){return e[t]()})},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach(function(e){t.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var n=e;"function"==typeof n.destroy&&n.destroy()}),[]):[]},e}();function H(e,t,n){var r=Y(e.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function G(e,t,n){var r=Y(e.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function W(e,t,n){var r=Y(e.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function z(e){return function(t){Y(t).beanName=e}}function $(e){return function(t,n,r){Q(t,e,!1,0,n,null)}}function K(e){return function(t,n,r){Q(t,e,!0,0,n,null)}}function Q(e,t,n,r,o,i){if(null!==t)if("number"!=typeof i){var a=Y(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:o,beanName:t,optional:n})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function q(e){return function(t,n,r){var o,i="function"==typeof t?t:t.constructor;if("number"==typeof r){var a=void 0;n?(o=Y(i),a=n):(o=Y(i),a="agConstructor"),o.autowireMethods||(o.autowireMethods={}),o.autowireMethods[a]||(o.autowireMethods[a]={}),o.autowireMethods[a][r]=e}}}function Y(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var X,Z=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},J=function(e,t){return function(n,r){t(n,r,e)}},ee=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,t,n,r){if(void 0===r&&(r=null),this.frameworkOverrides=n,this.gridOptionsService=t,r){var o=t.useAsyncEvents();this.addGlobalListener(r,o)}},e.prototype.getListeners=function(e,t,n){var r=t?this.allAsyncListeners:this.allSyncListeners,o=r.get(e);return!o&&n&&(o=new Set,r.set(e,o)),o},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n,!0).add(t)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1);var r=this.getListeners(e,n,!1);r&&(r.delete(t),0===r.size&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){var t=e;if(this.gridOptionsService){var n=this.gridOptionsService,r=n.api,o=n.columnApi,i=n.context;t.api=r,t.columnApi=o,t.context=i}this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,t){var n=this,r=e.type;if(t&&"event"in e){var o=e.event;o instanceof Event&&(e.eventPath=o.composedPath())}var i=this.getListeners(r,t,!1);i&&function(r){r.forEach(function(r){t?n.dispatchAsync(function(){return r(e)}):r(e)})}(i),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(function(o){t?n.dispatchAsync(function(){return n.frameworkOverrides.dispatchEvent(r,function(){return o(r,e)},!0)}):n.frameworkOverrides.dispatchEvent(r,function(){return o(r,e)},!0)})},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(function(e){return e()})},Z([J(0,q("loggerFactory")),J(1,q("gridOptionsService")),J(2,q("frameworkOverrides")),J(3,q("globalEventListener"))],e.prototype,"setBeans",null),Z([z("eventService")],e)}();!function(e){e.CommunityCoreModule="@ag-grid-community/core",e.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",e.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",e.CsvExportModule="@ag-grid-community/csv-export",e.EnterpriseCoreModule="@ag-grid-enterprise/core",e.RowGroupingModule="@ag-grid-enterprise/row-grouping",e.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",e.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",e.MenuModule="@ag-grid-enterprise/menu",e.SetFilterModule="@ag-grid-enterprise/set-filter",e.MultiFilterModule="@ag-grid-enterprise/multi-filter",e.StatusBarModule="@ag-grid-enterprise/status-bar",e.SideBarModule="@ag-grid-enterprise/side-bar",e.RangeSelectionModule="@ag-grid-enterprise/range-selection",e.MasterDetailModule="@ag-grid-enterprise/master-detail",e.RichSelectModule="@ag-grid-enterprise/rich-select",e.GridChartsModule="@ag-grid-enterprise/charts",e.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",e.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",e.ExcelExportModule="@ag-grid-enterprise/excel-export",e.ClipboardModule="@ag-grid-enterprise/clipboard",e.SparklinesModule="@ag-grid-enterprise/sparklines",e.AngularModule="@ag-grid-community/angular",e.ReactModule="@ag-grid-community/react",e.VueModule="@ag-grid-community/vue"}(X||(X={}));var te=function(){function e(){}return e.register=function(t,n){void 0===n&&(n=!0),e.runVersionChecks(t),e.modulesMap[t.moduleName]=t,e.setModuleBased(n)},e.runVersionChecks=function(t){if(e.currentModuleVersion||(e.currentModuleVersion=t.version),t.version?t.version!==e.currentModuleVersion&&console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+t.moduleName+"' is version "+t.version+" but the other modules are version "+this.currentModuleVersion+". Please update all modules to the same version."):console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+t.moduleName+"' is incompatible. Please update all modules to the same version."),t.validate){var n=t.validate();if(!n.isValid){var r=n;console.error("AG Grid: "+r.message)}}},e.setModuleBased=function(t){void 0===e.moduleBased?e.moduleBased=t:e.moduleBased!==t&&x(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.setIsBundled=function(){e.isBundled=!0},e.registerModules=function(t,n){void 0===n&&(n=!0),e.setModuleBased(n),t&&t.forEach(function(t){return e.register(t,n)})},e.assertRegistered=function(t,n){var r;if(this.isRegistered(t))return!0;var o,i=n+t;if(e.isBundled)o="AG Grid: unable to use "+n+" as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:\n        \n        <script src=\"https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js\"><\/script>\n        \nFor more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise";else if(e.moduleBased||void 0===e.moduleBased){var a=null===(r=Object.entries(X).find(function(e){var n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2);return n[0],n[1]===t}))||void 0===r?void 0:r[0];o="AG Grid: unable to use "+n+" as the "+a+" is not registered. Check if you have registered the module:\n           \n    import { ModuleRegistry } from '@ag-grid-community/core';\n    import { "+a+" } from '"+t+"';\n    \n    ModuleRegistry.registerModules([ "+a+" ]);\n\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/"}else o="AG Grid: unable to use "+n+" as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:\n            \n    import 'ag-grid-enterprise';\n            \nFor more info see: https://www.ag-grid.com/javascript-grid/packages/";return x(function(){console.warn(o)},i),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return u(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),ne=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},re=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},oe=0;function ie(){return oe++}var ae=function(){function e(e,t,n,r){this.instanceId=ie(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new ee,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=r,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?"asc"!==e.sort&&"desc"!==e.sort||(this.sort=e.sort):"asc"!==e.initialSort&&"desc"!==e.initialSort||(this.sort=e.initialSort);var t=l(e.sortIndex),n=l(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==n&&(this.sortIndex=n);var r=c(e.hide),o=c(e.initialHide);this.visible=void 0!==r?!r:!o,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var i=l(e.flex),a=l(e.initialFlex);void 0!==i?this.flex=i:void 0!==a&&(this.flex=a)},e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged","api"))},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.initTooltip(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsService.is("suppressFieldDotNotation");this.fieldContainsDots=o(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=o(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.initTooltip=function(){this.tooltipEnabled=o(this.colDef.tooltipField)||o(this.colDef.tooltipValueGetter)||o(this.colDef.tooltipComponent)||o(this.colDef.tooltipComponentFramework)},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.isTooltipEnabled=function(){return this.tooltipEnabled},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function t(e,t,n){x(function(){n?console.warn(e,n):x(function(){return console.warn(e)},t)},t)}if(this.gridOptionsService.isRowModelType("clientSide")&&!te.isRegistered(X.RowGroupingModule)&&(n=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].filter(function(t){return o(e[t])})).length>0&&te.assertRegistered(X.RowGroupingModule,n.map(function(e){return"colDef."+e}).join(", ")),"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||te.assertRegistered(X.RichSelectModule,this.colDef.cellEditor),this.gridOptionsService.isTreeData()&&(n=["rowGroup","rowGroupIndex","pivot","pivotIndex"].filter(function(t){return o(e[t])})).length>0&&t("AG Grid: "+n.join()+" is not possible when doing tree data, your column definition should not have "+n.join(),"TreeDataCannotRowGroup"),o(e.menuTabs))if(Array.isArray(e.menuTabs)){var n,r=["filterMenuTab"],i=["columnsMenuTab","generalMenuTab"];(n=i.filter(function(t){return e.menuTabs.includes(t)})).length>0&&te.assertRegistered(X.MenuModule,"menuTab(s): "+n.map(function(e){return"'"+e+"'"}).join()),e.menuTabs.forEach(function(e){i.includes(e)||r.includes(e)||t("AG Grid: '"+e+"' is not valid for 'colDef.menuTabs'. Valid values are: "+function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(re(arguments[t]));return e}(r,i).map(function(e){return"'"+e+"'"}).join()+".","wrongValue_menuTabs_"+e)})}else t("AG Grid: The typeof 'colDef.menuTabs' should be an array not:"+typeof e.menuTabs,"wrongType_menuTabs");o(e.columnsMenuParams)&&te.assertRegistered(X.MenuModule,"columnsMenuParams"),o(e.columnsMenuParams)&&te.assertRegistered(X.ColumnsToolPanelModule,"columnsMenuParams"),o(this.colDef.width)&&"number"!=typeof this.colDef.width&&t("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck"),(e.pinnedRowCellRenderer||e.pinnedRowCellRendererParams||e.pinnedRowCellRendererFramework)&&t("AG Grid: pinnedRowCellRenderer[Params,Framework] no longer exist. Use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned.","colDef.pinnedRowCellRenderer-deprecated"),o(e.columnGroupShow)&&"closed"!==e.columnGroupShow&&"open"!==e.columnGroupShow&&t("AG Grid: '"+e.columnGroupShow+"' is not valid for columnGroupShow. Valid values are 'open', 'closed', undefined, null","columnGroupShow_invalid")},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.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi}},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.gridOptionsService.is("enableGroupEdit"))&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!c(this.colDef.suppressFillHandle)},e.prototype.isAutoHeight=function(){return!!c(this.colDef.autoHeight)},e.prototype.isAutoHeaderHeight=function(){return!!c(this.colDef.autoHeaderHeight)},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!!c(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(e,t){void 0===t&&(t="api"),this.moving=e,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",t))},e.prototype.createColumnEvent=function(e,t){return{type:e,column:this,columns:[this],source:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(e,t){void 0===t&&(t="api"),this.sort!==e&&(this.sort=e,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",t)))},e.prototype.setMenuVisible=function(e,t){void 0===t&&(t="api"),this.menuVisible!==e&&(this.menuVisible=e,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",t)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return"asc"===this.sort},e.prototype.isSortDescending=function(){return"desc"===this.sort},e.prototype.isSortNone=function(){return i(this.sort)},e.prototype.isSorting=function(){return o(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(e,t){void 0===t&&(t="api"),this.oldLeft=this.left,this.left!==e&&(this.left=e,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",t)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(e,t,n){void 0===t&&(t="api"),this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",t)));var r=this.createColumnEvent("filterChanged",t);n&&b(r,n),this.eventService.dispatchEvent(r)},e.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},e.prototype.setPinned=function(e){this.pinned=!0===e||"left"===e?"left":"right"===e?"right":null},e.prototype.setFirstRightPinned=function(e,t){void 0===t&&(t="api"),this.firstRightPinned!==e&&(this.firstRightPinned=e,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",t)))},e.prototype.setLastLeftPinned=function(e,t){void 0===t&&(t="api"),this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",t)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return"left"===this.pinned||"right"===this.pinned},e.prototype.isPinnedLeft=function(){return"left"===this.pinned},e.prototype.isPinnedRight=function(){return"right"===this.pinned},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(e,t){void 0===t&&(t="api");var n=!0===e;this.visible!==n&&(this.visible=n,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",t)))},e.prototype.isVisible=function(){return this.visible},e.prototype.isSpanHeaderHeight=function(){return!!this.getColDef().spanHeaderHeight},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.colId},e.prototype.getUniqueId=function(){return this.colId},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},e.prototype.setAutoHeaderHeight=function(e){var t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},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(e){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",e))},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"),o(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(e,t){void 0===t&&(t="api"),this.rowGroupActive!==e&&(this.rowGroupActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",t)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(e,t){void 0===t&&(t="api"),this.pivotActive!==e&&(this.pivotActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",t)))},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(e,t){void 0===t&&(t="api"),this.aggregationActive!==e&&(this.aggregationActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",t)))},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.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_COL_DEF_CHANGED="colDefChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",ne([$("gridOptionsService")],e.prototype,"gridOptionsService",void 0),ne([$("columnUtils")],e.prototype,"columnUtils",void 0),ne([$("columnHoverService")],e.prototype,"columnHoverService",void 0),ne([G],e.prototype,"initialise",null),e}(),se=function(){function e(e,t,n,r){this.localEventService=new ee,this.expandable=!1,this.instanceId=ie(),this.expandableListenerRemoveCallback=null,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=n,this.level=r}return e.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},e.prototype.reset=function(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},e.prototype.getInstanceId=function(){return this.instanceId},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.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var t=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(function(e){return e.addEventListener("visibleChanged",t)}),this.expandableListenerRemoveCallback=function(){e.getLeafColumns().forEach(function(e){return e.removeEventListener("visibleChanged",t)}),e.expandableListenerRemoveCallback=null}},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,r=!1,o=this.findChildrenRemovingPadding(),i=0,a=o.length;i<a;i++){var s=o[i];if(s.isVisible()){var l=s.getColumnGroupShow();"open"===l?(t=!0,r=!0):"closed"===l?(n=!0,r=!0):(t=!0,n=!0)}}var c=t&&n&&r;if(this.expandable!==c){this.expandable=c;var u={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(u)}}},e.prototype.findChildrenRemovingPadding=function(){var t=[],n=function(r){r.forEach(function(r){r instanceof e&&r.isPadding()?n(r.children):t.push(r)})};return n(this.children),t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([W],e.prototype,"destroy",null),e}(),le={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++){var r=e[n];if(o(r))return r}return null}function ue(e){if(e&&e.length)return e[e.length-1]}function de(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every(function(e,r){return n?n(e,t[r]):t[r]===e})}function pe(e){return e.sort(function(e,t){return e-t})}function he(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function fe(e,t){t.forEach(function(t){return he(e,t)})}function ge(e,t,n){e.splice(n,0,t)}function me(e,t,n){fe(e,t),t.slice().reverse().forEach(function(t){return ge(e,t,n)})}function ve(e,t){return e.indexOf(t)>-1}function ye(e){return[].concat.apply([],e)}function Ae(e,t){null!=t&&null!=e&&t.forEach(function(t){return e.push(t)})}var we=Object.freeze({__proto__:null,firstExistingValue:ce,existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:ue,areEqual:de,shallowCompare:function(e,t){return de(e,t)},sortNumerically:pe,removeRepeatsFromArray:function(e,t){if(e)for(var n=e.length-2;n>=0;n--){var r=e[n]===t,o=e[n+1]===t;r&&o&&e.splice(n+1,1)}},removeFromArray:he,removeAllFromArray:fe,insertIntoArray:ge,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var r=t.length-1;r>=0;r--)ge(e,t[r],n)},moveInArray:me,includes:ve,flatten:ye,pushAll:Ae,toStrings:function(e){return e.map(s)},forEachReverse:function(e,t){if(null!=e)for(var n=e.length-1;n>=0;n--)t(e[n],n)}}),be="__ag_Grid_Stop_Propagation",_e=["touchstart","touchend","touchmove","touchcancel","scroll"],Ce={};function Ee(e){e[be]=!0}function Se(e){return!0===e[be]}var Oe,xe=(Oe={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e){if("boolean"==typeof Ce[e])return Ce[e];var t=document.createElement(Oe[e]||"div");return Ce[e="on"+e]=e in t});function De(e,t,n){for(var r=t;r;){var o=e.getDomData(r,n);if(o)return o;r=r.parentElement}return null}function Pe(e,t){return!(!t||!e)&&Te(t).indexOf(e)>=0}function Me(e){for(var t=[],n=e.target;n;)t.push(n),n=n.parentElement;return t}function Te(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():Me(t)}function Re(e,t,n,r){var o=ve(_e,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,r,o)}var Ie,Fe=Object.freeze({__proto__:null,stopPropagationForAgGrid:Ee,isStopPropagationForAgGrid:Se,isEventSupported:xe,getCtrlForEventTarget:De,isElementInEventPath:Pe,createEventPath:Me,getEventPath:Te,addSafePassiveEventListener:Re}),ke=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Le=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach(function(e){return e()}),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new ee),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout(function(){return t.dispatchEvent(e)},0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addManagedListener=function(e,t,n){var r=this;if(!this.destroyed){e instanceof HTMLElement?Re(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var o=function(){return e.removeEventListener(t,n),r.destroyFunctions=r.destroyFunctions.filter(function(e){return e!==o}),null};return this.destroyFunctions.push(o),o}},e.prototype.addManagedPropertyListener=function(e,t){var n=this;if(!this.destroyed){this.gridOptionsService.addEventListener(e,t);var r=function(){return n.gridOptionsService.removeEventListener(e,t),n.destroyFunctions=n.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",ke([$("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),ke([$("context")],e.prototype,"context",void 0),ke([$("eventService")],e.prototype,"eventService",void 0),ke([$("gridOptionsService")],e.prototype,"gridOptionsService",void 0),ke([$("localeService")],e.prototype,"localeService",void 0),ke([$("environment")],e.prototype,"environment",void 0),ke([W],e.prototype,"destroy",null),e}(),Be=(Ie=function(e,t){return Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ie(e,t)},function(e,t){function n(){this.constructor=e}Ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ne=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Be(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,n){var r=new p,o=this.extractExistingTreeData(n),i=o.existingCols,a=o.existingGroups,s=o.existingColKeys;r.addExistingKeys(s);var l=this.recursivelyCreateColumns(e,0,t,i,r,a),c=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+c);var u=this.balanceColumnTree(l,0,c,r);return this.columnUtils.depthFirstOriginalTreeSearch(null,u,function(e,t){e instanceof se&&e.setupExpandable(),e.setOriginalParent(t)}),{columnTree:u,treeDept:c}},t.prototype.extractExistingTreeData=function(e){var t=[],n=[],r=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(e){if(e instanceof se){var o=e;n.push(o)}else{var i=e;r.push(i.getId()),t.push(i)}}),{existingCols:t,existingGroups:n,existingColKeys:r}},t.prototype.createForAutoGroups=function(e,t){var n=this;return e.map(function(e){return n.createAutoGroupTreeItem(t,e)})},t.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,r=this.findDepth(e)-1;r>=0;r--){var o=new se(null,"FAKE_PATH_"+t.getId()+"}_"+r,!0,r);this.createBean(o),o.setChildren([n]),n.setOriginalParent(o),n=o}return n},t.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof se;)t++,n=n[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,n,r){for(var o=[],i=0;i<e.length;i++){var a=e[i];if(a instanceof se){var s=a,l=this.balanceColumnTree(s.getChildren(),t+1,n,r);s.setChildren(l),o.push(s)}else{for(var c=void 0,u=void 0,d=n-1;d>=t;d--){var p=r.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new se(h,p,!0,t);this.createBean(f),u&&u.setChildren([f]),u=f,c||(c=u)}if(c&&u){if(o.push(c),e.some(function(e){return e instanceof se})){u.setChildren([a]);continue}u.setChildren(e);break}o.push(a)}}return o},t.prototype.findMaxDept=function(e,t){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(o instanceof se){var i=o,a=this.findMaxDept(i.getChildren(),t+1);n<a&&(n=a)}}return n},t.prototype.recursivelyCreateColumns=function(e,t,n,r,o,i){var a=this;return(e||[]).map(function(e){return a.isColumnGroup(e)?a.createColumnGroup(n,e,t,r,o,i):a.createColumn(n,e,r,o)})},t.prototype.createColumnGroup=function(e,t,n,r,o,i){var a=this.createMergedColGroupDef(t),s=o.getUniqueKey(a.groupId||null,null),l=new se(a,s,!1,n);this.createBean(l);var c=this.findExistingGroup(t,i);c&&he(i,c),c&&c.isExpanded()&&l.setExpanded(!0);var u=this.recursivelyCreateColumns(a.children,n+1,e,r,o,i);return l.setChildren(u),l},t.prototype.createMergedColGroupDef=function(e){var t={};return Object.assign(t,this.gridOptionsService.get("defaultColGroupDef")),Object.assign(t,e),t},t.prototype.createColumn=function(e,t,n,r){var o=this.mergeColDefs(t),i=this.findExistingColumn(t,n);if(n&&i&&he(n,i),i)i.setColDef(o,t),this.applyColumnState(i,o);else{var a=r.getUniqueKey(o.colId,o.field);i=new ae(o,t,a,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 r=l(t.width);if(null!=r)e.setActualWidth(r);else{var o=e.getActualWidth();e.setActualWidth(o)}}void 0!==t.sort&&("asc"==t.sort||"desc"==t.sort?e.setSort(t.sort):e.setSort(void 0));var i=l(t.sortIndex);void 0!==i&&e.setSortIndex(i);var a=c(t.hide);void 0!==a&&e.setVisible(!a),void 0!==t.pinned&&e.setPinned(t.pinned)},t.prototype.findExistingColumn=function(e,t){return(t||[]).find(function(t){var n=t.getUserProvidedColDef();if(!n)return!1;var r=null!=e.colId,o=null!=e.field;return r?t.getId()===e.colId:o?n.field===e.field:n===e})},t.prototype.findExistingGroup=function(e,t){return t.find(function(t){return!(!t.getColGroupDef()||null==e.groupId||t.getId()!==e.groupId)})},t.prototype.mergeColDefs=function(e){var t={},n=this.gridOptionsService.get("defaultColDef");b(t,n,!1,!0);var r=e.type;r||(r=n&&n.type),r&&this.assignColumnTypes(r,t),b(t,e,!1,!0);var o=this.gridOptionsService.get("autoGroupColumnDef"),i=this.gridOptionsService.isColumnsSortingCoupledToGroup();return e.rowGroup&&o&&i&&b(t,{sort:o.sort,initialSort:o.initialSort},!1,!0),t},t.prototype.assignColumnTypes=function(e,t){var n=[];if(e instanceof Array)e.some(function(e){return"string"!=typeof e})?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):n=e;else{if("string"!=typeof e)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");n=e.split(",")}var r=Object.assign({},le);h(this.gridOptionsService.get("columnTypes")||{},function(e,t){e in r?console.warn("AG Grid: the column type '"+e+"' is a default column type and cannot be overridden."):r[e]=t}),n.forEach(function(e){var n=r[e.trim()];n?b(t,n,!1,!0):console.warn("AG Grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")})},t.prototype.isColumnGroup=function(e){return void 0!==e.children},Ne([$("columnUtils")],t.prototype,"columnUtils",void 0),Ne([(n=q("loggerFactory"),function(e,t){n(e,t,0)})],t.prototype,"setBeans",null),Ne([z("columnFactory")],t);var n}(Le),Ue=function(){function e(){}return e.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentFramework:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellRendererFramework:void 0,cellEditor:void 0,cellEditorFramework:void 0,cellEditorParams:void 0,filterFramework:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentFramework:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,floatingFilterComponentFramework:void 0,tooltipComponentParams:void 0,tooltipComponentFramework:void 0,refData:void 0,columnsMenuParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,stickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,spanHeaderHeight:void 0},e.ALL_PROPERTIES=Object.keys(e.ColDefPropertyMap),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),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_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",e.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED="internalToolPanelVisibleChanged",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_UNDO_STARTED="undoStarted",e.EVENT_UNDO_ENDED="undoEnded",e.EVENT_REDO_STARTED="redoStarted",e.EVENT_REDO_ENDED="redoEnded",e.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",e.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",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_CELL_FOCUS_CLEARED="cellFocusCleared",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_STORE_REFRESHED="storeRefreshed",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_HEADER_HEIGHT_CHANGED="headerHeightChanged",e.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",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_GRID_STYLES_CHANGED="gridStylesChanged",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.EVENT_FILTER_DESTROYED="filterDestroyed",e}(),He=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Ge=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(He(arguments[t]));return e},We=function(){function e(){}return e.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType","colResizeDefault"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef"],e.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],e.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","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","suppressRowGroupHidesColumns","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","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","excludeHiddenColumnsFromQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","enableChartToolPanelsButton","suppressChartToolPanelsButton","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","serverSideSortingAlwaysResets","serverSideSortAllLevels","serverSideFilterAllLevels","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","groupRowsSticky","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","suppressCutToClipboard"],e.FUNCTIONAL_PROPERTIES=["localeTextFunc","doesExternalFilterPass","groupRowAggNodes","isFullWidthCell","processSecondaryColDef","processSecondaryColGroupDef","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","postSort","defaultGroupOrderComparator","rowDragText","groupRowRenderer","groupRowRendererFramework","fullWidthCellRenderer","fullWidthCellRendererFramework","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework"],e.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","getRowNodeId","isFullWidthRow","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"],e.FUNCTION_PROPERTIES=Ge(e.FUNCTIONAL_PROPERTIES,e.CALLBACK_PROPERTIES),e.ALL_PROPERTIES=Ge(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}(),ze=function(){return ze=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ze.apply(this,arguments)},$e=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Ke=function(){function e(){}return e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.getCoercionLookup=function(){var t={};return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat($e(arguments[t]));return e}(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.FUNCTION_PROPERTIES,e.EVENT_CALLBACKS).forEach(function(e){return t[e]="none"}),e.BOOLEAN_PROPERTIES.forEach(function(e){return t[e]="boolean"}),e.NUMBER_PROPERTIES.forEach(function(e){return t[e]="number"}),t},e.getValue=function(t,n){var r=e.coercionLookup[t];if(r){var o=n;switch(r){case"number":o=e.toNumber(n);break;case"boolean":o=e.toBoolean(n);break;case"none":"groupAggFiltering"===t&&"function"!=typeof n&&(o=e.toBoolean(n))}return o}},e.getGridOptionKeys=function(t,n){return n?Object.keys(e.coercionLookup):Object.keys(t)},e.copyAttributesToGridOptions=function(t,n,r){void 0===r&&(r=!1),"object"!=typeof t&&(t={});var o=t;return e.getGridOptionKeys(n,r).forEach(function(t){var r=n[t];if(void 0!==r){var i=e.getValue(t,r);void 0!==i&&(o[t]=i)}}),t},e.processOnChange=function(t,n){if(t&&0!==Object.keys(t).length){var r=ze({},t);r.columnTypes&&(n.setColumnTypes(r.columnTypes.currentValue,"gridOptionsChanged"),delete r.columnTypes),r.autoGroupColumnDef&&(n.setAutoGroupColumnDef(r.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete r.autoGroupColumnDef),r.defaultColDef&&(n.setDefaultColDef(r.defaultColDef.currentValue,"gridOptionsChanged"),delete r.defaultColDef),r.columnDefs&&(n.setColumnDefs(r.columnDefs.currentValue,"gridOptionsChanged"),delete r.columnDefs),Object.keys(r).forEach(function(t){var o=t,i=e.getValue(o,r[o].currentValue);n.__setProperty(o,i)});var o={type:Ve.EVENT_COMPONENT_STATE_CHANGED};h(t,function(e,t){o[e]=t}),n.dispatchEvent(o)}},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=u(Ve),e.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_KEY_SHORTCUT_CHANGED_CELL_START,Ve.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,Ve.EVENT_FULL_WIDTH_ROW_FOCUSED,Ve.EVENT_HEADER_HEIGHT_CHANGED,Ve.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,Ve.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,Ve.EVENT_CELL_FOCUS_CLEARED,Ve.EVENT_GRID_STYLES_CHANGED,Ve.EVENT_FILTER_DESTROYED],e.PUBLIC_EVENTS=e.EVENTS.filter(function(t){return!ve(e.EXCLUDED_INTERNAL_EVENTS,t)}),e.EVENT_CALLBACKS=e.EVENTS.map(function(t){return e.getCallbackForEvent(t)}),e.STRING_PROPERTIES=We.STRING_PROPERTIES,e.OBJECT_PROPERTIES=We.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=We.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=We.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=We.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=We.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=We.ALL_PROPERTIES,e.ALL_PROPERTIES_SET=new Set(We.ALL_PROPERTIES),e.coercionLookup=e.getCoercionLookup(),e}();function Qe(e,t,n){var r={},o=e.filter(function(e){return!t.some(function(t){return t===e})});return o.length>0&&o.forEach(function(e){return r[e]=qe(e,n)}),r}function qe(e,t,n,r){var o=t.map(function(t){return{value:t,relevance:Ye(e.toLowerCase(),t.toLocaleLowerCase())}});if(o.sort(function(e,t){return t.relevance-e.relevance}),n&&(o=o.filter(function(e){return 0!==e.relevance})),r&&r>0){var i=o[0].relevance*r;o=o.filter(function(e){return i-e.relevance<0})}return o.map(function(e){return e.value})}function Ye(e,t){for(var n=e.replace(/\s/g,""),r=t.replace(/\s/g,""),o=0,i=-1,a=0;a<n.length;a++){var s=r.indexOf(n[a],i+1);-1!==s&&(o+=100-100*(i=s)/1e4*100)}return o}var Xe=Object.freeze({__proto__:null,fuzzyCheckStrings:Qe,fuzzySuggestions:qe}),Ze=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Je=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},et=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Je(arguments[t]));return e};function tt(e,t,n,r){var o=n?"Please use '"+n+"' instead. ":"";x(function(){return console.warn("AG Grid: since v"+e+", '"+t+"' is deprecated. "+o+(null!=r?r:""))},"Deprecated_"+t)}var nt=function(){function e(){this.deprecatedProperties={serverSideInfiniteScroll:{version:"29",message:"Infinite Scrolling is now the default behaviour. This can be suppressed with `suppressServerSideInfiniteScroll`."},rememberGroupStateWhenNewData:{version:"24",message:"Now that transaction updates are possible and they keep group state, this feature is no longer needed."},suppressEnterpriseResetOnNewColumns:{version:"25",message:"Now that it is possible to dynamically change columns in the grid, this is no longer needed."},suppressColumnStateEvents:{version:"25",message:'Events should be ignored based on the `event.source`, which will be "api" if the event was due to setting column state via the API.'},defaultExportParams:{version:"25.2",message:"The property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`"},stopEditingWhenGridLosesFocus:{version:"25.2.2",newProp:"stopEditingWhenCellsLoseFocus",copyToNewProp:!0},applyColumnDefOrder:{version:"26",message:"The property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"},groupMultiAutoColumn:{version:"26",newProp:"groupDisplayType",copyToNewProp:!0,newPropValue:"multipleColumns"},groupUseEntireRow:{version:"26",newProp:"groupDisplayType",copyToNewProp:!0,newPropValue:"groupRows"},defaultGroupSortComparator:{version:"26",newProp:"initialGroupOrderComparator"},enableMultiRowDragging:{version:"26.1",newProp:"rowDragMultiRow",copyToNewProp:!0},colWidth:{version:"26.1",newProp:"defaultColDef.width"},minColWidth:{version:"26.1",newProp:"defaultColDef.minWidth"},maxColWidth:{version:"26.1",newProp:"defaultColDef.maxWidth"},reactUi:{version:"26.1",message:"React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."},suppressCellSelection:{version:"27",newProp:"suppressCellFocus",copyToNewProp:!0},clipboardDeliminator:{version:"27.1",newProp:"clipboardDelimiter",copyToNewProp:!0},getRowNodeId:{version:"27.1",newProp:"getRowId",message:"The difference: if getRowId() is implemented then immutable data is enabled by default."},defaultGroupOrderComparator:{version:"27.2",newProp:"initialGroupOrderComparator"},groupRowAggNodes:{version:"27.2",newProp:"getGroupRowAgg"},postSort:{version:"27.2",newProp:"postSortRows"},isFullWidthCell:{version:"27.2",newProp:"isFullWidthRow"},localeTextFunc:{version:"27.2",newProp:"getLocaleText"},serverSideFilteringAlwaysResets:{version:"28.0",newProp:"serverSideFilterAllLevels",copyToNewProp:!0},serverSideSortingAlwaysResets:{version:"28.0",newProp:"serverSideSortAllLevels",copyToNewProp:!0},suppressReactUi:{version:"28",message:"The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."},processSecondaryColDef:{version:"28",newProp:"processPivotResultColDef",copyToNewProp:!0},processSecondaryColGroupDef:{version:"28",newProp:"processPivotResultColGroupDef",copyToNewProp:!0},getServerSideStoreParams:{version:"28",newProp:"getServerSideGroupLevelParams",copyToNewProp:!0},enableChartToolPanelsButton:{version:"29",message:"The Chart Tool Panels button is now enabled by default. To hide the Chart Tool Panels button and display the hamburger button instead, set suppressChartToolPanelsButton=true."},functionsPassive:{version:"29.2"},onColumnRowGroupChangeRequest:{version:"29.2"},onColumnPivotChangeRequest:{version:"29.2"},onColumnValueChangeRequest:{version:"29.2"},onColumnAggFuncChangeRequest:{version:"29.2"}}}return e.prototype.pickOneWarning=function(e,t){console.warn("AG Grid: "+e+" and "+t+" do not work with each other, you need to pick one.")},e.prototype.init=function(){var e=this;if(this.checkForDeprecated(),this.checkForViolations(),!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),this.checkColumnDefViolations(),this.gridOptionsService.is("groupSelectsChildren")&&this.gridOptionsService.is("suppressParentsInRowNodes")&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.gridOptionsService.is("groupSelectsChildren")&&"multiple"!==this.gridOptionsService.get("rowSelection")&&console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.gridOptionsService.is("groupRemoveSingleChildren")&&this.gridOptionsService.is("groupHideOpenParents")&&this.pickOneWarning("groupRemoveSingleChildren","groupHideOpenParents"),"autoHeight"!==this.gridOptionsService.get("domLayout")||this.gridOptionsService.isRowModelType("clientSide")||(console.warn("AG Grid: domLayout='autoHeight' was ignored as it is only supported by the Client-Side row model."),this.gridOptions.domLayout="normal"),this.gridOptionsService.isRowModelType("serverSide")){var t=function(e,t){return"AG Grid: '"+e+"' is not supported on the Server-Side Row Model."+(t?" Please use "+t+" instead.":"")};this.gridOptionsService.exists("groupDefaultExpanded")&&console.warn(t("groupDefaultExpanded","isServerSideGroupOpenByDefault callback")),this.gridOptionsService.exists("groupIncludeFooter")&&console.warn(t("groupIncludeFooter")),this.gridOptionsService.exists("groupIncludeTotalFooter")&&console.warn(t("groupIncludeTotalFooter"))}this.gridOptionsService.is("enableRangeSelection")?te.assertRegistered(X.RangeSelectionModule,"enableRangeSelection"):(this.gridOptionsService.is("enableRangeHandle")||this.gridOptionsService.is("enableFillHandle"))&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var n=function(t,n){return e.gridOptionsService.exists(t)&&te.assertRegistered(n,t)};n("sideBar",X.SideBarModule),n("statusBar",X.StatusBarModule),n("enableCharts",X.GridChartsModule),n("getMainMenuItems",X.MenuModule),n("getContextMenuItems",X.MenuModule),n("allowContextMenuWithControlKey",X.MenuModule),this.gridOptionsService.is("groupRowsSticky")&&(this.gridOptionsService.is("groupHideOpenParents")&&this.pickOneWarning("groupRowsSticky","groupHideOpenParents"),this.gridOptionsService.is("masterDetail")&&this.pickOneWarning("groupRowsSticky","masterDetail"),this.gridOptionsService.is("pagination")&&this.pickOneWarning("groupRowsSticky","pagination"))},e.prototype.checkColumnDefProperties=function(){var e=this;if(null!=this.gridOptions.columnDefs){var t=et(Ue.ALL_PROPERTIES,Ue.FRAMEWORK_PROPERTIES),n=function(r,o){var i=Object.getOwnPropertyNames(r);e.checkProperties(i,t,t,o,"https://www.ag-grid.com/javascript-data-grid/column-properties/"),r.children&&r.children.forEach(function(e){return n(e,"columnDefs.children")})};this.gridOptions.columnDefs.forEach(function(e){return n(e,"columnDefs")}),this.gridOptions.defaultColDef&&n(this.gridOptions.defaultColDef,"defaultColDef")}},e.prototype.checkColumnDefViolations=function(){var e,t=null!==(e=this.gridOptionsService.get("rowModelType"))&&void 0!==e?e:"clientSide",n={infinite:["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],viewport:["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],serverSide:["headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],clientSide:[]}[t];if(null==n?void 0:n.length){var r=function(e){n.forEach(function(n){n in e&&e[n]&&console.warn("AG Grid: Column property "+n+" is not supported with the row model type "+t+".")})};null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach(function(e){return r(e)}),null!=this.gridOptions.autoGroupColumnDef&&r(this.gridOptions.autoGroupColumnDef),null!=this.gridOptions.defaultColDef&&r(this.gridOptions.defaultColDef)}},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=et(We.ALL_PROPERTIES,We.FRAMEWORK_PROPERTIES,Ke.EVENT_CALLBACKS),n=et(t,["api","columnApi"],Object.keys(this.deprecatedProperties));this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},e.prototype.checkProperties=function(e,t,n,r,o){var i=Qe(e,t,n);h(i,function(e,t){x(function(){return console.warn("AG Grid: invalid "+r+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))},"invalidProperty"+r+e)}),Object.keys(i).length>0&&x(function(){return console.warn("AG Grid: to see all the valid "+r+" properties please check: "+o)},"invalidProperties"+r+o)},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;if(Object.entries(this.deprecatedProperties).forEach(function(t){var n,r=Je(t,2),o=r[0],i=r[1],a=e[o];a&&(tt(i.version,o,i.newProp,i.message),i.copyToNewProp&&i.newProp&&null==e[i.newProp]&&(e[i.newProp]=null!==(n=i.newPropValue)&&void 0!==n?n:a))}),e.groupSuppressAutoColumn){var t=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+t+" = 'custom'`"),e[t]="custom"}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.serverSideStoreType&&(console.warn("AG Grid: since v29.0, `serverSideStoreType` has been replaced by `suppressServerSideInfiniteScroll`. Set to false to use Partial Store, and true to use Full Store."),e.suppressServerSideInfiniteScroll="partial"!==e.serverSideStoreType)},e.prototype.checkForViolations=function(){this.gridOptionsService.is("treeData")&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.gridOptionsService.exists("getDataPath")||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.gridOptionsService.isRowModelType("serverSide")&&(this.gridOptionsService.exists("isServerSideGroup")||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."),this.gridOptionsService.exists("getServerSideGroupKey")||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."))},Ze([$("gridOptions")],e.prototype,"gridOptions",void 0),Ze([$("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Ze([G],e.prototype,"init",null),Ze([z("gridOptionsValidator")],e)}();function rt(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}var ot=function(){function e(e,t,n,r){this.displayedChildren=[],this.localEventService=new ee,this.groupId=t,this.partId=n,this.providedColumnGroup=e,this.pinned=r}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.partId)},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.gridOptionsService.is("enableRtl")){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.getPartId=function(){return this.partId},e.prototype.isChildInThisGroupDeepSearch=function(t){var n=!1;return this.children.forEach(function(r){t===r&&(n=!0),r instanceof e&&r.isChildInThisGroupDeepSearch(t)&&(n=!0)}),n},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach(function(t){e+=t.getActualWidth()}),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach(function(t){t.isResizable()&&(e=!0)}),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach(function(t){e+=t.getMinWidth()||0}),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.providedColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach(function(n){n instanceof 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 tt("27","getOriginalColumnGroup","getProvidedColumnGroup"),this.getProvidedColumnGroup()},e.prototype.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var n=this;null!=n&&n.isPadding();)n=n.getParent();if(!n||!n.providedColumnGroup.isExpandable())return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach(function(r){if(!(r instanceof e)||r.displayedChildren&&r.displayedChildren.length)switch(r.getColumnGroupShow()){case"open":n.providedColumnGroup.isExpanded()&&t.displayedChildren.push(r);break;case"closed":n.providedColumnGroup.isExpanded()||t.displayedChildren.push(r);break;default:t.displayedChildren.push(r)}}),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([$("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e}(),it=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}(),at=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),st=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},lt="ag-Grid-AutoColumn",ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return at(t,e),t.prototype.createAutoGroupColumns=function(e,t){var n=this,r=[],o=this.gridOptionsService.isTreeData(),i=this.gridOptionsService.isGroupMultiAutoColumn();return o&&i&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),i=!1),i?t.forEach(function(t,o){r.push(n.createOneAutoGroupColumn(e,t,o))}):r.push(this.createOneAutoGroupColumn(e)),r},t.prototype.createOneAutoGroupColumn=function(e,t,n){var r,o=this.generateDefaultColDef(t);r=t?lt+"-"+t.getId():lt,b(o,this.gridOptionsService.get("autoGroupColumnDef")),(o=this.columnFactory.mergeColDefs(o)).colId=r,this.gridOptionsService.isTreeData()||i(o.field)&&i(o.valueGetter)&&i(o.filterValueGetter)&&"agGroupColumnFilter"!==o.filter&&(o.filter=!1),n&&n>0&&(o.headerCheckboxSelection=!1);var a=e.find(function(e){return e.getId()==r});if(a)return a.setColDef(o,null),this.columnFactory.applyColumnState(a,o),a;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&(o.sort||o.initialSort)&&!o.field&&b(o,{sort:null,initialSort:null},!0,!0);var s=new ae(o,null,r,!0);return this.context.createBean(s),s},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsService.get("autoGroupColumnDef"),n={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework||t.cellRendererSelector)||(n.cellRenderer="agGroupCellRenderer"),e){var r=e.getColDef();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:r.headerValueGetter}),(r.cellRenderer||r.cellRendererFramework)&&Object.assign(n,{cellRendererParams:{innerRenderer:r.cellRenderer,innerRendererFramework:r.cellRendererFramework,innerRendererParams:r.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},st([$("columnModel")],t.prototype,"columnModel",void 0),st([$("columnFactory")],t.prototype,"columnFactory",void 0),st([z("autoGroupColService")],t)}(Le),ut=/[&<>"']/g,dt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function pt(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function ht(e,t){if(null==e)return null;var n=e.toString().toString();return t?n:n.replace(ut,function(e){return dt[e]})}function ft(e){return e&&null!=e?e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map(function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")}).join(" "):null}var gt=Object.freeze({__proto__:null,utf8_encode:function(e){var t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function r(e){if(e>=0&&e<=31&&10!==e)return"_x"+e.toString(16).toUpperCase().padStart(4,"0")+"_";if(!(4294967168&e))return t(e);var r="";return 4294965248&e?4294901760&e?4292870144&e||(r=t(e>>18&7|240),r+=n(e,12),r+=n(e,6)):(function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),r=t(e>>12&15|224),r+=n(e,6)):r=t(e>>6&31|192),r+t(63&e|128)}for(var o=function(e){var t=[];if(!e)return[];for(var n,r,o=e.length,i=0;i<o;)(n=e.charCodeAt(i++))>=55296&&n<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?t.push(((1023&n)<<10)+(1023&r)+65536):(t.push(n),i--):t.push(n);return t}(e),i=o.length,a=-1,s="";++a<i;)s+=r(o[a]);return s},capitalise:pt,escapeString:ht,camelCaseToHumanText:ft});function mt(e){var t=new Map;return e.forEach(function(e){return t.set(e[0],e[1])}),t}var vt=Object.freeze({__proto__:null,convertToMap:mt,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}}),yt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),At=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wt=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},_t=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(bt(arguments[t]));return e},Ct=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.viewportColumnsHash="",t.headerViewportColumns=[],t.viewportColumnsCenter=[],t.headerViewportColumnsCenter=[],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}return yt(t,e),t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsService.is("suppressColumnVirtualisation");var t=this.gridOptionsService.is("pivotMode");this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.usingTreeData=this.gridOptionsService.isTreeData(),this.addManagedPropertyListener("groupDisplayType",function(){return e.onAutoGroupColumnDefChanged()}),this.addManagedPropertyListener("autoGroupColumnDef",function(){return e.onAutoGroupColumnDefChanged()}),this.addManagedPropertyListener("defaultColDef",function(t){return e.onSharedColDefChanged(t.source)}),this.addManagedPropertyListener("columnTypes",function(t){return e.onSharedColDefChanged(t.source)})},t.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},t.prototype.onSharedColDefChanged=function(e){void 0===e&&(e="api"),this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0,e)},t.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var n=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(n,t)},t.prototype.destroyOldColumns=function(e,t){var n={};if(e){this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(e){n[e.getInstanceId()]=e}),t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,function(e){n[e.getInstanceId()]=null});var r=Object.values(n).filter(function(e){return null!=e});this.destroyBeans(r)}},t.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},t.prototype.createColumnsFromColumnDefs=function(e,t){var n=this;void 0===t&&(t="api");var r=e?this.compareColumnStatesAndDispatchEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var o=this.primaryColumns,i=this.primaryColumnTree,a=this.columnFactory.createColumnTree(this.columnDefs,!0,i);this.destroyOldColumns(this.primaryColumnTree,a.columnTree),this.primaryColumnTree=a.columnTree,this.primaryHeaderRowCount=a.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach(function(e){return n.primaryColumnsMap[e.getId()]=e}),this.extractRowGroupColumns(t,o),this.extractPivotColumns(t,o),this.extractValueColumns(t,o),this.ready=!0;var s=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||s)&&(this.updateGridColumns(),e&&!this.gridOptionsService.is("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),r&&r(),this.dispatchNewColumnsLoaded()},t.prototype.dispatchNewColumnsLoaded=function(){var e={type:Ve.EVENT_NEW_COLUMNS_LOADED};this.eventService.dispatchEvent(e)},t.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api");var t={type:Ve.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(t)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,t=this.primaryColumns;t&&(this.gridColumns.sort(function(n,r){var o=t.indexOf(n),i=t.indexOf(r),a=o>=0,s=i>=0;return a&&s?o-i:a?1:s?-1:e.gridColumns.indexOf(n)-e.gridColumns.indexOf(r)}),this.gridColumns=this.placeLockedColumns(this.gridColumns))},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsService.is("enableRtl")?(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&&this.extractViewport()){var e={type:Ve.EVENT_VIRTUAL_COLUMNS_CHANGED};this.eventService.dispatchEvent(e)}},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.gridOptionsService.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};this.eventService.dispatchEvent(n)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(i(this.secondaryColumns))return null;var n=this.getPrimaryColumn(t),r=null;return this.secondaryColumns.forEach(function(t){var o=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn;de(o,e)&&i===n&&(r=t)}),r},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsService.is("enableRtl")?(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(r){r.setLastLeftPinned(r===t,e),r.setFirstRightPinned(r===n,e)})},t.prototype.autoSizeColumns=function(e){var t=this,n=e.columns,r=e.skipHeader,o=e.skipHeaderGroups,i=e.stopAtGroup,a=e.source,s=void 0===a?"api":a;this.animationFrameService.flushAllFrames();for(var l=[],c=-1,u=null!=r?r:this.gridOptionsService.is("skipHeaderOnAutoSize"),d=null!=o?o:u;0!==c;)c=0,this.actionOnGridColumns(n,function(e){if(l.indexOf(e)>=0)return!1;var n=t.autoWidthCalculator.getPreferredWidthForColumn(e,u);if(n>0){var r=t.normaliseColumnWidth(e,n);e.setActualWidth(r,s),l.push(e),c++}return!0},s);d||this.autoSizeColumnGroupsByColumns(n,s,i),this.dispatchColumnResizedEvent(l,!0,"autosizeColumns")},t.prototype.dispatchColumnResizedEvent=function(e,t,n,r){if(void 0===r&&(r=null),e&&e.length){var o={type:Ve.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:r,finished:t,source:n};this.eventService.dispatchEvent(o)}},t.prototype.dispatchColumnChangedEvent=function(e,t,n){var r={type:e,columns:t,column:t&&1==t.length?t[0]:null,source:n};this.eventService.dispatchEvent(r)},t.prototype.dispatchColumnMovedEvent=function(e){var t=e.movedColumns,n=e.source,r=e.toIndex,o=e.finished,i={type:Ve.EVENT_COLUMN_MOVED,columns:t,column:t&&1===t.length?t[0]:null,toIndex:r,finished:o,source:n};this.eventService.dispatchEvent(i)},t.prototype.dispatchColumnPinnedEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,r=this.getCommonValue(e,function(e){return e.getPinned()}),o={type:Ve.EVENT_COLUMN_PINNED,pinned:null!=r?r:null,columns:e,column:n,source:t};this.eventService.dispatchEvent(o)}},t.prototype.dispatchColumnVisibleEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,r=this.getCommonValue(e,function(e){return e.isVisible()}),o={type:Ve.EVENT_COLUMN_VISIBLE,visible:r,columns:e,column:n,source:t};this.eventService.dispatchEvent(o)}},t.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:t,skipHeaderGroups:!0,source:n})},t.prototype.autoSizeColumnGroupsByColumns=function(e,t,n){var r,o,i,a,s,l=new Set;this.getGridColumns(e).forEach(function(e){for(var t=e.getParent();t&&t!=n;)t.isPadding()||l.add(t),t=t.getParent()});try{for(var c=wt(l),u=c.next();!u.done;u=c.next()){var d=u.value;try{for(var p=(i=void 0,wt(this.ctrlsService.getHeaderRowContainerCtrls())),h=p.next();!h.done&&!(s=h.value.getHeaderCtrlForColumn(d));h=p.next());}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}s&&s.resizeLeafColumnsToFit(t)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return[]},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:e,source:t})},t.prototype.getColumnsFromTree=function(e){var t=[],n=function(e){for(var r=0;r<e.length;r++){var o=e[r];o instanceof ae?t.push(o):o instanceof se&&n(o.getChildren())}};return n(e),t},t.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},t.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},t.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},t.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},t.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},t.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},t.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.isColSpanActive=function(){return this.colSpanActive},t.prototype.getDisplayedColumnsForRow=function(e,t,n,r){for(var o,i=[],a=null,s=function(s){var l,c=t[s],u=t.length-s,d=Math.min(c.getColSpan(e),u),p=[c];if(d>1){for(var h=d-1,f=1;f<=h;f++)p.push(t[s+f]);s+=h}n?(l=!1,p.forEach(function(e){n(e)&&(l=!0)})):l=!0,l&&(0===i.length&&a&&r&&r(c)&&i.push(a),i.push(c)),a=c,o=s},l=0;l<t.length;l++)s(l),l=o;return i},t.prototype.getViewportCenterColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var n=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,n,function(e){var n=e.getLeft();return o(n)&&n>t.viewportLeft})},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInHeaderViewport=function(e){return!!e.isAutoHeaderHeight()||this.isColumnInRowViewport(e)},t.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var t=e.getLeft()||0,n=t+e.getActualWidth(),r=this.viewportLeft-200,o=this.viewportRight+200;return!(t<r&&n<r||t>o&&n>o)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,t,n,r,o,i){var s=this;if(void 0===i&&(i="api"),e&&!a(e)){var l=!1;if(e.forEach(function(e){var o=s.getPrimaryColumn(e);if(o){if(n){if(t.indexOf(o)>=0)return;t.push(o)}else{if(t.indexOf(o)<0)return;he(t,o)}r(o),l=!0}}),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var c={type:o,columns:t,column:1===t.length?t[0]:null,source:i};this.eventService.dispatchEvent(c)}}},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.gridOptionsService.is("suppressRowGroupHidesColumns")&&this.setColumnVisible(t,!1,n),e||this.gridOptionsService.is("suppressMakeColumnVisibleAfterUnGroup")||this.setColumnVisible(t,!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,r,i){var a=this;t.length=0,o(e)&&e.forEach(function(e){var n=a.getPrimaryColumn(e);n&&t.push(n)}),(this.primaryColumns||[]).forEach(function(e){var n=t.indexOf(e)>=0;r(n,e)}),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i),this.dispatchColumnChangedEvent(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 r=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(r)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),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();o(n)&&t<n&&(t=n);var r=e.getMaxWidth();return o(r)&&e.isGreaterThanMax(t)&&(t=r),t},t.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,t,n,r){var o=this;void 0===r&&(r="api");var i=[];e.forEach(function(e){var n=o.getPrimaryOrGridColumn(e.key);if(n&&(i.push({width:e.newWidth,ratios:[1],columns:[n]}),"shift"===o.gridOptionsService.get("colResizeDefault")&&(t=!t),t)){var r=o.getDisplayedColAfter(n);if(!r)return;var a=n.getActualWidth()-e.newWidth,s=r.getActualWidth()+a;i.push({width:s,ratios:[1],columns:[r]})}}),0!==i.length&&this.resizeColumnSets({resizeSets:i,finished:n,source:r})},t.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,n=e.width,r=0,i=0,a=!0;return t.forEach(function(e){var t=e.getMinWidth();r+=t||0;var n=e.getMaxWidth();o(n)&&n>0?i+=n:a=!1}),n>=r&&(!a||n<=i)},t.prototype.resizeColumnSets=function(e){var t=this,n=e.resizeSets,r=e.finished,i=e.source;if(!n||n.every(function(e){return t.checkMinAndMaxWidthsForSet(e)})){var a=[],s=[];n.forEach(function(e){var t=e.width,n=e.columns,r=e.ratios,l={},c={};n.forEach(function(e){return s.push(e)});for(var u=!0,d=0,p=function(){if(++d>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";u=!1;var e=[],i=0,a=t;n.forEach(function(t,n){if(c[t.getId()])a-=l[t.getId()];else{e.push(t);var o=r[n];i+=o}});var s=1/i;e.forEach(function(n,i){var d;i===e.length-1?d=a:(d=Math.round(r[i]*t*s),a-=d);var p=n.getMinWidth(),h=n.getMaxWidth();o(p)&&d<p?(d=p,c[n.getId()]=!0,u=!0):o(h)&&h>0&&d>h&&(d=h,c[n.getId()]=!0,u=!0),l[n.getId()]=d})};u&&"break"!==p(););n.forEach(function(e){var t=l[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,i),a.push(e))})});var l=a.length>0,c=[];l&&(c=this.refreshFlexedColumns({resizingCols:s,skipSetLeft:!0}),this.setLeftValues(i),this.updateBodyWidths(),this.checkViewportColumns());var u=s.concat(c);(l||r)&&this.dispatchColumnResizedEvent(u,r,i,c)}else if(r){var d=n&&n.length>0?n[0].columns:null;this.dispatchColumnResizedEvent(d,r,i)}},t.prototype.setColumnAggFunc=function(e,t,n){if(void 0===n&&(n="api"),e){var r=this.getPrimaryColumn(e);r&&(r.setAggFunc(t),this.dispatchColumnChangedEvent(Ve.EVENT_COLUMN_VALUE_CHANGED,[r],n))}},t.prototype.moveRowGroupColumn=function(e,t,n){void 0===n&&(n="api");var r=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,r);var o={type:Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:n};this.eventService.dispatchEvent(o)},t.prototype.moveColumns=function(e,t,n,r){if(void 0===n&&(n="api"),void 0===r&&(r=!0),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);!this.doesMovePassRules(o,t)||(me(this.gridColumns,o,t),this.updateDisplayedColumns(n),this.dispatchColumnMovedEvent({movedColumns:o,source:n,toIndex:t,finished:r}),this.columnAnimationService.finish())},t.prototype.doesMovePassRules=function(e,t){var n=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(n)},t.prototype.doesOrderPassRules=function(e){return!!this.doesMovePassMarryChildren(e)&&!!this.doesMovePassLockedPositions(e)},t.prototype.getProposedColumnOrder=function(e,t){var n=this.gridColumns.slice();return me(n,e,t),n},t.prototype.sortColumnsLikeGridColumns=function(e){var t=this;!e||e.length<=1||e.filter(function(e){return t.gridColumns.indexOf(e)<0}).length>0||e.sort(function(e,n){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(n)})},t.prototype.doesMovePassLockedPositions=function(e){var t=0,n=!0;return e.forEach(function(e){var r,o=(r=e.getColDef().lockPosition)?!0===r||"left"===r?0:2:1;o<t&&(n=!1),t=o}),n},t.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(n){if(n instanceof se){var r=n,o=r.getColGroupDef();if(o&&o.marryChildren){var i=[];r.getLeafColumns().forEach(function(t){var n=e.indexOf(t);i.push(n)}),Math.max.apply(Math,i)-Math.min.apply(Math,i)>r.getLeafColumns().length-1&&(t=!1)}}}),t},t.prototype.moveColumn=function(e,t,n){void 0===n&&(n="api"),this.moveColumns([e],t,n)},t.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n="api");var r=this.gridColumns[e];this.moveColumn(r,t,n)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort(function(t,n){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(n)}):this.lastPrimaryOrder&&t.sort(function(t,n){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(n)}),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;var r={type:Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(r)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case"left":return this.getDisplayedLeftColumns();case"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 a(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return a(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){void 0===t&&(t=!1),void 0===n&&(n="api"),this.applyColumnState({state:e.map(function(e){return{colId:"string"==typeof e?e:e.getColId(),hide:!t}})},n)},t.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],t,n)},t.prototype.setColumnsPinned=function(e,t,n){var r;void 0===n&&(n="api"),this.gridOptionsService.isDomLayout("print")?console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'"):(this.columnAnimationService.start(),r=!0===t||"left"===t?"left":"right"===t?"right":null,this.actionOnGridColumns(e,function(e){return e.getPinned()!==r&&(e.setPinned(r),!0)},n,function(){return{type:Ve.EVENT_COLUMN_PINNED,pinned:r,column:null,columns:null,source:n}}),this.columnAnimationService.finish())},t.prototype.actionOnGridColumns=function(e,t,n,r){var i=this;if(!a(e)){var s=[];if(e.forEach(function(e){var n=i.getGridColumn(e);n&&!1!==t(n)&&s.push(n)}),s.length&&(this.updateDisplayedColumns(n),o(r)&&r)){var l=r();l.columns=s,l.column=1===s.length?s[0]:null,this.eventService.dispatchEvent(l)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null},t.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},t.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},t.prototype.getDisplayedGroupAtDirection=function(e,t){for(var n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),o="After"===t?ue(r):r[0],i="getDisplayedCol"+t;;){var a=this[i](o);if(!a)return null;var s=this.getColumnGroupAtLevel(a,n);if(s!==e)return s}},t.prototype.getColumnGroupAtLevel=function(e,t){for(var n=e.getParent();!(n.getProvidedColumnGroup().getLevel()+n.getPaddingLevel()<=t);)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,_t([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,r=e.isValueActive()?e.getAggFunc():null,o=null!=e.getSort()?e.getSort():null,i=null!=e.getSortIndex()?e.getSortIndex():null,a=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:o,sortIndex:i,aggFunc:r,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:n,flex:a}},t.prototype.getColumnState=function(){if(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=mt(this.gridColumns.map(function(e,t){return[e.getColId(),t]}));e.sort(function(e,n){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(n.colId)?t.get(n.colId):-1)})},t.prototype.resetColumnState=function(e){void 0===e&&(e="api");var t=this.getColumnsFromTree(this.primaryColumnTree),n=[],r=1e3,o=1e3,a=[];this.groupAutoColumns&&(a=a.concat(this.groupAutoColumns)),t&&(a=a.concat(t)),a.forEach(function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},a=e.getColDef(),s=t(a.sort,a.initialSort),l=t(a.sortIndex,a.initialSortIndex),c=t(a.hide,a.initialHide),u=t(a.pinned,a.initialPinned),d=t(a.width,a.initialWidth),p=t(a.flex,a.initialFlex),h=t(a.rowGroupIndex,a.initialRowGroupIndex),f=t(a.rowGroup,a.initialRowGroup);null!=h||null!=f&&0!=f||(h=null,f=null);var g=t(a.pivotIndex,a.initialPivotIndex),m=t(a.pivot,a.initialPivot);null!=g||null!=m&&0!=m||(g=null,m=null);var v=t(a.aggFunc,a.initialAggFunc),y={colId:e.getColId(),sort:s,sortIndex:l,hide:c,pinned:u,width:d,flex:p,rowGroup:f,rowGroupIndex:h,pivot:m,pivotIndex:g,aggFunc:v};i(h)&&f&&(y.rowGroupIndex=r++),i(g)&&m&&(y.pivotIndex=o++),n.push(y)}),this.applyColumnState({state:n,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,t){var n=this;if(a(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 r=function(r,o,i){var a=n.compareColumnStatesAndDispatchEvents(t);n.autoGroupsNeedBuilding=!0;var s=o.slice(),l={},c={},u=[],d=[],p=0,h=n.rowGroupColumns.slice(),f=n.pivotColumns.slice();r.forEach(function(r){var o=r.colId||"";if(o.startsWith(lt))return u.push(r),void d.push(r);var a=i(o);a?(n.syncColumnWithStateItem(a,r,e.defaultState,l,c,!1,t),he(s,a)):(d.push(r),p+=1)});var g=function(r){return n.syncColumnWithStateItem(r,null,e.defaultState,l,c,!1,t)};s.forEach(g);var m=function(e,t,n,r){var o=e[n.getId()],i=e[r.getId()],a=null!=o,s=null!=i;if(a&&s)return o-i;if(a)return-1;if(s)return 1;var l=t.indexOf(n),c=t.indexOf(r),u=l>=0;return u&&c>=0?l-c:u?-1:1};n.rowGroupColumns.sort(m.bind(n,l,h)),n.pivotColumns.sort(m.bind(n,c,f)),n.updateGridColumns();var v=n.groupAutoColumns?n.groupAutoColumns.slice():[];return u.forEach(function(r){var o=n.getAutoColumn(r.colId);he(v,o),n.syncColumnWithStateItem(o,r,e.defaultState,null,null,!0,t)}),v.forEach(g),n.applyOrderAfterApplyState(e),n.updateDisplayedColumns(t),n.dispatchEverythingChanged(t),a(),{unmatchedAndAutoStates:d,unmatchedCount:p}};this.columnAnimationService.start();var i=r(e.state||[],this.primaryColumns||[],function(e){return n.getPrimaryColumn(e)}),s=i.unmatchedAndAutoStates,l=i.unmatchedCount;return(s.length>0||o(e.defaultState))&&(l=r(s,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=[],r={};e.state.forEach(function(e){if(e.colId&&!r[e.colId]){var o=t.gridColumnsMap[e.colId];o&&(n.push(o),r[e.colId]=!0)}});var o=0;this.gridColumns.forEach(function(e){var t=e.getColId();null!=r[t]||(t.startsWith(lt)?ge(n,e,o++):n.push(e))}),n=this.placeLockedColumns(n),this.doesMovePassMarryChildren(n)?this.gridColumns=n:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},t.prototype.compareColumnStatesAndDispatchEvents=function(e){var t=this,n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},r=this.getColumnState(),o={};return r.forEach(function(e){o[e.colId]=e}),function(){var i=t.getPrimaryAndSecondaryAndAutoColumns(),a=function(n,r,o,i){if(!de(r.map(i),o.map(i))){var a={type:n,columns:o,column:1===o.length?o[0]:null,source:e};t.eventService.dispatchEvent(a)}},s=function(e){var t=[];return i.forEach(function(n){var r=o[n.getColId()];r&&e(r,n)&&t.push(n)}),t},l=function(e){return e.getColId()};a(Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,t.rowGroupColumns,l),a(Ve.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,t.pivotColumns,l),s(function(e,t){var n=null!=e.aggFunc,r=n!=t.isValueActive(),o=n&&e.aggFunc!=t.getAggFunc();return r||o}).length>0&&t.dispatchColumnChangedEvent(Ve.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e),t.dispatchColumnResizedEvent(s(function(e,t){return e.width!=t.getActualWidth()}),!0,e),t.dispatchColumnPinnedEvent(s(function(e,t){return e.pinned!=t.getPinned()}),e),t.dispatchColumnVisibleEvent(s(function(e,t){return e.hide==t.isVisible()}),e),s(function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()}).length>0&&t.sortController.dispatchSortChangedEvents(e),t.normaliseColumnMovedEventForColumnState(r,e)}},t.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var n=t(e[0]),r=1;r<e.length;r++)if(n!==t(e[r]))return;return n}},t.prototype.normaliseColumnMovedEventForColumnState=function(e,t){var n=this,r=this.getColumnState(),o={};r.forEach(function(e){return o[e.colId]=e});var i={};e.forEach(function(e){o[e.colId]&&(i[e.colId]=!0)});var a=e.filter(function(e){return i[e.colId]}),s=r.filter(function(e){return i[e.colId]}),l=[];s.forEach(function(e,t){var r=a&&a[t];if(r&&r.colId!==e.colId){var o=n.getGridColumn(r.colId);o&&l.push(o)}}),l.length&&this.dispatchColumnMovedEvent({movedColumns:l,source:t,finished:!0})},t.prototype.syncColumnWithStateItem=function(e,t,n,r,i,a,s){if(e){var l=function(e,r){var i={value1:void 0,value2:void 0},a=!1;return t&&(void 0!==t[e]&&(i.value1=t[e],a=!0),o(r)&&void 0!==t[r]&&(i.value2=t[r],a=!0)),!a&&n&&(void 0!==n[e]&&(i.value1=n[e]),o(r)&&void 0!==n[r]&&(i.value2=n[r])),i},c=l("hide").value1;void 0!==c&&e.setVisible(!c,s);var u=l("pinned").value1;void 0!==u&&e.setPinned(u);var d=this.columnUtils.calculateColMinWidth(e.getColDef()),p=l("flex").value1;if(void 0!==p&&e.setFlex(p),e.getFlex()<=0){var h=l("width").value1;null!=h&&null!=d&&h>=d&&e.setActualWidth(h,s)}var f=l("sort").value1;void 0!==f&&("desc"===f||"asc"===f?e.setSort(f,s):e.setSort(void 0,s));var g=l("sortIndex").value1;if(void 0!==g&&e.setSortIndex(g),!a&&e.isPrimary()){var m=l("aggFunc").value1;void 0!==m&&("string"==typeof m?(e.setAggFunc(m),e.isValueActive()||(e.setValueActive(!0,s),this.valueColumns.push(e))):(o(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,s),he(this.valueColumns,e))));var v=l("rowGroup","rowGroupIndex"),y=v.value1,A=v.value2;void 0===y&&void 0===A||("number"==typeof A||y?(e.isRowGroupActive()||(e.setRowGroupActive(!0,s),this.rowGroupColumns.push(e)),r&&"number"==typeof A&&(r[e.getId()]=A)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,s),he(this.rowGroupColumns,e)));var w=l("pivot","pivotIndex"),b=w.value1,_=w.value2;void 0===b&&void 0===_||("number"==typeof _||b?(e.isPivotActive()||(e.setPivotActive(!0,s),this.pivotColumns.push(e)),i&&"number"==typeof _&&(i[e.getId()]=_)):e.isPivotActive()&&(e.setPivotActive(!1,s),he(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach(function(e){var r=t(e);r&&n.push(r)}),n},t.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("AG Grid: could not find column "+e),t},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,t,n){if(!e)return null;if("string"==typeof e&&n[e])return n[e];for(var r=0;r<t.length;r++)if(this.columnsMatch(t[r],e))return t[r];return this.getAutoColumn(e)},t.prototype.getSourceColumnsForGroupColumn=function(e){var t=e.getColDef().showRowGroup;if(!t)return null;if(!0===t)return this.rowGroupColumns.slice(0);var n=this.getPrimaryColumn(t);return n?[n]:null},t.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&o(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,r=e.getColDef()===t,o=e.getColId()==t;return n||r||o},t.prototype.getDisplayNameForColumn=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;var r=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,r):r},t.prototype.getDisplayNameForProvidedColumnGroup=function(e,t,n){var r=t?t.getColGroupDef():null;return r?this.getHeaderName(r,null,e,t,n):null},t.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)},t.prototype.getHeaderName=function(e,t,n,r,o){var i=e.headerValueGetter;if(i){var a={colDef:e,column:t,columnGroup:n,providedColumnGroup:r,location:o,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};return"function"==typeof i?i(a):"string"==typeof i?this.expressionService.evaluate(i,a):(console.warn("AG Grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?ft(e.field):""},t.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsService.is("suppressAggFuncInHeader"))return t;var n,r=e.getColDef().pivotValueColumn,i=null;if(o(r)){var a=this.gridOptionsService.is("removePivotHeaderRowWhenSingleValueColumn")&&1===this.valueColumns.length,s=void 0!==e.getColDef().pivotTotalColumnIds;if(a&&!s)return t;i=r?r.getAggFunc():null,n=!0}else{var l=e.isValueActive(),c=this.pivotMode||!this.isRowGroupEmpty();l&&c?(i=e.getAggFunc(),n=!0):n=!1}if(n){var u="string"==typeof i?i:"func";return this.localeService.getLocaleTextFunc()(u,u)+"("+t+")"}return t},t.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof ot)return e;var n=this.getAllDisplayedTrees(),r="number"==typeof t,o=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,function(n){if(n instanceof ot){var i=n;(r?e===i.getGroupId()&&t===i.getPartId():e===i.getGroupId())&&(o=i)}}),o},t.prototype.isReady=function(){return this.ready},t.prototype.extractValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,function(t,n){return t.setValueActive(n,e)},function(){},function(){},function(e){var t=e.aggFunc;return null===t||""===t?null:void 0!==t?!!t:void 0},function(e){return null!=e.initialAggFunc&&""!=e.initialAggFunc}),this.valueColumns.forEach(function(e){var t=e.getColDef();null!=t.aggFunc&&""!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)})},t.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,function(t,n){return t.setRowGroupActive(n,e)},function(e){return e.rowGroupIndex},function(e){return e.initialRowGroupIndex},function(e){return e.rowGroup},function(e){return e.initialRowGroup})},t.prototype.extractColumns=function(e,t,n,r,o,i,a){void 0===e&&(e=[]),void 0===t&&(t=[]);var s=[],u=[];(this.primaryColumns||[]).forEach(function(n){var d=e.indexOf(n)<0,p=n.getColDef(),h=c(i(p)),f=c(a(p)),g=l(r(p)),m=l(o(p));(void 0!==h?h:void 0!==g?null!==g&&g>=0:d?void 0!==f?f:void 0!==m&&null!=m&&m>=0:t.indexOf(n)>=0)&&((d?null!=g||null!=m:null!=g)?s.push(n):u.push(n))});var d=function(e){var t=r(e.getColDef()),n=o(e.getColDef());return null!=t?t:n};s.sort(function(e,t){var n=d(e),r=d(t);return n===r?0:n<r?-1:1});var p=[].concat(s);return t.forEach(function(e){u.indexOf(e)>=0&&p.push(e)}),u.forEach(function(e){p.indexOf(e)<0&&p.push(e)}),t.forEach(function(e){p.indexOf(e)<0&&n(e,!1)}),p.forEach(function(e){t.indexOf(e)<0&&n(e,!0)}),p},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,function(t,n){return t.setPivotActive(n,e)},function(e){return e.pivotIndex},function(e){return e.initialPivotIndex},function(e){return e.pivot},function(e){return e.initialPivot})},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,function(e){if(e instanceof se){var n=e.getColGroupDef(),r={groupId:e.getGroupId(),open:n?n.openByDefault:void 0};t.push(r)}}),this.setColumnGroupState(t,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(t){t instanceof se&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})}),e},t.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t="api"),this.columnAnimationService.start();var r=[];e.forEach(function(e){var t=e.groupId,o=e.open,i=n.getProvidedColumnGroup(t);i&&i.isExpanded()!==o&&(n.logger.log("columnGroupOpened("+i.getGroupId()+","+o+")"),i.setExpanded(o),r.push(i))}),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),r.forEach(function(e){var t={type:Ve.EVENT_COLUMN_GROUP_OPENED,columnGroup:e};n.eventService.dispatchEvent(t)}),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,t,n){var r;void 0===n&&(n="api"),r=e instanceof se?e.getId():e||"",this.setColumnGroupState([{groupId:r,open:t}],n)},t.prototype.getProvidedColumnGroup=function(e){"string"!=typeof e&&console.error("AG Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(n){n instanceof se&&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&&ve(e.groupAutoColumns,t),r=e.valueColumns&&ve(e.valueColumns,t);return n||r}):this.gridColumns.filter(function(t){return e.groupAutoColumns&&ve(e.groupAutoColumns,t)||t.isVisible()})},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach(function(e){o(e.getColDef().colSpan)&&(t=!0)}),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var t=function(t){var n=t.getColDef(),r=n.showRowGroup;n&&o(r)&&(e.groupDisplayColumns.push(t),"string"==typeof r?e.groupDisplayColumnsMap[r]=t:!0===r&&e.getRowGroupColumns().forEach(function(n){e.groupDisplayColumnsMap[n.getId()]=t}))};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},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 o(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,t){var n=this;void 0===t&&(t="api");var r=e&&e.length>0;if(r||!i(this.secondaryColumns)){if(r){this.processSecondaryColumnDefinitions(e);var o=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.destroyOldColumns(this.secondaryBalancedTree,o.columnTree),this.secondaryBalancedTree=o.columnTree,this.secondaryHeaderRowCount=o.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.gridOptionsService.get("processPivotResultColDef")||this.gridOptionsService.get("processSecondaryColDef"),n=this.gridOptionsService.get("processPivotResultColGroupDef")||this.gridOptionsService.get("processSecondaryColGroupDef");if(t||n){var r=function(e){e.forEach(function(e){if(o(e.children)){var i=e;n&&n(i),r(i.children)}else t&&t(e)})};e&&r(e)}},t.prototype.updateGridColumns=function(){var e,t=this,n=this.gridBalancedTree;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var r=this.secondaryColumns.every(function(e){return void 0!==t.gridColumnsMap[e.getColId()]});this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,r&&(e=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,e=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&e){var o=mt(this.groupAutoColumns.map(function(e){return[e,!0]}));e=e.filter(function(e){return!o.has(e)}),e=_t(this.groupAutoColumns,e)}if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(e),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach(function(e){return t.gridColumnsMap[e.getId()]=e}),this.setAutoHeightActive(),!de(n,this.gridBalancedTree)){var i={type:Ve.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(i)}},t.prototype.setAutoHeightActive=function(){this.autoHeightActive=this.gridColumns.filter(function(e){return e.isAutoHeight()}).length>0,!this.autoHeightActive||(this.autoHeightActiveAtLeastOnce=!0,this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.isRowModelType("serverSide"))||x(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=mt(e.map(function(e,t){return[e,t]})),n=!0;if(this.gridColumns.forEach(function(e){t.has(e)&&(n=!1)}),!n){var r=mt(this.gridColumns.map(function(e){return[e,!0]})),o=e.filter(function(e){return r.has(e)}),a=mt(o.map(function(e){return[e,!0]})),s=this.gridColumns.filter(function(e){return!a.has(e)}),l=o.slice();s.forEach(function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;)t.getLeafColumns().forEach(function(e){var t=l.indexOf(e)>=0,r=n.indexOf(e)<0;t&&r&&n.push(e)}),t=t.getOriginalParent();if(n.length){var r=n.map(function(e){return l.indexOf(e)}),o=Math.max.apply(Math,_t(r));ge(l,e,o+1)}else l.push(e)}else l.push(e)}),this.gridColumns=l}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.refreshQuickFilterColumns=function(){var e,t;this.groupAutoColumns?t=(null!==(e=this.primaryColumns)&&void 0!==e?e:[]).concat(this.groupAutoColumns):this.primaryColumns&&(t=this.primaryColumns),t=null!=t?t:[],this.columnsForQuickFilter=this.gridOptionsService.is("excludeHiddenColumnsFromQuickFilter")?t.filter(function(e){return e.isVisible()||e.isRowGroupActive()}):t},t.prototype.placeLockedColumns=function(e){var t=[],n=[],r=[];return e.forEach(function(e){var o=e.getColDef().lockPosition;"right"===o?r.push(e):"left"===o||!0===o?t.push(e):n.push(e)}),_t(t,n,r)},t.prototype.addAutoGroupToGridColumns=function(){if(i(this.groupAutoColumns))return this.destroyOldColumns(this.groupAutoColsBalancedTree),void(this.groupAutoColsBalancedTree=null);this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)},t.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:Ve.EVENT_DISPLAYED_COLUMNS_CHANGED};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.gridOptionsService.is("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var t=this;if(this.primaryColumns){var n=this.primaryColumns.slice(0),r=this.gridOptionsService.is("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach(function(o){if(r){var i=t.getWidthOfColsInList(o);o.forEach(function(t){i-=t.getActualWidth(),t.setLeft(i,e)})}else{var a=0;o.forEach(function(t){t.setLeft(a,e),a+=t.getActualWidth()})}fe(n,o)}),n.forEach(function(t){t.setLeft(null,e)})}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach(function(e){e.forEach(function(e){e instanceof ot&&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.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,t){var n;switch(e){case"left":n=this.viewportRowLeft[t];break;case"right":n=this.viewportRowRight[t];break;default:n=this.viewportRowCenter[t]}return i(n)&&(n=[]),n},t.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach(function(t){return e[t.getId()]=!0});var t=function(n,r,o){for(var i=!1,a=0;a<n.length;a++){var s=n[a],l=!1;if(s instanceof ae)l=!0===e[s.getId()];else{var c=s.getDisplayedChildren();c&&(l=t(c,r,o+1))}l&&(i=!0,r[o]||(r[o]=[]),r[o].push(s))}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();var e=this.viewportColumns.map(function(e){return e.getId()+"-"+(e.getPinned()||"normal")}).join("#"),t=this.viewportColumnsHash!==e;return t&&(this.viewportColumnsHash=e,this.calculateHeaderRows()),t},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 r=-1;e.resizingCols&&e.resizingCols.forEach(function(e){var n=t.displayedColumnsCenter.indexOf(e);r<n&&(r=n)});var i=function(e){var n=t.displayedColumnsCenter.indexOf(e)>r;return e.getFlex()&&n},a=this.displayedColumnsCenter.filter(function(e){return!i(e)}),s=this.displayedColumnsCenter.filter(function(e){return i(e)}),l=[];if(!s.length)return[];var c,u=[];e:for(;;){var d=s.reduce(function(e,t){return e+t.getFlex()},0);c=this.flexViewportWidth-this.getWidthOfColsInList(a);for(var p=0;p<s.length;p++){var h=s[p],f=c*h.getFlex()/d,g=0,m=h.getMinWidth(),v=h.getMaxWidth();if(o(m)&&f<m?g=m:o(v)&&f>v&&(g=v),g){h.setActualWidth(g,n),he(s,h),l.push(h),a.push(h);continue e}u[p]=Math.round(f)}break}var y=c;return s.forEach(function(e,t){e.setActualWidth(Math.min(u[t],y),n),l.push(e),y-=u[t]}),e.skipSetLeft||this.setLeftValues(n),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(l,!0,n,s),s},t.prototype.sizeColumnsToFit=function(e,t,n,r){var i,a,s,l,c;void 0===t&&(t="sizeColumnsToFit");var u={};r&&(null===(i=null==r?void 0:r.columnLimits)||void 0===i||i.forEach(function(e){var t=e.key,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["key"]);u["string"==typeof t?t:t.getColId()]=n}));var d=this.getAllDisplayedColumns(),p=e===this.getWidthOfColsInList(d);if(!(e<=0||!d.length||p)){var h=[],f=[];d.forEach(function(e){!0===e.getColDef().suppressSizeToFit?f.push(e):h.push(e)});var g=h.slice(0),m=!1,v=function(e){he(h,e),f.push(e)};for(h.forEach(function(e){return e.resetActualWidth(t)});!m;){m=!0;var y=e-this.getWidthOfColsInList(f);if(y<=0)h.forEach(function(e){var n,o,i=null!==(o=null===(n=null==u?void 0:u[e.getId()])||void 0===n?void 0:n.minWidth)&&void 0!==o?o:null==r?void 0:r.defaultMinWidth;"number"!=typeof i?e.setMinimum(t):e.setActualWidth(i)});else for(var A=y/this.getWidthOfColsInList(h),w=y,b=h.length-1;b>=0;b--){var _=h[b],C=null==u?void 0:u[_.getId()],E=null!==(a=null==C?void 0:C.minWidth)&&void 0!==a?a:null==r?void 0:r.defaultMinWidth,S=null!==(s=null==C?void 0:C.maxWidth)&&void 0!==s?s:null==r?void 0:r.defaultMaxWidth,O=null!==(l=_.getMinWidth())&&void 0!==l?l:0,x=null!==(c=_.getMaxWidth())&&void 0!==c?c:Number.MAX_VALUE,D="number"==typeof E&&E>O?E:_.getMinWidth(),P="number"==typeof S&&S<x?S:_.getMaxWidth(),M=Math.round(_.getActualWidth()*A);o(D)&&M<D?(M=D,v(_),m=!1):o(P)&&M>P?(M=P,v(_),m=!1):0===b&&(M=w),_.setActualWidth(M,t,!0),w-=M}}g.forEach(function(e){e.fireColumnWidthChangedEvent(t)}),this.setLeftValues(t),this.updateBodyWidths(),n||this.dispatchColumnResizedEvent(g,!0,t)}},t.prototype.buildDisplayedTrees=function(e){var t=[],n=[],r=[];e.forEach(function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":n.push(e);break;default:r.push(e)}});var o=new it;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,o,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,o,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(r,this.gridBalancedTree,o,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var t=function(t){e.displayedColumnsAndGroupsMap[t.getUniqueId()]=t};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,t)},t.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(e){e instanceof ot&&e.calculateDisplayedColumns()})},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){if(!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsService.is("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn();if(!(this.rowGroupColumns.length>0||this.usingTreeData)||t||e)this.groupAutoColumns=null;else{var n=this.groupAutoColumns||[],r=this.autoGroupColService.createAutoGroupColumns(n,this.rowGroupColumns);if(!this.autoColsEqual(r,this.groupAutoColumns)||this.forceRecreateAutoGroups)return this.groupAutoColumns=r,!0}return!1},t.prototype.isGroupSuppressAutoColumn=function(){var e=this.gridOptionsService.get("groupDisplayType");if(e&&rt("custom",e))return!0;var t,n,r=this.gridOptionsService.get("treeDataDisplayType");return!!r&&((n=["auto","custom"]).indexOf(t=r)<0?(console.warn("AG Grid: '"+t+"' is not a valid treeDataDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):"custom"===t)},t.prototype.autoColsEqual=function(e,t){return de(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.gridOptionsService.is("enableRtl"),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var n=0;n<t.length;n++){var r=this[t[n]]();if(r.length)return e?ue(r):r[0]}return null},t.prototype.setColumnHeaderHeight=function(e,t){if(e.setAutoHeaderHeight(t)){var n={type:Ve.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:e,columns:[e],source:"autosizeColumnHeaderHeight"};this.eventService.dispatchEvent(n)}},t.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight()},t.prototype.getColumnHeaderRowHeight=function(){var e=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),t=this.getAllDisplayedColumns().filter(function(e){return e.isAutoHeaderHeight()}).map(function(e){return e.getAutoHeaderHeight()||0});return Math.max.apply(Math,_t([e],t))},t.prototype.getHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("headerHeight"))&&void 0!==e?e:this.environment.getFromTheme(25,"headerHeight")},t.prototype.getFloatingFiltersHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("floatingFiltersHeight"))&&void 0!==e?e:this.getHeaderHeight()},t.prototype.getGroupHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("groupHeaderHeight"))&&void 0!==e?e:this.getHeaderHeight()},t.prototype.getPivotHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("pivotHeaderHeight"))&&void 0!==e?e:this.getHeaderHeight()},t.prototype.getPivotGroupHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("pivotGroupHeaderHeight"))&&void 0!==e?e:this.getGroupHeaderHeight()},At([$("expressionService")],t.prototype,"expressionService",void 0),At([$("columnFactory")],t.prototype,"columnFactory",void 0),At([$("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),At([$("ctrlsService")],t.prototype,"ctrlsService",void 0),At([$("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),At([$("columnUtils")],t.prototype,"columnUtils",void 0),At([$("columnAnimationService")],t.prototype,"columnAnimationService",void 0),At([$("autoGroupColService")],t.prototype,"autoGroupColService",void 0),At([K("aggFuncService")],t.prototype,"aggFuncService",void 0),At([K("valueCache")],t.prototype,"valueCache",void 0),At([K("animationFrameService")],t.prototype,"animationFrameService",void 0),At([$("sortController")],t.prototype,"sortController",void 0),At([$("columnDefFactory")],t.prototype,"columnDefFactory",void 0),At([G],t.prototype,"init",null),At([W],t.prototype,"destroyColumns",null),At([(n=q("loggerFactory"),function(e,t){n(e,t,0)})],t.prototype,"setBeans",null),At([z("columnModel")],t);var n}(Le),Et=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),St=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Et(t,e),t.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.environment.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var t,n=this.calculateColMinWidth(e),r=this.calculateColMaxWidth(e),o=l(e.width),i=l(e.initialWidth);return t=null!=o?o:null!=i?i:200,Math.max(Math.min(t,r),n)},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],r=!1,o=function(t,i){for(var a=0;a<t.length;a++){if(r)return;var s=t[a];s instanceof se?(o(s.getChildren(),i+1),n[i]=s):s===e&&(r=!0)}};return o(t,0),r?n:null},t.prototype.depthFirstOriginalTreeSearch=function(e,t,n){var r=this;t&&t.forEach(function(t){t instanceof se&&r.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)})},t.prototype.depthFirstAllColumnTreeSearch=function(e,t){var n=this;e&&e.forEach(function(e){e instanceof ot&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)})},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach(function(e){e instanceof ot&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)})},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([z("columnUtils")],t)}(Le),Ot=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ot(t,e),t.prototype.createDisplayedGroups=function(e,t,n,r,o){var i,a,s=this,l=[],c=this.mapOldGroupsById(o);return e.forEach(function(e){for(var o=s.getOriginalPathForColumn(t,e),u=[],d=!a,p=0;p<o.length;p++)if(d||o[p]!==a[p]){var h=s.createColumnGroup(o[p],n,c,r);u[p]=h,0==p?l.push(h):u[p-1].addChild(h)}else u[p]=i[p];0===u.length?l.push(e):ue(u).addChild(e),i=u,a=o}),this.setupParentsIntoColumns(l,null),l},t.prototype.createColumnGroup=function(e,t,n,r){var i=e.getGroupId(),a=t.getInstanceIdForKey(i),s=n[ot.createUniqueId(i,a)];return s&&s.getProvidedColumnGroup()!==e&&(s=null),o(s)?s.reset():(s=new ot(e,i,a,r),this.context.createBean(s)),s},t.prototype.mapOldGroupsById=function(e){var t={},n=function(e){e.forEach(function(e){if(e instanceof ot){var r=e;t[e.getUniqueId()]=r,n(r.getChildren())}})};return e&&n(e),t},t.prototype.setupParentsIntoColumns=function(e,t){var n=this;e.forEach(function(e){if(e.setParent(t),e instanceof ot){var r=e;n.setupParentsIntoColumns(r.getChildren(),r)}})},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],r=!1,o=function(e,i){for(var a=0;a<e.length;a++){if(r)return;var s=e[a];s instanceof se?(o(s.getChildren(),i+1),n[i]=s):s===t&&(r=!0)}};return o(e,0),r?n:(console.warn("AG Grid: could not get path"),null)},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([z("displayedGroupCreator")],t)}(Le),Dt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return Dt(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]},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([z("agStackComponentsRegistry")],t)}(Le);function Mt(e,t,n){null==n||""==n?Rt(e,t):Tt(e,t,n)}function Tt(e,t,n){e.setAttribute(It(t),n.toString())}function Rt(e,t){e.removeAttribute(It(t))}function It(e){return"aria-"+e}function Ft(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function kt(e){return"asc"===e?"ascending":"desc"===e?"descending":"mixed"===e?"other":"none"}function Lt(e){return parseInt(e.getAttribute("aria-level"),10)}function Bt(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Nt(e,t){Mt(e,"label",t)}function jt(e,t){Mt(e,"labelledby",t)}function Ut(e,t){Mt(e,"description",t)}function Vt(e,t){Mt(e,"describedby",t)}function Ht(e,t){Mt(e,"level",t)}function Gt(e,t){Mt(e,"disabled",t)}function Wt(e,t){Mt(e,"hidden",t)}function zt(e,t){Tt(e,"expanded",t)}function $t(e){Rt(e,"expanded")}function Kt(e,t){Tt(e,"setsize",t)}function Qt(e,t){Tt(e,"posinset",t)}function qt(e,t){Tt(e,"multiselectable",t)}function Yt(e,t){Tt(e,"rowcount",t)}function Xt(e,t){Tt(e,"rowindex",t)}function Zt(e,t){Tt(e,"colcount",t)}function Jt(e,t){Tt(e,"colindex",t)}function en(e,t){Tt(e,"colspan",t)}function tn(e,t){Tt(e,"sort",t)}function nn(e){Rt(e,"sort")}function rn(e,t){Mt(e,"selected",t)}function on(e,t){Tt(e,"checked",void 0===t?"mixed":t)}var an,sn,ln,cn,un,dn,pn,hn,fn=Object.freeze({__proto__:null,setAriaRole:Ft,getAriaSortState:kt,getAriaLevel:Lt,getAriaPosInSet:Bt,getAriaDescribedBy:function(e){return e.getAttribute("aria-describedby")||""},setAriaLabel:Nt,setAriaLabelledBy:jt,setAriaDescription:Ut,setAriaDescribedBy:Vt,setAriaLive:function(e,t){Mt(e,"live",t)},setAriaLevel:Ht,setAriaDisabled:Gt,setAriaHidden:Wt,setAriaExpanded:zt,removeAriaExpanded:$t,setAriaSetSize:Kt,setAriaPosInSet:Qt,setAriaMultiSelectable:qt,setAriaRowCount:Yt,setAriaRowIndex:Xt,setAriaColCount:Zt,setAriaColIndex:Jt,setAriaColSpan:en,setAriaSort:tn,removeAriaSort:nn,setAriaSelected:rn,setAriaChecked:on});function gn(){return void 0===an&&(an=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),an}function mn(){if(void 0===sn)if(gn()){var e=navigator.userAgent.match(/version\/(\d+)/i);e&&(sn=null!=e[1]?parseFloat(e[1]):0)}else sn=0;return sn}function vn(){if(void 0===ln){var e=window;ln=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return ln}function yn(){return void 0===cn&&(cn=/(firefox)/i.test(navigator.userAgent)),cn}function An(){return void 0===un&&(un=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),un}function wn(){return void 0===dn&&(dn=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),dn}function bn(){return!gn()||mn()>=15}function _n(e){if(!e)return null;var t=e.tabIndex,n=e.getAttribute("tabIndex");return-1!==t||null!==n&&(""!==n||yn())?t.toString():null}function Cn(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){var r=2*e;if(n.style.height=r+"px",r>t||n.clientHeight!==r)break;e=r}return document.body.removeChild(n),e}function En(){var e,t,n;return null!==(t=null===(e=document.body)||void 0===e?void 0:e.clientWidth)&&void 0!==t?t:window.innerHeight||(null===(n=document.documentElement)||void 0===n?void 0:n.clientWidth)||-1}function Sn(){var e,t,n;return null!==(t=null===(e=document.body)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:window.innerHeight||(null===(n=document.documentElement)||void 0===n?void 0:n.clientHeight)||-1}function On(){return null==hn&&xn(),hn}function xn(){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&&(hn=n,pn=0===n)}function Dn(){return null==pn&&xn(),pn}var Pn=Object.freeze({__proto__:null,isBrowserSafari:gn,getSafariVersion:mn,isBrowserChrome:vn,isBrowserFirefox:yn,isMacOsUserAgent:An,isIOSUserAgent:wn,browserSupportsPreventScroll:bn,getTabIndex:_n,getMaxDivHeight:Cn,getBodyWidth:En,getBodyHeight:Sn,getScrollbarWidth:On,isInvisibleScrollbar:Dn});function Mn(e,t){return e.toString().padStart(t,"0")}function Tn(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}function Rn(e,t,n){return"number"!=typeof e?"":e.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}var In=Object.freeze({__proto__:null,padStartWidthZeros:Mn,createArrayOfNumbers:Tn,cleanNumber:function(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null},decToHex:function(e,t){for(var n="",r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(e,t,n){return"number"!=typeof e?"":Rn(Math.round(100*e)/100,t,n)},formatNumberCommas:Rn,sum:function(e){return null==e?null:e.reduce(function(e,t){return e+t},0)},zeroOrGreater:function(e,t){return e>=0?e:t},oneOrGreater:function(e,t){var n=parseInt(e,10);return!isNaN(n)&&isFinite(n)&&n>0?n:t}}),Fn=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function kn(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n="-"),!e)return null;var r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(function(e){return Mn(e,2)}).join(n);return t&&(r+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map(function(e){return Mn(e,2)}).join(":")),r}var Ln=function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Bn(e,t){void 0===t&&(t="YYYY-MM-DD");var n=Mn(e.getFullYear(),4),r=["January","February","March","April","May","June","July","August","September","October","November","December"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i={YYYY:function(){return n.slice(n.length-4,n.length)},YY:function(){return n.slice(n.length-2,n.length)},Y:function(){return""+e.getFullYear()},MMMM:function(){return r[e.getMonth()]},MMM:function(){return r[e.getMonth()].slice(0,3)},MM:function(){return Mn(e.getMonth()+1,2)},Mo:function(){return""+(e.getMonth()+1)+Ln(e.getMonth()+1)},M:function(){return""+(e.getMonth()+1)},Do:function(){return""+e.getDate()+Ln(e.getDate())},DD:function(){return Mn(e.getDate(),2)},D:function(){return""+e.getDate()},dddd:function(){return o[e.getDay()]},ddd:function(){return o[e.getDay()].slice(0,3)},dd:function(){return o[e.getDay()].slice(0,2)},do:function(){return""+e.getDay()+Ln(e.getDay())},d:function(){return""+e.getDay()}},a=new RegExp(Object.keys(i).join("|"),"g");return t.replace(a,function(e){return e in i?i[e]():e})}function Nn(e){if(!e)return null;var t=Fn(e.split(" "),2),n=t[0],r=t[1];if(!n)return null;var o=n.split("-").map(function(e){return parseInt(e,10)});if(3!==o.filter(function(e){return!isNaN(e)}).length)return null;var i=Fn(o,3),a=i[0],s=i[1],l=i[2],c=new Date(a,s-1,l);if(c.getFullYear()!==a||c.getMonth()!==s-1||c.getDate()!==l)return null;if(!r||"00:00:00"===r)return c;var u=Fn(r.split(":").map(function(e){return parseInt(e,10)}),3),d=u[0],p=u[1],h=u[2];return d>=0&&d<24&&c.setHours(d),p>=0&&p<60&&c.setMinutes(p),h>=0&&h<60&&c.setSeconds(h),c}var jn,Un=Object.freeze({__proto__:null,serialiseDate:kn,dateToFormattedString:Bn,parseDateTimeFromString:Nn}),Vn=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Hn="[tabindex], input, select, button, textarea, [href]",Gn=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *";function Wn(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,"input, select, button, textarea"),r=t.call(e,Gn),o=ir(e);return n&&!r&&o}function zn(e,t,n){void 0===n&&(n={});var r=n.skipAriaHidden;e.classList.toggle("ag-hidden",!t),r||Wt(e,!t)}function $n(e,t,n){void 0===n&&(n={});var r=n.skipAriaHidden;e.classList.toggle("ag-invisible",!t),r||Wt(e,!t)}function Kn(e,t){var n="disabled",r=t?function(e){return e.setAttribute(n,"")}:function(e){return e.removeAttribute(n)};r(e),Cr(e.querySelectorAll("input"),function(e){return r(e)})}function Qn(e,t,n){for(var r=0;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof n){if(++r>n)break}else if(e===n)break}return!1}function qn(e){var t=window.getComputedStyle(e),n=t.height,r=t.width,o=t.borderTopWidth,i=t.borderRightWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.paddingTop,c=t.paddingRight,u=t.paddingBottom,d=t.paddingLeft,p=t.marginTop,h=t.marginRight,f=t.marginBottom,g=t.marginLeft,m=t.boxSizing;return{height:parseFloat(n),width:parseFloat(r),borderTopWidth:parseFloat(o),borderRightWidth:parseFloat(i),borderBottomWidth:parseFloat(a),borderLeftWidth:parseFloat(s),paddingTop:parseFloat(l),paddingRight:parseFloat(c),paddingBottom:parseFloat(u),paddingLeft:parseFloat(d),marginTop:parseFloat(p),marginRight:parseFloat(h),marginBottom:parseFloat(f),marginLeft:parseFloat(g),boxSizing:m}}function Yn(e){var t=qn(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function Xn(e){var t=qn(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function Zn(e){var t=qn(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)}function Jn(e){var t=qn(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)}function er(){if("boolean"==typeof jn)return jn;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,jn=0===Math.floor(e.scrollLeft),document.body.removeChild(e),jn}function tr(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),vn()&&!er()&&(n=e.scrollWidth-e.clientWidth-n)),n}function nr(e,t,n){n&&(er()?t*=-1:(gn()||vn())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function rr(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function or(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ir(e){return null!==e.offsetParent}function ar(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function sr(e){return e&&e.clientHeight?e.clientHeight:0}function lr(e){return e&&e.clientWidth?e.clientWidth:0}function cr(e,t,n){if(!n||n.nextSibling!==t){var r=document.activeElement,o=t.contains(r);n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t),o&&r&&bn()&&r.focus({preventScroll:!0})}}function ur(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=e.children[n];o!==r&&e.insertBefore(r,o)}}function dr(e,t,n){n?n.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function pr(e,t){var n,r;if(t)try{for(var o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=Vn(i.value,2),s=a[0],l=a[1];if(s&&s.length&&null!=l){var c=s.replace(/[A-Z]/g,function(e){return"-"+e.toLocaleLowerCase()}),u=l.toString(),d=u.replace(/\s*!important/g,"").length!=u.length?"important":void 0;e.style.setProperty(c,l,d)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function hr(e){return e.clientWidth<e.scrollWidth}function fr(e){return e.clientHeight<e.scrollHeight}function gr(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):mr(e,t)}function mr(e,t){t=yr(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function vr(e,t){t=yr(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function yr(e){return"number"==typeof e?e+"px":e}function Ar(e){return e instanceof Node||e instanceof HTMLElement}function wr(e){if(null==e)return[];var t=[];return Cr(e,function(e){return t.push(e)}),t}function br(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n];t(r.name,r.value)}}function _r(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n.toString())}function Cr(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n])}var Er=Object.freeze({__proto__:null,radioCssClass:function(e,t,n){for(var r=e.parentElement,o=r&&r.firstChild;o;)t&&o.classList.toggle(t,o===e),n&&o.classList.toggle(n,o!==e),o=o.nextSibling},FOCUSABLE_SELECTOR:Hn,FOCUSABLE_EXCLUDE:Gn,isFocusableFormField:Wn,setDisplayed:zn,setVisible:$n,setDisabled:Kn,isElementChildOfClass:Qn,getElementSize:qn,getInnerHeight:Yn,getInnerWidth:Xn,getAbsoluteHeight:Zn,getAbsoluteWidth:Jn,isRtlNegativeScroll:er,getScrollLeft:tr,setScrollLeft:nr,clearElement:rr,removeElement:function(e,t){or(e.querySelector(t))},removeFromParent:or,isVisible:ir,loadTemplate:ar,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:sr,offsetWidth:lr,ensureDomOrder:cr,setDomChildOrder:ur,insertWithDomOrder:dr,prependDC:function(e,t){o(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},addStylesToElement:pr,isHorizontalScrollShowing:hr,isVerticalScrollShowing:fr,setElementWidth:gr,setFixedWidth:mr,setElementHeight:function(e,t){"flex"===t?(e.style.removeProperty("height"),e.style.removeProperty("minHeight"),e.style.removeProperty("maxHeight"),e.style.flex="1 1 auto"):vr(e,t)},setFixedHeight:vr,formatSize:yr,isNodeOrElement:Ar,copyNodeList:wr,iterateNamedNodeMap:br,addOrRemoveAttribute:_r,nodeListForEach:Cr}),Sr={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",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",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",clipboardCut:"cut",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 Or(e,t,n){var r=xr(e,t,n);if(r){var o=r.className;if("string"==typeof o&&o.indexOf("ag-icon")>-1||"object"==typeof o&&o["ag-icon"])return r}var i=document.createElement("span");return i.appendChild(r),i}function xr(e,t,n,r){var o=null,i=n&&n.getColDef().icons;if(i&&(o=i[e]),t&&!o){var a=t.get("icons");a&&(o=a[e])}if(!o){var s=document.createElement("span"),l=Sr[e];return l||(r?l=e:(console.warn("AG Grid: Did not find icon "+e),l="")),s.setAttribute("class","ag-icon ag-icon-"+l),s.setAttribute("unselectable","on"),Ft(s,"presentation"),s}var c=void 0;if("function"==typeof o)c=o();else{if("string"!=typeof o)throw new Error("icon from grid options needs to be a string or a function");c=o}return"string"==typeof c?ar(c):Ar(c)?c:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Dr=Object.freeze({__proto__:null,iconNameClassMap:Sr,createIcon:Or,createIconNoSpan:xr}),Pr=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.D="KeyD",e.V="KeyV",e.X="KeyX",e.Y="KeyY",e.Z="KeyZ",e}();function Mr(e){return!(e.altKey||e.ctrlKey||e.metaKey)&&1===e.key.length}function Tr(e,t,n,r,o){var i=r?r.getColDef().suppressKeyboardEvent:void 0;if(!i)return!1;var a={event:t,editing:o,column:r,api:e.api,node:n,data:n.data,colDef:r.getColDef(),context:e.context,columnApi:e.columnApi};return!(!i||!i(a))}function Rr(e,t,n,r){var i=r.getDefinition(),a=i&&i.suppressHeaderKeyboardEvent;return!!o(a)&&!!a({api:e.api,columnApi:e.columnApi,context:e.context,colDef:i,column:r,headerRowIndex:n,event:t})}function Ir(e){var t;switch(e.keyCode){case 65:t=Pr.A;break;case 67:t=Pr.C;break;case 86:t=Pr.V;break;case 68:t=Pr.D;break;case 90:t=Pr.Z;break;case 89:t=Pr.Y;break;default:t=e.code}return t}function Fr(e,t){return void 0===t&&(t=!1),e===Pr.DELETE||!t&&e===Pr.BACKSPACE&&An()}var kr=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Mr,isUserSuppressingKeyboardEvent:Tr,isUserSuppressingHeaderKeyboardEvent:Rr,normaliseQwertyAzerty:Ir,isDeleteKey:Fr});function Lr(e,t,n){if(0===n)return!1;var r=Math.abs(e.clientX-t.clientX),o=Math.abs(e.clientY-t.clientY);return Math.max(r,o)<=n}var Br=Object.freeze({__proto__:null,areEventsNear:Lr}),Nr=Object.freeze({__proto__:null,sortRowNodesByOrder:function(e,t){if(!e)return!1;for(var n=function(e,n){var r=t[e.id],o=t[n.id],i=void 0!==r,a=void 0!==o;return i&&a?r-o:i||a?i?1:-1:e.__objectId-n.__objectId},r=!1,o=0;o<e.length-1;o++)if(n(e[o],e[o+1])>0){r=!0;break}return!!r&&(e.sort(n),!0)},traverseNodesWithKey:function(e,t){var n=[];!function e(r){r&&r.forEach(function(r){if(r.group||r.hasChildren()){n.push(r.key);var o=n.join("|");t(r,o),e(r.childrenAfterGroup),n.pop()}})}(e)}});function jr(e){var t=new Set;return e.forEach(function(e){return t.add(e)}),t}var Ur,Vr=Object.freeze({__proto__:null,convertToSet:jr}),Hr=function(){return Hr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hr.apply(this,arguments)},Gr=Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr({},fn),we),Pn),Un),Er),Fe),j),Xe),d),Dr),kr),vt),Br),In),S),Nr),Vr),gt),Wr=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}();!function(e){e[e.IN_PROGRESS=0]="IN_PROGRESS",e[e.RESOLVED=1]="RESOLVED"}(Ur||(Ur={}));var zr,$r=function(){function e(e){var t=this;this.status=Ur.IN_PROGRESS,this.resolution=null,this.waiters=[],e(function(e){return t.onDone(e)},function(e){return t.onReject(e)})}return e.all=function(t){return new e(function(e){var n=t.length,r=new Array(n);t.forEach(function(t,o){t.then(function(t){r[o]=t,0===--n&&e(r)})})})},e.resolve=function(t){return void 0===t&&(t=null),new e(function(e){return e(t)})},e.prototype.then=function(t){var n=this;return new e(function(e){n.status===Ur.RESOLVED?e(t(n.resolution)):n.waiters.push(function(n){return e(t(n))})})},e.prototype.resolveNow=function(e,t){return this.status===Ur.RESOLVED?t(this.resolution):e},e.prototype.onDone=function(e){this.status=Ur.RESOLVED,this.resolution=e,this.waiters.forEach(function(t){return t(e)})},e.prototype.onReject=function(e){console.warn("TBI")},e}(),Kr=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}(),Qr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qr=function(){return qr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qr.apply(this,arguments)},Yr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(zr||(zr={}));var Xr=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=zr.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=t,n}return Qr(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsService.is("tooltipMouseTrack");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(!wn()&&this.state==zr.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=zr.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===zr.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=zr.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===zr.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.getTooltipDelay=function(e){var t=this.gridOptionsService.getNum("tooltipShowDelay"),n=this.gridOptionsService.getNum("tooltipHideDelay"),r="show"===e?t:n,i=pt(e);return o(r)?(r<0&&x(function(){return console.warn("AG Grid: tooltip"+i+"Delay should not be lower than 0")},"tooltip"+i+"DelayWarn"),Math.max(200,r)):null},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=zr.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=qr({},this.parentComp.getTooltipParams());if(o(e.value)){this.state=zr.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!==zr.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(t);else{var n=t.getGui();this.tooltipComp=t,n.classList.contains("ag-tooltip")||n.classList.add("ag-tooltip-custom");var r=this.localeService.getLocaleTextFunc(),o=this.popupService.addPopup({eChild:n,ariaLabel:r("ariaLabelTooltip","Tooltip")});o&&(this.tooltipPopupDestroyFunc=o.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},t.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Yr([$("popupService")],t.prototype,"popupService",void 0),Yr([$("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Yr([G],t.prototype,"postConstruct",null),t}(Le),Zr=function(){function e(e){this.cssClassStates={},this.getGui=e}return e.prototype.addCssClass=function(e){var t=this,n=(e||"").split(" ");if(n.length>1)n.forEach(function(e){return t.addCssClass(e)});else if(!0!==this.cssClassStates[e]&&e.length){var r=this.getGui();r&&r.classList.add(e),this.cssClassStates[e]=!0}},e.prototype.removeCssClass=function(e){var t=this,n=(e||"").split(" ");if(n.length>1)n.forEach(function(e){return t.removeCssClass(e)});else if(!1!==this.cssClassStates[e]&&e.length){var r=this.getGui();r&&r.classList.remove(e),this.cssClassStates[e]=!1}},e.prototype.containsCssClass=function(e){var t=this.getGui();return!!t&&t.classList.contains(e)},e.prototype.addOrRemoveCssClass=function(e,t){var n=this;if(e){if(e.indexOf(" ")>=0){var r=(e||"").split(" ");if(r.length>1)return void r.forEach(function(e){return n.addOrRemoveCssClass(e,t)})}if(this.cssClassStates[e]!==t&&e.length){var o=this.getGui();o&&o.classList.toggle(e,t),this.cssClassStates[e]=t}}},e}(),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},to=new Wr,no=function(e){function t(t){var n=e.call(this)||this;return n.displayed=!0,n.visible=!0,n.compId=to.next(),n.cssClassManager=new Zr(function(){return n.eGui}),t&&n.setTemplate(t),n}return Jr(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.is("enableBrowserTooltips")},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 Xr(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var n=this;wr(e.childNodes).forEach(function(r){if(r instanceof HTMLElement){var o=n.createComponentFromElement(r,function(e){e.getGui()&&n.copyAttributesFromNode(r,e.getGui())},t);if(o){if(o.addItems&&r.children.length){n.createChildComponentsFromTags(r,t);var i=Array.prototype.slice.call(r.children);o.addItems(i)}n.swapComponentForNode(o,e,r)}else r.childNodes&&n.createChildComponentsFromTags(r,t)}})},t.prototype.createComponentFromElement=function(e,n,r){var o=e.nodeName,i=r?r[e.getAttribute("ref")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(o);if(a){t.elementGettingCreated=e;var s=new a(i);return s.setParentComponent(this),this.createBean(s,null,n),s}return null},t.prototype.copyAttributesFromNode=function(e,t){br(e.attributes,function(e,n){return t.setAttribute(e,n)})},t.prototype.swapComponentForNode=function(e,t,n){var r=e.getGui();t.replaceChild(r,n),t.insertBefore(document.createComment(n.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,n)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var n=this;this.iterateOverQuerySelectors(function(r){n[r.attributeName]===t&&(n[r.attributeName]=e)})},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var n=t.__agComponentMetaData,r=D(t.constructor);n&&n[r]&&n[r].querySelectors&&n[r].querySelectors.forEach(function(t){return e(t)}),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=ar(e);this.setTemplateFromElement(n,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors(function(n){var r=function(e){return t[n.attributeName]=e};if(n.refSelector&&e.eGui.getAttribute("ref")===n.refSelector)r(e.eGui);else{var o=e.eGui.querySelector(n.querySelector);o&&r(o.__agComponent||o)}})}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(null!=e)if(t||(t=this.eGui),Ar(e))t.appendChild(e);else{var n=e;t.appendChild(n.getGui())}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e,t){if(void 0===t&&(t={}),e!==this.visible){this.visible=e;var n=t.skipAriaHidden;$n(this.eGui,e,{skipAriaHidden:n})}},t.prototype.setDisplayed=function(e,n){if(void 0===n&&(n={}),e!==this.displayed){this.displayed=e;var r=n.skipAriaHidden;zn(this.eGui,e,{skipAriaHidden:r});var o={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(o)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var t=this.eGui;t&&t.__agComponent&&(t.__agComponent=void 0),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t,n){var r=this;this.eGui.addEventListener(e,t,n),this.addDestroyFunc(function(){return r.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",eo([$("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),eo([H],t.prototype,"preConstructOnComponent",null),eo([H],t.prototype,"createChildComponentsPreConstruct",null),t}(Le);function ro(e){return io.bind(this,e,void 0)}function oo(e){return io.bind(this,"[ref="+e+"]",e)}function io(e,t,n,r,o){null!==e?"number"!=typeof o?function(e,t,n){var r=function(e,t){return e.__agComponentMetaData||(e.__agComponentMetaData={}),e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={}),e.__agComponentMetaData[t]}(e,D(e.constructor));r[t]||(r[t]=[]),r[t].push(n)}(n,"querySelectors",{attributeName:r,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var ao=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),so=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},lo=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 ao(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.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+n("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance(function(n){if(n.getModelAsString){var r=n.getModelAsString(e);t.eFloatingFilterText.setValue(r)}}):this.eFloatingFilterText.setValue("")},so([oo("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),so([$("columnModel")],t.prototype,"columnModel",void 0),t}(no),co=function(){function e(e,t,n,r){var o=this;this.alive=!0,this.context=e,this.eParent=r,t.getDateCompDetails(n).newAgStackInstance().then(function(t){o.alive?(o.dateComp=t,t&&(r.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),o.tempValue&&t.setDate(o.tempValue),null!=o.disabled&&o.setDateCompDisabled(o.disabled))):e.destroyBean(t)})}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setDisabled=function(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e},e.prototype.setDisplayed=function(e){zn(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}(),uo=function(){return uo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},uo.apply(this,arguments)},po=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e),this.checkForDeprecatedParams()},e.prototype.checkForDeprecatedParams=function(){this.filterOptions.some(function(e){return"string"!=typeof e&&null!=e.test})&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some(function(e){return"string"!=typeof e&&null!=e.hideFilterInput})&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach(function(t){if("string"!=typeof t)if([["displayKey"],["displayName"],["predicate","test"]].every(function(e){return!!e.some(function(e){return null!=t[e]})||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+e+"'"),!1)})){var n=t.test,r=uo({},t);null!=n&&null==t.predicate&&(r.predicate=function(e,t){return n(e[0],t)},delete r.test),r.hideFilterInput&&null==r.numberOfInputs&&(r.numberOfInputs=0,delete r.hideFilterInput),e.customFilterOptions[t.displayKey]=r}else e.filterOptions=e.filterOptions.filter(function(e){return e===t})||[]})},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"==typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),ho={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"},fo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),go=function(){return go=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},go.apply(this,arguments)},mo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vo=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.eFocusableElement=t,r.callbacks=n,r.callbacks=go({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=r.focusService.findNextFocusableElement(r.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},n),r}return fo(t,e),t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var t=this;this.addManagedListener(e,"keydown",function(e){e.defaultPrevented||Se(e)||(t.callbacks.shouldStopEventPropagation(e)?Ee(e):e.key===Pr.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))})},t.FOCUS_MANAGED_CLASS="ag-focus-managed",mo([$("focusService")],t.prototype,"focusService",void 0),mo([G],t.prototype,"postConstruct",null),t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ao=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wo="ag-resizer-wrapper",bo='<div class="'+wo+'">\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>',_o=function(e){function t(t,n){var r=e.call(this)||this;return r.element=t,r.dragStartPosition={x:0,y:0},r.position={x:0,y:0},r.lastSize={width:-1,height:-1},r.positioned=!1,r.resizersAdded=!1,r.resizeListeners=[],r.boundaryEl=null,r.isResizing=!1,r.isMoving=!1,r.resizable={},r.movable=!1,r.currentResizer=null,r.config=Object.assign({},{popup:!1},n),r}return yo(t,e),t.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,n=e.clientWidth/2-this.getWidth()/2,r=t/2-this.getHeight()/2;this.offsetElement(n,r)},t.prototype.initialisePosition=function(){if(!this.positioned){var e=this.config,t=e.centered,n=e.forcePopupParentAsOffsetParent,r=e.minWidth,o=e.width,i=e.minHeight,a=e.height,s=e.x,l=e.y;this.offsetParent||this.setOffsetParent();var c=0,u=0,d=!!this.element.offsetParent;if(d){var p=this.findBoundaryElement(),h=window.getComputedStyle(p);if(null!=h.minWidth){var f=p.offsetWidth-this.element.offsetWidth;u=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=p.offsetHeight-this.element.offsetHeight;c=parseInt(h.minHeight,10)-g}}if(this.minHeight=i||c,this.minWidth=r||u,o&&this.setWidth(o),a&&this.setHeight(a),o&&a||this.refreshSize(),t)this.center();else if(s||l)this.offsetElement(s,l);else if(d&&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 r=!!e[n],o=t.getResizerElement(n),i={dragStartPixels:0,eElement:o,onDragStart:function(e){return t.onResizeStart(e,n)},onDragging:t.onResize.bind(t),onDragStop:function(e){return t.onResizeEnd(e,n)}};(r||!t.isAlive()&&!r)&&(r?(t.dragService.addDragSource(i),t.resizeListeners.push(i),o.style.pointerEvents="all"):o.style.pointerEvents="none",t.resizable[n]=r)})},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,t=e.height,n=e.width;-1!==n&&(this.element.style.width=n+"px"),-1!==t&&(this.element.style.height=t+"px")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var t=this.config.popup,n=this.element,r=!1;if("string"==typeof e&&-1!==e.indexOf("%"))vr(n,e),e=Zn(n),r=!0;else if(this.positioned){e=Math.max(this.minHeight,e);var o=this.getAvailableHeight();o&&e>o&&(e=o)}this.getHeight()!==e&&(r?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?vr(n,e):(n.style.height=e+"px",n.style.flex="0 0 auto",this.lastSize.height="number"==typeof e?e:parseFloat(e)))},t.prototype.getAvailableHeight=function(){var e=this.config,t=e.popup,n=e.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var r=this.offsetParent.clientHeight;if(!r)return null;var o=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),a=t?this.position.y:o.top,s=t?0:i.top,l=0;if(n){var c=this.element.parentElement;c&&(l=c.getBoundingClientRect().bottom-o.bottom)}return r+s-a-l},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var t=this.element,n=this.config.popup,r=!1;if("string"==typeof e&&-1!==e.indexOf("%"))mr(t,e),e=Jn(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var o=this.offsetParent.clientWidth,i=n?this.position.x:this.element.getBoundingClientRect().left;o&&e+i>o&&(e=o-i)}this.getWidth()!==e&&(r?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?mr(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,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:e,y:t}}}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top))},t.prototype.constrainSizeToAvailableHeight=function(e){var t=this;this.config.forcePopupParentAsOffsetParent&&(e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),function(){var e=t.getAvailableHeight();t.element.style.setProperty("max-height",e+"px")}):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0)))},t.prototype.setPosition=function(e,t){this.position.x=e,this.position.y=t},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=e.e,n=e.isLeft,r=e.isTop,o=e.anywhereWithin,i=e.topBuffer,a=t.clientX-this.dragStartPosition.x,s=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!n,!!o,a)?0:a,movementY:this.shouldSkipY(t,!!r,i,s)?0:s}},t.prototype.shouldSkipX=function(e,t,n,r){var o=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.x:o.left;return!!(s<=0&&i.left>=e.clientX||i.right<=e.clientX&&i.right<=a.right)||(t?r<0&&e.clientX>s+i.left||r>0&&e.clientX<s+i.left:n?r<0&&e.clientX>a.right||r>0&&e.clientX<s+i.left:r<0&&e.clientX>a.right||r>0&&e.clientX<a.right)},t.prototype.shouldSkipY=function(e,t,n,r){void 0===n&&(n=0);var o=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.y:o.top;return!!(s<=0&&i.top>=e.clientY||i.bottom<=e.clientY&&i.bottom<=a.bottom)||(t?r<0&&e.clientY>s+i.top+n||r>0&&e.clientY<s+i.top:r<0&&e.clientY>a.bottom||r>0&&e.clientY<a.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(bo,"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("."+wo);e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");var n=this.config,r=n.popup,o=n.forcePopupParentAsOffsetParent;r||o||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter(function(e){return!e.classList.contains("ag-hidden")}):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,n=0,r=0;r<e.length;r++){var o=e[r],i=!!o.style.flex&&"0 0 auto"!==o.style.flex;if(o!==this.element){var a=this.minHeight||0,s=this.minWidth||0;if(i){var l=window.getComputedStyle(o);l.minHeight&&(a=parseInt(l.minHeight,10)),l.minWidth&&(s=parseInt(l.minWidth,10))}else a=o.offsetHeight,s=o.offsetWidth;t+=a,n+=s}}return{height:t,width:n}},t.prototype.applySizeToSiblings=function(e){var t=null,n=this.getSiblings();if(n){for(var r=0;r<n.length;r++){var o=n[r];o!==t&&(e?o.style.height=o.offsetHeight+"px":o.style.width=o.offsetWidth+"px",o.style.flex="0 0 auto",o===this.element&&(t=n[r+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}},t.prototype.isResizable=function(){return Object.values(this.resizable).some(function(e){return e})},t.prototype.onResize=function(e){if(this.isResizing&&this.currentResizer){var t=this.config,n=t.popup,r=t.forcePopupParentAsOffsetParent,o=this.currentResizer,i=o.isTop,a=o.isRight,s=o.isBottom,l=o.isLeft,c=a||l,u=s||i,d=this.calculateMouseMovement({e,isLeft:l,isTop:i}),p=d.movementX,h=d.movementY,f=this.position.x,g=this.position.y,m=0,v=0;if(c&&p){var y=l?-1:1,A=this.getWidth(),w=A+p*y,b=!1;l&&(f+(m=A-w)<=0||w<=this.minWidth)&&(b=!0,m=0),b||this.setWidth(w)}if(u&&h){y=i?-1:1;var _=this.getHeight(),C=_+h*y,E=!1;i?(g+(v=_-C)<=0||C<=this.minHeight)&&(E=!0,v=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&_<C&&this.getMinSizeOfSiblings().height+C>this.element.parentElement.offsetHeight&&(E=!0),E||this.setHeight(C)}this.updateDragStartPosition(e.clientX,e.clientY),((n||r)&&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.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi};this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchEvent(n)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t,n=this.position,r=n.x,o=n.y;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());var i=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:t}),a=i.movementX,s=i.movementY;this.offsetElement(r+a,o+s),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.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},Ao([$("popupService")],t.prototype,"popupService",void 0),Ao([$("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Ao([$("dragService")],t.prototype,"dragService",void 0),t}(Le),Co=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Eo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},So=function(e){function t(t){var n=e.call(this)||this;return n.filterNameKey=t,n.applyActive=!1,n.hidePopup=null,n.debouncePending=!1,n.appliedModel=null,n}return Co(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new vo(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new _o(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},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=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit);var n='\n            <form class="ag-filter-wrapper">\n                <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper" ref="eFilterBody">\n                    '+this.createBodyTemplate()+"\n                </div>\n            </form>";this.setTemplate(n,e),(t=this.getGui())&&t.addEventListener("submit",this.onFormSubmit)},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"),jr(t).forEach(function(t){return function(t){var r,o;switch(t){case"apply":r=e.translate("applyFilter"),o=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":r=e.translate("clearFilter"),o=function(){return e.onBtClear()};break;case"reset":r=e.translate("resetFilter"),o=function(){return e.onBtReset()};break;case"cancel":r=e.translate("cancelFilter"),o=function(t){e.onBtCancel(t)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var i=ar('<button\n                    type="'+("apply"===t?"submit":"button")+'"\n                    ref="'+t+'FilterButton"\n                    class="ag-standard-button ag-filter-apply-panel-button"\n                >'+r+"\n                </button>");n.appendChild(i),e.addManagedListener(i,"click",o)}(t)}),this.getGui().appendChild(n)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=this,n=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),r=k(this.checkApplyDebounce.bind(this),n);this.onBtApplyDebounce=function(){e.debouncePending=!0,r()}},t.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},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("api")})},t.prototype.onBtCancel=function(e){var t=this;this.resetUiToActiveModel(this.getModel(),function(){t.handleCancelEnd(e)})},t.prototype.handleCancelEnd=function(e){this.providedFilterParams.closeOnApply&&this.close(e)},t.prototype.resetUiToActiveModel=function(e,t){var n=this,r=function(){n.onUiChanged(!1,"prevent"),null==t||t()};null!=e?this.setModelIntoUi(e).then(r):this.resetUiToDefaults().then(r)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(e){var t=this.getModelFromUi();if(!this.isModelValid(t))return!1;var n=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(n,t)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),n&&n.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(n)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var t,n=e,r=n&&n.key;"Enter"!==r&&"Space"!==r||(t={keyboardEvent:n}),this.hidePopup(t),this.hidePopup=null}},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var n=this.isModelValid(this.getModelFromUi());Kn(this.getRefElement("applyFilterButton"),!n)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(null==e?void 0:e.container)},t.prototype.refreshFilterResizer=function(e){if(this.positionableFeature&&"toolPanel"!==e){var t="floatingFilter"===e,n=this.positionableFeature,r=this.gridOptionsService;t?(n.restoreLastSize(),n.setResizable(r.is("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},t.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},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(){var t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.localeService.getLocaleTextFunc()(e,ho[e])},t.prototype.getCellValue=function(e){var t=this.providedFilterParams,n=t.api,r=t.colDef,o=t.column,i=t.columnApi,a=t.context;return this.providedFilterParams.valueGetter({api:n,colDef:r,column:o,columnApi:i,context:a,data:e.data,getValue:function(t){return e.data[t]},node:e})},t.prototype.getPositionableElement=function(){return this.eFilterBody},Eo([$("rowModel")],t.prototype,"rowModel",void 0),Eo([oo("eFilterBody")],t.prototype,"eFilterBody",void 0),Eo([G],t.prototype,"postConstruct",null),t}(no),Oo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xo=function(e){function t(t,n){var r=e.call(this,n)||this;return r.labelSeparator="",r.labelAlignment="left",r.disabled=!1,r.label="",r.config=t||{},r}return Oo(t,e),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,t=e.labelSeparator,n=e.label,r=e.labelWidth,o=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=n&&this.setLabel(n),null!=r&&this.setLabelWidth(r),this.setLabelAlignment(o||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){rr(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(zn(this.eLabel,!1),Ft(this.eLabel,"presentation")):(zn(this.eLabel,!0),Ft(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.setLabelEllipsis=function(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this},t.prototype.setLabelWidth=function(e){return null==this.label||gr(this.eLabel,e),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return Kn(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([G],t.prototype,"postConstruct",null),t}(no),Do=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Po=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.className=r,o}return Do(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 mr(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.EVENT_CHANGED="valueChange",t}(xo),Mo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),To=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ro=function(e){function t(t,n,r,o){var i=e.call(this,t,'<div class="ag-picker-field" role="presentation">\n                <div ref="eLabel"></div>\n                <div ref="eWrapper"\n                    class="ag-wrapper ag-picker-field-wrapper"\n                    tabIndex="-1"\n                    aria-expanded="false"\n                    '+(o?'role="'+o+'"':"")+'\n                >\n                    <div ref="eDisplayField" class="ag-picker-field-display"></div>\n                    <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n                </div>\n            </div>',n)||this;return i.pickerIcon=r,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return Mo(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",n),Vt(this.eWrapper,n);var r=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},o=this.getGui();if(this.addManagedListener(o,"mousedown",function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&ir(t.pickerComponent.getGui())&&o.contains(e.target)&&(t.skipClick=!0)}),this.addManagedListener(o,"keydown",function(e){switch(e.key){case Pr.UP:case Pr.DOWN:case Pr.ENTER:case Pr.SPACE:r();case Pr.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}}),this.addManagedListener(this.eWrapper,"click",r),this.addManagedListener(this.eLabel,"click",r),this.pickerIcon){var i=xr(this.pickerIcon,this.gridOptionsService);i&&this.eIcon.appendChild(i)}},t.prototype.refreshLabel=function(){o(this.getLabel())?jt(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return Nt(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return gr(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},To([oo("eLabel")],t.prototype,"eLabel",void 0),To([oo("eWrapper")],t.prototype,"eWrapper",void 0),To([oo("eDisplayField")],t.prototype,"eDisplayField",void 0),To([oo("eIcon")],t.prototype,"eIcon",void 0),t}(Po),Io=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fo=function(e){function t(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 Io(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 Pr.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case Pr.DOWN:case Pr.UP:var r=t===Pr.DOWN,o=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(r?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),o=this.itemEls[i]}else o=this.itemEls[r?0:this.itemEls.length-1];this.highlightItem(o)}},t.prototype.addOptions=function(e){var t=this;return e.forEach(function(e){return t.addOption(e)}),this},t.prototype.addOption=function(e){var t=e.value,n=ht(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){Qt(t,n+1),Kt(t,e.length)})},t.prototype.renderOption=function(e,t){var n=this,r=document.createElement("div");Ft(r,"option"),r.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),r.innerHTML="<span>"+t+"</span>",r.tabIndex=-1,this.itemEls.push(r),this.addManagedListener(r,"mouseover",function(){return n.highlightItem(r)}),this.addManagedListener(r,"mouseleave",function(){return n.clearHighlighted()}),this.addManagedListener(r,"click",function(){return n.setValue(e)}),this.getGui().appendChild(r)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=this.options.findIndex(function(t){return t.value===e});if(-1!==n){var r=this.options[n];this.value=r.value,this.displayValue=null!=r.text?r.text:r.value,this.highlightItem(this.itemEls[n]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=this.options.findIndex(function(t){return t.value===e.value});-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),rn(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),rn(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Po.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([G],t.prototype,"init",null),t}(no),ko=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bo=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return ko(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new Fo("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,Fo.EVENT_ITEM_SELECTED,function(){e.hideList&&e.hideList(),e.dispatchEvent({type:t.EVENT_ITEM_SELECTED})}),this.listComponent.addManagedListener(this.listComponent,Po.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.gridOptionsService.getDocument(),r=this.addManagedListener(n.body,"wheel",function(n){!t.contains(n.target)&&e.hideList&&e.hideList()}),o=this.addManagedListener(t,"focusout",function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()}),i=this.localeService.getLocaleTextFunc(),a=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,o(),r(),e.isAlive()&&(zt(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:i("ariaLabelSelectField","Select Field")});return a&&(this.hideList=a.hideFunc),this.isPickerDisplayed=!0,gr(t,Jn(this.eWrapper)),zt(this.eWrapper,!0),t.style.maxHeight=Yn(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupByComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,position:"under",keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach(function(e){return t.addOption(e)}),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,n,r){return this.value===t?this:(r||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,n)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},t.EVENT_ITEM_SELECTED="selectedItem",Lo([$("popupService")],t.prototype,"popupService",void 0),Lo([G],t.prototype,"init",null),t}(Ro),No=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Uo=function(e){function t(t,n,r,o){void 0===r&&(r="text"),void 0===o&&(o="input");var i=e.call(this,t,'\n            <div role="presentation">\n                <div ref="eLabel" class="ag-input-field-label"></div>\n                <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n                    <'+o+' ref="eInput" class="ag-input-field-input"></'+o+">\n                </div>\n            </div>",n)||this;return i.inputType=r,i.displayFieldTag=o,i}return No(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var t=this.config,n=t.width,r=t.value;null!=n&&this.setWidth(n),null!=r&&this.setValue(r),this.addInputListeners()},t.prototype.refreshLabel=function(){o(this.getLabel())?jt(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 gr(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 _r(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Nt(this.eInput,e),this},t.prototype.setDisabled=function(t){return Kn(this.eInput,t),e.prototype.setDisabled.call(this,t)},jo([oo("eLabel")],t.prototype,"eLabel",void 0),jo([oo("eWrapper")],t.prototype,"eWrapper",void 0),jo([oo("eInput")],t.prototype,"eInput",void 0),t}(Po),Vo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ho=function(e){function t(t,n,r){void 0===n&&(n="ag-checkbox"),void 0===r&&(r="checkbox");var o=e.call(this,t,n,r)||this;return o.labelAlignment="right",o.selected=!1,o.readOnly=!1,o.passive=!1,o}return Vo(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return this.eWrapper.classList.toggle("ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,n,r){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:n,event:r});var o=this.getInputElement(),i={type:Ve.EVENT_CHECKBOX_CHANGED,id:o.id,name:o.name,selected:e,previousValue:n};this.eventService.dispatchEvent(i)},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(Uo),Go=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wo=function(e){function t(t){return e.call(this,t,"ag-radio-button","radio")||this}return Go(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}(Ho),zo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Ko=function(){function e(e,t){this.localeService=e,this.optionsFactory=t}return e.prototype.getModelAsString=function(e){var t=this;if(!e)return null;var n=null!=e.operator,r=this.localeService.getLocaleTextFunc();if(n){var o=e,i=o.conditions;i||(i=[o.condition1,o.condition2]);var a=i.map(function(e){return t.getModelAsString(e)}),s="AND"===o.operator?"andCondition":"orCondition";return a.join(" "+r(s,ho[s])+" ")}if(e.type===Qo.BLANK||e.type===Qo.NOT_BLANK)return r(e.type,e.type);var l=e,c=this.optionsFactory.getCustomOption(l.type),u=c||{},d=u.displayKey,p=u.displayName,h=u.numberOfInputs;return d&&p&&0===h?(r(d,p),p):this.conditionToString(l,c)},e}(),Qo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.eTypes=[],t.eJoinOperatorPanels=[],t.eJoinOperatorsAnd=[],t.eJoinOperatorsOr=[],t.eConditionBodies=[],t.listener=function(){return t.onUiChanged()},t.lastUiCompletePosition=null,t.joinOperatorId=0,t}return zo(t,e),t.prototype.getNumberOfInputs=function(e){var n=this.optionsFactory.getCustomOption(e);if(n){var r=n.numberOfInputs;return null!=r?r:1}var o=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&o.indexOf(e)>=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){var t=this;this.eTypes.forEach(function(n,r){0===r?n.setValue(e,!0):n.setValue(t.optionsFactory.getDefaultOption(),!0)})},t.prototype.getModelFromUi=function(){var e=this.getUiCompleteConditions();return 0===e.length?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]},t.prototype.getConditionTypes=function(){return this.eTypes.map(function(e){return e.getValue()})},t.prototype.getConditionType=function(e){return this.eTypes[e].getValue()},t.prototype.getJoinOperator=function(){return 0===this.eJoinOperatorsOr.length?this.defaultJoinOperator:!0===this.eJoinOperatorsOr[0].getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){var n=this;if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var r,o=!e.operator,i=!t.operator;if(!o&&i||o&&!i)return!1;if(o){var a=e,s=t;r=this.areSimpleModelsEqual(a,s)}else{var l=e,c=t;r=l.operator===c.operator&&de(l.conditions,c.conditions,function(e,t){return n.areSimpleModelsEqual(e,t)})}return r},t.prototype.setModelIntoUi=function(e){var t=this;if(e.operator){var n=e;n.conditions||(n.conditions=[n.condition1,n.condition2]);var r=this.validateAndUpdateConditions(n.conditions),o=this.getNumConditions();if(r<o)this.removeConditionsAndOperators(r);else if(r>o)for(var i=o;i<r;i++)this.createJoinOperatorPanel(),this.createOption();var a="OR"===n.operator;this.eJoinOperatorsAnd.forEach(function(e){return e.setValue(!a,!0)}),this.eJoinOperatorsOr.forEach(function(e){return e.setValue(a,!0)}),n.conditions.forEach(function(e,n){t.eTypes[n].setValue(e.type,!0),t.setConditionIntoUi(e,n)})}else{var s=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(s.type,!0),this.setConditionIntoUi(s,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),$r.resolve()},t.prototype.validateAndUpdateConditions=function(e){var t=e.length;return t>this.maxNumConditions&&(e.splice(this.maxNumConditions),x(function(){return console.warn('AG Grid: Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.')},"simpleFilterSetModelMaxNumConditions"),t=this.maxNumConditions),t},t.prototype.doesFilterPass=function(e){var t,n=this,r=this.getModel();if(null==r)return!0;var o=r.operator,i=[];if(o){var a=r;i.push.apply(i,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat($o(arguments[t]));return e}(null!==(t=a.conditions)&&void 0!==t?t:[]))}else i.push(r);return i[o&&"OR"===o?"some":"every"](function(t){return n.individualConditionPasses(e,t)})},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.setNumConditions(t),this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.filterPlaceholder=t.filterPlaceholder,this.optionsFactory=new po,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.createOption(),this.createMissingConditionsAndOperators()},t.prototype.setNumConditions=function(e){var t,n;null!=e.suppressAndOrCondition&&x(function(){return console.warn('AG Grid: Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.')},"simpleFilterSuppressAndOrCondition"),null!=e.alwaysShowBothConditions&&x(function(){return console.warn('AG Grid: Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.')},"simpleFilterAlwaysShowBothConditions"),this.maxNumConditions=null!==(t=e.maxNumConditions)&&void 0!==t?t:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(x(function(){return console.warn('AG Grid: "filterParams.maxNumConditions" must be greater than or equal to zero.')},"simpleFilterMaxNumConditions"),this.maxNumConditions=1),this.numAlwaysVisibleConditions=null!==(n=e.numAlwaysVisibleConditions)&&void 0!==n?n:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(x(function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.')},"simpleFilterNumAlwaysVisibleConditions"),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(x(function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".')},"simpleFilterNumAlwaysVisibleGreaterThanMaxNumConditions"),this.numAlwaysVisibleConditions=this.maxNumConditions)},t.prototype.createOption=function(){var e=this,t=this.createManagedBean(new Bo);this.eTypes.push(t),t.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(t.getGui());var n=this.createValueElement();this.eConditionBodies.push(n),this.eFilterBody.appendChild(n),this.putOptionsIntoDropdown(t),this.resetType(t);var r=this.getNumConditions()-1;this.forEachPositionInput(r,function(t){return e.resetInput(t)}),this.addChangedListeners(t,r)},t.prototype.createJoinOperatorPanel=function(){var e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");var t=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),n=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);var r=this.eJoinOperatorPanels.length-1,o=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,o),this.resetJoinOperatorOr(n,r,o),this.isReadOnly()||(t.onValueChange(this.listener),n.onValueChange(this.listener))},t.prototype.createJoinOperator=function(e,t,n){var r=this.createManagedBean(new Wo);return e.push(r),r.addCssClass("ag-filter-condition-operator"),r.addCssClass("ag-filter-condition-operator-"+n),t.appendChild(r.getGui()),r},t.prototype.getDefaultJoinOperator=function(e){return"AND"===e||"OR"===e?e:"AND"},t.prototype.putOptionsIntoDropdown=function(e){var t=this,n=this.optionsFactory.getFilterOptions();n.forEach(function(n){var r="string"==typeof n?t.createBoilerplateListOption(n):t.createCustomListOption(n);e.addOption(r)}),e.setDisabled(n.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.localeService.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},t.prototype.createBodyTemplate=function(){return""},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)},t.prototype.updateNumConditions=function(){for(var e,t=-1,n=!0,r=0;r<this.getNumConditions();r++)this.isConditionUiComplete(r)?t=r:n=!1;if(this.shouldAddNewConditionAtEnd(n))this.createJoinOperatorPanel(),this.createOption();else{var o=null!==(e=this.lastUiCompletePosition)&&void 0!==e?e:this.getNumConditions()-2;if(t<o){this.removeConditionsAndOperators(o+1);var i=t+1,a=o-i;a>0&&this.removeConditionsAndOperators(i,a),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=t},t.prototype.updateConditionStatusesAndValues=function(e,t){var n=this;this.eTypes.forEach(function(t,r){var o=n.isConditionDisabled(r,e);(1===r?[t,n.eJoinOperatorPanels[0],n.eJoinOperatorsAnd[0],n.eJoinOperatorsOr[0]]:[t]).forEach(function(e){e instanceof Uo||e instanceof Bo?e.setDisabled(o):Kn(e,o)})}),this.eConditionBodies.forEach(function(e,t){zn(e,n.isConditionBodyVisible(t))});var r="OR"===(null!=t?t:this.getJoinOperator());this.eJoinOperatorsAnd.forEach(function(e,t){e.setValue(!r,!0)}),this.eJoinOperatorsOr.forEach(function(e,t){e.setValue(r,!0)}),this.forEachInput(function(t,r,o,i){n.setElementDisplayed(t,r<i),n.setElementDisabled(t,n.isConditionDisabled(o,e))}),this.resetPlaceholder()},t.prototype.shouldAddNewConditionAtEnd=function(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()},t.prototype.removeConditionsAndOperators=function(e,t){if(!(e>=this.getNumConditions())){this.removeComponents(this.eTypes,e,t),this.removeElements(this.eConditionBodies,e,t),this.removeValueElements(e,t);var n=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,n,t),this.removeComponents(this.eJoinOperatorsAnd,n,t),this.removeComponents(this.eJoinOperatorsOr,n,t)}},t.prototype.removeElements=function(e,t,n){this.removeItems(e,t,n).forEach(function(e){return or(e)})},t.prototype.removeComponents=function(e,t,n){var r=this;this.removeItems(e,t,n).forEach(function(e){or(e.getGui()),r.destroyBean(e)})},t.prototype.removeItems=function(e,t,n){return null==n?e.splice(t):e.splice(t,n)},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 Uo&&n.getInputElement().focus()}},t.prototype.afterGuiDetached=function(){e.prototype.afterGuiDetached.call(this);var t=this.getModel();this.areModelsEqual(t,this.getModelFromUi())||this.resetUiToActiveModel(t);for(var n=-1,r=-1,o=!1,i=this.getJoinOperator(),a=this.getNumConditions()-1;a>=0;a--)if(this.isConditionUiComplete(a))-1===n&&(n=a,r=a);else{var s=a<n;(a>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(a-1)||s)&&(this.removeConditionsAndOperators(a,1),o=!0,s&&r--)}var l=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),l=!0),this.shouldAddNewConditionAtEnd(r===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),l=!0),l&&this.updateConditionStatusesAndValues(r,i),o&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=r},t.prototype.getPlaceholderText=function(e,t){var n=this.translate(e);if(P(this.filterPlaceholder)){var r=this.filterPlaceholder,o=this.eTypes[t].getValue();n=r({filterOptionKey:o,filterOption:this.translate(o),placeholder:n})}else"string"==typeof this.filterPlaceholder&&(n=this.filterPlaceholder);return n},t.prototype.resetPlaceholder=function(){var e=this,t=this.localeService.getLocaleTextFunc();this.forEachInput(function(n,r,o,i){if(n instanceof Uo){var a=0===r&&i>1?"inRangeStart":0===r?"filterOoo":"inRangeEnd",s=0===r&&i>1?t("ariaFilterFromValue","Filter from value"):0===r?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");n.setInputPlaceholder(e.getPlaceholderText(a,o)),n.setInputAriaLabel(s)}})},t.prototype.setElementValue=function(e,t){e instanceof Uo&&e.setValue(null!=t?String(t):null,!0)},t.prototype.setElementDisplayed=function(e,t){e instanceof no&&zn(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof no&&Kn(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof Uo&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this;this.getConditionTypes().forEach(function(n,r){t.forEachPositionTypeInput(r,n,e)})},t.prototype.forEachPositionInput=function(e,t){var n=this.getConditionType(e);this.forEachPositionTypeInput(e,n,t)},t.prototype.forEachPositionTypeInput=function(e,t,n){for(var r=this.getNumberOfInputs(t),o=this.getInputs(e),i=0;i<o.length;i++){var a=o[i];null!=a&&n(a,i,e,r)}},t.prototype.isConditionDisabled=function(e,t){return!!this.isReadOnly()||0!==e&&e>t+1},t.prototype.isConditionBodyVisible=function(e){var t=this.getConditionType(e);return this.getNumberOfInputs(t)>0},t.prototype.isConditionUiComplete=function(e){return!(e>=this.getNumConditions()||this.getConditionType(e)===t.EMPTY||this.getValues(e).some(function(e){return null==e}))},t.prototype.getNumConditions=function(){return this.eTypes.length},t.prototype.getUiCompleteConditions=function(){for(var e=[],t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e},t.prototype.createMissingConditionsAndOperators=function(){if(!this.isReadOnly())for(var e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()},t.prototype.resetUiToDefaults=function(e){var t=this;return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(function(e){return t.resetType(e)}),this.eJoinOperatorsAnd.forEach(function(e,n){return t.resetJoinOperatorAnd(e,n,t.joinOperatorId+n)}),this.eJoinOperatorsOr.forEach(function(e,n){return t.resetJoinOperatorOr(e,n,t.joinOperatorId+n)}),this.joinOperatorId++,this.forEachInput(function(e){return t.resetInput(e)}),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),$r.resolve()},t.prototype.resetType=function(e){var t=this.localeService.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(t).setDisabled(this.isReadOnly())},t.prototype.resetJoinOperatorAnd=function(e,t,n){this.resetJoinOperator(e,t,this.isDefaultOperator("AND"),this.translate("andCondition"),n)},t.prototype.resetJoinOperatorOr=function(e,t,n){this.resetJoinOperator(e,t,this.isDefaultOperator("OR"),this.translate("orCondition"),n)},t.prototype.resetJoinOperator=function(e,t,n,r,o){this.updateJoinOperatorDisabled(e.setValue(n,!0).setName("ag-simple-filter-and-or-"+this.getCompId()+"-"+o).setLabel(r),t)},t.prototype.updateJoinOperatorsDisabled=function(){var e=this;this.eJoinOperatorsAnd.forEach(function(t,n){return e.updateJoinOperatorDisabled(t,n)}),this.eJoinOperatorsOr.forEach(function(t,n){return e.updateJoinOperatorDisabled(t,n)})},t.prototype.updateJoinOperatorDisabled=function(e,t){e.setDisabled(this.isReadOnly()||t>0)},t.prototype.resetInput=function(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())},t.prototype.setConditionIntoUi=function(e,t){var n=this,r=this.mapValuesFromModel(e);this.forEachInput(function(e,o,i,a){i===t&&n.setElementValue(e,null!=r[o]?r[o]:null)})},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput(function(n,r,o,i){t.setElementValue(n,0===r&&0===o?e:null)})},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(e,t){var n=this;this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,function(e){n.attachElementOnChange(e,n.listener)}))},t.prototype.individualConditionPasses=function(e,t){var n=this.getCellValue(e.node),r=this.mapValuesFromModel(t),o=this.optionsFactory.getCustomOption(t.type),i=this.evaluateCustomFilter(o,r,n);return null!=i?i:null==n?this.evaluateNullValue(t.type):this.evaluateNonNullValue(r,n,t,e)},t.prototype.evaluateCustomFilter=function(e,t,n){if(null!=e){var r=e.predicate;return null==r||t.some(function(e){return null==e})?void 0:r(t,n)}},t.prototype.isBlank=function(e){return null==e||"string"==typeof e&&0===e.trim().length},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",t}(So),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,n,r){var o=this.comparator(),i=null!=e[0]?o(e[0],n):0;switch(r.type){case t.EQUALS:return 0===i;case t.NOT_EQUAL:return 0!==i;case t.GREATER_THAN:return i>0;case t.GREATER_THAN_OR_EQUAL:return i>=0;case t.LESS_THAN:return i<0;case t.LESS_THAN_OR_EQUAL:return i<=0;case t.IN_RANGE:var a=o(e[1],n);return this.scalarFilterParams.inRangeInclusive?i>=0&&a<=0:i>0&&a<0;case t.BLANK:return this.isBlank(n);case t.NOT_BLANK:return!this.isBlank(n);default:return console.warn('AG Grid: Unexpected type of filter "'+r.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(Qo),Xo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zo=function(){return Zo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zo.apply(this,arguments)},Jo=1/0,ei=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.dateFilterParams=t,o}return Xo(t,e),t.prototype.conditionToString=function(e,t){var n=e.type,r=(t||{}).numberOfInputs,o=n==Qo.IN_RANGE||2===r,i=Nn(e.dateFrom),a=Nn(e.dateTo),s=this.dateFilterParams.inRangeFloatingFilterDateFormat;return o?(null!==i?Bn(i,s):"null")+"-"+(null!==a?Bn(a,s):"null"):null!=i?Bn(i,s):""+n},t}(Ko),ti=function(e){function t(){var t=e.call(this,"dateFilter")||this;return t.eConditionPanelsFrom=[],t.eConditionPanelsTo=[],t.dateConditionFromComps=[],t.dateConditionToComps=[],t.minValidYear=1e3,t.maxValidYear=Jo,t}return Xo(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateConditionFromComps[0].afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.dateFrom,r=t.dateTo,o=t.type;return[n&&Nn(n)||null,r&&Nn(r)||null].slice(0,this.getNumberOfInputs(o))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){this.dateFilterParams=t,e.prototype.setParams.call(this,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",Jo),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.filterModelFormatter=new ei(this.dateFilterParams,this.localeService,this.optionsFactory)},t.prototype.createDateCompWrapper=function(e){var t=this,n=new co(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return t.onUiChanged()},filterParams:this.dateFilterParams},e);return this.addDestroyFunc(function(){return n.destroy()}),n},t.prototype.setElementValue=function(e,t){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.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e},t.prototype.createFromToElement=function(e,t,n,r){var o=document.createElement("div");o.classList.add("ag-filter-"+r),o.classList.add("ag-filter-date-"+r),t.push(o),e.appendChild(o),n.push(this.createDateCompWrapper(o))},t.prototype.removeValueElements=function(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),this.removeItems(this.eConditionPanelsFrom,e,t),this.removeItems(this.eConditionPanelsTo,e,t)},t.prototype.removeDateComps=function(e,t,n){this.removeItems(e,t,n).forEach(function(e){return e.destroy()})},t.prototype.isConditionUiComplete=function(t){var n=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var r=!0;return this.forEachInput(function(e,o,i,a){i!==t||!r||o>=a||(r=r&&function(e){return null!=e&&e.getUTCFullYear()>=n.minValidYear&&e.getUTCFullYear()<=n.maxValidYear}(e.getDate()))}),r},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var t=this.getConditionType(e),n={},r=this.getValues(e);return r.length>0&&(n.dateFrom=kn(r[0])),r.length>1&&(n.dateTo=kn(r[1])),Zo({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},n)},t.prototype.resetPlaceholder=function(){var e=this.localeService.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput(function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(n)})},t.prototype.getInputs=function(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]},t.prototype.getValues=function(e){var t=[];return this.forEachPositionInput(e,function(e,n,r,o){n<o&&t.push(e.getDate())}),t},t.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},t.DEFAULT_FILTER_OPTIONS=[Yo.EQUALS,Yo.GREATER_THAN,Yo.LESS_THAN,Yo.NOT_EQUAL,Yo.IN_RANGE,Yo.BLANK,Yo.NOT_BLANK],function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([$("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(Yo),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ni(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.isEventFromDataChange=function(e){return null==e?void 0:e.afterDataChange},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setLastTypeFromModel=function(e){var t;e?(t=e.operator?e.conditions[0]:e,this.lastType=t.type):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 po,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=[Qo.IN_RANGE,Qo.EMPTY,Qo.BLANK,Qo.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0},t}(no),oi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ii=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ai=function(e){function t(){return e.call(this,'\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 oi(t,e),t.prototype.getDefaultFilterOptions=function(){return ti.DEFAULT_FILTER_OPTIONS},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.filterParams=t.filterParams,this.createDateComponent();var n=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(n("ariaDateFilterInput","Date Filter Input")),this.filterModelFormatter=new ei(this.filterParams,this.localeService,this.optionsFactory)},t.prototype.setEditable=function(e){zn(this.eDateWrapper,e),zn(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)&&!this.isEventFromDataChange(n)){e.prototype.setLastTypeFromModel.call(this,t);var r=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(r),r){if(t){var o=t;this.dateComp.setDate(Nn(o.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(t)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=kn(this.dateComp.getDate());this.params.parentFilterInstance(function(n){if(n){var r=Nn(t);n.onFloatingFilterChanged(e.getLastType()||null,r)}})},t.prototype.createDateComponent=function(){var e=this,t=So.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:k(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new co(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},ii([$("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ii([oo("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),ii([oo("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(ri),si=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),li=function(e){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 si(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this,n=this.gridOptionsService.getDocument(),r=this.eDateInput.getInputElement(),o=this.shouldUseBrowserDatePicker(e);o&&(r.type="date");var i=o&&gn();this.addManagedListener(r,"mousedown",function(){t.eDateInput.isDisabled()||i||r.focus()}),this.addManagedListener(r,"input",function(r){r.target===n.activeElement&&(t.eDateInput.isDisabled()||e.onDateChanged())});var a=e.filterParams||{},s=a.minValidYear,l=a.maxValidYear;s&&(r.min=s+"-01-01"),l&&(r.max=l+"-12-31")},t.prototype.getDate=function(){return Nn(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(kn(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:vn()||yn()||gn()&&mn()>=14.1},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([oo("eDateInput")],t.prototype,"eDateInput",void 0),t}(no),ci=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ui=function(e){function t(t,n,r){return void 0===n&&(n="ag-text-field"),void 0===r&&(r="text"),e.call(this,t,n,r)||this}return ci(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(t,n){var r=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=o(t)?t:""),r},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",function(t){t.ctrlKey||t.metaKey||t.key&&!e.test(t.key)&&t.preventDefault()}),this.addManagedListener(this.eInput,"paste",function(t){var n,r=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text");r&&r.split("").some(function(t){return!e.test(t)})&&t.preventDefault()})},t}(Uo),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pi=function(e){function t(t){return e.call(this,t,"ag-number-field","number")||this}return di(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.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},t.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},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,_r(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,_r(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,_r(this.eInput,"step",e)),this},t.prototype.setValue=function(t,n){return null!=t&&(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(ui),hi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hi(t,e),t.prototype.conditionToString=function(e,t){var n=(t||{}).numberOfInputs;return e.type==Qo.IN_RANGE||2===n?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(Ko);function gi(e){return(null!=e?e:{}).allowedCharPattern||(vn()?null:"\\d\\-\\.")}var mi,vi,yi,Ai=function(e){function t(){var t=e.call(this,"numberFilter")||this;return t.eValuesFrom=[],t.eValuesTo=[],t}return hi(t,e),t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,r=t.filterTo,o=t.type;return[this.processValue(n),this.processValue(r)].slice(0,this.getNumberOfInputs(o))},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,e.prototype.setParams.call(this,t),this.filterModelFormatter=new fi(this.localeService,this.optionsFactory)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=gi(this.numberFilterParams),t=document.createElement("div");return t.classList.add("ag-filter-body"),Ft(t,"presentation"),this.createFromToElement(t,this.eValuesFrom,"from",e),this.createFromToElement(t,this.eValuesTo,"to",e),t},t.prototype.createFromToElement=function(e,t,n,r){var o=this.createManagedBean(r?new ui({allowedCharPattern:r}):new pi);o.addCssClass("ag-filter-"+n),o.addCssClass("ag-filter-filter"),t.push(o),e.appendChild(o.getGui())},t.prototype.removeValueElements=function(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)},t.prototype.getValues=function(e){var t=this,n=[];return this.forEachPositionInput(e,function(e,r,o,i){r<i&&n.push(t.processValue(t.stringToFloat(e.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.processValue=function(e){return null==e||isNaN(e)?null:e},t.prototype.stringToFloat=function(e){if("number"==typeof e)return e;var t=r(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.getConditionType(e),n={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},t.DEFAULT_FILTER_OPTIONS=[Yo.EQUALS,Yo.NOT_EQUAL,Yo.LESS_THAN,Yo.LESS_THAN_OR_EQUAL,Yo.GREATER_THAN,Yo.GREATER_THAN_OR_EQUAL,Yo.IN_RANGE,Yo.BLANK,Yo.NOT_BLANK],t}(Yo),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bi=function(){return bi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bi.apply(this,arguments)},_i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wi(t,e),t.prototype.conditionToString=function(e,t){var n=(t||{}).numberOfInputs;return e.type==Qo.IN_RANGE||2===n?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(Ko),Ci=function(e){function t(){var t=e.call(this,"textFilter")||this;return t.eValuesFrom=[],t.eValuesTo=[],t}return wi(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){this.textFilterParams=n,e.prototype.setParams.call(this,n),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER),this.filterModelFormatter=new _i(this.localeService,this.optionsFactory)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(Gr.doOnce(function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")},"textCustomComparator.deprecated"),function(t){var n=t.filterOption,r=t.value,o=t.filterText;return e(n,r,o)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var t=this.getConditionType(e),n={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n},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(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getValues=function(e){var n=this,o=[];return this.forEachPositionInput(e,function(e,i,a,s){if(i<s){var l=r(e.getValue()),c=(n.textFilterParams.trimInput?t.trimInput(l):l)||null;o.push(c),e.setValue(c,!0)}}),o},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),Ft(e,"presentation"),this.createFromToElement(e,this.eValuesFrom,"from"),this.createFromToElement(e,this.eValuesTo,"to"),e},t.prototype.createFromToElement=function(e,t,n){var r=this.createManagedBean(new ui);r.addCssClass("ag-filter-"+n),r.addCssClass("ag-filter-filter"),t.push(r),e.appendChild(r.getGui())},t.prototype.removeValueElements=function(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,r=t.filterTo,o=t.type;return[n||null,r||null].slice(0,this.getNumberOfInputs(o))},t.prototype.evaluateNullValue=function(e){var t=[Qo.NOT_EQUAL,Qo.NOT_CONTAINS,Qo.BLANK];return!!e&&t.indexOf(e)>=0},t.prototype.evaluateNonNullValue=function(e,t,n,r){var o=this,i=e.map(function(e){return o.formatter(e)})||[],a=this.formatter(t),s=this.textFilterParams,l=s.api,c=s.colDef,u=s.column,d=s.columnApi,p=s.context,h=s.textFormatter;if(n.type===Qo.BLANK)return this.isBlank(t);if(n.type===Qo.NOT_BLANK)return!this.isBlank(t);var f={api:l,colDef:c,column:u,columnApi:d,context:p,node:r.node,data:r.data,filterOption:n.type,value:a,textFormatter:h};return i.some(function(e){return o.matcher(bi(bi({},f),{filterText:e}))})},t.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},t.DEFAULT_FILTER_OPTIONS=[Qo.CONTAINS,Qo.NOT_CONTAINS,Qo.EQUALS,Qo.NOT_EQUAL,Qo.STARTS_WITH,Qo.ENDS_WITH,Qo.BLANK,Qo.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,r=e.value,o=e.filterText;if(null==o)return!1;switch(n){case t.CONTAINS:return r.indexOf(o)>=0;case t.NOT_CONTAINS:return r.indexOf(o)<0;case t.EQUALS:return r===o;case t.NOT_EQUAL:return r!=o;case t.STARTS_WITH:return 0===r.indexOf(o);case t.ENDS_WITH:var i=r.lastIndexOf(o);return i>=0&&i===r.length-o.length;default:return!1}},t}(Qo),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Si=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oi=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n}return Ei(t,e),t.prototype.setupGui=function(e){this.eFloatingFilterTextInput=this.createManagedBean(new ui(this.params.config)),this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel),e.appendChild(this.eFloatingFilterTextInput.getGui())},t.prototype.setEditable=function(e){this.eFloatingFilterTextInput.setDisabled(!e)},t.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},t.prototype.setValue=function(e,t){this.eFloatingFilterTextInput.setValue(e,t)},t.prototype.addValueChangedListener=function(e){var t=this.eFloatingFilterTextInput.getGui();this.addManagedListener(t,"input",e),this.addManagedListener(t,"keypress",e),this.addManagedListener(t,"keydown",e)},t}(Le),xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ei(t,e),t.prototype.postConstruct=function(){this.setTemplate('\n            <div class="ag-floating-filter-input" role="presentation" ref="eFloatingFilterInputContainer"></div>\n        ')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))},t.prototype.init=function(t){this.params=t;var n=this.columnModel.getDisplayNameForColumn(t.column,"header",!0)+" "+this.localeService.getLocaleTextFunc()("ariaFilterInput","Filter Input");if(this.floatingFilterInputService=this.createFloatingFilterInputService(n),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer),e.prototype.init.call(this,t),this.applyActive=So.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var r=So.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o=k(this.syncUpWithParentFilter.bind(this),r);this.floatingFilterInputService.addValueChangedListener(o)}},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=e.key===Pr.ENTER;if(!this.applyActive||n){var r=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(r=Ci.trimInput(r),this.floatingFilterInputService.setValue(r,!0)),this.params.parentFilterInstance(function(e){e&&e.onFloatingFilterChanged(t.getLastType()||null,r||null)})}},t.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},Si([$("columnModel")],t.prototype,"columnModel",void 0),Si([oo("eFloatingFilterInputContainer")],t.prototype,"eFloatingFilterInputContainer",void 0),Si([G],t.prototype,"postConstruct",null),t}(ri),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pi=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n.numberInputActive=!0,n}return Di(t,e),t.prototype.setupGui=function(e){this.eFloatingFilterNumberInput=this.createManagedBean(new pi),this.eFloatingFilterTextInput=this.createManagedBean(new ui),this.eFloatingFilterTextInput.setDisabled(!0),this.eFloatingFilterNumberInput.setInputAriaLabel(this.params.ariaLabel),this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel),e.appendChild(this.eFloatingFilterNumberInput.getGui()),e.appendChild(this.eFloatingFilterTextInput.getGui())},t.prototype.setEditable=function(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},t.prototype.getValue=function(){return this.getActiveInputElement().getValue()},t.prototype.setValue=function(e,t){this.getActiveInputElement().setValue(e,t)},t.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},t.prototype.addValueChangedListener=function(e){this.setupListeners(this.eFloatingFilterNumberInput.getGui(),e),this.setupListeners(this.eFloatingFilterTextInput.getGui(),e)},t.prototype.setupListeners=function(e,t){this.addManagedListener(e,"input",t),this.addManagedListener(e,"keypress",t),this.addManagedListener(e,"keydown",t)},t}(Le),Mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Di(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.filterModelFormatter=new fi(this.localeService,this.optionsFactory)},t.prototype.getDefaultFilterOptions=function(){return Ai.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){var t=gi(this.params.filterParams);return t?this.createManagedBean(new Oi({config:{allowedCharPattern:t},ariaLabel:e})):this.createManagedBean(new Pi({ariaLabel:e}))},t}(xi),Ti=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ti(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.filterModelFormatter=new _i(this.localeService,this.optionsFactory)},t.prototype.getDefaultFilterOptions=function(){return Ci.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){return this.createManagedBean(new Oi({ariaLabel:e}))},t}(xi),Ii=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new ee,this.eElement=e,this.preventMouseClick=t;var r=this.onTouchStart.bind(this),o=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",r,{passive:!0}),this.eElement.addEventListener("touchmove",o,{passive:!0}),this.eElement.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push(function(){n.eElement.removeEventListener("touchstart",r,{passive:!0}),n.eElement.removeEventListener("touchmove",o,{passive:!0}),n.eElement.removeEventListener("touchend",i,{passive:!1})})}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var n=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var r=this.touchStart;window.setTimeout(function(){var o=n.touchStart===r;if(n.touching&&o&&!n.moved){n.moved=!0;var i={type:e.EVENT_LONG_TAP,touchStart:n.touchStart,touchEvent:t};n.eventService.dispatchEvent(i)}},500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);t&&!Lr(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.cancelable&&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}(),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ki=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Li=function(e){function t(n){var r=e.call(this)||this;return n||r.setTemplate(t.TEMPLATE),r}return Fi(t,e),t.prototype.attachCustomElements=function(e,t,n,r,o){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=n,this.eSortMixed=r,this.eSortNone=o},t.prototype.setupSort=function(e,t){var n=this;void 0===t&&(t=!1),this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),this.column.getColDef().sortable&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,function(){return n.onSortChanged()}),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return n.onSortChanged()}),this.onSortChanged())},t.prototype.addInIcon=function(e,t,n){if(null!=t){var r=xr(e,this.gridOptionsService,n);r&&t.appendChild(r)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var t="asc"===e;zn(this.eSortAsc,t,{skipAriaHidden:!0})}if(this.eSortDesc){var n="desc"===e;zn(this.eSortDesc,n,{skipAriaHidden:!0})}if(this.eSortNone){var r=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.is("unSortIcon"),o=null==e;zn(this.eSortNone,!r&&o,{skipAriaHidden:!0})}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var t=this.column.getColDef().showRowGroup;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&t&&(this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e="mixed"===this.sortController.getDisplaySortForColumn(this.column);zn(this.eSortMixed,e,{skipAriaHidden:!0})}},t.prototype.updateSortOrder=function(){var e,t=this;if(this.eSortOrder){var n=this.sortController.getColumnsWithSortingOrdered(),r=null!==(e=this.sortController.getDisplaySortIndexForColumn(this.column))&&void 0!==e?e:-1,o=n.some(function(e){var n;return null!==(n=t.sortController.getDisplaySortIndexForColumn(e))&&void 0!==n&&n}),i=r>=0&&o;zn(this.eSortOrder,i,{skipAriaHidden:!0}),r>=0?this.eSortOrder.innerHTML=(r+1).toString():rr(this.eSortOrder)}},t.TEMPLATE='<span class="ag-sort-indicator-container">\n            <span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>\n        </span>',ki([oo("eSortOrder")],t.prototype,"eSortOrder",void 0),ki([oo("eSortAsc")],t.prototype,"eSortAsc",void 0),ki([oo("eSortDesc")],t.prototype,"eSortDesc",void 0),ki([oo("eSortMixed")],t.prototype,"eSortMixed",void 0),ki([oo("eSortNone")],t.prototype,"eSortNone",void 0),ki([$("columnModel")],t.prototype,"columnModel",void 0),ki([$("sortController")],t.prototype,"sortController",void 0),t}(no),Bi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ni=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ji=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return Bi(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=ce(this.params.template,t.TEMPLATE);return 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=ht(this.currentDisplayName);this.eText&&(this.eText.innerHTML=t)}},t.prototype.setupIcons=function(e){this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,n){if(null!=t){var r=xr(e,this.gridOptionsService,n);r&&t.appendChild(r)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsService;if(!t.is("suppressTouch")){var n=new Ii(this.getGui(),!0),r=t.is("suppressMenuHide"),i=r&&o(this.eMenu),a=i?new Ii(this.eMenu,!0):n;if(this.params.enableMenu){var s=i?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(a,Ii[s],function(n){t.api.showColumnMenuAfterMouseClick(e.params.column,n.touchStart)})}this.params.enableSorting&&this.addManagedListener(n,Ii.EVENT_TAP,function(t){var n=t.touchStart.target;r&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}),this.addDestroyFunc(function(){return n.destroy()}),i&&this.addDestroyFunc(function(){return a.destroy()})}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsService.is("suppressMenuHide"),t=wn()&&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.gridOptionsService.is("suppressMenuHide");this.addManagedListener(this.eMenu,"click",function(){return e.showMenu(e.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",t)}else or(this.eMenu)},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new Li(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var t="ctrl"===this.gridOptionsService.get("multiSortKey");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 r=e.params.column.isMoving(),o=(new Date).getTime()-e.lastMovingChanged<50;if(!r&&!o){var i=t?n.ctrlKey||n.metaKey:n.shiftKey;e.params.progressSort(i)}});var n=function(){if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var t=e.columnModel.getSourceColumnsForGroupColumn(e.params.column),n=!(null==t?void 0:t.every(function(t){return e.params.column.getSort()==t.getSort()}));e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",n)}};this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,n),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,n)}},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();zn(this.eFilter,e,{skipAriaHidden:!0})},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                <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n            </div>\n        </div>',Ni([$("sortController")],t.prototype,"sortController",void 0),Ni([$("menuFactory")],t.prototype,"menuFactory",void 0),Ni([$("columnModel")],t.prototype,"columnModel",void 0),Ni([oo("eFilter")],t.prototype,"eFilter",void 0),Ni([oo("eSortIndicator")],t.prototype,"eSortIndicator",void 0),Ni([oo("eMenu")],t.prototype,"eMenu",void 0),Ni([oo("eLabel")],t.prototype,"eLabel",void 0),Ni([oo("eText")],t.prototype,"eText",void 0),Ni([oo("eSortOrder")],t.prototype,"eSortOrder",void 0),Ni([oo("eSortAsc")],t.prototype,"eSortAsc",void 0),Ni([oo("eSortDesc")],t.prototype,"eSortDesc",void 0),Ni([oo("eSortMixed")],t.prototype,"eSortMixed",void 0),Ni([oo("eSortNone")],t.prototype,"eSortNone",void 0),t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Hi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ui(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(){this.params.template&&x(function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")},"HeaderGroupComp.templateNotSupported")},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!Se(t)){var n=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){Ee(e)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var r=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(r,se.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(r,se.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new Ii(e,!0);this.addManagedListener(n,Ii.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();zn(this.eOpenIcon,e),zn(this.eCloseIcon,!e)}else zn(this.eOpenIcon,!1),zn(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=xr(e,this.gridOptionsService,null);n&&this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return zn(this.eOpenIcon,!1),void zn(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e,t=this.params,n=t.displayName,r=t.columnGroup;if(o(n)){var i=ht(n);this.getRefElement("agLabel").innerHTML=i}this.addOrRemoveCssClass("ag-sticky-label",!!(null===(e=r.getColGroupDef())||void 0===e?void 0:e.stickyLabel))},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>',Vi([$("columnModel")],t.prototype,"columnModel",void 0),Vi([oo("agOpened")],t.prototype,"eOpenIcon",void 0),Vi([oo("agClosed")],t.prototype,"eCloseIcon",void 0),t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gi(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}(no),zi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$i=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return zi(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),o(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.key;(t===Pr.LEFT||t===Pr.UP||t===Pr.RIGHT||t===Pr.DOWN||e.shiftKey&&t===Pr.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='<div class="ag-large-text" tabindex="0">\n            <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n        </div>',function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([oo("eTextArea")],t.prototype,"eTextArea",void 0),t}(Wi),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qi=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 Ki(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===Pr.ENTER;var n=!1;e.values.forEach(function(r){var o={value:r},i=t.valueFormatterService.formatValue(e.column,null,r),a=null!=i;o.text=a?i:r,t.eSelect.addOption(o),n=n||e.value===r}),n?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),"fullRow"!==this.gridOptionsService.get("editType")&&this.addManagedListener(this.eSelect,Bo.EVENT_ITEM_SELECTED,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},Qi([$("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Qi([oo("eSelect")],t.prototype,"eSelect",void 0),t}(Wi),Yi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Yi(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===Pr.BACKSPACE||e.eventKey===Pr.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.eventKey!==Pr.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&n.setValue(t,!0),null!=e.maxLength&&n.setMaxLength(e.maxLength),this.addManagedListener(n.getGui(),"keydown",function(e){var t=e.key;t!==Pr.PAGE_UP&&t!==Pr.PAGE_DOWN||e.preventDefault()})},t.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){gn()||t.getFocusableElement().focus();var n=t.getInputElement();if(this.highlightAllOnFocus)n.select();else{var r=t.getValue(),i=o(r)&&r.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">\n            <ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>\n        </div>',function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([oo("eInput")],t.prototype,"eInput",void 0),t}(Wi),Zi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ji=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return Zi(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),r=e.formatValue(n),i=o(r)?r:n,a=t>=0;this.eDelta.innerHTML=a?"↑"+i:"↓"+i,this.eDelta.classList.toggle("ag-value-change-delta-up",a),this.eDelta.classList.toggle("ag-value-change-delta-down",!a)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout(function(){t===e.refreshCount&&e.hideDeltaValue()},2e3)},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),rr(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(o(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:o(e.value)?this.eValue.innerHTML=t:rr(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>',function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([$("filterManager")],t.prototype,"filterManager",void 0),t}(no),ea=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ta=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 ea(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=ar('<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,o(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:o(e.value)?this.eCurrent.innerHTML=t:rr(this.eCurrent),!0)},t.TEMPLATE='<span>\n            <span class="ag-value-slide-current"></span>\n        </span>',function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([$("filterManager")],t.prototype,"filterManager",void 0),t}(no),na=function(){return na=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},na.apply(this,arguments)},ra=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.hovered=!1,this.selected=!1,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(),this.resetQuickFilterAggregateText();var r=this.createDataChangedEvent(e,n,t);this.dispatchLocalEvent(r)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,n,r){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:n,newData:t,update:r}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.getRowIndexString=function(){return"top"===this.rowPinned?"t-"+this.rowIndex:"bottom"===this.rowPinned?"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=o(this.id)?this.createDaemonNode():null,r=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.beans.selectionService.syncInRowNode(this,n),this.checkRowSelectable();var i=this.createDataChangedEvent(e,r,!1);this.dispatchLocalEvent(i)},e.prototype.checkRowSelectable=function(){var e=this.beans.gridOptionsService.get("isRowSelectable");this.setRowSelectable(!e||e(this))},e.prototype.setRowSelectable=function(t){if(this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsService.is("groupSelectsChildren"))){var n=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:null!=n&&n,source:"selectableChanged"})}},e.prototype.setId=function(t){var n=this.beans.gridOptionsService.getRowIdFunc();if(n)if(this.data){var r=this.getGroupKeys(!0);this.id=n({data:this.data,parentKeys:r.length>0?r:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},e.prototype.getGroupKeys=function(e){void 0===e&&(e=!1);var t=[],n=this;for(e&&(n=n.parent);n&&n.level>=0;)t.push(n.key),n=n.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!o(this.rowTop)||!o(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.setHovered=function(e){this.hovered!==e&&(this.hovered=e)},e.prototype.isHovered=function(){return this.hovered},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=k(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},e.prototype.checkAutoHeights=function(){var e=this,t=!1,n=!0,r=0,o=this.__autoHeights;if(null!=o&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach(function(i){var a=o[i.getId()];if(null==a){if(!e.beans.columnModel.isColSpanActive())return void(t=!0);var s=[];switch(i.getPinned()){case"left":s=e.beans.columnModel.getDisplayedLeftColumnsForRow(e);break;case"right":s=e.beans.columnModel.getDisplayedRightColumnsForRow(e);break;case null:s=e.beans.columnModel.getViewportCenterColumnsForRow(e)}if(s.includes(i))return void(t=!0);a=-1}else n=!1;a>r&&(r=a)}),!t&&((n||r<10)&&(r=this.beans.gridOptionsService.getRowHeightForNode(this).height),r!=this.rowHeight))){this.setRowHeight(r);var i=this.beans.rowModel;i.onRowHeightChangedDebounced&&i.onRowHeightChangedDebounced()}},e.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED)))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t,n){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var r=Object.assign({},this.createGlobalRowEvent(Ve.EVENT_ROW_GROUP_OPENED),{expanded:t,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r),this.beans.gridOptionsService.is("groupIncludeFooter")&&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.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,n){var r,o="string"!=typeof e?e:null!==(r=this.beans.columnModel.getGridColumn(e))&&void 0!==r?r:this.beans.columnModel.getPrimaryColumn(e),i=this.getValueFromValueService(o);if(this.beans.gridOptionsService.is("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(o,i,t,n),!1;var a=this.beans.valueService.setValue(this,o,t,n);return this.dispatchCellChangedEvent(o,t,i),this.checkRowSelectable(),a},e.prototype.getValueFromValueService=function(e){var t=this.leafGroup&&this.beans.columnModel.isPivotMode(),n=this.group&&this.expanded&&!this.footer&&!t,r=this.beans.gridOptionsService.is("groupIncludeFooter"),o=this.beans.gridOptionsService.is("groupSuppressBlankHeader"),i=n&&r&&!o;return this.beans.valueService.getValue(e,this,!1,i)},e.prototype.dispatchEventForSaveValueReadOnly=function(e,t,n,r){var o={type:Ve.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:e,colDef:e.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,data:this.data,node:this,oldValue:t,newValue:n,value:n,source:r};this.beans.eventService.dispatchEvent(o)},e.prototype.setGroupValue=function(e,t){var n=this.beans.columnModel.getGridColumn(e);i(this.groupData)&&(this.groupData={});var r=n.getColId(),o=this.groupData[r];o!==t&&(this.groupData[r]=t,this.dispatchCellChangedEvent(n,t,o))},e.prototype.setAggData=function(e){var t=this,n=A([this.aggData,e]),r=this.aggData;this.aggData=e,this.eventService&&n.forEach(function(e){var n=t.beans.columnModel.getGridColumn(e),o=t.aggData?t.aggData[e]:void 0,i=r?r[e]:void 0;t.dispatchCellChangedEvent(n,o,i)})},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(this.beans.gridOptionsService.isRowModelType("serverSide")){var n=this.beans.gridOptionsService.isTreeData(),r=this.beans.gridOptionsService.get("isServerSideGroup");t=!this.stub&&!this.footer&&(n?!!r&&r(this.data):!!this.group)}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&&a(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,n,r){var o={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:n,oldValue:r};this.dispatchLocalEvent(o)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(t){return t.depthFirstSearch(e)}),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,n=!1,r=!1;if(!(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length))return this.selectable?this.selected:null;for(var o=0;o<this.childrenAfterGroup.length;o++){var i=this.childrenAfterGroup[o],a=i.isSelected();if(!i.selectable){var s=i.calculateSelectedFromChildren();if(null===s)continue;a=s}switch(a){case!0:t=!0;break;case!1:n=!0;break;default:r=!0}}return r||t&&n?void 0:!!t||!n&&(this.selectable?this.selected:null)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.selectThisNode=function(t,n,r){void 0===r&&(r="api");var o=!this.selectable&&t,i=this.selected===t;if(o||i)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var a=na(na({},this.createGlobalRowEvent(Ve.EVENT_ROW_SELECTED)),{event:n||null,source:r});return this.beans.eventService.dispatchEvent(a),!0},e.prototype.setSelected=function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r="api"),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:n,rangeSelect:!1,source:r})},e.prototype.setSelectedParams=function(e){return this.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),0):void 0===this.id?(console.warn("AG Grid: cannot select node until id for node is known"),0):this.beans.selectionService.setNodeSelected(na(na({},e),{node:this.footer?this.sibling:this}))},e.prototype.isRowPinned=function(){return"top"===this.rowPinned||"bottom"===this.rowPinned},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new ee),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,r=!1,i=null;n&&!r;){var a=t.parent;o(a)&&t.firstChild?a.rowGroupColumn===e&&(r=!0,i=a):n=!1,t=a}return r?i:null},e.prototype.isFullWidthCell=function(){var e=this.getIsFullWidthCellFunc();return!!e&&e({rowNode:this})},e.prototype.getIsFullWidthCellFunc=function(){var e=this.beans.gridOptionsService.getCallback("isFullWidthRow");if(e)return e;var t=this.beans.gridOptionsService.get("isFullWidthCell");return t?function(e){return t(e.rowNode)}:void 0},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.prototype.createFooter=function(){var t=this;if(!this.sibling){var n=new e(this.beans);Object.keys(this).forEach(function(e){n[e]=t[e]}),n.footer=!0,n.setRowTop(null),n.setRowIndex(null),n.oldRowTop=null,n.id="rowGroupFooter_"+this.id,n.sibling=this,this.sibling=n}},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}(),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ia=function(){return ia=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ia.apply(this,arguments)},aa=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sa=function(e){function t(){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 oa(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.localeService.getLocaleTextFunc(),t=this.rowNode.isSelected(),n=void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(r+" ("+n+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsService.is("groupSelectsFiltered");return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:"checkboxSelected"})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsService.is("groupSelectsFiltered");return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:"checkboxSelected"})},t.prototype.init=function(e){var t=this;if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(e){Ee(e)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(e){Ee(e),t.eCheckbox.getValue()?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})}),this.addManagedListener(this.rowNode,ra.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsService.get("isRowSelectable")||"function"==typeof this.getIsVisible()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,ra.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,ra.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e,t,n,r,o=this.rowNode.selectable,i=this.getIsVisible();if(o)if("function"==typeof i){var a=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,s=null===(t=this.column)||void 0===t?void 0:t.createColumnFunctionCallbackParams(this.rowNode);o=!!s&&i(ia(ia({},a),s))}else o=null!=i&&i;if(null===(n=this.column)||void 0===n?void 0:n.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!o),this.setVisible(!0),void this.setDisplayed(!0);(null===(r=this.overrides)||void 0===r?void 0:r.removeHidden)?this.setDisplayed(o):this.setVisible(o)},t.prototype.getIsVisible=function(){var e,t;return this.overrides?this.overrides.isVisible:null===(t=null===(e=this.column)||void 0===e?void 0:e.getColDef())||void 0===t?void 0:t.checkboxSelection},aa([oo("eCheckbox")],t.prototype,"eCheckbox",void 0),aa([G],t.prototype,"postConstruct",null),t}(no),la=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ca=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ua=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(e){e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel"}(mi||(mi={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(vi||(vi={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(yi||(yi={}));var da,pa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var n;return la(t,e),n=t,t.prototype.init=function(){this.ePinnedIcon=Or("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Or("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Or("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Or("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Or("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Or("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Or("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Or("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Or("dropNotAllowed",this.gridOptionsService,null)},t.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)},t.prototype.removeDragSource=function(e){var t=this.dragSourceAndParamsList.find(function(t){return t.dragSource===e});t&&(this.dragService.removeDragSource(t.params),he(this.dragSourceAndParamsList,t))},t.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach(function(t){return e.dragService.removeDragSource(t.params)}),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.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()},t.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()},t.prototype.onDragging=function(e,t){var n,r,o,i,a=this,s=this.getHorizontalDirection(e),l=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var c=this.dropTargets.filter(function(t){return a.isMouseOnDropTarget(e,t)}),u=this.findCurrentDropTarget(e,c);if(u!==this.lastDropTarget)this.leaveLastTargetIfExists(e,s,l,t),null!==this.lastDropTarget&&null===u&&(null===(r=(n=this.dragSource).onGridExit)||void 0===r||r.call(n,this.dragItem)),null===this.lastDropTarget&&null!==u&&(null===(i=(o=this.dragSource).onGridEnter)||void 0===i||i.call(o,this.dragItem)),this.enterDragTargetIfExists(u,e,s,l,t),this.lastDropTarget=u;else if(u&&u.onDragging){var d=this.createDropTargetEvent(u,e,s,l,t);u.onDragging(d)}},t.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n},t.prototype.allContainersIntersect=function(e,t){var n,r;try{for(var o=ua(t),i=o.next();!i.done;i=o.next()){var a=i.value.getBoundingClientRect();if(0===a.width||0===a.height)return!1;var s=e.clientX>=a.left&&e.clientX<a.right,l=e.clientY>=a.top&&e.clientY<a.bottom;if(!s||!l)return!1}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0},t.prototype.isMouseOnDropTarget=function(e,t){var n,r,o=this.getAllContainersFromDropTarget(t),i=!1;try{for(var a=ua(o),s=a.next();!s.done;s=a.next()){var l=s.value;if(this.allContainersIntersect(e,l)){i=!0;break}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return!(t.targetContainsSource&&!t.getContainer().contains(this.dragSource.eElement))&&i&&t.isInterestedIn(this.dragSource.type,this.dragSource.eElement)},t.prototype.findCurrentDropTarget=function(e,t){var n,r,o,i,a=t.length;if(0===a)return null;if(1===a)return t[0];var s=this.gridOptionsService.getRootNode().elementsFromPoint(e.clientX,e.clientY);try{for(var l=ua(s),c=l.next();!c.done;c=l.next()){var u=c.value;try{for(var d=(o=void 0,ua(t)),p=d.next();!p.done;p=d.next()){var h=p.value;if(-1!==ye(this.getAllContainersFromDropTarget(h)).indexOf(u))return h}}catch(e){o={error:e}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return null},t.prototype.enterDragTargetIfExists=function(e,t,n,r,o){if(e){if(e.onDragEnter){var i=this.createDropTargetEvent(e,t,n,r,o);e.onDragEnter(i)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},t.prototype.leaveLastTargetIfExists=function(e,t,n,r){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var o=this.createDropTargetEvent(this.lastDropTarget,e,t,n,r);this.lastDropTarget.onDragLeave(o)}this.setGhostIcon(null)}},t.prototype.addDropTarget=function(e){this.dropTargets.push(e)},t.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter(function(t){return t.getContainer()!==e.getContainer()})},t.prototype.hasExternalDropZones=function(){return this.dropTargets.some(function(e){return e.external})},t.prototype.findExternalZone=function(e){return this.dropTargets.filter(function(e){return e.external}).find(function(t){return t.getContainer()===e.getContainer()})||null},t.prototype.getHorizontalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientX,n=e.clientX;return t===n?null:t>n?yi.Left:yi.Right},t.prototype.getVerticalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientY,n=e.clientY;return t===n?null:t>n?vi.Up:vi.Down},t.prototype.createDropTargetEvent=function(e,t,n,r,o){var i=e.getContainer(),a=i.getBoundingClientRect(),s=this,l=s.gridApi,c=s.columnApi,u=s.dragItem,d=s.dragSource;return{event:t,x:t.clientX-a.left,y:t.clientY-a.top,vDirection:r,hDirection:n,dragSource:d,fromNudge:o,dragItem:u,api:l,columnApi:c,dropZoneTarget:i}},t.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var n=t.getBoundingClientRect().height,r=En()-2,o=Sn()-2,i=e.pageY-n/2,a=e.pageX-10,s=this.gridOptionsService.getDocument(),l=s.defaultView||window,c=l.pageYOffset||s.documentElement.scrollTop,u=l.pageXOffset||s.documentElement.scrollLeft;r>0&&a+t.clientWidth>r+u&&(a=r+u-t.clientWidth),a<0&&(a=0),o>0&&i+t.clientHeight>o+c&&(i=o+c-t.clientHeight),i<0&&(i=0),t.style.left=a+"px",t.style.top=i+"px"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=ar(n.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);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"),r=this.dragSource.dragItemName;P(r)&&(r=r()),t.innerHTML=ht(r)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var o=this.gridOptionsService.getDocument(),i=null;try{i=o.fullscreenElement}catch(e){}finally{if(!i){var a=this.gridOptionsService.getRootNode();i=a.querySelector("body")||(a instanceof ShadowRoot?a:null==a?void 0:a.documentElement)}}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")},t.prototype.setGhostIcon=function(e,t){void 0===t&&(t=!1),rr(this.eGhostIcon);var r=null;switch(e||(e=this.dragSource.defaultIconName||n.ICON_NOT_ALLOWED),e){case n.ICON_PINNED:r=this.ePinnedIcon;break;case n.ICON_MOVE:r=this.eMoveIcon;break;case n.ICON_LEFT:r=this.eLeftIcon;break;case n.ICON_RIGHT:r=this.eRightIcon;break;case n.ICON_GROUP:r=this.eGroupIcon;break;case n.ICON_AGGREGATE:r=this.eAggregateIcon;break;case n.ICON_PIVOT:r=this.ePivotIcon;break;case n.ICON_NOT_ALLOWED:r=this.eDropNotAllowedIcon;break;case n.ICON_HIDE:r=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",t),r===this.eHideIcon&&this.gridOptionsService.is("suppressDragLeaveHidesColumns")||r&&this.eGhostIcon.appendChild(r)},t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.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>',ca([$("dragService")],t.prototype,"dragService",void 0),ca([$("mouseEventService")],t.prototype,"mouseEventService",void 0),ca([$("columnApi")],t.prototype,"columnApi",void 0),ca([$("gridApi")],t.prototype,"gridApi",void 0),ca([G],t.prototype,"init",null),ca([W],t.prototype,"clearDragSourceParamsList",null),n=ca([z("dragAndDropService")],t)}(Le),ha=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fa=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ga=function(e){function t(t,n,r,o,i,a){var s=e.call(this)||this;return s.cellValueFn=t,s.rowNode=n,s.column=r,s.customGui=o,s.dragStartPixels=i,s.suppressVisibilityChange=a,s.dragSource=null,s}return ha(t,e),t.prototype.isCustomGui=function(){return null!=this.customGui},t.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(xr("rowDrag",this.beans.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsService.is("rowDragManaged")?new ya(this,this.beans,this.rowNode,this.column):new va(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},t.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsService.is("rowDragMultiRow"))return[this.rowNode];var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsService.is("rowDragManaged");this.beans.gridOptionsService.isTreeData()&&e&&x(function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")},"RowDragComp.managedAndTreeData")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.getRowDragText=function(e){if(e){var t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gridOptionsService.get("rowDragText")},t.prototype.addDragSource=function(e){var t=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var n=this.getRowDragText(this.column),r=this.localeService.getLocaleTextFunc();this.dragSource={type:mi.RowDrag,eElement:this.getGui(),dragItemName:function(){var e,o=t.getDragItem(),i=(null===(e=o.rowNodes)||void 0===e?void 0:e.length)||1;return n?n(o,i):1===i?t.cellValueFn():i+" "+r("rowDragRows","rows")},getDragItem:function(){return t.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},fa([$("beans")],t.prototype,"beans",void 0),fa([G],t.prototype,"postConstruct",null),fa([W],t.prototype,"removeDragSource",null),t}(no),ma=function(e){function t(t,n,r){var o=e.call(this)||this;return o.parent=t,o.rowNode=n,o.column=r,o}return ha(t,e),t.prototype.setDisplayedOrVisible=function(e){var t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{var n=!0,r=!1;this.column&&(n=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),r=P(this.column.getColDef().rowDrag)),r?(this.parent.setDisplayed(!0,t),this.parent.setVisible(n,t)):(this.parent.setDisplayed(n,t),this.parent.setVisible(!0,t))}},t}(Le),va=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.beans=n,i}return ha(t,e),t.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ra.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.gridOptionsService.is("suppressRowDrag");this.setDisplayedOrVisible(e)},fa([G],t.prototype,"postConstruct",null),t}(ma),ya=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.beans=n,i}return ha(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,ra.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("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.gridOptionsService.is("suppressRowDrag"),r=this.beans.dragAndDropService.hasExternalDropZones(),o=t&&!r||n;this.setDisplayedOrVisible(o)},fa([G],t.prototype,"postConstruct",null),t}(ma),Aa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wa=function(){return wa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wa.apply(this,arguments)},ba=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Aa(t,e),t.prototype.init=function(e,t,n,r,o,i,a){this.params=a,this.eGui=t,this.eCheckbox=n,this.eExpanded=r,this.eContracted=o,this.comp=e,this.compClass=i;var s=this.isTopLevelFooter(),l=this.isEmbeddedRowMismatch(),c=null==a.value&&!a.node.master,u=!1;if(this.gridOptionsService.is("groupIncludeFooter")&&this.gridOptionsService.is("groupHideOpenParents")){var d=a.node;d.footer&&(u=(a.colDef&&a.colDef.showRowGroup)!==(d.rowGroupColumn&&d.rowGroupColumn.getColId()))}this.cellIsBlank=!s&&(l||c&&!a.node.master||u),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,t=e.node,n=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var r=function(){zt(n,!!t.expanded)};this.expandListener=this.addManagedListener(t,ra.EVENT_EXPANDED_CHANGED,r)||null,r()}else $t(n)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.is("groupIncludeTotalFooter"))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.gridOptionsService.is("embedFullWidthRows"))return!1;var e="left"===this.params.pinned,t="right"===this.params.pinned,n=!e&&!t;return this.gridOptionsService.is("enableRtl")?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.gridOptionsService.is("groupHideOpenParents"))if(e.groupData){if(null!=e.rowGroupColumn){var n=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}var r=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=r}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),t=this.getInnerCompDetails(e),n=e.valueFormatted,r=e.value,o=n;null==o&&(o=""===r&&this.params.node.group?this.localeService.getLocaleTextFunc()("blanks","(Blanks)"):null!=r?r:null),this.comp.setInnerRenderer(t,o)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(null!=t&&!t.isRowGroupDisplayed(e.getId()))return this.params;var n=this.params,r=this.params,o=r.value,i=r.node,a=this.valueFormatterService.formatValue(e,i,o);return wa(wa({},n),{valueFormatted:a})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var n=f(this.params);n.value=this.params.value,"function"==typeof e?t=e(n):"string"==typeof e?t=this.expressionService.evaluate(e,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else t="Total "+(null!=this.params.value?this.params.value:"");var r=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(r,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),e);var n=this.userComponentFactory.getInnerRendererDetails(e,e),r=function(e){return e&&e.componentClass==t.compClass};if(n&&!r(n))return n;var o=this.displayedGroupNode.rowGroupColumn,i=o?o.getColDef():void 0;if(i){var a=this.userComponentFactory.getCellRendererDetails(i,e);if(a&&!r(a))return a;if(r(a)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,ra.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.gridOptionsService.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,t=this.params,n=xr("groupExpanded",this.gridOptionsService,null),r=xr("groupContracted",this.gridOptionsService,null);n&&this.eExpanded.appendChild(n),r&&this.eContracted.appendChild(r);var o=t.eGridCell;(null===(e=this.params.column)||void 0===e?void 0:e.isCellEditable(t.node))&&this.gridOptionsService.is("enableGroupEdit")||!this.isExpandable()||t.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(t.node,ra.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var i=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,ra.EVENT_ALL_CHILDREN_COUNT_CHANGED,i),this.addManagedListener(this.displayedGroupNode,ra.EVENT_MASTER_CHANGED,i),this.addManagedListener(this.displayedGroupNode,ra.EVENT_GROUP_CHANGED,i),this.addManagedListener(this.displayedGroupNode,ra.EVENT_HAS_CHILDREN_CHANGED,i)},t.prototype.onExpandClicked=function(e){Se(e)||(Ee(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,n=!t.expanded;!n&&t.sticky&&this.scrollToStickyNode(t),t.setExpanded(n,e)},t.prototype.scrollToStickyNode=function(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!e.isExpandable()||e.footer||t)return!1;var n=this.params.column;return null==n||"string"!=typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,t=e.params,n=e.displayedGroupNode,r=e.columnModel,o=t.node,i=this.isExpandable();if(i){var a=!!this.showingValueForOpenedParent||o.expanded;this.comp.setExpandedDisplayed(a),this.comp.setContractedDisplayed(!a)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var s=r.isPivotMode(),l=s&&n.leafGroup,c=i&&!l,u=o.footer&&-1===o.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",c),this.comp.addOrRemoveCssClass("ag-row-group",c),s?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",l):u||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!c)},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,ra.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsService.is("groupHideOpenParents")){var e=this.params,t=e.node,n=!!e.colDef,r=this.gridOptionsService.isTreeData(),o=!n||r||!0===e.colDef.showRowGroup?t.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+o,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new ga(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||!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,t=this.displayedGroupNode,n=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(n){var r=new sa;this.getContext().createBean(r),r.init({rowNode:t,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(r.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(r)})}this.comp.setCheckboxVisible(n)},t.prototype.onKeyDown=function(e){e.key!==Pr.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e)},t.prototype.onCellDblClicked=function(e){Se(e)||Pe(this.eExpanded,e)||Pe(this.eContracted,e)||this.onExpandOrContract(e)},ba([$("expressionService")],t.prototype,"expressionService",void 0),ba([$("valueFormatterService")],t.prototype,"valueFormatterService",void 0),ba([$("columnModel")],t.prototype,"columnModel",void 0),ba([$("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ba([$("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(Le),Ca=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ea=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sa=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ca(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 zn(t.eContracted,e)},setExpandedDisplayed:function(e){return zn(t.eExpanded,e)},setCheckboxVisible:function(e){return t.eCheckbox.classList.toggle("ag-invisible",!e)}},r=this.createManagedBean(new _a),o=!e.colDef,i=this.getGui();r.init(n,i,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),o&&Ft(i,"gridcell")},t.prototype.setRenderDetails=function(e,t){var n=this;if(e){var r=e.newAgStackInstance();if(!r)return;r.then(function(e){if(e){var t=function(){return n.context.destroyBean(e)};n.isAlive()?(n.eValue.appendChild(e.getGui()),n.addDestroyFunc(t)):t()}})}else this.eValue.innerText=t},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper">\n            <span class="ag-group-expanded" ref="eExpanded"></span>\n            <span class="ag-group-contracted" ref="eContracted"></span>\n            <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n            <span class="ag-group-value" ref="eValue"></span>\n            <span class="ag-group-child-count" ref="eChildCount"></span>\n        </span>',Ea([oo("eExpanded")],t.prototype,"eExpanded",void 0),Ea([oo("eContracted")],t.prototype,"eContracted",void 0),Ea([oo("eCheckbox")],t.prototype,"eCheckbox",void 0),Ea([oo("eValue")],t.prototype,"eValue",void 0),Ea([oo("eChildCount")],t.prototype,"eChildCount",void 0),t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xa=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Da=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Oa(t,e),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=xr("groupLoading",this.gridOptionsService,null);e&&this.eLoadingIcon.appendChild(e);var t=this.localeService.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>',xa([oo("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),xa([oo("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(no),Pa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ma=function(e){function t(){return e.call(this)||this}return Pa(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n,r=null!==(n=this.gridOptionsService.get("overlayLoadingTemplate"))&&void 0!==n?n:t.DEFAULT_LOADING_OVERLAY_TEMPLATE,o=this.localeService.getLocaleTextFunc(),i=r.replace("[LOADING...]",o("loadingOoo","Loading..."));this.setTemplate(i)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ra=function(e){function t(){return e.call(this)||this}return Ta(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n,r=null!==(n=this.gridOptionsService.get("overlayNoRowsTemplate"))&&void 0!==n?n:t.DEFAULT_NO_ROWS_TEMPLATE,o=this.localeService.getLocaleTextFunc(),i=r.replace("[NO_ROWS_TO_SHOW]",o("noRowsToShow","No Rows To Show"));this.setTemplate(i)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',t}(no),Ia=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fa=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return Ia(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=ht(t)},t}(Wi),ka=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),La=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ba=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Na=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:li,agColumnHeader:ji,agColumnGroupHeader:Hi,agSortIndicator:Li,agTextColumnFloatingFilter:Ri,agNumberColumnFloatingFilter:Mi,agDateColumnFloatingFilter:ai,agReadOnlyFloatingFilter:lo,agAnimateShowChangeCellRenderer:Ji,agAnimateSlideCellRenderer:ta,agGroupCellRenderer:Sa,agGroupRowRenderer:Sa,agLoadingCellRenderer:Da,agCellEditor:Xi,agTextCellEditor:Xi,agSelectCellEditor:qi,agLargeTextCellEditor:$i,agTextColumnFilter:Ci,agNumberColumnFilter:Ai,agDateColumnFilter:ti,agLoadingOverlay:Ma,agNoRowsOverlay:Ra,agTooltipComponent:Fa},t.enterpriseAgDefaultCompsModule={agSetColumnFilter:X.SetFilterModule,agSetColumnFloatingFilter:X.SetFilterModule,agMultiColumnFilter:X.MultiFilterModule,agMultiColumnFloatingFilter:X.MultiFilterModule,agGroupColumnFilter:X.RowGroupingModule,agGroupColumnFloatingFilter:X.RowGroupingModule,agRichSelect:X.RichSelectModule,agRichSelectCellEditor:X.RichSelectModule,agDetailCellRenderer:X.MasterDetailModule,agSparklineCellRenderer:X.SparklinesModule},t.deprecatedAgGridDefaults={agPopupTextCellEditor:'AG Grid: Since v27.1 The agPopupTextCellEditor is deprecated. Instead use { cellEditor: "agTextCellEditor", cellEditorPopup: true }',agPopupSelectCellEditor:'AG Grid: Since v27.1 the agPopupSelectCellEditor is deprecated. Instead use { cellEditor: "agSelectCellEditor", cellEditorPopup: true }'},t.jsComps={},t.fwComps={},t}return ka(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&h(this.gridOptions.components,function(t,n){return e.registerJsComponent(t,n)}),null!=this.gridOptions.frameworkComponents&&h(this.gridOptions.frameworkComponents,function(t,n){return e.registerFwComponent(t,n)})},t.prototype.registerDefaultComponent=function(e,t){this.agGridDefaults[e]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[e]=t},t.prototype.registerJsComponent=function(e,t){this.fwComps[e]?console.error("Trying to register a component that you have already registered for frameworks: "+e):this.jsComps[e]=t},t.prototype.registerFwComponent=function(e,t){x(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"),this.fwComps[e]=t},t.prototype.retrieve=function(e,t){var n=this,r=function(e,t){return{componentFromFramework:t,component:e}},o=this.getFrameworkOverrides().frameworkComponent(t,this.gridOptions.components);if(null!=o)return r(o,!0);var i=this.fwComps[t];if(i)return r(i,!0);var a=this.jsComps[t];if(a)return r(a,this.getFrameworkOverrides().isFrameworkComponent(a));var s=this.agGridDefaults[t];if(s)return r(s,!1);var l=this.enterpriseAgDefaultCompsModule[t];return l?te.assertRegistered(l,"AG Grid '"+e+"' component: "+t):this.deprecatedAgGridDefaults[t]?x(function(){return console.warn(n.deprecatedAgGridDefaults[t])},t):x(function(){n.warnAboutMissingComponent(e,t)},"MissingComp"+t),null},t.prototype.warnAboutMissingComponent=function(e,t){var n=qe(t,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ba(arguments[t]));return e}(Object.keys(this.agGridDefaults).filter(function(e){return!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(e)}),Object.keys(this.jsComps),Object.keys(this.fwComps)),!0,.8);console.warn("AG Grid: Could not find '"+t+"' component. It was configured as \""+e+": '"+t+"'\" but it wasn't found in the list of registered components."),n.length>0&&console.warn("         Did you mean: ["+n.slice(0,3)+"]?"),console.warn("If using a custom component check it has been registered as described in: https://ag-grid.com/javascript-data-grid/components/")},La([$("gridOptions")],t.prototype,"gridOptions",void 0),La([G],t.prototype,"init",null),La([z("userComponentRegistry")],t)}(Le),ja={propertyName:"dateComponent",cellRenderer:!1},Ua={propertyName:"headerComponent",cellRenderer:!1},Va={propertyName:"headerGroupComponent",cellRenderer:!1},Ha={propertyName:"cellRenderer",cellRenderer:!0},Ga={propertyName:"cellEditor",cellRenderer:!1},Wa={propertyName:"innerRenderer",cellRenderer:!0},za={propertyName:"loadingOverlayComponent",cellRenderer:!1},$a={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Ka={propertyName:"tooltipComponent",cellRenderer:!1},Qa={propertyName:"filter",cellRenderer:!1},qa={propertyName:"floatingFilterComponent",cellRenderer:!1},Ya={propertyName:"toolPanel",cellRenderer:!1},Xa={propertyName:"statusPanel",cellRenderer:!1},Za={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Ja={propertyName:"loadingCellRenderer",cellRenderer:!0},es={propertyName:"groupRowRenderer",cellRenderer:!0},ts={propertyName:"detailCellRenderer",cellRenderer:!0},ns=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}(),rs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),os=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},is=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rs(t,e),t.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,Ua,"agColumnHeader",t)},t.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,Va,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Za,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ja,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,es,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,ts,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,Wa,null,t)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,Wa,null,t)},t.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,Ha,null,t)},t.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,Ga,"agCellEditor",t,!0)},t.prototype.getFilterDetails=function(e,t,n){return this.getCompDetails(e,Qa,n,t,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,ja,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,za,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,$a,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Ka,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,Ha,null,t)},t.prototype.getFloatingFilterCompDetails=function(e,t,n){return this.getCompDetails(e,qa,n,t)},t.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,Ya,null,t,!0)},t.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,Xa,null,t,!0)},t.prototype.getCompDetails=function(e,t,n,r,o){var i=this;void 0===o&&(o=!1);var a=t.propertyName,s=t.cellRenderer,l=this.getCompKeys(e,t,r),c=l.compName,u=l.jsComp,d=l.fwComp,p=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(e){var t=i.userComponentRegistry.retrieve(a,e);t&&(u=t.componentFromFramework?void 0:t.component,d=t.componentFromFramework?t.component:void 0)};if(null!=c&&g(c),null==u&&null==d&&null!=n&&g(n),u&&s&&!this.agComponentUtils.doesImplementIComponent(u)&&(u=this.agComponentUtils.adaptFunction(a,u)),u||d){var m=this.mergeParamsWithApplicationProvidedParams(e,t,r,p),v=null==u,y=u||d;return{componentFromFramework:v,componentClass:y,params:m,type:t,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return i.newAgStackInstance(y,v,m,t)}}}o&&console.error("AG Grid: Could not find component "+c+", did you forget to configure this component?")},t.prototype.getCompKeys=function(e,t,n){var r,o,i,a,s,l,c=this,u=t.propertyName;if(e){var d=e,p=d[u+"Selector"],h=p?p(n):null,f=function(e,t){var n=function(){var e="AG Grid: As of v27, the property "+u+"Framework is deprecated. The property "+u+" can now be used for JavaScript AND Framework Components.";x(function(){return console.warn(e)},"UserComponentFactory."+u+"FrameworkDeprecated")};"string"==typeof e?r=e:"string"==typeof t?(n(),r=t):null!=e&&!0!==e?c.getFrameworkOverrides().isFrameworkComponent(e)?i=e:o=e:null!=t&&(n(),i=t)};if(h){if(null!=h.frameworkComponent){var g="AG Grid: As of v27, the return for "+u+"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.";x(function(){return console.warn(g)},"UserComponentFactory."+u+"FrameworkSelectorDeprecated"),f(h.frameworkComponent,void 0)}else f(h.component,void 0);a=h.params,s=h.popup,l=h.popupPosition}else f(d[u],d[u+"Framework"])}return{compName:r,jsComp:o,fwComp:i,paramsFromSelector:a,popupFromSelector:s,popupPositionFromSelector:l}},t.prototype.newAgStackInstance=function(e,t,n,r){var o,i=r.propertyName;if(t){var a=this.componentMetadataProvider.retrieve(i);o=this.frameworkComponentWrapper.wrap(e,a.mandatoryMethodList,a.optionalMethodList,r)}else o=new e;var s=this.initComponent(o,n);return null==s?$r.resolve(o):s.then(function(){return o})},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,n,r){void 0===r&&(r=null);var o={context:this.gridOptionsService.context,columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api};b(o,n);var i=e&&e[t.propertyName+"Params"];return"function"==typeof i?b(o,i(n)):"object"==typeof i&&b(o,i),b(o,r),o},t.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},t.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var t=null,n=this.getCompKeys(e,Qa),r=n.compName,o=n.jsComp,i=n.fwComp;return r?t=ns.getFloatingFilterType(r):null==o&&null==i&&!0===e.filter&&(t=te.isRegistered(X.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"),t},os([$("gridOptions")],t.prototype,"gridOptions",void 0),os([$("agComponentUtils")],t.prototype,"agComponentUtils",void 0),os([$("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),os([$("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),os([K("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),os([z("userComponentFactory")],t)}(Le);!function(e){e[e.SINGLE_SHEET=0]="SINGLE_SHEET",e[e.MULTI_SHEET=1]="MULTI_SHEET"}(da||(da={}));var as,ss,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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},us=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return ls(t,e),t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){var r=e.touchStartListener;t.removeEventListener("touchstart",r,{passive:!0})}},t.prototype.removeDragSource=function(e){var t=this.dragSources.find(function(t){return t.dragSource===e});t&&(this.removeListener(t),he(this.dragSources,t))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,t){var n=this;void 0===t&&(t=!1);var r=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",r);var o=null,i=this.gridOptionsService.is("suppressTouch");t&&!i&&(o=function(t){Wn(t.target)||(t.cancelable&&(t.preventDefault(),t.stopPropagation()),n.onTouchStart(e,t))},e.eElement.addEventListener("touchstart",o,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:r,touchStartListener:o,touchEnabled:t})},t.prototype.getStartTarget=function(){return this.startTarget},t.prototype.onTouchStart=function(e,t){var n=this;this.currentDragParams=e,this.dragging=!1;var r=t.touches[0];this.touchLastTime=r,this.touchStart=r;var o=function(t){return n.onTouchUp(t,e.eElement)},i=t.target,a=[{target:this.gridOptionsService.getRootNode(),type:"touchmove",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:i,type:"touchmove",listener:function(t){return n.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener:o,options:{passive:!0}},{target:i,type:"touchcancel",listener:o,options:{passive:!0}}];this.addTemporaryEvents(a),0===e.dragStartPixels&&this.onCommonMove(r,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,t){var n=this,r=t;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||r._alreadyProcessedByDragService||(r._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;var o=this.gridOptionsService.getRootNode(),i=[{target:o,type:"mousemove",listener:function(t){return n.onMouseMove(t,e.eElement)}},{target:o,type:"mouseup",listener:function(t){return n.onMouseUp(t,e.eElement)}},{target:o,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(i),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach(function(e){var t=e.target,n=e.type,r=e.listener,o=e.options;t.addEventListener(n,r,o)}),this.dragEndFunctions.push(function(){e.forEach(function(e){var t=e.target,n=e.type,r=e.listener,o=e.options;t.removeEventListener(n,r,o)})})},t.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels;return Lr(e,t,o(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 r={type:Ve.EVENT_DRAG_STARTED,target:n};this.eventService.dispatchEvent(r),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,t){var n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)},t.prototype.onMouseMove=function(e,t){(this.gridOptionsService.is("enableCellTextSelection")||gn())&&"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=e.target,n=null==t?void 0:t.tagName.toLocaleLowerCase();return!!(null==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,target:t};this.eventService.dispatchEvent(n)}this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(function(e){return e()}),this.dragEndFunctions.length=0},cs([$("mouseEventService")],t.prototype,"mouseEventService",void 0),cs([W],t.prototype,"removeAllListeners",null),cs([z("dragService")],t)}(Le);!function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(as||(as={})),function(e){e.EVERYTHING="group",e.FILTER="filter",e.SORT="sort",e.MAP="map",e.AGGREGATE="aggregate",e.FILTER_AGGREGATES="filter_aggregates",e.PIVOT="pivot",e.NOTHING="nothing"}(ss||(ss={}));var ds=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};function ps(e){var t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var hs,fs=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"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":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.getSetterMethod=function(e){return"set"+e.charAt(0).toUpperCase()+e.substring(1)},e.prototype.__setProperty=function(e,t){this.gridOptionsService.set(e,t);var n=this.getSetterMethod(e);this[n]&&this[n](t)},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;h(this.detailGridInfoMap,function(n,r){o(r)&&(e(r,t),t++)})},e.prototype.getDataAsCsv=function(e){if(te.assertRegistered(X.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){te.assertRegistered(X.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getExcelExportMode=function(e){var t=this.gridOptionsService.get("defaultExcelExportParams");return Object.assign({exportMode:"xlsx"},t,e).exportMode},e.prototype.assertNotExcelMultiSheet=function(e,t){if(!te.assertRegistered(X.ExcelExportModule,"api."+e))return!1;var n=this.getExcelExportMode(t);return this.excelCreator.getFactoryMode(n)!==da.MULTI_SHEET||(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1)},e.prototype.getDataAsExcel=function(e){if(this.assertNotExcelMultiSheet("getDataAsExcel",e))return this.excelCreator.getDataAsExcel(e)},e.prototype.exportDataAsExcel=function(e){this.assertNotExcelMultiSheet("exportDataAsExcel",e)&&this.excelCreator.exportDataAsExcel(e)},e.prototype.getSheetDataForExcel=function(e){if(te.assertRegistered(X.ExcelExportModule,"api.getSheetDataForExcel")){var t=this.getExcelExportMode(e);return this.excelCreator.setFactoryMode(da.MULTI_SHEET,t),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(te.assertRegistered(X.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(te.assertRegistered(X.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var n=this.ctrlsService.getGridBodyCtrl().getGui(),r="aria-"+e;null===t?n.removeAttribute(r):n.setAttribute(r,t)}},e.prototype.logMissingRowModel=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];console.error("AG Grid: api."+e+" can only be called when gridOptions.rowModelType is "+t.join(" or "))},e.prototype.setServerSideDatasource=function(e){this.serverSideRowModel?this.serverSideRowModel.setDatasource(e):this.logMissingRowModel("setServerSideDatasource","serverSide")},e.prototype.setCacheBlockSize=function(e){this.serverSideRowModel?(this.gridOptionsService.set("cacheBlockSize",e),this.serverSideRowModel.resetRootStore()):this.logMissingRowModel("setCacheBlockSize","serverSide")},e.prototype.setDatasource=function(e){this.gridOptionsService.isRowModelType("infinite")?this.rowModel.setDatasource(e):this.logMissingRowModel("setDatasource","infinite")},e.prototype.setViewportDatasource=function(e){this.gridOptionsService.isRowModelType("viewport")?this.rowModel.setViewportDatasource(e):this.logMissingRowModel("setViewportDatasource","viewport")},e.prototype.setRowData=function(e){null==this.immutableService?this.logMissingRowModel("setRowData","clientSide"):this.immutableService.isActive()?this.immutableService.setRowData(e):(this.selectionService.reset(),this.clientSideRowModel.setRowData(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),this.gridOptionsService.set("columnDefs",e,!0,{source:t})},e.prototype.setAutoGroupColumnDef=function(e,t){void 0===t&&(t="api"),this.gridOptionsService.set("autoGroupColumnDef",e,!0,{source:t})},e.prototype.setDefaultColDef=function(e,t){void 0===t&&(t="api"),this.gridOptionsService.set("defaultColDef",e,!0,{source:t})},e.prototype.setColumnTypes=function(e,t){void 0===t&&(t="api"),this.gridOptionsService.set("columnTypes",e,!0,{source:t})},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.gridOptionsService.set("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsService.set("alwaysShowVerticalScroll",e)},e.prototype.refreshCells=function(e){void 0===e&&(e={}),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.gridOptionsService.set("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,n){e&&(n&&e.parent&&-1!==e.parent.level&&this.setRowNodeExpanded(e.parent,t,n),e.setExpanded(t))},e.prototype.onGroupExpandedOrCollapsed=function(){i(this.clientSideRowModel)?this.logMissingRowModel("onGroupExpandedOrCollapsed","clientSide"):this.clientSideRowModel.refreshModel({step:ss.MAP})},e.prototype.refreshClientSideRowModel=function(e){i(this.clientSideRowModel)?this.logMissingRowModel("refreshClientSideRowModel","clientSide"):this.clientSideRowModel.refreshModel(e)},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.gridOptionsService.getRowHeightAsNumber(),headerHeight:this.columnModel.getHeaderHeight()}},e.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):this.logMissingRowModel("expandAll","clientSide","serverSide")},e.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):this.logMissingRowModel("expandAll","clientSide","serverSide")},e.prototype.addRenderedRowListener=function(e,t,n){this.rowRenderer.addRenderedRowListener(e,t,n)},e.prototype.getQuickFilter=function(){return this.gridOptionsService.get("quickFilterText")},e.prototype.setQuickFilter=function(e){this.gridOptionsService.set("quickFilterText",e)},e.prototype.setExcludeHiddenColumnsFromQuickFilter=function(e){this.gridOptionsService.set("excludeHiddenColumnsFromQuickFilter",e)},e.prototype.selectAll=function(e){void 0===e&&(e="apiSelectAll"),this.selectionService.selectAllRowNodes({source:e})},e.prototype.deselectAll=function(e){void 0===e&&(e="apiSelectAll"),this.selectionService.deselectAllRowNodes({source:e})},e.prototype.selectAllFiltered=function(e){void 0===e&&(e="apiSelectAllFiltered"),this.selectionService.selectAllRowNodes({source:e,justFiltered:!0})},e.prototype.deselectAllFiltered=function(e){void 0===e&&(e="apiSelectAllFiltered"),this.selectionService.deselectAllRowNodes({source:e,justFiltered:!0})},e.prototype.getServerSideSelectionState=function(){return i(this.serverSideRowModel)?(this.logMissingRowModel("getServerSideSelectionState","serverSide"),null):this.selectionService.getServerSideSelectionState()},e.prototype.setServerSideSelectionState=function(e){i(this.serverSideRowModel)?this.logMissingRowModel("setServerSideSelectionState","serverSide"):this.selectionService.setServerSideSelectionState(e)},e.prototype.selectAllOnCurrentPage=function(e){void 0===e&&(e="apiSelectAllCurrentPage"),this.selectionService.selectAllRowNodes({source:e,justCurrentPage:!0})},e.prototype.deselectAllOnCurrentPage=function(e){void 0===e&&(e="apiSelectAllCurrentPage"),this.selectionService.deselectAllRowNodes({source:e,justCurrentPage:!0})},e.prototype.sizeColumnsToFit=function(e){this.gridBodyCtrl.sizeColumnsToFit(e)},e.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},e.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){if(!i(this.clientSideRowModel))return this.selectionService.getBestCostNodeSelection();this.logMissingRowModel("getBestCostNodeSelection","clientSide")},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},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)?this.logMissingRowModel("forEachLeafNode","clientSide"):this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e,t){this.rowModel.forEachNode(e,t)},e.prototype.forEachNodeAfterFilter=function(e){i(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilter","clientSide"):this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){i(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilterAndSort","clientSide"):this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterInstance=function(e,t){var n=this.getFilterInstanceImpl(e,function(e){if(t){var n=ps(e);t(n)}});return ps(n)},e.prototype.getFilterInstanceImpl=function(e,t){var n=this.columnModel.getPrimaryColumn(e);if(n){var r=this.filterManager.getFilterComponent(n,"NO_UI"),o=r&&r.resolveNow(null,function(e){return e});return o?setTimeout(t,0,o):r&&r.then(function(e){t(e)}),o}},e.prototype.destroyFilter=function(e){var t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"api")},e.prototype.getStatusPanel=function(e){if(te.assertRegistered(X.StatusBarModule,"api.getStatusPanel"))return ps(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({rowIndex:e,column:t,rowPinned:n,forceBrowserFocus:!0})},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsService.set("suppressRowDrag",e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsService.set("suppressMoveWhenRowDragging",e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsService.set("suppressRowClickSelection",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.gridOptionsService.set("headerHeight",e)},e.prototype.setDomLayout=function(e){this.clientSideRowModel||"autoHeight"!==e?this.gridOptionsService.set("domLayout",e):console.error("AG Grid: domLayout can only be set to 'autoHeight' when using the client side row model.")},e.prototype.setEnableCellTextSelection=function(e){this.gridBodyCtrl.setCellTextSelection(e)},e.prototype.setFillHandleDirection=function(e){this.gridOptionsService.set("fillHandleDirection",e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsService.set("groupHeaderHeight",e)},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsService.set("floatingFiltersHeight",e)},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsService.set("pivotHeaderHeight",e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsService.set("pivotGroupHeaderHeight",e)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.setAnimateRows=function(e){this.gridOptionsService.set("animateRows",e)},e.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsService.set("isExternalFilterPresent",e)},e.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsService.set("doesExternalFilterPass",e)},e.prototype.setNavigateToNextCell=function(e){this.gridOptionsService.set("navigateToNextCell",e)},e.prototype.setTabToNextCell=function(e){this.gridOptionsService.set("tabToNextCell",e)},e.prototype.setTabToNextHeader=function(e){this.gridOptionsService.set("tabToNextHeader",e)},e.prototype.setNavigateToNextHeader=function(e){this.gridOptionsService.set("navigateToNextHeader",e)},e.prototype.setRowGroupPanelShow=function(e){this.gridOptionsService.set("rowGroupPanelShow",e)},e.prototype.setGroupRowAggNodes=function(e){tt("27.2","setGroupRowAggNodes","setGetGroupRowAgg"),this.gridOptionsService.set("groupRowAggNodes",e)},e.prototype.setGetGroupRowAgg=function(e){this.gridOptionsService.set("getGroupRowAgg",e)},e.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsService.set("getBusinessKeyForNode",e)},e.prototype.setGetChildCount=function(e){this.gridOptionsService.set("getChildCount",e)},e.prototype.setProcessRowPostCreate=function(e){this.gridOptionsService.set("processRowPostCreate",e)},e.prototype.setGetRowNodeId=function(e){tt("27.1","setGetRowNodeId","setGetRowId"),this.gridOptionsService.set("getRowNodeId",e)},e.prototype.setGetRowId=function(e){this.gridOptionsService.set("getRowId",e)},e.prototype.setGetRowClass=function(e){this.gridOptionsService.set("getRowClass",e)},e.prototype.setIsFullWidthCell=function(e){tt("27.2","setIsFullWidthCell","setIsFullWidthRow"),this.gridOptionsService.set("isFullWidthCell",e)},e.prototype.setIsFullWidthRow=function(e){this.gridOptionsService.set("isFullWidthRow",e)},e.prototype.setIsRowSelectable=function(e){this.gridOptionsService.set("isRowSelectable",e)},e.prototype.setIsRowMaster=function(e){this.gridOptionsService.set("isRowMaster",e)},e.prototype.setPostSort=function(e){tt("27.2","setPostSort","setPostSortRows"),this.gridOptionsService.set("postSort",e)},e.prototype.setPostSortRows=function(e){this.gridOptionsService.set("postSortRows",e)},e.prototype.setGetDocument=function(e){this.gridOptionsService.set("getDocument",e)},e.prototype.setGetContextMenuItems=function(e){this.gridOptionsService.set("getContextMenuItems",e)},e.prototype.setGetMainMenuItems=function(e){this.gridOptionsService.set("getMainMenuItems",e)},e.prototype.setProcessCellForClipboard=function(e){this.gridOptionsService.set("processCellForClipboard",e)},e.prototype.setSendToClipboard=function(e){this.gridOptionsService.set("sendToClipboard",e)},e.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsService.set("processCellFromClipboard",e)},e.prototype.setProcessSecondaryColDef=function(e){tt("28.0","setProcessSecondaryColDef","setProcessPivotResultColDef"),this.setProcessPivotResultColDef(e)},e.prototype.setProcessSecondaryColGroupDef=function(e){tt("28.0","setProcessSecondaryColGroupDef","setProcessPivotResultColGroupDef"),this.setProcessPivotResultColGroupDef(e)},e.prototype.setProcessPivotResultColDef=function(e){this.gridOptionsService.set("processPivotResultColDef",e)},e.prototype.setProcessPivotResultColGroupDef=function(e){this.gridOptionsService.set("processPivotResultColGroupDef",e)},e.prototype.setPostProcessPopup=function(e){this.gridOptionsService.set("postProcessPopup",e)},e.prototype.setDefaultGroupOrderComparator=function(e){tt("27.2","setDefaultGroupOrderComparator","setInitialGroupOrderComparator"),this.gridOptionsService.set("defaultGroupOrderComparator",e)},e.prototype.setInitialGroupOrderComparator=function(e){this.gridOptionsService.set("initialGroupOrderComparator",e)},e.prototype.setGetChartToolbarItems=function(e){this.gridOptionsService.set("getChartToolbarItems",e)},e.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsService.set("paginationNumberFormatter",e)},e.prototype.setGetServerSideStoreParams=function(e){tt("28.0","setGetServerSideStoreParams","setGetServerSideGroupLevelParams"),this.setGetServerSideGroupLevelParams(e)},e.prototype.setGetServerSideGroupLevelParams=function(e){this.gridOptionsService.set("getServerSideGroupLevelParams",e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsService.set("isServerSideGroupOpenByDefault",e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsService.set("isApplyServerSideTransaction",e)},e.prototype.setIsServerSideGroup=function(e){this.gridOptionsService.set("isServerSideGroup",e)},e.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsService.set("getServerSideGroupKey",e)},e.prototype.setGetRowStyle=function(e){this.gridOptionsService.set("getRowStyle",e)},e.prototype.setGetRowHeight=function(e){this.gridOptionsService.set("getRowHeight",e)},e.prototype.assertSideBarLoaded=function(e){return te.assertRegistered(X.SideBarModule,"api."+e)},e.prototype.isSideBarVisible=function(){return this.assertSideBarLoaded("isSideBarVisible")&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(e){this.assertSideBarLoaded("setSideBarVisible")&&this.sideBarComp.setDisplayed(e)},e.prototype.setSideBarPosition=function(e){this.assertSideBarLoaded("setSideBarPosition")&&this.sideBarComp.setSideBarPosition(e)},e.prototype.openToolPanel=function(e){this.assertSideBarLoaded("openToolPanel")&&this.sideBarComp.openToolPanel(e,"api")},e.prototype.closeToolPanel=function(){this.assertSideBarLoaded("closeToolPanel")&&this.sideBarComp.close("api")},e.prototype.getOpenedToolPanel=function(){return this.assertSideBarLoaded("getOpenedToolPanel")?this.sideBarComp.openedItem():null},e.prototype.refreshToolPanel=function(){this.assertSideBarLoaded("refreshToolPanel")&&this.sideBarComp.refresh()},e.prototype.isToolPanelShowing=function(){return this.assertSideBarLoaded("isToolPanelShowing")&&this.sideBarComp.isToolPanelShowing()},e.prototype.getToolPanelInstance=function(e){if(this.assertSideBarLoaded("getToolPanelInstance"))return ps(this.sideBarComp.getToolPanelInstance(e))},e.prototype.getSideBar=function(){if(this.assertSideBarLoaded("getSideBar"))return this.sideBarComp.getDef()},e.prototype.setSideBar=function(e){this.gridOptionsService.set("sideBar",e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsService.set("suppressClipboardPaste",e)},e.prototype.resetRowHeights=function(){if(o(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.gridOptionsService.set("groupRemoveSingleChildren",e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsService.set("groupRemoveLowestSingleChildren",e)},e.prototype.setGroupDisplayType=function(e){this.gridOptionsService.set("groupDisplayType",e)},e.prototype.setRowClass=function(e){this.gridOptionsService.set("rowClass",e)},e.prototype.setDeltaSort=function(e){this.gridOptionsService.set("deltaSort",e)},e.prototype.setRowCount=function(e,t){if(this.serverSideRowModel)return this.columnModel.isRowGroupEmpty()?void this.serverSideRowModel.setRowCount(e,t):void console.error("AG Grid: setRowCount cannot be used while using row grouping.");this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):this.logMissingRowModel("setRowCount","infinite","serverSide")},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.gridOptionsService.useAsyncEvents();this.eventService.addEventListener(e,t,n)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsService.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var n=this.gridOptionsService.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsService.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(C.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.filterManager.resetQuickFilterCache()},e.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(te.assertRegistered(X.RangeSelectionModule,"api.getCellRanges"),null)},e.prototype.addCellRange=function(e){this.rangeService?this.rangeService.addCellRange(e):te.assertRegistered(X.RangeSelectionModule,"api.addCellRange")},e.prototype.clearRangeSelection=function(){this.rangeService&&this.rangeService.removeAllCellRanges(),te.assertRegistered(X.RangeSelectionModule,"gridApi.clearRangeSelection")},e.prototype.undoCellEditing=function(){this.undoRedoService.undo("api")},e.prototype.redoCellEditing=function(){this.undoRedoService.redo("api")},e.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},e.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},e.prototype.getChartModels=function(){if(te.assertRegistered(X.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.getChartRef=function(e){if(te.assertRegistered(X.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(e)},e.prototype.getChartImageDataURL=function(e){if(te.assertRegistered(X.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(e)},e.prototype.downloadChart=function(e){if(te.assertRegistered(X.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(e)},e.prototype.openChartToolPanel=function(e){if(te.assertRegistered(X.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(e)},e.prototype.closeChartToolPanel=function(e){if(te.assertRegistered(X.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(e.chartId)},e.prototype.createRangeChart=function(e){if(te.assertRegistered(X.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createCrossFilterChart=function(e){if(te.assertRegistered(X.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(e)},e.prototype.restoreChart=function(e,t){if(te.assertRegistered(X.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(e,t)},e.prototype.createPivotChart=function(e){if(te.assertRegistered(X.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copyToClipboard=function(e){te.assertRegistered(X.ClipboardModule,"api.copyToClipboard")&&this.clipboardService.copyToClipboard(e)},e.prototype.cutToClipboard=function(e){te.assertRegistered(X.ClipboardModule,"api.cutToClipboard")&&this.clipboardService.cutToClipboard(e)},e.prototype.copySelectedRowsToClipboard=function(e){te.assertRegistered(X.ClipboardModule,"api.copySelectedRowsToClipboard")&&this.clipboardService.copySelectedRowsToClipboard(e)},e.prototype.copySelectedRangeToClipboard=function(e){te.assertRegistered(X.ClipboardModule,"api.copySelectedRangeToClipboard")&&this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){te.assertRegistered(X.ClipboardModule,"api.copySelectedRangeDown")&&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.gridOptionsService.set("popupParent",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(ps)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e).map(ps)},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 r=this.navigationService.getCellByPosition(n);r&&r.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);this.logMissingRowModel("applyServerSideTransaction","serverSide")},e.prototype.applyServerSideTransactionAsync=function(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);this.logMissingRowModel("applyServerSideTransactionAsync","serverSide")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():this.logMissingRowModel("retryServerSideLoads","serverSide")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel){var t=this.clientSideRowModel.updateRowData(e);return this.gridOptionsService.is("suppressChangeDetection")||this.rowRenderer.refreshCells(),t}this.logMissingRowModel("applyTransaction","clientSide")},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):this.logMissingRowModel("applyTransactionAsync","clientSide")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():this.logMissingRowModel("flushAsyncTransactions","clientSide")},e.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(e){this.gridOptionsService.set("suppressModelUpdateAfterUpdateTransaction",e)},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},e.prototype.refreshServerSide=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):this.logMissingRowModel("refreshServerSide","serverSide")},e.prototype.refreshServerSideStore=function(e){return tt("28.0","refreshServerSideStore","refreshServerSide"),this.refreshServerSide(e)},e.prototype.getServerSideStoreState=function(){return tt("28.0","getServerSideStoreState","getServerSideGroupLevelState"),this.getServerSideGroupLevelState()},e.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},e.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},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.setPagination=function(e){this.gridOptionsService.set("pagination",e)},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsService.set("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)},ds([K("immutableService")],e.prototype,"immutableService",void 0),ds([K("csvCreator")],e.prototype,"csvCreator",void 0),ds([K("excelCreator")],e.prototype,"excelCreator",void 0),ds([$("rowRenderer")],e.prototype,"rowRenderer",void 0),ds([$("navigationService")],e.prototype,"navigationService",void 0),ds([$("filterManager")],e.prototype,"filterManager",void 0),ds([$("columnModel")],e.prototype,"columnModel",void 0),ds([$("selectionService")],e.prototype,"selectionService",void 0),ds([$("gridOptionsService")],e.prototype,"gridOptionsService",void 0),ds([$("valueService")],e.prototype,"valueService",void 0),ds([$("alignedGridsService")],e.prototype,"alignedGridsService",void 0),ds([$("eventService")],e.prototype,"eventService",void 0),ds([$("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),ds([$("context")],e.prototype,"context",void 0),ds([$("rowModel")],e.prototype,"rowModel",void 0),ds([$("sortController")],e.prototype,"sortController",void 0),ds([$("paginationProxy")],e.prototype,"paginationProxy",void 0),ds([$("focusService")],e.prototype,"focusService",void 0),ds([$("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ds([K("rangeService")],e.prototype,"rangeService",void 0),ds([K("clipboardService")],e.prototype,"clipboardService",void 0),ds([K("aggFuncService")],e.prototype,"aggFuncService",void 0),ds([$("menuFactory")],e.prototype,"menuFactory",void 0),ds([K("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),ds([$("valueCache")],e.prototype,"valueCache",void 0),ds([$("animationFrameService")],e.prototype,"animationFrameService",void 0),ds([K("statusBarService")],e.prototype,"statusBarService",void 0),ds([K("chartService")],e.prototype,"chartService",void 0),ds([K("undoRedoService")],e.prototype,"undoRedoService",void 0),ds([K("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),ds([K("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),ds([$("ctrlsService")],e.prototype,"ctrlsService",void 0),ds([G],e.prototype,"init",null),ds([W],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),ds([z("gridApi")],e)}(),gs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ms=function(){return ms=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ms.apply(this,arguments)},vs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ys=function(e){function t(){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 n;return gs(t,e),n=t,t.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(){e.refreshFiltersForAggregations(),e.resetQuickFilterCache()}),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,function(){return e.resetQuickFilterCache()}),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.resetQuickFilterCache()}),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VISIBLE,function(){e.gridOptionsService.is("excludeHiddenColumnsFromQuickFilter")&&e.resetQuickFilterCache()}),this.addManagedPropertyListener("quickFilterText",function(t){return e.setQuickFilter(t.currentValue)}),this.addManagedPropertyListener("excludeHiddenColumnsFromQuickFilter",function(){return e.onExcludeHiddenColumnsFromQuickFilterChanged()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsService.is("allowShowChangeAfterFilter"),this.externalFilterPresent=this.isExternalFilterPresentCallback()},t.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback("isExternalFilterPresent");return"function"==typeof e&&e({})},t.prototype.doesExternalFilterPass=function(e){var t=this.gridOptionsService.get("doesExternalFilterPass");return"function"==typeof t&&t(e)},t.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},t.prototype.setFilterModel=function(e){var t=this,n=[],r=this.getFilterModel();if(e){var o=jr(Object.keys(e));this.allColumnFilters.forEach(function(r,i){var a=e[i];n.push(t.setModelOnFilterWrapper(r.filterPromise,a)),o.delete(i)}),o.forEach(function(r){var o=t.columnModel.getPrimaryColumn(r)||t.columnModel.getGridColumn(r);if(o)if(o.isFilterAllowed()){var i=t.getOrCreateFilterWrapper(o,"NO_UI");i?n.push(t.setModelOnFilterWrapper(i.filterPromise,e[r])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+r)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+r);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+r)})}else this.allColumnFilters.forEach(function(e){n.push(t.setModelOnFilterWrapper(e.filterPromise,null))});$r.all(n).then(function(){var e=t.getFilterModel(),n=[];t.allColumnFilters.forEach(function(t,o){var i=r?r[o]:null,a=e?e[o]:null;Gr.jsonEquals(i,a)||n.push(t.column)}),n.length>0&&t.onFilterChanged({columns:n})})},t.prototype.setModelOnFilterWrapper=function(e,t){return new $r(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)||$r.resolve()).then(function(){return n()})})})},t.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach(function(t,n){var r=t.filterPromise.resolveNow(null,function(e){return e});if(null==r)return null;if("function"==typeof r.getModel){var i=r.getModel();o(i)&&(e[n]=i)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")}),e},t.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},t.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},t.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},t.prototype.doAggregateFiltersPass=function(e,t){return this.doColumnFiltersPass(e,t,!0)},t.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.gridOptionsService.getGroupAggFiltering();this.allColumnFilters.forEach(function(r){if(r.filterPromise.resolveNow(!1,t)){var o=r.filterPromise.resolveNow(null,function(e){return e});!function(t){if(!t.isPrimary())return!0;var r=!e.columnModel.isPivotActive();return!(!t.isValueActive()||!r)&&(!!e.columnModel.isPivotMode()||n)}(r.column)?e.activeColumnFilters.push(o):e.activeAggregateFilters.push(o)}})},t.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach(function(n){var r=n.filterPromise.resolveNow(!1,function(e){return e.isFilterActive()});n.column.setFilterActive(r,e,t)})},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},t.prototype.doColumnFiltersPass=function(e,t,n){for(var r=e.data,o=e.aggData,i=n?this.activeAggregateFilters:this.activeColumnFilters,a=n?o:r,s=0;s<i.length;s++){var l=i[s];if(null!=l&&l!==t){if("function"!=typeof l.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:e,data:a}))return!1}}return!0},t.prototype.parseQuickFilter=function(e){return o(e)?this.gridOptionsService.isRowModelType("clientSide")?e.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},t.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)},t.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode(function(e){return e.quickFilterAggregateText=null})},t.prototype.onExcludeHiddenColumnsFromQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.onFilterChanged()},t.prototype.refreshFiltersForAggregations=function(){this.gridOptionsService.getGroupAggFiltering()&&this.onFilterChanged()},t.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()},t.prototype.onFilterChanged=function(e){void 0===e&&(e={});var t=e.filterInstance,n=e.additionalEventAttributes,r=e.columns;this.updateDependantFilters(),this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",n),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.allColumnFilters.forEach(function(e){e.filterPromise&&e.filterPromise.then(function(e){e&&e!==t&&e.onAnyFilterChanged&&e.onAnyFilterChanged()})});var o={type:Ve.EVENT_FILTER_CHANGED,columns:r||[]};n&&b(o,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(o),this.processingFilterChange=!1},t.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},t.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},t.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})},t.prototype.doesRowPassQuickFilterNoCache=function(e,t){var n=this;return this.columnModel.getAllColumnsForQuickFilter().some(function(r){var i=n.getQuickFilterTextForColumn(r,e);return o(i)&&i.indexOf(t)>=0})},t.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},t.prototype.doesRowPassQuickFilter=function(e){var t=this,n=this.gridOptionsService.is("cacheQuickFilter");return this.quickFilterParts.every(function(r){return n?t.doesRowPassQuickFilterCache(e,r):t.doesRowPassQuickFilterNoCache(e,r)})},t.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},t.prototype.doesRowPassFilter=function(e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode)||this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip))},t.prototype.getQuickFilterTextForColumn=function(e,t){var n=this.valueService.getValue(e,t,!0),r=e.getColDef();if(r.getQuickFilterText){var i={value:n,node:t,data:t.data,column:e,colDef:r,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};n=r.getQuickFilterText(i)}return o(n)?n.toString().toUpperCase():null},t.prototype.aggregateRowForQuickFilter=function(e){var t=this,r=[];this.columnModel.getAllColumnsForQuickFilter().forEach(function(n){var i=t.getQuickFilterTextForColumn(n,e);o(i)&&r.push(i)}),e.quickFilterAggregateText=r.join(n.QUICK_FILTER_SEPARATOR)},t.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach(function(e){e.filterPromise.then(function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(e,{afterDataChange:!0}),this.updateActiveFilters()},t.prototype.createValueGetter=function(e){var t=this;return function(n){var r=n.node;return t.valueService.getValue(e,r,!0)}},t.prototype.getFilterComponent=function(e,t,n){var r;if(void 0===n&&(n=!0),n)return(null===(r=this.getOrCreateFilterWrapper(e,t))||void 0===r?void 0:r.filterPromise)||null;var o=this.cachedFilter(e);return o?o.filterPromise:null},t.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,function(e){return e.isFilterActive()})},t.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},t.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},t.prototype.createFilterInstance=function(e){var t,n=this,r=te.isRegistered(X.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",o=e.getColDef(),i=ms(ms({},this.createFilterParams(e,o)),{filterModifiedCallback:function(){var r={type:Ve.EVENT_FILTER_MODIFIED,column:e,filterInstance:t};n.eventService.dispatchEvent(r)},filterChangedCallback:function(r){var o={filterInstance:t,additionalEventAttributes:r,columns:[e]};n.callOnFilterChangedOutsideRenderCycle(o)},doesRowPassOtherFilter:function(e){return n.doesRowPassOtherFilters(t,e)}}),a=this.userComponentFactory.getFilterDetails(o,i,r);if(!a)return null;var s=a.newAgStackInstance();return s&&s.then(function(e){return t=e}),s},t.prototype.createFilterParams=function(e,t){return{column:e,colDef:f(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),doesRowPassOtherFilter:function(){return!0},api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},t.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,compiledElement:null,guiPromise:$r.resolve(null)};return n.filterPromise=this.createFilterInstance(e),n.filterPromise&&this.putIntoGui(n,t),n},t.prototype.putIntoGui=function(e,t){var n=this,r=document.createElement("div");r.className="ag-filter",e.guiPromise=new $r(function(i){e.filterPromise.then(function(a){var s=a.getGui();o(s)||console.warn("AG Grid: getGui method from filter returned "+s+", it should be a DOM element or an HTML template string."),"string"==typeof s&&(s=ar(s)),r.appendChild(s),i(r);var l={type:Ve.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:r};n.eventService.dispatchEvent(l)})})},t.prototype.onColumnsChanged=function(){var e=this,t=[];this.allColumnFilters.forEach(function(n,r){(n.column.isPrimary()?e.columnModel.getPrimaryColumn(r):e.columnModel.getGridColumn(r))||(t.push(n.column),e.disposeFilterWrapper(n,"columnChanged"))}),t.length>0?this.onFilterChanged({columns:t}):this.updateDependantFilters()},t.prototype.updateDependantFilters=function(){var e=this,t=this.columnModel.getGroupAutoColumns();null==t||t.forEach(function(t){"agGroupColumnFilter"===t.getColDef().filter&&e.getOrCreateFilterWrapper(t,"NO_UI")})},t.prototype.isFilterAllowed=function(e){var t,n;if(!e.isFilterAllowed())return!1;var r=this.allColumnFilters.get(e.getColId());return null===(n=null===(t=null==r?void 0:r.filterPromise)||void 0===t?void 0:t.resolveNow(!0,function(e){var t,n;return"function"!=typeof(null===(t=e)||void 0===t?void 0:t.isFilterAllowed)||(null===(n=e)||void 0===n?void 0:n.isFilterAllowed())}))||void 0===n||n},t.prototype.getFloatingFilterCompDetails=function(e,t){var n=this,r=e.getColDef(),o=this.createFilterParams(e,r),i=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(r,Qa,o),a=this.userComponentFactory.getDefaultFloatingFilterType(r);null==a&&(a="agReadOnlyFloatingFilter");var s={column:e,filterParams:i,currentParentModel:function(){return n.getCurrentFloatingFilterParentModel(e)},parentFilterInstance:function(t){var r=n.getFilterComponent(e,"NO_UI");null!=r&&r.then(function(e){t(ps(e))})},showParentFilter:t,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(r,s,a)},t.prototype.getCurrentFloatingFilterParentModel=function(e){var t=this.getFilterComponent(e,"NO_UI",!1);return t?t.resolveNow(null,function(e){return e&&e.getModel()}):null},t.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]}))},t.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then(function(r){(r.setModel(null)||$r.resolve()).then(function(){n.getContext().destroyBean(r),e.column.setFilterActive(!1,"filterDestroyed"),n.allColumnFilters.delete(e.column.getColId());var o={type:Ve.EVENT_FILTER_DESTROYED,source:t,column:e.column};n.eventService.dispatchEvent(o)})})},t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allColumnFilters.forEach(function(e){return t.disposeFilterWrapper(e,"gridDestroyed")})},t.QUICK_FILTER_SEPARATOR="\n",vs([$("valueService")],t.prototype,"valueService",void 0),vs([$("columnModel")],t.prototype,"columnModel",void 0),vs([$("rowModel")],t.prototype,"rowModel",void 0),vs([$("userComponentFactory")],t.prototype,"userComponentFactory",void 0),vs([$("rowRenderer")],t.prototype,"rowRenderer",void 0),vs([G],t.prototype,"init",null),n=vs([z("filterManager")],t)}(Le),As=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ws=function(e){function t(t,n){var r=e.call(this,t)||this;return r.ctrl=n,r}return As(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_s=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cs=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return bs(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)},setButtonWrapperDisplayed:function(t){return zn(e.eButtonWrapper,t)},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>',_s([oo("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),_s([oo("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),_s([oo("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),_s([G],t.prototype,"postConstruct",null),t}(ws),Es=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){e.AUTO_HEIGHT="ag-layout-auto-height",e.NORMAL="ag-layout-normal",e.PRINT="ag-layout-print"}(hs||(hs={}));var Ss,Os=function(e){function t(t){var n=e.call(this)||this;return n.view=t,n}return Es(t,e),t.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t={autoHeight:"autoHeight"===e,normal:"normal"===e,print:"print"===e},n=t.autoHeight?hs.AUTO_HEIGHT:t.print?hs.PRINT:hs.NORMAL;this.view.updateLayoutClasses(n,t)},t.prototype.getDomLayout=function(){var e,t=null!==(e=this.gridOptionsService.get("domLayout"))&&void 0!==e?e:"normal";return-1===["normal","print","autoHeight"].indexOf(t)?(x(function(){return console.warn("AG Grid: "+t+" is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")},"warn about dom layout values"),"normal"):t},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([G],t.prototype,"postConstruct",null),t}(Le),xs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ds=function(){return Ds=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ds.apply(this,arguments)},Ps=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ms=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.resetLastHScrollDebounced=k(function(){return n.eLastHScroll=null},500),n.resetLastVScrollDebounced=k(function(){return n.eLastVScroll=null},500),n}return xs(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),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.getFakeHScrollComp(),t=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHScroll.bind(this));var n=this.gridOptionsService.is("debounceVerticalScrollbar"),r=n?k(this.onVScroll.bind(this),100):this.onVScroll.bind(this),o=n?k(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",r),this.addManagedListener(t.getViewport(),"scroll",o)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(null!=this.centerRowContainerCtrl){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.ctrlsService.getTopCenterRowContainerCtrl(),r=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),o=this.ctrlsService.getBottomCenterRowContainerCtrl(),i=this.ctrlsService.getFakeHScrollComp();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(-t),o.setContainerTranslateX(t),n.setContainerTranslateX(t),r.setContainerTranslateX(t);var a=this.centerRowContainerCtrl.getViewportElement();nr(this.eLastHScroll===a?i.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl)}},t.prototype.isControllingHScroll=function(e){return this.eLastHScroll?e===this.eLastHScroll:(this.eLastHScroll=e,!0)},t.prototype.isControllingVScroll=function(e){return this.eLastVScroll?e===this.eLastVScroll:(this.eLastVScroll=e,!0)},t.prototype.onFakeHScroll=function(){var e=this.ctrlsService.getFakeHScrollComp().getViewport();this.isControllingHScroll(e)&&this.onHScrollCommon(e)},t.prototype.onHScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();this.isControllingHScroll(e)&&this.onHScrollCommon(e)},t.prototype.onHScrollCommon=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",t,!0)||(this.doHorizontalScroll(Math.round(tr(e,this.enableRtl))),this.resetLastHScrollDebounced())},t.prototype.onFakeVScroll=function(){var e=this.ctrlsService.getFakeVScrollComp().getViewport();this.isControllingVScroll(e)&&this.onVScrollCommon(e)},t.prototype.onVScroll=function(){this.isControllingVScroll(this.eBodyViewport)&&this.onVScrollCommon(this.eBodyViewport)},t.prototype.onVScrollCommon=function(e){var t=e.scrollTop;this.shouldBlockScrollUpdate("vertical",t,!0)||(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,e===this.eBodyViewport?this.ctrlsService.getFakeVScrollComp().getViewport().scrollTop=t:this.eBodyViewport.scrollTop=t,this.gridOptionsService.is("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())},t.prototype.doHorizontalScroll=function(e){var t=tr(this.ctrlsService.getFakeHScrollComp().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,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=Ds(Ds({},n),{type:Ve.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)},100)},t.prototype.shouldBlockScrollUpdate=function(e,t,n){return void 0===n&&(n=!1),!(n&&!wn())&&("vertical"===e?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t))},t.prototype.shouldBlockVerticalScroll=function(e){var t=Yn(this.eBodyViewport),n=this.eBodyViewport.scrollHeight;return e<0||e+t>n},t.prototype.shouldBlockHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getCenterWidth(),n=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&er()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>n},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(this.centerRowContainerCtrl.getViewportElement())},t.prototype.scrollGridIfNeeded=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&&er()?e>0?0:t:Math.min(Math.max(e,0),t)),nr(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-t},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null);for(var n=this.rowModel.getRowCount(),r=-1,o=0;o<n;o++){var i=this.rowModel.getRow(o);if("function"==typeof e){if(i&&e(i)){r=o;break}}else if(e===i||e===i.data){r=o;break}}r>=0&&this.ensureIndexVisible(r,t)},t.prototype.ensureIndexVisible=function(e,t){if(!this.gridOptionsService.isDomLayout("print")){var n=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=n)console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel")||this.paginationProxy.goToPageWithIndex(e);var r,o=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),i=this.paginationProxy.getRow(e);do{var a=i.rowTop,s=i.rowHeight,l=this.paginationProxy.getPixelOffset(),c=i.rowTop-l,u=c+i.rowHeight,d=this.getVScrollPosition(),p=this.heightScaler.getDivStretchOffset(),h=d.top+p,f=d.bottom+p,g=f-h,m=this.heightScaler.getScrollPositionForPixel(c),v=this.heightScaler.getScrollPositionForPixel(u-g),y=Math.min((m+v)/2,c),A=null;"top"===t?A=m:"bottom"===t?A=v:"middle"===t?A=y:h+o>c?A=m-o:f<u&&(A=v),null!==A&&(this.eBodyViewport.scrollTop=A,this.rowRenderer.redrawAfterScroll()),r=a!==i.rowTop||s!==i.rowHeight}while(r);this.animationFrameService.flushAllFrames()}}},t.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto");var n=this.columnModel.getGridColumn(e);if(n&&!n.isPinned()&&this.columnModel.isColumnDisplayed(n)){var r=this.getPositionedHorizontalScroll(n,t);null!==r&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(r),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},t.prototype.getPositionedHorizontalScroll=function(e,t){var n=this.isColumnOutsideViewport(e),r=n.columnBeforeStart,o=n.columnAfterEnd,i=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),a=this.centerRowContainerCtrl.getCenterWidth(),s=this.enableRtl,l=(s?r:o)||i,c=s?o:r;"auto"!==t&&(l="start"===t,c="end"===t);var u="middle"===t;if(l||c||u){var d=this.getColumnBounds(e),p=d.colLeft,h=d.colMiddle,f=d.colRight;return u?h-a/2:l?s?f:p:s?p-a:f-a}return null},t.prototype.isColumnOutsideViewport=function(e){var t=this.getViewportBounds(),n=t.start,r=t.end,o=this.getColumnBounds(e),i=o.colLeft,a=o.colRight,s=this.enableRtl;return{columnBeforeStart:s?n>a:r<a,columnAfterEnd:s?r<i:n>i}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),r=e.getActualWidth(),o=e.getLeft(),i=t?-1:1,a=t?n-o:o;return{colLeft:a,colMiddle:a+r/2*i,colRight:a+r*i}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}},Ps([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Ps([$("animationFrameService")],t.prototype,"animationFrameService",void 0),Ps([$("paginationProxy")],t.prototype,"paginationProxy",void 0),Ps([$("rowModel")],t.prototype,"rowModel",void 0),Ps([$("rowContainerHeightService")],t.prototype,"heightScaler",void 0),Ps([$("rowRenderer")],t.prototype,"rowRenderer",void 0),Ps([$("columnModel")],t.prototype,"columnModel",void 0),Ps([G],t.prototype,"postConstruct",null),t}(Le),Ts=function(){function e(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf("x"),this.scrollVertically=-1!==e.scrollAxis.indexOf("y"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||function(){return!1}}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var n=t||this.shouldSkipVerticalScroll();if(!n||!this.shouldSkipHorizontalScroll()){var r=this.scrollContainer.getBoundingClientRect(),o=this.scrollByTick;this.tickLeft=e.clientX<r.left+o,this.tickRight=e.clientX>r.right-o,this.tickUp=e.clientY<r.top+o&&!n,this.tickDown=e.clientY>r.bottom-o&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){var e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){var n=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(n-e),this.tickRight&&this.setHorizontalPosition(n+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),Rs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Is=function(){return Is=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Is.apply(this,arguments)},Fs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ks=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Ls=function(e){function t(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 Rs(t,e),t.prototype.postConstruct=function(){var e=this;this.gridOptionsService.isRowModelType("clientSide")&&(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 Ts({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)}})})},t.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},t.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},t.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!a(e)},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(e){return e===mi.RowDrag},t.prototype.getIconName=function(){return this.gridOptionsService.is("rowDragManaged")&&this.shouldPreventRowMove()?pa.ICON_NOT_ALLOWED:pa.ICON_MOVE},t.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},t.prototype.getRowNodes=function(e){var t=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var n=this.gridOptionsService.is("rowDragMultiRow"),r=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ks(arguments[t]));return e}(this.selectionService.getSelectedNodes()).sort(function(e,n){return null==e.rowIndex||null==n.rowIndex?0:t.getRowIndexNumber(e)-t.getRowIndexNumber(n)}),o=e.dragItem.rowNode;return n&&-1!==r.indexOf(o)?(this.isMultiRowDrag=!0,r):(this.isMultiRowDrag=!1,[o])},t.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)},t.prototype.onDragging=function(e){this.onEnterOrDragging(e)},t.prototype.isFromThisGrid=function(e){return e.dragSource.dragSourceDomDataKey===this.gridOptionsService.getDomDataKey()},t.prototype.isDropZoneWithinThisGrid=function(e){var t=this.ctrlsService.getGridBodyCtrl().getGui(),n=e.dropZoneTarget;return!t.contains(n)},t.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsService.is("rowDragManaged")&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)},t.prototype.doManagedDrag=function(e,t){var n=this.isFromThisGrid(e),r=this.gridOptionsService.is("rowDragManaged"),o=e.dragItem.rowNodes;r&&this.shouldPreventRowMove()||(this.gridOptionsService.is("suppressMoveWhenRowDragging")||!n?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(o[0],t):this.moveRows(o,t))},t.prototype.getRowIndexNumber=function(e){return parseInt(ue(e.getRowIndexString().split("-")),10)},t.prototype.moveRowAndClearHighlight=function(e){var t=this,n=this.clientSideRowModel.getLastHighlightedRowNode(),r=n&&n.highlighted===as.Below,o=this.mouseEventService.getNormalisedPosition(e).y,i=e.dragItem.rowNodes,a=r?1:0;if(this.isFromThisGrid(e))i.forEach(function(e){e.rowTop<o&&(a-=1)}),this.moveRows(i,o,a);else{var s=this.gridOptionsService.getRowIdFunc(),l=this.clientSideRowModel.getRowIndexAtPixel(o)+1;this.clientSideRowModel.getHighlightPosition(o)===as.Above&&l--,this.clientSideRowModel.updateRowData({add:i.map(function(e){return e.data}).filter(function(e){return!t.clientSideRowModel.getRowNode(s?s({data:e,level:0}):e.id)}),addIndex:l})}this.clearRowHighlight()},t.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},t.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())},t.prototype.addRowDropZone=function(e){var t=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 n={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,n=e):(e.onDragEnter&&(n.onDragEnter=function(n){e.onDragEnter(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_ENTER,n))}),e.onDragLeave&&(n.onDragLeave=function(n){e.onDragLeave(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_LEAVE,n))}),e.onDragging&&(n.onDragging=function(n){e.onDragging(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_MOVE,n))}),e.onDragStop&&(n.onDragStop=function(n){e.onDragStop(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_END,n))})),this.dragAndDropService.addDropTarget(Is({isInterestedIn:function(e){return e===mi.RowDrag},getIconName:function(){return pa.ICON_MOVE},external:!0},n))}else x(function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")},"add-drop-zone-empty-target")},t.prototype.getRowDropZone=function(e){var t=this,n=this.getContainer.bind(this),r=this.onDragEnter.bind(this),o=this.onDragLeave.bind(this),i=this.onDragging.bind(this),a=this.onDragStop.bind(this);return e?{getContainer:n,onDragEnter:e.onDragEnter?function(n){r(n),e.onDragEnter(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_ENTER,n))}:r,onDragLeave:e.onDragLeave?function(n){o(n),e.onDragLeave(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_LEAVE,n))}:o,onDragging:e.onDragging?function(n){i(n),e.onDragging(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_MOVE,n))}:i,onDragStop:e.onDragStop?function(n){a(n),e.onDragStop(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_END,n))}:a,fromGrid:!0}:{getContainer:n,onDragEnter:r,onDragLeave:o,onDragging:i,onDragStop:a,fromGrid:!0}},t.prototype.draggingToRowDragEvent=function(e,t){var n,r,o=this.mouseEventService.getNormalisedPosition(t).y,i=-1;switch(o>this.paginationProxy.getCurrentPageHeight()||(i=this.rowModel.getRowIndexAtPixel(o),n=this.rowModel.getRow(i)),t.vDirection){case vi.Down:r="down";break;case vi.Up:r="up";break;default:r=null}return{type:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:i,overNode:n,y:o,vDirection:r}},t.prototype.dispatchGridEvent=function(e,t){var n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.is("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsService.is("rowDragManaged")||!this.gridOptionsService.is("suppressMoveWhenRowDragging")&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(e){e.setDragging(!1)})},Fs([$("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Fs([$("rowModel")],t.prototype,"rowModel",void 0),Fs([$("paginationProxy")],t.prototype,"paginationProxy",void 0),Fs([$("columnModel")],t.prototype,"columnModel",void 0),Fs([$("focusService")],t.prototype,"focusService",void 0),Fs([$("sortController")],t.prototype,"sortController",void 0),Fs([$("filterManager")],t.prototype,"filterManager",void 0),Fs([$("selectionService")],t.prototype,"selectionService",void 0),Fs([$("mouseEventService")],t.prototype,"mouseEventService",void 0),Fs([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Fs([K("rangeService")],t.prototype,"rangeService",void 0),Fs([G],t.prototype,"postConstruct",null),t}(Le),Bs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ns=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e.ANIMATION_ON="ag-row-animation",e.ANIMATION_OFF="ag-row-no-animation"}(Ss||(Ss={}));var js,Us,Vs="ag-selectable",Hs="ag-force-vertical-scroll",Gs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stickyTopHeight=0,t}return Bs(t,e),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,t,n,r,o,i){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=r,this.eBottom=o,this.eStickyTop=i,this.setCellTextSelection(this.gridOptionsService.is("enableCellTextSelection")),this.createManagedBean(new Os(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Ms(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,n,o,i]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.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.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addFocusListeners=function(e){var t=this;e.forEach(function(e){t.addManagedListener(e,"focusin",function(t){var n=Qn(t.target,"ag-root",e);e.classList.toggle("ag-has-focus",!n)}),t.addManagedListener(e,"focusout",function(t){var n=t.target,r=t.relatedTarget,o=e.contains(r),i=Qn(r,"ag-root",e);Qn(n,"ag-root",e)||o&&!i||e.classList.remove("ag-has-focus")})})},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss("ag-column-moving",e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1);var t=e?Vs:null;this.comp.setCellSelectableCss(t,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e);var t="calc(100% + "+((e&&this.gridOptionsService.getScrollbarWidth()||0)+(Dn()?16:0))+"px)";this.comp.setBodyViewportWidth(t)},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsService.is("stopEditingWhenCellsLoseFocus")){var t=function(t){var r=t.relatedTarget;if(null!==_n(r)){var o=n.some(function(e){return e.contains(r)})&&e.mouseEventService.isElementInThisGrid(r);if(!o){var i=e.popupService;o=i.getActivePopups().some(function(e){return e.contains(r)})||i.isElementWithinCustomPopup(r)}o||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];n.forEach(function(n){return e.addManagedListener(n,"focusout",t)})}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,n=-1===t?-1:e+t;this.comp.setRowCount(n)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsService.is("alwaysShowVerticalScroll"),t=e?Hs:null,n=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||n&&fr(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsService.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),n=t?Ss.ANIMATION_ON:Ss.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(n,t)};t(),this.addManagedListener(this.eventService,Ve.EVENT_HEIGHT_SCALE_CHANGED,t),this.addManagedPropertyListener("animateRows",t)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},t.prototype.addFullWidthContainerWheelListener=function(){var e=this,t=this.eBodyViewport.querySelector(".ag-full-width-container"),n=this.eBodyViewport.querySelector(".ag-center-cols-viewport");t&&n&&this.addManagedListener(t,"wheel",function(t){return e.onFullWidthContainerWheel(t,n)})},t.prototype.onFullWidthContainerWheel=function(e,t){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||(e.preventDefault(),t.scrollBy({left:e.deltaX}))},t.prototype.onBodyViewportContextMenu=function(e,t,n){if(e||n){this.gridOptionsService.is("preventDefaultOnContextMenu")&&(e||n).preventDefault();var r=(e||t).target;if(r===this.eBodyViewport||r===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()){if(!this.contextMenuFactory)return;e?this.contextMenuFactory.onContextMenu(e,null,null,null,null,this.eGridBody):n&&this.contextMenuFactory.onContextMenu(null,n,null,null,null,this.eGridBody)}}},t.prototype.mockContextMenuForIPad=function(e){if(wn()){var t=new Ii(this.eBodyViewport);this.addManagedListener(t,Ii.EVENT_LONG_TAP,function(t){e(void 0,t.touchStart,t.touchEvent)}),this.addDestroyFunc(function(){return t.destroy()})}},t.prototype.onBodyViewportWheel=function(e){this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Ls(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},t.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"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight(e+"px"),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(e){var t=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+t+"px)")}else this.comp.setStickyTopWidth("100%")},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),t=this.pinnedRowModel.getPinnedTopTotalHeight(),n=0;e>0&&(n+=e+1),t>0&&(n+=t+1),this.comp.setStickyTopTop(n+"px")},t.prototype.sizeColumnsToFit=function(e,t){var n=this,r=this.isVerticalScrollShowing()?this.gridOptionsService.getScrollbarWidth():0,o=Xn(this.eGridBody)-r;o>0?this.columnModel.sizeColumnsToFit(o,"sizeColumnsToFit",!1,e):void 0===t?window.setTimeout(function(){n.sizeColumnsToFit(e,100)},0):100===t?window.setTimeout(function(){n.sizeColumnsToFit(e,500)},100):500===t?window.setTimeout(function(){n.sizeColumnsToFit(e,-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Ns([$("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Ns([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Ns([$("columnModel")],t.prototype,"columnModel",void 0),Ns([$("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Ns([K("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Ns([$("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Ns([$("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Ns([$("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ns([$("rowRenderer")],t.prototype,"rowRenderer",void 0),Ns([$("popupService")],t.prototype,"popupService",void 0),Ns([$("mouseEventService")],t.prototype,"mouseEventService",void 0),Ns([$("rowModel")],t.prototype,"rowModel",void 0),t}(Le);!function(e){e[e.FILL=0]="FILL",e[e.RANGE=1]="RANGE"}(js||(js={})),function(e){e[e.VALUE=0]="VALUE",e[e.DIMENSION=1]="DIMENSION"}(Us||(Us={}));var Ws,zs="ag-cell-range-selected",$s=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(zs,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(zs+"-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(zs+"-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(zs+"-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(zs+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),rn(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,r=!t&&e.right,o=!t&&e.bottom,i=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",i)},e.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},e.prototype.getHasChartRange=function(){var e=this.beans.rangeService;if(!this.rangeCount||!e)return!1;var t=e.getCellRanges();return t.length>0&&t.every(function(e){return ve([Us.DIMENSION,Us.VALUE],e.type)})},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,n=this,r=this.beans.gridOptionsService.is("enableRtl"),o=!1,i=!1,a=!1,s=!1,l=this.cellCtrl.getCellPosition().column,c=this.beans,u=c.rangeService,d=c.columnModel;r?(e=d.getDisplayedColAfter(l),t=d.getDisplayedColBefore(l)):(e=d.getDisplayedColBefore(l),t=d.getDisplayedColAfter(l));var p=u.getCellRanges().filter(function(e){return u.isCellInSpecificRange(n.cellCtrl.getCellPosition(),e)});e||(s=!0),t||(i=!0);for(var h=0;h<p.length&&!(o&&i&&a&&s);h++){var f=p[h],g=u.getRangeStartRow(f),m=u.getRangeEndRow(f);!o&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(o=!0),!a&&this.beans.rowPositionUtils.sameRow(m,this.cellCtrl.getCellPosition())&&(a=!0),!s&&e&&f.columns.indexOf(e)<0&&(s=!0),!i&&t&&f.columns.indexOf(t)<0&&(i=!0)}return{top:o,right:i,bottom:a,left:s}},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,t=e.gridOptionsService,n=e.rangeService,r=n.getCellRanges(),o=r.length;if(this.rangeCount<1||o<1)return!1;var i=ue(r),a=this.cellCtrl.getCellPosition(),s=t.is("enableFillHandle")&&!this.cellCtrl.isSuppressFillHandle(),l=t.is("enableRangeHandle"),c=1===o&&!this.cellCtrl.isEditing()&&(s||l);if(this.hasChartRange){var u=r[0].type===Us.DIMENSION&&n.isCellInSpecificRange(a,r[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",u),c=i.type===Us.VALUE}return c&&null!=i.endRow&&n.isContiguousRange(i)&&n.isBottomRightCell(i,a)},e.prototype.addSelectionHandle=function(){var e=this.beans,t=e.gridOptionsService,n=ue(e.rangeService.getCellRanges()).type,r=t.is("enableFillHandle")&&i(n)?js.FILL:js.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}(),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qs=function(e){function t(t,n){var r=e.call(this)||this;return r.cellCtrl=t,r.beans=n,r.column=t.getColumn(),r.rowNode=t.getRowNode(),r.setupColSpan(),r.setupRowSpan(),r}return Ks(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();de(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,r=this.column.getPinned(),o=0;n&&o<e&&(t.push(n),(n=this.beans.columnModel.getDisplayedColAfter(n))&&!i(n))&&r===n.getPinned();o++);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.gridOptionsService.is("enableRtl")&&this.colsSpanning?ue(this.colsSpanning):this.column).getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||"left"===this.column.getPinned())return e;var t=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===this.column.getPinned()?t+this.beans.columnModel.getBodyContainerWidth()+(e||0):t+(e||0)},t.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var e=this.beans.gridOptionsService.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=e+"px",this.eGui.style.zIndex="1"}},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ys=function(e){function t(t,n){var r=e.call(this)||this;return r.staticClasses=[],r.cellCtrl=t,r.beans=n,r.column=t.getColumn(),r.rowNode=t.getRowNode(),r}return qs(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,column:this.column,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};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.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};t=(0,e.cellStyle)(n)}else t=e.cellStyle;t&&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,column:this.column,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};this.staticClasses.length&&this.staticClasses.forEach(function(t){return e.cellComp.addOrRemoveCssClass(t,!1)}),this.staticClasses=this.beans.stylingService.getStaticCellClasses(t,n),this.staticClasses.length&&this.staticClasses.forEach(function(t){return e.cellComp.addOrRemoveCssClass(t,!0)})},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Le),Xs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zs=function(e){function t(t,n){var r=e.call(this)||this;return r.ctrl=t,r.beans=n,r}return Xs(t,e),t.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsService.is("enableBrowserTooltips"),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 Xr(t),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},t.prototype.getTooltipParams=function(){var e=this.ctrl,t=e.getColumn?e.getColumn():void 0,n=e.getColDef?e.getColDef():void 0,r=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:n,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:r,data:r?r.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Le),Js=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},el=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsService.isMasterDetail(),this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},Js([$("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Js([$("paginationProxy")],e.prototype,"paginationProxy",void 0),Js([$("context")],e.prototype,"context",void 0),Js([$("columnApi")],e.prototype,"columnApi",void 0),Js([$("gridApi")],e.prototype,"gridApi",void 0),Js([$("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Js([$("expressionService")],e.prototype,"expressionService",void 0),Js([$("environment")],e.prototype,"environment",void 0),Js([$("rowRenderer")],e.prototype,"rowRenderer",void 0),Js([$("templateService")],e.prototype,"templateService",void 0),Js([$("valueService")],e.prototype,"valueService",void 0),Js([$("eventService")],e.prototype,"eventService",void 0),Js([$("columnModel")],e.prototype,"columnModel",void 0),Js([$("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Js([$("navigationService")],e.prototype,"navigationService",void 0),Js([$("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Js([K("rangeService")],e.prototype,"rangeService",void 0),Js([$("focusService")],e.prototype,"focusService",void 0),Js([K("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Js([$("popupService")],e.prototype,"popupService",void 0),Js([$("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Js([$("stylingService")],e.prototype,"stylingService",void 0),Js([$("columnHoverService")],e.prototype,"columnHoverService",void 0),Js([$("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Js([$("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),Js([$("animationFrameService")],e.prototype,"animationFrameService",void 0),Js([$("dragService")],e.prototype,"dragService",void 0),Js([$("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Js([$("sortController")],e.prototype,"sortController",void 0),Js([$("filterManager")],e.prototype,"filterManager",void 0),Js([$("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),Js([$("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Js([$("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Js([$("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Js([$("selectionService")],e.prototype,"selectionService",void 0),Js([K("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),Js([$("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),Js([$("rowModel")],e.prototype,"rowModel",void 0),Js([$("ctrlsService")],e.prototype,"ctrlsService",void 0),Js([$("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),Js([$("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),Js([$("valueCache")],e.prototype,"valueCache",void 0),Js([$("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),Js([$("localeService")],e.prototype,"localeService",void 0),Js([G],e.prototype,"postConstruct",null),Js([z("beans")],e)}(),tl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nl=function(e){function t(t,n,r){var o=e.call(this)||this;return o.cellCtrl=t,o.beans=n,o.column=r,o}return tl(t,e),t.prototype.onMouseEvent=function(e,t){if(!Se(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,n=t.eventService,r=t.rangeService,o=t.gridOptionsService,i=e.ctrlKey||e.metaKey;r&&i&&r.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&r.intersectLastRange(!0);var a=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_CLICKED);n.dispatchEvent(a);var s=this.column.getColDef();s.onCellClicked&&window.setTimeout(function(){return s.onCellClicked(a)},0),(o.is("singleClickEdit")||s.singleClickEdit)&&!o.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!wn()||xe("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.gridOptionsService.is("singleClickEdit")&&!this.beans.gridOptionsService.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,r=e.shiftKey,o=e.target,i=this.beans,a=i.eventService,s=i.rangeService;if(!this.isRightClickInExistingRange(e)){var l=s&&0!=s.getCellRanges().length;if(!r||!l){var c=gn()&&!this.cellCtrl.isEditing()&&!Wn(o);this.cellCtrl.focusCell(c)}if(r&&l&&e.preventDefault(),!this.containsWidget(o)){if(s){var u=this.cellCtrl.getCellPosition();if(r)s.extendLatestRangeToCell(u);else{var d=t||n;s.setRangeToCell(u,d)}}a.dispatchEvent(this.cellCtrl.createEvent(e,Ve.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;return!(!t||!t.isCellInAnyRange(this.cellCtrl.getCellPosition())||2!==e.button)},t.prototype.containsWidget=function(e){return Qn(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),r=t.contains(e.relatedTarget);return n&&r},t.prototype.destroy=function(){},t}(el),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ol=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a.cellCtrl=t,a.beans=n,a.rowNode=o,a.rowCtrl=i,a}return rl(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case Pr.ENTER:this.onEnterKeyDown(e);break;case Pr.F2:this.onF2KeyDown(e);break;case Pr.ESCAPE:this.onEscapeKeyDown(e);break;case Pr.TAB:this.onTabKeyDown(e);break;case Pr.BACKSPACE:case Pr.DELETE:this.onBackspaceOrDeleteKeyPressed(t,e);break;case Pr.DOWN:case Pr.UP:case Pr.RIGHT:case Pr.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){var n=this,r=n.cellCtrl,o=n.beans,i=n.rowNode,a=o.gridOptionsService,s=o.rangeService,l=o.eventService;r.isEditing()||(l.dispatchEvent({type:Ve.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Fr(e,a.is("enableCellEditingOnBackspace"))?s&&a.isEnableRangeSelection()?s.clearCellRangeCellValues():r.isCellEditable()&&i.setDataValue(r.getColumn(),null,"cellClear"):r.startRowOrCellEdit(e,void 0,t),l.dispatchEvent({type:Ve.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsService.is("enterMovesDown")?this.beans.navigationService.navigateToNextCell(null,Pr.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(Pr.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(Pr.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):Mr(e)&&(this.cellCtrl.startRowOrCellEdit(null,t,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var n=this.rowNode.isSelected(),r=!n;if(r||!t.is("suppressRowDeselection")){var o=this.beans.gridOptionsService.is("groupSelectsFiltered"),i=this.rowNode.setSelectedParams({newValue:r,rangeSelect:e.shiftKey,groupSelectsFiltered:o,event:e,source:"spacePressed"});void 0===n&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:o,event:e,source:"spacePressed"})}}e.preventDefault()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),al=function(e){function t(t,n,r,o){var i=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return i.rowNode=t,i.column=n,i.beans=r,i.eCell=o,i}return il(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(xr("rowDrag",this.beans.gridOptionsService,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.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):function(){try{var n=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n)}catch(e){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([G],t.prototype,"postConstruct",null),t}(no),sl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ll=function(){return ll=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ll.apply(this,arguments)},cl=0,ul=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.cellRangeFeature=null,i.cellPositionFeature=null,i.cellCustomStyleFeature=null,i.tooltipFeature=null,i.cellMouseListenerFeature=null,i.cellKeyboardListenerFeature=null,i.suppressRefreshCell=!1,i.onCellCompAttachedFuncs=[],i.column=t,i.rowNode=n,i.beans=r,i.rowCtrl=o,i.instanceId=t.getId()+"-"+cl++,i.createCellPosition(),i.addFeatures(),i}return sl(t,e),t.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new Qs(this,this.beans),this.addDestroyFunc(function(){var t;null===(t=e.cellPositionFeature)||void 0===t||t.destroy(),e.cellPositionFeature=null}),this.cellCustomStyleFeature=new Ys(this,this.beans),this.addDestroyFunc(function(){var t;null===(t=e.cellCustomStyleFeature)||void 0===t||t.destroy(),e.cellCustomStyleFeature=null}),this.cellMouseListenerFeature=new nl(this,this.beans,this.column),this.addDestroyFunc(function(){var t;null===(t=e.cellMouseListenerFeature)||void 0===t||t.destroy(),e.cellMouseListenerFeature=null}),this.cellKeyboardListenerFeature=new ol(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc(function(){var t;null===(t=e.cellKeyboardListenerFeature)||void 0===t||t.destroy(),e.cellKeyboardListenerFeature=null}),this.beans.rangeService&&this.beans.gridOptionsService.isEnableRangeSelection()&&(this.cellRangeFeature=new $s(this.beans,this),this.addDestroyFunc(function(){var t;null===(t=e.cellRangeFeature)||void 0===t||t.destroy(),e.cellRangeFeature=null})),this.column.isTooltipEnabled()&&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&&o(n))return _(n,t.tooltipField,e.column.isTooltipFieldContainsDots());var r=t.tooltipValueGetter;return r?r({location:"cell",api:e.beans.gridOptionsService.api,columnApi:e.beans.gridOptionsService.columnApi,context:e.beans.gridOptionsService.context,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 Zs(t,this.beans),this.addDestroyFunc(function(){var t;null===(t=e.tooltipFeature)||void 0===t||t.destroy(),e.tooltipFeature=null})},t.prototype.setComp=function(e,t,n,r,o){var i,a,s,l;this.cellComp=e,this.eGui=t,this.printLayout=r,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),n&&this.setupAutoHeight(n),this.setAriaColIndex(),this.beans.gridOptionsService.is("suppressCellFocus")||this.cellComp.setTabIndex(-1);var c=ht(this.column.getId());this.cellComp.setColId(c),this.cellComp.setRole("gridcell"),null===(i=this.cellPositionFeature)||void 0===i||i.setComp(t),null===(a=this.cellCustomStyleFeature)||void 0===a||a.setComp(e),null===(s=this.tooltipFeature)||void 0===s||s.setComp(e),null===(l=this.cellKeyboardListenerFeature)||void 0===l||l.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),o&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach(function(e){return e()}),this.onCellCompAttachedFuncs=[])},t.prototype.setupAutoHeight=function(e){var t=this;if(this.column.isAutoHeight()){var n=e.parentElement,r=this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height,o=function(i){if(!t.editing&&t.isAlive()){var a=qn(n),s=a.paddingTop+a.paddingBottom+a.borderBottomWidth+a.borderTopWidth,l=e.offsetHeight+s;if(i<5){var c=t.beans.gridOptionsService.getDocument();if(!c||!c.contains(e)||0==l)return void t.beans.frameworkOverrides.setTimeout(function(){return o(i+1)},0)}var u=Math.max(l,r);t.rowNode.setRowAutoHeight(u,t.column)}},i=function(){return o(0)};i();var a=this.beans.resizeObserverService.observeResize(e,i);this.addDestroyFunc(function(){a(),t.rowNode.setRowAutoHeight(void 0,t.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(),r=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),n);this.cellComp.setRenderDetails(r,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.gridOptionsService.is("enableCellTextSelection")||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),r=this.includeDndSource!=this.isIncludeControl(e.dndSource);return t||n||r},t.prototype.startEditing=function(e,t,n,r){var o=this;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),void 0===r&&(r=null),this.isCellEditable()&&!this.editing)if(this.cellComp){var i=this.createCellEditorParams(e,t,n),a=this.column.getColDef(),s=this.beans.userComponentFactory.getCellEditorDetails(a,i),l=null!=(null==s?void 0:s.popupFromSelector)?s.popupFromSelector:!!a.cellEditorPopup,c=null!=(null==s?void 0:s.popupPositionFromSelector)?s.popupPositionFromSelector:a.cellEditorPopupPosition;this.setEditing(!0),this.cellComp.setEditDetails(s,l,c);var u=this.createEvent(r,Ve.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(u)}else this.onCellCompAttachedFuncs.push(function(){o.startEditing(e,t,n,r)})},t.prototype.setEditing=function(e){this.editing!==e&&(this.editing=e,this.refreshHandle())},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),"fullRow"===this.beans.gridOptionsService.get("editType")?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;this.suppressRefreshCell=!0;var n=this.rowNode.setDataValue(this.column,t,"edit");return this.suppressRefreshCell=!1,n},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),!this.editing)return!1;var t=this.takeValueFromCellEditor(e),n=t.newValue,r=t.newValueExists,o=this.rowNode.getValueFromValueService(this.column),i=!1;return r&&(i=this.saveNewValue(o,n)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(o,n,!e&&!!i),i},t.prototype.dispatchEditingStoppedEvent=function(e,t,n){var r=ll(ll({},this.createEvent(null,Ve.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t,valueChanged:n});this.beans.eventService.dispatchEvent(r)},t.prototype.createCellEditorParams=function(e,t,n){return{value:this.rowNode.getValueFromValueService(this.column),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.gridOptionsService.api,cellStartedEdit:n,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,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:function(){return e.rowNode.getValueFromValueService(e.column)},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,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(t,n,r,o){return e.registerRowDragger(t,n,o)}}},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.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context},r=t.valueParser;return o(r)?"function"==typeof r?r(n):this.beans.expressionService.evaluate(r,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){var t,n,r;if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var o=this.column.getColDef(),i=null!=e&&!!e.newData,a=null!=e&&!!e.suppressFlash||!!o.suppressCellFlash,s=null==o.field&&null==o.valueGetter&&null==o.showRowGroup,l=e&&e.forceRefresh||s||i,c=this.updateAndFormatValue();if(l||c){this.showValue(i);var u=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!a&&!u&&(this.beans.gridOptionsService.is("enableCellChangeFlash")||o.enableCellChangeFlash)&&this.flashCell(),null===(t=this.cellCustomStyleFeature)||void 0===t||t.applyUserStyles(),null===(n=this.cellCustomStyleFeature)||void 0===n||n.applyClassesFromColDef()}this.refreshToolTip(),null===(r=this.cellCustomStyleFeature)||void 0===r||r.applyCellClassRules()}},t.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.navigateAfterEdit=function(){"fullRow"===this.beans.gridOptionsService.get("editType")||this.beans.gridOptionsService.is("enterMovesDownAfterEdit")&&this.beans.navigationService.navigateToNextCell(null,Pr.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 r,i,a=this,s="ag-cell-"+e,l="ag-cell-"+e+"-animation",c=this.beans.gridOptionsService;t||(t=null!==(r=c.getNum("cellFlashDelay"))&&void 0!==r?r:500),o(n)||(n=null!==(i=c.getNum("cellFadeDelay"))&&void 0!==i?i:1e3),this.cellComp.addOrRemoveCssClass(s,!0),this.cellComp.addOrRemoveCssClass(l,!1),window.setTimeout(function(){a.isAlive()&&(a.cellComp.addOrRemoveCssClass(s,!1),a.cellComp.addOrRemoveCssClass(l,!0),a.eGui.style.transition="background-color "+n+"ms",window.setTimeout(function(){a.isAlive()&&(a.cellComp.addOrRemoveCssClass(l,!1),a.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.rowNode.getValueFromValueService(this.column),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.getValue=function(){return this.value},t.prototype.getValueFormatted=function(){return this.valueFormatted},t.prototype.addDomData=function(){var e=this,n=this.getGui();this.beans.gridOptionsService.setDomData(n,t.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc(function(){return e.beans.gridOptionsService.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.gridOptionsService.context,api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyPress=function(e){var t;null===(t=this.cellKeyboardListenerFeature)||void 0===t||t.onKeyPress(e)},t.prototype.onKeyDown=function(e){var t;null===(t=this.cellKeyboardListenerFeature)||void 0===t||t.onKeyDown(e)},t.prototype.onMouseEvent=function(e,t){var n;null===(n=this.cellMouseListenerFeature)||void 0===n||n.onMouseEvent(e,t)},t.prototype.getGui=function(){return this.eGui},t.prototype.refreshToolTip=function(){var e;null===(e=this.tooltipFeature)||void 0===e||e.refreshToolTip()},t.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},t.prototype.onLeftChanged=function(){var e;this.cellComp&&(null===(e=this.cellPositionFeature)||void 0===e||e.onLeftChanged())},t.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},t.prototype.setAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);Jt(this.getGui(),e)},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.onWidthChanged=function(){var e;return null===(e=this.cellPositionFeature)||void 0===e?void 0:e.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.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.cellComp&&("fullRow"===this.beans.gridOptionsService.get("editType")?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({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus: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.beans.gridOptionsService.is("suppressCellFocus")){var t=this.beans.focusService.isCellFocused(this.cellPosition);this.cellComp.addOrRemoveCssClass("ag-cell-focus",t),t&&e&&e.forceBrowserFocus&&this.cellComp.getFocusableElement().focus({preventScroll:!!e.preventScrollOnBrowserFocus});var n="fullRow"===this.beans.gridOptionsService.get("editType");t||n||!this.editing||this.stopRowOrCellEdit()}},t.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:r(this.rowNode.rowPinned),column:this.column}},t.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass("ag-cell-not-inline-editing",!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.gridOptionsService.is("columnHoverHighlight")){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",e)}},t.prototype.onColDefChanged=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(){this.onCellCompAttachedFuncs=[],e.prototype.destroy.call(this)},t.prototype.createSelectionCheckbox=function(){var e=new sa;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},t.prototype.createDndSource=function(){var e=new al(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},t.prototype.registerRowDragger=function(e,t,n){var r=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(e,t);else{var o=this.createRowDragComp(e,t,n);o&&(this.customRowDragComp=o,this.addDestroyFunc(function(){r.beans.context.destroyBean(o),r.customRowDragComp=null}))}},t.prototype.createRowDragComp=function(e,t,n){var r=this,o=this.beans.gridOptionsService.is("pagination"),i=this.beans.gridOptionsService.is("rowDragManaged"),a=this.beans.gridOptionsService.isRowModelType("clientSide");if(i){if(!a)return void x(function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")},"CellComp.addRowDragging");if(o)return void x(function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")},"CellComp.addRowDragging")}var s=new ga(function(){return r.value},this.rowNode,this.column,e,t,n);return this.beans.context.createBean(s),s},t.DOM_DATA_KEY_CELL_CTRL="cellCtrl",t}(Le),dl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pl=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};!function(e){e.Normal="Normal",e.FullWidth="FullWidth",e.FullWidthLoading="FullWidthLoading",e.FullWidthGroup="FullWidthGroup",e.FullWidthDetail="FullWidthDetail"}(Ws||(Ws={}));var hl,fl,gl=0,ml=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a.allRowGuis=[],a.active=!0,a.centerCellCtrls={list:[],map:{}},a.leftCellCtrls={list:[],map:{}},a.rightCellCtrls={list:[],map:{}},a.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},a.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},a.lastMouseDownOnDragger=!1,a.updateColumnListsPending=!1,a.businessKeySanitised=null,a.beans=n,a.rowNode=t,a.paginationPage=a.beans.paginationProxy.getCurrentPage(),a.useAnimationFrameForCreate=o,a.printLayout=i,a.instanceId=t.id+"-"+gl++,a.setAnimateFlags(r),a.initRowBusinessKey(),a.rowFocused=a.beans.focusService.isRowFocused(a.rowNode.rowIndex,a.rowNode.rowPinned),a.rowLevel=a.beans.rowCssClassCalculator.calculateRowLevel(a.rowNode),a.setRowType(),a.addListeners(),a}return dl(t,e),t.prototype.initRowBusinessKey=function(){var e=this.beans.gridOptionsService.get("getBusinessKeyForNode");if("function"==typeof e){var t=e(this.rowNode);this.businessKeySanitised=ht(t)}},t.prototype.isSticky=function(){return this.rowNode.sticky},t.prototype.getBeans=function(){return this.beans},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,t,n){var r={rowComp:e,element:t,containerType:n};this.allRowGuis.push(r),n===fl.LEFT?this.leftGui=r:n===fl.RIGHT?this.rightGui=r:n===fl.FULL_WIDTH?this.fullWidthGui=r:this.centerGui=r,this.initialiseRowComp(r),"FullWidthLoading"===this.rowType||this.rowNode.rowPinned||this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},t.prototype.unsetComp=function(e){this.allRowGuis=this.allRowGuis.filter(function(t){return t.containerType!==e}),e===fl.LEFT?this.leftGui=void 0:e===fl.RIGHT?this.rightGui=void 0:e===fl.FULL_WIDTH&&(this.fullWidthGui=void 0)},t.prototype.isCacheable=function(){return this.rowType===Ws.FullWidthDetail&&this.beans.gridOptionsService.is("keepDetailRows")},t.prototype.setCached=function(e){var t=e?"none":"";this.allRowGuis.forEach(function(e){return e.element.style.display=t})},t.prototype.initialiseRowComp=function(e){var n=this,r=this.beans.gridOptionsService;this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(e),r.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);var o=e.rowComp;o.setRole("row"),this.getInitialRowClasses(e.containerType).forEach(function(e){return o.addOrRemoveCssClass(e,!0)}),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&zt(e.element,1==this.rowNode.expanded);var i=ht(this.rowNode.id);null!=i&&o.setRowId(i),null!=this.businessKeySanitised&&o.setRowBusinessKey(this.businessKeySanitised),this.isFullWidth()&&!this.beans.gridOptionsService.is("suppressCellFocus")&&o.setTabIndex(-1),r.setDomData(e.element,t.DOM_DATA_KEY_ROW_CTRL,this),this.addDestroyFunc(function(){return r.setDomData(e.element,t.DOM_DATA_KEY_ROW_CTRL,null)}),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,e.element),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(e.element),this.isFullWidth()&&this.setupFullWidth(e),r.is("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask(function(){n.isAlive()&&e.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()},t.prototype.executeSlideAndFadeAnimations=function(e){var t=this,n=e.containerType;this.slideInAnimation[n]&&(I(function(){t.onTopChanged()}),this.slideInAnimation[n]=!1),this.fadeInAnimation[n]&&(I(function(){e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[n]=!1)},t.prototype.addRowDraggerToRow=function(e){if(this.beans.gridOptionsService.isEnableRangeSelection())x(function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")},"rowDragAndRangeSelectionEnabled");else{var t=this.beans.localeService.getLocaleTextFunc(),n=new ga(function(){return"1 "+t("rowDragRow","row")},this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(n,this.beans.context)}},t.prototype.setupFullWidth=function(e){var t=this.getPinnedForContainer(e.containerType),n=this.createFullWidthParams(e.element,t);if(this.rowType!=Ws.FullWidthDetail||te.assertRegistered(X.MasterDetailModule,"cell renderer 'agDetailCellRenderer' (for master detail)")){var r;switch(this.rowType){case Ws.FullWidthDetail:r=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(n);break;case Ws.FullWidthGroup:r=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(n);break;case Ws.FullWidthLoading:r=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(n);break;default:r=this.beans.userComponentFactory.getFullWidthCellRendererDetails(n)}e.rowComp.showFullWidth(r)}},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.getFullWidthCellRenderer=function(){var e,t;return null===(t=null===(e=this.fullWidthGui)||void 0===e?void 0:e.rowComp)||void 0===t?void 0:t.getFullWidthCellRenderer()},t.prototype.getCellElement=function(e){var t=this.getCellCtrl(e);return t?t.getGui():null},t.prototype.executeProcessRowPostCreateFunc=function(){var e,t=this.beans.gridOptionsService.getCallback("processRowPostCreate");t&&this.areAllContainersReady()&&t({eRow:null===(e=this.centerGui)||void 0===e?void 0:e.element,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)})},t.prototype.areAllContainersReady=function(){var e=!!this.leftGui||!this.beans.columnModel.isPinningLeft(),t=!!this.centerGui,n=!!this.rightGui||!this.beans.columnModel.isPinningRight();return e&&t&&n},t.prototype.setRowType=function(){var e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,r=this.beans.columnModel.isPivotMode(),o=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsService.isGroupUseEntireRow(r);this.rowType=e?Ws.FullWidthLoading:n?Ws.FullWidthDetail:t?Ws.FullWidth:o?Ws.FullWidthGroup:Ws.Normal},t.prototype.updateColumnLists=function(e){var t=this;void 0===e&&(e=!1),this.isFullWidth()||(e||this.beans.gridOptionsService.is("suppressAnimationFrame")||this.printLayout?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask(function(){t.active&&t.updateColumnListsImpl()},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},t.prototype.createCellCtrls=function(e,t,n){var r=this;void 0===n&&(n=null);var o={list:[],map:{}},i=function(e,t){o.list.push(t),o.map[e]=t};return t.forEach(function(t){var n=t.getInstanceId(),o=e.map[n];o||(o=new ul(t,r.rowNode,r.beans,r)),i(n,o)}),e.list.forEach(function(e){null!=o.map[e.getColumn().getInstanceId()]||(r.isCellEligibleToBeRemoved(e,n)?e.destroy():i(e.getColumn().getInstanceId(),e))}),o},t.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var t=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var n=t.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n);var r=t.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,"left");var o=t.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,o,"right")}this.allRowGuis.forEach(function(t){var n=t.containerType===fl.LEFT?e.leftCellCtrls:t.containerType===fl.RIGHT?e.rightCellCtrls:e.centerCellCtrls;t.rowComp.setCellCtrls(n.list)})},t.prototype.isCellEligibleToBeRemoved=function(e,t){var n=!0;if(e.getColumn().getPinned()!=t)return n;var r=e.isEditing(),o=this.beans.focusService.isCellFocused(e.getCellPosition());if(r||o){var i=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(i)>=0)&&n}return n},t.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var t=o(this.rowNode.oldRowTop),n=this.beans.columnModel.isPinningLeft(),r=this.beans.columnModel.isPinningRight();t?(this.slideInAnimation.center=!0,this.slideInAnimation.left=n,this.slideInAnimation.right=r):(this.fadeInAnimation.center=!0,this.fadeInAnimation.left=n,this.fadeInAnimation.right=r)}},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==Ws.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,t=function(t,n){if(!t)return!0;var r=t.rowComp.getFullWidthCellRenderer();if(!r)return!1;if(!r.refresh)return!1;var o=e.createFullWidthParams(t.element,n);return r.refresh(o)},n=t(this.fullWidthGui,null),r=t(this.centerGui,null),o=t(this.leftGui,"left"),i=t(this.rightGui,"right");return n&&r&&o&&i},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.rowNode,ra.EVENT_HEIGHT_CHANGED,function(){return e.onRowHeightChanged()}),this.addManagedListener(this.rowNode,ra.EVENT_ROW_SELECTED,function(){return e.onRowSelected()}),this.addManagedListener(this.rowNode,ra.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,ra.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var t=this.beans.eventService;this.addManagedListener(t,Ve.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(t,Ve.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(t,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(t,Ve.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(t,Ve.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addManagedListener(t,Ve.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusCleared.bind(this)),this.addManagedListener(t,Ve.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(t,Ve.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(t,Ve.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},t.prototype.onColumnMoved=function(){this.updateColumnLists()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,ra.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(e){return e.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,ra.EVENT_CELL_CHANGED,function(t){e.getAllCellCtrls().forEach(function(e){return e.onCellChanged(t)})})},t.prototype.onRowNodeDataChanged=function(e){this.rowNode.detailNode&&this.beans.rowRenderer.refreshFullWidthRow(this.rowNode.detailNode),this.isFullWidth()?this.beans.rowRenderer.refreshFullWidthRow(this.rowNode):(this.getAllCellCtrls().forEach(function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.onRowSelected(),this.postProcessCss())},t.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(t){var n=e===as.Above,r=e===as.Below;t.rowComp.addOrRemoveCssClass("ag-row-highlight-above",n),t.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)})},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)})},t.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),zt(n.element,e&&t)})},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},t.prototype.getRowPosition=function(){return{rowPinned:r(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var t=this.allRowGuis.find(function(t){return t.element.contains(e.target)});if((t?t.element:null)===e.target){var n=this.rowNode,r=this.beans.focusService.getFocusedCell(),o={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:r&&r.column};this.beans.navigationService.navigateToNextCell(e,e.key,o,!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Se(e)){var t=this.allRowGuis.find(function(t){return t.element.contains(e.target)}),n=t?t.element:null,r=n===e.target,o=null;r||(o=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&r||!o)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var t,n=this.rowNode,r=!!e&&this.isFullWidth()&&e.rowIndex===n.rowIndex&&e.rowPinned==n.rowPinned,o=this.fullWidthGui?this.fullWidthGui.element:null===(t=this.centerGui)||void 0===t?void 0:t.element;o&&(o.classList.toggle("ag-full-width-focus",r),r&&o.focus({preventScroll:!0}))},t.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()},t.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},t.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)}},t.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,event:t}},t.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},t.prototype.onRowDblClick=function(e){if(!Se(e)){var t=this.createRowEventWithSource(Ve.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=Qn(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,n=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:t.rowIndex,column:n.getAllDisplayedColumns()[0],rowPinned:t.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){if(!Se(e)&&!this.lastMouseDownOnDragger){var t=this.createRowEventWithSource(Ve.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,r=e.shiftKey;if(!(this.beans.gridOptionsService.is("groupSelectsChildren")&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsService.isRowSelection()||this.beans.gridOptionsService.is("suppressRowClickSelection"))){var o=this.beans.gridOptionsService.is("rowMultiSelectWithClick"),i=!this.beans.gridOptionsService.is("suppressRowDeselection"),a="rowClicked";if(this.rowNode.isSelected())o?this.rowNode.setSelectedParams({newValue:!1,event:e,source:a}):n?i&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:a}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!r,rangeSelect:r,event:e,source:a});else{var s=!o&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:r,event:e,source:a})}}}},t.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===Ws.FullWidthDetail&&this.beans.gridOptionsService.is("detailRowAutoHeight")){var n=function(){var n=e.clientHeight;null!=n&&n>0&&t.beans.frameworkOverrides.setTimeout(function(){t.rowNode.setRowHeight(n),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()},0)},r=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(r),n()}},t.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.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,r,o){return n.addFullWidthRowDragging(e,t,r,o)}}},t.prototype.addFullWidthRowDragging=function(e,t,n,r){if(void 0===n&&(n=""),this.isFullWidth()){var o=new ga(function(){return n},this.rowNode,void 0,e,t,r);this.createManagedBean(o,this.beans.context)}},t.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},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},t.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)}))},t.prototype.stopEditing=function(e){var t,n;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var r=this.getAllCellCtrls(),o=this.editingRow;this.stoppingRowEdit=!0;var i=!1;try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),s=a.next();!s.done;s=a.next()){var l=s.value.stopEditing(e);o&&!e&&!i&&l&&(i=!0)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}if(i){var c=this.createRowEvent(Ve.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(c)}o&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},t.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)})},t.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)},t.prototype.startRowEditing=function(e,t,n,r){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.editingRow||this.getAllCellCtrls().reduce(function(o,i){var a=i===n;return a?i.startEditing(e,t,a,r):i.startEditing(null,null,a,r),!!o||i.isEditing()},!1)&&this.setEditingRow(!0)},t.prototype.getAllCellCtrls=function(){return 0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length?this.centerCellCtrls.list:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(pl(arguments[t]));return e}(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},t.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)})})},t.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)})})},t.prototype.setStylesFromGridOptions=function(e){var t=this.processStylesFromGridOptions();this.forEachGui(e,function(e){return e.rowComp.setUserStyles(t)})},t.prototype.getPinnedForContainer=function(e){return e===fl.LEFT?"left":e===fl.RIGHT?"right":null},t.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),n={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],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)},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsService.get("rowStyle");if(!e||"function"!=typeof e){var t,n=this.beans.gridOptionsService.getCallback("getRowStyle");return n&&(t=n({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex})),Object.assign({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},t.prototype.onRowSelected=function(e){var t=this,n=!!this.rowNode.isSelected();this.forEachGui(e,function(e){e.rowComp.addOrRemoveCssClass("ag-row-selected",n),rn(e.element,!!n||void 0);var r=t.createAriaLabel();Nt(e.element,null==r?"":r)})},t.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsService.is("suppressRowDeselection"))return this.beans.localeService.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.")},t.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},t.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,ra.EVENT_MOUSE_ENTER,function(){t.beans.dragService.isDragging()||t.beans.gridOptionsService.is("suppressRowHoverHighlight")||(e.classList.add("ag-row-hover"),t.rowNode.setHovered(!0))}),this.addManagedListener(this.rowNode,ra.EVENT_MOUSE_LEAVE,function(){e.classList.remove("ag-row-hover"),t.rowNode.setHovered(!1)}))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),r)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.forEachGui=function(e,t){(e?[e]:this.allRowGuis).forEach(t)},t.prototype.onRowHeightChanged=function(e){if(null!=this.rowNode.rowHeight){var t=this.rowNode.rowHeight,n=this.beans.environment.getDefaultRowHeight(),r=this.beans.gridOptionsService.isGetRowHeightFunction()?this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,o=r?Math.min(n,r)-2+"px":void 0;this.forEachGui(e,function(e){e.element.style.height=t+"px",o&&e.element.style.setProperty("--ag-line-height",o)})}},t.prototype.addEventListener=function(t,n){e.prototype.addEventListener.call(this,t,n)},t.prototype.removeEventListener=function(t,n){e.prototype.removeEventListener.call(this,t,n)},t.prototype.destroyFirstPass=function(){this.active=!1,this.beans.gridOptionsService.isAnimateRows()&&this.setupRemoveAnimation(),this.rowNode.setHovered(!1);var t=this.createRowEvent(Ve.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),e.prototype.destroy.call(this)},t.prototype.setupRemoveAnimation=function(){if(!this.isSticky())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)})},t.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)},t.prototype.setFocusedClasses=function(e){var t=this;this.forEachGui(e,function(e){e.rowComp.addOrRemoveCssClass("ag-row-focus",t.rowFocused),e.rowComp.addOrRemoveCssClass("ag-row-no-focus",!t.rowFocused)})},t.prototype.onCellFocused=function(){this.onCellFocusChanged()},t.prototype.onCellFocusCleared=function(){this.onCellFocusChanged()},t.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)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},t.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},t.prototype.setRowTop=function(e){if(!this.printLayout&&o(e)){var t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.setRowTopStyle(n)}},t.prototype.getInitialRowTop=function(e){return this.beans.gridOptionsService.is("suppressRowTransform")?this.getInitialRowTopShared(e):void 0},t.prototype.getInitialTransform=function(e){return this.beans.gridOptionsService.is("suppressRowTransform")?void 0:"translateY("+this.getInitialRowTopShared(e)+")"},t.prototype.getInitialRowTopShared=function(e){if(this.printLayout)return"";var t;if(this.isSticky())t=this.rowNode.stickyRowTop;else{var n=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,r=this.applyPaginationOffset(n);t=this.rowNode.isRowPinned()?r:this.beans.rowContainerHeightService.getRealPixelPosition(r)}return t+"px"},t.prototype.setRowTopStyle=function(e){var t=this.beans.gridOptionsService.is("suppressRowTransform");this.allRowGuis.forEach(function(n){return t?n.rowComp.setTop(e):n.rowComp.setTransform("translateY("+e+")")})},t.prototype.getRowNode=function(){return this.rowNode},t.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},t.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.updateRowIndexes=function(e){var t=this.rowNode.getRowIndexString(),n=this.beans.headerNavigationService.getHeaderRowCount(),r=this.rowNode.rowIndex%2==0,o=n+this.rowNode.rowIndex+1;this.forEachGui(e,function(e){e.rowComp.setRowIndex(t),e.rowComp.addOrRemoveCssClass("ag-row-even",r),e.rowComp.addOrRemoveCssClass("ag-row-odd",!r),Xt(e.element,o)})},t.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},t.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},t.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},t.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},t.DOM_DATA_KEY_ROW_CTRL="renderedRow",t}(Le),vl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Al=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return vl(t,e),t.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach(function(t){var n=e.processKeyboardEvent.bind(e,t);e.addManagedListener(e.element,t,n)})},t.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",xe("touchstart")?"touchstart":"mousedown"].forEach(function(t){var n=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,n)})},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Se(t)){var n=this.getRowForEvent(t),r=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,n,r):(r&&r.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(wn()){var t=new Ii(this.element);this.addManagedListener(t,Ii.EVENT_LONG_TAP,function(t){var n=e.getRowForEvent(t.touchEvent),r=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,r)}),this.addDestroyFunc(function(){return t.destroy()})}},t.prototype.getRowForEvent=function(e){for(var t=e.target;t;){var n=this.gridOptionsService.getDomData(t,ml.DOM_DATA_KEY_ROW_CTRL);if(n)return n;t=t.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,t,n,r){var o=n?n.getRowNode():null,i=r?r.getColumn():null,a=null;if(i){var s=e||t;r.dispatchCellContextMenuEvent(s),a=this.valueService.getValue(i,o)}var l=this.ctrlsService.getGridBodyCtrl(),c=r?r.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,o,i,a,c)},t.prototype.processKeyboardEvent=function(e,t){var n=De(this.gridOptionsService,t.target,ul.DOM_DATA_KEY_CELL_CTRL),r=De(this.gridOptionsService,t.target,ml.DOM_DATA_KEY_ROW_CTRL);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))},t.prototype.processCellKeyboardEvent=function(e,t,n){var r=e.getRowNode(),o=e.getColumn(),i=e.isEditing();if(!Tr(this.gridOptionsService,n,r,o,i))switch(t){case"keydown":!i&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing());break;case"keypress":e.onKeyPress(n)}if("keydown"===t){var a=e.createEvent(n,Ve.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(a)}if("keypress"===t){var s=e.createEvent(n,Ve.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(s)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,t,n){var r=e.getRowNode(),o=this.focusService.getFocusedCell(),i=o&&o.column;if(!Tr(this.gridOptionsService,n,r,i,!1)){var a=n.key;if("keydown"===t)switch(a){case Pr.PAGE_HOME:case Pr.PAGE_END:this.navigationService.handlePageScrollingKey(n);break;case Pr.UP:case Pr.DOWN:e.onKeyboardNavigate(n);break;case Pr.TAB:e.onTabKeyDown(n)}}if("keydown"===t){var s=e.createRowEvent(Ve.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(s)}if("keypress"===t){var l=e.createRowEvent(Ve.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(l)}},t.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e)){var n=Ir(e);return n===Pr.A?this.onCtrlAndA(e):n===Pr.C?this.onCtrlAndC(e):n===Pr.X?this.onCtrlAndX(e):n===Pr.V?this.onCtrlAndV():n===Pr.D?this.onCtrlAndD(e):n===Pr.Z?this.onCtrlAndZ(e):n===Pr.Y?this.onCtrlAndY():void 0}},t.prototype.onCtrlAndA=function(e){var t=this,n=t.pinnedRowModel,r=t.paginationProxy,o=t.rangeService;if(o&&r.isRowsToRender()){var i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}([n.isEmpty("top"),n.isEmpty("bottom")],2),s=i[0]?null:"top",l=void 0,c=void 0;i[1]?(l=null,c=this.paginationProxy.getRowCount()-1):(l="bottom",c=n.getPinnedBottomRowData().length-1);var u=this.columnModel.getAllDisplayedColumns();if(a(u))return;o.setCellRange({rowStartIndex:0,rowStartPinned:s,rowEndIndex:c,rowEndPinned:l,columnStart:u[0],columnEnd:ue(u)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsService.is("enableCellTextSelection")&&(this.clipboardService.copyToClipboard(),e.preventDefault())},t.prototype.onCtrlAndX=function(e){!this.clipboardService||this.gridOptionsService.is("enableCellTextSelection")||this.gridOptionsService.is("suppressCutToClipboard")||(this.clipboardService.cutToClipboard(),e.preventDefault())},t.prototype.onCtrlAndV=function(){te.isRegistered(X.ClipboardModule)&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){te.isRegistered(X.ClipboardModule)&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsService.is("undoRedoCellEditing")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},yl([$("mouseEventService")],t.prototype,"mouseEventService",void 0),yl([$("valueService")],t.prototype,"valueService",void 0),yl([K("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),yl([$("ctrlsService")],t.prototype,"ctrlsService",void 0),yl([$("navigationService")],t.prototype,"navigationService",void 0),yl([$("focusService")],t.prototype,"focusService",void 0),yl([$("undoRedoService")],t.prototype,"undoRedoService",void 0),yl([$("columnModel")],t.prototype,"columnModel",void 0),yl([$("paginationProxy")],t.prototype,"paginationProxy",void 0),yl([$("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),yl([K("rangeService")],t.prototype,"rangeService",void 0),yl([K("clipboardService")],t.prototype,"clipboardService",void 0),yl([G],t.prototype,"postConstruct",null),t}(Le),wl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_l=function(e){function t(t){var n=e.call(this)||this;return n.centerContainerCtrl=t,n}return wl(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=Yn(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:Ve.EVENT_BODY_HEIGHT_CHANGED};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)},t.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},bl([$("ctrlsService")],t.prototype,"ctrlsService",void 0),bl([$("columnModel")],t.prototype,"columnModel",void 0),bl([$("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),bl([G],t.prototype,"postConstruct",null),t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),El=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sl=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return Cl(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;zn(this.element,t),mr(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},El([$("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),El([G],t.prototype,"postConstruct",null),t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Dl=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return Ol(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;zn(this.element,t),mr(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},xl([$("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),xl([G],t.prototype,"postConstruct",null),t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ml=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Tl=function(e){function t(t,n){var r=e.call(this)||this;return r.eContainer=t,r.eWrapper=n,r}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)},Ml([$("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),Ml([G],t.prototype,"postConstruct",null),t}(Le),Rl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Il=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fl=function(e){function t(t){var n=e.call(this)||this;return n.eContainer=t,n}return Rl(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsService.isEnableRangeSelection()&&!i(this.rangeService)){var t={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(t),this.addDestroyFunc(function(){return e.dragService.removeDragSource(t)})}},Il([K("rangeService")],t.prototype,"rangeService",void 0),Il([$("dragService")],t.prototype,"dragService",void 0),Il([G],t.prototype,"postConstruct",null),t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ll=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bl=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this)||this;return r.callback=t,r.addSpacer=n,r}return kl(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()},t.prototype.setWidth=function(){var e,t=this.columnModel,n=this.gridOptionsService.isDomLayout("print"),r=t.getBodyContainerWidth(),o=t.getDisplayedColumnsLeftWidth(),i=t.getDisplayedColumnsRightWidth();n?e=r+o+i:(e=r,this.addSpacer&&0===(this.gridOptionsService.is("enableRtl")?o:i)&&this.scrollVisibleService.isVerticalScrollShowing()&&(e+=this.gridOptionsService.getScrollbarWidth())),this.callback(e)},Ll([$("columnModel")],t.prototype,"columnModel",void 0),Ll([$("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Ll([G],t.prototype,"postConstruct",null),t}(Le),Nl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ul=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function Vl(e){switch(e){case hl.CENTER:case hl.TOP_CENTER:case hl.STICKY_TOP_CENTER:case hl.BOTTOM_CENTER:return fl.CENTER;case hl.LEFT:case hl.TOP_LEFT:case hl.STICKY_TOP_LEFT:case hl.BOTTOM_LEFT:return fl.LEFT;case hl.RIGHT:case hl.TOP_RIGHT:case hl.STICKY_TOP_RIGHT:case hl.BOTTOM_RIGHT:return fl.RIGHT;case hl.FULL_WIDTH:case hl.TOP_FULL_WIDTH:case hl.STICKY_TOP_FULL_WIDTH:case hl.BOTTOM_FULL_WIDTH:return fl.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}!function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.FULL_WIDTH="fullWidth",e.TOP_LEFT="topLeft",e.TOP_RIGHT="topRight",e.TOP_CENTER="topCenter",e.TOP_FULL_WIDTH="topFullWidth",e.STICKY_TOP_LEFT="stickyTopLeft",e.STICKY_TOP_RIGHT="stickyTopRight",e.STICKY_TOP_CENTER="stickyTopCenter",e.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",e.BOTTOM_LEFT="bottomLeft",e.BOTTOM_RIGHT="bottomRight",e.BOTTOM_CENTER="bottomCenter",e.BOTTOM_FULL_WIDTH="bottomFullWidth"}(hl||(hl={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.FULL_WIDTH="fullWidth"}(fl||(fl={}));var Hl,Gl=mt([[hl.CENTER,"ag-center-cols-container"],[hl.LEFT,"ag-pinned-left-cols-container"],[hl.RIGHT,"ag-pinned-right-cols-container"],[hl.FULL_WIDTH,"ag-full-width-container"],[hl.TOP_CENTER,"ag-floating-top-container"],[hl.TOP_LEFT,"ag-pinned-left-floating-top"],[hl.TOP_RIGHT,"ag-pinned-right-floating-top"],[hl.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[hl.STICKY_TOP_CENTER,"ag-sticky-top-container"],[hl.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[hl.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[hl.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[hl.BOTTOM_CENTER,"ag-floating-bottom-container"],[hl.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[hl.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[hl.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),Wl=mt([[hl.CENTER,"ag-center-cols-viewport"],[hl.TOP_CENTER,"ag-floating-top-viewport"],[hl.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[hl.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),zl=mt([[hl.CENTER,"ag-center-cols-clipper"]]),$l=function(e){function t(t){var n=e.call(this)||this;return n.visible=!0,n.EMPTY_CTRLS=[],n.name=t,n.isFullWithContainer=n.name===hl.TOP_FULL_WIDTH||n.name===hl.STICKY_TOP_FULL_WIDTH||n.name===hl.BOTTOM_FULL_WIDTH||n.name===hl.FULL_WIDTH,n}return Nl(t,e),t.getRowContainerCssClasses=function(e){return{container:Gl.get(e),viewport:Wl.get(e),wrapper:zl.get(e)}},t.getPinned=function(e){switch(e){case hl.BOTTOM_LEFT:case hl.TOP_LEFT:case hl.STICKY_TOP_LEFT:case hl.LEFT:return"left";case hl.BOTTOM_RIGHT:case hl.TOP_RIGHT:case hl.STICKY_TOP_RIGHT:case hl.RIGHT:return"right";default:return null}},t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.embedFullWidthRows=this.gridOptionsService.is("embedFullWidthRows"),this.forContainers([hl.CENTER],function(){return e.viewportSizeFeature=e.createManagedBean(new _l(e))})},t.prototype.registerWithCtrlsService=function(){switch(this.name){case hl.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case hl.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case hl.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case hl.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case hl.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case hl.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case hl.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case hl.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case hl.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case hl.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case hl.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case hl.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},t.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,t,n,r){var o=this;this.comp=e,this.eContainer=t,this.eViewport=n,this.eWrapper=r,this.createManagedBean(new Al(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var i=[hl.TOP_CENTER,hl.TOP_LEFT,hl.TOP_RIGHT],a=[hl.STICKY_TOP_CENTER,hl.STICKY_TOP_LEFT,hl.STICKY_TOP_RIGHT],s=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ul(arguments[t]));return e}(i,[hl.BOTTOM_CENTER,hl.BOTTOM_LEFT,hl.BOTTOM_RIGHT],[hl.CENTER,hl.LEFT,hl.RIGHT],a),l=[hl.CENTER,hl.LEFT,hl.RIGHT,hl.FULL_WIDTH],c=[hl.CENTER,hl.TOP_CENTER,hl.STICKY_TOP_CENTER,hl.BOTTOM_CENTER],u=[hl.LEFT,hl.BOTTOM_LEFT,hl.TOP_LEFT,hl.STICKY_TOP_LEFT],d=[hl.RIGHT,hl.BOTTOM_RIGHT,hl.TOP_RIGHT,hl.STICKY_TOP_RIGHT];this.forContainers(u,function(){o.pinnedWidthFeature=o.createManagedBean(new Sl(o.eContainer)),o.addManagedListener(o.eventService,Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED,function(){return o.onPinnedWidthChanged()})}),this.forContainers(d,function(){o.pinnedWidthFeature=o.createManagedBean(new Dl(o.eContainer)),o.addManagedListener(o.eventService,Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED,function(){return o.onPinnedWidthChanged()})}),this.forContainers(l,function(){return o.createManagedBean(new Tl(o.eContainer,o.eWrapper))}),this.forContainers(s,function(){return o.createManagedBean(new Fl(o.eContainer))}),this.forContainers(c,function(){return o.createManagedBean(new Bl(function(e){return o.comp.setContainerWidth(e+"px")}))}),Dn()&&(this.forContainers([hl.CENTER],function(){var e=o.enableRtl?Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED:Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED;o.addManagedListener(o.eventService,e,function(){return o.refreshPaddingForFakeScrollbar()})}),this.refreshPaddingForFakeScrollbar()),this.addListeners(),this.registerWithCtrlsService()},t.prototype.refreshPaddingForFakeScrollbar=function(){var e=this,t=e.enableRtl,n=e.columnModel,r=e.name,o=e.eWrapper,i=e.eContainer,a=t?hl.LEFT:hl.RIGHT;this.forContainers([hl.CENTER,a],function(){var e=n.getContainerWidth(a),s=t?"marginLeft":"marginRight";r===hl.CENTER?o.style[s]=e?"0px":"16px":i.style[s]=e?"16px":"0px"})},t.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()},t.prototype.listenOnDomOrder=function(){var e=this;if([hl.STICKY_TOP_CENTER,hl.STICKY_TOP_LEFT,hl.STICKY_TOP_RIGHT,hl.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var t=function(){var t=e.gridOptionsService.is("ensureDomOrder"),n=e.gridOptionsService.isDomLayout("print");e.comp.setDomOrder(t||n)};this.addManagedPropertyListener("domLayout",t),t()}},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([hl.TOP_CENTER,hl.STICKY_TOP_CENTER,hl.BOTTOM_CENTER],function(){e.addManagedListener(e.eViewport,"scroll",function(){return e.eViewport.scrollLeft=0})})},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([hl.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([hl.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onScrollVisibilityChanged=function(){var e=this.gridOptionsService.getScrollbarWidth()||0;if(this.name===hl.CENTER){var t=this.scrollVisibleService.isHorizontalScrollShowing()?e:0,n=0==t?"100%":"calc(100% + "+t+"px)";this.comp.setViewportHeight(n)}this.name===hl.FULL_WIDTH&&(n="calc(100% - "+(Dn()?16:0)+"px)",this.eContainer.style.setProperty("width",n))},t.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)})},t.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),t=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},t.prototype.getCenterWidth=function(){return Xn(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return tr(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return t()})},t.prototype.isViewportVisible=function(){return ir(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return tr(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is("alwaysShowHorizontalScroll")||hr(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},t.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},t.prototype.setCenterViewportScrollLeft=function(e){nr(this.eViewport,e,this.enableRtl)},t.prototype.isContainerVisible=function(){return!t.getPinned(this.name)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},t.prototype.onPinnedWidthChanged=function(){var e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged()),Dn()&&this.refreshPaddingForFakeScrollbar()},t.prototype.onDisplayedRowsChanged=function(){var e=this;if(this.visible){var t=this.gridOptionsService.isDomLayout("print"),n=this.getRowCtrls().filter(function(n){var r=n.isFullWidth(),o=e.embedFullWidthRows||t;return e.isFullWithContainer?!o&&r:o||!r});this.comp.setRowCtrls(n)}else this.comp.setRowCtrls(this.EMPTY_CTRLS)},t.prototype.getRowCtrls=function(){switch(this.name){case hl.TOP_CENTER:case hl.TOP_LEFT:case hl.TOP_RIGHT:case hl.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case hl.STICKY_TOP_CENTER:case hl.STICKY_TOP_LEFT:case hl.STICKY_TOP_RIGHT:case hl.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case hl.BOTTOM_CENTER:case hl.BOTTOM_LEFT:case hl.BOTTOM_RIGHT:case hl.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},jl([$("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),jl([$("dragService")],t.prototype,"dragService",void 0),jl([$("ctrlsService")],t.prototype,"ctrlsService",void 0),jl([$("columnModel")],t.prototype,"columnModel",void 0),jl([$("resizeObserverService")],t.prototype,"resizeObserverService",void 0),jl([$("rowRenderer")],t.prototype,"rowRenderer",void 0),jl([G],t.prototype,"postConstruct",null),t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ql=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ql='<div class="ag-root ag-unselectable" role="treegrid">\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="'+hl.TOP_LEFT+'"></ag-row-container>\n            <ag-row-container ref="topCenterContainer" name="'+hl.TOP_CENTER+'"></ag-row-container>\n            <ag-row-container ref="topRightContainer" name="'+hl.TOP_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="topFullWidthContainer" name="'+hl.TOP_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-body" ref="eBody" role="presentation">\n            <div class="ag-body-clipper" ref="eBodyClipper" role="presentation">\n                <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n                    <ag-row-container ref="leftContainer" name="'+hl.LEFT+'"></ag-row-container>\n                    <ag-row-container ref="centerContainer" name="'+hl.CENTER+'"></ag-row-container>\n                    <ag-row-container ref="rightContainer" name="'+hl.RIGHT+'"></ag-row-container>\n                    <ag-row-container ref="fullWidthContainer" name="'+hl.FULL_WIDTH+'"></ag-row-container>\n                </div>\n            </div>\n            <ag-fake-vertical-scroll></ag-fake-vertical-scroll>\n        </div>\n        <div class="ag-sticky-top" ref="eStickyTop" role="presentation">\n            <ag-row-container ref="stickyTopLeftContainer" name="'+hl.STICKY_TOP_LEFT+'"></ag-row-container>\n            <ag-row-container ref="stickyTopCenterContainer" name="'+hl.STICKY_TOP_CENTER+'"></ag-row-container>\n            <ag-row-container ref="stickyTopRightContainer" name="'+hl.STICKY_TOP_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="stickyTopFullWidthContainer" name="'+hl.STICKY_TOP_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n            <ag-row-container ref="bottomLeftContainer" name="'+hl.BOTTOM_LEFT+'"></ag-row-container>\n            <ag-row-container ref="bottomCenterContainer" name="'+hl.BOTTOM_CENTER+'"></ag-row-container>\n            <ag-row-container ref="bottomRightContainer" name="'+hl.BOTTOM_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="bottomFullWidthContainer" name="'+hl.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>',Yl=function(e){function t(){return e.call(this,ql)||this}return Kl(t,e),t.prototype.init=function(){var e=this,t=function(e,t){var n=e+"px";t.style.minHeight=n,t.style.height=n},n={setRowAnimationCssOnBodyViewport:function(t,n){return e.setRowAnimationCssOnBodyViewport(t,n)},setColumnCount:function(t){return Zt(e.getGui(),t)},setRowCount:function(t){return Yt(e.getGui(),t)},setTopHeight:function(n){return t(n,e.eTop)},setBottomHeight:function(n){return t(n,e.eBottom)},setTopDisplay:function(t){return e.eTop.style.display=t},setBottomDisplay:function(t){return e.eBottom.style.display=t},setStickyTopHeight:function(t){return e.eStickyTop.style.height=t},setStickyTopTop:function(t){return e.eStickyTop.style.top=t},setStickyTopWidth:function(t){return e.eStickyTop.style.width=t},setColumnMovingCss:function(t,n){return e.addOrRemoveCssClass(t,n)},updateLayoutClasses:function(t,n){[e.eBodyViewport.classList,e.eBodyClipper.classList,e.eBody.classList].forEach(function(e){e.toggle(hs.AUTO_HEIGHT,n.autoHeight),e.toggle(hs.NORMAL,n.normal),e.toggle(hs.PRINT,n.print)}),e.addOrRemoveCssClass(hs.AUTO_HEIGHT,n.autoHeight),e.addOrRemoveCssClass(hs.NORMAL,n.normal),e.addOrRemoveCssClass(hs.PRINT,n.print)},setAlwaysVerticalScrollClass:function(t,n){return e.eBodyViewport.classList.toggle(Hs,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(Vs,n)})},setBodyViewportWidth:function(t){return e.eBodyViewport.style.width=t}};this.ctrl=this.createManagedBean(new Gs),this.ctrl.setComp(n,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||"multiple"===this.gridOptionsService.get("rowSelection"))&&qt(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,t){var n=this.eBodyViewport.classList;n.toggle(Ss.ANIMATION_ON,t),n.toggle(Ss.ANIMATION_OFF,!t)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},Ql([$("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Ql([K("rangeService")],t.prototype,"rangeService",void 0),Ql([oo("eBodyViewport")],t.prototype,"eBodyViewport",void 0),Ql([oo("eStickyTop")],t.prototype,"eStickyTop",void 0),Ql([oo("eTop")],t.prototype,"eTop",void 0),Ql([oo("eBottom")],t.prototype,"eBottom",void 0),Ql([oo("gridHeader")],t.prototype,"headerRootComp",void 0),Ql([oo("eBodyClipper")],t.prototype,"eBodyClipper",void 0),Ql([oo("eBody")],t.prototype,"eBody",void 0),Ql([G],t.prototype,"init",null),t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},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};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Zl([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Zl([G],t.prototype,"postConstruct",null),Zl([z("scrollVisibleService")],t)}(Le),ec=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},nc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=n.gridInstanceSequence.next(),t}var n;return ec(t,e),n=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[n.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return De(this.gridOptionsService,e.target,ul.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 r=t[n.GRID_DOM_KEY];if(o(r))return r===this.gridInstanceId;t=t.parentElement}return!1},t.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},t.prototype.getNormalisedPosition=function(e){var t,n,r=this.gridOptionsService.isDomLayout("normal"),o=e;if(null!=o.clientX||null!=o.clientY?(t=o.clientX,n=o.clientY):(t=o.x,n=o.y),r){var i=this.ctrlsService.getGridBodyCtrl(),a=i.getScrollFeature().getVScrollPosition();t+=i.getScrollFeature().getHScrollPosition().left,n+=a.top}return{x:t,y:n}},t.gridInstanceSequence=new Wr,t.GRID_DOM_KEY="__ag_grid_instance",tc([$("ctrlsService")],t.prototype,"ctrlsService",void 0),n=tc([z("mouseEventService")],t)}(Le),rc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oc=function(){return oc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oc.apply(this,arguments)},ic=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ac=function(e){function t(){var t=e.call(this)||this;return t.onPageDown=L(t.onPageDown,100),t.onPageUp=L(t.onPageUp,100),t}return rc(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.gridBodyCon=t.gridBodyCtrl})},t.prototype.handlePageScrollingKey=function(e){var t=e.key,n=e.altKey,r=e.ctrlKey||e.metaKey,o=!!this.rangeService&&e.shiftKey,i=this.mouseEventService.getCellPositionForEvent(e),a=!1;switch(t){case Pr.PAGE_HOME:case Pr.PAGE_END:r||n||(this.onHomeOrEndKey(t),a=!0);break;case Pr.LEFT:case Pr.RIGHT:case Pr.UP:case Pr.DOWN:if(!i)return!1;!r||n||o||(this.onCtrlUpDownLeftRight(t,i),a=!0);break;case Pr.PAGE_DOWN:if(!i)return!1;r||n||(this.onPageDown(i),a=!0);break;case Pr.PAGE_UP:if(!i)return!1;r||n||(this.onPageUp(i),a=!0)}return a&&e.preventDefault(),a},t.prototype.navigateTo=function(e){var t=e.scrollIndex,n=e.scrollType,r=e.scrollColumn,i=e.focusIndex,a=e.focusColumn;if(o(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),o(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,n),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(i),this.focusService.setFocusedCell({rowIndex:i,column:a,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var s={rowIndex:i,rowPinned:null,column:a};this.rangeService.setRangeToCell(s)}},t.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),r=this.paginationProxy.getPixelOffset(),o=t.top+n,i=this.paginationProxy.getRowIndexAtPixel(o+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,i):this.navigateToNextPage(e,i)},t.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),r=t.top,o=this.paginationProxy.getRowIndexAtPixel(r+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,o,!0):this.navigateToNextPage(e,o,!0)},t.prototype.navigateToNextPage=function(e,t,n){void 0===n&&(n=!1);var r,o=this.getViewportHeight(),i=this.paginationProxy.getPageFirstRow(),a=this.paginationProxy.getPageLastRow(),s=this.paginationProxy.getPixelOffset(),l=this.paginationProxy.getRow(e.rowIndex),c=n?(null==l?void 0:l.rowHeight)-o-s:o-s,u=(null==l?void 0:l.rowTop)+c,d=this.paginationProxy.getRowIndexAtPixel(u+s);if(d===e.rowIndex){var p=n?-1:1;t=d=e.rowIndex+p}n?(r="bottom",d<i&&(d=i),t<i&&(t=i)):(r="top",d>a&&(d=a),t>a&&(t=a)),this.isRowTallerThanView(d)&&(t=d,r="top"),this.navigateTo({scrollIndex:t,scrollType:r,scrollColumn:null,focusIndex:d,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,t,n){var r=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(function(){var o=r.getNextFocusIndexForAutoHeight(e,n);r.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:o,focusColumn:e.column,isAsync:!0})},50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,t){var n;void 0===t&&(t=!1);for(var r=t?-1:1,o=this.getViewportHeight(),i=this.paginationProxy.getPageLastRow(),a=0,s=e.rowIndex;s>=0&&s<=i;){var l=this.paginationProxy.getRow(s);if(l){var c=null!==(n=l.rowHeight)&&void 0!==n?n:0;if(a+c>o)break;a+=c}s+=r}return Math.max(0,Math.min(s,i))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.gridOptionsService.getScrollbarWidth(),n=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=t),n},t.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var n=t.rowHeight;return"number"==typeof n&&n>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,t){var n=this.cellNavigationService.getNextCellToFocus(e,t,!0),r=n.rowIndex,o=n.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:o,focusIndex:r,focusColumn:o})},t.prototype.onHomeOrEndKey=function(e){var t=e===Pr.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),r=t?n[0]:ue(n),o=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:r,focusIndex:o,focusColumn:r})},t.prototype.onTabKeyDown=function(e,t){var n=t.shiftKey;if(this.tabToNextCellCommon(e,n,t))t.preventDefault();else if(n){var r=e.getRowPosition(),o=r.rowIndex;(r.rowPinned?0===o:o===this.paginationProxy.getPageFirstRow())&&(0===this.gridOptionsService.getNum("headerHeight")?this.focusService.focusNextGridCoreContainer(!0,!0):(t.preventDefault(),this.focusService.focusLastHeader(t)))}else e instanceof ul&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&t.preventDefault()},t.prototype.tabToNextCell=function(e,t){var n=this.focusService.getFocusedCell();if(!n)return!1;var r=this.getCellByPosition(n);return!!(r||(r=this.rowRenderer.getRowByPosition(n))&&r.isFullWidth())&&this.tabToNextCellCommon(r,e,t)},t.prototype.tabToNextCellCommon=function(e,t,n){var r=e.isEditing();if(!r&&e instanceof ul){var o=e.getRowCtrl();o&&(r=o.isEditing())}return(r?"fullRow"===this.gridOptionsService.get("editType")?this.moveToNextEditingRow(e,t,n):this.moveToNextEditingCell(e,t,n):this.moveToNextCellNotEditing(e,t))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,t,n){void 0===n&&(n=null);var r=e.getCellPosition();e.getGui().focus(),e.stopEditing();var o=this.findNextCellToFocusOn(r,t,!0);return null!=o&&(o.startEditing(null,null,!0,n),o.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,t,n){void 0===n&&(n=null);var r=e.getCellPosition(),o=this.findNextCellToFocusOn(r,t,!0);if(null==o)return!1;var i=o.getCellPosition(),a=this.isCellEditable(r),s=this.isCellEditable(i),l=i&&r.rowIndex===i.rowIndex&&r.rowPinned===i.rowPinned;return a&&e.setFocusOutOnEditor(),l||(e.getRowCtrl().stopEditing(),o.getRowCtrl().startRowEditing(void 0,void 0,void 0,n)),s?(o.setFocusInOnEditor(),o.focusCell()):o.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,t){var n,r=this.columnModel.getAllDisplayedColumns();n=e instanceof ml?oc(oc({},e.getRowPosition()),{column:t?r[0]:ue(r)}):e.getCellPosition();var i=this.findNextCellToFocusOn(n,t,!1);if(i instanceof ul)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),t);return o(i)},t.prototype.findNextCellToFocusOn=function(e,t,n){for(var r=e;;){e!==r&&(e=r),t||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,t);var i=this.gridOptionsService.getCallback("tabToNextCell");if(o(i)){var a=i({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:r||null});o(a)?(a.floating&&(x(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"),a.rowPinned=a.floating),r={rowIndex:a.rowIndex,column:a.column,rowPinned:a.rowPinned}):r=null}if(!r)return null;if(r.rowIndex<0){var s=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:s+r.rowIndex,column:r.column}}),null}var l="fullRow"===this.gridOptionsService.get("editType");if(!n||l||this.isCellEditable(r)){this.ensureCellVisible(r);var c=this.getCellByPosition(r);if(!c){var u=this.rowRenderer.getRowByPosition(r);if(!u||!u.isFullWidth()||n)continue;return u}if(!c.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(r),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"top"===e.rowPinned?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):"bottom"===e.rowPinned?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,t,n,r){for(var a=n,s=!1;a&&(a===n||!this.isValidNavigateCell(a));)this.gridOptionsService.is("enableRtl")?t===Pr.LEFT&&(a=this.getLastCellOfColSpan(a)):t===Pr.RIGHT&&(a=this.getLastCellOfColSpan(a)),s=i(a=this.cellNavigationService.getNextCellToFocus(t,a));if(s&&e&&e.key===Pr.UP&&(a={rowIndex:-1,rowPinned:null,column:n.column}),r){var l=this.gridOptionsService.getCallback("navigateToNextCell");if(o(l)){var c=l({key:t,previousCellPosition:n,nextCellPosition:a||null,event:e});o(c)?(c.floating&&(x(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"),c.rowPinned=c.floating),a={rowPinned:c.rowPinned,rowIndex:c.rowIndex,column:c.column}):a=null}}if(a)if(a.rowIndex<0){var u=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u+a.rowIndex,column:n.column},event:e||void 0})}else{var d=this.getNormalisedPosition(a);d?this.focusPosition(d):this.tryToFocusFullWidthRow(a)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,t){void 0===t&&(t=!1);var n=this.columnModel.getAllDisplayedColumns(),r=this.rowRenderer.getRowByPosition(e);if(!r||!r.isFullWidth())return!1;var o=this.focusService.getFocusedCell(),i={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?ue(n):n[0])};this.focusPosition(i);var a=null!=o&&this.rowPositionUtils.before(i,o),s={type:Ve.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:i.column,isFullWidthCell:!0,floating:i.rowPinned,fromBelow:a};return this.eventService.dispatchEvent(s),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!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){var t=this.gridOptionsService.is("groupRowsSticky"),n=this.rowModel.getRow(e.rowIndex);!(t&&(null==n?void 0:n.sticky))&&i(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},ic([$("mouseEventService")],t.prototype,"mouseEventService",void 0),ic([$("paginationProxy")],t.prototype,"paginationProxy",void 0),ic([$("focusService")],t.prototype,"focusService",void 0),ic([K("rangeService")],t.prototype,"rangeService",void 0),ic([$("columnModel")],t.prototype,"columnModel",void 0),ic([$("rowModel")],t.prototype,"rowModel",void 0),ic([$("ctrlsService")],t.prototype,"ctrlsService",void 0),ic([$("rowRenderer")],t.prototype,"rowRenderer",void 0),ic([$("headerNavigationService")],t.prototype,"headerNavigationService",void 0),ic([$("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),ic([$("cellNavigationService")],t.prototype,"cellNavigationService",void 0),ic([$("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ic([G],t.prototype,"postConstruct",null),ic([z("navigationService")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lc=function(e){function t(t){var n=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.params=t,n}return sc(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.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){Tr(e.gridOptionsService,t,n.node,n.column,!0)||n.onKeyDown(t)})},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([G],t.prototype,"postConstruct",null),t}(Wi),cc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uc=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;a.rendererVersion=0,a.editorVersion=0,a.beans=t,a.column=n.getColumn(),a.rowNode=n.getRowNode(),a.rowCtrl=n.getRowCtrl(),a.eRow=o,a.setTemplate('<div comp-id="'+a.getCompId()+'"/>');var s=a.getGui();a.forceWrapper=n.isForceWrapper(),a.refreshWrapper(!1);var l=function(e,t,n){var r=n||s;null!=t&&""!=t?r.setAttribute(e,t):r.removeAttribute(e)},c={addOrRemoveCssClass:function(e,t){return a.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return pr(s,e)},getFocusableElement:function(){return a.getFocusableElement()},setTabIndex:function(e){return l("tabindex",e.toString())},setRole:function(e){return Ft(s,e)},setColId:function(e){return l("col-id",e)},setTitle:function(e){return l("title",e)},setIncludeSelection:function(e){return a.includeSelection=e},setIncludeRowDrag:function(e){return a.includeRowDrag=e},setIncludeDndSource:function(e){return a.includeDndSource=e},setRenderDetails:function(e,t,n){return a.setRenderDetails(e,t,n)},setEditDetails:function(e,t,n){return a.setEditDetails(e,t,n)},getCellEditor:function(){return a.cellEditor||null},getCellRenderer:function(){return a.cellRenderer||null},getParentOfValue:function(){return a.getParentOfValue()}};return a.cellCtrl=n,n.setComp(c,a.getGui(),a.eCellWrapper,r,i),a}return cc(t,e),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,t,n){if(!this.cellEditor||this.cellEditorPopupWrapper){this.firstRender=null==this.firstRender;var r=this.refreshWrapper(!1);this.refreshEditStyles(!1),e?!n&&!r&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(t))}},t.prototype.setEditDetails=function(e,t,n){e?this.createCellEditorInstance(e,t,n):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var t=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=t||this.forceWrapper,r=n&&null==this.eCellWrapper;r&&(this.eCellWrapper=ar('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var o=!n&&null!=this.eCellWrapper;o&&(or(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);var i=!e&&n,a=i&&null==this.eCellValue;a&&(this.eCellValue=ar('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var s=!i&&null!=this.eCellValue;s&&(or(this.eCellValue),this.eCellValue=void 0);var l=r||o||a||s;return l&&this.removeControls(),e||t&&this.addControls(),l},t.prototype.addControls=function(){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.prototype.createCellEditorInstance=function(e,t,n){var r=this,o=this.editorVersion,a=e.newAgStackInstance();if(a){var s=e.params;a.then(function(e){return r.afterCellEditorCreated(o,e,s,t,n)}),i(this.cellEditor)&&s.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();rr(t);var n=null!=e?ht(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),or(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),or(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.gridOptionsService.is("suppressAnimationFrame"),r=this.rendererVersion,o=e.componentClass,i=function(){if(t.rendererVersion===r&&t.isAlive()){var n=e.newAgStackInstance(),i=t.afterCellRendererCreated.bind(t,r,o);n&&n.then(i)}};n&&this.firstRender?this.beans.animationFrameService.createTask(i,this.rowNode.rowIndex,"createTasksP2"):i()},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){if(this.cellRenderer=n,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var r=this.getParentOfValue();rr(r),r.appendChild(this.cellRendererGui)}}else this.beans.context.destroyBean(n)},t.prototype.afterCellEditorCreated=function(e,t,n,r,o){if(e!==this.editorVersion)this.beans.context.destroyBean(t);else{if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing(!0);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();var i=r||void 0!==t.isPopup&&t.isPopup();i?this.addPopupCellEditor(n,o):this.addInCellEditor(),this.refreshEditStyles(!0,i),t.afterGuiAttached&&t.afterGuiAttached()}},t.prototype.refreshEditStyles=function(e,t){var n;this.addOrRemoveCssClass("ag-cell-inline-editing",e&&!t),this.addOrRemoveCssClass("ag-cell-popup-editing",e&&!!t),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!e||!!t),null===(n=this.rowCtrl)||void 0===n||n.setInlineEditingCss(e)},t.prototype.addInCellEditor=function(){var e=this.getGui(),t=this.beans.gridOptionsService.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;"fullRow"===this.beans.gridOptionsService.get("editType")&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var r=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new lc(e));var o=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&o.appendChild(this.cellEditorGui);var i=this.beans.popupService,a=this.beans.gridOptionsService.is("stopEditingWhenCellsLoseFocus"),s=null!=t?t:r.getPopupPosition?r.getPopupPosition():"over",l=this.beans.gridOptionsService.is("enableRtl"),c={ePopup:o,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:s,alignSide:l?"right":"left",keepWithinBounds:!0},u=i.positionPopupByComponent.bind(i,c),d=this.beans.localeService.getLocaleTextFunc(),p=i.addPopup({modal:a,eChild:o,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:u,ariaLabel:d("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.gridOptionsService.getDocument();e.contains(t.activeElement)&&bn()&&e.focus({preventScroll:!0}),rr(this.getParentOfValue())},t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pc=function(e){function t(t,n,r){var o=e.call(this)||this;o.cellComps={},o.beans=n,o.rowCtrl=t,o.setTemplate('<div comp-id="'+o.getCompId()+'" style="'+o.getInitialStyle(r)+'"/>');var i=o.getGui(),a=i.style,s={setDomOrder:function(e){return o.domOrder=e},setCellCtrls:function(e){return o.setCellCtrls(e)},showFullWidth:function(e){return o.showFullWidth(e)},getFullWidthCellRenderer:function(){return o.getFullWidthCellRenderer()},addOrRemoveCssClass:function(e,t){return o.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return pr(i,e)},setTop:function(e){return a.top=e},setTransform:function(e){return a.transform=e},setRowIndex:function(e){return i.setAttribute("row-index",e)},setRole:function(e){return Ft(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(s,o.getGui(),r),o.addDestroyFunc(function(){t.unsetComp(r)}),o}return dc(t,e),t.prototype.getInitialStyle=function(e){var t=this.rowCtrl.getInitialTransform(e),n=this.rowCtrl.getInitialRowTop(e);return t?"transform: "+t:"top: "+n},t.prototype.showFullWidth=function(e){var t=this,n=e.newAgStackInstance();n&&n.then(function(e){if(t.isAlive()){var n=e.getGui();t.getGui().appendChild(n),t.rowCtrl.setupDetailRowAutoHeight(n),t.setFullWidthRowComp(e)}else t.beans.context.destroyBean(e)})},t.prototype.setCellCtrls=function(e){var t=this,n=Object.assign({},this.cellComps);e.forEach(function(e){var r=e.getInstanceId();null==t.cellComps[r]?t.newCellComp(e):n[r]=null});var r=w(n).filter(function(e){return null!=e});this.destroyCells(r),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var t=this;if(this.domOrder){var n=[];e.forEach(function(e){var r=t.cellComps[e.getInstanceId()];r&&n.push(r.getGui())}),ur(this.getGui(),n)}},t.prototype.newCellComp=function(e){var t=new uc(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=w(this.cellComps).filter(function(e){return null!=e});this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var t=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){t.fullWidthCellRenderer=t.beans.context.destroyBean(t.fullWidthCellRenderer)})},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var t=this;e.forEach(function(e){if(e){var n=e.getCtrl().getInstanceId();t.cellComps[n]===e&&(e.detach(),e.destroy(),t.cellComps[n]=null)}})},t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fc=function(){return fc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fc.apply(this,arguments)},gc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},mc=function(e){function t(){var t=e.call(this,function(){var e=no.elementGettingCreated.getAttribute("name"),t=$l.getRowContainerCssClasses(e),n=e===hl.CENTER,r=e===hl.TOP_CENTER||e===hl.STICKY_TOP_CENTER||e===hl.BOTTOM_CENTER;return n?'<div class="'+t.wrapper+'" ref="eWrapper" role="presentation">\n                <div class="'+t.viewport+'" ref="eViewport" role="presentation">\n                    <div class="'+t.container+'" ref="eContainer"></div>\n                </div>\n            </div>':r?'<div class="'+t.viewport+'" ref="eViewport" role="presentation">\n                <div class="'+t.container+'" ref="eContainer"></div>\n            </div>':'<div class="'+t.container+'" ref="eContainer"></div>'}())||this;return t.rowComps={},t.name=no.elementGettingCreated.getAttribute("name"),t.type=Vl(t.name),t}return hc(t,e),t.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 $l(this.name)).setComp(t,this.eContainer,this.eViewport,this.eWrapper)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var t=this,n=fc({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,e.forEach(function(e){var r=e.getInstanceId(),o=n[r];if(o)t.rowComps[r]=o,delete n[r],t.ensureDomOrder(o.getGui());else{var i=new pc(e,t.beans,t.type);t.rowComps[r]=i,t.appendRow(i.getGui())}}),w(n).forEach(function(e){t.eContainer.removeChild(e.getGui()),e.destroy()}),Ft(this.eContainer,e.length?"rowgroup":"presentation")},t.prototype.appendRow=function(e){this.domOrder?dr(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(cr(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},gc([$("beans")],t.prototype,"beans",void 0),gc([oo("eViewport")],t.prototype,"eViewport",void 0),gc([oo("eContainer")],t.prototype,"eContainer",void 0),gc([oo("eWrapper")],t.prototype,"eWrapper",void 0),gc([G],t.prototype,"postConstruct",null),gc([W],t.prototype,"preDestroy",null),t}(no),vc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yc=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.gridOptionsService.is("functionsReadOnly")){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?pa.ICON_PINNED:pa.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")},vc([$("columnModel")],e.prototype,"columnModel",void 0),vc([$("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e}(),Ac=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wc=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=e,this.eContainer=t,this.centerContainer=!o(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?pa.ICON_PINNED:pa.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns;if(e.dragSource.type===mi.ToolPanel)this.setColumnsVisible(t,!0,"uiColumnDragged");else{var n=e.dragItem.visibleState,r=(t||[]).filter(function(e){return n[e.getId()]});this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(t,this.pinned,"uiColumnDragged"),this.onDragging(e,!0,!0)},e.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n="api"),e){var r=e.filter(function(e){return!e.getColDef().lockVisible});this.columnModel.setColumnsVisible(r,t,n)}},e.prototype.setColumnsPinned=function(e,t,n){if(void 0===n&&(n="api"),e){var r=e.filter(function(e){return!e.getColDef().lockPinned});this.columnModel.setColumnsPinned(r,t,n)}},e.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.normaliseX=function(e){return this.gridOptionsService.is("enableRtl")&&(e=this.eContainer.clientWidth-e),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.gridOptionsService.is("enableRtl")?(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,n,r){var o,a=this;if(void 0===e&&(e=this.lastDraggingEvent),void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),r){if(this.lastMovedInfo){var s=this.lastMovedInfo,l=s.columns,c=s.toIndex;this.moveColumns(l,c,"uiColumnMoved",!0)}}else if(this.lastDraggingEvent=e,!i(e.hDirection)){var u=this.normaliseX(e.x);t||this.checkCenterForScrolling(u);var d=this.normaliseDirection(e.hDirection),p=e.dragSource.type,h=(null===(o=e.dragSource.getDragItem().columns)||void 0===o?void 0:o.filter(function(e){return!e.getColDef().lockPinned||e.getPinned()==a.pinned}))||[];this.attemptMoveColumns({dragSourceType:p,allMovingColumns:h,hDirection:d,mouseX:u,fromEnter:t,fakeEvent:n})}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsService.is("enableRtl"))return e;switch(e){case yi.Left:return yi.Right;case yi.Right:return yi.Left;default:console.error("AG Grid: Unknown direction "+e)}},e.prototype.attemptMoveColumns=function(e){var t=e.dragSourceType,n=e.hDirection,r=e.mouseX,o=e.fromEnter,i=e.fakeEvent,a=n===yi.Left,s=n===yi.Right,l=e.allMovingColumns;if(t===mi.HeaderCell){var c=[];l.forEach(function(e){for(var t=null,n=e.getParent();null!=n&&1===n.getDisplayedLeafColumns().length;)t=n,n=n.getParent();null!=t?t.getLeafColumns().forEach(function(e){c.includes(e)||c.push(e)}):c.includes(e)||c.push(e)}),l=c}var u=l.slice();this.columnModel.sortColumnsLikeGridColumns(u);var d=this.calculateValidMoves(u,s,r),p=this.calculateOldIndex(u);if(0!==d.length){var h=d[0],f=null!==p&&!o;if(t==mi.HeaderCell&&(f=null!==p),f&&!i){if(a&&h>=p)return;if(s&&h<=p)return}for(var g=this.columnModel.getAllDisplayedColumns(),m=[],v=null,y=0;y<d.length;y++){var A=d[y],w=this.columnModel.getProposedColumnOrder(u,A);if(this.columnModel.doesOrderPassRules(w)){var b=w.filter(function(e){return g.includes(e)});if(null===v)v=b;else if(!Gr.areEqual(b,v))break;var _=this.groupFragCount(w);m.push({move:A,fragCount:_})}}0!==m.length&&(m.sort(function(e,t){return e.fragCount-t.fragCount}),this.moveColumns(l,m[0].move,"uiColumnMoved",!1))}},e.prototype.calculateOldIndex=function(e){var t=this.columnModel.getAllGridColumns(),n=pe(e.map(function(e){return t.indexOf(e)})),r=n[0];return ue(n)-r!==n.length-1?null:r},e.prototype.moveColumns=function(e,t,n,r){this.columnModel.moveColumns(e,t,n,r),this.lastMovedInfo=r?null:{columns:e,toIndex:t}},e.prototype.groupFragCount=function(e){function t(e){for(var t=[],n=e.getOriginalParent();null!=n;)t.push(n),n=n.getOriginalParent();return t}for(var n=0,r=function(r){var o,i=t(e[r]),a=t(e[r+1]);i=(o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(i.length>a.length?[i,a]:[a,i],2))[0],a=o[1],i.forEach(function(e){-1===a.indexOf(e)&&n++})},o=0;o<e.length-1;o++)r(o);return n},e.prototype.calculateValidMoves=function(e,t,n){if(this.gridOptionsService.is("suppressMovableColumns")||e.some(function(e){return e.getColDef().suppressMovable}))return[];var r,o=this.columnModel.getDisplayedColumns(this.pinned),i=this.columnModel.getAllGridColumns(),a=o.filter(function(t){return ve(e,t)}),s=o.filter(function(t){return!ve(e,t)}),l=i.filter(function(t){return!ve(e,t)}),c=0,u=n;if(t){var d=0;a.forEach(function(e){return d+=e.getActualWidth()}),u-=d}if(u>0){for(var p=0;p<s.length&&!((u-=s[p].getActualWidth())<0);p++)c++;t&&c++}if(c>0){var h=s[c-1];r=l.indexOf(h)+1}else-1===(r=l.indexOf(s[0]))&&(r=0);var f=[r],g=function(e,t){return e-t};if(t){for(var m=r+1,v=i.length-1;m<=v;)f.push(m),m++;f.sort(g)}else{m=r,v=i.length-1;for(var y=i[m];m<=v&&this.isColumnHidden(o,y);)m++,f.push(m),y=i[m];for(m=r-1;m>=0;)f.push(m),m--;f.sort(g).reverse()}return f},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(pa.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(pa.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(pa.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var r=this.lastDraggingEvent.dragItem.columns.filter(function(e){return!e.getColDef().lockPinned});if(r.length>0&&(this.dragAndDropService.setGhostIcon(pa.ICON_PINNED),this.failedMoveAttempts>7)){var o=this.needToMoveLeft?"left":"right";this.setColumnsPinned(r,o,"uiColumnDragged"),this.dragAndDropService.nudge()}}},Ac([$("columnModel")],e.prototype,"columnModel",void 0),Ac([$("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Ac([$("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Ac([$("ctrlsService")],e.prototype,"ctrlsService",void 0),Ac([G],e.prototype,"init",null),e}(),bc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_c=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cc=function(e){function t(t,n){var r=e.call(this)||this;return r.pinned=t,r.eContainer=n,r}return bc(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){switch(e.pinned){case"left":e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case"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()]]}})},t.prototype.isInterestedIn=function(e){return e===mi.HeaderCell||e===mi.ToolPanel&&this.gridOptionsService.is("allowDragFromColumnsToolPanel")},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new wc(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new yc(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===mi.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},_c([$("dragAndDropService")],t.prototype,"dragAndDropService",void 0),_c([$("columnModel")],t.prototype,"columnModel",void 0),_c([$("ctrlsService")],t.prototype,"ctrlsService",void 0),_c([G],t.prototype,"postConstruct",null),_c([G],t.prototype,"init",null),t}(Le),Ec=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Sc=function(){function e(){}return e.getHeaderClassesFromColDef=function(e,t,n,r){return i(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,n,r)},e.getToolPanelClassesFromColDef=function(e,t,n,r){return i(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,n,r)},e.getClassParams=function(e,t,n,r){return{colDef:e,column:n,columnGroup:r,api:t.api,columnApi:t.columnApi,context:t.context}},e.getColumnClassesFromCollDef=function(e,t,n,r,o){return i(e)?[]:"string"==typeof(a="function"==typeof e?e(this.getClassParams(t,n,r,o)):e)?[a]:Array.isArray(a)?function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ec(arguments[t]));return e}(a):[];var a},e}(),Oc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Dc=function(e){function t(n){var r=e.call(this,t.TEMPLATE,n)||this;return r.headerCompVersion=0,r.column=n.getColumnGroupChild(),r.pinned=n.getPinned(),r}return Oc(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n,r){var o=r||t;null!=n&&""!=n?o.setAttribute(e,n):o.removeAttribute(e)},r={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setColId:function(e){return n("col-id",e)},setTitle:function(e){return n("title",e)},setAriaDescription:function(e){return Ut(t,e)},setAriaSort:function(e){return e?tn(t,e):nn(t)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(r,this.getGui(),this.eResize,this.eHeaderCompWrapper);var o=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",o)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.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.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):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 ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>\n        </div>',xc([oo("eResize")],t.prototype,"eResize",void 0),xc([oo("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),xc([G],t.prototype,"postConstruct",null),xc([W],t.prototype,"destroyHeaderComp",null),t}(ws),Pc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Tc=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return Pc(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n){return null!=n?t.setAttribute(e,n):t.removeAttribute(e)},r={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setResizableDisplayed:function(t){return zn(e.eResize,t)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute("col-id",e)},setAriaExpanded:function(e){return n("aria-expanded",e)},setTitle:function(e){return n("title",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(r,t,this.eResize)},t.prototype.setUserCompDetails=function(e){var t=this;e.newAgStackInstance().then(function(e){return t.afterHeaderCompCreated(e)})},t.prototype.afterHeaderCompCreated=function(e){var t=this,n=function(){return t.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(e.getGui())):n()},t.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n            <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n        </div>',Mc([$("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Mc([oo("eResize")],t.prototype,"eResize",void 0),Mc([G],t.prototype,"postConstruct",null),t}(ws),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ic=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e.COLUMN_GROUP="group",e.COLUMN="column",e.FLOATING_FILTER="filter"}(Hl||(Hl={}));var Fc,kc=function(e){function t(t){var n=e.call(this)||this;n.headerComps={};var r=t.getType()==Hl.COLUMN_GROUP?"ag-header-row-column-group":t.getType()==Hl.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return n.setTemplate('<div class="ag-header-row '+r+'" role="row"></div>'),n.ctrl=t,n}return Rc(t,e),t.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 Xt(e.getGui(),t)}};this.ctrl.setComp(t)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},t.prototype.setHeaderCtrls=function(e){var t=this;if(this.isAlive()){var n=this.headerComps;this.headerComps={},e.forEach(function(e){var r=e.getInstanceId(),o=n[r];delete n[r],null==o&&(o=t.createHeaderComp(e),t.getGui().appendChild(o.getGui())),t.headerComps[r]=o}),h(n,function(e,n){t.getGui().removeChild(n.getGui()),t.destroyBean(n)});var r=this.gridOptionsService.is("ensureDomOrder"),o=this.gridOptionsService.isDomLayout("print");if(r||o){var i=w(this.headerComps);i.sort(function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()});var a=i.map(function(e){return e.getGui()});ur(this.getGui(),a)}}},t.prototype.createHeaderComp=function(e){var t;switch(this.ctrl.getType()){case Hl.COLUMN_GROUP:t=new Tc(e);break;case Hl.FLOATING_FILTER:t=new Cs(e);break;default:t=new Dc(e)}return this.createBean(t),t.setParentComponent(this),t},Ic([G],t.prototype,"init",null),Ic([W],t.prototype,"destroyHeaderCtrls",null),t}(no),Lc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Nc=0,jc=function(e){function t(t,n){var r=e.call(this)||this;return r.lastFocusEvent=null,r.columnGroupChild=t,r.parentRowCtrl=n,r.instanceId=t.getUniqueId()+"-"+Nc++,r}return Lc(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),n=t.headerRowIndex,r=t.column;return Rr(this.gridOptionsService,e,n,r)},t.prototype.getWrapperHasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.handleKeyDown=function(e){var t=this.getWrapperHasFocus();switch(e.key){case Pr.PAGE_DOWN:case Pr.PAGE_UP:case Pr.PAGE_HOME:case Pr.PAGE_END:t&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,n=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,n,this),this.addDestroyFunc(function(){return e.gridOptionsService.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",Bc([$("focusService")],t.prototype,"focusService",void 0),Bc([$("beans")],t.prototype,"beans",void 0),Bc([$("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vc=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=n,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=o,i.beans=r,i}return Uc(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.is("enableRtl")&&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.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsService.is("suppressColumnMoveAnimation"),t=o(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),n=t.getLeft(),r=t.getOldLeft(),o=this.modifyLeftForPrintLayout(t,r),i=this.modifyLeftForPrintLayout(t,n);this.setLeft(o),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===i&&e.setLeft(i)})},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){if(!this.beans.gridOptionsService.isDomLayout("print"))return t;if("left"===e.getPinned())return t;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===e.getPinned()?n+this.beans.columnModel.getBodyContainerWidth()+t:n+t},t.prototype.setLeft=function(e){var t;if(o(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&&en(this.ariaEl,n.length),t=n[0]}var r=this.beans.columnModel.getAriaColumnIndex(t);Jt(this.ariaEl,r)},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([G],t.prototype,"postConstruct",null),t}(Le),Hc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wc=function(e){function t(t,n){var r=e.call(this)||this;return r.columns=t,r.element=n,r}return Hc(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.is("columnHoverHighlight")&&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)},Gc([$("columnHoverService")],t.prototype,"columnHoverService",void 0),Gc([G],t.prototype,"postConstruct",null),t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$c=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kc=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.column=t,r}return zc(t,e),t.prototype.setComp=function(t,n,r,o){e.prototype.setGui.call(this,n),this.comp=t,this.eButtonShowMainFilter=r,this.eFloatingFilterBody=o;var i=this.column.getColDef(),a=!!i.filter||!!i.filterFramework,s=!!i.floatingFilter;this.active=a&&s,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.active&&this.addManagedListener(this.column,ae.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this))},t.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=xr("filter",this.gridOptionsService,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new vo(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.gridOptionsService.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(t){e.prototype.handleKeyDown.call(this,t);var n=this.getWrapperHasFocus();switch(t.key){case Pr.UP:case Pr.DOWN:n||t.preventDefault();case Pr.LEFT:case Pr.RIGHT:if(n)return;t.stopPropagation();case Pr.ENTER:n&&this.focusService.focusInto(this.eGui)&&t.preventDefault();break;case Pr.ESCAPE:n||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&&Qn(e.relatedTarget,"ag-floating-filter");if(t&&n&&e.target===this.eGui){var r=this.lastFocusEvent,o=!(!r||r.key!==Pr.TAB);if(r&&o){var i=r.shiftKey;this.focusService.focusInto(this.eGui,i)}}var a=this.getRowIndex();this.beans.focusService.setFocusedHeader(a,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Wc([this.column],this.eGui));var t=function(){if(e.gridOptionsService.is("columnHoverHighlight")){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 Vc(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.column.getColDef();this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var n=this.filterManager.getFloatingFilterCompDetails(this.column,function(){return e.showParentFilter()});n&&this.comp.setCompDetails(n)}},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var t=function(t){var n=e.comp.getFloatingFilterComp();if(n){var r=e.filterManager.getCurrentFloatingFilterParentModel(e.column);n.then(function(e){e&&e.onParentModelChanged(r,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()},t.prototype.updateFilterButton=function(){!this.suppressFilterButton&&this.comp&&this.comp.setButtonWrapperDisplayed(this.filterManager.isFilterAllowed(this.column))},$c([$("filterManager")],t.prototype,"filterManager",void 0),$c([$("columnHoverService")],t.prototype,"columnHoverService",void 0),$c([$("menuFactory")],t.prototype,"menuFactory",void 0),t}(jc),Qc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yc=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a.pinned=t,a.column=n,a.eResize=r,a.comp=o,a.ctrl=i,a}return Qc(t,e),t.prototype.postConstruct=function(){var e,t,n=this,r=this.column.getColDef(),o=[],i=function(){o.forEach(function(e){return e()}),o.length=0},a=function(){var a=n.column.isResizable(),s=!n.gridOptionsService.is("suppressAutoSize")&&!r.suppressAutoSize;(a!==e||s!==t)&&(e=a,t=s,i(),function(){if(zn(n.eResize,e),e){var r=n.horizontalResizeService.addResizeBar({eResizeBar:n.eResize,onResizeStart:n.onResizeStart.bind(n),onResizing:n.onResizing.bind(n,!1),onResizeEnd:n.onResizing.bind(n,!0)});if(o.push(r),t){var i=n.gridOptionsService.is("skipHeaderOnAutoSize"),a=function(){n.columnModel.autoSizeColumn(n.column,i,"uiColumnResized")};n.eResize.addEventListener("dblclick",a);var s=new Ii(n.eResize);s.addEventListener(Ii.EVENT_DOUBLE_TAP,a),n.addDestroyFunc(function(){n.eResize.removeEventListener("dblclick",a),s.removeEventListener(Ii.EVENT_DOUBLE_TAP,a),s.destroy()})}}}())};a(),this.addDestroyFunc(i),this.ctrl.addRefreshFunction(a)},t.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),r=[{key:this.column,newWidth:this.resizeStartWidth+n}];this.columnModel.setColumnWidths(r,this.resizeWithShiftKey,e,"uiColumnResized"),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="left"!==this.pinned,r="right"===this.pinned;return this.gridOptionsService.is("enableRtl")?n&&(t*=-1):r&&(t*=-1),t},qc([$("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),qc([$("columnModel")],t.prototype,"columnModel",void 0),qc([G],t.prototype,"postConstruct",null),t}(Le),Xc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Jc=function(e){function t(t){var n=e.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.column=t;var r=t.getColDef();return n.filteredOnly=!!(null==r?void 0:r.headerCheckboxSelectionFilteredOnly),n.currentPageOnly=!!(null==r?void 0:r.headerCheckboxSelectionCurrentPageOnly),n}return Xc(t,e),t.prototype.onSpaceKeyPressed=function(e){var t=this.cbSelectAll,n=this.gridOptionsService.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 Ho),this.cbSelectAll.addCssClass("ag-header-select-all"),Ft(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_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Ho.EVENT_CHANGED,this.onCbSelectAll.bind(this)),Wt(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.selectionService.getSelectAllState(this.filteredOnly,this.currentPageOnly);this.cbSelectAll.setValue(e),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.localeService.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+")"),this.cbSelectAll.setInputAriaLabel(n+" ("+t+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.checkRightRowModelType=function(e){var t=this.rowModel.getType();return!("clientSide"!==t&&"serverSide"!==t&&(console.warn("AG Grid: "+e+" is only available if using 'clientSide' or 'serverSide' rowModelType, you are using "+t+"."),1))},t.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue(),t="uiSelectAll";this.currentPageOnly?t="uiSelectAllCurrentPage":this.filteredOnly&&(t="uiSelectAllFiltered");var n={source:t,justFiltered:this.filteredOnly,justCurrentPage:this.currentPageOnly};e?this.selectionService.selectAllRowNodes(n):this.selectionService.deselectAllRowNodes(n)}},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;return"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsService.context})),!!e&&this.checkRightRowModelType("headerCheckboxSelection")},Zc([$("gridApi")],t.prototype,"gridApi",void 0),Zc([$("columnApi")],t.prototype,"columnApi",void 0),Zc([$("rowModel")],t.prototype,"rowModel",void 0),Zc([$("selectionService")],t.prototype,"selectionService",void 0),t}(Le),eu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},nu=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.refreshFunctions=[],r.userHeaderClasses=new Set,r.ariaDescriptionProperties=new Map,r.column=t,r}return eu(t,e),t.prototype.setComp=function(t,n,r,o){var i=this;e.prototype.setGui.call(this,n),this.comp=t,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(o),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new Yc(this.getPinned(),this.column,r,t,this)),this.createManagedBean(new Wc([this.column],n)),this.createManagedBean(new Vc(this.column,n,this.beans)),this.createManagedBean(new vo(n,{shouldStopEventPropagation:function(e){return i.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,ae.EVENT_COL_DEF_CHANGED,this.onColDefChanged.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)),this.addManagedListener(this.eventService,Ve.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)},t.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.gridOptionsService.context,eGridHeader:this.getGui()}},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new Jc(this.column)),this.selectAllFeature.setComp(this)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t),t.key===Pr.SPACE&&this.selectAllFeature.onSpaceKeyPressed(t),t.key===Pr.ENTER&&this.onEnterKeyPressed(t)},t.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")}},t.prototype.isMenuEnabled=function(){return this.menuEnabled},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column)}this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.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 Zs(t,this.beans));n.setComp(this.comp),this.refreshFunctions.push(function(){return n.refreshToolTip()})},t.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var t=e.column.getColDef(),n=Sc.getHeaderClassesFromColDef(t,e.gridOptionsService,e.column,null),r=e.userHeaderClasses;e.userHeaderClasses=new Set(n),n.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()},t.prototype.setDragSource=function(e){var t=this;if(this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable){var n=!this.gridOptionsService.is("suppressDragLeaveHidesColumns");this.moveDragSource={type:mi.HeaderCell,eElement:e,defaultIconName:n?pa.ICON_HIDE:pa.ICON_NOT_ALLOWED,getDragItem:function(){return t.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return t.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return t.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(e){var r;if(n){var o=(null===(r=null==e?void 0:e.columns)||void 0===r?void 0:r.filter(function(e){return!e.getColDef().lockVisible}))||[];t.columnModel.setColumnsVisible(o,!0,"uiColumnMoved")}},onGridExit:function(e){var r;if(n){var o=(null===(r=null==e?void 0:e.columns)||void 0===r?void 0:r.filter(function(e){return!e.getColDef().lockVisible}))||[];t.columnModel.setColumnsVisible(o,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},t.prototype.onColDefChanged=function(){this.refresh()},t.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()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach(function(e){return e()})},t.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)},t.prototype.attemptHeaderCompRefresh=function(e){var t=this.comp.getUserCompInstance();return!!t&&!!t.refresh&&t.refresh(e)},t.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!(this.gridOptionsService.is("suppressMovableColumns")||e.suppressMovable||e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth();e.comp.setWidth(t+"px")};this.addManagedListener(this.column,ae.EVENT_WIDTH_CHANGED,t),t()},t.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()},t.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()},t.prototype.setupSortableClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};t(),this.addRefreshFunction(t),this.addManagedListener(this.eventService,ae.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupWrapTextClass=function(){var e=this,t=function(){var t=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",t)};t(),this.addRefreshFunction(t)},t.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},t.prototype.refreshSpanHeaderHeight=function(){var e=this,t=e.eGui,n=e.column,r=e.comp,o=e.columnModel,i=e.gridOptionsService;if(n.isSpanHeaderHeight()){var a=this.getColumnGroupPaddingInfo(),s=a.numberOfParents,l=a.isSpanningTotal;if(r.addOrRemoveCssClass("ag-header-span-height",s>0),0!==s){r.addOrRemoveCssClass("ag-header-span-total",l);var c=i.is("pivotMode")?o.getPivotGroupHeaderHeight():o.getGroupHeaderHeight(),u=o.getColumnHeaderRowHeight(),d=s*c;t.style.setProperty("top",-d+"px"),t.style.setProperty("height",u+d+"px")}}},t.prototype.getColumnGroupPaddingInfo=function(){var e=this.column.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var t=e.getPaddingLevel()+1,n=!0;e;){if(!e.isPadding()){n=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:n}},t.prototype.setupAutoHeight=function(e){var t,n=this,r=function(t){if(n.isAlive()){var o=qn(n.getGui()),i=o.paddingTop+o.paddingBottom+o.borderBottomWidth+o.borderTopWidth,a=e.offsetHeight+i;if(t<5){var s=n.beans.gridOptionsService.getDocument();if(!s||!s.contains(e)||0==a)return void n.beans.frameworkOverrides.setTimeout(function(){return r(t+1)},0)}n.columnModel.setColumnHeaderHeight(n.column,a)}},o=!1,i=function(){var e=n.column.isSpanHeaderHeight(),t=n.column.isAutoHeaderHeight();e?(s(),t&&x(function(){return console.warn("AG Grid: The properties `spanHeaderHeight` and `autoHeaderHeight` cannot be used together in the same column.")},"HeaderCellCtrl.spanHeaderHeightAndAutoHeaderHeight")):(t&&!o&&a(),!t&&o&&s())},a=function(){o=!0,r(0),n.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),t=n.resizeObserverService.observeResize(e,function(){return r(0)})},s=function(){o=!1,t&&t(),n.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),t=void 0};i(),this.addDestroyFunc(function(){return s()}),this.addManagedListener(this.column,ae.EVENT_WIDTH_CHANGED,function(){return o&&r(0)}),this.addManagedListener(this.eventService,ae.EVENT_SORT_CHANGED,function(){o&&n.beans.frameworkOverrides.setTimeout(function(){return r(0)})}),this.addRefreshFunction(i)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.localeService.getLocaleTextFunc(),t=this.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(kt(t)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},t.prototype.setAriaDescriptionProperty=function(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)},t.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},t.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsService.is("columnHoverHighlight")){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.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()},t.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},t.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)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},tu([$("columnModel")],t.prototype,"columnModel",void 0),tu([$("columnHoverService")],t.prototype,"columnHoverService",void 0),tu([$("sortController")],t.prototype,"sortController",void 0),tu([$("menuFactory")],t.prototype,"menuFactory",void 0),tu([$("dragAndDropService")],t.prototype,"dragAndDropService",void 0),tu([$("resizeObserverService")],t.prototype,"resizeObserverService",void 0),tu([$("gridApi")],t.prototype,"gridApi",void 0),tu([$("columnApi")],t.prototype,"columnApi",void 0),tu([W],t.prototype,"removeDragSource",null),t}(jc),ru=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ou=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},iu=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.eResize=n,i.comp=t,i.pinned=r,i.columnGroup=o,i}return ru(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.gridOptionsService.is("suppressAutoSize")){var n=this.gridOptionsService.is("skipHeaderOnAutoSize");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("uiColumnResized")})}}else this.comp.setResizableDisplayed(!1)},t.prototype.onResizeStart=function(e){var t=this;this.calculateInitialValues();var n=null;if(e&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var r=n.getDisplayedLeafColumns();this.resizeTakeFromCols=r.filter(function(e){return e.isResizable()}),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach(function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()}),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach(function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)})}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,t,n){void 0===n&&(n="uiColumnResized");var r=this.normaliseDragChange(t),o=this.resizeStartWidth+r;this.resizeColumns(o,n,e)},t.prototype.resizeLeafColumnsToFit=function(e){var t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),t>this.resizeStartWidth&&this.resizeColumns(t,e,!0)},t.prototype.resizeColumns=function(e,t,n){void 0===n&&(n=!0);var r=[];if(r.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols){var o=e-this.resizeStartWidth;r.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-o})}this.columnModel.resizeColumnSets({resizeSets:r,finished:n,source:t}),n&&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.gridOptionsService.is("enableRtl")?"left"!==this.pinned&&(t*=-1):"right"===this.pinned&&(t*=-1),t},ou([$("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),ou([$("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),ou([$("columnModel")],t.prototype,"columnModel",void 0),ou([G],t.prototype,"postConstruct",null),t}(Le),au=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),su=function(e){function t(t,n){var r=e.call(this)||this;return r.removeChildListenersFuncs=[],r.columnGroup=n,r.comp=t,r}return au(t,e),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,ot.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("widthChanged",t),n.addEventListener("visibleChanged",t),e.removeChildListenersFuncs.push(function(){n.removeEventListener("widthChanged",t),n.removeEventListener("visibleChanged",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(){var e=this.columnGroup.getActualWidth();this.comp.setWidth(e+"px"),this.comp.addOrRemoveCssClass("ag-hidden",0===e)},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([G],t.prototype,"postConstruct",null),t}(Le),lu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uu=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.columnGroup=t,r}return lu(t,e),t.prototype.setComp=function(t,n,r){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 o=this.getParentRowCtrl().getPinned(),i=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Wc(i,n)),this.createManagedBean(new Vc(this.columnGroup,n,this.beans)),this.createManagedBean(new su(t,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new iu(t,r,o,this.columnGroup)),this.createManagedBean(new vo(n,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.resizeLeafColumnsToFit=function(e){var t,n;null===(t=this.groupResizeFeature)||void 0===t||t.onResizeStart(!1),null===(n=this.groupResizeFeature)||void 0===n||n.resizeLeafColumnsToFit(e)},t.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.gridOptionsService.context};if(!t){for(var r=this.columnGroup,o=r.getLeafColumns();r.getParent()&&r.getParent().getLeafColumns().length===o.length;)r=r.getParent();var i=r.getColGroupDef();i&&(t=i.headerName),t||(t=o?this.columnModel.getDisplayNameForColumn(o[0],"header",!0):"")}var a=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(a)},t.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 Zs(n,this.beans)).setComp(this.comp)},t.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,se.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,se.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.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)},t.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},t.prototype.addClasses=function(){var e=this,t=this.columnGroup.getColGroupDef(),n=Sc.getHeaderClassesFromColDef(t,this.gridOptionsService,null,this.columnGroup);this.columnGroup.isPadding()?(n.push("ag-header-group-cell-no-group"),this.columnGroup.getLeafColumns().every(function(e){return e.isSpanHeaderHeight()})&&n.push("ag-header-span-height")):n.push("ag-header-group-cell-with-group"),n.forEach(function(t){return e.comp.addOrRemoveCssClass(t,!0)})},t.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()},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.columnGroup)}},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t);var n=this.getWrapperHasFocus();if(this.expandable&&n&&t.key===Pr.ENTER){var r=this.columnGroup,o=!r.isExpanded();this.columnModel.setColumnGroupOpened(r.getProvidedColumnGroup(),o,"uiColumnExpanded")}},t.prototype.setDragSource=function(e){var t=this;if(!this.isSuppressMoving()){var n=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r=!this.gridOptionsService.is("suppressDragLeaveHidesColumns"),o={type:mi.HeaderCell,eElement:e,defaultIconName:r?pa.ICON_HIDE:pa.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return n.forEach(function(e){return e.setMoving(!0,"uiColumnDragged")})},onDragStopped:function(){return n.forEach(function(e){return e.setMoving(!1,"uiColumnDragged")})},onGridEnter:function(e){var n;if(r){var o=(null===(n=null==e?void 0:e.columns)||void 0===n?void 0:n.filter(function(e){return!e.getColDef().lockVisible}))||[];t.columnModel.setColumnsVisible(o,!0,"uiColumnMoved")}},onGridExit:function(e){var n;if(r){var o=(null===(n=null==e?void 0:e.columns)||void 0===n?void 0:n.filter(function(e){return!e.getColDef().lockVisible}))||[];t.columnModel.setColumnsVisible(o,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc(function(){return t.dragAndDropService.removeDragSource(o)})}},t.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),he(e,t))}),e.forEach(function(e){return n.push(e)}),{columns:n,visibleState:t}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach(function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)}),e||this.gridOptionsService.is("suppressMovableColumns")},cu([$("columnModel")],t.prototype,"columnModel",void 0),cu([$("dragAndDropService")],t.prototype,"dragAndDropService",void 0),cu([$("gridApi")],t.prototype,"gridApi",void 0),cu([$("columnApi")],t.prototype,"columnApi",void 0),t}(jc),du=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hu=0,fu=function(e){function t(t,n,r){var o=e.call(this)||this;return o.instanceId=hu++,o.headerCellCtrls={},o.rowIndex=t,o.pinned=n,o.type=r,o}return du(t,e),t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),gn()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_RESIZED,this.onColumnResized.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.eventService,Ve.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){return u(this.headerCellCtrls).find(function(t){return t.getColumnGroupChild()===e})},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},t.prototype.getWidthForRow=function(){return this.gridOptionsService.isDomLayout("print")?null!=this.pinned?0:this.columnModel.getContainerWidth("right")+this.columnModel.getContainerWidth("left")+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.columnModel.getHeaderRowCount(),t=[],n=0;this.columnModel.hasFloatingFilters()&&(e++,n=1);for(var r=this.columnModel.getColumnGroupHeaderRowHeight(),o=this.columnModel.getColumnHeaderRowHeight(),i=e-(1+n),a=0;a<i;a++)t.push(r);for(t.push(o),a=0;a<n;a++)t.push(this.columnModel.getFloatingFiltersHeight());var s=0;for(a=0;a<this.rowIndex;a++)s+=t[a];var l=t[this.rowIndex]+"px";this.comp.setTop(s+"px"),this.comp.setHeight(l)},t.prototype.getPinned=function(){return this.pinned},t.prototype.getRowIndex=function(){return this.rowIndex},t.prototype.onVirtualColumnsChanged=function(){var e=this,t=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach(function(n){if(!n.isEmptyGroup()){var r=n.getUniqueId(),o=t[r];if(delete t[r],o&&o.getColumnGroupChild()!=n&&(e.destroyBean(o),o=void 0),null==o)switch(e.type){case Hl.FLOATING_FILTER:o=e.createBean(new Kc(n,e));break;case Hl.COLUMN_GROUP:o=e.createBean(new uu(n,e));break;default:o=e.createBean(new nu(n,e))}e.headerCellCtrls[r]=o}}),h(t,function(t,n){var r;r=n,e.focusService.isHeaderWrapperFocused(r)&&e.columnModel.isDisplayed(r.getColumnGroupChild())?e.headerCellCtrls[t]=n:e.destroyBean(n)});var n=w(this.headerCellCtrls);this.comp.setHeaderCtrls(n)},t.prototype.getColumnsInViewport=function(){return this.gridOptionsService.isDomLayout("print")?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},t.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var t=[],n=this.getActualDepth();return["left",null,"right"].forEach(function(r){var o=e.columnModel.getVirtualHeaderGroupRow(r,n);t=t.concat(o)}),t},t.prototype.getActualDepth=function(){return this.type==Hl.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},t.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},t.prototype.focusHeader=function(e,t){var n=w(this.headerCellCtrls).find(function(t){return t.getColumnGroupChild()==e});return!!n&&(n.focus(t),!0)},t.prototype.destroy=function(){var t=this;h(this.headerCellCtrls,function(e,n){t.destroyBean(n)}),this.headerCellCtrls={},e.prototype.destroy.call(this)},pu([$("columnModel")],t.prototype,"columnModel",void 0),pu([$("focusService")],t.prototype,"focusService",void 0),t}(Le),gu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vu=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},yu=function(e){function t(t){var n=e.call(this)||this;return n.hidden=!1,n.groupsRowCtrls=[],n.pinned=t,n}return gu(t,e),t.prototype.setComp=function(e,t){this.comp=e,this.eViewport=t,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},t.prototype.setupDragAndDrop=function(e){var t=new Cc(this.pinned,e);this.createManagedBean(t)},t.prototype.refresh=function(e){var t=this;void 0===e&&(e=!1);var n,r,o=new Wr,i=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var e=t.columnModel.getHeaderRowCount()-1;t.groupsRowCtrls=t.destroyBeans(t.groupsRowCtrls);for(var n=0;n<e;n++){var r=t.createBean(new fu(o.next(),t.pinned,Hl.COLUMN_GROUP));t.groupsRowCtrls.push(r)}}(),n=o.next(),((r=!(t.hidden||null!=t.columnsRowCtrl&&e&&t.columnsRowCtrl.getRowIndex()===n))||t.hidden)&&(t.columnsRowCtrl=t.destroyBean(t.columnsRowCtrl)),r&&(t.columnsRowCtrl=t.createBean(new fu(n,t.pinned,Hl.COLUMN))),function(){var n=function(){t.filtersRowCtrl=t.destroyBean(t.filtersRowCtrl)};if(t.columnModel.hasFloatingFilters()&&!t.hidden){var r=o.next();if(t.filtersRowCtrl){var i=t.filtersRowCtrl.getRowIndex()!==r;e&&!i||n()}t.filtersRowCtrl||(t.filtersRowCtrl=t.createBean(new fu(r,t.pinned,Hl.FLOATING_FILTER)))}else n()}();var a=this.getAllCtrls();this.comp.setCtrls(a),this.restoreFocusOnHeader(i)},t.prototype.restoreFocusOnHeader=function(e){null!=e&&e.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})},t.prototype.getAllCtrls=function(){var e=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(vu(arguments[t]));return e}(this.groupsRowCtrls);return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},t.prototype.onGridColumnsChanged=function(){this.refresh(!0)},t.prototype.setupCenterWidth=function(){var e=this;null==this.pinned&&this.createManagedBean(new Bl(function(t){return e.comp.setCenterWidth(t+"px")},!0))},t.prototype.setHorizontalScroll=function(e){this.comp.setViewportScrollLeft(e)},t.prototype.setupPinnedWidth=function(){var e=this;if(null!=this.pinned){var t="left"===this.pinned,n="right"===this.pinned;this.hidden=!0;var r=function(){var r=t?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(null!=r){var o=0==r,i=e.hidden!==o,a=e.gridOptionsService.is("enableRtl"),s=e.gridOptionsService.getScrollbarWidth(),l=e.scrollVisibleService.isVerticalScrollShowing()&&(a&&t||!a&&n)?r+s:r;e.comp.setPinnedContainerWidth(l+"px"),e.comp.setDisplayed(!o),i&&(e.hidden=o,e.refresh())}};this.addManagedListener(this.eventService,Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,r),this.addManagedListener(this.eventService,Ve.EVENT_SCROLLBAR_WIDTH_CHANGED,r)}},t.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}},t.prototype.getHtmlElementForColumnHeader=function(e){var t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null},t.prototype.getRowType=function(e){var t=this.getAllCtrls()[e];return t?t.getType():void 0},t.prototype.focusHeader=function(e,t,n){var r=this.getAllCtrls()[e];return!!r&&r.focusHeader(t,n)},t.prototype.getRowCount=function(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)},t.prototype.destroy=function(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),e.prototype.destroy.call(this)},mu([$("ctrlsService")],t.prototype,"ctrlsService",void 0),mu([$("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),mu([$("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),mu([$("columnModel")],t.prototype,"columnModel",void 0),mu([$("focusService")],t.prototype,"focusService",void 0),t}(Le),Au=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bu=function(e){function t(t){var n=e.call(this)||this;return n.headerRowComps={},n.rowCompsList=[],n.pinned=t,n}return Au(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={setDisplayed:function(t){return e.setDisplayed(t)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setViewportScrollLeft:function(t){return e.getGui().scrollLeft=t},setPinnedContainerWidth:function(t){var n=e.getGui();n.style.width=t,n.style.maxWidth=t,n.style.minWidth=t}};this.createManagedBean(new yu(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e="left"==this.pinned,n="right"==this.pinned,r=e?t.PINNED_LEFT_TEMPLATE:n?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(r),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var t,n=this,r=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[],e.forEach(function(e){var o=e.getInstanceId(),i=r[o];delete r[o];var a=i||n.createBean(new kc(e));n.headerRowComps[o]=a,n.rowCompsList.push(a),function(e){var r=e.getGui();r.parentElement!=n.eRowContainer&&n.eRowContainer.appendChild(r),t&&cr(n.eRowContainer,r,t),t=r}(a)}),w(r).forEach(function(e){return n.destroyRowComp(e)})},t.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"></div>',t.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"></div>',t.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n            <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n        </div>',wu([oo("eCenterContainer")],t.prototype,"eCenterContainer",void 0),wu([G],t.prototype,"init",null),wu([W],t.prototype,"destroyRowComps",null),t}(no),_u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e[e.LEFT=2]="LEFT",e[e.RIGHT=3]="RIGHT"}(Fc||(Fc={}));var Eu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _u(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.gridBodyCon=t.gridBodyCtrl})},t.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},t.prototype.navigateVertically=function(e,t,n){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;var r=t.headerRowIndex,o=t.column,i=this.getHeaderRowCount(),a=e===Fc.UP?this.headerPositionUtils.getColumnVisibleParent(o,r):this.headerPositionUtils.getColumnVisibleChild(o,r),s=a.nextRow,l=a.nextFocusColumn,c=!1;return s<0&&(s=0,l=o,c=!0),s>=i&&(s=-1),!(!c&&!l)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:s,column:l},allowUserOverride:!0,event:n})},t.prototype.navigateHorizontally=function(e,t,n){void 0===t&&(t=!1);var r,o,i=this.focusService.getFocusedHeader();return e===Fc.LEFT!==this.gridOptionsService.is("enableRtl")?(o="Before",r=this.headerPositionUtils.findHeader(i,o)):(o="After",r=this.headerPositionUtils.findHeader(i,o)),r||!t?this.focusService.focusHeaderPosition({headerPosition:r,direction:o,fromTab:t,allowUserOverride:!0,event:n}):this.focusNextHeaderRow(i,o,n)},t.prototype.focusNextHeaderRow=function(e,t,n){var r,o=e.headerRowIndex,i=null;return"Before"===t?o>0&&(r=o-1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,"end")):(r=o+1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,"start")),this.focusService.focusHeaderPosition({headerPosition:i,direction:t,fromTab:!0,allowUserOverride:!0,event:n})},t.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var n;if(e instanceof ot){var r=e.getDisplayedLeafColumns();n="Before"===t?ue(r):r[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n)}},Cu([$("focusService")],t.prototype,"focusService",void 0),Cu([$("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),Cu([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Cu([G],t.prototype,"postConstruct",null),Cu([z("headerNavigationService")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ou=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Su(t,e),t.prototype.setComp=function(e,t,n){this.comp=e,this.eGui=t,this.createManagedBean(new vo(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.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},t.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListener("headerHeight",e),this.addManagedPropertyListener("pivotHeaderHeight",e),this.addManagedPropertyListener("groupHeaderHeight",e),this.addManagedPropertyListener("pivotGroupHeaderHeight",e),this.addManagedPropertyListener("floatingFiltersHeight",e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_GRID_STYLES_CHANGED,e)},t.prototype.getHeaderHeight=function(){return this.headerHeight},t.prototype.setHeaderHeight=function(){var e,t=this.columnModel,n=0,r=t.getHeaderRowCount();t.hasFloatingFilters()&&(r++,n=1);var o=this.columnModel.getColumnGroupHeaderRowHeight(),i=this.columnModel.getColumnHeaderRowHeight(),a=r-(1+n);if(e=n*t.getFloatingFiltersHeight(),e+=a*o,e+=i,this.headerHeight!==e){this.headerHeight=e;var s=e+1+"px";this.comp.setHeightAndMinHeight(s),this.eventService.dispatchEvent({type:Ve.EVENT_HEADER_HEIGHT_CHANGED})}},t.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.getAllDisplayedColumns().some(function(e){return e.isSpanHeaderHeight()});this.comp.addOrRemoveCssClass("ag-header-allow-overflow",e)},t.prototype.onTabKeyDown=function(e){var t=this.gridOptionsService.is("enableRtl"),n=e.shiftKey!==t?Fc.LEFT:Fc.RIGHT;(this.headerNavigationService.navigateHorizontally(n,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},t.prototype.handleKeyDown=function(e){var t=null;switch(e.key){case Pr.LEFT:t=Fc.LEFT;case Pr.RIGHT:o(t)||(t=Fc.RIGHT),this.headerNavigationService.navigateHorizontally(t,!1,e);break;case Pr.UP:t=Fc.UP;case Pr.DOWN:o(t)||(t=Fc.DOWN),this.headerNavigationService.navigateVertically(t,null,e)&&e.preventDefault();break;default:return}},t.prototype.onFocusOut=function(e){var t=this.gridOptionsService.getDocument(),n=e.relatedTarget;!n&&this.eGui.contains(t.activeElement)||this.eGui.contains(n)||this.focusService.clearFocusedHeader()},Ou([$("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Ou([$("focusService")],t.prototype,"focusService",void 0),Ou([$("columnModel")],t.prototype,"columnModel",void 0),Ou([$("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(Le),Du=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pu=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Du(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 xu).setComp(t,this.getGui(),this.getFocusableElement());var n=function(t){e.createManagedBean(t),e.appendChild(t)};n(new bu("left")),n(new bu(null)),n(new bu("right"))},t.TEMPLATE='<div class="ag-header" role="presentation"/>',function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([G],t.prototype,"postConstruct",null),t}(no),Mu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ru=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mu(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)};return this.dragService.addDragSource(n,!0),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)},Tu([$("dragService")],t.prototype,"dragService",void 0),Tu([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Tu([z("horizontalResizeService")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ku=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Iu(t,e),t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,function(r){n.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:r})},"columnMenu",t.target)},t.prototype.showMenuAfterButtonClick=function(e,t,n){var r=this;this.showPopup(e,function(o){r.popupService.positionPopupByComponent({type:n,eventSource:t,ePopup:o,keepWithinBounds:!0,position:"under",column:e})},n,t)},t.prototype.showPopup=function(e,t,n,r){var o=this,i=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");if(!i)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var a,s=document.createElement("div");Ft(s,"presentation"),s.classList.add("ag-menu"),this.tabListener=this.addManagedListener(s,"keydown",function(e){return o.trapFocusWithin(e,s)}),i.guiPromise.then(function(e){return s.appendChild(e)});var l=r||this.ctrlsService.getGridBodyCtrl().getGui(),c=this.localeService.getLocaleTextFunc(),u=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:function(t){e.setMenuVisible(!1,"contextMenu");var n,a=t instanceof KeyboardEvent;if(o.tabListener&&(o.tabListener=o.tabListener()),a&&r&&ir(r)){var s=o.focusService.findTabbableParent(r);s&&s.focus()}null===(n=i.filterPromise)||void 0===n||n.then(function(e){var t;return null===(t=null==e?void 0:e.afterGuiDetached)||void 0===t?void 0:t.call(e)})},positionCallback:function(){return t(s)},anchorToElement:l,ariaLabel:c("ariaLabelColumnMenu","Column Menu")});u&&(this.hidePopup=a=u.hideFunc),i.filterPromise.then(function(e){t(s),e.afterGuiAttached&&e.afterGuiAttached({container:n,hidePopup:a})}),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,t){e.key!==Pr.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()&&e.getMenuTabs(["filterMenuTab"]).includes("filterMenuTab")},Fu([$("filterManager")],t.prototype,"filterManager",void 0),Fu([$("popupService")],t.prototype,"popupService",void 0),Fu([$("focusService")],t.prototype,"focusService",void 0),Fu([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Fu([z("menuFactory")],t)}(Le),Lu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Nu=function(e){function t(n){var r=e.call(this,t.getTemplate(n.cssClass))||this;return r.items=[],r.tabbedItemScrollMap=new Map,r.params=n,n.items&&n.items.forEach(function(e){return r.addItem(e)}),r}return Lu(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new vo(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),this.addDestroyFunc(function(){var t,n,r;return null===(r=null===(n=null===(t=e.activeItem)||void 0===t?void 0:t.tabbedItem)||void 0===n?void 0:n.afterDetachedCallback)||void 0===r?void 0:r.call(n)})},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.gridOptionsService.getDocument();switch(e.key){case Pr.RIGHT:case Pr.LEFT:if(!this.eHeader.contains(t.activeElement))return;var n=e.key===Pr.RIGHT,r=this.gridOptionsService.is("enableRtl"),o=this.items.indexOf(this.activeItem),i=n!==r?Math.min(o+1,this.items.length-1):Math.max(o-1,0);if(o===i)return;e.preventDefault();var a=this.items[i];this.showItemWrapper(a),a.eHeaderButton.focus();break;case Pr.UP:case Pr.DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this,n=t.focusService,r=t.eHeader,o=t.eBody,i=t.activeItem,a=this.gridOptionsService.getDocument().activeElement,s=e.target;if(e.preventDefault(),r.contains(a))n.focusInto(o,e.shiftKey);else{var l=null;n.isTargetUnderManagedComponent(o,s)&&(e.shiftKey&&(l=this.focusService.findFocusableElementBeforeTabGuard(o,s)),l||(l=i.eHeaderButton)),!l&&o.contains(a)&&((l=n.findNextFocusableElement(o,!1,e.shiftKey))||(l=i.eHeaderButton)),l&&l.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");Ft(t,"tab"),t.setAttribute("tabIndex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eHeader.appendChild(t),Nt(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,n,r=this,o=e.tabbedItem,i=e.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:o}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),rr(this.eBody),o.bodyPromise.then(function(e){r.eBody.appendChild(e);var t=!r.focusService.isKeyboardMode();if(r.focusService.focusInto(r.eBody,!1,t),o.afterAttachedCallback&&o.afterAttachedCallback(r.afterAttachedParams),r.params.keepScrollPosition){var n=o.getScrollableContainer&&o.getScrollableContainer()||e;r.lastScrollListener=r.addManagedListener(n,"scroll",function(){r.tabbedItemScrollMap.set(o.name,n.scrollTop)});var i=r.tabbedItemScrollMap.get(o.name);void 0!==i&&setTimeout(function(){n.scrollTop=i},0)}}),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),null===(n=(t=this.activeItem.tabbedItem).afterDetachedCallback)||void 0===n||n.call(t)),i.classList.add("ag-tab-selected"),this.activeItem=e):N(this.params.onActiveItemClicked)},Bu([$("focusService")],t.prototype,"focusService",void 0),Bu([oo("eHeader")],t.prototype,"eHeader",void 0),Bu([oo("eBody")],t.prototype,"eBody",void 0),Bu([G],t.prototype,"postConstruct",null),t}(no);function ju(e){return x(function(){return console.warn("AG Grid: Since v29 simpleHttpRequest has been deprecated as it was only meant for use in internal AG Grid documentation examples. Please use the browser fetch api directly.")},"simpleHttpRequest"),new $r(function(t){var n=new XMLHttpRequest;n.open("GET",e.url),n.send(),n.onreadystatechange=function(){4===n.readyState&&200===n.status&&t(JSON.parse(n.responseText))}})}var Uu,Vu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.polyfillFunctions=[],t}return Vu(t,e),t.prototype.observeResize=function(e,t){var n,r,o,i,a,s=this,l=this.gridOptionsService.getDocument().defaultView||window,c=this.gridOptionsService.is("suppressBrowserResizeObserver");return l.ResizeObserver&&!c?((n=new l.ResizeObserver(t)).observe(e),function(){return n.disconnect()}):(r=lr(e),o=sr(e),i=!0,(a=function(){if(i){var n=lr(e),l=sr(e);(n!==r||l!==o)&&(r=n,o=l,t()),s.doNextPolyfillTurn(a)}})(),function(){return i=!1})},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;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))},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([z("resizeObserverService")],t)}(Le),Gu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zu=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.lastPage=0,t.lastScrollTop=0,t.taskCount=0,t.cancelledTasks=new Set,t}return Gu(t,e),t.prototype.setScrollTop=function(e){var t=this.gridOptionsService.is("pagination");if(this.scrollGoingDown=e>=this.lastScrollTop,t&&0===e){var n=this.paginationProxy.getCurrentPage();n!==this.lastPage&&(this.lastPage=n,this.scrollGoingDown=!0)}this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsService.is("suppressAnimationFrame")},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+e+" called but animation frames are off")},t.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var r={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],r),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort(function(e,n){return e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder}),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,n=t.list,r=this.createTasksP2,o=r.list,i=this.destroyTasks,a=(new Date).getTime(),s=(new Date).getTime()-a,l=e<=0,c=this.ctrlsService.getGridBodyCtrl();l||s<e;){if(!c.getScrollFeature().scrollGridIfNeeded()){var u=void 0;if(n.length)this.sortTaskList(t),u=n.pop().task;else if(o.length)this.sortTaskList(r),u=o.pop().task;else{if(!i.length){this.cancelledTasks.clear();break}u=i.pop()}this.cancelledTasks.has(u)||u()}s=(new Date).getTime()-a}n.length||o.length||i.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60),t=this.gridOptionsService.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)}},Wu([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Wu([$("paginationProxy")],t.prototype,"paginationProxy",void 0),Wu([G],t.prototype,"init",null),Wu([z("animationFrameService")],t)}(Le),$u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ku=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Qu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $u(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl})},t.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var r=this.rowRenderer.getAllCellsForColumn(e);return t||r.push(n),this.addElementsToContainerAndGetWidth(r)},t.prototype.getPreferredWidthForColumnGroup=function(e){var t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1},t.prototype.addElementsToContainerAndGetWidth=function(e){var t=this,n=document.createElement("form");n.style.position="fixed";var r=this.centerRowContainerCtrl.getContainerElement();r.appendChild(n),e.forEach(function(e){return t.cloneItemIntoDummy(e,n)});var o=n.offsetWidth;return r.removeChild(n),o+this.getAutoSizePadding()},t.prototype.getAutoSizePadding=function(){var e=this.gridOptionsService.getNum("autoSizePadding");return null!=e&&e>=0?e:20},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(n){var r=n.getHtmlElementForColumnHeader(e);null!=r&&(t=r)}),t},t.prototype.cloneItemIntoDummy=function(e,t){var n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var r=document.createElement("div"),o=r.classList;["ag-header-cell","ag-header-group-cell"].some(function(e){return n.classList.contains(e)})?(o.add("ag-header","ag-header-row"),r.style.position="static"):o.add("ag-row");for(var i=e.parentElement;i;){if(["ag-header-row","ag-row"].some(function(e){return i.classList.contains(e)})){for(var a=0;a<i.classList.length;a++){var s=i.classList[a];"ag-row-position-absolute"!=s&&o.add(s)}break}i=i.parentElement}r.appendChild(n),t.appendChild(r)},Ku([$("rowRenderer")],t.prototype,"rowRenderer",void 0),Ku([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Ku([$("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),Ku([G],t.prototype,"postConstruct",null),Ku([z("autoWidthCalculator")],t)}(Le),qu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xu=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Zu=function(e){function t(t,n){var r=e.call(this)||this;return r.createRowCon=t,r.destroyRowCtrls=n,r.stickyRowCtrls=[],r.containerHeight=0,r}return qu(t,e),t.prototype.postConstruct=function(){var e=this;this.isClientSide="clientSide"===this.rowModel.getType(),this.ctrlsService.whenReady(function(t){e.gridBodyCtrl=t.gridBodyCtrl})},t.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},t.prototype.checkStickyRows=function(){var e=this,t=0;if(this.gridOptionsService.is("groupRowsSticky")){for(var n=[],r=this.rowRenderer.getFirstVisibleVerticalPixel(),o=function(o){var i,a,s,l;if(n.push(o),e.isClientSide){for(var c=o;c.expanded;)if(c.master)c=c.detailNode;else if(c.childrenAfterSort){if(0===c.childrenAfterSort.length)break;c=ue(c.childrenAfterSort)}l=c.rowTop+c.rowHeight}else{var u=null===(i=o.childStore)||void 0===i?void 0:i.getStoreBounds();l=(null!==(a=null==u?void 0:u.heightPx)&&void 0!==a?a:0)+(null!==(s=null==u?void 0:u.topPx)&&void 0!==s?s:0)}var d=r+t+o.rowHeight;o.stickyRowTop=l<d?t+(l-d):t,t=0,n.forEach(function(e){var n=e.stickyRowTop+e.rowHeight;t<n&&(t=n)})};;){var i=r+t,a=this.rowModel.getRowIndexAtPixel(i),s=this.rowModel.getRow(a);if(null==s)break;if(s.level<0)break;for(var l=[],c=s.parent;c.level>=0;)l.push(c),c=c.parent;var u=l.reverse().find(function(e){return n.indexOf(e)<0&&e.displayed});if(u)o(u);else{if(!(s.isExpandable()&&s.expanded&&s.rowTop<i))break;o(s)}}this.refreshNodesAndContainerHeight(n,t)}else this.refreshNodesAndContainerHeight([],t)},t.prototype.refreshStickyNode=function(e){for(var t=[],n=0;n<this.stickyRowCtrls.length;n++){var r=this.stickyRowCtrls[n].getRowNode();r!==e&&t.push(r)}this.refreshNodesAndContainerHeight(t,this.containerHeight),this.checkStickyRows()},t.prototype.refreshNodesAndContainerHeight=function(e,t){var n,r,o,i=this,a=this.stickyRowCtrls.filter(function(t){return-1===e.indexOf(t.getRowNode())}),s=e.filter(function(e){return-1===i.stickyRowCtrls.findIndex(function(t){return t.getRowNode()===e})}),l={};a.forEach(function(e){l[e.getRowNode().id]=e,i.stickyRowCtrls=i.stickyRowCtrls.filter(function(t){return t!==e})});try{for(var c=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.values(l)),u=c.next();!u.done;u=c.next())u.value.getRowNode().sticky=!1}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}this.destroyRowCtrls(l,!1);var d=s.map(function(e){return e.sticky=!0,i.createRowCon(e,!1,!1)});(o=this.stickyRowCtrls).push.apply(o,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Xu(arguments[t]));return e}(d)),this.stickyRowCtrls.forEach(function(e){return e.setRowTop(e.getRowNode().stickyRowTop)}),this.stickyRowCtrls.sort(function(e,t){return t.getRowNode().rowIndex-e.getRowNode().rowIndex}),this.containerHeight!==t&&(this.containerHeight=t,this.gridBodyCtrl.setStickyTopHeight(t))},Yu([$("rowModel")],t.prototype,"rowModel",void 0),Yu([$("rowRenderer")],t.prototype,"rowRenderer",void 0),Yu([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Yu([G],t.prototype,"postConstruct",null),t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ed=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},td=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},nd=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(td(arguments[t]));return e},rd=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.dataFirstRenderedFired=!1,t}return Ju(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()})},t.prototype.initialise=function(){if(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.onBodyScroll.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedPropertyListener("domLayout",this.onDomLayoutChanged.bind(this)),this.addManagedPropertyListener("rowClass",this.redrawRows.bind(this)),this.gridOptionsService.is("groupRowsSticky")){var e=this.rowModel.getType();"clientSide"!=e&&"serverSide"!=e?x(function(){return console.warn("AG Grid: The feature Sticky Row Groups only works with the Client Side or Server Side Row Model")},"rowRenderer.stickyWorksWithCsrmOnly"):this.stickyRowFeature=this.createManagedBean(new Zu(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsService.isDomLayout("print"),this.embedFullWidthRows=this.printLayout||this.gridOptionsService.is("embedFullWidthRows"),this.redrawAfterModelUpdate()},t.prototype.initialiseCache=function(){if(this.gridOptionsService.is("keepDetailRows")){var e=this.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new od(t)}},t.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptionsService.getNum("keepDetailRowsCount");return o(e)&&e>0?e:10},t.prototype.getRowCtrls=function(){return this.allRowCtrls},t.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},t.prototype.updateAllRowCtrls=function(){var e=w(this.rowCtrlsByRowIndex),t=this.gridOptionsService.is("ensureDomOrder"),n=this.gridOptionsService.isDomLayout("print");(t||n)&&e.sort(function(e,t){return e.getRowNode().rowIndex-t.getRowNode.rowIndex});var r=w(this.zombieRowCtrls),o=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=nd(e,r,o)},t.prototype.onCellFocusChanged=function(e){this.getAllCellCtrls().forEach(function(t){return t.onCellFocused(e)}),this.getFullWidthRowCtrls().forEach(function(t){return t.onFullWidthRowFocused(e)})},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_CELL_FOCUSED,function(t){e.onCellFocusChanged(t)}),this.addManagedListener(this.eventService,Ve.EVENT_CELL_FOCUS_CLEARED,function(){e.onCellFocusChanged()}),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.gridOptionsService.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)})},r=function(){n(function(e){return e.onLeftChanged()})},o=function(){n(function(e){return e.onWidthChanged()})},i=function(){n(function(e){return e.onFirstRightPinnedChanged()})},a=function(){n(function(e){return e.onLastLeftPinnedChanged()})},s=function(){n(function(e){return e.onColDefChanged()})};t.addEventListener("leftChanged",r),t.addEventListener("widthChanged",o),t.addEventListener("firstRightPinnedChanged",i),t.addEventListener("lastLeftPinnedChanged",a),t.addEventListener("colDefChanged",s),e.destroyFuncsForColumnListeners.push(function(){t.removeEventListener("leftChanged",r),t.removeEventListener("widthChanged",o),t.removeEventListener("firstRightPinnedChanged",i),t.removeEventListener("lastLeftPinnedChanged",a),t.removeEventListener("colDefChanged",s)})})},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsService.isDomLayout("print"),t=e||this.gridOptionsService.is("embedFullWidthRows"),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate({domLayoutChanged:!0})},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.onPageLoaded=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getAllCellsForColumn=function(e){var t=[];return this.getAllRowCtrls().forEach(function(n){var r=n.getCellElement(e);r&&t.push(r)}),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},t.prototype.getTopRowCtrls=function(){return this.topRowCtrls},t.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},t.prototype.refreshFloatingRows=function(e,t){var n=this;e.forEach(function(e){e.destroyFirstPass(),e.destroySecondPass()}),e.length=0,t&&t.forEach(function(t){var r=new ml(t,n.beans,!1,!1,n.printLayout);e.push(r)})},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return i(e)||h(this.rowCtrlsByRowIndex,function(n,r){var o=r.getRowNode();e.indexOf(o)>=0&&t.push(n)}),t},t.prototype.redrawRows=function(e){var t=null!=e&&e.length>0;if(t){var n=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(n)}this.redrawAfterModelUpdate({recycleRows:t})},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=(null==e?void 0:e.suppressKeepFocus)?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==t)return null;var n=this.gridOptionsService.getDocument().activeElement,r=this.gridOptionsService.getDomData(n,ul.DOM_DATA_KEY_CELL_CTRL),o=this.gridOptionsService.getDomData(n,ml.DOM_DATA_KEY_ROW_CTRL);return r||o?t:null},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var n=!e.domLayoutChanged&&!!e.recycleRows,r=e.animate&&this.gridOptionsService.isAnimateRows(),o=n?this.recycleRows():null;n||this.removeAllRowComps(),this.redraw(o,r),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),null!=t&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsService.is("suppressScrollOnNewData");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.onCellFocusChanged({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,api:this.beans.gridApi,columnApi:this.beans.columnApi,context:this.beans.gridOptionsService.context,type:"mock"})},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach(function(t){t.stopEditing(e)})},t.prototype.getAllCellCtrls=function(){for(var e=[],t=this.getAllRowCtrls(),n=t.length,r=0;r<n;r++)for(var o=t[r].getAllCellCtrls(),i=o.length,a=0;a<i;a++)e.push(o[a]);return e},t.prototype.getAllRowCtrls=function(){var e,t,n=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],r=nd(this.topRowCtrls,this.bottomRowCtrls,n);try{for(var o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.keys(this.rowCtrlsByRowIndex)),i=o.next();!i.done;i=o.next()){var a=i.value;r.push(this.rowCtrlsByRowIndex[a])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r},t.prototype.addRenderedRowListener=function(e,t,n){var r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,n=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach(function(e){return e.flashCell({flashDelay:t,fadeDelay:n})})},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach(function(e){if(e.refreshShouldDestroy()){var n=e.getRowCtrl();n&&n.refreshCell(e)}else e.refreshCell(t)}),this.getFullWidthRowCtrls(e.rowNodes).forEach(function(e){e.refreshFullWidth()})},t.prototype.getCellRendererInstances=function(e){var t,n=this,r=this.getCellCtrls(e.rowNodes,e.columns).map(function(e){return e.getCellRenderer()}).filter(function(e){return null!=e});if(null===(t=e.columns)||void 0===t?void 0:t.length)return r;var o=[],i=this.mapRowNodes(e.rowNodes);return this.getAllRowCtrls().forEach(function(e){if((!i||n.isRowInMap(e.getRowNode(),i))&&e.isFullWidth()){var t=e.getFullWidthCellRenderer();t&&o.push(t)}}),nd(o,r)},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;"top"===e.rowPinned?t.top[n]=e:"bottom"===e.rowPinned?t.bottom[n]=e:t.normal[n]=e}),t}},t.prototype.isRowInMap=function(e,t){var n=e.id,r=e.rowPinned;return"bottom"===r?null!=t.bottom[n]:"top"===r?null!=t.top[n]:null!=t.normal[n]},t.prototype.getCellCtrls=function(e,t){var n,r=this,i=this.mapRowNodes(e),a=[];return o(t)&&(n={},t.forEach(function(e){var t=r.columnModel.getGridColumn(e);o(t)&&(n[t.getId()]=!0)})),this.getAllRowCtrls().forEach(function(e){return o=(t=e).getRowNode(),void((null==i||r.isRowInMap(o,i))&&t.getAllCellCtrls().forEach(function(e){var t=e.getColumn().getId();n&&!n[t]||a.push(e)}));var t,o}),a},t.prototype.destroy=function(){this.removeAllRowComps(),e.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.recycleRows=function(){var e=[];h(this.rowCtrlsByRowIndex,function(t,n){null==n.getRowNode().id&&e.push(t)}),this.removeRowCtrls(e);var t={};return h(this.rowCtrlsByRowIndex,function(e,n){var r=n.getRowNode();t[r.id]=n}),this.rowCtrlsByRowIndex={},t},t.prototype.removeRowCtrls=function(e){var t=this;e.forEach(function(e){var n=t.rowCtrlsByRowIndex[e];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete t.rowCtrlsByRowIndex[e]})},t.prototype.onBodyScroll=function(e){"vertical"===e.direction&&this.redrawAfterScroll()},t.prototype.redrawAfterScroll=function(){var e;if(this.stickyRowFeature&&bn()&&(e=this.getCellToRestoreFocusToAfterRefresh()||void 0),this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(),null!=e){var t=this.getCellToRestoreFocusToAfterRefresh();null!=e&&null==t&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(e))}},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=Tn(this.firstRenderedRow,this.lastRenderedRow),r=function(e,r){var o=r.getRowNode().rowIndex;null!=o&&(o<t.firstRenderedRow||o>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(r)&&n.push(o)};return h(this.rowCtrlsByRowIndex,r),h(e,r),n.sort(function(e,t){return e-t}),n=n.filter(function(e){var n=t.paginationProxy.getRow(e);return n&&!n.sticky})},t.prototype.redraw=function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows();var i=this.calculateIndexesToDraw(e);this.removeRowCompsNotToDraw(i),this.printLayout&&(t=!1),i.forEach(function(i){o(r.createOrUpdateRowCtrl(i,e,t,n))}),e&&(!n||this.gridOptionsService.is("suppressAnimationFrame")||this.printLayout?this.destroyRowCtrls(e,t):this.beans.animationFrameService.addDestroyTask(function(){r.destroyRowCtrls(e,t),r.updateAllRowCtrls(),r.dispatchDisplayedRowsChanged()})),this.updateAllRowCtrls()},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.getAllRowCtrls().filter(function(e){if(!e.isFullWidth())return!1;var r=e.getRowNode();return!(null!=n&&!t.isRowInMap(r,n))})},t.prototype.refreshFullWidthRow=function(e){var t=this.getFullWidthRowCtrls().find(function(t){return t.getRowNode()===e});t&&(t.refreshFullWidth()||(e.sticky?this.stickyRowFeature.refreshStickyNode(e):this.removeRowCtrls([e.rowIndex]),this.redrawAfterScroll()))},t.prototype.createOrUpdateRowCtrl=function(e,t,n,r){var i,a=this.rowCtrlsByRowIndex[e];if(a||o(i=this.paginationProxy.getRow(e))&&o(t)&&t[i.id]&&i.alreadyRendered&&(a=t[i.id],t[i.id]=null),!a){if(i||(i=this.paginationProxy.getRow(e)),!o(i))return;a=this.createRowCon(i,n,r)}return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=a,a},t.prototype.destroyRowCtrls=function(e,t){var n=this,r=[];h(e,function(e,o){o&&(n.cachedRowCtrls&&o.isCacheable()?n.cachedRowCtrls.addRow(o):(o.destroyFirstPass(),t?(n.zombieRowCtrls[o.getInstanceId()]=o,r.push(function(){o.destroySecondPass(),delete n.zombieRowCtrls[o.getInstanceId()]})):o.destroySecondPass()))}),t&&(r.push(function(){n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()}),M(r))},t.prototype.getRowBuffer=function(){var e=this.gridOptionsService.getNum("rowBuffer");return"number"==typeof e?e<0&&(x(function(){return console.warn("AG Grid: rowBuffer should not be negative")},"warn rowBuffer negative"),e=0,this.gridOptionsService.set("rowBuffer",0)):e=10,e},t.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.gridOptionsService.getRowHeightAsNumber()},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var n=this.getRowBufferInPixels(),r=this.ctrlsService.getGridBodyCtrl(),o=this.gridOptionsService.is("suppressRowVirtualisation"),i=!1,a=void 0,s=void 0;do{var l=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getCurrentPagePixelRange(),u=c.pageFirstPixel,d=c.pageLastPixel,p=this.rowContainerHeightService.getDivStretchOffset(),h=r.getScrollFeature().getVScrollPosition(),f=h.top,g=h.bottom;o?(a=u+p,s=d+p):(a=Math.max(f+l-n,u)+p,s=Math.min(g+l+n,d)+p),this.firstVisibleVPixel=Math.max(f+l,u)+p,i=this.ensureAllRowsInRangeHaveHeightsCalculated(a,s)}while(i);var m=this.paginationProxy.getRowIndexAtPixel(a),v=this.paginationProxy.getRowIndexAtPixel(s),y=this.paginationProxy.getPageFirstRow(),A=this.paginationProxy.getPageLastRow();m<y&&(m=y),v>A&&(v=A),e=m,t=v}else e=0,t=-1;var w=this.gridOptionsService.isDomLayout("normal"),b=this.gridOptionsService.is("suppressMaxRenderedRowRestriction"),_=Math.max(this.getRowBuffer(),500);w&&!b&&t-e>_&&(t=e+_);var C=e!==this.firstRenderedRow,E=t!==this.lastRenderedRow;if(C||E){this.firstRenderedRow=e,this.lastRenderedRow=t;var S={type:Ve.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t};this.eventService.dispatchEvent(S)}},t.prototype.dispatchFirstDataRenderedEvent=function(){var e=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var t={type:Ve.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame(function(){e.beans.eventService.dispatchEvent(t)})}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var n=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return n&&this.updateContainerHeights(),n},t.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),n=this.focusService.isRowNodeFocused(t),r=e.isEditing(),o=t.detail;return(n||r||o)&&!!this.paginationProxy.isRowPresent(t)||!1},t.prototype.createRowCon=function(e,t,n){var r=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(r)return r;var o=this.gridOptionsService.is("suppressAnimationFrame"),i=n&&!o&&!this.printLayout;return new ml(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,n=e.rowIndex;switch(e.rowPinned){case"top":t=this.topRowCtrls[n];break;case"bottom":t=this.bottomRowCtrls[n];break;default:(t=this.rowCtrlsByRowIndex[n])||(t=this.getStickyTopRowCtrls().find(function(e){return e.getRowNode().rowIndex===n})||null)}return t},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"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)},ed([$("animationFrameService")],t.prototype,"animationFrameService",void 0),ed([$("paginationProxy")],t.prototype,"paginationProxy",void 0),ed([$("columnModel")],t.prototype,"columnModel",void 0),ed([$("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ed([$("rowModel")],t.prototype,"rowModel",void 0),ed([$("focusService")],t.prototype,"focusService",void 0),ed([$("beans")],t.prototype,"beans",void 0),ed([$("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),ed([$("ctrlsService")],t.prototype,"ctrlsService",void 0),ed([G],t.prototype,"postConstruct",null),ed([z("rowRenderer")],t)}(Le),od=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],he(this.entriesList,e)},e.prototype.getEntries=function(){return this.entriesList},e}(),id=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ad=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return id(t,e),t.prototype.formatValue=function(e,t,n,r,o){void 0===o&&(o=!0);var i,a=null,s=e.getColDef();if(r?i=r:o&&(i=s.valueFormatter),i){var l={value:n,node:t,data:t?t.data:null,colDef:s,column:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};a="function"==typeof i?i(l):this.expressionService.evaluate(i,l)}else if(s.refData)return s.refData[n]||"";return null==a&&Array.isArray(n)&&(a=n.join(", ")),a},ad([$("expressionService")],t.prototype,"expressionService",void 0),ad([z("valueFormatterService")],t)}(Le),ld=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ud=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ld(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsService.get("pinnedTopRowData")),this.setPinnedBottomRowData(this.gridOptionsService.get("pinnedBottomRowData"))},t.prototype.isEmpty=function(e){return a("top"===e?this.pinnedTopRows:this.pinnedBottomRows)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var n="top"===t?this.pinnedTopRows:this.pinnedBottomRows;if(a(n))return 0;for(var r=0;r<n.length;r++){var o=n[r];if(o.rowTop+o.rowHeight-1>=e)return r}return n.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:Ve.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:Ve.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.createNodesFromData=function(e,t){var n=this,r=[];if(e){var o=0;e.forEach(function(e,i){var a=new ra(n.beans);a.data=e;var s=t?ra.ID_PREFIX_TOP_PINNED:ra.ID_PREFIX_BOTTOM_PINNED;a.id=s+i,a.rowPinned=t?"top":"bottom",a.setRowTop(o),a.setRowHeight(n.gridOptionsService.getRowHeightForNode(a).height),a.setRowIndex(i),o+=a.rowHeight,r.push(a)})}return r},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){a(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){a(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},cd([$("beans")],t.prototype,"beans",void 0),cd([G],t.prototype,"init",null),cd([z("pinnedRowModel")],t)}(Le);!function(e){e.Applied="Applied",e.StoreNotFound="StoreNotFound",e.StoreLoading="StoreLoading",e.StoreWaitingToLoad="StoreWaitingToLoad",e.StoreLoadingFailed="StoreLoadingFailed",e.StoreWrongType="StoreWrongType",e.Cancelled="Cancelled"}(Uu||(Uu={}));var dd,pd=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var n=0;n<e.children.length;n++)this.depthFirstSearchChangedPath(e.children[n],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,n){if(e.childrenAfterGroup)for(var r=0;r<e.childrenAfterGroup.length;r++){var o=e.childrenAfterGroup[r];o.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[r],t,n):n&&t(o)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.active&&!n?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,n=0;!this.mapToItems[t.id];){var r={rowNode:t,children:null};this.mapToItems[t.id]=r,n++,t=t.parent}return n},e.prototype.populateColumnsMap=function(e,t){var n=this;if(this.keepingColumns&&t)for(var r=e;r;)this.nodeIdsToColumns[r.id]||(this.nodeIdsToColumns[r.id]={}),t.forEach(function(e){return n.nodeIdsToColumns[r.id][e.getId()]=!0}),r=r.parent},e.prototype.linkPathItems=function(e,t){for(var n=e,r=0;r<t;r++){var o=this.mapToItems[n.id],i=this.mapToItems[n.parent.id];i.children||(i.children=[]),i.children.push(o),n=n.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var n=this.createPathItems(e);this.linkPathItems(e,n),this.populateColumnsMap(e,t)}},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var n=this.nodeIdsToColumns[e.id];return t.filter(function(e){return n[e.getId()]})},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var n=this.nodeIdsToColumns[e.id];return t.filter(function(e){return!n[e.getId()]})},e}(),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fd=function(e){function t(n){var r=e.call(this)||this;return r.state=t.STATE_WAITING_TO_LOAD,r.version=0,r.id=n,r}return hd(t,e),t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,t){this.successCommon(e,t)},t.prototype.pageLoaded=function(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})},t.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,n=this.isAlive();return t&&n},t.prototype.successCommon=function(e,n){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_LOADED,this.processServerResult(n))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0);var n={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(n)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),md=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeBlockLoadsCount=0,t.blocks=[],t.active=!0,t}var n,r;return gd(t,e),n=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();var e=this.gridOptionsService.getNum("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=Gr.debounce(this.performCheckBlocksToLoad.bind(this),e))},t.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},t.prototype.getMaxConcurrentDatasourceRequests=function(){var e=this.gridOptionsService.getNum("maxConcurrentDatasourceRequests");return null==e?2:e<=0?void 0:e},t.prototype.addBlock=function(e){this.blocks.push(e),e.addEventListener(fd.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(e){Gr.removeFromArray(this.blocks,e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchEvent({type:n.BLOCK_LOADED_EVENT}),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=this.getAvailableLoadingCount(),t=this.blocks.filter(function(e){return e.getState()===fd.STATE_WAITING_TO_LOAD}).slice(0,e);this.registerLoads(t.length),t.forEach(function(e){return e.load()}),this.printCacheStatus()}},t.prototype.getBlockState=function(){if(this.gridOptionsService.isRowModelType("serverSide"))return this.rowModel.getBlockStates();var e={};return this.blocks.forEach(function(t){var n=t.getBlockStateJson(),r=n.id,o=n.state;e[r]=o}),e},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.prototype.registerLoads=function(e){this.activeBlockLoadsCount+=e},t.prototype.getAvailableLoadingCount=function(){return void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0},t.BLOCK_LOADED_EVENT="blockLoaded",t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",md([$("rowModel")],t.prototype,"rowModel",void 0),md([G],t.prototype,"postConstruct",null),md([(r=q("loggerFactory"),function(e,t){r(e,t,0)})],t.prototype,"setBeans",null),n=md([z("rowNodeBlockLoader")],t)}(Le),yd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ad=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wd=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 yd(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsService.is("pagination"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedPropertyListener("pagination",this.onPaginationPageSizeChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,r){var o=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return o&&this.calculatePages(),o},t.prototype.isPaginateChildRows=function(){return!(!this.gridOptionsService.is("groupRemoveSingleChildren")&&!this.gridOptionsService.is("groupRemoveLowestSingleChildren"))||this.gridOptionsService.is("paginateChildRows")},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};this.eventService.dispatchEvent(t)},t.prototype.onPaginationPageSizeChanged=function(){this.active=this.gridOptionsService.is("pagination"),this.calculatePages();var e={type:Ve.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(e)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e&&"number"==typeof this.currentPage){this.currentPage=e;var t={type:Ve.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0};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.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.forEachNodeOnPage=function(e){for(var t=this.getPageFirstRow(),n=this.getPageLastRow(),r=t;r<=n;r++){var o=this.getRow(r);o&&e(o)}},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.gridOptionsService.getNum("paginationPageSize"),(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(o(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.adjustCurrentPageIfInvalid=function(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=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.adjustCurrentPageIfInvalid();var t=this.pageSize*this.currentPage,n=this.pageSize*(this.currentPage+1)-1;if(n>e&&(n=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),n===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var r=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=r-1}}},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},Ad([$("rowModel")],t.prototype,"rowModel",void 0),Ad([G],t.prototype,"postConstruct",null),Ad([z("paginationProxy")],t)}(Le),bd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_d=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bd(t,e),t.prototype.processAllCellClasses=function(e,t,n,r){this.processClassRules(e.cellClassRules,t,n,r),this.processStaticCellClasses(e,t,n)},t.prototype.processClassRules=function(e,t,n,r){if(null!=e){for(var o=Object.keys(e),i={},a={},s=function(n){var r,s=o[n],c=e[s];"string"==typeof c?r=l.expressionService.evaluate(c,t):"function"==typeof c&&(r=c(t)),s.split(" ").forEach(function(e){null!=e&&""!=e.trim()&&(r?i[e]=!0:a[e]=!0)})},l=this,c=0;c<o.length;c++)s(c);r&&Object.keys(a).forEach(r),Object.keys(i).forEach(n)}},t.prototype.getStaticCellClasses=function(e,t){var n,r=e.cellClass;return r?("string"==typeof(n="function"==typeof r?r(t):r)&&(n=[n]),n||[]):[]},t.prototype.processStaticCellClasses=function(e,t,n){this.getStaticCellClasses(e,t).forEach(function(e){n(e)})},_d([$("expressionService")],t.prototype,"expressionService",void 0),_d([z("stylingService")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sd=function(e){function t(t){return e.call(this,t,"ag-toggle-button")||this}return Ed(t,e),t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},t}(Ho),Od=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xd=function(e){function t(t){return e.call(this,t,"ag-text-area",null,"textarea")||this}return Od(t,e),t.prototype.setValue=function(t,n){var r=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,r},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(Uo),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pd=function(e){function t(t){return e.call(this,t,"ag-range-field","range")||this}return Dd(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,n=t.min,r=t.max,o=t.step;null!=n&&this.setMinValue(n),null!=r&&this.setMaxValue(r),this.setStep(o||1)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(t){var n=t.target.value;e.setValue(n)})},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,n){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var r=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,r},t}(Uo),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Td=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rd=function(e){function t(n){var r=e.call(this,n,t.TEMPLATE)||this;return r.labelAlignment="top",r}return Md(t,e),t.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,n=Po.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:Po.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>',Td([oo("eLabel")],t.prototype,"eLabel",void 0),Td([oo("eSlider")],t.prototype,"eSlider",void 0),Td([oo("eText")],t.prototype,"eText",void 0),Td([G],t.prototype,"init",null),t}(xo),Id=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kd=function(e){function t(n){void 0===n&&(n={});var r=e.call(this,t.getTemplate(n))||this;r.suppressEnabledCheckbox=!0,r.suppressOpenCloseIcons=!1;var o=n.title,i=n.enabled,a=n.items,s=n.suppressEnabledCheckbox,l=n.suppressOpenCloseIcons;return r.title=o,r.cssIdentifier=n.cssIdentifier||"default",r.enabled=null==i||i,r.items=a||[],r.alignItems=n.alignItems||"center",null!=s&&(r.suppressEnabledCheckbox=s),null!=l&&(r.suppressOpenCloseIcons=l),r}return Id(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.localeService.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(Or("columnSelectClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(Or("columnSelectOpen",this.gridOptionsService,null)),this.addManagedListener(this.eTitleBar,"click",function(){return e.toggleGroupExpand()}),this.addManagedListener(this.eTitleBar,"keydown",function(t){switch(t.key){case Pr.ENTER:case Pr.SPACE:t.preventDefault(),e.toggleGroupExpand();break;case Pr.RIGHT:case Pr.LEFT:t.preventDefault(),e.toggleGroupExpand(t.key===Pr.RIGHT)}})},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||zt(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;zn(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),zn(this.eGroupOpenedIcon,e&&this.expanded),zn(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(),zn(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),zn(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 no?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){zn(this.items[t],!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([oo("eTitleBar")],t.prototype,"eTitleBar",void 0),Fd([oo("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),Fd([oo("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),Fd([oo("eToolbar")],t.prototype,"eToolbar",void 0),Fd([oo("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),Fd([oo("eTitle")],t.prototype,"eTitle",void 0),Fd([oo("eContainer")],t.prototype,"eContainer",void 0),Fd([G],t.prototype,"postConstruct",null),t}(no),Ld=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e.TAB_GUARD="ag-tab-guard",e.TAB_GUARD_TOP="ag-tab-guard-top",e.TAB_GUARD_BOTTOM="ag-tab-guard-bottom"}(dd||(dd={}));var Nd,jd=function(e){function t(t){var n=e.call(this)||this;n.skipTabGuardFocus=!1;var r=t.comp,o=t.eTopGuard,i=t.eBottomGuard,a=t.focusInnerElement,s=t.onFocusIn,l=t.onFocusOut,c=t.shouldStopEventPropagation,u=t.onTabKeyDown,d=t.handleKeyDown,p=t.eFocusableElement;return n.comp=r,n.eTopGuard=o,n.eBottomGuard=i,n.providedFocusInnerElement=a,n.eFocusableElement=p,n.providedFocusIn=s,n.providedFocusOut=l,n.providedShouldStopEventPropagation=c,n.providedOnTabKeyDown=u,n.providedHandleKeyDown=d,n}return Ld(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new vo(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)},onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(function(t){return e.addManagedListener(t,"focus",e.onFocus.bind(e))})},t.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},t.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},t.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},t.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}},t.prototype.onFocusIn=function(e){this.providedFocusIn&&this.providedFocusIn(e)||this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.providedFocusOut&&this.providedFocusOut(e)||this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards()},t.prototype.onTabKeyDown=function(e){var t=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(e);else if(!e.defaultPrevented){var n=this.tabGuardsAreActive();n&&this.deactivateTabGuards();var r=this.getNextFocusableElement(e.shiftKey);n&&setTimeout(function(){return t.activateTabGuards()},0),r&&(r.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return(this.gridOptionsService.getNum("tabIndex")||0).toString()},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({preventScroll:!0})},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()},Bd([$("focusService")],t.prototype,"focusService",void 0),Bd([G],t.prototype,"postConstruct",null),t}(Le),Ud=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Hd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ud(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 jd({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"),n="top"===e?dd.TAB_GUARD_TOP:dd.TAB_GUARD_BOTTOM;return t.classList.add(dd.TAB_GUARD,n),Ft(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];rr(this.getFocusableElement()),this.addTabGuards.apply(this,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Vd(arguments[t]));return e}(e))},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(t,n){Ar(t)||(t=t.getGui());var r=this.eBottomGuard;r?r.insertAdjacentElement("beforebegin",t):e.prototype.appendChild.call(this,t,n)},t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wd=function(){return Wd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wd.apply(this,arguments)},zd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$d=function(e){function t(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 Gd(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 Pr.UP:case Pr.RIGHT:case Pr.DOWN:case Pr.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case Pr.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 Xd(Wd(Wd({},e),{isAnotherSubMenuOpen:function(){return t.menuItems.some(function(e){return e.isSubMenuOpen()})}})));n.setParentComponent(this),Ht(n.getGui(),this.level),this.menuItems.push(n),this.appendChild(n.getGui()),this.addManagedListener(n,Xd.EVENT_MENU_ITEM_SELECTED,function(e){t.dispatchEvent(e)}),this.addManagedListener(n,Xd.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(ar('\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 Xd))break;e=n}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case Pr.UP:case Pr.DOWN:var t=this.findNextItem(e===Pr.UP);return void(t&&t!==this.activeMenuItem&&t.activate())}e===(this.gridOptionsService.is("enableRtl")?Pr.RIGHT:Pr.LEFT)?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var t=this.getParentComponent();t&&t instanceof Xd&&(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 r=!1,o=0;o<t.length;o++){var i=t[o];if(r){n=i;break}i===this.activeMenuItem&&(r=!0)}return n||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),e.prototype.destroy.call(this)},zd([$("focusService")],t.prototype,"focusService",void 0),zd([G],t.prototype,"postConstruct",null),t}(Hd),Kd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qd=function(e){function t(t){var n=e.call(this)||this;return n.wrappedComponent=t,n.setTemplateFromElement(t.getGui()),n}return Kd(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===Pr.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout(function(){return e.getGui().focus()},0)},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([G],t.prototype,"postConstruct",null),t}(Hd),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xd=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 qd(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")),Gt(t,!0)):(this.addGuiEventListener("click",function(t){return e.onItemSelected(t)}),this.addGuiEventListener("keydown",function(t){t.key!==Pr.ENTER&&t.key!==Pr.SPACE||(t.preventDefault(),e.onItemSelected(t))}),this.addGuiEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),this.addGuiEventListener("mouseenter",function(){return e.onMouseEnter()}),this.addGuiEventListener("mouseleave",function(){return e.onMouseLeave()})),this.params.cssClasses&&this.params.cssClasses.forEach(function(t){return e.addCssClass(t)})},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var n=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var r,o=ar('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var i=Lt(this.getGui()),a=isNaN(i)?1:i+1,s=this.createBean(new $d(a));s.setParentComponent(this),s.addMenuItems(this.params.subMenu),o.appendChild(s.getGui()),this.addManagedListener(s,t.EVENT_MENU_ITEM_SELECTED,function(e){return n.dispatchEvent(e)}),s.addGuiEventListener("mouseenter",function(){return n.cancelDeactivate()}),r=function(){return n.destroyBean(s)},e&&setTimeout(function(){return s.activateFirstItem()},0)}else{var l=this.params.subMenu,c=this.createBean(new Qd(l));c.setParentComponent(this);var u=c.getGui(),d="mouseenter",p=function(){return n.cancelDeactivate()};u.addEventListener(d,p),r=function(){return u.removeEventListener(d,p)},o.appendChild(u),l.afterGuiAttached&&setTimeout(function(){return l.afterGuiAttached()},0)}var h=this.getGui(),f=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:h,ePopup:o}),g=this.localeService.getLocaleTextFunc(),m=this.popupService.addPopup({modal:!0,eChild:o,positionCallback:f,anchorToElement:h,ariaLabel:g("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,zt(h,!0),this.hideSubMenu=function(){m&&m.hideFunc(),n.subMenuIsOpen=!1,zt(h,!1),r()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,zt(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=ar('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(xr("check",this.gridOptionsService)):this.params.icon&&(Ar(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=ar('<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.gridOptionsService.is("enableBrowserTooltips")?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new Xr(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=ar('<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=ar('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),t=this.getGui();if(this.params.subMenu){var n=this.gridOptionsService.is("enableRtl")?"smallLeft":"smallRight";zt(t,!1),e.appendChild(xr(n,this.gridOptionsService))}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,Yd([$("popupService")],t.prototype,"popupService",void 0),Yd([G],t.prototype,"init",null),t}(no),Zd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ep=function(e){function t(n){var r=e.call(this,t.getTemplate(n))||this;return r.closable=!0,r.config=n,r}return Zd(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+t+'-panel" tabindex="-1">\n            <div ref="eTitleBar" class="ag-panel-title-bar ag-'+t+'-panel-title-bar ag-unselectable">\n                <span ref="eTitle" class="ag-panel-title-bar-title ag-'+t+'-panel-title-bar-title"></span>\n                <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+t+'-panel-title-bar-buttons"></div>\n            </div>\n            <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+t+'-panel-content-wrapper"></div>\n        </div>'},t.prototype.postConstruct=function(){var e=this,t=this.config,n=t.component,r=t.closable,o=t.hideTitleBar,i=t.title,a=t.minWidth,s=void 0===a?250:a,l=t.width,c=t.minHeight,u=void 0===c?250:c,d=t.height,p=t.centered,h=t.popup,f=t.x,g=t.y;this.positionableFeature=new _o(this.getGui(),{minWidth:s,width:l,minHeight:u,height:d,centered:p,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),o?zn(this.eTitleBar,!1):(i&&this.setTitle(i),this.setClosable(null!=r?r:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",function(t){var n=e.gridOptionsService.getDocument();if(m.contains(t.relatedTarget)||m.contains(n.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var r=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");r&&r.focus()}}),h&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var n=this.closeButtonComp=new no(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n);var r=n.getGui(),o=xr("close",this.gridOptionsService);o.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(o),this.addTitleBarButton(n),n.addManagedListener(r,"click",this.onBtClose.bind(this))}else this.closeButtonComp&&((r=this.closeButtonComp.getGui()).parentElement.removeChild(r),this.closeButtonComp=this.destroyBean(this.closeButtonComp))},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var n=this.eTitleBarButtons,r=n.children,o=r.length;null==t&&(t=o),t=Math.max(0,Math.min(t,o)),e.addCssClass("ag-panel-title-bar-button");var i=e.getGui();0===t?n.insertAdjacentElement("afterbegin",i):t===o?n.insertAdjacentElement("beforeend",i):r[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return Yn(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return Xn(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>',Jd([oo("eContentWrapper")],t.prototype,"eContentWrapper",void 0),Jd([oo("eTitleBar")],t.prototype,"eTitleBar",void 0),Jd([oo("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),Jd([oo("eTitle")],t.prototype,"eTitle",void 0),Jd([G],t.prototype,"postConstruct",null),t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),np=function(){return np=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},np.apply(this,arguments)},rp=function(e){function t(t){var n=e.call(this,np(np({},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 tp(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),r=this.config,o=r.movable,i=r.resizable,a=r.maximizable;this.addCssClass("ag-dialog"),e.prototype.postConstruct.call(this),this.addManagedListener(n,"focusin",function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)}),o&&this.setMovable(o),a&&this.setMaximizable(a),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,r=t.modal,o=t.title,i=this.localeService.getLocaleTextFunc(),a=this.popupService.addPopup({modal:r,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:n,ariaLabel:o||i("ariaLabelDialog","Dialog")});a&&(this.close=a.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var t=this.lastPosition,n=t.x,r=t.y,o=t.width,i=t.height;this.setWidth(o),this.setHeight(i),this.positionableFeature.offsetElement(n,r)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){zn(this.maximizeIcon,!this.isMaximized),zn(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(function(e){return e()}),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var t=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var r=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),r.addManagedListener(r.getGui(),"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(r,0),this.maximizeListeners.push(this.addManagedListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",function(){t.isMaximized=!1,t.refreshMaximizeIcon()})}},t.prototype.buildMaximizeAndMinimizeElements=function(){var e=this.maximizeButtonComp=this.createBean(new no('<div class="ag-dialog-button"></span>')),t=e.getGui();return this.maximizeIcon=xr("maximize",this.gridOptionsService),t.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=xr("minimize",this.gridOptionsService),t.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),e},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([$("popupService")],t.prototype,"popupService",void 0),t}(ep),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ip=function(){return ip=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ip.apply(this,arguments)},ap=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sp=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},lp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return op(t,e),n=t,t.addKeyboardModeEvents=function(e,t){var r=n.instancesMonitored.get(e);r&&r.length>0?-1===r.indexOf(t)&&r.push(t):(n.instancesMonitored.set(e,[t]),e.addEventListener("keydown",n.toggleKeyboardMode),e.addEventListener("mousedown",n.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(e,t){var r=n.instancesMonitored.get(e),o=[];r&&r.length&&(o=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(sp(arguments[t]));return e}(r).filter(function(e){return e!==t}),n.instancesMonitored.set(e,o)),0===o.length&&(e.removeEventListener("keydown",n.toggleKeyboardMode),e.removeEventListener("mousedown",n.toggleKeyboardMode))},t.toggleKeyboardMode=function(e){var t=n.keyboardModeActive,r="keydown"===e.type;if(!(r&&(e.ctrlKey||e.metaKey||e.altKey)||t&&r||!t&&!r)){n.keyboardModeActive=r;var o=e.target.ownerDocument;if(o){var i=n.instancesMonitored.get(o);i&&i.forEach(function(e){e.dispatchEvent({type:r?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 r=e.gridOptionsService.getDocument();n.addKeyboardModeEvents(r,e.gridCtrl),e.addDestroyFunc(function(){return e.unregisterGridCompController(e.gridCtrl)})})},t.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsService.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.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,ml.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){var e=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,jc.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(e,t){for(var n=e;n;){if(this.gridOptionsService.getDomData(n,t))return!1;n=n.parentNode}return!0},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.getFocusEventParams=function(){var e=this.focusedCellPosition,t=e.rowIndex,n=e.rowPinned,r={rowIndex:t,rowPinned:n,column:e.column,isFullWidthCell:!1},o=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:n});return o&&(r.isFullWidthCell=o.isFullWidth()),r},t.prototype.clearFocusedCell=function(){if(null!=this.focusedCellPosition){var e=ip({type:Ve.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(e)}},t.prototype.setFocusedCell=function(e){var t=e.column,n=e.rowIndex,o=e.rowPinned,i=e.forceBrowserFocus,a=void 0!==i&&i,s=e.preventScrollOnBrowserFocus,l=void 0!==s&&s,c=this.columnModel.getGridColumn(t);if(c){this.focusedCellPosition=c?{rowIndex:n,rowPinned:r(o),column:c}:null;var u=ip(ip({type:Ve.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:a,preventScrollOnBrowserFocus:l,floating:null});this.eventService.dispatchEvent(u)}else 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(),r=e.getPinned(),o=this.focusedHeaderPosition,i=o.column,a=o.headerRowIndex;return t===i&&n===a&&r==i.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},t.prototype.focusHeaderPosition=function(e){var t=e.direction,n=e.fromTab,r=e.allowUserOverride,o=e.event,i=e.headerPosition;if(r){var a,s=this.getFocusedHeader(),l=this.headerNavigationService.getHeaderRowCount();n?(a=this.gridOptionsService.getCallback("tabToNextHeader"))&&(i=a({backwards:"Before"===t,previousHeaderPosition:s,nextHeaderPosition:i,headerRowCount:l})):(a=this.gridOptionsService.getCallback("navigateToNextHeader"))&&o&&(i=a({key:o.key,previousHeaderPosition:s,nextHeaderPosition:i,headerRowCount:l,event:o}))}return!!i&&(-1===i.headerRowIndex?this.focusGridView(i.column):(this.headerNavigationService.scrollToColumn(i.column,t),this.ctrlsService.getHeaderRowContainerCtrl(i.column.getPinned()).focusHeader(i.headerRowIndex,i.column,o)))},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===r(t)},t.prototype.findFocusableElements=function(e,t,n){void 0===n&&(n=!1);var r=Hn,o=Gn;t&&(o+=", "+t),n&&(o+=', [tabindex="-1"]');var i,a=Array.prototype.slice.apply(e.querySelectorAll(r)),s=Array.prototype.slice.apply(e.querySelectorAll(o));return s.length?(i=s,a.filter(function(e){return-1===i.indexOf(e)})):a},t.prototype.focusInto=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=this.findFocusableElements(e,null,n),o=t?ue(r):r[0];return!!o&&(o.focus({preventScroll:!0}),!0)},t.prototype.findFocusableElementBeforeTabGuard=function(e,t){if(!t)return null;var n=this.findFocusableElements(e),r=n.indexOf(t);if(-1===r)return null;for(var o=-1,i=r-1;i>=0;i--)if(n[i].classList.contains(dd.TAB_GUARD_TOP)){o=i;break}return o<=0?null:n[o-1]},t.prototype.findNextFocusableElement=function(e,t,n){void 0===e&&(e=this.eGridDiv);var r=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),o=this.gridOptionsService.getDocument().activeElement,i=(t?r.findIndex(function(e){return e.contains(o)}):r.indexOf(o))+(n?-1:1);return i<0||i>=r.length?null:r[i]},t.prototype.isTargetUnderManagedComponent=function(e,t){if(!t)return!1;var n=e.querySelectorAll("."+vo.FOCUS_MANAGED_CLASS);if(!n.length)return!1;for(var r=0;r<n.length;r++)if(n[r].contains(t))return!0;return!1},t.prototype.findTabbableParent=function(e,t){void 0===t&&(t=5);for(var n=0;e&&null===_n(e)&&++n<=t;)e=e.parentElement;return null===_n(e)?null:e},t.prototype.focusGridView=function(e,t){if(this.gridOptionsService.is("suppressCellFocus"))return t?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var n=t?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;var o=n.rowIndex,i=n.rowPinned,a=this.getFocusedHeader();if(!e&&a&&(e=a.column),null==o||!e)return!1;if(this.navigationService.ensureCellVisible({rowIndex:o,column:e,rowPinned:i}),this.setFocusedCell({rowIndex:o,column:e,rowPinned:r(i),forceBrowserFocus:!0}),this.rangeService){var s={rowIndex:o,rowPinned:i,column:e};this.rangeService.setRangeToCell(s)}return!0},t.prototype.focusNextGridCoreContainer=function(e,t){return void 0===t&&(t=!1),!(t||!this.gridCtrl.focusNextInnerContainer(e))||((t||!e&&!this.gridCtrl.isDetailGrid())&&this.gridCtrl.forceFocusOutOfContainer(e),!1)},t.AG_KEYBOARD_FOCUS="ag-keyboard-focus",t.keyboardModeActive=!1,t.instancesMonitored=new Map,ap([$("eGridDiv")],t.prototype,"eGridDiv",void 0),ap([$("columnModel")],t.prototype,"columnModel",void 0),ap([$("headerNavigationService")],t.prototype,"headerNavigationService",void 0),ap([$("rowRenderer")],t.prototype,"rowRenderer",void 0),ap([$("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),ap([K("rangeService")],t.prototype,"rangeService",void 0),ap([$("navigationService")],t.prototype,"navigationService",void 0),ap([$("ctrlsService")],t.prototype,"ctrlsService",void 0),ap([G],t.prototype,"init",null),n=ap([z("focusService")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),up=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},dp=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal"}(Nd||(Nd={}));var pp,hp=0,fp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}var n;return cp(t,e),n=t,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(lp.AG_KEYBOARD_FOCUS)})}),e.addManagedListener(e.gridCtrl,Ve.EVENT_MOUSE_FOCUS,function(){e.popupList.forEach(function(e){return e.element.classList.remove(lp.AG_KEYBOARD_FOCUS)})})})},t.prototype.getPopupParent=function(){return this.gridOptionsService.get("popupParent")||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect(),r=this.keepXYWithinBounds(e.ePopup,t.top-n.top,Nd.vertical),o=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=o+"px";var i,a=n.right-n.left-o;function s(){return t.right-n.left-2}function l(){return t.left-n.left-o}this.gridOptionsService.is("enableRtl")?((i=l())<0&&(i=s()),i>a&&(i=0)):((i=s())>a&&(i=l()),i<0&&(i=0)),e.ePopup.style.left=i+"px",e.ePopup.style.top=r+"px"},t.prototype.positionPopupUnderMouseEvent=function(e){var t=this,n=e.ePopup,r=e.nudgeX,o=e.nudgeY,i=e.skipObserver;this.positionPopup({ePopup:n,nudgeX:r,nudgeY:o,keepWithinBounds:!0,skipObserver:i,updatePosition:function(){return t.calculatePointerAlign(e.mouseEvent)},postProcessCallback:function(){return t.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.positionPopupByComponent=function(e){var t=this,n=e.eventSource.getBoundingClientRect(),r=e.alignSide||"left",o=e.position||"over",i=this.getParentRect();this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,keepWithinBounds:e.keepWithinBounds,updatePosition:function(){var t=n.left-i.left;return"right"===r&&(t-=e.ePopup.offsetWidth-n.width),{x:t,y:"over"===o?n.top-i.top:n.top-i.top+n.height}},postProcessCallback:function(){return t.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)}})},t.prototype.callPostProcessPopup=function(e,t,n,r,o,i){var a=this.gridOptionsService.getCallback("postProcessPopup");a&&a({column:o,rowNode:i,ePopup:t,type:e,eventSource:n,mouseEvent:r})},t.prototype.positionPopup=function(e){var t=this,r=e.ePopup,o=e.keepWithinBounds,i=e.nudgeX,a=e.nudgeY,s=e.skipObserver,l=e.updatePosition,c={width:0,height:0},u=function(n){void 0===n&&(n=!1);var s=l(),u=s.x,d=s.y;n&&r.clientWidth===c.width&&r.clientHeight===c.height||(c.width=r.clientWidth,c.height=r.clientHeight,i&&(u+=i),a&&(d+=a),o&&(u=t.keepXYWithinBounds(r,u,Nd.horizontal),d=t.keepXYWithinBounds(r,d,Nd.vertical)),r.style.left=u+"px",r.style.top=d+"px",e.postProcessCallback&&e.postProcessCallback())};if(u(),!s){var d=this.resizeObserverService.observeResize(r,function(){return u(!0)});setTimeout(function(){return d()},n.WAIT_FOR_POPUP_CONTENT_RESIZE)}},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.gridOptionsService.getDocument(),t=this.getPopupParent();t===e.body?t=e.documentElement:"static"===getComputedStyle(t).position&&(t=t.offsetParent);var n=getComputedStyle(t),r=t.getBoundingClientRect();return{top:r.top+parseFloat(n.borderTopWidth)||0,left:r.left+parseFloat(n.borderLeftWidth)||0,right:r.right+parseFloat(n.borderRightWidth)||0,bottom:r.bottom+parseFloat(n.borderBottomWidth)||0}},t.prototype.keepXYWithinBounds=function(e,t,n){var r=n===Nd.vertical,o=r?"clientHeight":"clientWidth",i=r?"top":"left",a=r?"offsetHeight":"offsetWidth",s=r?"scrollTop":"scrollLeft",l=this.gridOptionsService.getDocument(),c=l.documentElement,u=this.getPopupParent(),d=u.getBoundingClientRect(),p=l.documentElement.getBoundingClientRect(),h=u===l.body,f=e[a],g=h?(r?Zn:Jn)(c)+c[s]:u[o];h&&(g-=Math.abs(p[i]-d[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(),r=n.getBoundingClientRect(),o=e.element.getBoundingClientRect(),i=r.top-o.top,a=r.left-o.left,s=i,l=a,c=e.ePopup.style.top,u=parseInt(c.substring(0,c.length-1),10),d=e.ePopup.style.left,p=parseInt(d.substring(0,d.length-1),10);return new $r(function(r){t.getFrameworkOverrides().setInterval(function(){var r=n.getBoundingClientRect(),o=e.element.getBoundingClientRect();if(0==o.top&&0==o.left&&0==o.height&&0==o.width)e.hidePopup();else{var c=r.top-o.top;if(c!=s){var d=t.keepXYWithinBounds(e.ePopup,u+i-c,Nd.vertical);e.ePopup.style.top=d+"px"}s=c;var h=r.left-o.left;if(h!=l){var f=t.keepXYWithinBounds(e.ePopup,p+a-h,Nd.horizontal);e.ePopup.style.left=f+"px"}l=h}},200).then(function(e){r(function(){null!=e&&window.clearInterval(e)})})})},t.prototype.addPopup=function(e){var t,n=this,r=e.modal,o=e.eChild,i=e.closeOnEsc,a=e.closedCallback,s=e.click,l=e.alwaysOnTop,c=e.afterGuiAttached,u=e.positionCallback,d=e.anchorToElement,p=e.ariaLabel,h=this.gridOptionsService.getDocument(),f=new $r(function(e){return e(function(){})});if(!h)return console.warn("AG Grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:f};var g=this.popupList.findIndex(function(e){return e.element===o});if(-1!==g){var m=this.popupList[g];return{hideFunc:m.hideFunc,stopAnchoringPromise:m.stopAnchoringPromise}}var v=this.getPopupParent();null==o.style.top&&(o.style.top="0px"),null==o.style.left&&(o.style.left="0px");var y=document.createElement("div"),A=this.environment.getTheme().allThemes;A.length&&(t=y.classList).add.apply(t,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dp(arguments[t]));return e}(A)),y.classList.add("ag-popup"),o.classList.add(this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),o.hasAttribute("role")||Ft(o,"dialog"),Nt(o,p),this.focusService.isKeyboardMode()&&o.classList.add(lp.AG_KEYBOARD_FOCUS),y.appendChild(o),v.appendChild(y),l?this.setAlwaysOnTop(y,!0):this.bringPopupToFront(y);var w=!1,b=function(e){y.contains(h.activeElement)&&e.key===Pr.ESCAPE&&E({keyboardEvent:e})},_=function(e){return E({mouseEvent:e})},C=function(e){return E({touchEvent:e})},E=function(e){void 0===e&&(e={});var t=e.mouseEvent,r=e.touchEvent,i=e.keyboardEvent;n.isEventFromCurrentPopup({mouseEvent:t,touchEvent:r},o)||n.isEventSameChainAsOriginalEvent({originalMouseEvent:s,mouseEvent:t,touchEvent:r})||w||(w=!0,v.removeChild(y),h.removeEventListener("keydown",b),h.removeEventListener("mousedown",_),h.removeEventListener("touchstart",C),h.removeEventListener("contextmenu",_),n.eventService.removeEventListener(Ve.EVENT_DRAG_STARTED,_),a&&a(t||r||i),n.popupList=n.popupList.filter(function(e){return e.element!==o}),f&&f.then(function(e){return e&&e()}))};return c&&c({hidePopup:E}),window.setTimeout(function(){i&&h.addEventListener("keydown",b),r&&(h.addEventListener("mousedown",_),n.eventService.addEventListener(Ve.EVENT_DRAG_STARTED,_),h.addEventListener("touchstart",C),h.addEventListener("contextmenu",_))},0),u&&u(),d&&(f=this.keepPopupPositionedRelativeTo({element:d,ePopup:o,hidePopup:E})),this.popupList.push({element:o,wrapper:y,hideFunc:E,stopAnchoringPromise:f,instanceId:hp++,isAnchored:!!d}),{hideFunc:E,stopAnchoringPromise:f}},t.prototype.hasAnchoredPopup=function(){return this.popupList.some(function(e){return e.isAnchored})},t.prototype.isEventFromCurrentPopup=function(e,t){var n=e.mouseEvent,r=e.touchEvent,o=n||r;if(!o)return!1;var i=this.popupList.findIndex(function(e){return e.element===t});if(-1===i)return!1;for(var a=i;a<this.popupList.length;a++)if(Pe(this.popupList[a].element,o))return!0;return this.isElementWithinCustomPopup(o.target)},t.prototype.isElementWithinCustomPopup=function(e){for(var t=this.gridOptionsService.getDocument();e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var t=e.originalMouseEvent,n=e.mouseEvent,r=e.touchEvent,o=null;if(n?o=n:r&&(o=r.touches[0]),o&&t){var i=n?n.screenX:0,a=n?n.screenY:0,s=Math.abs(t.screenX-i)<5,l=Math.abs(t.screenY-a)<5;if(s&&l)return!0}return!1},t.prototype.getWrapper=function(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null},t.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))},t.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),r=n.length,o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),i=o.length,a=this.getWrapper(e);if(a&&!(r<=1)&&t.contains(e)){var s=n.indexOf(a),l=a.querySelectorAll("div"),c=[];for(l.forEach(function(e){0!==e.scrollTop&&c.push([e,e.scrollTop])}),i?a.classList.contains("ag-always-on-top")?s!==r-1&&ue(o).insertAdjacentElement("afterend",a):s!==r-i-1&&o[0].insertAdjacentElement("beforebegin",a):s!==r-1&&ue(n).insertAdjacentElement("afterend",a);c.length;){var u=c.pop();u[0].scrollTop=u[1]}var d={type:"popupToFront",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,eWrapper:a};this.eventService.dispatchEvent(d)}},t.WAIT_FOR_POPUP_CONTENT_RESIZE=200,up([$("focusService")],t.prototype,"focusService",void 0),up([$("ctrlsService")],t.prototype,"ctrlsService",void 0),up([$("resizeObserverService")],t.prototype,"resizeObserverService",void 0),up([G],t.prototype,"postConstruct",null),n=up([z("popupService")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vp=function(e){function t(n,r,o){void 0===n&&(n="default"),void 0===r&&(r="listbox");var i=e.call(this,t.getTemplate(n))||this;return i.cssIdentifier=n,i.ariaRole=r,i.listName=o,i.renderedRows=new Map,i.rowHeight=20,i}return gp(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(),this.addManagedListener(this.eventService,Ve.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanged.bind(this))},t.prototype.onGridStylesChanged=function(){this.rowHeight=this.getItemHeight(),this.refresh()},t.prototype.setAriaProperties=function(){var e=this.localeService.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),t=this.eContainer;Ft(t,this.ariaRole),Nt(t,e)},t.prototype.addResizeObserver=function(){var e=this,t=this.resizeObserverService.observeResize(this.getGui(),function(){return e.drawVirtualRows()});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=Bt(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 Pr.UP:case Pr.DOWN:this.navigate(e.key===Pr.UP)&&e.preventDefault()}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.forceFocusOutOfContainer(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(){if(t.isAlive()){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.prototype.forEachRenderedRow=function(e){this.renderedRows.forEach(function(t,n){return e(t.rowComponent,n)})},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.environment.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!=typeof e||e<0||e>=t)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e);else{var n=e*this.rowHeight,r=n+this.rowHeight,o=this.getGui(),i=o.scrollTop,a=o.offsetHeight,s=i+a<r;if(i>n)o.scrollTop=n;else if(s){var l=r-a;o.scrollTop=l}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.setComponentUpdater=function(e){this.componentUpdater=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(e){var t=this;if(null!=this.model&&this.isAlive()){var n=this.model.getRowCount();this.eContainer.style.height=n*this.rowHeight+"px",B(function(){return t.eContainer.clientHeight>=n*t.rowHeight},function(){t.isAlive()&&(t.canSoftRefresh(e)?t.drawVirtualRows(!0):(t.clearVirtualRows(),t.drawVirtualRows()))})}},t.prototype.canSoftRefresh=function(e){return!!(e&&this.renderedRows.size&&"function"==typeof this.model.areRowsEqual&&this.componentUpdater)},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach(function(t,n){return e.removeRow(n)})},t.prototype.drawVirtualRows=function(e){if(this.isAlive()){var t=this.getGui(),n=t.scrollTop,r=n+t.offsetHeight,o=Math.floor(n/this.rowHeight),i=Math.floor(r/this.rowHeight);this.ensureRowsRendered(o,i,e)}},t.prototype.ensureRowsRendered=function(e,t,n){var r=this;this.renderedRows.forEach(function(n,o){(o<e||o>t)&&o!==r.lastFocusedRowIndex&&r.removeRow(o)}),n&&this.refreshRows();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),r=document.createElement("div");if(r.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),Ft(r,"tree"===this.ariaRole?"treeitem":"option"),Kt(r,this.model.getRowCount()),Qt(r,e+1),r.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var o=this.model.isRowSelected(e);rn(r,!!o),on(r,o)}r.style.height=this.rowHeight+"px",r.style.top=this.rowHeight*e+"px";var i=this.componentCreator(n,r);i.addGuiEventListener("focusin",function(){return t.lastFocusedRowIndex=e}),r.appendChild(i.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",r):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",r):this.eContainer.appendChild(r),this.renderedRows.set(e,{rowComponent:i,eDiv:r,value:n})},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.refreshRows=function(){var e=this,t=this.model.getRowCount();this.renderedRows.forEach(function(n,r){var o,i;if(r>=t)e.removeRow(r);else{var a=e.model.getRow(r);(null===(i=(o=e.model).areRowsEqual)||void 0===i?void 0:i.call(o,n.value,a))?e.componentUpdater(a,n.rowComponent):e.removeRow(r)}})},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",function(){return e.drawVirtualRows()},{passive:!0})},t.prototype.setModel=function(e){this.model=e},t.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),e.prototype.destroy.call(this))},mp([$("resizeObserverService")],t.prototype,"resizeObserverService",void 0),mp([oo("eContainer")],t.prototype,"eContainer",void 0),mp([G],t.prototype,"postConstruct",null),t}(Hd),yp=["mouseover","mouseout","mouseenter","mouseleave"],Ap=["touchstart","touchend","touchmove","touchcancel"],wp=function(){function e(){this.isOutsideAngular=function(e){return ve(yp,e)}}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.setInterval=function(e,t){return new $r(function(n){n(window.setInterval(e,t))})},e.prototype.addEventListener=function(e,t,n,r){var o=ve(Ap,t);e.addEventListener(t,n,{capture:!!r,passive:o})},e.prototype.dispatchEvent=function(e,t,n){t()},e.prototype.frameworkComponent=function(e){return null},e.prototype.isFrameworkComponent=function(e){return!1},e}(),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_p=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cp=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Ep=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bp(t,e),t.prototype.getNextCellToFocus=function(e,t,n){return void 0===n&&(n=!1),n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,t){var n,r,o=e===Pr.UP,i=e===Pr.DOWN,a=e===Pr.LEFT;if(o||i)r=o?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),n=t.column;else{var s=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsService.is("enableRtl");r=t.rowIndex,n=a!==l?s[0]:ue(s)}return{rowIndex:r,rowPinned:null,column:n}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,t){for(var n=t,r=!1;!r;){switch(e){case Pr.UP:n=this.getCellAbove(n);break;case Pr.DOWN:n=this.getCellBelow(n);break;case Pr.RIGHT:n=this.gridOptionsService.is("enableRtl")?this.getCellToLeft(n):this.getCellToRight(n);break;case Pr.LEFT:n=this.gridOptionsService.is("enableRtl")?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("AG Grid: unknown key for navigation "+e)}r=!n||this.isCellGoodToFocusOn(n)}return n},t.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case"top":t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case"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"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}var r=this.rowModel.getRow(e.rowIndex);return this.getNextStickyPosition(r)||{rowIndex:t+1,rowPinned:n}},t.prototype.getNextStickyPosition=function(e,t){if(this.gridOptionsService.is("groupRowsSticky")&&e&&e.sticky){var n=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Cp(arguments[t]));return e}(this.rowRenderer.getStickyTopRowCtrls()).sort(function(e,t){return e.getRowNode().rowIndex-t.getRowNode().rowIndex}),r=t?-1:1,o=n.findIndex(function(t){return t.getRowNode().rowIndex===e.rowIndex}),i=n[o+r];return i?{rowIndex:i.getRowNode().rowIndex,rowPinned:null}:void 0}},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"top"===t?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:"bottom"===t?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.paginationProxy.getPageLastRow()<=n},t.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;if(n?0===t:t===this.paginationProxy.getPageFirstRow())return"top"===n?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;var r=this.rowModel.getRow(e.rowIndex);return this.getNextStickyPosition(r,!0)||{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:"top"}},t.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,r=e.rowPinned,o=this.columnModel.getDisplayedColAfter(e.column);if(!o){o=t[0];var a=this.getRowBelow(e);if(i(a))return null;if(!a.rowPinned&&!this.paginationProxy.isRowInPage(a))return null;n=a?a.rowIndex:null,r=a?a.rowPinned:null}return{rowIndex:n,column:o,rowPinned:r}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,r=e.rowPinned,o=this.columnModel.getDisplayedColBefore(e.column);if(!o){o=ue(t);var a=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(i(a))return null;if(!a.rowPinned&&!this.paginationProxy.isRowInPage(a))return null;n=a?a.rowIndex:null,r=a?a.rowPinned:null}return{rowIndex:n,column:o,rowPinned:r}},_p([$("columnModel")],t.prototype,"columnModel",void 0),_p([$("rowModel")],t.prototype,"rowModel",void 0),_p([$("rowRenderer")],t.prototype,"rowRenderer",void 0),_p([$("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),_p([$("paginationProxy")],t.prototype,"paginationProxy",void 0),_p([z("cellNavigationService")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Op=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}return Sp(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.gridOptionsService.get("alignedGrids");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 r=e;t.processGroupOpenedEvent(r);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 r=t.getGroupId();n=this.columnModel.getProvidedColumnGroup(r)}t&&!n||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+t.isExpanded()),this.columnModel.setColumnGroupOpened(n,t.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var t,n=this,r=e.column,o=null;if(r&&(o=this.columnModel.getPrimaryColumn(r.getColId())),!r||o){var i=this.getMasterColumns(e);switch(e.type){case Ve.EVENT_COLUMN_MOVED:var a=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 = "+a.toIndex);break;case Ve.EVENT_COLUMN_VISIBLE:var l=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 = "+l.visible);break;case Ve.EVENT_COLUMN_PINNED:var c=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 = "+c.pinned);break;case Ve.EVENT_COLUMN_RESIZED:var u=e,d={};i.forEach(function(t){n.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth()),d[t.getId()]={key:t.getColId(),newWidth:t.getActualWidth()}}),null===(t=u.flexColumns)||void 0===t||t.forEach(function(e){d[e.getId()]&&delete d[e.getId()]}),this.columnModel.setColumnWidths(Object.values(d),!1,u.finished,"alignedGridChanged")}var p=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),h=this.gridOptionsService.get("alignedGrids");h&&h.forEach(function(e){e.api&&e.api.setAlwaysShowVerticalScroll(p)})}},Op([$("columnModel")],t.prototype,"columnModel",void 0),Op([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Op([(n=q("loggerFactory"),function(e,t){n(e,t,0)})],t.prototype,"setBeans",null),Op([G],t.prototype,"init",null),Op([z("alignedGridsService")],t);var n}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pp=function(){return Pp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Pp.apply(this,arguments)},Mp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Tp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dp(t,e),t.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset()},t.prototype.init=function(){var e=this;this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.addManagedPropertyListener("groupSelectsChildren",function(t){return e.groupSelectsChildren=t.currentValue}),this.rowSelection=this.gridOptionsService.get("rowSelection"),this.addManagedPropertyListener("rowSelection",function(t){return e.rowSelection=t.currentValue}),this.addManagedListener(this.eventService,Ve.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.isMultiselect=function(){return"multiple"===this.rowSelection},t.prototype.setNodeSelected=function(e){var t,n=e.newValue,r=e.clearSelection,o=e.suppressFinishActions,i=e.rangeSelect;e.event;var a=e.node,s=e.source,l=void 0===s?"api":s,c=this.groupSelectsChildren&&!0===e.groupSelectsFiltered;if(void 0===a.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(a.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(a.footer)return this.setNodeSelected(Pp(Pp({},e),{node:a.sibling}));var u=this.getLastSelectedNode();if(i&&u&&u!==a&&this.isMultiselect()){var d=this.selectRange(a,u,e.newValue,l);return this.setLastSelectedNode(a),d}var p=0;if(c&&a.group||a.selectThisNode(n,e.event,l)&&p++,this.groupSelectsChildren&&(null===(t=a.childrenAfterGroup)||void 0===t?void 0:t.length)&&(p+=this.selectChildren(a,n,c,l)),!o){if(n&&(r||!this.isMultiselect())&&(p+=this.clearOtherNodes(a,l)),p>0){this.updateGroupsFromChildrenSelections(l);var h={type:Ve.EVENT_SELECTION_CHANGED,source:l};this.eventService.dispatchEvent(h)}n&&this.setLastSelectedNode(a)}return p},t.prototype.selectRange=function(e,t,n,r){var o=this;void 0===n&&(n=!0);var i=this.rowModel.getNodesInRangeForSelection(e,t),a=0;i.forEach(function(t){t.group&&o.groupSelectsChildren||!1===n&&e===t||t.selectThisNode(n,void 0,r)&&a++}),this.updateGroupsFromChildrenSelections(r);var s={type:Ve.EVENT_SELECTION_CHANGED,source:r};return this.eventService.dispatchEvent(s),a},t.prototype.selectChildren=function(e,t,n,r){var o=n?e.childrenAfterAggFilter:e.childrenAfterGroup;if(Gr.missing(o))return 0;for(var i=0,a=0;a<o.length;a++)i+=o[a].setSelectedParams({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:n,source:r});return i},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];return h(this.selectedNodes,function(t,n){n&&e.push(n)}),e},t.prototype.getSelectedRows=function(){var e=[];return h(this.selectedNodes,function(t,n){n&&n.data&&e.push(n.data)}),e},t.prototype.getSelectionCount=function(){return Object.values(this.selectedNodes).length},t.prototype.filterFromSelection=function(e){var t={};Object.entries(this.selectedNodes).forEach(function(n){var r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(n,2),o=r[0],i=r[1];i&&e(i)&&(t[o]=i)}),this.selectedNodes=t},t.prototype.updateGroupsFromChildrenSelections=function(e,t){if(!this.groupSelectsChildren)return!1;if("clientSide"!==this.rowModel.getType())return!1;var n=this.rowModel.getRootNode();t||(t=new pd(!0,n)).setInactive();var r=!1;return t.forEachChangedNodeDepthFirst(function(t){if(t!==n){var o=t.calculateSelectedFromChildren();r=t.selectThisNode(null!==o&&o,void 0,e)||r}}),r},t.prototype.clearOtherNodes=function(e,t){var n=this,r={},o=0;return h(this.selectedNodes,function(i,a){if(a&&a.id!==e.id){var s=n.selectedNodes[a.id];o+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:t}),n.groupSelectsChildren&&a.parent&&(r[a.parent.id]=a.parent)}}),h(r,function(e,n){var r=n.calculateSelectedFromChildren();n.selectThisNode(null!==r&&r,void 0,t)}),o},t.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:delete this.selectedNodes[t.id])},t.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,t){if(o(t)&&e.id!==t.id&&t){var n=t.id;this.selectedNodes[n]==e&&(this.selectedNodes[t.id]=t)}},t.prototype.syncInNewRowNode=function(e){o(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("clientSide"===this.rowModel.getType()){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if(i.isSelected())t.push(i);else{var a=i;a.group&&a.children&&e(a.children)}}}(e),t}}},t.prototype.isEmpty=function(){var e=0;return h(this.selectedNodes,function(t,n){n&&e++}),0===e},t.prototype.deselectAllRowNodes=function(e){var t=function(e){return e.selectThisNode(!1,void 0,r)},n="clientSide"===this.rowModel.getType(),r=e.source,o=e.justFiltered,i=e.justCurrentPage;if(i||o){if(!n)return void console.error("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'");this.getNodesToSelect(o,i).forEach(t)}else h(this.selectedNodes,function(e,n){n&&t(n)}),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(r);var a={type:Ve.EVENT_SELECTION_CHANGED,source:r};this.eventService.dispatchEvent(a)},t.prototype.getSelectAllState=function(e,t){var n=this,r=0,o=0;return this.getNodesToSelect(e,t).forEach(function(e){n.groupSelectsChildren&&e.group||(e.isSelected()?r++:e.selectable&&o++)}),(0!==r||0!==o)&&(r>0&&o>0?null:r>0)},t.prototype.getNodesToSelect=function(e,t){var n=this;if(void 0===e&&(e=!1),void 0===t&&(t=!1),"clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var r=[];if(t)return this.paginationProxy.forEachNodeOnPage(function(e){if(e.group)if(e.expanded)n.groupSelectsChildren||r.push(e);else{var t=function(e){var n;r.push(e),(null===(n=e.childrenAfterFilter)||void 0===n?void 0:n.length)&&e.childrenAfterFilter.forEach(t)};t(e)}else r.push(e)}),r;var o=this.rowModel;return e?(o.forEachNodeAfterFilter(function(e){r.push(e)}),r):(o.forEachNode(function(e){r.push(e)}),r)},t.prototype.selectAllRowNodes=function(e){if("clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var t=e.source,n=e.justFiltered,r=e.justCurrentPage;this.getNodesToSelect(n,r).forEach(function(e){return e.selectThisNode(!0,void 0,t)}),"clientSide"===this.rowModel.getType()&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(t);var o={type:Ve.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(o)},t.prototype.getServerSideSelectionState=function(){return null},t.prototype.setServerSideSelectionState=function(e){},Mp([$("rowModel")],t.prototype,"rowModel",void 0),Mp([$("paginationProxy")],t.prototype,"paginationProxy",void 0),Mp([(n=q("loggerFactory"),function(e,t){n(e,t,0)})],t.prototype,"setBeans",null),Mp([G],t.prototype,"init",null),Mp([z("selectionService")],t);var n}(Le),Rp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ip=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){void 0===e&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnModel.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnModel.getColumnGroup(e,t)},e.prototype.getProvidedColumnGroup=function(e){return this.columnModel.getProvidedColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnModel.getPrimaryColumn(e)},e.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},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.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){this.columnModel.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnModel.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnModel.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnModel.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnModel.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n,r){void 0===n&&(n=!0),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,n,r)},e.prototype.setColumnWidths=function(e,t,n){void 0===t&&(t=!0),this.columnModel.setColumnWidths(e,!1,t,n)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},e.prototype.getPivotResultColumn=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.setPivotResultColumns=function(e){this.columnModel.setSecondaryColumns(e,"api")},e.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Gr.removeAllReferences.bind(window,this,"Column API"),100)},e.prototype.getAllColumns=function(){return tt("28.0","getAllColumns","getColumns"),this.getColumns()},e.prototype.getOriginalColumnGroup=function(e){return tt("27.0","getOriginalColumnGroup","getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(e)},e.prototype.getPrimaryColumns=function(){return tt("28.0","getPrimaryColumns","getColumns"),this.getColumns()},e.prototype.getSecondaryColumns=function(){return tt("28.0","getSecondaryColumns","getPivotResultColumns"),this.getPivotResultColumns()},e.prototype.setSecondaryColumns=function(e){tt("28.0","setSecondaryColumns","setPivotResultColumns"),this.setPivotResultColumns(e)},e.prototype.getSecondaryPivotColumn=function(e,t){return tt("28.0","getSecondaryPivotColumn","getPivotResultColumn"),this.getPivotResultColumn(e,t)},Rp([$("columnModel")],e.prototype,"columnModel",void 0),Rp([W],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),Rp([z("columnApi")],e)}(),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Lp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return Fp(t,e),t.prototype.init=function(){var e=this;this.cellExpressions=this.gridOptionsService.is("enableCellExpressions"),this.isTreeData=this.gridOptionsService.is("treeData"),this.initialised=!0,this.eventService.addEventListener(Ve.EVENT_CELL_VALUE_CHANGED,function(t){return e.callColumnCellValueChangedHandler(t)},this.gridOptionsService.useAsyncEvents()),this.addManagedPropertyListener("treeData",function(t){return e.isTreeData=t.currentValue})},t.prototype.getValue=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!1),this.initialised||this.init(),t){var o,i=e.getColDef(),a=i.field,s=e.getColId(),l=t.data,c=t.groupData&&void 0!==t.groupData[s],u=!r&&t.aggData&&void 0!==t.aggData[s];if(n&&i.filterValueGetter?o=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.isTreeData&&u?o=t.aggData[s]:this.isTreeData&&i.valueGetter?o=this.executeValueGetter(i.valueGetter,l,e,t):this.isTreeData&&a&&l?o=_(l,a,e.isFieldContainsDots()):c?o=t.groupData[s]:u?o=t.aggData[s]:i.valueGetter?o=this.executeValueGetter(i.valueGetter,l,e,t):a&&l&&(o=_(l,a,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof o&&0===o.indexOf("=")){var d=o.substring(1);o=this.executeValueGetter(d,l,e,t)}if(null==o){var p=this.getOpenedGroup(t,e);if(null!=p)return p}return o}},t.prototype.getOpenedGroup=function(e,t){if(this.gridOptionsService.is("showOpenedGroup")&&t.getColDef().showRowGroup)for(var n=t.getColDef().showRowGroup,r=e.parent;null!=r;){if(r.rowGroupColumn&&(!0===n||n===r.rowGroupColumn.getColId()))return r.key;r=r.parent}},t.prototype.setValue=function(e,t,n,r){var a=this.columnModel.getPrimaryColumn(t);if(!e||!a)return!1;i(e.data)&&(e.data={});var s=a.getColDef(),l=s.field,c=s.valueSetter;if(i(l)&&i(c))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var u,d={node:e,data:e.data,oldValue:this.getValue(a,e),newValue:n,colDef:a.getColDef(),column:a,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};if(d.newValue=n,void 0===(u=o(c)?"function"==typeof c?c(d):this.expressionService.evaluate(c,d):this.setValueUsingField(e.data,l,n,a.isFieldContainsDots()))&&(u=!0),!u)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(a,e);var p={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:r};return this.eventService.dispatchEvent(p),!0},t.prototype.callColumnCellValueChangedHandler=function(e){var t=e.colDef.onCellValueChanged;"function"==typeof t&&t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})},t.prototype.setValueUsingField=function(e,t,n,r){if(!t)return!1;var o=!1;if(r)for(var i=t.split("."),a=e;i.length>0&&a;){var s=i.shift();0===i.length?(o=a[s]==n)||(a[s]=n):a=a[s]}else(o=e[t]==n)||(e[t]=n);return!o},t.prototype.executeFilterValueGetter=function(e,t,n,r){var o={data:t,node:r,column:n,colDef:n.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,r)};return"function"==typeof e?e(o):this.expressionService.evaluate(e,o)},t.prototype.executeValueGetter=function(e,t,n,r){var o=n.getColId(),i=this.valueCache.getValue(r,o);if(void 0!==i)return i;var a,s={data:t,node:r,column:n,colDef:n.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,r)};return a="function"==typeof e?e(s):this.expressionService.evaluate(e,s),this.valueCache.setValue(r,o,a),a},t.prototype.getValueCallback=function(e,t){var n=this.columnModel.getPrimaryColumn(t);return n?this.getValue(n,e):null},t.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),r=e.getColDef().keyCreator,o=n;return r&&(o=r({value:n,colDef:e.getColDef(),column:e,node:t,data:t.data,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context})),"string"==typeof o||null==o||"[object Object]"===(o=String(o))&&x(function(){console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")},"getKeyForNode - warn about [object,object]"),o},kp([$("expressionService")],t.prototype,"expressionService",void 0),kp([$("columnModel")],t.prototype,"columnModel",void 0),kp([$("valueCache")],t.prototype,"valueCache",void 0),kp([G],t.prototype,"init",null),kp([z("valueService")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Np=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},jp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}return Bp(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,t){if("string"==typeof e)return this.evaluateExpression(e,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+";"},Np([(n=q("loggerFactory"),function(e,t){n(e,t,0)})],t.prototype,"setBeans",null),Np([z("expressionService")],t);var n}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return Up(t,e),t.prototype.getTemplate=function(e,t){var n=this.templateCache[e];if(n)return n;var r=this.waitingCallbacks[e],o=this;if(!r){r=[],this.waitingCallbacks[e]=r;var i=new XMLHttpRequest;i.onload=function(){o.handleHttpResult(this,e)},i.open("GET",e),i.send()}return t&&r.push(t),null},t.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],r=0;r<n.length;r++)(0,n[r])()}else console.warn("AG Grid: Unable to get template error "+e.status+" - "+t)},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([z("templateService")],t)}(Le),Hp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hp(t,e),t.prototype.setBeans=function(e){this.logging=e.is("debug")},t.prototype.create=function(e){return new zp(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Gp([(n=q("gridOptionsService"),function(e,t){n(e,t,0)})],t.prototype,"setBeans",null),Gp([z("loggerFactory")],t);var n}(Le),zp=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}(),$p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Qp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $p(t,e),t.prototype.setComp=function(e,t,n){var r=this;this.view=e,this.eGridHostDiv=t,this.eGui=n,this.dragAndDropService.addDropTarget({getContainer:function(){return r.eGui},isInterestedIn:function(e){return e===mi.HeaderCell||e===mi.ToolPanel},getIconName:function(){return pa.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new Os(this.view)),this.addRtlSupport(),this.addManagedListener(this,Ve.EVENT_KEYBOARD_FOCUS,function(){r.view.addOrRemoveKeyboardFocusClass(!0)}),this.addManagedListener(this,Ve.EVENT_MOUSE_FOCUS,function(){r.view.addOrRemoveKeyboardFocusClass(!1)});var o=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return o()}),this.ctrlsService.registerGridCtrl(this)},t.prototype.isDetailGrid=function(){var e,t=this.focusService.findTabbableParent(this.getGui());return(null===(e=null==t?void 0:t.getAttribute("row-id"))||void 0===e?void 0:e.startsWith("detail"))||!1},t.prototype.showDropZones=function(){return te.isRegistered(X.RowGroupingModule)},t.prototype.showSideBar=function(){return te.isRegistered(X.SideBarModule)},t.prototype.showStatusBar=function(){return te.isRegistered(X.StatusBarModule)},t.prototype.showWatermark=function(){return te.isRegistered(X.EnterpriseCoreModule)},t.prototype.onGridSizeChanged=function(){var e={type:Ve.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},t.prototype.destroyGridUi=function(){this.view.destroyGridUi()},t.prototype.getGui=function(){return this.eGui},t.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},t.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},t.prototype.focusNextInnerContainer=function(e){var t=this.gridOptionsService.getDocument(),n=this.view.getFocusableContainers(),r=n.findIndex(function(e){return e.contains(t.activeElement)})+(e?-1:1);return!(r<=0||r>=n.length)&&this.focusService.focusInto(n[r])},t.prototype.focusInnerElement=function(e){var t=this.view.getFocusableContainers(),n=this.columnModel.getAllDisplayedColumns();if(e){if(t.length>1)return this.focusService.focusInto(ue(t),!0);var r=ue(n);if(this.focusService.focusGridView(r,!0))return!0}return 0===this.gridOptionsService.getNum("headerHeight")?this.focusService.focusGridView(n[0]):this.focusService.focusFirstHeader()},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},Kp([$("focusService")],t.prototype,"focusService",void 0),Kp([$("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Kp([$("columnModel")],t.prototype,"columnModel",void 0),Kp([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Kp([$("mouseEventService")],t.prototype,"mouseEventService",void 0),Kp([$("dragAndDropService")],t.prototype,"dragAndDropService",void 0),t}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xp=function(e){function t(t){var n=e.call(this)||this;return n.eGridDiv=t,n}return qp(t,e),t.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(lp.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 Qp);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)}})},t.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")})},t.prototype.updateLayoutClasses=function(e,t){var n=this.eRootWrapperBody.classList;n.toggle(hs.AUTO_HEIGHT,t.autoHeight),n.toggle(hs.NORMAL,t.normal),n.toggle(hs.PRINT,t.print),this.addOrRemoveCssClass(hs.AUTO_HEIGHT,t.autoHeight),this.addOrRemoveCssClass(hs.NORMAL,t.normal),this.addOrRemoveCssClass(hs.PRINT,t.print)},t.prototype.createTemplate=function(){return'<div class="ag-root-wrapper" role="presentation">\n                '+(this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n                <div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">\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>"},t.prototype.getFocusableElement=function(){return this.eRootWrapperBody},t.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter(function(e){return ir(e)})},Yp([$("loggerFactory")],t.prototype,"loggerFactory",void 0),Yp([oo("gridBody")],t.prototype,"gridBodyComp",void 0),Yp([oo("sideBar")],t.prototype,"sideBarComp",void 0),Yp([oo("rootWrapperBody")],t.prototype,"eRootWrapperBody",void 0),Yp([G],t.prototype,"postConstruct",null),t}(Hd),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},eh=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},th=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(eh(arguments[t]));return e},nh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Zp(t,e),n=t,t.prototype.progressSort=function(e,t,n){var r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,n)},t.prototype.setSortForColumn=function(e,t,n,r){"asc"!==t&&"desc"!==t&&(t=null);var o=[e];if(this.gridOptionsService.isColumnsSortingCoupledToGroup()&&e.getColDef().showRowGroup){e.getColDef().field||(o=[]);var i=this.columnModel.getSourceColumnsForGroupColumn(e),a=null==i?void 0:i.filter(function(e){return e.getColDef().sortable});a&&(o=th(o,a))}o.forEach(function(e){return e.setSort(t,r)}),(n||this.gridOptionsService.is("alwaysMultiSort"))&&!this.gridOptionsService.is("suppressMultiSort")||this.clearSortBarTheseColumns(o,r),this.updateSortIndex(e),this.dispatchSortChangedEvents(r)},t.prototype.updateSortIndex=function(e){var t=this.gridOptionsService.isColumnsSortingCoupledToGroup(),n=this.columnModel.getGroupDisplayColumnForGroup(e.getId()),r=t&&n||e,o=this.getColumnsWithSortingOrdered(!0);this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(e){return e.setSortIndex(null)});var i=o.filter(function(e){return e!==r});(r.getSort()?th(i,[r]):i).forEach(function(e,t){return e.setSortIndex(t)})},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,source:e};this.eventService.dispatchEvent(t)},t.prototype.clearSortBarTheseColumns=function(e,t){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(n){e.includes(n)||n.setSort(void 0,t)})},t.prototype.getNextSortDirection=function(e){var t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsService.get("sortingOrder")?this.gridOptionsService.get("sortingOrder"):n.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+t),null;var r=e.getColDef().field?e.getSort():this.getDisplaySortForColumn(e),o=t[0];if("mixed"!==r){var i=t.indexOf(r),a=i<0,s=i==t.length-1;o=a||s?t[0]:t[i+1]}return n.DEFAULT_SORTING_ORDER.indexOf(o)<0?(console.warn("AG Grid: invalid sort type "+o),null):o},t.prototype.getIndexedSortMap=function(e){var t=this;void 0===e&&(e=!1);var n=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter(function(e){return!!e.getSort()});!e&&this.columnModel.isPivotMode()&&(n=n.filter(function(e){return!!e.getAggFunc()||!e.isPrimary()||t.columnModel.getGroupDisplayColumnForGroup(e.getId())}));var r=this.columnModel.getRowGroupColumns().filter(function(e){return!!e.getSort()}),o=this.gridOptionsService.isColumnsSortingCoupledToGroup()&&!!r.length;o&&(n=th(new Set(n.map(function(e){var n;return null!==(n=t.columnModel.getGroupDisplayColumnForGroup(e.getId()))&&void 0!==n?n:e}))));var i={};n.forEach(function(e,t){return i[e.getId()]=t}),n.sort(function(e,t){var n=e.getSortIndex(),r=t.getSortIndex();return null!=n&&null!=r?n-r:null==n&&null==r?i[e.getId()]>i[t.getId()]?1:-1:null==r?-1:1});var a=new Map;return n.forEach(function(e,t){return a.set(e,t)}),o&&r.forEach(function(e){var n=t.columnModel.getGroupDisplayColumnForGroup(e.getId());a.set(e,a.get(n))}),a},t.prototype.getColumnsWithSortingOrdered=function(e){return void 0===e&&(e=!1),th(this.getIndexedSortMap(e).entries()).sort(function(e,t){var n=eh(e,2);n[0];var r=n[1],o=eh(t,2);return o[0],r-o[1]}).map(function(e){return eh(e,1)[0]})},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered(!0).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.prototype.canColumnDisplayMixedSort=function(e){var t=this.gridOptionsService.isColumnsSortingCoupledToGroup(),n=!!e.getColDef().showRowGroup;return t&&n},t.prototype.getDisplaySortForColumn=function(e){var t=this.columnModel.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!(null==t?void 0:t.length))return e.getSort();var n=e.getColDef().field?th([e],t):t,r=n[0].getSort();return n.every(function(e){return e.getSort()==r})?r:"mixed"},t.prototype.getDisplaySortIndexForColumn=function(e){return this.getIndexedSortMap().get(e)},t.DEFAULT_SORTING_ORDER=["asc","desc",null],Jp([$("columnModel")],t.prototype,"columnModel",void 0),n=Jp([z("sortController")],t)}(Le),rh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rh(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:Ve.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:Ve.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([z("columnHoverService")],t)}(Le),ih=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ah=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.executeNextFuncs=[],t.executeLaterFuncs=[],t.active=!1,t.animationThreadCount=0,t}return ih(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.gridOptionsService.is("suppressColumnMoveAnimation")||this.gridOptionsService.is("enableRtl")||(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))},ah([$("ctrlsService")],t.prototype,"ctrlsService",void 0),ah([G],t.prototype,"postConstruct",null),ah([z("columnAnimationService")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ch=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lh(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.checkPageSize.bind(e)),e.addManagedListener(e.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,e.checkPageSize.bind(e)),e.checkPageSize()})},t.prototype.notActive=function(){return!this.gridOptionsService.is("paginationAutoPageSize")||null==this.centerRowContainerCon},t.prototype.checkPageSize=function(){var e=this;if(!this.notActive()){var t=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(t>0){var n=function(){var n=e.gridOptionsService.getRowHeightAsNumber(),r=Math.floor(t/n);e.gridOptionsService.set("paginationPageSize",r)};this.isBodyRendered?k(function(){return n()},50)():(n(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},ch([$("ctrlsService")],t.prototype,"ctrlsService",void 0),ch([G],t.prototype,"postConstruct",null),ch([z("paginationAutoPageSizeService")],t)}(Le),dh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ph=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return dh(t,e),t.prototype.init=function(){this.active=this.gridOptionsService.is("valueCache"),this.neverExpires=this.gridOptionsService.is("valueCacheNeverExpires")},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},t.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},ph([G],t.prototype,"init",null),ph([z("valueCache")],t)}(Le),fh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},mh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fh(t,e),t.prototype.init=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Ve.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){"paste"!==e.source&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsService.is("suppressChangeDetection")){if(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsService.is("aggregateOnlyChangedColumns"),r=new pd(n,this.clientSideRowModel.getRootNode());r.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(r)}this.rowRenderer.refreshCells()}},gh([$("rowModel")],t.prototype,"rowModel",void 0),gh([$("rowRenderer")],t.prototype,"rowRenderer",void 0),gh([G],t.prototype,"init",null),gh([z("changeDetectionService")],t)}(Le),vh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ah=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vh(t,e),t.prototype.adaptFunction=function(e,t){var n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?n.functionAdapter(t):null},t.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){return this.eGui},t.prototype.init=function(t){var n=e(t),r=typeof n;this.eGui="string"!==r&&"number"!==r&&"boolean"!==r?null!=n?n:ar("<span></span>"):ar("<span>"+n+"</span>")},t}()},t.prototype.doesImplementIComponent=function(e){return!!e&&e.prototype&&"getGui"in e.prototype},yh([$("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),yh([z("agComponentUtils")],t)}(Le),wh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wh(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)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},bh([$("agComponentUtils")],t.prototype,"agComponentUtils",void 0),bh([G],t.prototype,"postConstruct",null),bh([z("componentMetadataProvider")],t)}(Le),Ch=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Eh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sh=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Oh={"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}},xh={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Dh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.calculatedSizes={},t}return Ch(t,e),t.prototype.postConstruct=function(){var e,t=this,n=null!==(e=this.getTheme().el)&&void 0!==e?e:this.eGridDiv;this.mutationObserver=new MutationObserver(function(){t.calculatedSizes={},t.fireGridStylesChangedEvent()}),this.mutationObserver.observe(n||this.eGridDiv,{attributes:!0,attributeFilter:["class"]})},t.prototype.fireGridStylesChangedEvent=function(){var e={type:Ve.EVENT_GRID_STYLES_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.getSassVariable=function(e){var t=this.getTheme(),n=t.themeFamily,r=t.el;if(n&&0===n.indexOf("ag-theme")){this.calculatedSizes||(this.calculatedSizes={}),this.calculatedSizes[n]||(this.calculatedSizes[n]={});var o=this.calculatedSizes[n][e];return null!=o?o:(this.calculatedSizes[n][e]=this.calculateValueForSassProperty(e,n,r),this.calculatedSizes[n][e])}},t.prototype.calculateValueForSassProperty=function(e,t,n){var r,o="ag-theme-"+(t.match("material")?"material":t.match("balham")?"balham":t.match("alpine")?"alpine":"custom"),i=Oh[o][e],a=this.gridOptionsService.getDocument();if(n||(n=this.eGridDiv),!xh[e])return i;var s=xh[e],l=a.createElement("div"),c=Array.from(n.classList);(r=l.classList).add.apply(r,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Sh(arguments[t]));return e}([t],c)),l.style.position="absolute";var u=s.reduce(function(e,t){var n=a.createElement("div");return n.style.position="static",n.classList.add(t),e.appendChild(n),n},l),d=0;if(a.body){a.body.appendChild(l);var p=-1!==e.toLowerCase().indexOf("height")?"height":"width";d=parseInt(window.getComputedStyle(u)[p],10),a.body.removeChild(l)}return d||i},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},t.prototype.chartMenuPanelWidth=function(){return this.getSassVariable("chartMenuPanelWidth")},t.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/g,t=this.eGridDiv,n=null,r=[];t;){if(n=e.exec(t.className)){var o=t.className.match(e);o&&(r=o);break}t=t.parentElement||void 0}if(!n)return{allThemes:r};var i=n[0];return{theme:i,el:t,themeFamily:i.replace(/-dark$/,""),allThemes:r}},t.prototype.getFromTheme=function(e,t){var n;return null!==(n=this.getSassVariable(t))&&void 0!==n?n:e},t.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},t.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},t.prototype.setRowHeightVariable=function(e){var t=e+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=t&&this.eGridDiv.style.setProperty("--ag-line-height",t)},t.prototype.getMinColWidth=function(){var e=this.getFromTheme(null,"headerCellMinWidth");return o(e)?Math.max(e,10):10},t.prototype.destroy=function(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),e.prototype.destroy.call(this)},Eh([$("eGridDiv")],t.prototype,"eGridDiv",void 0),Eh([G],t.prototype,"postConstruct",null),Eh([z("environment")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return Ph(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=Cn(),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},Mh([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Mh([(n=q("loggerFactory"),function(e,t){n(e,t,0)})],t.prototype,"agWire",null),Mh([G],t.prototype,"postConstruct",null),Mh([z("rowContainerHeightService")],t);var n}(Le),Rh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ih=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rh(t,e),t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.isRowSelectableFunc=this.gridOptionsService.get("isRowSelectable")},t.prototype.updateSelectableAfterGrouping=function(e){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){var r;e.group&&(e.hasChildren()&&n.recurseDown(t(e),t),r=n.groupSelectsChildren?o((t(e)||[]).find(function(e){return!0===e.selectable})):!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e),e.setRowSelectable(r))})},Ih([G],t.prototype,"init",null),Ih([z("selectableService")],t)}(Le),kh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bh=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t.areListenersSetup=!1,t}return kh(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsService.is("enableRtl");this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",xr(e?"last":"first",this.gridOptionsService)),this.btPrevious.insertAdjacentElement("afterbegin",xr(e?"next":"previous",this.gridOptionsService)),this.btNext.insertAdjacentElement("afterbegin",xr(e?"previous":"next",this.gridOptionsService)),this.btLast.insertAdjacentElement("afterbegin",xr(e?"first":"last",this.gridOptionsService)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.onPaginationChanged()},t.prototype.onPaginationChanged=function(){var e=this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel");this.setDisplayed(e),e&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels())},t.prototype.setupListeners=function(){var e=this;this.areListenersSetup||(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,r=t.fn;e.addManagedListener(n,"click",r),e.addManagedListener(n,"keydown",function(e){e.key!==Pr.ENTER&&e.key!==Pr.SPACE||(e.preventDefault(),r())})}),this.areListenersSetup=!0)},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.gridOptionsService.getCallback("paginationNumberFormatter");if(t)return t({value:e});var n=this.localeService.getLocaleTextFunc();return Rn(e,n("thousandSeparator",","),n("decimalSeparator","."))},t.prototype.getTemplate=function(){var e=this.localeService.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),r=e("of","of"),o=e("firstPage","First Page"),i=e("previousPage","Previous Page"),a=e("nextPage","Next Page"),s=e("lastPage","Last Page"),l=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+l+'">\n                <span class="ag-paging-row-summary-panel" role="status">\n                    <span id="ag-'+l+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    <span id="ag-'+l+'-to">'+n+'</span>\n                    <span id="ag-'+l+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    <span id="ag-'+l+'-of">'+r+'</span>\n                    <span id="ag-'+l+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n                </span>\n                <span class="ag-paging-page-summary-panel" role="presentation">\n                    <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+o+'"></div>\n                    <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+i+'"></div>\n                    <span class="ag-paging-description" role="status">\n                        <span id="ag-'+l+'-start-page">'+t+'</span>\n                        <span id="ag-'+l+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n                        <span id="ag-'+l+'-of-page">'+r+'</span>\n                        <span id="ag-'+l+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n                    </span>\n                    <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+a+'"></div>\n                    <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n                </span>\n            </div>'},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var r=this.isZeroPagesToDisplay(),o=t&&e===n-1;this.nextButtonDisabled=o||r,this.lastButtonDisabled=!t||r||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,t){Gt(e,t),e.classList.toggle("ag-disabled",t),t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","0")},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.getPageSize(),o=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;if(this.isZeroPagesToDisplay()?e=t=0:(t=(e=r*n+1)+r-1,o&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.rowNodeBlockLoader.isLoading()){var a=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=a("pageLastRowUnknown","?")}else this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=e?this.paginationProxy.getMasterRowCount():null;if(1===n){var r=this.paginationProxy.getRow(0);if(r&&r.group&&!r.groupData&&!r.aggData)return void this.setTotalLabelsToZero()}if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var o=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=o,this.lbRecordCount.innerHTML=o}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},Lh([$("paginationProxy")],t.prototype,"paginationProxy",void 0),Lh([$("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Lh([oo("btFirst")],t.prototype,"btFirst",void 0),Lh([oo("btPrevious")],t.prototype,"btPrevious",void 0),Lh([oo("btNext")],t.prototype,"btNext",void 0),Lh([oo("btLast")],t.prototype,"btLast",void 0),Lh([oo("lbRecordCount")],t.prototype,"lbRecordCount",void 0),Lh([oo("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),Lh([oo("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),Lh([oo("lbCurrent")],t.prototype,"lbCurrent",void 0),Lh([oo("lbTotal")],t.prototype,"lbTotal",void 0),Lh([G],t.prototype,"postConstruct",null),t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(pp||(pp={}));var Uh=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.inProgress=!1,n.destroyRequested=!1,n.manuallyDisplayed=!1,n}return Nh(t,e),t.prototype.updateLayoutClasses=function(e,t){var n=this.eOverlayWrapper.classList;n.toggle(hs.AUTO_HEIGHT,t.autoHeight),n.toggle(hs.NORMAL,t.normal),n.toggle(hs.PRINT,t.print)},t.prototype.postConstruct=function(){this.createManagedBean(new Os(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.addManagedListener(this.eventService,Ve.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsService.isRowModelType("clientSide")&&!this.gridOptionsService.get("rowData")&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},t.prototype.setWrapperTypeClass=function(e){var t=this.eOverlayWrapper.classList;t.toggle("ag-overlay-loading-wrapper",e===pp.Loading),t.toggle("ag-overlay-no-rows-wrapper",e===pp.NoRows)},t.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.is("suppressLoadingOverlay")){var e=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,pp.Loading)}},t.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.is("suppressNoRowsOverlay")){var e=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,pp.NoRows)}},t.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,{skipAriaHidden:!0}))},t.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),rr(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})},t.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsService.is("suppressNoRowsOverlay");e&&!t?this.showNoRowsOverlay():this.hideOverlay()},t.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},t.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},t.TEMPLATE='\n        <div class="ag-overlay" aria-hidden="true">\n            <div class="ag-overlay-panel">\n                <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n            </div>\n        </div>',jh([$("userComponentFactory")],t.prototype,"userComponentFactory",void 0),jh([$("paginationProxy")],t.prototype,"paginationProxy",void 0),jh([$("gridApi")],t.prototype,"gridApi",void 0),jh([$("columnModel")],t.prototype,"columnModel",void 0),jh([oo("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),jh([G],t.prototype,"postConstruct",null),t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Gh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vh(t,e),t.prototype.getFirstRow=function(){var e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e="top":this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e="bottom"),void 0===e?null:{rowIndex:t,rowPinned:e}},t.prototype.getLastRow=function(){var e,t=null,n=this.pinnedRowModel.getPinnedBottomRowCount(),r=this.pinnedRowModel.getPinnedTopRowCount();return n?(t="bottom",e=n-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):r&&(t="top",e=r-1),void 0===e?null:{rowIndex:e,rowPinned:t}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"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"top":if("top"!==t.rowPinned)return!0;break;case"bottom":if("bottom"!==t.rowPinned)return!1;break;default:if(o(t.rowPinned))return"top"!==t.rowPinned}return e.rowIndex<t.rowIndex},t.prototype.rowMax=function(e){var t,n=this;return e.forEach(function(e){(void 0===t||n.before(t,e))&&(t=e)}),t},t.prototype.rowMin=function(e){var t,n=this;return e.forEach(function(e){(void 0===t||n.before(e,t))&&(t=e)}),t},Hh([$("rowModel")],t.prototype,"rowModel",void 0),Hh([$("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Hh([$("paginationProxy")],t.prototype,"paginationProxy",void 0),Hh([z("rowPositionUtils")],t)}(Le),Wh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wh(t,e),t.prototype.createId=function(e){var t=e.rowIndex,n=e.rowPinned,r=e.column;return this.createIdFromValues({rowIndex:t,column:r,rowPinned:n})},t.prototype.createIdFromValues=function(e){var t=e.rowIndex,n=e.rowPinned;return t+"."+(null==n?"null":n)+"."+e.column.getId()},t.prototype.equals=function(e,t){var n=e.column===t.column,r=e.rowPinned===t.rowPinned,o=e.rowIndex===t.rowIndex;return n&&r&&o},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([z("cellPositionUtils")],t)}(Le),$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kh=function(e){this.cellValueChanges=e},Qh=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i.initialRange=n,i.finalRange=r,i.ranges=o,i}return $h(t,e),t}(Kh),qh=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.prototype.getCurrentStackSize=function(){return this.actionStack.length},e.DEFAULT_STACK_SIZE=10,e}(),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xh=function(){return Xh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xh.apply(this,arguments)},Zh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Jh=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ef=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellValueChanges=[],t.activeCellEdit=null,t.activeRowEdit=null,t.isPasting=!1,t.isRangeInAction=!1,t.onCellValueChanged=function(e){var n={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},r=null!==t.activeCellEdit&&t.cellPositionUtils.equals(t.activeCellEdit,n),o=null!==t.activeRowEdit&&t.rowPositionUtils.sameRow(t.activeRowEdit,n);if(r||o||t.isPasting||t.isRangeInAction){var i=e.rowPinned,a=e.rowIndex,s=e.column,l=e.oldValue,c=e.value,u={rowPinned:i,rowIndex:a,columnId:s.getColId(),newValue:c,oldValue:l};t.cellValueChanges.push(u)}},t.clearStacks=function(){t.undoStack.clear(),t.redoStack.clear()},t}return Yh(t,e),t.prototype.init=function(){var e=this;if(this.gridOptionsService.is("undoRedoCellEditing")){var t=this.gridOptionsService.getNum("undoRedoCellEditingLimit");t<=0||(this.undoStack=new qh(t),this.redoStack=new qh(t),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,Ve.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,function(t){t.keepUndoRedoStack||e.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),this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))}},t.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},t.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},t.prototype.undo=function(e){var t={type:Ve.EVENT_UNDO_STARTED,source:e};this.eventService.dispatchEvent(t);var n=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo"),r={type:Ve.EVENT_UNDO_ENDED,source:e,operationPerformed:n};this.eventService.dispatchEvent(r)},t.prototype.redo=function(e){var t={type:Ve.EVENT_REDO_STARTED,source:e};this.eventService.dispatchEvent(t);var n=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo"),r={type:Ve.EVENT_REDO_ENDED,source:e,operationPerformed:n};this.eventService.dispatchEvent(r)},t.prototype.undoRedo=function(e,t,n,r,o){if(!e)return!1;var i=e.pop();return!(!i||!i.cellValueChanges||(this.processAction(i,function(e){return e[r]},o),i instanceof Qh?this.processRange(i.ranges||[i[n]]):this.processCell(i.cellValueChanges),t.push(i),0))},t.prototype.processAction=function(e,t,n){var r=this;e.cellValueChanges.forEach(function(e){var o=e.rowIndex,i=e.rowPinned,a=e.columnId,s={rowIndex:o,rowPinned:i},l=r.getRowNode(s);l.displayed&&l.setDataValue(a,t(e),n)})},t.prototype.processRange=function(e){var t,n=this;this.rangeService.removeAllCellRanges(!0),e.forEach(function(r,o){if(r){var i=r.startRow,a=r.endRow;o===e.length-1&&(t={rowPinned:i.rowPinned,rowIndex:i.rowIndex,columnId:r.startColumn.getColId()},n.setLastFocusedCell(t));var s={rowStartIndex:i.rowIndex,rowStartPinned:i.rowPinned,rowEndIndex:a.rowIndex,rowEndPinned:a.rowPinned,columnStart:r.startColumn,columns:r.columns};n.rangeService.addCellRange(s)}})},t.prototype.processCell=function(e){var t=e[0],n={rowIndex:t.rowIndex,rowPinned:t.rowPinned},r=this.getRowNode(n),o={rowPinned:t.rowPinned,rowIndex:r.rowIndex,columnId:t.columnId};this.setLastFocusedCell(o,!!this.rangeService)},t.prototype.setLastFocusedCell=function(e,t){var n=e.rowIndex,r=e.columnId,o=e.rowPinned,i=this.gridBodyCtrl.getScrollFeature(),a=this.columnModel.getGridColumn(r);if(a){i.ensureIndexVisible(n),i.ensureColumnVisible(a);var s={rowIndex:n,column:a,rowPinned:o};this.focusService.setFocusedCell(Xh(Xh({},s),{forceBrowserFocus:!0})),t&&this.rangeService.setRangeToCell(s)}},t.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 Kh(e.cellValueChanges);e.pushActionsToUndoStack(t),e.activeRowEdit=null})},t.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(t){if(e.activeCellEdit=null,t.valueChanged&&!e.activeRowEdit&&!e.isPasting&&!e.isRangeInAction){var n=new Kh(e.cellValueChanges);e.pushActionsToUndoStack(n)}})},t.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 Kh(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1})},t.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_FILL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,Ve.EVENT_FILL_END,function(t){var n=new Qh(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isRangeInAction=!1})},t.prototype.addCellKeyListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,function(){e.isRangeInAction=!0}),this.addManagedListener(this.eventService,Ve.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,function(){var t;t=e.rangeService&&e.gridOptionsService.isEnableRangeSelection()?new Qh(e.cellValueChanges,void 0,void 0,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Jh(arguments[t]));return e}(e.rangeService.getCellRanges())):new Kh(e.cellValueChanges),e.pushActionsToUndoStack(t),e.isRangeInAction=!1})},t.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Zh([$("focusService")],t.prototype,"focusService",void 0),Zh([$("ctrlsService")],t.prototype,"ctrlsService",void 0),Zh([$("rowModel")],t.prototype,"rowModel",void 0),Zh([$("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Zh([$("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),Zh([$("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Zh([$("columnModel")],t.prototype,"columnModel",void 0),Zh([K("rangeService")],t.prototype,"rangeService",void 0),Zh([G],t.prototype,"init",null),Zh([z("undoRedoService")],t)}(Le),tf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tf(t,e),t.prototype.findHeader=function(e,t){var n,r,o;if(e.column instanceof ot?(r="getDisplayedGroup"+t,n=this.columnModel[r](e.column)):(o="getDisplayedCol"+t,n=this.columnModel[o](e.column)),n){var i=e.headerRowIndex;if(this.getHeaderRowType(i)===Hl.COLUMN_GROUP){var a=n;if(a.isPadding()&&this.isAnyChildSpanningHeaderHeight(a)){var s=this.getColumnVisibleChild(a,i,t),l=s.nextFocusColumn,c=s.nextRow;l&&(n=l,i=c)}}return{column:n,headerRowIndex:i}}},t.prototype.isAnyChildSpanningHeaderHeight=function(e){return!!e&&e.getLeafColumns().some(function(e){return e.isSpanHeaderHeight()})},t.prototype.getColumnVisibleParent=function(e,t){var n=this.getHeaderRowType(t),r=n===Hl.FLOATING_FILTER,o=n===Hl.COLUMN,i=r?e:e.getParent(),a=t-1;if(o&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;i&&i.isPadding();)i=i.getParent(),a--;a<0&&(i=e,a=t)}return{nextFocusColumn:i,nextRow:a}},t.prototype.getColumnVisibleChild=function(e,t,n){void 0===n&&(n="After");var r=e,o=t+1;if(this.getHeaderRowType(t)===Hl.COLUMN_GROUP){var i=e.getLeafColumns(),a="After"===n?i[0]:ue(i);if(this.isAnyChildSpanningHeaderHeight(a.getParent())){r=a;for(var s=a.getParent();s&&s!==e;)s=s.getParent(),o++}else r=e.getDisplayedChildren()[0]}return{nextFocusColumn:r,nextRow:o}},t.prototype.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},t.prototype.findColAtEdgeForHeaderRow=function(e,t){var n=this.columnModel.getAllDisplayedColumns(),r=n["start"===t?0:n.length-1];if(r){var o=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned()).getRowType(e);return o==Hl.COLUMN_GROUP?{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(r,e)}:{headerRowIndex:null==o?-1:e,column:r}}},nf([$("columnModel")],t.prototype,"columnModel",void 0),nf([$("ctrlsService")],t.prototype,"ctrlsService",void 0),nf([z("headerPositionUtils")],t)}(Le),of=function(){function e(){}return e.prototype.buildColumnDefs=function(e,t,n){var r=this,o=[],i={};return e.forEach(function(e){for(var a=!0,s=r.createDefFromColumn(e,t,n),l=e.getOriginalParent();l;){var c=null;if(l.isPadding())l=l.getOriginalParent();else{var u=i[l.getGroupId()];if(u){u.children.push(s),a=!1;break}(c=r.createDefFromGroup(l))&&(c.children=[s],i[c.groupId]=c,s=c,l=l.getOriginalParent())}}a&&o.push(s)}),o},e.prototype.createDefFromGroup=function(e){var t=g(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t},e.prototype.createDefFromColumn=function(e,t,n){var r=g(e.getColDef());return r.colId=e.getColId(),r.width=e.getActualWidth(),r.rowGroup=e.isRowGroupActive(),r.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,r.pivot=e.isPivotActive(),r.pivotIndex=e.isPivotActive()?n.indexOf(e):null,r.aggFunc=e.isValueActive()?e.getAggFunc():null,r.hide=!e.isVisible()||void 0,r.pinned=e.isPinned()?e.getPinned():null,r.sort=e.getSort()?e.getSort():null,r.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,r},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([z("columnDefFactory")],e)}(),af=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sf=function(){function e(){}return e.prototype.getInitialRowClasses=function(e){var t=[];return o(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"),Ae(t,this.processClassesFromGridOptions(e.rowNode)),Ae(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&&("left"===e.pinned&&t.push("ag-cell-last-left-pinned"),"right"===e.pinned&&t.push("ag-cell-first-right-pinned")),t},e.prototype.processClassesFromGridOptions=function(e){var t=[],n=function(e){"string"==typeof e?t.push(e):Array.isArray(e)&&e.forEach(function(e){return t.push(e)})},r=this.gridOptionsService.get("rowClass");if(r){if("function"==typeof r)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];n(r)}var o=this.gridOptionsService.getCallback("getRowClass");return o&&n(o({data:e.data,node:e,rowIndex:e.rowIndex})),t},e.prototype.preProcessRowClassRules=function(e){var t=[];return this.processRowClassRules(e,function(e){t.push(e)},function(e){}),t},e.prototype.processRowClassRules=function(e,t,n){var r={data:e.data,node:e,rowIndex:e.rowIndex,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};this.stylingService.processClassRules(this.gridOptionsService.get("rowClassRules"),r,t,n)},e.prototype.calculateRowLevel=function(e){return e.group?e.level:e.parent?e.parent.level+1:0},af([$("stylingService")],e.prototype,"stylingService",void 0),af([$("gridOptionsService")],e.prototype,"gridOptionsService",void 0),af([z("rowCssClassCalculator")],e)}(),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lf(t,e),t.prototype.init=function(){var e=this;this.isAccentedSort=this.gridOptionsService.is("accentedSort"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener("accentedSort",function(t){return e.isAccentedSort=t.currentValue}),this.addManagedPropertyListener("autoGroupColumnDef",function(){return e.primaryColumnsSortGroups=e.gridOptionsService.isColumnsSortingCoupledToGroup()})},t.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})},t.prototype.compareRowNodes=function(e,t,n){for(var r=t.rowNode,o=n.rowNode,i=0,a=e.length;i<a;i++){var s,l=e[i],c="desc"===l.sort,u=this.getValue(r,l.column),d=this.getValue(o,l.column),p=this.getComparator(l,r);if(s=p?p(u,d,r,o,c):Gr.defaultComparator(u,d,this.isAccentedSort),!isNaN(s)&&0!==s)return"asc"===l.sort?s:-1*s}return t.currentPos-n.currentPos},t.prototype.getComparator=function(e,t){var n=e.column,r=n.getColDef().comparator;if(null!=r)return r;if(n.getColDef().showRowGroup){var o=!t.group&&n.getColDef().field;if(o){var i=this.columnModel.getPrimaryColumn(o);if(i)return i.getColDef().comparator}}},t.prototype.getValue=function(e,t){var n,r;if(!this.primaryColumnsSortGroups)return this.valueService.getValue(t,e,!1,!1);if(e.rowGroupColumn===t){if(this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotActive())){if(t.getColDef().keyCreator)return e.key;var o=null===(n=e.allLeafChildren)||void 0===n?void 0:n[0];return o?this.valueService.getValue(t,o,!1,!1):void 0}var i=this.columnModel.getGroupDisplayColumnForGroup(t.getId());if(!i)return;return null===(r=e.groupData)||void 0===r?void 0:r[i.getId()]}return e.group&&t.getColDef().showRowGroup?void 0:this.valueService.getValue(t,e,!1,!1)},cf([$("valueService")],t.prototype,"valueService",void 0),cf([$("columnModel")],t.prototype,"columnModel",void 0),cf([G],t.prototype,"init",null),cf([z("rowNodeSorter")],t)}(Le),df=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}var n;return df(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.stickyTopCenterRowContainerCtrl&&null!=this.stickyTopLeftRowContainerCtrl&&null!=this.stickyTopRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollComp&&null!=this.fakeVScrollComp&&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,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollComp=function(e){this.fakeHScrollComp=e,this.checkReady()},t.prototype.registerFakeVScrollComp=function(e){this.fakeVScrollComp=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.registerStickyTopCenterRowContainerCtrl=function(e){this.stickyTopCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopLeftRowContainerCon=function(e){this.stickyTopLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopRightRowContainerCtrl=function(e){this.stickyTopRightRowContainerCtrl=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"left":this.leftHeaderRowContainerCtrl=e;break;case"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.getFakeHScrollComp=function(){return this.fakeHScrollComp},t.prototype.getFakeVScrollComp=function(){return this.fakeVScrollComp},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.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},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"left":return this.leftHeaderRowContainerCtrl;case"right":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},t.NAME="ctrlsService",function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([z(n.NAME)],t)}(Le),hf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ff=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registry={},t}return hf(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},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([z("ctrlsFactory")],t)}(Le),gf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vf=function(e){function t(t,n){var r=e.call(this,t)||this;return r.direction=n,r.hideTimeout=null,r}return gf(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",An()||wn())},t.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=Dn(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},t.prototype.addActiveListenerToggles=function(){var e=this,t=this.getGui();["mouseenter","mousedown","touchstart"].forEach(function(n){return e.addManagedListener(t,n,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!0)})}),["mouseleave","touchend"].forEach(function(n){return e.addManagedListener(t,n,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!1)})})},t.prototype.onScrollVisibilityChanged=function(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.setScrollVisible()},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL,function(t){t.direction===e.direction&&(null!==e.hideTimeout&&(window.clearTimeout(e.hideTimeout),e.hideTimeout=null),e.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))}),this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL_END,function(){e.hideTimeout=window.setTimeout(function(){e.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),e.hideTimeout=null},400)})},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},mf([oo("eViewport")],t.prototype,"eViewport",void 0),mf([oo("eContainer")],t.prototype,"eContainer",void 0),mf([$("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),mf([$("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(no),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Af=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wf=function(e){function t(){return e.call(this,t.TEMPLATE,"horizontal")||this}return yf(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,Ve.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",n),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new Bl(function(e){return t.eContainer.style.width=e+"px"}))},t.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsService.is("enableRtl"),e.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},t.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},t.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=e+"px"}},t.prototype.onScrollVisibilityChanged=function(){e.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.columnModel.getDisplayedColumnsRightWidth(),n=!this.enableRtl&&e,r=this.gridOptionsService.getScrollbarWidth();n&&(t+=r),mr(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=r);var o=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(o+=r),mr(this.eLeftSpacer,o),this.eLeftSpacer.classList.toggle("ag-scroller-corner",o<=r)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,n=this.gridOptionsService.is("suppressHorizontalScroll"),r=e&&this.gridOptionsService.getScrollbarWidth()||0,o=n?0:0===r&&t?16:r;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),vr(this.getGui(),o),vr(this.eViewport,o),vr(this.eContainer,o),this.setDisplayed(e,{skipAriaHidden:!0})},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>',Af([oo("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),Af([oo("eRightSpacer")],t.prototype,"eRightSpacer",void 0),Af([$("columnModel")],t.prototype,"columnModel",void 0),Af([$("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Af([G],t.prototype,"postConstruct",null),t}(vf),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_f=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bf(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.addManagedPropertyListener("domLayout",e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsService.isDomLayout("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},_f([$("columnModel")],t.prototype,"columnModel",void 0),_f([G],t.prototype,"postConstruct",null),_f([z("pinnedWidthService")],t)}(Le),Ef=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Of=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.events=[],t}return Ef(t,e),t.prototype.postConstruct=function(){"clientSide"==this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var t=this;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()):this.eventService.dispatchEvent(e)},Sf([$("animationFrameService")],t.prototype,"animationFrameService",void 0),Sf([$("rowModel")],t.prototype,"rowModel",void 0),Sf([G],t.prototype,"postConstruct",null),Sf([z("rowNodeEventThrottle")],t)}(Le),xf=function(){return xf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xf.apply(this,arguments)},Df=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pf=function(e,t){return function(n,r){t(n,r,e)}},Mf=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function Tf(e){return!0===e||"true"===e}var Rf,If=function(){function e(){this.destroyed=!1,this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new ee}return Object.defineProperty(e.prototype,"context",{get:function(){return this.gridOptions.context},enumerable:!1,configurable:!0}),e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.api=e,this.columnApi=t},e.prototype.init=function(){this.gridOptionLookup=new Set(function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Mf(arguments[t]));return e}(Ke.ALL_PROPERTIES,Ke.EVENT_CALLBACKS));var e=!this.is("suppressAsyncEvents");this.eventService.addGlobalListener(this.globalEventHandler.bind(this),e),this.getScrollbarWidth()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},e.prototype.is=function(e){return Tf(this.gridOptions[e])},e.prototype.get=function(e){return this.gridOptions[e]},e.prototype.getNum=function(e){return function(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}(this.gridOptions[e])},e.prototype.getCallback=function(e){return this.mergeGridCommonParams(this.gridOptions[e])},e.prototype.exists=function(e){return o(this.gridOptions[e])},e.prototype.mergeGridCommonParams=function(e){var t=this;return e?function(n){var r=n;return r.api=t.api,r.columnApi=t.columnApi,r.context=t.context,e(r)}:e},e.prototype.set=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r={}),this.gridOptionLookup.has(e)){var o=this.gridOptions[e];if(n||o!==t){this.gridOptions[e]=t;var i=xf({type:e,currentValue:t,previousValue:o},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.globalEventHandler=function(e,t){if(!this.destroyed){var n=Ke.getCallbackForEvent(e);"function"==typeof this.gridOptions[n]&&this.gridOptions[n](t)}},e.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var e="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:On();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:Ve.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.isRowModelType=function(e){return this.gridOptions.rowModelType===e||"clientSide"===e&&i(this.gridOptions.rowModelType)},e.prototype.isDomLayout=function(e){var t;return(null!==(t=this.gridOptions.domLayout)&&void 0!==t?t:"normal")===e},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.useAsyncEvents=function(){return!this.is("suppressAsyncEvents")},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.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:n,estimated:!0};var r={node:e,data:e.data},o=this.getCallback("getRowHeight")(r);if(this.isNumeric(o))return 0===o&&x(function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")},"invalidRowHeight"),{height:Math.max(1,o),estimated:!1}}return e.detail&&this.is("masterDetail")?this.getMasterDetailRowHeight():{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}},e.prototype.getMasterDetailRowHeight=function(){return this.is("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}},e.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||i(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.environment.setRowHeightVariable(e),e):(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e&&isFinite(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 r=this.getDomDataKey(),o=e[r];i(o)&&(o={},e[r]=o),o[t]=n},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&o(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&o(e)?e:document},e.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},e.prototype.getRowIdFunc=function(){var e=this.getCallback("getRowId");if(e)return e;var t=this.gridOptions.getRowNodeId;return t?function(e){return t(e.data)}:void 0},e.prototype.getAsyncTransactionWaitMillis=function(){return o(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},e.prototype.isAnimateRows=function(){return!this.is("ensureDomOrder")&&this.is("animateRows")},e.prototype.isTreeData=function(){return this.is("treeData")&&te.assertRegistered(X.RowGroupingModule,"Tree Data")},e.prototype.isMasterDetail=function(){return this.is("masterDetail")&&te.assertRegistered(X.MasterDetailModule,"masterDetail")},e.prototype.isEnableRangeSelection=function(){return this.is("enableRangeSelection")&&te.isRegistered(X.RangeSelectionModule)},e.prototype.isColumnsSortingCoupledToGroup=function(){var e=this.gridOptions.autoGroupColumnDef;return this.isRowModelType("clientSide")&&!(null==e?void 0:e.comparator)},e.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"==typeof e?this.getCallback("groupAggFiltering"):Tf(e)?function(){return!0}:void 0},e.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?rt("multipleColumns",this.gridOptions.groupDisplayType):this.is("groupHideOpenParents")},e.prototype.isGroupUseEntireRow=function(e){return!e&&!!this.gridOptions.groupDisplayType&&rt("groupRows",this.gridOptions.groupDisplayType)},Df([$("gridOptions")],e.prototype,"gridOptions",void 0),Df([$("eventService")],e.prototype,"eventService",void 0),Df([$("environment")],e.prototype,"environment",void 0),Df([$("eGridDiv")],e.prototype,"eGridDiv",void 0),Df([Pf(0,q("gridApi")),Pf(1,q("columnApi"))],e.prototype,"agWire",null),Df([G],e.prototype,"init",null),Df([W],e.prototype,"destroy",null),Df([z("gridOptionsService")],e)}(),Ff=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ff(t,e),t.prototype.getLocaleTextFunc=function(){var e=this.gridOptionsService.getCallback("getLocaleText");if(e)return function(t,n,r){return e({key:t,defaultValue:n,variableValues:r})};var t=this.gridOptionsService.get("localeTextFunc");if(t)return t;var n=this.gridOptionsService.get("localeText");return function(e,t,r){var o=n&&n[e];if(o&&r&&r.length)for(var i=0;!(i>=r.length)&&-1!==o.indexOf("${variable}");)o=o.replace("${variable}",r[i++]);return null!=o?o:t}},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([z("localeService")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bf=function(e){function t(){return e.call(this,t.TEMPLATE,"vertical")||this}return Lf(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.createManagedBean(new Tl(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.invisibleScrollbar,n=e&&this.gridOptionsService.getScrollbarWidth()||0,r=0===n&&t?16:n;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),mr(this.getGui(),r),mr(this.eViewport,r),mr(this.eContainer,r),this.setDisplayed(e,{skipAriaHidden:!0})},t.TEMPLATE='<div class="ag-body-vertical-scroll" aria-hidden="true">\n            <div class="ag-body-vertical-scroll-viewport" ref="eViewport">\n                <div class="ag-body-vertical-scroll-container" ref="eContainer"></div>\n            </div>\n        </div>',function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([G],t.prototype,"postConstruct",null),t}(vf),Nf=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},jf=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Nf(arguments[t]));return e},Uf=function(){function e(e,t,n){t?(this.gridOptions=t,(new Vf).create(e,t,function(t){var n=new Xp(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}(),Vf=function(){function e(){}return e.prototype.create=function(e,t,n,r,o){var i=this,a=!!t.debug,s=this.getRegisteredModules(o),l=this.createBeansList(t.rowModelType,s),c=this.createProvidedBeans(e,t,o);if(l){var u={providedBeanInstances:c,beanClasses:l,debug:a},d=new zp("AG Grid",function(){return t.debug}),p=new zp("Context",function(){return u.debug}),h=new V(u,p),f=h.getBean("beans");this.registerModuleUserComponents(f,s),this.registerStackComponents(f,s),this.registerControllers(f,s),n(h),f.ctrlsService.whenReady(function(){i.setColumnsAndData(f),i.dispatchGridReadyEvent(f);var e=te.isRegistered(X.EnterpriseCoreModule);d.log("initialised successfully, enterprise = "+e)}),r&&r(h)}},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=te.getRegisteredModules(),r=[],o={};function i(e,t){var n;o[(n=t).moduleName]||(o[n.moduleName]=!0,r.push(n),te.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,!te.isPackageBased())),r},e.prototype.registerModuleUserComponents=function(e,t){this.extractModuleEntity(t,function(e){return e.userComponents?e.userComponents:[]}).forEach(function(t){e.userComponentRegistry.registerDefaultComponent(t.componentName,t.componentClass)})},e.prototype.createProvidedBeans=function(e,t,n){var r=n?n.frameworkOverrides:null;i(r)&&(r=new wp);var o={gridOptions:t,eGridDiv:e,globalEventListener:n?n.globalEventListener:null,frameworkOverrides:r};return n&&n.providedBeanInstances&&Object.assign(o,n.providedBeanInstances),o},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:Ho},{componentName:"AgRadioButton",componentClass:Wo},{componentName:"AgToggleButton",componentClass:Sd},{componentName:"AgInputTextField",componentClass:ui},{componentName:"AgInputTextArea",componentClass:xd},{componentName:"AgInputNumberField",componentClass:pi},{componentName:"AgInputRange",componentClass:Pd},{componentName:"AgSelect",componentClass:Bo},{componentName:"AgSlider",componentClass:Rd},{componentName:"AgGridBody",componentClass:Yl},{componentName:"AgHeaderRoot",componentClass:Pu},{componentName:"AgSortIndicator",componentClass:Li},{componentName:"AgPagination",componentClass:Bh},{componentName:"AgOverlayWrapper",componentClass:Uh},{componentName:"AgGroupComponent",componentClass:kd},{componentName:"AgPanel",componentClass:ep},{componentName:"AgDialog",componentClass:rp},{componentName:"AgRowContainer",componentClass:mc},{componentName:"AgFakeHorizontalScroll",componentClass:wf},{componentName:"AgFakeVerticalScroll",componentClass:Bf}],n=this.extractModuleEntity(e,function(e){return e.agStackComponents?e.agStackComponents:[]});return t.concat(n)},e.prototype.createBeansList=function(e,t){void 0===e&&(e="clientSide");var n=t.filter(function(t){return!t.rowModel||t.rowModel===e}),r={clientSide:X.ClientSideRowModelModule,infinite:X.InfiniteRowModelModule,serverSide:X.ServerSideRowModelModule,viewport:X.ViewportRowModelModule};if(r[e]){if(te.assertRegistered(r[e],"rowModelType = '"+e+"'")){var o=[el,Gh,zh,rf,uh,fs,Na,Ah,_h,Hu,is,Th,Ru,kf,nt,ud,us,xt,ee,If,fp,Tp,ys,Ct,Eu,wd,rd,jp,je,Vp,xp,ac,hh,Lp,Wp,St,Qu,ku,pa,Ip,lp,nc,Dh,Ep,sd,Cd,Jl,nh,oh,sh,Fh,ct,mh,zu,ef,Pt,of,sf,vd,uf,pf,Cf,Of,ff],i=this.extractModuleEntity(n,function(e){return e.beans?e.beans:[]});o.push.apply(o,jf(i));var a=[];return o.forEach(function(e){a.indexOf(e)<0&&a.push(e)}),a}}else console.error("AG Grid: could not find row model for rowModelType = "+e)},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],jf(e.map(t)))},e.prototype.setColumnsAndData=function(e){var t=e.gridOptionsService.get("columnDefs");e.columnModel.setColumnDefs(t||[],"gridInitializing"),e.rowModel.start()},e.prototype.dispatchGridReadyEvent=function(e){var t={type:Ve.EVENT_GRID_READY};e.eventService.dispatchEvent(t)},e}(),Hf=function(){function e(){}return e.prototype.wrap=function(e,t,n,r){var o=this;void 0===n&&(n=[]);var i=this.createWrapper(e,r);return t.forEach(function(e){o.createMethod(i,e,!0)}),n.forEach(function(e){o.createMethod(i,e,!1)}),i},e.prototype.unwrap=function(e){return e},e.prototype.createMethod=function(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))},e.prototype.createMethodProxy=function(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn("AG Grid: Framework component is missing the method "+t+"()"),null)}},e}(),Gf={columnGroup:["column","stackedColumn","normalizedColumn"],barGroup:["bar","stackedBar","normalizedBar"],pieGroup:["pie","doughnut"],lineGroup:["line"],scatterGroup:["scatter","bubble"],areaGroup:["area","stackedArea","normalizedArea"],histogramGroup:["histogram"],combinationGroup:["columnLineCombo","areaColumnCombo","customCombo"]},Wf=["chartSettings","chartData","chartFormat"],zf=["chartUnlink","chartLink","chartDownload"],$f={settings:"chartSettings",data:"chartData",format:"chartFormat"},Kf=0;!function(e){e.InsideBase="insideBase",e.InsideEnd="insideEnd",e.Center="center",e.OutsideEnd="outsideEnd"}(Rf||(Rf={}));var Qf=void 0===n.g?{}:n.g;Qf.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Qf.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Qf.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Qf.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Qf.Node="undefined"==typeof Node?{}:Node,Qf.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var qf,Yf=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Xf=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Yf(arguments[t]));return e},Zf=function(){function e(t,n,r,o,i,a){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsService=n,this.eventService=r,this.columnModel=o,this.beans=a,this.selectionService=i,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.gridOptionsService.is("suppressParentsInRowNodes"),this.isRowMasterFunc=this.gridOptionsService.get("isRowMaster"),this.doingTreeData=this.gridOptionsService.isTreeData(),this.doingMasterDetail=this.gridOptionsService.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return Gr.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){var n=this;if("string"!=typeof t){var r=this.rootNode,o=this.rootNode.sibling;r.childrenAfterFilter=null,r.childrenAfterGroup=null,r.childrenAfterAggFilter=null,r.childrenAfterSort=null,r.childrenMapped=null,r.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?r.allLeafChildren=t.map(function(t){return n.createNode(t,n.rootNode,e.TOP_LEVEL)}):(r.allLeafChildren=[],r.childrenAfterGroup=[]),o&&(o.childrenAfterFilter=r.childrenAfterFilter,o.childrenAfterGroup=r.childrenAfterGroup,o.childrenAfterAggFilter=r.childrenAfterAggFilter,o.childrenAfterSort=r.childrenAfterSort,o.childrenMapped=r.childrenMapped,o.allLeafChildren=r.allLeafChildren)}else console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.updateRowData=function(e,t){var n={remove:[],update:[],add:[]},r=[];return this.executeRemove(e,n,r),this.executeUpdate(e,n,r),this.executeAdd(e,n),this.updateSelection(r,"rowDataChanged"),t&&Gr.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.updateSelection=function(e,t){var n=e.length>0;if(n&&e.forEach(function(e){e.setSelected(!1,!1,!0,t)}),this.selectionService.updateGroupsFromChildrenSelections(t),n){var r={type:Ve.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(r)}},e.prototype.executeAdd=function(t,n){var r,o=this,i=t.add,a=t.addIndex;if(!Gr.missingOrEmpty(i)){var s=i.map(function(t){return o.createNode(t,o.rootNode,e.TOP_LEVEL)});if("number"==typeof a&&a>=0){var l=this.rootNode.allLeafChildren,c=l.length,u=a;if(this.doingTreeData&&a>0&&c>0)for(var d=0;d<c;d++)if((null===(r=l[d])||void 0===r?void 0:r.rowIndex)==a-1){u=d+1;break}var p=l.slice(0,u),h=l.slice(u,l.length);this.rootNode.allLeafChildren=Xf(p,s,h)}else this.rootNode.allLeafChildren=Xf(this.rootNode.allLeafChildren,s);this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),n.add=s}},e.prototype.executeRemove=function(e,t,n){var r=this,o=e.remove;if(!Gr.missingOrEmpty(o)){var i={};o.forEach(function(e){var o=r.lookupRowNode(e);o&&(o.isSelected()&&n.push(o),o.clearRowTopAndRowIndex(),i[o.id]=!0,delete r.allNodesMap[o.id],t.remove.push(o))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(e){return!i[e.id]}),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},e.prototype.executeUpdate=function(t,n,r){var o=this,i=t.update;Gr.missingOrEmpty(i)||i.forEach(function(t){var i=o.lookupRowNode(t);i&&(i.updateData(t),!i.selectable&&i.isSelected()&&r.push(i),o.setMasterForRow(i,t,e.TOP_LEVEL,!1),n.update.push(i))})},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsService.getRowIdFunc();if(n){var r=n({data:e,level:0});if(!(t=this.allNodesMap[r]))return console.error("AG Grid: could not find row id="+r+", data item was not found for this id"),null}else if(!(t=this.rootNode.allLeafChildren.find(function(t){return t.data===e})))return console.error("AG Grid: could not find data item as object was not found",e),console.error("Consider using getRowId to help the Grid find matching row data"),null;return t||null},e.prototype.createNode=function(e,t,n){var r=new ra(this.beans);return r.group=!1,this.setMasterForRow(r,e,n,!0),t&&!this.suppressParentsInRowNodes&&(r.parent=t),r.level=n,r.setDataAndId(e,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn("AG Grid: duplicate node id '"+r.id+"' detected from getRowId callback, this could cause issues in your grid."),this.allNodesMap[r.id]=r,this.nextId++,r},e.prototype.setMasterForRow=function(e,t,n,r){if(this.doingTreeData)e.setMaster(!1),r&&(e.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?e.setMaster(this.isRowMasterFunc(t)):e.setMaster(!0):e.setMaster(!1),r){var o=this.columnModel.getRowGroupColumns(),i=n+(o?o.length:0);e.expanded=!!e.master&&this.isExpanded(i)}},e.prototype.isExpanded=function(e){var t=this.gridOptionsService.getNum("groupDefaultExpanded");return-1===t||e<t},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),Jf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eg=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},tg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ng=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(tg(arguments[t]));return e};!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(qf||(qf={}));var rg,og=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onRowHeightChanged_debounced=Gr.debounce(t.onRowHeightChanged.bind(t),100),t.rowsToDisplay=[],t}return Jf(t,e),t.prototype.init=function(){var e=this.refreshModel.bind(this,{step:ss.EVERYTHING}),t=!this.gridOptionsService.is("suppressAnimationFrame"),n=this.refreshModel.bind(this,{step:ss.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:t});this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,n),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:ss.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),this.addManagedListener(this.eventService,Ve.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanges.bind(this));var r=this.refreshModel.bind(this,{step:ss.MAP,keepRenderedRows:!0,animate:t});this.addManagedPropertyListener("groupRemoveSingleChildren",r),this.addManagedPropertyListener("groupRemoveLowestSingleChildren",r),this.rootNode=new ra(this.beans),this.nodeManager=new Zf(this.rootNode,this.gridOptionsService,this.eventService,this.columnModel,this.selectionService,this.beans)},t.prototype.start=function(){var e=this.gridOptionsService.get("rowData");e&&this.setRowData(e)},t.prototype.ensureRowHeightsValid=function(e,t,n,r){var o,i=!1;do{o=!1;for(var a=this.getRowIndexAtPixel(e),s=this.getRowIndexAtPixel(t),l=Math.max(a,n),c=Math.min(s,r),u=l;u<=c;u++){var d=this.getRow(u);if(d.rowHeightEstimated){var p=this.gridOptionsService.getRowHeightForNode(d);d.setRowHeight(p.height),o=!0,i=!0}}o&&this.setRowTopAndRowIndex()}while(o);return i},t.prototype.setRowTopAndRowIndex=function(){for(var e=this.environment.getDefaultRowHeight(),t=0,n=new Set,r=this.gridOptionsService.isDomLayout("normal"),o=0;o<this.rowsToDisplay.length;o++){var i=this.rowsToDisplay[o];if(null!=i.id&&n.add(i.id),null==i.rowHeight){var a=this.gridOptionsService.getRowHeightForNode(i,r,e);i.setRowHeight(a.height,a.estimated)}i.setRowTop(t),i.setRowIndex(o),t+=i.rowHeight}return n},t.prototype.clearRowTopAndRowIndex=function(e,t){var n=e.isActive(),r=function(e){e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},o=function(e){if(r(e),r(e.detailNode),r(e.sibling),e.hasChildren()&&e.childrenAfterGroup){var t=-1==e.level;n&&!t&&!e.expanded||e.childrenAfterGroup.forEach(o)}};o(this.rootNode)},t.prototype.ensureRowsAtPixel=function(e,t,n){var r=this;void 0===n&&(n=0);var o=this.getRowIndexAtPixel(t),i=this.getRow(o),a=!this.gridOptionsService.is("suppressAnimationFrame");return i!==e[0]&&(e.forEach(function(e){Gr.removeFromArray(r.rootNode.allLeafChildren,e)}),e.forEach(function(e,t){Gr.insertIntoArray(r.rootNode.allLeafChildren,e,Math.max(o+n,0)+t)}),this.refreshModel({step:ss.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:a}),!0)},t.prototype.highlightRowAtPixel=function(e,t){var n=null!=t?this.getRowIndexAtPixel(t):null,r=null!=n?this.getRow(n):null;if(r&&e&&r!==e&&null!=t){var o=this.getHighlightPosition(t,r);this.lastHighlightedRow&&this.lastHighlightedRow!==r&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),r.setHighlighted(o),this.lastHighlightedRow=r}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},t.prototype.getHighlightPosition=function(e,t){if(!t){var n=this.getRowIndexAtPixel(e);if(!(t=this.getRow(n||0)))return as.Below}return e-t.rowTop<t.rowHeight/2?as.Above:as.Below},t.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},t.prototype.isLastRowIndexKnown=function(){return!0},t.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},t.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var e=this.rootNode.childrenAfterAggFilter;return e?e.length:0},t.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsService.is("groupHideOpenParents"))for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},t.prototype.getRowBounds=function(e){if(Gr.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:ss.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var t=this.gridOptionsService.isAnimateRows(),n=0===e.columns.length||e.columns.some(function(e){return e.isPrimary()})?ss.FILTER:ss.FILTER_AGGREGATES;this.refreshModel({step:n,keepRenderedRows:!0,animate:t})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:ss.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return"clientSide"},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:ss.PIVOT}):this.refreshModel({step:ss.AGGREGATE})},t.prototype.createChangePath=function(e){var t=Gr.missingOrEmpty(e),n=new pd(!1,this.rootNode);return(t||this.gridOptionsService.isTreeData())&&n.setInactive(),n},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsService.is("suppressModelUpdateAfterUpdateTransaction"))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},t.prototype.buildRefreshModelParams=function(e){var t=ss.EVERYTHING,n={everything:ss.EVERYTHING,group:ss.EVERYTHING,filter:ss.FILTER,map:ss.MAP,aggregate:ss.AGGREGATE,sort:ss.SORT,pivot:ss.PIVOT};if(Gr.exists(e)&&(t=n[e]),!Gr.missing(t))return{step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsService.is("suppressAnimationFrame")};console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(n).join(", "))},t.prototype.refreshModel=function(e){var t="object"==typeof e&&"step"in e?e:this.buildRefreshModelParams(e);if(t&&!this.isSuppressModelUpdateAfterUpdateTransaction(t)){var n=this.createChangePath(t.rowNodeTransactions);switch(t.step){case ss.EVERYTHING:this.doRowGrouping(t.groupState,t.rowNodeTransactions,t.rowNodeOrder,n,!!t.afterColumnsChanged);case ss.FILTER:this.doFilter(n);case ss.PIVOT:this.doPivot(n);case ss.AGGREGATE:this.doAggregate(n);case ss.FILTER_AGGREGATES:this.doFilterAggregates(n);case ss.SORT:this.doSort(t.rowNodeTransactions,n);case ss.MAP:this.doRowsToDisplay()}var r=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(n,r);var o={type:Ve.EVENT_MODEL_UPDATED,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack};this.eventService.dispatchEvent(o)}},t.prototype.isEmpty=function(){var e=Gr.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return Gr.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return Gr.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,t){var n,r=!t,o=!1,i=[],a=this.gridOptionsService.is("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort(function(s){var l=r&&!o;if(r||s!==t&&s!==e||(r=!0),!s.group||!a){var c=r&&!o,u=s.isParentOfNode(n);(c||u)&&i.push(s)}l&&(s!==t&&s!==e||(o=!0,n=s===t?t:e))}),i},t.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},t.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},t.prototype.getRootNode=function(){return this.rootNode},t.prototype.getRow=function(e){return this.rowsToDisplay[e]},t.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},t.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Gr.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(var r=-1,o=-1;;){var i=Math.floor((t+n)/2),a=this.rowsToDisplay[i];if(this.isRowInPixel(a,e))return i;if(a.rowTop<e?t=i+1:a.rowTop>e&&(n=i-1),r===t&&o===n)return i;r=t,o=n}},t.prototype.isRowInPixel=function(e,t){var n=e.rowTop,r=e.rowTop+e.rowHeight;return n<=t&&r>t},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(t,n){return e(t,n)})},t.prototype.forEachNode=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:ng(this.rootNode.childrenAfterGroup||[]),callback:e,recursionType:qf.Normal,index:0,includeFooterNodes:t})},t.prototype.forEachNodeAfterFilter=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:ng(this.rootNode.childrenAfterAggFilter||[]),callback:e,recursionType:qf.AfterFilter,index:0,includeFooterNodes:t})},t.prototype.forEachNodeAfterFilterAndSort=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:ng(this.rootNode.childrenAfterSort||[]),callback:e,recursionType:qf.AfterFilterAndSort,index:0,includeFooterNodes:t})},t.prototype.forEachPivotNode=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:qf.PivotNodes,index:0,includeFooterNodes:t})},t.prototype.recursivelyWalkNodesAndCallback=function(e){var t,n=e.nodes,r=e.callback,o=e.recursionType,i=e.includeFooterNodes,a=e.index,s=n[0];i&&(null===(t=null==s?void 0:s.parent)||void 0===t?void 0:t.sibling)&&n.push(s.parent.sibling);for(var l=0;l<n.length;l++){var c=n[l];if(r(c,a++),c.hasChildren()&&!c.footer){var u=null;switch(o){case qf.Normal:u=c.childrenAfterGroup;break;case qf.AfterFilter:u=c.childrenAfterAggFilter;break;case qf.AfterFilterAndSort:u=c.childrenAfterSort;break;case qf.PivotNodes:u=c.leafGroup?null:c.childrenAfterSort}u&&(a=this.recursivelyWalkNodesAndCallback({nodes:ng(u),callback:r,recursionType:o,index:a,includeFooterNodes:i}))}}return a},t.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},t.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsService.isTreeData(),n=this.columnModel.isPivotActive(),r=function(o){o&&o.forEach(function(o){var i=function(){o.expanded=e,r(o.childrenAfterGroup)};t?Gr.exists(o.childrenAfterGroup)&&i():n?!o.leafGroup&&i():o.group&&i()})};this.rootNode&&r(this.rootNode.childrenAfterGroup),this.refreshModel({step:ss.MAP});var o=e?"expandAll":"collapseAll",i={type:Ve.EVENT_EXPAND_COLLAPSE_ALL,source:o};this.eventService.dispatchEvent(i)},t.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},t.prototype.doRowGrouping=function(e,t,n,r,o){if(this.groupStage){if(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,rowNodeOrder:n,changedPath:r}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:r,afterColumnsChanged:o}),this.restoreGroupState(e)),this.gridOptionsService.is("groupSelectsChildren")&&this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",r)){var i={type:Ve.EVENT_SELECTION_CHANGED,source:"rowGroupChanged"};this.eventService.dispatchEvent(i)}}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren()},t.prototype.restoreGroupState=function(e){e&&Gr.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(t,n){"boolean"==typeof e[n]&&(t.expanded=e[n])})},t.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsService.is("rememberGroupStateWhenNewData"))return null;var e={};return Gr.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(t,n){return e[n]=t.expanded}),e},t.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},t.prototype.getRowNode=function(e){if("string"==typeof e&&0==e.indexOf(ra.ID_PREFIX_ROW_GROUP)){var t=void 0;return this.forEachNode(function(n){n.id===e&&(t=n)}),t}return this.nodeManager.getRowNode(e)},t.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated");var n={type:Ve.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(n),this.refreshModel({step:ss.EVERYTHING,groupState:t,newData:!0})},t.prototype.batchUpdateRowData=function(e,t){var n=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var r=this.gridOptionsService.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout(function(){n.executeBatchUpdateRowData()},r)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},t.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],n=[],r=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach(function(o){var i=e.nodeManager.updateRowData(o.rowDataTransaction,void 0);n.push(i),o.callback&&t.push(o.callback.bind(null,i)),"number"==typeof o.rowDataTransaction.addIndex&&(r=!0)}),this.commonUpdateRowData(n,void 0,r),t.length>0&&window.setTimeout(function(){t.forEach(function(e){return e()})},0),n.length>0){var o={type:Ve.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:n};this.eventService.dispatchEvent(o)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t),r="number"==typeof e.addIndex;return this.commonUpdateRowData([n],t,r),n},t.prototype.createRowNodeOrder=function(){if(!this.gridOptionsService.is("suppressMaintainUnsortedOrder")){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}},t.prototype.commonUpdateRowData=function(e,t,n){var r=!this.gridOptionsService.is("suppressAnimationFrame");n&&(t=this.createRowNodeOrder()),this.refreshModel({step:ss.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,keepEditingRows:!0,animate:r}),this.filterManager.onNewRowsLoaded("rowDataUpdated");var o={type:Ve.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(o)},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:ss.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},t.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},t.prototype.resetRowHeights=function(){var e=this.resetRowHeightsForAllRowNodes();this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),e&&this.onRowHeightChanged()},t.prototype.resetRowHeightsForAllRowNodes=function(){var e=!1;return this.forEachNode(function(t){t.setRowHeight(t.rowHeight,!0);var n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),e=!0}),e},t.prototype.onGridStylesChanges=function(){this.columnModel.isAutoRowHeightActive()||this.resetRowHeights()},eg([$("columnModel")],t.prototype,"columnModel",void 0),eg([$("selectionService")],t.prototype,"selectionService",void 0),eg([$("filterManager")],t.prototype,"filterManager",void 0),eg([$("valueCache")],t.prototype,"valueCache",void 0),eg([$("beans")],t.prototype,"beans",void 0),eg([$("filterStage")],t.prototype,"filterStage",void 0),eg([$("sortStage")],t.prototype,"sortStage",void 0),eg([$("flattenStage")],t.prototype,"flattenStage",void 0),eg([K("groupStage")],t.prototype,"groupStage",void 0),eg([K("aggregationStage")],t.prototype,"aggregationStage",void 0),eg([K("pivotStage")],t.prototype,"pivotStage",void 0),eg([K("filterAggregatesStage")],t.prototype,"filterAggregatesStage",void 0),eg([G],t.prototype,"init",null),eg([z("rowModel")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ag=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ig(t,e),t.prototype.execute=function(e){var t=e.changedPath;this.filterService.filter(t)},ag([$("filterService")],t.prototype,"filterService",void 0),ag([z("filterStage")],t)}(Le),lg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cg=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ug=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lg(t,e),t.prototype.execute=function(e){var t=this,n=this.sortController.getSortOptions(),r=Gr.exists(n)&&n.length>0,o=r&&Gr.exists(e.rowNodeTransactions)&&this.gridOptionsService.is("deltaSort"),i=n.some(function(e){return!!t.columnModel.getGroupDisplayColumnForGroup(e.column.getId())});this.sortService.sort(n,r,o,e.rowNodeTransactions,e.changedPath,i)},cg([$("sortService")],t.prototype,"sortService",void 0),cg([$("sortController")],t.prototype,"sortController",void 0),cg([$("columnModel")],t.prototype,"columnModel",void 0),cg([z("sortStage")],t)}(Le),dg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pg=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dg(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=[],r={value:0},o=this.columnModel.isPivotMode(),i=o&&t.leafGroup,a=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(a,n,r,o,0),!i&&n.length>0&&this.gridOptionsService.is("groupIncludeTotalFooter")&&(t.createFooter(),this.addRowNodeToRowsToDisplay(t.sibling,n,r,0)),n},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,r,o){if(!Gr.missingOrEmpty(e))for(var i=this.gridOptionsService.is("groupHideOpenParents"),a=this.gridOptionsService.is("groupRemoveSingleChildren"),s=!a&&this.gridOptionsService.is("groupRemoveLowestSingleChildren"),l=0;l<e.length;l++){var c=e[l],u=c.hasChildren(),d=r&&!u,p=a&&u&&1===c.childrenAfterGroup.length,h=s&&u&&c.leafGroup&&1===c.childrenAfterGroup.length,f=r&&c.leafGroup,g=i&&c.expanded&&!c.master&&!f;if(!(d||g||p||h)&&this.addRowNodeToRowsToDisplay(c,t,n,o),!r||!c.leafGroup)if(u){var m=p||h;if(c.expanded||m){var v=m?o:o+1;this.recursivelyAddToRowsToDisplay(c.childrenAfterSort,t,n,r,v),this.gridOptionsService.is("groupIncludeFooter")&&this.addRowNodeToRowsToDisplay(c.sibling,t,n,o)}}else if(c.master&&c.expanded){var y=this.createDetailNode(c);this.addRowNodeToRowsToDisplay(y,t,n,o)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,t,n,r){var o=this.gridOptionsService.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(o?0:r)},t.prototype.createDetailNode=function(e){if(Gr.exists(e.detailNode))return e.detailNode;var t=new ra(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,Gr.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t},pg([$("columnModel")],t.prototype,"columnModel",void 0),pg([$("beans")],t.prototype,"beans",void 0),pg([z("flattenStage")],t)}(Le),fg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gg=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},mg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fg(t,e),t.prototype.init=function(){this.postSortFunc=this.getPostSortFunc()},t.prototype.sort=function(e,t,n,r,o,i){var a=this,s=this.gridOptionsService.is("groupMaintainOrder"),l=this.columnModel.getAllGridColumns().some(function(e){return e.isRowGroupActive()}),c={};n&&r&&(c=this.calculateDirtyNodes(r));var u=this.columnModel.isPivotMode();o&&o.forEachChangedNodeDepthFirst(function(r){a.pullDownGroupDataForHideOpenParents(r.childrenAfterAggFilter,!0);var d=u&&r.leafGroup;if(s&&l&&!r.leafGroup&&!i){var p=r.childrenAfterAggFilter.slice(0);if(r.childrenAfterSort){var h={};r.childrenAfterSort.forEach(function(e,t){h[e.id]=t}),p.sort(function(e,t){var n,r;return(null!==(n=h[e.id])&&void 0!==n?n:0)-(null!==(r=h[t.id])&&void 0!==r?r:0)})}r.childrenAfterSort=p}else r.childrenAfterSort=!t||d?r.childrenAfterAggFilter.slice(0):n?a.doDeltaSort(r,c,o,e):a.rowNodeSorter.doFullSort(r.childrenAfterAggFilter,e);if(r.sibling&&(r.sibling.childrenAfterSort=r.childrenAfterSort),a.updateChildIndexes(r),a.postSortFunc){var f={nodes:r.childrenAfterSort};a.postSortFunc(f)}}),this.updateGroupDataForHideOpenParents(o)},t.prototype.getPostSortFunc=function(){var e=this.gridOptionsService.getCallback("postSortRows");if(e)return e;var t=this.gridOptionsService.get("postSort");return t?function(e){return t(e.nodes)}:void 0},t.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach(function(e){return t[e.id]=!0})};return e&&e.forEach(function(e){n(e.add),n(e.update),n(e.remove)}),t},t.prototype.doDeltaSort=function(e,t,n,r){var o=this,i=e.childrenAfterAggFilter,a=e.childrenAfterSort;if(!a)return this.rowNodeSorter.doFullSort(i,r);var s={},l=[];i.forEach(function(e){t[e.id]||!n.canSkip(e)?l.push(e):s[e.id]=!0});var c=a.filter(function(e){return s[e.id]}),u=function(e,t){return{currentPos:t,rowNode:e}},d=l.map(u).sort(function(e,t){return o.rowNodeSorter.compareRowNodes(r,e,t)});return this.mergeSortedArrays(r,d,c.map(u)).map(function(e){return e.rowNode})},t.prototype.mergeSortedArrays=function(e,t,n){for(var r=[],o=0,i=0;o<t.length&&i<n.length;)this.rowNodeSorter.compareRowNodes(e,t[o],n[i])<0?r.push(t[o++]):r.push(n[i++]);for(;o<t.length;)r.push(t[o++]);for(;i<n.length;)r.push(n[i++]);return r},t.prototype.updateChildIndexes=function(e){if(!Gr.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,n=0;n<t.length;n++){var r=t[n],o=0===n,i=n===e.childrenAfterSort.length-1;r.setFirstChild(o),r.setLastChild(i),r.setChildIndex(n)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var t=this;if(this.gridOptionsService.is("groupHideOpenParents")){if(this.gridOptionsService.isTreeData())return Gr.doOnce(function(){return console.warn("AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).")},"sortService.hideOpenParentsWithTreeData"),!1;var n=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach(function(e){e.hasChildren()&&n(e)})};e&&e.executeFromRootNode(function(e){return n(e)})}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var n=this;this.gridOptionsService.is("groupHideOpenParents")&&!Gr.missing(e)&&e.forEach(function(e){n.columnModel.getGroupDisplayColumns().forEach(function(r){var o=r.getColDef().showRowGroup;if("string"==typeof o){var i=o,a=n.columnModel.getPrimaryColumn(i);if(a!==e.rowGroupColumn)if(t)e.setGroupValue(r.getId(),void 0);else{var s=e.getFirstChildOfFirstChild(a);s&&e.setGroupValue(r.getId(),s.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")})})},gg([$("columnModel")],t.prototype,"columnModel",void 0),gg([$("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),gg([G],t.prototype,"init",null),gg([z("sortService")],t)}(Le),vg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yg=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ag=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vg(t,e),t.prototype.filter=function(e){var t=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.filterManager.isExternalFilterPresent();this.filterNodes(t,e)},t.prototype.filterNodes=function(e,t){var n=this,r=function(t,r){t.hasChildren()?t.childrenAfterFilter=e&&!r?t.childrenAfterGroup.filter(function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,r=e.data&&n.filterManager.doesRowPassFilter({rowNode:e});return t||r}):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var o=function(e,t){if(e.childrenAfterGroup)for(var i=0;i<e.childrenAfterGroup.length;i++){var a=e.childrenAfterGroup[i],s=t||n.filterManager.doesRowPassFilter({rowNode:a});a.childrenAfterGroup?o(e.childrenAfterGroup[i],s):r(a,s)}r(e,t)};t.executeFromRootNode(function(e){return o(e,!1)})}else t.forEachChangedNodeDepthFirst(function(e){return r(e,!1)},!0)},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsService.isTreeData()&&!this.gridOptionsService.is("excludeChildrenWhenTreeDataFiltering")},yg([$("filterManager")],t.prototype,"filterManager",void 0),yg([z("filterService")],t)}(Le),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bg=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wg(t,e),t.prototype.postConstruct=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){var e=this.gridOptionsService.exists("getRowId"),t=this.gridOptionsService.is("immutableData");return!this.gridOptionsService.is("resetRowDataOnUpdate")&&(e||t)},t.prototype.setRowData=function(e){var t=this.createTransactionForRowData(e);if(t){var n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=n[0],o=n[1];this.clientSideRowModel.updateRowData(r,o)}},t.prototype.createTransactionForRowData=function(e){if(Gr.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsService.getRowIdFunc();if(null!=t){var n={remove:[],update:[],add:[]},r=this.clientSideRowModel.getCopyOfNodesMap(),o=this.gridOptionsService.is("suppressMaintainUnsortedOrder")?void 0:{};return Gr.exists(e)&&e.forEach(function(e,i){var a=t({data:e,level:0}),s=r[a];o&&(o[a]=i),s?(s.data!==e&&n.update.push(e),r[a]=void 0):n.add.push(e)}),Gr.iterateObject(r,function(e,t){t&&n.remove.push(t.data)}),[n,o]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},bg([$("rowModel")],t.prototype,"rowModel",void 0),bg([$("rowRenderer")],t.prototype,"rowRenderer",void 0),bg([G],t.prototype,"postConstruct",null),bg([z("immutableService")],t)}(Le),Cg={version:"29.3.3",moduleName:X.ClientSideRowModelModule,rowModel:"clientSide",beans:[og,sg,ug,hg,mg,Ag,_g]},Eg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sg=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Og=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.parentCache=n,o.params=r,o.startRow=t*r.blockSize,o.endRow=o.startRow+r.blockSize,o}return Eg(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),Gr.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();Gr.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.gridOptionsService.context}},t.prototype.forEachNode=function(e,t,n){var r=this;this.rowNodes.forEach(function(o,i){r.startRow+i<n&&e(o,t.next())})},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.params.lastAccessedSequence.next());var n=e-this.startRow;return this.rowNodes[n]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var t=this.startRow+e,n=new ra(this.beans);n.setRowHeight(this.params.rowHeight),n.uiLevel=0,n.setRowIndex(t),n.setRowTop(this.params.rowHeight*t),this.rowNodes.push(n)}},t.prototype.processServerResult=function(e){var t=this;this.rowNodes.forEach(function(n,r){var o=e.rowData?e.rowData[r]:void 0;t.setDataAndId(n,o,t.startRow+r)});var n=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,n)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},Sg([$("beans")],t.prototype,"beans",void 0),Sg([G],t.prototype,"postConstruct",null),Sg([W],t.prototype,"destroyRowNodes",null),t}(fd),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dg=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pg=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 xg(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var n=Math.floor(e/this.params.blockSize),r=this.blocks[n];if(!r){if(t)return;r=this.createBlock(n)}return r.getRow(e)},t.prototype.createBlock=function(e){var t=this.createBean(new Og(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t},t.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach(function(e){return e.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad())},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(t){return e.destroyBlock(t)})},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,t){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+t),this.checkRowCount(e,t),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,r=this.getBlocksInOrder().filter(function(t){return t!=e});r.sort(function(e,t){return t.getLastAccessed()-e.getLastAccessed()});var o=this.params.maxBlocksInCache>0,i=o?this.params.maxBlocksInCache-1:null,a=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;r.forEach(function(e,t){if(e.getState()===Og.STATE_WAITING_TO_LOAD&&t>=a||o&&t>=i){if(n.isBlockCurrentlyDisplayed(e))return;if(n.isBlockFocused(e))return;n.removeBlockFromCache(e)}})},t.prototype.isBlockFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;var n=e.getStartRow(),r=e.getEndRow();return t.rowIndex>=n&&t.rowIndex<r},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=e.getStartRow(),n=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,n)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,t){if("number"==typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var n=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},t.prototype.setRowCount=function(e,t){this.rowCount=e,Gr.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 Wr;this.getBlocksInOrder().forEach(function(r){return r.forEachNode(e,n,t.rowCount)})},t.prototype.getBlocksInOrder=function(){return Gr.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,r=[],o=-1,i=!1,a=new Wr;Gr.missing(e)&&(i=!0);var s=!1;return this.getBlocksInOrder().forEach(function(l){s||(i&&o+1!==l.getId()?s=!0:(o=l.getId(),l.forEachNode(function(n){var o=n===e||n===t;(i||o)&&r.push(n),o&&(i=!i)},a,n.rowCount)))}),s||i?[]:r},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,Dg([$("rowRenderer")],t.prototype,"rowRenderer",void 0),Dg([$("focusService")],t.prototype,"focusService",void 0),Dg([(n=q("loggerFactory"),function(e,t){n(e,t,0)})],t.prototype,"setBeans",null),Dg([W],t.prototype,"destroyAllBlocks",null),t;var n}(Le),Mg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tg=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mg(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,n,r){return!1},t.prototype.init=function(){var e=this;this.gridOptionsService.isRowModelType("infinite")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}),this.verifyProps())},t.prototype.verifyProps=function(){(this.gridOptionsService.exists("initialGroupOrderComparator")||this.gridOptionsService.exists("defaultGroupOrderComparator"))&&Gr.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.gridOptionsService.get("datasource"))},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!Gr.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return"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.gridOptionsService.getRowIdFunc()||this.selectionService.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:Ve.EVENT_MODEL_UPDATED,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.gridOptionsService.getNum("infiniteInitialRowCount"),1),maxBlocksInCache:this.gridOptionsService.getNum("maxBlocksInCache"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheOverflowSize"),1),blockSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheBlockSize"),100),lastAccessedSequence:new Wr},this.infiniteCache=this.createBean(new Pg(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)},Tg([$("filterManager")],t.prototype,"filterManager",void 0),Tg([$("sortController")],t.prototype,"sortController",void 0),Tg([$("selectionService")],t.prototype,"selectionService",void 0),Tg([$("rowRenderer")],t.prototype,"rowRenderer",void 0),Tg([$("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Tg([G],t.prototype,"init",null),Tg([W],t.prototype,"destroyDatasource",null),Tg([z("rowModel")],t)}(Le),Ig={version:"29.3.3",moduleName:X.InfiniteRowModelModule,rowModel:"infinite",beans:[Rg]},Fg=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}(),kg=function(){function e(e){this.groupColumns=[];var t=e.columnModel,n=e.valueService,r=e.gridOptionsService,o=e.processCellCallback,i=e.processHeaderCallback,a=e.processGroupHeaderCallback,s=e.processRowGroupCallback;this.columnModel=t,this.valueService=n,this.gridOptionsService=r,this.processCellCallback=o,this.processHeaderCallback=i,this.processGroupHeaderCallback=a,this.processRowGroupCallback=s}return e.prototype.prepare=function(e){this.groupColumns=e.filter(function(e){return!!e.getColDef().showRowGroup})},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,n,r,o){var i=this.gridOptionsService.is("groupHideOpenParents")&&!o.footer||!this.shouldRenderGroupSummaryCell(o,e,t)?this.valueService.getValue(e,o):this.createValueForGroupNode(o),a=this.processCell({accumulatedRowIndex:n,rowNode:o,column:e,value:i,processCellCallback:this.processCellCallback,type:r});return null!=a?a:""},e.prototype.shouldRenderGroupSummaryCell=function(e,t,n){var r;if(!e||!e.group)return!1;if(-1!==this.groupColumns.indexOf(t)){if(null===(r=e.groupData)||void 0===r?void 0:r[t.getId()])return!0;if(e.footer&&-1===e.level){var o=t.getColDef();return null==o||!0===o.showRowGroup||o.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var i=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===n&&i},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context});var t=e.footer,n=[e.key];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,n.push(e.key);var r=n.reverse().join(" -> ");return t?"Total "+r:r},e.prototype.processCell=function(e){var t=e.accumulatedRowIndex,n=e.rowNode,r=e.column,o=e.value,i=e.processCellCallback,a=e.type;return i?i({accumulatedRowIndex:t,column:r,node:n,value:o,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,type:a}):null!=o?o:""},e}(),Lg=function(){function e(){}return e.download=function(e,t){var n=document.defaultView||window;if(n){var r=document.createElement("a"),o=n.URL.createObjectURL(t);r.setAttribute("href",o),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(r),n.setTimeout(function(){n.URL.revokeObjectURL(o)},0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ng=function(e){function t(t){var n=e.call(this,t)||this;n.isFirstLine=!0,n.result="";var r=t.suppressQuotes,o=t.columnSeparator;return n.suppressQuotes=r,n.columnSeparator=o,n}return Bg(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,r){0!=n&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)},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,"csv",n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(kg),jg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ug=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jg(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParams(e),n=this.getData(t),r=new Blob(["\ufeff",n],{type:"text/plain"});return Lg.download(this.getFileName(t.fileName),r),n},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e,t){void 0===t&&(t=!1);var n=t?Object.assign({},e):this.getMergedParams(e);return this.getData(n)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,n=t.columnModel,r=t.valueService,o=t.gridOptionsService,i=e,a=i.processCellCallback,s=i.processHeaderCallback,l=i.processGroupHeaderCallback,c=i.processRowGroupCallback,u=i.suppressQuotes,d=i.columnSeparator;return new Ng({columnModel:n,valueService:r,gridOptionsService:o,processCellCallback:a||void 0,processHeaderCallback:s||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:c||void 0,suppressQuotes:u||!1,columnSeparator:d||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.is("suppressCsvExport")},Ug([$("columnModel")],t.prototype,"columnModel",void 0),Ug([$("valueService")],t.prototype,"valueService",void 0),Ug([$("gridSerializer")],t.prototype,"gridSerializer",void 0),Ug([$("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Ug([G],t.prototype,"postConstruct",null),Ug([z("csvCreator")],t)}(Fg),Hg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gg=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(rg||(rg={}));var Wg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hg(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var n=this.getColumnsToExport(t.allColumns,t.columnKeys);return Gr.compose(this.prepareSession(n),this.prependContent(t),this.exportColumnGroups(t,n),this.exportHeaders(t,n),this.processPinnedTopRows(t,n),this.processRows(t,n),this.processPinnedBottomRows(t,n),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,n,r){var o=t.shouldRowBeSkipped||function(){return!1},i=this.gridOptionsService.context,a=this.gridOptionsService.api,s=this.gridOptionsService.columnApi,l=this.gridOptionsService.is("groupRemoveSingleChildren"),c=this.gridOptionsService.is("groupRemoveLowestSingleChildren"),u=null!=t.rowPositions||!!t.onlySelected,d=this.gridOptionsService.is("groupHideOpenParents")&&!u,p=this.columnModel.isPivotMode()?r.leafGroup:!r.group,h=!!r.footer,f=t.skipGroups||t.skipRowGroups,g=c&&r.leafGroup,m=1===r.allChildrenCount&&(l||g);if(f&&t.skipGroups&&Gr.doOnce(function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")},"gridSerializer-skipGroups"),!(!p&&!h&&(t.skipRowGroups||m||d)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&"top"===r.rowPinned||t.skipPinnedBottom&&"bottom"===r.rowPinned)&&(-1!==r.level||p||h)&&!o({node:r,api:a,columnApi:s,context:i})){var v=e.onNewBodyRow();if(n.forEach(function(e,t){v.onColumn(e,t,r)}),t.getCustomContentBelowRow){var y=t.getCustomContentBelowRow({node:r,api:a,columnApi:s,context:i});y&&e.addCustomContent(y)}}},t.prototype.appendContent=function(e){return function(t){var n=e.customFooter||e.appendContent;return n&&(e.customFooter&&Gr.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&&Gr.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")},"gridSerializer-customHeader"),t.addCustomContent(n)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var n=this;return function(r){if(e.skipColumnGroupHeaders)e.columnGroups&&Gr.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")},"gridSerializer-columnGroups");else{var o=new it,i=n.displayedGroupCreator.createDisplayedGroups(t,n.columnModel.getGridBalancedTree(),o,null);n.recursivelyAddHeaderGroups(i,r,e.processGroupHeaderCallback)}return r}},t.prototype.exportHeaders=function(e,t){return function(n){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&Gr.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")},"gridSerializer-skipHeader");else{var r=n.onNewHeaderRow();t.forEach(function(e,t){r.onColumn(e,t,void 0)})}return n}},t.prototype.processPinnedTopRows=function(e,t){var n=this;return function(r){var o=n.processRow.bind(n,r,e,t);return e.rowPositions?e.rowPositions.filter(function(e){return"top"===e.rowPinned}).sort(function(e,t){return e.rowIndex-t.rowIndex}).map(function(e){return n.pinnedRowModel.getPinnedTopRow(e.rowIndex)}).forEach(o):n.pinnedRowModel.forEachPinnedTopRow(o),r}},t.prototype.processRows=function(e,t){var n=this;return function(r){var o=n.rowModel,i=o.getType(),a="clientSide"===i,s="serverSide"===i,l=!a&&e.onlySelected,c=n.processRow.bind(n,r,e,t),u=e.exportedRows,d=void 0===u?"filteredAndSorted":u;if(e.rowPositions)e.rowPositions.filter(function(e){return null==e.rowPinned}).sort(function(e,t){return e.rowIndex-t.rowIndex}).map(function(e){return o.getRow(e.rowIndex)}).forEach(c);else if(n.columnModel.isPivotMode())a?o.forEachPivotNode(c,!0):o.forEachNode(c);else if(e.onlySelectedAllPages||l){var p=n.selectionService.getSelectedNodes();n.replicateSortedOrder(p),p.forEach(c)}else"all"===d?o.forEachNode(c):a?o.forEachNodeAfterFilterAndSort(c,!0):s?o.forEachNodeAfterFilterAndSort(c):o.forEachNode(c);return r}},t.prototype.replicateSortedOrder=function(e){var t=this,n=this.sortController.getSortOptions(),r=function(e,o){var i,a,s,l;return null!=e.rowIndex&&null!=o.rowIndex?e.rowIndex-o.rowIndex:e.level===o.level?(null===(i=e.parent)||void 0===i?void 0:i.id)===(null===(a=o.parent)||void 0===a?void 0:a.id)?t.rowNodeSorter.compareRowNodes(n,{rowNode:e,currentPos:null!==(s=e.rowIndex)&&void 0!==s?s:-1},{rowNode:o,currentPos:null!==(l=o.rowIndex)&&void 0!==l?l:-1}):r(e.parent,o.parent):e.level>o.level?r(e.parent,o):r(e,o.parent)};e.sort(r)},t.prototype.processPinnedBottomRows=function(e,t){var n=this;return function(r){var o=n.processRow.bind(n,r,e,t);return e.rowPositions?e.rowPositions.filter(function(e){return"bottom"===e.rowPinned}).sort(function(e,t){return e.rowIndex-t.rowIndex}).map(function(e){return n.pinnedRowModel.getPinnedBottomRow(e.rowIndex)}).forEach(o):n.pinnedRowModel.forEachPinnedBottomRow(o),r}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var n=this.columnModel.isPivotMode();return t&&t.length?this.columnModel.getGridColumns(t):e&&!n?(this.gridOptionsService.isTreeData()?this.columnModel.getGridColumns([lt]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,n){var r=[];e.forEach(function(e){var t=e;t.getChildren&&t.getChildren().forEach(function(e){return r.push(e)})}),e.length>0&&e[0]instanceof ot&&this.doAddHeaderHeader(t,e,n),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,n)},t.prototype.doAddHeaderHeader=function(e,t,n){var r=this,o=e.onNewHeaderGroupingRow(),i=0;t.forEach(function(e){var t,a=e;t=n?n({columnGroup:a,api:r.gridOptionsService.api,columnApi:r.gridOptionsService.columnApi,context:r.gridOptionsService.context}):r.columnModel.getDisplayNameForColumnGroup(a,"header");var s=a.getLeafColumns().reduce(function(e,t,n,r){var o=Gr.last(e);return"open"===t.getColumnGroupShow()?o&&null==o[1]||(o=[n],e.push(o)):o&&null==o[1]&&(o[1]=n-1),n===r.length-1&&o&&null==o[1]&&(o[1]=n),e},[]);o.onColumn(a,t||"",i++,a.getLeafColumns().length-1,s)})},Gg([$("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Gg([$("columnModel")],t.prototype,"columnModel",void 0),Gg([$("rowModel")],t.prototype,"rowModel",void 0),Gg([$("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Gg([$("selectionService")],t.prototype,"selectionService",void 0),Gg([$("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),Gg([$("sortController")],t.prototype,"sortController",void 0),Gg([z("gridSerializer")],t)}(Le),zg={version:"29.3.3",moduleName:X.CsvExportModule,beans:[Vg,Wg]},$g="\r\n",Kg=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map(function(t){return t+'="'+e[t]+'"'}).join(" ")+" ?>"},e.createXml=function(e,t){var n=this,r="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach(function(e){Object.keys(e.map).forEach(function(o){r+=n.returnAttributeIfPopulated(e.prefix+o,e.map[o],t)})}),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach(function(o){r+=n.returnAttributeIfPopulated(o,e.properties.rawMap[o],t)}));var o="<"+e.name+r;return e.children||null!=e.textNode?null!=e.textNode?o+">"+e.textNode+"</"+e.name+">"+$g:(o+=">\r\n",e.children&&e.children.forEach(function(e){o+=n.createXml(e,t)}),o+"</"+e.name+">"+$g):o+"/>"+$g},e.returnAttributeIfPopulated=function(e,t,n){if(!t&&""!==t&&0!==t)return"";var r=t;return"boolean"==typeof t&&n&&(r=n(t))," "+e+'="'+r+'"'},e}(),Qg=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]),qg=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,n){void 0===n&&(n=!1),this.files.push({path:e,created:new Date,content:t,isBase64:n})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,n;void 0===e&&(e="");var r=this.folders.concat(this.files),o=r.length,i="",a=0,s=0;try{for(var l=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),c=l.next();!c.done;c=l.next()){var u=c.value,d=this.getHeader(u,a),p=d.fileHeader,h=d.folderHeader,f=d.content;a+=p.length+f.length,s+=h.length,e+=p+f,i+=h}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return e+i+this.buildFolderEnd(o,s,a)},e.getHeader=function(e,t){var n=e.content,r=e.path,o=e.created,i=e.isBase64,a=Gr.utf8_encode,s=Gr.decToHex,l=a(r),c=l!==r,u=this.convertTime(o),d=this.convertDate(o),p="";if(c){var h=s(1,1)+s(this.getFromCrc32Table(l),4)+l;p="up"+s(h.length,2)+h}var f=n?this.getConvertedContent(n,i):{size:0,content:""},g=f.size,m=f.content,v="\n\0"+(c?"\0\b":"\0\0")+"\0\0"+s(u,2)+s(d,2)+s(g?this.getFromCrc32Table(m):0,4)+s(g,4)+s(g,4)+s(l.length,2)+s(p.length,2);return{fileHeader:"PK"+v+l+p,folderHeader:"PK\0"+v+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\0\0\0")+s(t,4)+l+p,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 r=Gr.decToHex;return"PK\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);var o=-1,i=0;for(r=0;r<t;r++)i=n[r],o=o>>>8^Qg[255&(o^i)];return-1^o},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),(t<<=5)|e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,(t<<=5)|e.getDate()},e.folders=[],e.files=[],e}(),Yg=[Cg,Ig,zg];te.registerModules(Yg)},983(__unused_webpack_module,__nested_webpack_exports__,__nested_webpack_require_1064658__){"use strict";__nested_webpack_require_1064658__.r(__nested_webpack_exports__),__nested_webpack_require_1064658__.d(__nested_webpack_exports__,{AbstractHeaderCellCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AbstractHeaderCellCtrl,AgAbstractField:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgAbstractField,AgAbstractLabel:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgAbstractLabel,AgCheckbox:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgCheckbox,AgDialog:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgDialog,AgGroupComponent:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgGroupComponent,AgInputNumberField:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgInputNumberField,AgInputRange:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgInputRange,AgInputTextArea:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgInputTextArea,AgInputTextField:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgInputTextField,AgMenuItemComponent:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgMenuItemComponent,AgMenuList:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgMenuList,AgMenuPanel:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgMenuPanel,AgPanel:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPanel,AgPickerField:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPickerField,AgPromise:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise,AgPromiseStatus:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromiseStatus,AgRadioButton:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgRadioButton,AgSelect:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSelect,AgSlider:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSlider,AgStackComponentsRegistry:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgStackComponentsRegistry,AgToggleButton:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgToggleButton,AlignedGridsService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AlignedGridsService,AllCommunityModules:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AllCommunityModules,AllEnterpriseModules:()=>AllEnterpriseModules,AllModules:()=>AllModules,AnimateShowChangeCellRenderer:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AnimateShowChangeCellRenderer,AnimateSlideCellRenderer:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AnimateSlideCellRenderer,AnimationFrameService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AnimationFrameService,AutoScrollService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AutoScrollService,AutoWidthCalculator:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AutoWidthCalculator,Autowired:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired,BarColumnLabelPlacement:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BarColumnLabelPlacement,BaseComponentWrapper:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BaseComponentWrapper,BaseCreator:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BaseCreator,BaseGridSerializingSession:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BaseGridSerializingSession,Bean:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean,BeanStub:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub,Beans:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Beans,BodyDropPivotTarget:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BodyDropPivotTarget,BodyDropTarget:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BodyDropTarget,CHART_TOOLBAR_ALLOW_LIST:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CHART_TOOLBAR_ALLOW_LIST,CHART_TOOL_PANEL_ALLOW_LIST:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CHART_TOOL_PANEL_ALLOW_LIST,CHART_TOOL_PANEL_MENU_OPTIONS:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CHART_TOOL_PANEL_MENU_OPTIONS,CellComp:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellComp,CellCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellCtrl,CellNavigationService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellNavigationService,CellPositionUtils:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellPositionUtils,CellRangeType:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellRangeType,ChangedPath:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ChangedPath,CheckboxSelectionComponent:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CheckboxSelectionComponent,ClientSideRowModelModule:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ClientSideRowModelModule,ClientSideRowModelSteps:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ClientSideRowModelSteps,ClipboardModule:()=>ClipboardModule,ColDefUtil:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ColDefUtil,Column:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column,ColumnApi:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ColumnApi,ColumnFactory:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ColumnFactory,ColumnGroup:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ColumnGroup,ColumnKeyCreator:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ColumnKeyCreator,ColumnModel:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ColumnModel,ColumnUtils:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ColumnUtils,ColumnsToolPanelModule:()=>ColumnsToolPanelModule,Component:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component,ComponentUtil:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ComponentUtil,Context:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Context,CssClassApplier:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CssClassApplier,CssClassManager:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CssClassManager,CsvCreator:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CsvCreator,CsvExportModule:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CsvExportModule,CtrlsService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CtrlsService,CustomTooltipFeature:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CustomTooltipFeature,DEFAULT_CHART_GROUPS:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_CHART_GROUPS,DateFilter:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DateFilter,DisplayedGroupCreator:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DisplayedGroupCreator,Downloader:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Downloader,DragAndDropService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService,DragService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragService,DragSourceType:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragSourceType,EnterpriseCoreModule:()=>EnterpriseCoreModule,Environment:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Environment,EventService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.EventService,Events:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events,ExcelExportModule:()=>ExcelExportModule,ExcelFactoryMode:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ExcelFactoryMode,ExpressionService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ExpressionService,FilterManager:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.FilterManager,FiltersToolPanelModule:()=>FiltersToolPanelModule,FloatingFilterMapper:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.FloatingFilterMapper,FocusService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.FocusService,GROUP_AUTO_COLUMN_ID:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GROUP_AUTO_COLUMN_ID,Grid:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Grid,GridApi:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GridApi,GridBodyComp:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GridBodyComp,GridBodyCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GridBodyCtrl,GridChartsModule:()=>GridChartsModule,GridComp:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GridComp,GridCoreCreator:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GridCoreCreator,GridCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GridCtrl,GridHeaderComp:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GridHeaderComp,GridHeaderCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GridHeaderCtrl,GridOptionsService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GridOptionsService,GridSerializer:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GridSerializer,GroupCellRenderer:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GroupCellRenderer,GroupCellRendererCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GroupCellRendererCtrl,GroupInstanceIdCreator:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GroupInstanceIdCreator,HeaderCellCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HeaderCellCtrl,HeaderFilterCellComp:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HeaderFilterCellComp,HeaderFilterCellCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HeaderFilterCellCtrl,HeaderGroupCellCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HeaderGroupCellCtrl,HeaderNavigationDirection:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HeaderNavigationDirection,HeaderNavigationService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HeaderNavigationService,HeaderPositionUtils:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HeaderPositionUtils,HeaderRowComp:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HeaderRowComp,HeaderRowContainerComp:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HeaderRowContainerComp,HeaderRowContainerCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HeaderRowContainerCtrl,HeaderRowCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HeaderRowCtrl,HeaderRowType:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HeaderRowType,HorizontalDirection:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HorizontalDirection,HorizontalResizeService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.HorizontalResizeService,InfiniteRowModelModule:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.InfiniteRowModelModule,KeyCode:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode,LargeTextCellEditor:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.LargeTextCellEditor,LayoutCssClasses:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.LayoutCssClasses,LicenseManager:()=>GridLicenseManager,LocaleService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.LocaleService,Logger:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Logger,LoggerFactory:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.LoggerFactory,ManagedFocusFeature:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ManagedFocusFeature,MasterDetailModule:()=>MasterDetailModule,MenuModule:()=>MenuModule,ModuleNames:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames,ModuleRegistry:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry,MouseEventService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.MouseEventService,MoveColumnFeature:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.MoveColumnFeature,MultiFilter:()=>MultiFilter,MultiFilterModule:()=>MultiFilterModule,NavigationService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NavigationService,NumberFilter:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberFilter,NumberSequence:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberSequence,Optional:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Optional,PaginationProxy:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PaginationProxy,PinnedRowModel:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PinnedRowModel,PivotDropZonePanel:()=>PivotDropZonePanel,PopupComponent:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PopupComponent,PopupEditorWrapper:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PopupEditorWrapper,PopupService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PopupService,PositionableFeature:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PositionableFeature,PostConstruct:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct,PreConstruct:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreConstruct,PreDestroy:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreDestroy,PrimaryColsPanel:()=>PrimaryColsPanel,PropertyKeys:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PropertyKeys,ProvidedColumnGroup:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedColumnGroup,ProvidedFilter:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedFilter,Qualifier:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Qualifier,QuerySelector:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.QuerySelector,RangeSelectionModule:()=>RangeSelectionModule,RefSelector:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector,ResizeObserverService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ResizeObserverService,RichSelectModule:()=>RichSelectModule,RowAnimationCssClasses:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowAnimationCssClasses,RowContainerComp:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowContainerComp,RowContainerCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowContainerCtrl,RowContainerName:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowContainerName,RowContainerType:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowContainerType,RowCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowCtrl,RowGroupDropZonePanel:()=>RowGroupDropZonePanel,RowGroupingModule:()=>RowGroupingModule,RowHighlightPosition:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowHighlightPosition,RowNode:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNode,RowNodeBlock:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNodeBlock,RowNodeBlockLoader:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNodeBlockLoader,RowNodeSorter:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNodeSorter,RowPositionUtils:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowPositionUtils,RowRenderer:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowRenderer,RowType:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowType,ScalarFilter:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ScalarFilter,ScrollVisibleService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ScrollVisibleService,SelectCellEditor:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.SelectCellEditor,SelectableService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.SelectableService,SelectionHandleType:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.SelectionHandleType,ServerSideRowModelModule:()=>ServerSideRowModelModule,ServerSideTransactionResultStatus:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus,SetFilter:()=>SetFilter,SetFilterModule:()=>SetFilterModule,SetLeftFeature:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.SetLeftFeature,SideBarModule:()=>SideBarModule,SimpleFilter:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.SimpleFilter,SortController:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.SortController,SortIndicatorComp:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.SortIndicatorComp,SparklinesModule:()=>SparklinesModule,StandardMenuFactory:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.StandardMenuFactory,StatusBarModule:()=>StatusBarModule,StylingService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.StylingService,TabGuardClassNames:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TabGuardClassNames,TabGuardComp:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TabGuardComp,TabGuardCtrl:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TabGuardCtrl,TabbedLayout:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TabbedLayout,TemplateService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TemplateService,TextCellEditor:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TextCellEditor,TextFilter:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TextFilter,TextFloatingFilter:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TextFloatingFilter,Timer:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Timer,ToolPanelColDefService:()=>ToolPanelColDefService,TouchListener:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TouchListener,UserComponentFactory:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.UserComponentFactory,UserComponentRegistry:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.UserComponentRegistry,ValueCache:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ValueCache,ValueFormatterService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ValueFormatterService,ValueService:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ValueService,ValuesDropZonePanel:()=>ValuesDropZonePanel,VanillaFrameworkOverrides:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.VanillaFrameworkOverrides,VerticalDirection:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.VerticalDirection,ViewportRowModelModule:()=>ViewportRowModelModule,VirtualList:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.VirtualList,XmlFactory:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.XmlFactory,ZipContainer:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer,_:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._,__FORCE_MODULE_DETECTION:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.__FORCE_MODULE_DETECTION,__FORCE_MODULE_DETECTION_AG_GRID_CORE_EXT:()=>__FORCE_MODULE_DETECTION_AG_GRID_CORE_EXT,agCharts:()=>agCharts,exportMultipleSheetsAsExcel:()=>exportMultipleSheetsAsExcel,getMultipleSheetsAsExcel:()=>getMultipleSheetsAsExcel,getRowContainerTypeForName:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.getRowContainerTypeForName,simpleHttpRequest:()=>ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.simpleHttpRequest});var ag_grid_community__WEBPACK_IMPORTED_MODULE_0__=__nested_webpack_require_1064658__(777),MD5=function(){function e(){this.ieCompatibility=!1}return e.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},e.prototype.md5cycle=function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];n=this.ff(n,r,o,i,t[0],7,-680876936),i=this.ff(i,n,r,o,t[1],12,-389564586),o=this.ff(o,i,n,r,t[2],17,606105819),r=this.ff(r,o,i,n,t[3],22,-1044525330),n=this.ff(n,r,o,i,t[4],7,-176418897),i=this.ff(i,n,r,o,t[5],12,1200080426),o=this.ff(o,i,n,r,t[6],17,-1473231341),r=this.ff(r,o,i,n,t[7],22,-45705983),n=this.ff(n,r,o,i,t[8],7,1770035416),i=this.ff(i,n,r,o,t[9],12,-1958414417),o=this.ff(o,i,n,r,t[10],17,-42063),r=this.ff(r,o,i,n,t[11],22,-1990404162),n=this.ff(n,r,o,i,t[12],7,1804603682),i=this.ff(i,n,r,o,t[13],12,-40341101),o=this.ff(o,i,n,r,t[14],17,-1502002290),r=this.ff(r,o,i,n,t[15],22,1236535329),n=this.gg(n,r,o,i,t[1],5,-165796510),i=this.gg(i,n,r,o,t[6],9,-1069501632),o=this.gg(o,i,n,r,t[11],14,643717713),r=this.gg(r,o,i,n,t[0],20,-373897302),n=this.gg(n,r,o,i,t[5],5,-701558691),i=this.gg(i,n,r,o,t[10],9,38016083),o=this.gg(o,i,n,r,t[15],14,-660478335),r=this.gg(r,o,i,n,t[4],20,-405537848),n=this.gg(n,r,o,i,t[9],5,568446438),i=this.gg(i,n,r,o,t[14],9,-1019803690),o=this.gg(o,i,n,r,t[3],14,-187363961),r=this.gg(r,o,i,n,t[8],20,1163531501),n=this.gg(n,r,o,i,t[13],5,-1444681467),i=this.gg(i,n,r,o,t[2],9,-51403784),o=this.gg(o,i,n,r,t[7],14,1735328473),r=this.gg(r,o,i,n,t[12],20,-1926607734),n=this.hh(n,r,o,i,t[5],4,-378558),i=this.hh(i,n,r,o,t[8],11,-2022574463),o=this.hh(o,i,n,r,t[11],16,1839030562),r=this.hh(r,o,i,n,t[14],23,-35309556),n=this.hh(n,r,o,i,t[1],4,-1530992060),i=this.hh(i,n,r,o,t[4],11,1272893353),o=this.hh(o,i,n,r,t[7],16,-155497632),r=this.hh(r,o,i,n,t[10],23,-1094730640),n=this.hh(n,r,o,i,t[13],4,681279174),i=this.hh(i,n,r,o,t[0],11,-358537222),o=this.hh(o,i,n,r,t[3],16,-722521979),r=this.hh(r,o,i,n,t[6],23,76029189),n=this.hh(n,r,o,i,t[9],4,-640364487),i=this.hh(i,n,r,o,t[12],11,-421815835),o=this.hh(o,i,n,r,t[15],16,530742520),r=this.hh(r,o,i,n,t[2],23,-995338651),n=this.ii(n,r,o,i,t[0],6,-198630844),i=this.ii(i,n,r,o,t[7],10,1126891415),o=this.ii(o,i,n,r,t[14],15,-1416354905),r=this.ii(r,o,i,n,t[5],21,-57434055),n=this.ii(n,r,o,i,t[12],6,1700485571),i=this.ii(i,n,r,o,t[3],10,-1894986606),o=this.ii(o,i,n,r,t[10],15,-1051523),r=this.ii(r,o,i,n,t[1],21,-2054922799),n=this.ii(n,r,o,i,t[8],6,1873313359),i=this.ii(i,n,r,o,t[15],10,-30611744),o=this.ii(o,i,n,r,t[6],15,-1560198380),r=this.ii(r,o,i,n,t[13],21,1309151649),n=this.ii(n,r,o,i,t[4],6,-145523070),i=this.ii(i,n,r,o,t[11],10,-1120210379),o=this.ii(o,i,n,r,t[2],15,718787259),r=this.ii(r,o,i,n,t[9],21,-343485551),e[0]=this.add32(n,e[0]),e[1]=this.add32(r,e[1]),e[2]=this.add32(o,e[2]),e[3]=this.add32(i,e[3])},e.prototype.cmn=function(e,t,n,r,o,i){return t=this.add32(this.add32(t,e),this.add32(r,i)),this.add32(t<<o|t>>>32-o,n)},e.prototype.ff=function(e,t,n,r,o,i,a){return this.cmn(t&n|~t&r,e,t,o,i,a)},e.prototype.gg=function(e,t,n,r,o,i,a){return this.cmn(t&r|n&~r,e,t,o,i,a)},e.prototype.hh=function(e,t,n,r,o,i,a){return this.cmn(t^n^r,e,t,o,i,a)},e.prototype.ii=function(e,t,n,r,o,i,a){return this.cmn(n^(t|~r),e,t,o,i,a)},e.prototype.md51=function(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)this.md5cycle(r,this.md5blk(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(this.md5cycle(r,o),t=0;t<16;t++)o[t]=0;return o[14]=8*n,this.md5cycle(r,o),r},e.prototype.md5blk=function(e){for(var t=[],n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t},e.prototype.rhex=function(e){for(var t="0123456789abcdef".split(""),n="",r=0;r<4;r++)n+=t[e>>8*r+4&15]+t[e>>8*r&15];return n},e.prototype.hex=function(e){for(var t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")},e.prototype.md5=function(e){return this.hex(this.md51(e))},e.prototype.add32=function(e,t){return this.ieCompatibility?this.add32Compat(e,t):this.add32Std(e,t)},e.prototype.add32Std=function(e,t){return e+t&4294967295},e.prototype.add32Compat=function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n},e}(),__read$1c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function missingOrEmpty(e){return null==e||0===e.length}function exists(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}var LicenseManager=function(){function e(e){this.watermarkMessage=void 0,this.document=e,this.md5=new MD5,this.md5.init()}return e.prototype.validateLicense=function(){if(missingOrEmpty(e.licenseKey))this.isWebsiteUrl()||this.outputMissingLicenseKey();else if(e.licenseKey.length>32)if(-1!==e.licenseKey.indexOf("For_Trialing_ag-Grid_Only"))this.outputInvalidLicenseKey();else{var t=e.extractLicenseComponents(e.licenseKey),n=t.md5,r=t.license,o=t.version,i=t.isTrial;n===this.md5.md5(r)?exists(o)&&o?this.validateLicenseKeyForVersion(o,!!i,r):this.validateLegacyKey(r):this.outputInvalidLicenseKey()}else this.outputInvalidLicenseKey()},e.extractExpiry=function(t){var n=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(e.decode(n),10))},e.extractLicenseComponents=function(t){var n=t.replace(/[\u200B-\u200D\uFEFF]/g,""),r=(n=n.replace(/\r?\n|\r/g,"")).length-32,o=n.substring(r),i=n.substring(0,r),a=__read$1c(e.extractBracketedInformation(n),2);return{md5:o,license:i,version:a[0],isTrial:a[1]}},e.prototype.getLicenseDetails=function(t){var n=e.extractLicenseComponents(t),r=n.md5,o=n.license,i=n.version,a=n.isTrial,s=r===this.md5.md5(o)&&-1===t.indexOf("For_Trialing_ag-Grid_Only"),l=null,c=null;return s&&(c=e.extractExpiry(o),s=!isNaN(c.getTime()),a&&(l=c<new Date)),{licenseKey:t,valid:s,expiry:s?e.formatDate(c):null,version:i||"legacy",isTrial:a,trialExpired:l}},e.prototype.isDisplayWatermark=function(){return!this.isLocalhost()&&!this.isWebsiteUrl()&&!missingOrEmpty(this.watermarkMessage)},e.prototype.getWatermarkMessage=function(){return this.watermarkMessage||""},e.prototype.getHostname=function(){var e=(this.document.defaultView||window).location.hostname;return void 0===e?"":e},e.prototype.isWebsiteUrl=function(){return null!==this.getHostname().match(/^((?:\w+\.)?ag-grid\.com)$/)},e.prototype.isLocalhost=function(){return null!==this.getHostname().match(/^(?:127\.0\.0\.1|localhost)$/)},e.formatDate=function(e){var t=e.getDate(),n=e.getMonth(),r=e.getFullYear();return t+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][n]+" "+r},e.getGridReleaseDate=function(){return new Date(parseInt(e.decode(e.RELEASE_INFORMATION),10))},e.decode=function(t){for(var n,r,o,i,a,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0,d=t.replace(/[^A-Za-z0-9+/=]/g,"");u<d.length;)n=l.indexOf(d.charAt(u++))<<2|(i=l.indexOf(d.charAt(u++)))>>4,r=(15&i)<<4|(a=l.indexOf(d.charAt(u++)))>>2,o=(3&a)<<6|(s=l.indexOf(d.charAt(u++))),c+=String.fromCharCode(n),64!=a&&(c+=String.fromCharCode(r)),64!=s&&(c+=String.fromCharCode(o));return e.utf8_decode(c)},e.utf8_decode=function(e){e=e.replace(/rn/g,"n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},e.setLicenseKey=function(e){this.licenseKey=e},e.extractBracketedInformation=function(e){var t=e.split("[").filter(function(e){return e.indexOf("]")>-1}).map(function(e){return e.split("]")[0]});if(!t||0===t.length)return[null,null];var n=1===t.filter(function(e){return"TRIAL"===e}).length;return[t.filter(function(e){return 0===e.indexOf("v")}).map(function(e){return e.replace(/^v/,"")})[0],n]},e.prototype.validateLicenseKeyForVersion=function(e,t,n){"2"===e&&(t?this.validateForTrial(n):this.validateLegacyKey(n))},e.prototype.validateLegacyKey=function(t){var n=e.getGridReleaseDate(),r=e.extractExpiry(t),o=!1,i=!1;if(isNaN(r.getTime())||(o=!0,i=n<r),o){if(!i){var a=e.formatDate(r),s=e.formatDate(n);this.outputIncompatibleVersion(a,s)}}else this.outputInvalidLicenseKey()},e.prototype.validateForTrial=function(t){var n=e.extractExpiry(t),r=new Date,o=!1,i=!1;if(isNaN(n.getTime())||(o=!0,i=n>r),o){if(!i){var a=e.formatDate(n);this.outputExpiredTrialKey(a)}}else this.outputInvalidLicenseKey()},e.prototype.outputInvalidLicenseKey=function(){console.error("*****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License ********************************************"),console.error("********************************************* Invalid License ***************************************************"),console.error("* Your license for AG Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *"),console.error("*****************************************************************************************************************"),console.error("*****************************************************************************************************************"),this.watermarkMessage="Invalid License"},e.prototype.outputExpiredTrialKey=function(e){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("*****************************************   Trial Period Expired.    *******************************************"),console.error("* Your license for AG Grid Enterprise expired on "+e+".                                                *"),console.error("* Please email info@ag-grid.com to purchase a license.                                                         *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="Trial Period Expired"},e.prototype.outputMissingLicenseKey=function(){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("****************************************** License Key Not Found ***********************************************"),console.error("* All AG Grid Enterprise features are unlocked.                                                                *"),console.error("* This is an evaluation only version, it is not licensed for development projects intended for production.     *"),console.error("* If you want to hide the watermark, please email info@ag-grid.com for a trial license.                        *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="For Trial Use Only"},e.prototype.outputIncompatibleVersion=function(e,t){console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),console.error("*                                             AG Grid Enterprise License                                                   *"),console.error("*                           License not compatible with installed version of AG Grid Enterprise.                           *"),console.error("*                                                                                                                          *"),console.error("* Your AG Grid License entitles you to all versions of AG Grid that we release within the time covered by your license     *"),console.error("* - typically we provide one year licenses which entitles you to all releases / updates of AG Grid within that year.       *"),console.error("* Your license has an end (expiry) date which stops the license key working with versions of AG Grid released after the    *"),console.error("* license end date. The license key that you have expires on "+e+", however the version of AG Grid you    *"),console.error("* are trying to use was released on "+t+".                                                               *"),console.error("*                                                                                                                          *"),console.error("* Please contact info@ag-grid.com to renew your subscription to new versions and get a new license key to work with this   *"),console.error("* version of AG Grid.                                                                                                      *"),console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),this.watermarkMessage="License Expired"},e.RELEASE_INFORMATION="MTY4MjQwNjgxNzM3OA==",e}(),__extends$3l=(extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},extendStatics(e,t)},function(e,t){function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),extendStatics,__decorate$2w=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},GridLicenseManager=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$3l(t,e),t.prototype.validateLicense=function(){this.licenseManager=new LicenseManager(this.gridOptionsService.getDocument()),this.licenseManager.validateLicense()},t.getLicenseDetails=function(e){return new LicenseManager(null).getLicenseDetails(e)},t.prototype.isDisplayWatermark=function(){return this.licenseManager.isDisplayWatermark()},t.prototype.getWatermarkMessage=function(){return this.licenseManager.getWatermarkMessage()},t.setLicenseKey=function(e){LicenseManager.setLicenseKey(e)},__decorate$2w([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreConstruct],t.prototype,"validateLicense",null),__decorate$2w([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("licenseManager")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$3k=(e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),__decorate$2v=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},WatermarkComp=function(e){function t(){return e.call(this,'<div class="ag-watermark">\n                    <div ref="eLicenseTextRef" class="ag-watermark-text"></div>\n               </div>')||this}return __extends$3k(t,e),t.prototype.postConstruct=function(){var e=this,t=this.shouldDisplayWatermark();this.setDisplayed(t),t&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout(function(){return e.addCssClass("ag-opacity-zero")},0),window.setTimeout(function(){return e.setDisplayed(!1)},5e3))},t.prototype.shouldDisplayWatermark=function(){var e=(this.gridOptionsService.getDocument().defaultView||window).location.pathname,t=this.licenseManager.isDisplayWatermark();return!!e&&-1!==e.indexOf("forceWatermark")||t},__decorate$2v([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("licenseManager")],t.prototype,"licenseManager",void 0),__decorate$2v([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eLicenseTextRef")],t.prototype,"eLicenseTextRef",void 0),__decorate$2v([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),VERSION$i="29.3.3",EnterpriseCoreModule={version:VERSION$i,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.EnterpriseCoreModule,beans:[GridLicenseManager],agStackComponents:[{componentName:"AgWatermark",componentClass:WatermarkComp}]},__extends$3j=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2u=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__values$D=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},SOURCE_PASTE="paste",EXPORT_TYPE_DRAG_COPY="dragCopy",EXPORT_TYPE_CLIPBOARD="clipboard",CellClearType,e;!function(e){e[e.CellRange=0]="CellRange",e[e.SelectedRows=1]="SelectedRows",e[e.FocusedCell=2]="FocusedCell"}(CellClearType||(CellClearType={}));var ClipboardService=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastPasteOperationTime=0,t.navigatorApiFailed=!1,t}var n;return __extends$3j(t,e),n=t,t.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("ClipboardService"),"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel),this.ctrlsService.whenReady(function(t){e.gridCtrl=t.gridCtrl})},t.prototype.pasteFromClipboard=function(){var e=this;this.logger.log("pasteFromClipboard"),!this.gridOptionsService.is("suppressClipboardApi")&&!this.navigatorApiFailed&&navigator.clipboard&&navigator.clipboard.readText?navigator.clipboard.readText().then(this.processClipboardData.bind(this)).catch(function(t){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){console.warn(t),console.warn("AG Grid: Unable to use the Clipboard API (navigator.clipboard.readText()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API")},"clipboardApiError"),e.navigatorApiFailed=!0,e.pasteFromClipboardLegacy()}):this.pasteFromClipboardLegacy()},t.prototype.pasteFromClipboardLegacy=function(){var e=this,t=!1,n=function(n){var r=(new Date).getTime();r-e.lastPasteOperationTime<50&&(t=!0,n.preventDefault()),e.lastPasteOperationTime=r};this.executeOnTempElement(function(e){e.addEventListener("paste",n),e.focus({preventScroll:!0})},function(r){var o=r.value;t?e.refocusLastFocusedCell():e.processClipboardData(o),r.removeEventListener("paste",n)})},t.prototype.refocusLastFocusedCell=function(){var e=this.focusService.getFocusedCell();e&&this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0})},t.prototype.getClipboardDelimiter=function(){var e=this.gridOptionsService.get("clipboardDelimiter");return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e)?e:"\t"},t.prototype.processClipboardData=function(e){var t=this;if(null!=e){var r=n.stringToArray(e,this.getClipboardDelimiter()),o=this.gridOptionsService.getCallback("processDataFromClipboard");o&&(r=o({data:r})),null!=r&&(this.gridOptionsService.is("suppressLastEmptyLineOnPaste")&&this.removeLastLineIfBlank(r),this.doPasteOperation(function(e,n,o,i){t.rangeService&&t.rangeService.isMoreThanOneCell()&&!t.hasOnlyOneValueToPaste(r)?t.pasteIntoActiveRange(r,e,n,i):t.pasteStartingFromFocusedCell(r,e,n,o,i)}))}},t.stringToArray=function(e,t){void 0===t&&(t=",");var n=[],r=function(e){return"\r"===e||"\n"===e},o=!1;if(""===e)return[[""]];for(var i,a,s,l=function(l,c,u){var d=e[u-1],p=e[u],h=e[u+1],f=function(){n[l]||(n[l]=[]),n[l][c]||(n[l][c]="")};if(f(),'"'===p){if(o)return'"'===h?(n[l][c]+='"',u++):o=!1,i=l,a=c,s=u,"continue";if(void 0===d||d===t||r(d))return o=!0,i=l,a=c,s=u,"continue"}if(!o){if(p===t)return c++,f(),i=l,a=c,s=u,"continue";if(r(p))return c=0,l++,f(),"\r"===p&&"\n"===h&&u++,i=l,a=c,s=u,"continue"}n[l][c]+=p,i=l,a=c,s=u},c=0,u=0,d=0;d<e.length;d++)l(c,u,d),c=i,u=a,d=s;return n},t.prototype.doPasteOperation=function(e){var t,n=this.gridOptionsService.api,r=this.gridOptionsService.columnApi,o="clipboard";if(this.eventService.dispatchEvent({type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_PASTE_START,api:n,columnApi:r,source:o}),this.clientSideRowModel){var i=this.gridOptionsService.is("aggregateOnlyChangedColumns");t=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ChangedPath(i,this.clientSideRowModel.getRootNode())}var a={},s=[];e(a,s,this.focusService.getFocusedCell(),t),t&&this.clientSideRowModel.doAggregate(t),this.rowRenderer.refreshCells(),this.dispatchFlashCells(a),this.fireRowChanged(s),this.refocusLastFocusedCell();var l={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_PASTE_END,source:o};this.eventService.dispatchEvent(l)},t.prototype.pasteIntoActiveRange=function(e,t,n,r){var o=this,i=this.getRangeSize()%e.length!=0,a=0,s=0;this.iterateActiveRanges(!1,function(l,c,u,d){if(d-a>=e.length){if(i)return;a+=s,s=0}var p=e[d-a];n.push(c);var h=o.gridOptionsService.getCallback("processCellFromClipboard");u.forEach(function(e,n){if(e.isCellEditable(c)&&!e.isSuppressPaste(c)){n>=p.length&&(n%=p.length);var i=o.processCell(c,e,p[n],EXPORT_TYPE_DRAG_COPY,h);c.setDataValue(e,i,SOURCE_PASTE),r&&r.addParentNode(c.parent,[e]);var a=l.rowIndex,s=l.rowPinned,u=o.cellPositionUtils.createIdFromValues({rowIndex:a,column:e,rowPinned:s});t[u]=!0}}),s++})},t.prototype.pasteStartingFromFocusedCell=function(e,t,n,r,o){if(r){var i={rowIndex:r.rowIndex,rowPinned:r.rowPinned},a=this.columnModel.getDisplayedColumnsStartingAt(r.column);this.isPasteSingleValueIntoRange(e)?this.pasteSingleValueIntoRange(e,n,t,o):this.pasteMultipleValues(e,i,n,a,t,EXPORT_TYPE_CLIPBOARD,o)}},t.prototype.isPasteSingleValueIntoRange=function(e){return this.hasOnlyOneValueToPaste(e)&&null!=this.rangeService&&!this.rangeService.isEmpty()},t.prototype.pasteSingleValueIntoRange=function(e,t,n,r){var o=this,i=e[0][0];this.iterateActiveRanges(!1,function(e,a,s){t.push(a),s.forEach(function(e){return o.updateCellValue(a,e,i,n,EXPORT_TYPE_CLIPBOARD,r)})})},t.prototype.hasOnlyOneValueToPaste=function(e){return 1===e.length&&1===e[0].length},t.prototype.copyRangeDown=function(){var e=this;if(this.rangeService&&!this.rangeService.isEmpty()){var t=[];this.doPasteOperation(function(n,r,o,i){var a=e.gridOptionsService.getCallback("processCellForClipboard"),s=e.gridOptionsService.getCallback("processCellFromClipboard");e.iterateActiveRanges(!0,function(o,l,c){t.length?(r.push(l),c.forEach(function(r,a){if(r.isCellEditable(l)&&!r.isSuppressPaste(l)){var c=e.processCell(l,r,t[a],EXPORT_TYPE_DRAG_COPY,s);l.setDataValue(r,c,SOURCE_PASTE),i&&i.addParentNode(l.parent,[r]);var u=o.rowIndex,d=o.rowPinned,p=e.cellPositionUtils.createIdFromValues({rowIndex:u,column:r,rowPinned:d});n[p]=!0}})):c.forEach(function(n){var r=e.processCell(l,n,e.valueService.getValue(n,l),EXPORT_TYPE_DRAG_COPY,a);t.push(r)})})})}},t.prototype.removeLastLineIfBlank=function(e){var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(e);if(t&&1===t.length&&""===t[0]){if(1===e.length)return;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromArray(e,t)}},t.prototype.fireRowChanged=function(e){var t=this;"fullRow"===this.gridOptionsService.get("editType")&&e.forEach(function(e){var n={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_ROW_VALUE_CHANGED,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned};t.eventService.dispatchEvent(n)})},t.prototype.pasteMultipleValues=function(e,t,n,r,o,i,a){var s=this,l=t,c=null!=this.clientSideRowModel&&!this.gridOptionsService.isTreeData();e.forEach(function(e){var t=function(){for(;;){if(!l)return null;var e=s.rowPositionUtils.getRowNode(l);if(l=s.cellNavigationService.getRowBelow({rowPinned:l.rowPinned,rowIndex:l.rowIndex}),null==e)return null;if(!(e.detail||e.footer||c&&e.group))return e}}();t&&(e.forEach(function(e,n){return s.updateCellValue(t,r[n],e,o,i,a)}),n.push(t))})},t.prototype.updateCellValue=function(e,t,n,r,o,i){if(e&&t&&t.isCellEditable(e)&&!t.isSuppressPaste(e)){var a=this.processCell(e,t,n,o,this.gridOptionsService.getCallback("processCellFromClipboard"));e.setDataValue(t,a,SOURCE_PASTE);var s=e.rowIndex,l=e.rowPinned;r[this.cellPositionUtils.createIdFromValues({rowIndex:s,column:t,rowPinned:l})]=!0,i&&i.addParentNode(e.parent,[t])}},t.prototype.copyToClipboard=function(e){void 0===e&&(e={}),this.copyOrCutToClipboard(e)},t.prototype.cutToClipboard=function(e){void 0===e&&(e={}),this.gridOptionsService.is("suppressCutToClipboard")||this.copyOrCutToClipboard(e,!0)},t.prototype.copyOrCutToClipboard=function(e,t){var n=e.includeHeaders,r=e.includeGroupHeaders;this.logger.log("copyToClipboard: includeHeaders = "+n),null==n&&(n=this.gridOptionsService.is("copyHeadersToClipboard")),null==r&&(r=this.gridOptionsService.is("copyGroupHeadersToClipboard"));var o={includeHeaders:n,includeGroupHeaders:r},i=!this.gridOptionsService.is("suppressCopyRowsToClipboard"),a=null;!this.rangeService||this.rangeService.isEmpty()||this.shouldSkipSingleCellRange()?i&&!this.selectionService.isEmpty()?(this.copySelectedRowsToClipboard(o),a=CellClearType.SelectedRows):this.focusService.isAnyCellFocused()&&(this.copyFocusedCellToClipboard(o),a=CellClearType.FocusedCell):(this.copySelectedRangeToClipboard(o),a=CellClearType.CellRange),t&&null!==a&&this.clearCellsAfterCopy(a)},t.prototype.clearCellsAfterCopy=function(e){if(this.eventService.dispatchEvent({type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),e===CellClearType.CellRange)this.rangeService.clearCellRangeCellValues(void 0,"clipboardService");else if(e===CellClearType.SelectedRows)this.clearSelectedRows();else{var t=this.focusService.getFocusedCell();if(null==t)return;var n=this.rowPositionUtils.getRowNode(t);n&&this.clearCellValue(n,t.column)}this.eventService.dispatchEvent({type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_KEY_SHORTCUT_CHANGED_CELL_END})},t.prototype.clearSelectedRows=function(){var e,t,n,r,o=this.selectionService.getSelectedNodes(),i=this.columnModel.getAllDisplayedColumns();try{for(var a=__values$D(o),s=a.next();!s.done;s=a.next()){var l=s.value;try{for(var c=(n=void 0,__values$D(i)),u=c.next();!u.done;u=c.next()){var d=u.value;this.clearCellValue(l,d)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},t.prototype.clearCellValue=function(e,t){t.isCellEditable(e)&&e.setDataValue(t,null,"clipboardService")},t.prototype.shouldSkipSingleCellRange=function(){return this.gridOptionsService.is("suppressCopySingleCellRanges")&&!this.rangeService.isMoreThanOneCell()},t.prototype.iterateActiveRanges=function(e,t,n){var r=this;if(this.rangeService&&!this.rangeService.isEmpty()){var o=this.rangeService.getCellRanges();e?this.iterateActiveRange(o[0],t,n,!0):o.forEach(function(e,i){return r.iterateActiveRange(e,t,n,i===o.length-1)})}},t.prototype.iterateActiveRange=function(e,t,n,r){if(this.rangeService){var o=this.rangeService.getRangeStartRow(e),i=this.rangeService.getRangeEndRow(e);n&&e.columns&&n(e.columns);for(var a=0,s=!1;!s&&null!=o;){var l=this.rowPositionUtils.getRowNode(o);s=this.rowPositionUtils.sameRow(o,i),t(o,l,e.columns,a++,s&&r),o=this.cellNavigationService.getRowBelow(o)}}},t.prototype.copySelectedRangeToClipboard=function(e){if(void 0===e&&(e={}),this.rangeService&&!this.rangeService.isEmpty()){var t=this.rangeService.areAllRangesAbleToMerge()?this.buildDataFromMergedRanges(e):this.buildDataFromRanges(e),n=t.data,r=t.cellsToFlash;this.copyDataToClipboard(n),this.dispatchFlashCells(r)}},t.prototype.buildDataFromMergedRanges=function(e){var t=this,n=new Set,r=this.rangeService.getCellRanges(),o=new Map,i=[],a={};r.forEach(function(e){e.columns.forEach(function(e){return n.add(e)});var r=t.getRangeRowPositionsAndCellsToFlash(e),s=r.rowPositions,l=r.cellsToFlash;s.forEach(function(e){var t=e.rowIndex+"-"+(e.rowPinned||"null");o.get(t)||(o.set(t,!0),i.push(e))}),Object.assign(a,l)});var s=this.columnModel.getAllDisplayedColumns(),l=Array.from(n);return l.sort(function(e,t){return s.indexOf(e)-s.indexOf(t)}),{data:this.buildExportParams({columns:l,rowPositions:i,includeHeaders:e.includeHeaders,includeGroupHeaders:e.includeGroupHeaders}),cellsToFlash:a}},t.prototype.buildDataFromRanges=function(e){var t=this,n=this.rangeService.getCellRanges(),r=[],o={};return n.forEach(function(n){var i=t.getRangeRowPositionsAndCellsToFlash(n),a=i.rowPositions,s=i.cellsToFlash;Object.assign(o,s),r.push(t.buildExportParams({columns:n.columns,rowPositions:a,includeHeaders:e.includeHeaders,includeGroupHeaders:e.includeGroupHeaders}))}),{data:r.join("\n"),cellsToFlash:o}},t.prototype.getRangeRowPositionsAndCellsToFlash=function(e){for(var t=this,n=[],r={},o=this.rangeService.getRangeStartRow(e),i=this.rangeService.getRangeEndRow(e),a=o;a&&(n.push(a),e.columns.forEach(function(e){var n=a,o=n.rowIndex,i=n.rowPinned,s=t.cellPositionUtils.createIdFromValues({rowIndex:o,column:e,rowPinned:i});r[s]=!0}),!this.rowPositionUtils.sameRow(a,i));)a=this.cellNavigationService.getRowBelow(a);return{rowPositions:n,cellsToFlash:r}},t.prototype.copyFocusedCellToClipboard=function(e){var t;void 0===e&&(e={});var n=this.focusService.getFocusedCell();if(null!=n){var r=this.cellPositionUtils.createId(n),o={rowPinned:n.rowPinned,rowIndex:n.rowIndex},i=n.column,a=this.buildExportParams({columns:[i],rowPositions:[o],includeHeaders:e.includeHeaders,includeGroupHeaders:e.includeGroupHeaders});this.copyDataToClipboard(a),this.dispatchFlashCells(((t={})[r]=!0,t))}},t.prototype.copySelectedRowsToClipboard=function(e){void 0===e&&(e={});var t=e.columnKeys,n=e.includeHeaders,r=e.includeGroupHeaders,o=this.buildExportParams({columns:t,includeHeaders:n,includeGroupHeaders:r});this.copyDataToClipboard(o)},t.prototype.buildExportParams=function(e){var t=this,n=e.columns,r=e.rowPositions,o=e.includeHeaders,i=void 0!==o&&o,a=e.includeGroupHeaders,s={columnKeys:n,rowPositions:r,skipColumnHeaders:!i,skipColumnGroupHeaders:!(void 0!==a&&a),suppressQuotes:!0,columnSeparator:this.getClipboardDelimiter(),onlySelected:!r,processCellCallback:this.gridOptionsService.getCallback("processCellForClipboard"),processRowGroupCallback:function(e){return t.processRowGroupCallback(e)},processHeaderCallback:this.gridOptionsService.getCallback("processHeaderForClipboard"),processGroupHeaderCallback:this.gridOptionsService.getCallback("processGroupHeaderForClipboard")};return this.csvCreator.getDataAsCsv(s,!0)},t.prototype.processRowGroupCallback=function(e){var t=e.node,n=t.key,r=null!=n?n:"";if(e.node.footer){var o="";n&&n.length&&(o=" "+n),r="Total"+o}var i=this.gridOptionsService.getCallback("processCellForClipboard");if(i){var a=t.rowGroupColumn;return!a&&t.footer&&-1===t.level&&(a=this.columnModel.getRowGroupColumns()[0]),i({value:r,node:t,column:a,type:"clipboard"})}return r},t.prototype.dispatchFlashCells=function(e){var t=this;window.setTimeout(function(){var n={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_FLASH_CELLS,cells:e};t.eventService.dispatchEvent(n)},0)},t.prototype.processCell=function(e,t,n,r,o){return o?o({column:t,node:e,value:n,type:r}):n},t.prototype.copyDataToClipboard=function(e){var t=this,n=this.gridOptionsService.getCallback("sendToClipboard");n?n({data:e}):!this.gridOptionsService.is("suppressClipboardApi")&&navigator.clipboard?navigator.clipboard.writeText(e).catch(function(n){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){console.warn(n),console.warn("AG Grid: Unable to use the Clipboard API (navigator.clipboard.writeText()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.")},"clipboardApiError"),t.copyDataToClipboardLegacy(e)}):this.copyDataToClipboardLegacy(e)},t.prototype.copyDataToClipboardLegacy=function(e){var t=this;this.executeOnTempElement(function(n){var r=t.gridOptionsService.getDocument(),o=r.activeElement;n.value=e||" ",n.select(),n.focus({preventScroll:!0}),r.execCommand("copy")||console.warn("AG Grid: Browser did not allow document.execCommand('copy'). Ensure api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons."),null!=o&&null!=o.focus&&o.focus({preventScroll:!0})})},t.prototype.executeOnTempElement=function(e,t){var n=this.gridOptionsService.getDocument(),r=n.createElement("textarea");r.style.width="1px",r.style.height="1px",r.style.top=n.documentElement.scrollTop+"px",r.style.left=n.documentElement.scrollLeft+"px",r.style.position="absolute",r.style.opacity="0";var o=this.gridCtrl.getGui();o.appendChild(r);try{e(r)}catch(e){console.warn("AG Grid: Browser does not support document.execCommand('copy') for clipboard operations")}t?window.setTimeout(function(){t(r),o.removeChild(r)},100):o.removeChild(r)},t.prototype.getRangeSize=function(){var e=this.rangeService.getCellRanges(),t=0,n=0;return e.length>0&&(t=this.rangeService.getRangeStartRow(e[0]).rowIndex,n=this.rangeService.getRangeEndRow(e[0]).rowIndex),t-n+1},__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("csvCreator")],t.prototype,"csvCreator",void 0),__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("loggerFactory")],t.prototype,"loggerFactory",void 0),__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("selectionService")],t.prototype,"selectionService",void 0),__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Optional)("rangeService")],t.prototype,"rangeService",void 0),__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowModel")],t.prototype,"rowModel",void 0),__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ctrlsService")],t.prototype,"ctrlsService",void 0),__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueService")],t.prototype,"valueService",void 0),__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("focusService")],t.prototype,"focusService",void 0),__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowRenderer")],t.prototype,"rowRenderer",void 0),__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("cellNavigationService")],t.prototype,"cellNavigationService",void 0),__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),__decorate$2u([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),n=__decorate$2u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("clipboardService")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),VERSION$h="29.3.3",ClipboardModule={version:VERSION$h,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ClipboardModule,beans:[ClipboardService],dependantModules:[EnterpriseCoreModule,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CsvExportModule]},__extends$3i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2t=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ExpandState;!function(e){e[e.EXPANDED=0]="EXPANDED",e[e.COLLAPSED=1]="COLLAPSED",e[e.INDETERMINATE=2]="INDETERMINATE"}(ExpandState||(ExpandState={}));var PrimaryColsHeaderPanel=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return __extends$3i(t,e),t.prototype.postConstruct=function(){var e=this;this.createExpandIcons(),this.addManagedListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eExpand,"keydown",function(t){t.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.SPACE&&(t.preventDefault(),e.onExpandClicked())}),this.addManagedListener(this.eSelect.getInputElement(),"click",this.onSelectClicked.bind(this)),this.eFilterTextField.onValueChange(function(){return e.onFilterTextChanged()}),this.addManagedListener(this.eFilterTextField.getInputElement(),"keypress",this.onMiniFilterKeyPress.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this));var t=this.localeService.getLocaleTextFunc();this.eSelect.setInputAriaLabel(t("ariaColumnSelectAll","Toggle Select All Columns")),this.eFilterTextField.setInputAriaLabel(t("ariaFilterColumnsInput","Filter Columns Input"))},t.prototype.init=function(e){this.params=e,this.columnModel.isReady()&&this.showOrHideOptions()},t.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columnSelectOpen",this.gridOptionsService)),this.eExpand.appendChild(this.eExpandUnchecked=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columnSelectClosed",this.gridOptionsService)),this.eExpand.appendChild(this.eExpandIndeterminate=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsService)),this.setExpandState(ExpandState.EXPANDED)},t.prototype.showOrHideOptions=function(){var e=!this.params.suppressColumnFilter,t=!this.params.suppressColumnSelectAll,n=!this.params.suppressColumnExpandAll,r=this.columnModel.isPrimaryColumnGroupsPresent(),o=this.localeService.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(o("searchOoo","Search...")),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eFilterTextField.getGui(),e),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eSelect.getGui(),t),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpand,n&&r)},t.prototype.onFilterTextChanged=function(){var e=this;this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.debounce(function(){var t=e.eFilterTextField.getValue();e.dispatchEvent({type:"filterChanged",filterText:t})},t.DEBOUNCE_DELAY)),this.onFilterTextChangedDebounced()},t.prototype.onMiniFilterKeyPress=function(e){var n=this;e.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.ENTER&&setTimeout(function(){return n.onSelectClicked()},t.DEBOUNCE_DELAY)},t.prototype.onSelectClicked=function(){this.dispatchEvent({type:this.selectState?"unselectAll":"selectAll"})},t.prototype.onExpandClicked=function(){this.dispatchEvent({type:this.expandState===ExpandState.EXPANDED?"collapseAll":"expandAll"})},t.prototype.setExpandState=function(e){this.expandState=e,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpandChecked,this.expandState===ExpandState.EXPANDED),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpandUnchecked,this.expandState===ExpandState.COLLAPSED),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpandIndeterminate,this.expandState===ExpandState.INDETERMINATE)},t.prototype.setSelectionState=function(e){this.selectState=e,this.eSelect.setValue(this.selectState)},t.DEBOUNCE_DELAY=300,t.TEMPLATE='<div class="ag-column-select-header" role="presentation">\n            <div ref="eExpand" class="ag-column-select-header-icon" tabindex="0"></div>\n            <ag-checkbox ref="eSelect" class="ag-column-select-header-checkbox"></ag-checkbox>\n            <ag-input-text-field class="ag-column-select-header-filter-wrapper" ref="eFilterTextField"></ag-input-text-field>\n        </div>',__decorate$2t([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2t([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eExpand")],t.prototype,"eExpand",void 0),__decorate$2t([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eSelect")],t.prototype,"eSelect",void 0),__decorate$2t([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eFilterTextField")],t.prototype,"eFilterTextField",void 0),__decorate$2t([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),ColumnModelItem=function(){function e(e,t,n,r,o){void 0===r&&(r=!1),this.eventService=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.EventService,this.displayName=e,this.dept=n,this.group=r,r?(this.columnGroup=t,this.expanded=o,this.children=[]):this.column=t}return e.prototype.isGroup=function(){return this.group},e.prototype.getDisplayName=function(){return this.displayName},e.prototype.getColumnGroup=function(){return this.columnGroup},e.prototype.getColumn=function(){return this.column},e.prototype.getDept=function(){return this.dept},e.prototype.isExpanded=function(){return!!this.expanded},e.prototype.getChildren=function(){return this.children},e.prototype.isPassesFilter=function(){return this.passesFilter},e.prototype.setExpanded=function(t){t!==this.expanded&&(this.expanded=t,this.eventService.dispatchEvent({type:e.EVENT_EXPANDED_CHANGED}))},e.prototype.setPassesFilter=function(e){this.passesFilter=e},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e}(),__extends$3h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2s=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$1b=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$J=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$1b(arguments[t]));return e},__values$C=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ToolPanelContextMenu=function(e){function t(t,n,r){var o=e.call(this,'<div class="ag-menu"></div>')||this;return o.column=t,o.mouseEvent=n,o.parentEl=r,o.displayName=null,o}return __extends$3h(t,e),t.prototype.postConstruct=function(){this.initializeProperties(this.column),this.buildMenuItemMap(),this.column instanceof ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column?this.displayName=this.columnModel.getDisplayNameForColumn(this.column,"columnToolPanel"):this.displayName=this.columnModel.getDisplayNameForProvidedColumnGroup(null,this.column,"columnToolPanel"),this.isActive()&&(this.mouseEvent.preventDefault(),this.displayContextMenu())},t.prototype.initializeProperties=function(e){e instanceof ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedColumnGroup?this.columns=e.getLeafColumns():this.columns=[e],this.allowGrouping=this.columns.some(function(e){return e.isPrimary()&&e.isAllowRowGroup()}),this.allowValues=this.columns.some(function(e){return e.isPrimary()&&e.isAllowValue()}),this.allowPivoting=this.columnModel.isPivotMode()&&this.columns.some(function(e){return e.isPrimary()&&e.isAllowPivot()})},t.prototype.buildMenuItemMap=function(){var e=this,t=this.localeService.getLocaleTextFunc();this.menuItemMap=new Map,this.menuItemMap.set("rowGroup",{allowedFunction:function(e){return e.isPrimary()&&e.isAllowRowGroup()},activeFunction:function(e){return e.isRowGroupActive()},activateLabel:function(){return t("groupBy","Group by")+" "+e.displayName},deactivateLabel:function(){return t("ungroupBy","Un-Group by")+" "+e.displayName},activateFunction:function(){var t=e.columnModel.getRowGroupColumns();e.columnModel.setRowGroupColumns(e.addColumnsToList(t),"toolPanelUi")},deActivateFunction:function(){var t=e.columnModel.getRowGroupColumns();e.columnModel.setRowGroupColumns(e.removeColumnsFromList(t),"toolPanelUi")},addIcon:"menuAddRowGroup",removeIcon:"menuRemoveRowGroup"}),this.menuItemMap.set("value",{allowedFunction:function(e){return e.isPrimary()&&e.isAllowValue()},activeFunction:function(e){return e.isValueActive()},activateLabel:function(){return t("addToValues","Add "+e.displayName+" to values",[e.displayName])},deactivateLabel:function(){return t("removeFromValues","Remove "+e.displayName+" from values",[e.displayName])},activateFunction:function(){var t=e.columnModel.getValueColumns();e.columnModel.setValueColumns(e.addColumnsToList(t),"toolPanelUi")},deActivateFunction:function(){var t=e.columnModel.getValueColumns();e.columnModel.setValueColumns(e.removeColumnsFromList(t),"toolPanelUi")},addIcon:"valuePanel",removeIcon:"valuePanel"}),this.menuItemMap.set("pivot",{allowedFunction:function(t){return e.columnModel.isPivotMode()&&t.isPrimary()&&t.isAllowPivot()},activeFunction:function(e){return e.isPivotActive()},activateLabel:function(){return t("addToLabels","Add "+e.displayName+" to labels",[e.displayName])},deactivateLabel:function(){return t("removeFromLabels","Remove "+e.displayName+" from labels",[e.displayName])},activateFunction:function(){var t=e.columnModel.getPivotColumns();e.columnModel.setPivotColumns(e.addColumnsToList(t),"toolPanelUi")},deActivateFunction:function(){var t=e.columnModel.getPivotColumns();e.columnModel.setPivotColumns(e.removeColumnsFromList(t),"toolPanelUi")},addIcon:"pivotPanel",removeIcon:"pivotPanel"})},t.prototype.addColumnsToList=function(e){return __spread$J(e).concat(this.columns.filter(function(t){return-1===e.indexOf(t)}))},t.prototype.removeColumnsFromList=function(e){var t=this;return e.filter(function(e){return-1===t.columns.indexOf(e)})},t.prototype.displayContextMenu=function(){var e=this,t=this.getGui(),n=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgMenuList),r=this.getMappedMenuItems(),o=this.localeService.getLocaleTextFunc(),i=function(){};t.appendChild(n.getGui()),n.addMenuItems(r),n.addManagedListener(n,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED,function(){e.parentEl.focus(),i()});var a=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,afterGuiAttached:function(){return e.focusService.focusInto(n.getGui())},ariaLabel:o("ariaLabelContextMenu","Context Menu"),closedCallback:function(t){t instanceof KeyboardEvent&&e.parentEl.focus(),e.destroyBean(n)}});a&&(i=a.hideFunc),this.popupService.positionPopupUnderMouseEvent({type:"columnContextMenu",mouseEvent:this.mouseEvent,ePopup:t})},t.prototype.isActive=function(){return this.allowGrouping||this.allowValues||this.allowPivoting},t.prototype.getMappedMenuItems=function(){var e,t,n=[],r=function(e){var t=o.columns.some(function(t){return e.allowedFunction(t)&&!e.activeFunction(t)}),r=o.columns.some(function(t){return e.allowedFunction(t)&&e.activeFunction(t)});t&&n.push({name:e.activateLabel(o.displayName),icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan(e.addIcon,o.gridOptionsService,null),action:function(){return e.activateFunction()}}),r&&n.push({name:e.deactivateLabel(o.displayName),icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan(e.removeIcon,o.gridOptionsService,null),action:function(){return e.deActivateFunction()}})},o=this;try{for(var i=__values$C(this.menuItemMap.values()),a=i.next();!a.done;a=i.next())r(a.value)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n},__decorate$2s([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2s([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("popupService")],t.prototype,"popupService",void 0),__decorate$2s([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("focusService")],t.prototype,"focusService",void 0),__decorate$2s([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$3g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2r=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ToolPanelColumnGroupComp=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.modelItem=t,i.allowDragging=n,i.eventType=r,i.focusWrapper=o,i.processingColumnStateChange=!1,i.modelItem=t,i.columnGroup=t.getColumnGroup(),i.columnDept=t.getDept(),i.allowDragging=n,i}return __extends$3g(t,e),t.prototype.init=function(){var e=this;this.setTemplate(t.TEMPLATE),this.eDragHandle=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columnDrag",this.gridOptionsService),this.eDragHandle.classList.add("ag-drag-handle","ag-column-select-column-group-drag-handle");var n=this.cbSelect.getGui(),r=this.cbSelect.getInputElement();n.insertAdjacentElement("afterend",this.eDragHandle),r.setAttribute("tabindex","-1"),this.displayName=this.columnModel.getDisplayNameForProvidedColumnGroup(null,this.columnGroup,this.eventType),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(this.displayName)&&(this.displayName=">>"),this.eLabel.innerHTML=this.displayName?this.displayName:"",this.setupExpandContract(),this.addCssClass("ag-column-select-indent-"+this.columnDept),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.addManagedListener(this.cbSelect,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgCheckbox.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.addManagedListener(this.modelItem,ColumnModelItem.EVENT_EXPANDED_CHANGED,this.onExpandChanged.bind(this)),this.addManagedListener(this.focusWrapper,"keydown",this.handleKeyDown.bind(this)),this.addManagedListener(this.focusWrapper,"contextmenu",this.onContextMenu.bind(this)),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),this.refreshAriaExpanded(),this.refreshAriaLabel(),this.setupTooltip(),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CssClassApplier.getToolPanelClassesFromColDef(this.columnGroup.getColGroupDef(),this.gridOptionsService,null,this.columnGroup).forEach(function(t){return e.addOrRemoveCssClass(t,!0)})},t.prototype.getColumns=function(){return this.columnGroup.getLeafColumns()},t.prototype.setupTooltip=function(){var e=this,t=this.columnGroup.getColGroupDef();if(t){var n=function(){var n=t.headerTooltip;e.setTooltip(n)};n(),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,n)}},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="columnToolPanelColumnGroup",t},t.prototype.handleKeyDown=function(e){switch(e.key){case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.LEFT:e.preventDefault(),this.modelItem.setExpanded(!1);break;case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.RIGHT:e.preventDefault(),this.modelItem.setExpanded(!0);break;case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.SPACE:e.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected())}},t.prototype.onContextMenu=function(e){var t=this,n=this.columnGroup;if(!this.gridOptionsService.is("functionsReadOnly")){var r=this.createBean(new ToolPanelContextMenu(n,e,this.focusWrapper));this.addDestroyFunc(function(){r.isAlive()&&t.destroyBean(r)})}},t.prototype.addVisibilityListenersToAllChildren=function(){var e=this;this.columnGroup.getLeafColumns().forEach(function(t){e.addManagedListener(t,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_VISIBLE_CHANGED,e.onColumnStateChanged.bind(e)),e.addManagedListener(t,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_VALUE_CHANGED,e.onColumnStateChanged.bind(e)),e.addManagedListener(t,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_PIVOT_CHANGED,e.onColumnStateChanged.bind(e)),e.addManagedListener(t,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_ROW_GROUP_CHANGED,e.onColumnStateChanged.bind(e))})},t.prototype.setupDragging=function(){var e=this;if(this.allowDragging){var t=!this.gridOptionsService.is("suppressDragLeaveHidesColumns"),n={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,defaultIconName:t?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_HIDE:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_NOT_ALLOWED,getDragItem:function(){return e.createDragItem()},onDragStarted:function(){var t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START,column:e.columnGroup};e.eventService.dispatchEvent(t)},onDragStopped:function(){var t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END};e.eventService.dispatchEvent(t)},onGridEnter:function(){t&&e.onChangeCommon(!0)},onGridExit:function(){t&&e.onChangeCommon(!1)}};this.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc(function(){return e.dragAndDropService.removeDragSource(n)})}else ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eDragHandle,!1)},t.prototype.createDragItem=function(){var e={};return this.columnGroup.getLeafColumns().forEach(function(t){e[t.getId()]=t.isVisible()}),{columns:this.columnGroup.getLeafColumns(),visibleState:e}},t.prototype.setupExpandContract=function(){this.eGroupClosedIcon.appendChild(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIcon("columnSelectClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIcon("columnSelectOpen",this.gridOptionsService,null)),this.addManagedListener(this.eGroupClosedIcon,"click",this.onExpandOrContractClicked.bind(this)),this.addManagedListener(this.eGroupOpenedIcon,"click",this.onExpandOrContractClicked.bind(this));var e=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TouchListener(this.eColumnGroupIcons,!0);this.addManagedListener(e,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TouchListener.EVENT_TAP,this.onExpandOrContractClicked.bind(this)),this.addDestroyFunc(e.destroy.bind(e))},t.prototype.onLabelClicked=function(){var e=!this.cbSelect.getValue();this.onChangeCommon(e)},t.prototype.onCheckboxChanged=function(e){this.onChangeCommon(e.selected)},t.prototype.getVisibleLeafColumns=function(){var e=[],t=function(n){n.forEach(function(n){n.isPassesFilter()&&(n.isGroup()?t(n.getChildren()):e.push(n.getColumn()))})};return t(this.modelItem.getChildren()),e},t.prototype.onChangeCommon=function(e){this.refreshAriaLabel(),this.processingColumnStateChange||this.modelItemUtils.selectAllChildren(this.modelItem.getChildren(),e,this.eventType)},t.prototype.refreshAriaLabel=function(){var e=this.localeService.getLocaleTextFunc(),t=e("ariaColumnGroup","Column Group"),n=this.cbSelect.getValue(),r=void 0===n?e("ariaIndeterminate","indeterminate"):n?e("ariaVisible","visible"):e("ariaHidden","hidden"),o=e("ariaToggleVisibility","Press SPACE to toggle visibility");ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaLabel(this.focusWrapper,this.displayName+" "+t),this.cbSelect.setInputAriaLabel(o+" ("+r+")"),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaDescribedBy(this.focusWrapper,this.cbSelect.getInputElement().id)},t.prototype.onColumnStateChanged=function(){var e=this.workOutSelectedValue(),t=this.workOutReadOnlyValue();this.processingColumnStateChange=!0,this.cbSelect.setValue(e),this.cbSelect.setReadOnly(t),this.addOrRemoveCssClass("ag-column-select-column-group-readonly",t),this.processingColumnStateChange=!1},t.prototype.workOutSelectedValue=function(){var e=this,t=this.columnModel.isPivotMode(),n=this.getVisibleLeafColumns(),r=0,o=0;if(n.forEach(function(n){!t&&n.getColDef().lockVisible||(e.isColumnChecked(n,t)?r++:o++)}),!(r>0&&o>0))return r>0},t.prototype.workOutReadOnlyValue=function(){var e=this.columnModel.isPivotMode(),t=0;return this.columnGroup.getLeafColumns().forEach(function(n){e?n.isAnyFunctionAllowed()&&t++:n.getColDef().lockVisible||t++}),0===t},t.prototype.isColumnChecked=function(e,t){if(t){var n=e.isPivotActive(),r=e.isRowGroupActive(),o=e.isValueActive();return n||r||o}return e.isVisible()},t.prototype.onExpandOrContractClicked=function(){var e=this.modelItem.isExpanded();this.modelItem.setExpanded(!e)},t.prototype.onExpandChanged=function(){this.setOpenClosedIcons(),this.refreshAriaExpanded()},t.prototype.setOpenClosedIcons=function(){var e=this.modelItem.isExpanded();ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eGroupClosedIcon,!e),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eGroupOpenedIcon,e)},t.prototype.refreshAriaExpanded=function(){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaExpanded(this.focusWrapper,this.modelItem.isExpanded())},t.prototype.getDisplayName=function(){return this.displayName},t.prototype.onSelectAllChanged=function(e){var t=this.cbSelect.getValue();!this.cbSelect.isReadOnly()&&(e&&!t||!e&&t)&&this.cbSelect.toggle()},t.prototype.isSelected=function(){return this.cbSelect.getValue()},t.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},t.prototype.setSelected=function(e){this.cbSelect.setValue(e,!0)},t.TEMPLATE='<div class="ag-column-select-column-group" aria-hidden="true">\n            <span class="ag-column-group-icons" ref="eColumnGroupIcons" >\n                <span class="ag-column-group-closed-icon" ref="eGroupClosedIcon"></span>\n                <span class="ag-column-group-opened-icon" ref="eGroupOpenedIcon"></span>\n            </span>\n            <ag-checkbox ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>\n            <span class="ag-column-select-column-label" ref="eLabel"></span>\n        </div>',__decorate$2r([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2r([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),__decorate$2r([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("modelItemUtils")],t.prototype,"modelItemUtils",void 0),__decorate$2r([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("cbSelect")],t.prototype,"cbSelect",void 0),__decorate$2r([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eLabel")],t.prototype,"eLabel",void 0),__decorate$2r([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),__decorate$2r([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),__decorate$2r([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eColumnGroupIcons")],t.prototype,"eColumnGroupIcons",void 0),__decorate$2r([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$3f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2q=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},PRIMARY_COLS_LIST_ITEM_HOVERED="ag-list-item-hovered",PrimaryColsListPanelItemDragFeature=function(e){function t(t,n){var r=e.call(this)||this;return r.comp=t,r.virtualList=n,r.currentDragColumn=null,r.lastHoveredColumnItem=null,r}return __extends$3f(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START,this.columnPanelItemDragStart.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END,this.columnPanelItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()},t.prototype.columnPanelItemDragStart=function(e){var t=e.column;this.currentDragColumn=t,this.getCurrentColumns().find(function(e){var t=e.getColDef();return!!t.suppressMovable||!!t.lockPosition})&&(this.moveBlocked=!0)},t.prototype.columnPanelItemDragEnd=function(){var e=this;window.setTimeout(function(){e.currentDragColumn=null,e.moveBlocked=!1},10)},t.prototype.createDropTarget=function(){var e=this,t={isInterestedIn:function(e){return e===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragSourceType.ToolPanel},getIconName:function(){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService[e.moveBlocked?"ICON_NOT_ALLOWED":"ICON_MOVE"]},getContainer:function(){return e.comp.getGui()},onDragging:function(t){return e.onDragging(t)},onDragStop:function(){return e.onDragStop()},onDragLeave:function(){return e.onDragLeave()}};this.dragAndDropService.addDropTarget(t)},t.prototype.createAutoScrollService=function(){var e=this.virtualList.getGui();this.autoScrollService=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AutoScrollService({scrollContainer:e,scrollAxis:"y",getVerticalPosition:function(){return e.scrollTop},setVerticalPosition:function(t){return e.scrollTop=t}})},t.prototype.onDragging=function(e){if(this.currentDragColumn&&!this.moveBlocked){var t=this.getDragColumnItem(e),n=this.virtualList.getComponentAt(t.rowIndex);if(n){var r=n.getGui().parentElement;this.lastHoveredColumnItem&&this.lastHoveredColumnItem.rowIndex===t.rowIndex&&this.lastHoveredColumnItem.position===t.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredColumnItem=t,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.radioCssClass(r,""+PRIMARY_COLS_LIST_ITEM_HOVERED),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.radioCssClass(r,"ag-item-highlight-"+t.position))}}},t.prototype.getDragColumnItem=function(e){var t=this.virtualList.getGui(),n=parseFloat(window.getComputedStyle(t).paddingTop),r=this.virtualList.getRowHeight(),o=this.virtualList.getScrollTop(),i=Math.max(0,(e.y-n+o)/r),a=this.comp.getDisplayedColsList().length-1,s=0|Math.min(a,i);return{rowIndex:s,position:Math.round(i)>i||i>a?"bottom":"top",component:this.virtualList.getComponentAt(s)}},t.prototype.onDragStop=function(){if(!this.moveBlocked){var e=this.getTargetIndex(),t=this.getCurrentColumns();null!=e&&this.columnModel.moveColumns(t,e,"toolPanelUi"),this.clearHoveredItems(),this.autoScrollService.ensureCleared()}},t.prototype.getMoveDiff=function(e){var t=this.columnModel.getAllGridColumns(),n=this.getCurrentColumns(),r=n[0],o=n.length;return t.indexOf(r)<e?o:0},t.prototype.getCurrentColumns=function(){return this.currentDragColumn instanceof ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedColumnGroup?this.currentDragColumn.getLeafColumns():[this.currentDragColumn]},t.prototype.getTargetIndex=function(){if(!this.lastHoveredColumnItem)return null;var e,t=this.lastHoveredColumnItem.component,n="top"===this.lastHoveredColumnItem.position;t instanceof ToolPanelColumnGroupComp?(e=t.getColumns()[0],n=!0):e=t.getColumn();var r=this.columnModel.getAllGridColumns().indexOf(e),o=n?r:r+1;return o-this.getMoveDiff(o)},t.prototype.onDragLeave=function(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()},t.prototype.clearHoveredItems=function(){this.virtualList.getGui().querySelectorAll("."+PRIMARY_COLS_LIST_ITEM_HOVERED).forEach(function(e){[PRIMARY_COLS_LIST_ITEM_HOVERED,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach(function(t){e.classList.remove(t)})}),this.lastHoveredColumnItem=null},__decorate$2q([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2q([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),__decorate$2q([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$3e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2p=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ToolPanelColumnComp=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a.column=t,a.columnDept=n,a.allowDragging=r,a.groupsExist=o,a.focusWrapper=i,a.processingColumnStateChange=!1,a}return __extends$3e(t,e),t.prototype.init=function(){var e=this;this.setTemplate(t.TEMPLATE),this.eDragHandle=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columnDrag",this.gridOptionsService),this.eDragHandle.classList.add("ag-drag-handle","ag-column-select-column-drag-handle");var n=this.cbSelect.getGui(),r=this.cbSelect.getInputElement();n.insertAdjacentElement("afterend",this.eDragHandle),r.setAttribute("tabindex","-1"),this.displayName=this.columnModel.getDisplayNameForColumn(this.column,"columnToolPanel");var o=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(this.displayName);this.eLabel.innerHTML=o;var i=this.columnDept;this.groupsExist&&this.addCssClass("ag-column-select-add-group-indent"),this.addCssClass("ag-column-select-indent-"+i),this.setupDragging(),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_VALUE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_PIVOT_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_ROW_GROUP_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_VISIBLE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.focusWrapper,"keydown",this.handleKeyDown.bind(this)),this.addManagedListener(this.focusWrapper,"contextmenu",this.onContextMenu.bind(this)),this.addManagedPropertyListener("functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addManagedListener(this.cbSelect,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgCheckbox.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.addManagedListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.onColumnStateChanged(),this.refreshAriaLabel(),this.setupTooltip(),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CssClassApplier.getToolPanelClassesFromColDef(this.column.getColDef(),this.gridOptionsService,this.column,null).forEach(function(t){return e.addOrRemoveCssClass(t,!0)})},t.prototype.getColumn=function(){return this.column},t.prototype.setupTooltip=function(){var e=this,t=function(){var t=e.column.getColDef().headerTooltip;e.setTooltip(t)};t(),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,t)},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="columnToolPanelColumn",t.colDef=this.column.getColDef(),t},t.prototype.onContextMenu=function(e){var t=this,n=this.column;if(!this.gridOptionsService.is("functionsReadOnly")){var r=this.createBean(new ToolPanelContextMenu(n,e,this.focusWrapper));this.addDestroyFunc(function(){r.isAlive()&&t.destroyBean(r)})}},t.prototype.handleKeyDown=function(e){e.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.SPACE&&(e.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected()))},t.prototype.onLabelClicked=function(){if(!this.gridOptionsService.is("functionsReadOnly")){var e=!this.cbSelect.getValue();this.onChangeCommon(e)}},t.prototype.onCheckboxChanged=function(e){this.onChangeCommon(e.selected)},t.prototype.onChangeCommon=function(e){this.cbSelect.isReadOnly()||(this.refreshAriaLabel(),this.processingColumnStateChange||this.modelItemUtils.setColumn(this.column,e,"toolPanelUi"))},t.prototype.refreshAriaLabel=function(){var e=this.localeService.getLocaleTextFunc(),t=e("ariaColumn","Column"),n=this.cbSelect.getValue()?e("ariaVisible","visible"):e("ariaHidden","hidden"),r=e("ariaToggleVisibility","Press SPACE to toggle visibility");ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaLabel(this.focusWrapper,this.displayName+" "+t),this.cbSelect.setInputAriaLabel(r+" ("+n+")"),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaDescribedBy(this.focusWrapper,this.cbSelect.getInputElement().id)},t.prototype.setupDragging=function(){var e=this;if(this.allowDragging){var t=!this.gridOptionsService.is("suppressDragLeaveHidesColumns"),n={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,defaultIconName:t?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_HIDE:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_NOT_ALLOWED,getDragItem:function(){return e.createDragItem()},onDragStarted:function(){var t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START,column:e.column};e.eventService.dispatchEvent(t)},onDragStopped:function(){var t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END};e.eventService.dispatchEvent(t)},onGridEnter:function(){t&&e.onChangeCommon(!0)},onGridExit:function(){t&&e.onChangeCommon(!1)}};this.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc(function(){return e.dragAndDropService.removeDragSource(n)})}else ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eDragHandle,!1)},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.onColumnStateChanged=function(){this.processingColumnStateChange=!0;var e=this.columnModel.isPivotMode();if(e){var t=this.column.isAnyFunctionActive();this.cbSelect.setValue(t)}else this.cbSelect.setValue(this.column.isVisible());var n=!0,r=!0;if(e){var o=this.gridOptionsService.is("functionsReadOnly"),i=!this.column.isAnyFunctionAllowed();r=n=!o&&!i}else{var a=this.column.getColDef(),s=a.enableRowGroup,l=a.enableValue,c=a.lockPosition,u=a.suppressMovable;n=!a.lockVisible,r=!!s||!!l||!(c||u)}this.cbSelect.setReadOnly(!n),this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!r),this.addOrRemoveCssClass("ag-column-select-column-readonly",!r&&!n);var d=e&&this.gridOptionsService.is("functionsPassive");this.cbSelect.setPassive(d),this.processingColumnStateChange=!1},t.prototype.getDisplayName=function(){return this.displayName},t.prototype.onSelectAllChanged=function(e){e!==this.cbSelect.getValue()&&(this.cbSelect.isReadOnly()||this.cbSelect.toggle())},t.prototype.isSelected=function(){return this.cbSelect.getValue()},t.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},t.prototype.isExpandable=function(){return!1},t.prototype.setExpanded=function(e){console.warn("AG Grid: can not expand a column item that does not represent a column group header")},t.TEMPLATE='<div class="ag-column-select-column" aria-hidden="true">\n            <ag-checkbox ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>\n            <span class="ag-column-select-column-label" ref="eLabel"></span>\n        </div>',__decorate$2p([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2p([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),__decorate$2p([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("modelItemUtils")],t.prototype,"modelItemUtils",void 0),__decorate$2p([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eLabel")],t.prototype,"eLabel",void 0),__decorate$2p([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("cbSelect")],t.prototype,"cbSelect",void 0),__decorate$2p([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$3d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2o=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},UIColumnModel=function(){function e(e){this.items=e}return e.prototype.getRowCount=function(){return this.items.length},e.prototype.getRow=function(e){return this.items[e]},e}(),PRIMARY_COLS_LIST_PANEL_CLASS="ag-column-select-list",PrimaryColsListPanel=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.destroyColumnItemFuncs=[],n}return __extends$3d(t,e),t.prototype.destroyColumnTree=function(){this.allColsTree=[],this.destroyColumnItemFuncs.forEach(function(e){return e()}),this.destroyColumnItemFuncs=[]},t.prototype.init=function(e,t,n){var r=this;this.params=e,this.allowDragging=t,this.eventType=n,this.params.suppressSyncLayoutWithGrid||this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_MOVED,this.onColumnsChanged.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,this.onColumnsChanged.bind(this)),[ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_CHANGED,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_VALUE_CHANGED,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_VISIBLE,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED].forEach(function(e){r.addManagedListener(r.eventService,e,r.fireSelectionChangedEvent.bind(r))}),this.expandGroupsByDefault=!this.params.contractColumnSelection;var o=this.localeService.getLocaleTextFunc()("ariaColumnList","Column List");this.virtualList=this.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.VirtualList("column-select","tree",o)),this.appendChild(this.virtualList.getGui()),this.virtualList.setComponentCreator(function(e,t){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaLevel(t,e.getDept()+1),r.createComponentFromItem(e,t)}),this.columnModel.isReady()&&this.onColumnsChanged(),e.suppressColumnMove||this.gridOptionsService.is("suppressMovableColumns")||this.createManagedBean(new PrimaryColsListPanelItemDragFeature(this,this.virtualList))},t.prototype.createComponentFromItem=function(e,t){if(e.isGroup()){var n=new ToolPanelColumnGroupComp(e,this.allowDragging,this.eventType,t);return this.getContext().createBean(n),n}var r=new ToolPanelColumnComp(e.getColumn(),e.getDept(),this.allowDragging,this.groupsExist,t);return this.getContext().createBean(r),r},t.prototype.onColumnsChanged=function(){var e=this.getExpandedStates(),t=this.columnModel.isPivotMode();this.params.suppressSyncLayoutWithGrid||t?this.buildTreeFromProvidedColumnDefs():this.buildTreeFromWhatGridIsDisplaying(),this.setExpandedStates(e),this.markFilteredColumns(),this.flattenAndFilterModel()},t.prototype.getDisplayedColsList=function(){return this.displayedColsList},t.prototype.getExpandedStates=function(){if(!this.allColsTree)return{};var e={};return this.forEachItem(function(t){if(t.isGroup()){var n=t.getColumnGroup();n&&(e[n.getId()]=t.isExpanded())}}),e},t.prototype.setExpandedStates=function(e){this.allColsTree&&this.forEachItem(function(t){if(t.isGroup()){var n=t.getColumnGroup();if(n){var r=e[n.getId()];null!=r&&t.setExpanded(r)}}})},t.prototype.buildTreeFromWhatGridIsDisplaying=function(){this.colDefService.syncLayoutWithGrid(this.setColumnLayout.bind(this))},t.prototype.setColumnLayout=function(e){var t=this.colDefService.createColumnTree(e);this.buildListModel(t),this.groupsExist=e.some(function(e){return e&&void 0!==e.children}),this.markFilteredColumns(),this.flattenAndFilterModel()},t.prototype.buildTreeFromProvidedColumnDefs=function(){this.buildListModel(this.columnModel.getPrimaryColumnTree()),this.groupsExist=this.columnModel.isPrimaryColumnGroupsPresent()},t.prototype.buildListModel=function(e){var t=this,n=this.onColumnExpanded.bind(this),r=function(e,t,n){e.forEach(function(e){e instanceof ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedColumnGroup?o(e,t,n):i(e,t,n)})},o=function(e,o,i){var a=e.getColGroupDef();if(!a||!a.suppressColumnsToolPanel)if(e.isPadding())r(e.getChildren(),o,i);else{var s=t.columnModel.getDisplayNameForProvidedColumnGroup(null,e,t.eventType),l=new ColumnModelItem(s,e,o,!0,t.expandGroupsByDefault);i.push(l),function(e){e.addEventListener(ColumnModelItem.EVENT_EXPANDED_CHANGED,n);var r=e.removeEventListener.bind(e,ColumnModelItem.EVENT_EXPANDED_CHANGED,n);t.destroyColumnItemFuncs.push(r)}(l),r(e.getChildren(),o+1,l.getChildren())}},i=function(e,n,r){if(!e.getColDef()||!e.getColDef().suppressColumnsToolPanel){var o=t.columnModel.getDisplayNameForColumn(e,"columnToolPanel");r.push(new ColumnModelItem(o,e,n))}};this.destroyColumnTree(),r(e,0,this.allColsTree)},t.prototype.onColumnExpanded=function(){this.flattenAndFilterModel()},t.prototype.flattenAndFilterModel=function(){var e=this;this.displayedColsList=[];var t=function(n){n.isPassesFilter()&&(e.displayedColsList.push(n),n.isGroup()&&n.isExpanded()&&n.getChildren().forEach(t))};this.allColsTree.forEach(t),this.virtualList.setModel(new UIColumnModel(this.displayedColsList));var n=this.virtualList.getLastFocusedRow();this.virtualList.refresh(),null!=n&&this.focusRowIfAlive(n),this.notifyListeners()},t.prototype.focusRowIfAlive=function(e){var t=this;window.setTimeout(function(){t.isAlive()&&t.virtualList.focusRow(e)},0)},t.prototype.forEachItem=function(e){var t=function(n){n.forEach(function(n){e(n),n.isGroup()&&t(n.getChildren())})};t(this.allColsTree)},t.prototype.doSetExpandedAll=function(e){this.forEachItem(function(t){t.isGroup()&&t.setExpanded(e)})},t.prototype.setGroupsExpanded=function(e,t){if(t){var n=[];this.forEachItem(function(r){if(r.isGroup()){var o=r.getColumnGroup().getId();t.indexOf(o)>=0&&(r.setExpanded(e),n.push(o))}});var r=t.filter(function(e){return!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(n,e)});r.length>0&&console.warn("AG Grid: unable to find group(s) for supplied groupIds:",r)}else this.doSetExpandedAll(e)},t.prototype.getExpandState=function(){var e=0,t=0;return this.forEachItem(function(n){n.isGroup()&&(n.isExpanded()?e++:t++)}),e>0&&t>0?ExpandState.INDETERMINATE:t>0?ExpandState.COLLAPSED:ExpandState.EXPANDED},t.prototype.doSetSelectedAll=function(e){this.modelItemUtils.selectAllChildren(this.allColsTree,e,this.eventType)},t.prototype.getSelectionState=function(){var e=0,t=0,n=this.columnModel.isPivotMode();if(this.forEachItem(function(r){if(!r.isGroup()&&r.isPassesFilter()){var o,i=r.getColumn(),a=i.getColDef();if(n){if(!i.isAllowPivot()&&!i.isAllowRowGroup()&&!i.isAllowValue())return;o=i.isValueActive()||i.isPivotActive()||i.isRowGroupActive()}else{if(a.lockVisible)return;o=i.isVisible()}o?e++:t++}}),!(e>0&&t>0))return!(0===e||t>0)},t.prototype.setFilterText=function(e){this.filterText=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e)?e.toLowerCase():null,this.markFilteredColumns(),this.flattenAndFilterModel()},t.prototype.markFilteredColumns=function(){var e=this,t=function(t){if(!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e.filterText))return!0;var n=t.getDisplayName();return null==n||-1!==n.toLowerCase().indexOf(e.filterText)},n=function(e,r){var o=!1;if(e.isGroup()){var i=t(e);e.getChildren().forEach(function(e){var t=n(e,i||r);t&&(o=t)})}var a=!(!r&&!o)||t(e);return e.setPassesFilter(a),a};this.allColsTree.forEach(function(e){return n(e,!1)})},t.prototype.notifyListeners=function(){this.fireGroupExpandedEvent(),this.fireSelectionChangedEvent()},t.prototype.fireGroupExpandedEvent=function(){var e=this.getExpandState();this.dispatchEvent({type:"groupExpanded",state:e})},t.prototype.fireSelectionChangedEvent=function(){var e=this.getSelectionState();this.dispatchEvent({type:"selectionChanged",state:e})},t.TEMPLATE='<div class="'+PRIMARY_COLS_LIST_PANEL_CLASS+'" role="presentation"></div>',__decorate$2o([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2o([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("toolPanelColDefService")],t.prototype,"colDefService",void 0),__decorate$2o([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("modelItemUtils")],t.prototype,"modelItemUtils",void 0),__decorate$2o([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreDestroy],t.prototype,"destroyColumnTree",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$3c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2n=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},PivotModePanel=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$3c(t,e),t.prototype.createTemplate=function(){return'<div class="ag-pivot-mode-panel">\n                <ag-toggle-button ref="cbPivotMode" class="ag-pivot-mode-select"></ag-toggle-button>\n            </div>'},t.prototype.init=function(){this.setTemplate(this.createTemplate()),this.cbPivotMode.setValue(this.columnModel.isPivotMode());var e=this.localeService.getLocaleTextFunc();this.cbPivotMode.setLabel(e("pivotMode","Pivot Mode")),this.addManagedListener(this.cbPivotMode,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgCheckbox.EVENT_CHANGED,this.onBtPivotMode.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this))},t.prototype.onBtPivotMode=function(){var e=!!this.cbPivotMode.getValue();if(e!==this.columnModel.isPivotMode()){this.columnModel.setPivotMode(e,"toolPanelUi");var t=this.gridOptionsService.api;t&&t.refreshHeader()}},t.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.cbPivotMode.setValue(e)},__decorate$2n([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2n([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("cbPivotMode")],t.prototype,"cbPivotMode",void 0),__decorate$2n([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$3b=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2m=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},AggregationStage=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$3b(t,e),t.prototype.execute=function(e){var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missingOrEmpty(this.columnModel.getValueColumns()),n=!this.getGroupRowAggFunc(),r=e.changedPath&&e.changedPath.isActive();if(!(t&&n&&r)){var o=this.createAggDetails(e);this.recursivelyCreateAggData(o)}},t.prototype.getGroupRowAggFunc=function(){var e=this.gridOptionsService.getCallback("getGroupRowAgg");if(e)return e;var t=this.gridOptionsService.get("groupRowAggNodes");return t?function(e){return t(e.nodes)}:void 0},t.prototype.createAggDetails=function(e){var t=this.columnModel.isPivotActive(),n=this.columnModel.getValueColumns(),r=t?this.columnModel.getPivotColumns():[];return{changedPath:e.changedPath,valueColumns:n,pivotColumns:r}},t.prototype.isSuppressAggFilteredOnly=function(){return void 0!==this.gridOptionsService.getGroupAggFiltering()||this.gridOptionsService.is("suppressAggFilteredOnly")},t.prototype.recursivelyCreateAggData=function(e){var t=this;this.filteredOnly=!this.isSuppressAggFilteredOnly(),e.changedPath.forEachChangedNodeDepthFirst(function(n){if(n.hasChildren()){if(-1===n.level){var r=!t.columnModel.isPivotMode();if(t.gridOptionsService.is("suppressAggAtRootLevel")&&r)return}t.aggregateRowNode(n,e)}else n.aggData&&n.setAggData(null)},!0)},t.prototype.aggregateRowNode=function(e,t){var n,r=0===t.valueColumns.length,o=0===t.pivotColumns.length,i=this.getGroupRowAggFunc();n=i?i({nodes:e.childrenAfterFilter}):r?null:o?this.aggregateRowNodeUsingValuesOnly(e,t):this.aggregateRowNodeUsingValuesAndPivot(e),e.setAggData(n),e.sibling&&e.sibling.setAggData(n)},t.prototype.aggregateRowNodeUsingValuesAndPivot=function(e){var t,n=this,r={},o=null!==(t=this.columnModel.getSecondaryColumns())&&void 0!==t?t:[];return o.forEach(function(t){var o=t.getColDef(),i=o.pivotValueColumn,a=o.pivotTotalColumnIds,s=o.colId,l=o.pivotKeys;if(!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(a)){var c,u=null!=l?l:[];c=e.leafGroup?n.getValuesFromMappedSet(e.childrenMapped,u,i):n.getValuesPivotNonLeaf(e,s),r[s]=n.aggregateValues(c,i.getAggFunc(),i,e,t)}}),o.forEach(function(t){var o=t.getColDef(),i=o.pivotValueColumn,a=o.pivotTotalColumnIds,s=o.colId;if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(a)){var l=[];a&&a.length&&(a.forEach(function(e){l.push(r[e])}),r[s]=n.aggregateValues(l,i.getAggFunc(),i,e,t))}}),r},t.prototype.aggregateRowNodeUsingValuesOnly=function(e,t){var n=this,r={},o=t.changedPath.isActive()?t.changedPath.getValueColumnsForNode(e,t.valueColumns):t.valueColumns,i=t.changedPath.isActive()?t.changedPath.getNotValueColumnsForNode(e,t.valueColumns):null,a=this.getValuesNormal(e,o),s=e.aggData;return o.forEach(function(t,o){r[t.getId()]=n.aggregateValues(a[o],t.getAggFunc(),t,e)}),i&&s&&i.forEach(function(e){r[e.getId()]=s[e.getId()]}),r},t.prototype.getValuesPivotNonLeaf=function(e,t){var n=[];return e.childrenAfterFilter.forEach(function(e){var r=e.aggData[t];n.push(r)}),n},t.prototype.getValuesFromMappedSet=function(e,t,n){var r=this,o=e;if(t.forEach(function(e){return o=o?o[e]:null}),!o)return[];var i=[];return o.forEach(function(e){var t=r.valueService.getValue(n,e);i.push(t)}),i},t.prototype.getValuesNormal=function(e,t){var n=[];t.forEach(function(){return n.push([])});for(var r=t.length,o=this.filteredOnly?e.childrenAfterFilter:e.childrenAfterGroup,i=o.length,a=0;a<i;a++)for(var s=o[a],l=0;l<r;l++){var c=t[l],u=this.valueService.getValue(c,s);n[l].push(u)}return n},t.prototype.aggregateValues=function(e,t,n,r,o){var i="string"==typeof t?this.aggFuncService.getAggFunc(t):t;return"function"!=typeof i?(console.error("AG Grid: unrecognised aggregation function "+t),null):i({values:e,column:n,colDef:n?n.getColDef():void 0,pivotResultColumn:o,rowNode:r,data:r?r.data:void 0,api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context})},__decorate$2m([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2m([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueService")],t.prototype,"valueService",void 0),__decorate$2m([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("aggFuncService")],t.prototype,"aggFuncService",void 0),__decorate$2m([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$2m([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnApi")],t.prototype,"columnApi",void 0),__decorate$2m([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("aggregationStage")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),BatchRemover=function(){function e(){this.allSets={},this.allParents=[]}return e.prototype.removeFromChildrenAfterGroup=function(e,t){this.getSet(e).removeFromChildrenAfterGroup[t.id]=!0},e.prototype.isRemoveFromAllLeafChildren=function(e,t){return!!this.getSet(e).removeFromAllLeafChildren[t.id]},e.prototype.preventRemoveFromAllLeafChildren=function(e,t){delete this.getSet(e).removeFromAllLeafChildren[t.id]},e.prototype.removeFromAllLeafChildren=function(e,t){this.getSet(e).removeFromAllLeafChildren[t.id]=!0},e.prototype.getSet=function(e){return this.allSets[e.id]||(this.allSets[e.id]={removeFromAllLeafChildren:{},removeFromChildrenAfterGroup:{}},this.allParents.push(e)),this.allSets[e.id]},e.prototype.getAllParents=function(){return this.allParents},e.prototype.flush=function(){var e=this;this.allParents.forEach(function(t){var n=e.allSets[t.id];t.childrenAfterGroup=t.childrenAfterGroup.filter(function(e){return!n.removeFromChildrenAfterGroup[e.id]}),t.allLeafChildren=t.allLeafChildren.filter(function(e){return!n.removeFromAllLeafChildren[e.id]}),t.updateHasChildren(),t.sibling&&(t.sibling.childrenAfterGroup=t.childrenAfterGroup,t.sibling.allLeafChildren=t.allLeafChildren)}),this.allSets={},this.allParents.length=0},e}(),__extends$3a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2l=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$1a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$I=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$1a(arguments[t]));return e},GroupStage=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.groupIdSequence=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberSequence,t}return __extends$3a(t,e),t.prototype.postConstruct=function(){this.usingTreeData=this.gridOptionsService.isTreeData(),this.usingTreeData&&(this.getDataPath=this.gridOptionsService.get("getDataPath"))},t.prototype.execute=function(e){var t=this.createGroupingDetails(e);if(t.transactions)this.handleTransaction(t);else{var n=!0===e.afterColumnsChanged;this.shotgunResetEverything(t,n)}this.positionLeafsAndGroups(e.changedPath),this.orderGroups(t.rootNode),this.selectableService.updateSelectableAfterGrouping(t.rootNode)},t.prototype.positionLeafsAndGroups=function(e){this.usingTreeData||e.forEachChangedNodeDepthFirst(function(e){if(e.childrenAfterGroup){var t,n=[],r=[];e.childrenAfterGroup.forEach(function(e){var o;(null===(o=e.childrenAfterGroup)||void 0===o?void 0:o.length)?""!==e.key||t?r.push(e):t=e:n.push(e)}),t&&r.push(t),e.childrenAfterGroup=__spread$I(n,r)}},!1)},t.prototype.createGroupingDetails=function(e){var t=e.rowNode,n=e.changedPath,r=e.rowNodeTransactions,o=e.rowNodeOrder,i=this.usingTreeData?null:this.columnModel.getRowGroupColumns();return{includeParents:!this.gridOptionsService.is("suppressParentsInRowNodes"),expandByDefault:this.gridOptionsService.getNum("groupDefaultExpanded"),groupedCols:i,rootNode:t,pivotMode:this.columnModel.isPivotMode(),groupedColCount:this.usingTreeData||!i?0:i.length,rowNodeOrder:o,transactions:r,changedPath:n}},t.prototype.handleTransaction=function(e){var t=this;e.transactions.forEach(function(n){var r=t.usingTreeData?void 0:new BatchRemover;if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.existsAndNotEmpty(n.remove)&&t.removeNodes(n.remove,e,r),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.existsAndNotEmpty(n.update)&&t.moveNodesInWrongPath(n.update,e,r),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.existsAndNotEmpty(n.add)&&t.insertNodes(n.add,e,!1),r){var o=r.getAllParents().slice();r.flush(),t.removeEmptyGroups(o,e)}}),e.rowNodeOrder&&this.sortChildren(e)},t.prototype.sortChildren=function(e){e.changedPath.forEachChangedNodeDepthFirst(function(t){t.childrenAfterGroup&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.sortRowNodesByOrder(t.childrenAfterGroup,e.rowNodeOrder)&&e.changedPath.addParentNode(t)},!1,!0)},t.prototype.orderGroups=function(e){if(!this.usingTreeData){var t=this.getInitialGroupOrderComparator();ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(t)&&function e(n){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(n.childrenAfterGroup)&&!n.leafGroup&&(n.childrenAfterGroup.sort(function(e,n){return t({nodeA:e,nodeB:n})}),n.childrenAfterGroup.forEach(function(t){return e(t)}))}(e)}},t.prototype.getInitialGroupOrderComparator=function(){var e=this.gridOptionsService.getCallback("initialGroupOrderComparator");if(e)return e;var t=this.gridOptionsService.get("defaultGroupOrderComparator");return t?function(e){return t(e.nodeA,e.nodeB)}:void 0},t.prototype.getExistingPathForNode=function(e,t){for(var n=[],r=this.usingTreeData?e:e.parent;r&&r!==t.rootNode;)n.push({key:r.key,rowGroupColumn:r.rowGroupColumn,field:r.field}),r=r.parent;return n.reverse(),n},t.prototype.moveNodesInWrongPath=function(e,t,n){var r=this;e.forEach(function(e){t.changedPath.isActive()&&t.changedPath.addParentNode(e.parent);var o=function(e){return e.key},i=r.getExistingPathForNode(e,t).map(o),a=r.getGroupInfo(e,t).map(o);ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.areEqual(i,a)||r.moveNode(e,t,n)})},t.prototype.moveNode=function(e,t,n){if(this.removeNodesInStages([e],t,n),this.insertOneNode(e,t,!0,n),e.setData(e.data),t.changedPath.isActive()){var r=e.parent;t.changedPath.addParentNode(r)}},t.prototype.removeNodes=function(e,t,n){this.removeNodesInStages(e,t,n),t.changedPath.isActive()&&e.forEach(function(e){return t.changedPath.addParentNode(e.parent)})},t.prototype.removeNodesInStages=function(e,t,n){if(this.removeNodesFromParents(e,t,n),this.usingTreeData){this.postRemoveCreateFillerNodes(e,t);var r=e.map(function(e){return e.parent});this.removeEmptyGroups(r,t)}},t.prototype.forEachParentGroup=function(e,t,n){for(var r=t;r&&r!==e.rootNode;)n(r),r=r.parent},t.prototype.removeNodesFromParents=function(e,t,n){var r=this,o=null==n,i=n||new BatchRemover;e.forEach(function(e){r.removeFromParent(e,i),r.forEachParentGroup(t,e.parent,function(t){i.removeFromAllLeafChildren(t,e)})}),o&&i.flush()},t.prototype.postRemoveCreateFillerNodes=function(e,t){var n=this;e.forEach(function(e){if(e.hasChildren()){var r=n.getExistingPathForNode(e,t),o=n.findParentForNode(e,r,t);o.expanded=e.expanded,o.allLeafChildren=e.allLeafChildren,o.childrenAfterGroup=e.childrenAfterGroup,o.childrenMapped=e.childrenMapped,o.updateHasChildren(),o.childrenAfterGroup.forEach(function(e){return e.parent=o})}})},t.prototype.removeEmptyGroups=function(e,t){for(var n=this,r=!0,o=function(){r=!1;var o=new BatchRemover;e.forEach(function(e){n.forEachParentGroup(t,e,function(e){(function(e){var t=n.getChildrenMappedKey(e.key,e.rowGroupColumn),r=e.parent;return!!(r&&r.childrenMapped&&r.childrenMapped[t]&&e.isEmptyRowGroupNode())})(e)&&(r=!0,n.removeFromParent(e,o),e.setSelectedParams({newValue:!1,source:"rowGroupChanged"}))})}),o.flush()};r;)o()},t.prototype.removeFromParent=function(e,t){e.parent&&(t?t.removeFromChildrenAfterGroup(e.parent,e):(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromArray(e.parent.childrenAfterGroup,e),e.parent.updateHasChildren()));var n=this.getChildrenMappedKey(e.key,e.rowGroupColumn);e.parent&&e.parent.childrenMapped&&(e.parent.childrenMapped[n]=void 0),e.setRowTop(null),e.setRowIndex(null)},t.prototype.addToParent=function(e,t){var n=this.getChildrenMappedKey(e.key,e.rowGroupColumn);t&&(null!=t.childrenMapped&&(t.childrenMapped[n]=e),t.childrenAfterGroup.push(e),t.updateHasChildren())},t.prototype.areGroupColsEqual=function(e,t){return null!=e&&null!=t&&e.pivotMode===t.pivotMode&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.areEqual(e.groupedCols,t.groupedCols)},t.prototype.checkAllGroupDataAfterColsChanged=function(e){var t=this,n=function(e){e&&e.forEach(function(e){if(t.usingTreeData||e.group){var r={field:e.field,key:e.key,rowGroupColumn:e.rowGroupColumn};t.setGroupData(e,r),n(e.childrenAfterGroup)}})};n(e.rootNode.childrenAfterGroup)},t.prototype.shotgunResetEverything=function(e,t){if(!this.noChangeInGroupingColumns(e,t)){this.selectionService.filterFromSelection(function(e){return e&&!e.group});var n=e.rootNode,r=e.groupedCols;n.leafGroup=!this.usingTreeData&&0===r.length,n.childrenAfterGroup=[],n.childrenMapped={},n.updateHasChildren();var o=n.sibling;o&&(o.childrenAfterGroup=n.childrenAfterGroup,o.childrenMapped=n.childrenMapped),this.insertNodes(n.allLeafChildren,e,!1)}},t.prototype.noChangeInGroupingColumns=function(e,t){var n=!1,r=this.columnModel.getGroupDisplayColumns(),o=r?r.map(function(e){return e.getId()}).join("-"):"";return t&&(n=this.usingTreeData||this.areGroupColsEqual(e,this.oldGroupingDetails),this.oldGroupDisplayColIds!==o&&this.checkAllGroupDataAfterColsChanged(e)),this.oldGroupingDetails=e,this.oldGroupDisplayColIds=o,n},t.prototype.insertNodes=function(e,t,n){var r=this;e.forEach(function(e){r.insertOneNode(e,t,n),t.changedPath.isActive()&&t.changedPath.addParentNode(e.parent)})},t.prototype.insertOneNode=function(e,t,n,r){var o=this.getGroupInfo(e,t),i=this.findParentForNode(e,o,t,r);i.group||console.warn("AG Grid: duplicate group keys for row data, keys should be unique",[i.data,e.data]),this.usingTreeData?this.swapGroupWithUserNode(i,e,n):(e.parent=i,e.level=o.length,i.childrenAfterGroup.push(e),i.updateHasChildren())},t.prototype.findParentForNode=function(e,t,n,r){var o=this,i=n.rootNode;return t.forEach(function(t,a){i=o.getOrCreateNextNode(i,t,a,n),(null==r?void 0:r.isRemoveFromAllLeafChildren(i,e))?null==r||r.preventRemoveFromAllLeafChildren(i,e):i.allLeafChildren.push(e)}),i},t.prototype.swapGroupWithUserNode=function(e,t,n){t.parent=e.parent,t.key=e.key,t.field=e.field,t.groupData=e.groupData,t.level=e.level,n||(t.expanded=e.expanded),t.leafGroup=e.leafGroup,t.rowGroupIndex=e.rowGroupIndex,t.allLeafChildren=e.allLeafChildren,t.childrenAfterGroup=e.childrenAfterGroup,t.childrenMapped=e.childrenMapped,t.sibling=e.sibling,t.updateHasChildren(),this.removeFromParent(e),t.childrenAfterGroup.forEach(function(e){return e.parent=t}),this.addToParent(t,e.parent)},t.prototype.getOrCreateNextNode=function(e,t,n,r){var o=this.getChildrenMappedKey(t.key,t.rowGroupColumn),i=e.childrenMapped?e.childrenMapped[o]:void 0;return i||(i=this.createGroup(t,e,n,r),this.addToParent(i,e)),i},t.prototype.createGroup=function(e,t,n,r){var o=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNode(this.beans);return o.group=!0,o.field=e.field,o.rowGroupColumn=e.rowGroupColumn,this.setGroupData(o,e),o.id=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNode.ID_PREFIX_ROW_GROUP+this.groupIdSequence.next(),o.key=e.key,o.level=n,o.leafGroup=!this.usingTreeData&&n===r.groupedColCount-1,o.allLeafChildren=[],o.setAllChildrenCount(0),o.rowGroupIndex=this.usingTreeData?null:n,o.childrenAfterGroup=[],o.childrenMapped={},o.updateHasChildren(),o.parent=r.includeParents?t:null,this.setExpandedInitialValue(r,o),this.gridOptionsService.is("groupIncludeFooter")&&o.createFooter(),o},t.prototype.setGroupData=function(e,t){var n=this;e.groupData={},this.columnModel.getGroupDisplayColumns().forEach(function(r){(n.usingTreeData||e.rowGroupColumn&&r.isRowGroupDisplayed(e.rowGroupColumn.getId()))&&(e.groupData[r.getColId()]=t.key)})},t.prototype.getChildrenMappedKey=function(e,t){return t?t.getId()+"-"+e:e},t.prototype.setExpandedInitialValue=function(e,t){if(e.pivotMode&&t.leafGroup)t.expanded=!1;else{var n=this.gridOptionsService.getCallback("isGroupOpenByDefault");if(n){var r={rowNode:t,field:t.field,key:t.key,level:t.level,rowGroupColumn:t.rowGroupColumn};t.expanded=1==n(r)}else{var o=e.expandByDefault;-1!==e.expandByDefault?t.expanded=t.level<o:t.expanded=!0}}},t.prototype.getGroupInfo=function(e,t){return this.usingTreeData?this.getGroupInfoFromCallback(e):this.getGroupInfoFromGroupColumns(e,t)},t.prototype.getGroupInfoFromCallback=function(e){var t=this.getDataPath?this.getDataPath(e.data):null;return null!=t&&0!==t.length||ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: getDataPath() should not return an empty path for data",e.data)},"groupStage.getGroupInfoFromCallback"),t?t.map(function(e){return{key:e,field:null,rowGroupColumn:null}}):[]},t.prototype.getGroupInfoFromGroupColumns=function(e,t){var n=this,r=[];return t.groupedCols.forEach(function(o){var i=n.valueService.getKeyForNode(o,e),a=null!=i&&""!==i;if((t.pivotMode||!n.gridOptionsService.is("groupAllowUnbalanced"))&&!a&&(i="",a=!0),a){var s={key:i,field:o.getColDef().field,rowGroupColumn:o};r.push(s)}}),r},__decorate$2l([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2l([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("selectableService")],t.prototype,"selectableService",void 0),__decorate$2l([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueService")],t.prototype,"valueService",void 0),__decorate$2l([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("beans")],t.prototype,"beans",void 0),__decorate$2l([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("selectionService")],t.prototype,"selectionService",void 0),__decorate$2l([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),__decorate$2l([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("groupStage")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$39=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$O=function(){return __assign$O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$O.apply(this,arguments)},__decorate$2k=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$19=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$H=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$19(arguments[t]));return e},PivotColDefService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return __extends$39(t,e),n=t,t.prototype.createPivotColumnDefs=function(e){var t=this.columnModel.getPivotColumns(),n=this.columnModel.getValueColumns(),r=t.length,o=this.recursiveBuildGroup(0,e,[],r,t),i=function e(t,n){return void 0===n&&(n=[]),t.forEach(function(t){void 0!==t.children?e(t.children,n):n.push(t)}),n}(o);return this.addRowGroupTotals(o,i,n),this.addExpandablePivotGroups(o,i),this.addPivotTotalsToGroups(o,i),{pivotColumnGroupDefs:o,pivotColumnDefs:i.map(function(e){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.cloneObject(e)})}},t.prototype.recursiveBuildGroup=function(e,t,n,r,o){var i=this,a=this.columnModel.getValueColumns();if(e>=r)return this.buildMeasureCols(n);var s=o[e].getColDef(),l=this.headerNameComparator.bind(this,s.pivotComparator);if(1===a.length&&this.gridOptionsService.is("removePivotHeaderRowWhenSingleValueColumn")&&e===r-1){var c=[];return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.iterateObject(t,function(e){var t=__spread$H(n,[e]);c.push(__assign$O(__assign$O({},i.createColDef(a[0],e,t)),{columnGroupShow:"open"}))}),c.sort(l),c}var u=[];return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.iterateObject(t,function(t,a){var s=__spread$H(n,[t]);u.push({children:i.recursiveBuildGroup(e+1,a,s,r,o),headerName:t,pivotKeys:s,columnGroupShow:"open",groupId:i.generateColumnGroupId(s)})}),u.sort(l),u},t.prototype.buildMeasureCols=function(e){var t=this,n=this.columnModel.getValueColumns();return 0===n.length?[this.createColDef(null,"-",e)]:n.map(function(n){var r=t.columnModel.getDisplayNameForColumn(n,"header");return __assign$O(__assign$O({},t.createColDef(n,r,e)),{columnGroupShow:"open"})})},t.prototype.addExpandablePivotGroups=function(e,t){var n=this;if(!this.gridOptionsService.is("suppressExpandablePivotGroups")&&!this.gridOptionsService.get("pivotColumnGroupTotals")){var r=function(e,t,o){var i=e;if(i.children){var a=new Map;i.children.forEach(function(e){r(e,t,a)});var s=!i.children.some(function(e){return e.children});n.columnModel.getValueColumns().forEach(function(r){var o=n.columnModel.getDisplayNameForColumn(r,"header"),i=n.createColDef(r,o,e.pivotKeys);i.pivotTotalColumnIds=a.get(r.getColId()),i.columnGroupShow="closed",i.aggFunc=r.getAggFunc(),s||(e.children.push(i),t.push(i))}),n.merge(o,a)}else{var l=e;if(!l.pivotValueColumn)return;var c=l.pivotValueColumn.getColId(),u=o.has(c)?o.get(c):[];u.push(l.colId),o.set(c,u)}};e.forEach(function(e){r(e,t,new Map)})}},t.prototype.addPivotTotalsToGroups=function(e,t){var n=this;if(this.gridOptionsService.get("pivotColumnGroupTotals")){var r="after"===this.gridOptionsService.get("pivotColumnGroupTotals"),o=this.columnModel.getValueColumns(),i=o.map(function(e){return e.getAggFunc()});if(i&&!(i.length<1)&&this.sameAggFuncs(i)){var a=o[0];e.forEach(function(e){n.recursivelyAddPivotTotal(e,t,a,r)})}}},t.prototype.recursivelyAddPivotTotal=function(e,t,n,r){var o=this,i=e;if(!i.children){var a=e;return a.colId?[a.colId]:null}var s=[];if(i.children.forEach(function(e){var i=o.recursivelyAddPivotTotal(e,t,n,r);i&&(s=s.concat(i))}),i.children.length>1){var l=this.localeService.getLocaleTextFunc()("pivotColumnGroupTotals","Total"),c=this.createColDef(n,l,e.pivotKeys,!0);c.pivotTotalColumnIds=s,c.aggFunc=n.getAggFunc();var u=e.children;r?u.push(c):u.unshift(c),t.push(c)}return s},t.prototype.addRowGroupTotals=function(e,t,n){var r=this;if(this.gridOptionsService.get("pivotRowTotals"))for(var o="after"===this.gridOptionsService.get("pivotRowTotals"),i=o?n.slice():n.slice().reverse(),a=function(n){var a=i[n],l=[];e.forEach(function(e){l=l.concat(r.extractColIdsForValueColumn(e,a))});var c=i.length>1||!s.gridOptionsService.is("removePivotHeaderRowWhenSingleValueColumn");s.createRowGroupTotal(e,t,a,l,o,c)},s=this,l=0;l<i.length;l++)a(l)},t.prototype.extractColIdsForValueColumn=function(e,t){var n=this,r=e;if(!r.children){var o=r;return o.pivotValueColumn===t&&o.colId?[o.colId]:[]}var i=[];return r.children.forEach(function(e){n.extractColIdsForValueColumn(e,t);var r=n.extractColIdsForValueColumn(e,t);i=i.concat(r)}),i},t.prototype.createRowGroupTotal=function(e,t,r,o,i,a){var s;if(0===this.columnModel.getValueColumns().length)s=this.createColDef(null,"-",[]);else{var l=this.columnModel.getDisplayNameForColumn(r,"header");(s=this.createColDef(r,l,[])).pivotTotalColumnIds=o}s.colId=n.PIVOT_ROW_TOTAL_PREFIX+s.colId,t.push(s);var c=a?{children:[s],pivotKeys:[],groupId:n.PIVOT_ROW_TOTAL_PREFIX+"_pivotGroup_"+r.getColId()}:s;i?e.push(c):e.unshift(c)},t.prototype.createColDef=function(e,t,n,r){void 0===r&&(r=!1);var o={};if(e){var i=e.getColDef();Object.assign(o,i),o.hide=!1}return o.headerName=t,o.colId=this.generateColumnId(n||[],e&&!r?e.getColId():""),o.field=o.colId,o.valueGetter=function(e){var t;return null===(t=e.data)||void 0===t?void 0:t[e.colDef.field]},o.pivotKeys=n,o.pivotValueColumn=e,!0===o.filter&&(o.filter="agNumberColumnFilter"),o},t.prototype.sameAggFuncs=function(e){if(1==e.length)return!0;for(var t=1;t<e.length;t++)if(e[t]!==e[0])return!1;return!0},t.prototype.headerNameComparator=function(e,t,n){return e?e(t.headerName,n.headerName):t.headerName&&!n.headerName?1:!t.headerName&&n.headerName?-1:t.headerName&&n.headerName?t.headerName<n.headerName?-1:t.headerName>n.headerName?1:0:0},t.prototype.merge=function(e,t){t.forEach(function(t,n,r){var o=e.has(n)?e.get(n):[],i=__spread$H(o,t);e.set(n,i)})},t.prototype.generateColumnGroupId=function(e){return"pivotGroup_"+this.columnModel.getPivotColumns().map(function(e){return e.getColId()}).join("-")+"_"+e.join("-")},t.prototype.generateColumnId=function(e,t){return"pivot_"+this.columnModel.getPivotColumns().map(function(e){return e.getColId()}).join("-")+"_"+e.join("-")+"_"+t},t.PIVOT_ROW_TOTAL_PREFIX="PivotRowTotal_",__decorate$2k([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),n=__decorate$2k([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("pivotColDefService")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$38=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2j=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},PivotStage=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uniqueValues={},t}return __extends$38(t,e),t.prototype.execute=function(e){var t=e.changedPath;this.columnModel.isPivotActive()?this.executePivotOn(t):this.executePivotOff(t)},t.prototype.executePivotOff=function(e){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.columnModel.isSecondaryColumnsPresent()&&(this.columnModel.setSecondaryColumns(null,"rowModelUpdated"),e&&e.setInactive())},t.prototype.executePivotOn=function(e){var t=this.bucketUpRowNodes(e),n=this.setUniqueValues(t),r=this.columnModel.getValueColumns(),o=r.map(function(e){return e.getId()+"-"+e.getColDef().headerName}).join("#"),i=r.map(function(e){return e.getAggFunc().toString()}).join("#"),a=this.aggregationColumnsHashLastTime!==o,s=this.aggregationFuncsHashLastTime!==i;this.aggregationColumnsHashLastTime=o,this.aggregationFuncsHashLastTime=i;var l=this.columnModel.getRowGroupColumns().map(function(e){return e.getId()}).join("#"),c=l!==this.groupColumnsHashLastTime;if(this.groupColumnsHashLastTime=l,n||a||c||s){var u=this.pivotColDefService.createPivotColumnDefs(this.uniqueValues),d=u.pivotColumnGroupDefs,p=u.pivotColumnDefs;this.pivotColumnDefs=p,this.columnModel.setSecondaryColumns(d,"rowModelUpdated"),e&&e.setInactive()}},t.prototype.setUniqueValues=function(e){return!(JSON.stringify(e)===JSON.stringify(this.uniqueValues)||(this.uniqueValues=e,0))},t.prototype.bucketUpRowNodes=function(e){var t=this,n={};e.forEachChangedNodeDepthFirst(function(e){e.leafGroup&&(e.childrenMapped=null)});var r=function(e){var o;e.leafGroup?t.bucketRowNode(e,n):null===(o=e.childrenAfterFilter)||void 0===o||o.forEach(r)};return e.executeFromRootNode(r),n},t.prototype.bucketRowNode=function(e,t){var n=this.columnModel.getPivotColumns();0===n.length?e.childrenMapped=null:e.childrenMapped=this.bucketChildren(e.childrenAfterFilter,n,0,t),e.sibling&&(e.sibling.childrenMapped=e.childrenMapped)},t.prototype.bucketChildren=function(e,t,n,r){var o=this,i={},a=t[n];if(e.forEach(function(e){var t=o.valueService.getKeyForNode(a,e);ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(t)&&(t=""),r[t]||(r[t]={}),i[t]||(i[t]=[]),i[t].push(e)}),n===t.length-1)return i;var s={};return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.iterateObject(i,function(e,i){s[e]=o.bucketChildren(i,t,n+1,r[e])}),s},t.prototype.getPivotColumnDefs=function(){return this.pivotColumnDefs},__decorate$2j([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueService")],t.prototype,"valueService",void 0),__decorate$2j([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2j([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("pivotColDefService")],t.prototype,"pivotColDefService",void 0),__decorate$2j([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("pivotStage")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$37=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2i=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},AGBigInt="undefined"==typeof BigInt?null:BigInt,AggFuncService=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.aggFuncsMap={},t.initialised=!1,t}var n;return __extends$37(t,e),n=t,t.prototype.init=function(){this.initialised||(this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gridOptionsService.get("aggFuncs")))},t.prototype.initialiseWithDefaultAggregations=function(){this.aggFuncsMap[n.AGG_SUM]=aggSum,this.aggFuncsMap[n.AGG_FIRST]=aggFirst,this.aggFuncsMap[n.AGG_LAST]=aggLast,this.aggFuncsMap[n.AGG_MIN]=aggMin,this.aggFuncsMap[n.AGG_MAX]=aggMax,this.aggFuncsMap[n.AGG_COUNT]=aggCount,this.aggFuncsMap[n.AGG_AVG]=aggAvg,this.initialised=!0},t.prototype.isAggFuncPossible=function(e,t){var n=this.getFuncNames(e),r=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(n,t),o=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(this.aggFuncsMap[t]);return r&&o},t.prototype.getDefaultAggFunc=function(e){var t=e.getColDef().defaultAggFunc;if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(t)&&this.isAggFuncPossible(e,t))return t;if(this.isAggFuncPossible(e,n.AGG_SUM))return n.AGG_SUM;var r=this.getFuncNames(e);return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.existsAndNotEmpty(r)?r[0]:null},t.prototype.addAggFuncs=function(e){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.iterateObject(e,this.addAggFunc.bind(this))},t.prototype.addAggFunc=function(e,t){this.init(),this.aggFuncsMap[e]=t},t.prototype.getAggFunc=function(e){return this.init(),this.aggFuncsMap[e]},t.prototype.getFuncNames=function(e){var t=e.getColDef().allowedAggFuncs;return null==t?Object.keys(this.aggFuncsMap).sort():t},t.prototype.clear=function(){this.aggFuncsMap={}},t.AGG_SUM="sum",t.AGG_FIRST="first",t.AGG_LAST="last",t.AGG_MIN="min",t.AGG_MAX="max",t.AGG_COUNT="count",t.AGG_AVG="avg",__decorate$2i([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),n=__decorate$2i([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("aggFuncService")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub);function aggSum(e){for(var t=e.values,n=null,r=0;r<t.length;r++){var o=t[r];"number"==typeof o?null===n?n=o:n+=AGBigInt?"number"==typeof n?o:AGBigInt(o):o:"bigint"==typeof o&&(n=null===n?o:("bigint"==typeof n?n:AGBigInt(n))+o)}return n}function aggFirst(e){return e.values.length>0?e.values[0]:null}function aggLast(e){return e.values.length>0?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(e.values):null}function aggMin(e){for(var t=e.values,n=null,r=0;r<t.length;r++){var o=t[r];"number"!=typeof o&&"bigint"!=typeof o||!(null===n||n>o)||(n=o)}return n}function aggMax(e){for(var t=e.values,n=null,r=0;r<t.length;r++){var o=t[r];"number"!=typeof o&&"bigint"!=typeof o||!(null===n||n<o)||(n=o)}return n}function aggCount(e){for(var t=e.values,n=0,r=0;r<t.length;r++){var o=t[r];n+=null!=o&&"number"==typeof o.value?o.value:1}return n}function aggAvg(e){for(var t,n,r,o=e.values,i=0,a=0,s=0;s<o.length;s++){var l=o[s],c=null;"number"==typeof l||"bigint"==typeof l?(c=l,a++):null==l||"number"!=typeof l.value&&"bigint"!=typeof l.value||"number"!=typeof l.count||(c=AGBigInt?l.value*("number"==typeof l.value?l.count:AGBigInt(l.count)):l.value*l.count,a+=l.count),"number"==typeof c?i+=AGBigInt?"number"==typeof i?c:AGBigInt(c):c:"bigint"==typeof c&&(i=("bigint"==typeof i?i:AGBigInt(i))+c)}var u=null;a>0&&(u=AGBigInt?i/("number"==typeof i?a:AGBigInt(a)):i/a);var d=null===(n=null===(t=e.rowNode)||void 0===t?void 0:t.aggData)||void 0===n?void 0:n[null===(r=e.column)||void 0===r?void 0:r.getColId()];return d&&d.count===a&&d.value===u?d:{count:a,value:u,toString:function(){return"number"==typeof this.value||"bigint"==typeof this.value?this.value.toString():""},toNumber:function(){return this.value}}}var __extends$36=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2h=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},DropZoneColumnComp=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a.column=t,a.dragSourceDropTarget=n,a.ghost=r,a.dropZonePurpose=o,a.horizontal=i,a.popupShowing=!1,a}return __extends$36(t,e),t.prototype.init=function(){var e=this;this.setTemplate(t.TEMPLATE);var n=this.getGui(),r=this.gridOptionsService.is("functionsReadOnly");this.addElementClasses(n),this.addElementClasses(this.eDragHandle,"drag-handle"),this.addElementClasses(this.eText,"text"),this.addElementClasses(this.eButton,"button"),this.eDragHandle.appendChild(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columnDrag",this.gridOptionsService)),this.eButton.appendChild(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("cancel",this.gridOptionsService)),this.setupSort(),this.displayName=this.columnModel.getDisplayNameForColumn(this.column,"columnDrop"),this.setupComponents(),this.ghost||r||this.addDragSource(),this.setupAria(),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_SORT_CHANGED,function(){e.setupAria()}),this.setupTooltip()},t.prototype.setupAria=function(){var e=this.localeService.getLocaleTextFunc(),t=this.getColumnAndAggFuncName(),n=t.name,r=t.aggFuncName,o=e("ariaDropZoneColumnComponentAggFuncSeperator"," of "),i={asc:e("ariaDropZoneColumnComponentSortAscending","ascending"),desc:e("ariaDropZoneColumnComponentSortDescending","descending")},a=this.column.getSort(),s=this.gridOptionsService.is("rowGroupPanelSuppressSort"),l=[[r&&""+r+o,n,this.isGroupingZone()&&!s&&a&&", "+i[a]].filter(function(e){return!!e}).join("")],c=this.gridOptionsService.is("functionsReadOnly");if(this.isAggregationZone()&&!c){var u=e("ariaDropZoneColumnValueItemDescription","Press ENTER to change the aggregation type");l.push(u)}if(this.isGroupingZone()&&this.column.getColDef().sortable&&!s){var d=e("ariaDropZoneColumnGroupItemDescription","Press ENTER to sort");l.push(d)}var p=e("ariaDropZoneColumnComponentDescription","Press DELETE to remove");l.push(p),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaLabel(this.getGui(),l.join(". "))},t.prototype.setupTooltip=function(){var e=this,t=function(){var t=e.column.getColDef().headerTooltip;e.setTooltip(t)};t(),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,t)},t.prototype.setupSort=function(){var e=this,t=this.column.getColDef().sortable,n=this.isGroupingZone();if(t&&n&&!this.gridOptionsService.is("rowGroupPanelSuppressSort")){this.eSortIndicator.setupSort(this.column,!0);var r=function(t){t.preventDefault();var n="ctrl"===e.gridOptionsService.get("multiSortKey")?t.ctrlKey||t.metaKey:t.shiftKey;e.sortController.progressSort(e.column,n,"uiColumnSorted")};this.addGuiEventListener("click",r),this.addGuiEventListener("keydown",function(t){t.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.ENTER&&e.isGroupingZone()&&r(t)})}},t.prototype.addDragSource=function(){var e=this,t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragSourceType.ToolPanel,eElement:this.eDragHandle,defaultIconName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_HIDE,getDragItem:function(){return e.createDragItem()},dragItemName:this.displayName,dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc(function(){return e.dragAndDropService.removeDragSource(t)})},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupComponents=function(){this.setTextValue(),this.setupRemove(),this.ghost&&this.addCssClass("ag-column-drop-cell-ghost"),this.isAggregationZone()&&!this.gridOptionsService.is("functionsReadOnly")&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))},t.prototype.setupRemove=function(){var e=this;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eButton,!this.gridOptionsService.is("functionsReadOnly"));var n={type:t.EVENT_COLUMN_REMOVE};this.addGuiEventListener("keydown",function(t){var r=t.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.ENTER;t.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.DELETE&&(t.preventDefault(),e.dispatchEvent(n)),r&&e.isAggregationZone()&&!e.gridOptionsService.is("functionsReadOnly")&&(t.preventDefault(),e.onShowAggFuncSelection())}),this.addManagedListener(this.eButton,"click",function(t){e.dispatchEvent(n),t.stopPropagation()});var r=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TouchListener(this.eButton);this.addManagedListener(r,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TouchListener.EVENT_TAP,function(){e.dispatchEvent(n)}),this.addDestroyFunc(r.destroy.bind(r))},t.prototype.getColumnAndAggFuncName=function(){var e=this.displayName,t="";if(this.isAggregationZone()){var n=this.column.getAggFunc(),r="string"==typeof n?n:"agg";t=this.localeService.getLocaleTextFunc()(r,r)}return{name:e,aggFuncName:t}},t.prototype.setTextValue=function(){var e=this.getColumnAndAggFuncName(),t=e.name,n=e.aggFuncName,r=this.isAggregationZone()?n+"("+t+")":t,o=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(r);this.eText.innerHTML=o},t.prototype.onShowAggFuncSelection=function(){var e=this;if(!this.popupShowing){this.popupShowing=!0;var t=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.VirtualList("select-agg-func"),n=this.aggFuncService.getFuncNames(this.column),r=this.getGui(),o=t.getGui();t.setModel({getRow:function(e){return n[e]},getRowCount:function(){return n.length}}),this.getContext().createBean(t);var i=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.loadTemplate('<div class="ag-select-agg-func-popup"></div>');i.style.top="0px",i.style.left="0px",i.appendChild(o),i.style.width=r.clientWidth+"px";var a=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:i,closeOnEsc:!0,closedCallback:function(){e.destroyBean(t),e.popupShowing=!1,r.focus()},ariaLabel:a("ariaLabelAggregationFunction","Aggregation Function")});s&&t.setComponentCreator(this.createAggSelect.bind(this,s.hideFunc)),t.addGuiEventListener("keydown",function(e){if(e.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.ENTER||e.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.SPACE){var n=t.getLastFocusedRow();if(null==n)return;var r=t.getComponentAt(n);r&&r.selectItem()}}),this.popupService.positionPopupByComponent({type:"aggFuncSelect",eventSource:r,ePopup:i,keepWithinBounds:!0,column:this.column,position:"under"}),t.refresh();var l=n.findIndex(function(t){return t===e.column.getAggFunc()});-1===l&&(l=0),t.focusRow(l)}},t.prototype.createAggSelect=function(e,t){var n=this,r=this.localeService.getLocaleTextFunc(),o=t.toString(),i=r(o,o);return new AggItemComp(function(){if(e(),n.gridOptionsService.is("functionsPassive")){var r={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST,columns:[n.column],aggFunc:t};n.eventService.dispatchEvent(r)}else n.columnModel.setColumnAggFunc(n.column,t,"toolPanelDragAndDrop")},i)},t.prototype.addElementClasses=function(e,t){t=t?"-"+t:"";var n=this.horizontal?"horizontal":"vertical";e.classList.add("ag-column-drop-cell"+t,"ag-column-drop-"+n+"-cell"+t)},t.prototype.isAggregationZone=function(){return"aggregation"===this.dropZonePurpose},t.prototype.isGroupingZone=function(){return"rowGroup"===this.dropZonePurpose},t.EVENT_COLUMN_REMOVE="columnRemove",t.TEMPLATE='<span role="option" tabindex="0">\n          <span ref="eDragHandle" class="ag-drag-handle ag-column-drop-cell-drag-handle" role="presentation"></span>\n          <span ref="eText" class="ag-column-drop-cell-text" aria-hidden="true"></span>\n          <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n          <span ref="eButton" class="ag-column-drop-cell-button" role="presentation"></span>\n        </span>',__decorate$2h([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),__decorate$2h([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2h([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("popupService")],t.prototype,"popupService",void 0),__decorate$2h([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Optional)("aggFuncService")],t.prototype,"aggFuncService",void 0),__decorate$2h([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("sortController")],t.prototype,"sortController",void 0),__decorate$2h([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eText")],t.prototype,"eText",void 0),__decorate$2h([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eDragHandle")],t.prototype,"eDragHandle",void 0),__decorate$2h([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eButton")],t.prototype,"eButton",void 0),__decorate$2h([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eSortIndicator")],t.prototype,"eSortIndicator",void 0),__decorate$2h([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),AggItemComp=function(e){function t(t,n){var r=e.call(this,'<div class="ag-select-agg-func-item"/>')||this;return r.selectItem=t,r.getGui().innerText=n,r.addGuiEventListener("click",r.selectItem),r}return __extends$36(t,e),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$35=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2g=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$18=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$G=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$18(arguments[t]));return e},BaseDropZonePanel=function(e){function t(n,r){var o=e.call(this,'<div class="ag-unselectable" role="presentation"></div>')||this;return o.horizontal=n,o.dropZonePurpose=r,o.state=t.STATE_NOT_DRAGGING,o.guiDestroyFunctions=[],o.childColumnComponents=[],o.resizeEnabled=!1,o.addElementClasses(o.getGui()),o.eColumnDropList=document.createElement("div"),o.addElementClasses(o.eColumnDropList,"list"),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaRole(o.eColumnDropList,"listbox"),o}return __extends$35(t,e),t.prototype.isHorizontal=function(){return this.horizontal},t.prototype.toggleResizable=function(e){this.positionableFeature.setResizable(!!e&&{bottom:!0}),this.resizeEnabled=e},t.prototype.setBeans=function(e){this.beans=e},t.prototype.destroy=function(){this.destroyGui(),e.prototype.destroy.call(this)},t.prototype.destroyGui=function(){this.guiDestroyFunctions.forEach(function(e){return e()}),this.guiDestroyFunctions.length=0,this.childColumnComponents.length=0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.getGui()),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.eColumnDropList)},t.prototype.init=function(e){this.params=e,this.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ManagedFocusFeature(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.addManagedListener(this.beans.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,this.refreshGui.bind(this)),this.addManagedPropertyListener("functionsReadOnly",this.refreshGui.bind(this)),this.setupDropTarget(),this.positionableFeature=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PositionableFeature(this.getGui(),{minHeight:100}),this.createManagedBean(this.positionableFeature),this.refreshGui(),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaLabel(this.eColumnDropList,this.getAriaLabel())},t.prototype.handleKeyDown=function(e){var t=!this.horizontal,n=e.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.DOWN,r=e.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.UP;if(!t){var o=this.gridOptionsService.is("enableRtl");n=!o&&e.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.RIGHT||o&&e.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.LEFT,r=!o&&e.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.LEFT||o&&e.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.RIGHT}if(n||r){var i=this.focusService.findNextFocusableElement(this.getFocusableElement(),!1,r);i&&(e.preventDefault(),i.focus())}},t.prototype.addElementClasses=function(e,t){t=t?"-"+t:"";var n=this.horizontal?"horizontal":"vertical";e.classList.add("ag-column-drop"+t,"ag-column-drop-"+n+t)},t.prototype.setupDropTarget=function(){this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},this.beans.dragAndDropService.addDropTarget(this.dropTarget)},t.prototype.isInterestedIn=function(e){return e===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragSourceType.HeaderCell||e===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragSourceType.ToolPanel},t.prototype.checkInsertIndex=function(e){var t=this.getNewInsertIndex(e);if(t<0)return!1;var n=t!==this.insertIndex;return n&&(this.insertIndex=t),n},t.prototype.getNewInsertIndex=function(e){var t=this,n=e.event,r=this.horizontal?n.clientX:n.clientY,o=this.childColumnComponents.map(function(e){return e.getGui().getBoundingClientRect()}),i=o.findIndex(function(e){return t.horizontal?e.right>r&&e.left<r:e.top<r&&e.bottom>r});if(-1===i){var a=this.beans.gridOptionsService.is("enableRtl");return o.every(function(e){return r>(t.horizontal?e.right:e.bottom)})?a&&this.horizontal?0:this.childColumnComponents.length:o.every(function(e){return r<(t.horizontal?e.left:e.top)})?a&&this.horizontal?this.childColumnComponents.length:0:this.insertIndex}return this.insertIndex<=i?i+1:i},t.prototype.checkDragStartedBySelf=function(e){this.state===t.STATE_NOT_DRAGGING&&(this.state=t.STATE_REARRANGE_COLUMNS,this.potentialDndColumns=e.dragSource.getDragItem().columns||[],this.refreshGui(),this.checkInsertIndex(e),this.refreshGui())},t.prototype.onDragging=function(e){this.checkDragStartedBySelf(e),this.checkInsertIndex(e)&&this.refreshGui()},t.prototype.onDragEnter=function(e){var n=e.dragSource.getDragItem().columns||[];this.state=t.STATE_NEW_COLUMNS_IN;var r=n.filter(this.isColumnDroppable.bind(this));if(r.length>0){if(this.isRowGroupPanel()&&!this.gridOptionsService.is("suppressRowGroupHidesColumns")&&!e.fromNudge){var o=e.dragSource.getDragItem().columns;this.setColumnsVisible(o,!1,"uiColumnDragged")}this.potentialDndColumns=r,this.checkInsertIndex(e),this.refreshGui()}},t.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n="api"),e){var r=e.filter(function(e){return!e.getColDef().lockVisible});this.colModel.setColumnsVisible(r,t,n)}},t.prototype.isPotentialDndColumns=function(){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.existsAndNotEmpty(this.potentialDndColumns)},t.prototype.isRowGroupPanel=function(){return"rowGroup"===this.dropZonePurpose},t.prototype.onDragLeave=function(e){if(this.state===t.STATE_REARRANGE_COLUMNS){var n=e.dragSource.getDragItem().columns||[];this.removeColumns(n)}if(this.isPotentialDndColumns()){if(this.isRowGroupPanel()&&!this.gridOptionsService.is("suppressMakeColumnVisibleAfterUnGroup")&&!e.fromNudge){var r=e.dragSource.getDragItem();this.setColumnsVisible(r.columns,!0,"uiColumnDragged")}this.potentialDndColumns=[],this.refreshGui()}this.state=t.STATE_NOT_DRAGGING},t.prototype.onDragStop=function(){if(this.isPotentialDndColumns()){var e=!1;this.state===t.STATE_NEW_COLUMNS_IN?(this.addColumns(this.potentialDndColumns),e=!0):e=this.rearrangeColumns(this.potentialDndColumns),this.potentialDndColumns=[],this.beans.gridOptionsService.is("functionsPassive")&&e||this.refreshGui()}this.state=t.STATE_NOT_DRAGGING},t.prototype.removeColumns=function(e){var t=this.getExistingColumns().filter(function(t){return!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(e,t)});this.updateColumns(t)},t.prototype.addColumns=function(e){if(e){var t=this.getExistingColumns().slice(),n=e.filter(function(e){return t.indexOf(e)<0});ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.insertArrayIntoArray(t,n,this.insertIndex),this.updateColumns(t)}},t.prototype.rearrangeColumns=function(e){var t=this.getNonGhostColumns().slice();return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.insertArrayIntoArray(t,e,this.insertIndex),!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.areEqual(t,this.getExistingColumns())&&(this.updateColumns(t),!0)},t.prototype.refreshGui=function(){var e=this.eColumnDropList.scrollTop,t=this.resizeEnabled,n=this.getFocusedItem(),r=this.focusService.findNextFocusableElement();r||(r=this.focusService.findNextFocusableElement(void 0,!1,!0)),this.toggleResizable(!1),this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addColumnsToGui(),this.isHorizontal()||(this.eColumnDropList.scrollTop=e),t&&this.toggleResizable(t),this.focusService.isKeyboardMode()&&this.restoreFocus(n,r)},t.prototype.getFocusedItem=function(){var e=this.getGui(),t=this.gridOptionsService.getDocument().activeElement;return e.contains(t)?Array.from(e.querySelectorAll(".ag-column-drop-cell")).indexOf(t):-1},t.prototype.restoreFocus=function(e,t){var n=this.getGui(),r=Array.from(n.querySelectorAll(".ag-column-drop-cell"));if(-1!==e){0===r.length&&t.focus();var o=r[Math.min(r.length-1,e)];o&&o.focus()}},t.prototype.getNonGhostColumns=function(){var e=this,t=this.getExistingColumns();return this.isPotentialDndColumns()?t.filter(function(t){return!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(e.potentialDndColumns,t)}):t},t.prototype.addColumnsToGui=function(){var e=this,t=this.getNonGhostColumns().map(function(t){return e.createColumnComponent(t,!1)});if(this.isPotentialDndColumns()){var n=this.potentialDndColumns.map(function(t){return e.createColumnComponent(t,!0)});this.insertIndex>=t.length?t.push.apply(t,__spread$G(n)):t.splice.apply(t,__spread$G([this.insertIndex,0],n))}this.appendChild(this.eColumnDropList),t.forEach(function(t,n){n>0&&e.addArrow(e.eColumnDropList),e.eColumnDropList.appendChild(t.getGui())}),this.addAriaLabelsToComponents()},t.prototype.addAriaLabelsToComponents=function(){var e=this;this.childColumnComponents.forEach(function(t,n){var r=t.getGui();ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaPosInSet(r,n+1),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaSetSize(r,e.childColumnComponents.length)})},t.prototype.createColumnComponent=function(e,t){var n=this,r=new DropZoneColumnComp(e,this.dropTarget,t,this.dropZonePurpose,this.horizontal);return r.addEventListener(DropZoneColumnComp.EVENT_COLUMN_REMOVE,this.removeColumns.bind(this,[e])),this.beans.context.createBean(r),this.guiDestroyFunctions.push(function(){return n.destroyBean(r)}),t||this.childColumnComponents.push(r),r},t.prototype.addIconAndTitleToGui=function(){var e=this.params.icon,t=document.createElement("div");if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaHidden(t,!0),this.addElementClasses(t,"title-bar"),this.addElementClasses(e,"icon"),this.addOrRemoveCssClass("ag-column-drop-empty",this.isExistingColumnsEmpty()),t.appendChild(e),!this.horizontal){var n=document.createElement("span");this.addElementClasses(n,"title"),n.innerHTML=this.params.title,t.appendChild(n)}this.appendChild(t)},t.prototype.isExistingColumnsEmpty=function(){return 0===this.getExistingColumns().length},t.prototype.addEmptyMessageToGui=function(){if(this.isExistingColumnsEmpty()&&!this.isPotentialDndColumns()){var e=document.createElement("span");e.innerHTML=this.params.emptyMessage,this.addElementClasses(e,"empty-message"),this.eColumnDropList.appendChild(e)}},t.prototype.addArrow=function(e){if(this.horizontal){var t=this.beans.gridOptionsService.is("enableRtl"),n=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan(t?"smallLeft":"smallRight",this.beans.gridOptionsService);this.addElementClasses(n,"cell-separator"),e.appendChild(n)}},t.STATE_NOT_DRAGGING="notDragging",t.STATE_NEW_COLUMNS_IN="newColumnsIn",t.STATE_REARRANGE_COLUMNS="rearrangeColumns",__decorate$2g([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"colModel",void 0),__decorate$2g([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("focusService")],t.prototype,"focusService",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$34=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2f=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},RowGroupDropZonePanel=function(e){function t(t){return e.call(this,t,"rowGroup")||this}return __extends$34(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsService:this.gridOptionsService,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.localeService.getLocaleTextFunc(),n=t("rowGroupColumnsEmptyMessage","Drag here to set row groups"),r=t("groups","Row Groups");e.prototype.init.call(this,{dragAndDropIcon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_GROUP,icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("rowGroupPanel",this.gridOptionsService,null),emptyMessage:n,title:r}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.refreshGui.bind(this))},t.prototype.getAriaLabel=function(){return this.localeService.getLocaleTextFunc()("ariaRowGroupDropZonePanelLabel","Row Groups")},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="rowGroupColumnsList",t},t.prototype.isColumnDroppable=function(e){return!(this.gridOptionsService.is("functionsReadOnly")||!e.isPrimary())&&e.isAllowRowGroup()&&!e.isRowGroupActive()},t.prototype.updateColumns=function(e){if(this.gridOptionsService.is("functionsPassive")){var t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:e};this.eventService.dispatchEvent(t)}else this.columnModel.setRowGroupColumns(e,"toolPanelUi")},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_GROUP:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.getExistingColumns=function(){return this.columnModel.getRowGroupColumns()},__decorate$2f([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2f([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("loggerFactory")],t.prototype,"loggerFactory",void 0),__decorate$2f([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),__decorate$2f([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"passBeansUp",null),t}(BaseDropZonePanel),__extends$33=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2e=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},PivotDropZonePanel=function(e){function t(t){return e.call(this,t,"pivot")||this}return __extends$33(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsService:this.gridOptionsService,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.localeService.getLocaleTextFunc(),n=t("pivotColumnsEmptyMessage","Drag here to set column labels"),r=t("pivots","Column Labels");e.prototype.init.call(this,{dragAndDropIcon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_GROUP,icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("pivotPanel",this.gridOptionsService,null),emptyMessage:n,title:r}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,this.refresh.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refresh.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.checkVisibility.bind(this)),this.refresh()},t.prototype.getAriaLabel=function(){return this.localeService.getLocaleTextFunc()("ariaPivotDropZonePanelLabel","Column Labels")},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="pivotColumnsList",t},t.prototype.refresh=function(){this.checkVisibility(),this.refreshGui()},t.prototype.checkVisibility=function(){var e=this.columnModel.isPivotMode();if(this.isHorizontal())switch(this.gridOptionsService.get("pivotPanelShow")){case"always":this.setDisplayed(e);break;case"onlyWhenPivoting":var t=this.columnModel.isPivotActive();this.setDisplayed(e&&t);break;default:this.setDisplayed(!1)}else this.setDisplayed(e)},t.prototype.isColumnDroppable=function(e){return!(this.gridOptionsService.is("functionsReadOnly")||!e.isPrimary())&&e.isAllowPivot()&&!e.isPivotActive()},t.prototype.updateColumns=function(e){if(this.gridOptionsService.is("functionsPassive")){var t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:e};this.eventService.dispatchEvent(t)}else this.columnModel.setPivotColumns(e,"toolPanelUi")},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_PIVOT:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.getExistingColumns=function(){return this.columnModel.getPivotColumns()},__decorate$2e([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2e([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("loggerFactory")],t.prototype,"loggerFactory",void 0),__decorate$2e([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),__decorate$2e([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"passBeansUp",null),t}(BaseDropZonePanel),__extends$32=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2d=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},GridHeaderDropZones=function(e){function t(){return e.call(this)||this}return __extends$32(t,e),t.prototype.postConstruct=function(){this.setGui(this.createNorthPanel()),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,this.onRowGroupChanged.bind(this)),this.addManagedPropertyListener("rowGroupPanelShow",this.onRowGroupChanged.bind(this)),this.onRowGroupChanged()},t.prototype.createNorthPanel=function(){var e=document.createElement("div"),t=this.onDropPanelVisible.bind(this);return e.classList.add("ag-column-drop-wrapper"),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaRole(e,"presentation"),this.rowGroupComp=new RowGroupDropZonePanel(!0),this.createManagedBean(this.rowGroupComp),this.pivotComp=new PivotDropZonePanel(!0),this.createManagedBean(this.pivotComp),e.appendChild(this.rowGroupComp.getGui()),e.appendChild(this.pivotComp.getGui()),this.addManagedListener(this.rowGroupComp,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component.EVENT_DISPLAYED_CHANGED,t),this.addManagedListener(this.pivotComp,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component.EVENT_DISPLAYED_CHANGED,t),this.onDropPanelVisible(),e},t.prototype.onDropPanelVisible=function(){var e=this.rowGroupComp.isDisplayed()&&this.pivotComp.isDisplayed();this.rowGroupComp.addOrRemoveCssClass("ag-column-drop-horizontal-half-width",e),this.pivotComp.addOrRemoveCssClass("ag-column-drop-horizontal-half-width",e)},t.prototype.onRowGroupChanged=function(){if(this.rowGroupComp){var e=this.gridOptionsService.get("rowGroupPanelShow");if("always"===e)this.rowGroupComp.setDisplayed(!0);else if("onlyWhenGrouping"===e){var t=!this.columnModel.isRowGroupEmpty();this.rowGroupComp.setDisplayed(t)}else this.rowGroupComp.setDisplayed(!1)}},__decorate$2d([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2d([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$31=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2c=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},FilterAggregatesStage=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$31(t,e),t.prototype.execute=function(e){var t=this,n=this.columnModel.isPivotMode(),r=this.filterManager.isAggregateFilterPresent(),o=this.gridOptionsService.getGroupAggFiltering()||(n?function(e){return e.node.leafGroup}:function(e){return!e.node.group}),i=e.changedPath,a=function(e,n){void 0===n&&(n=!1),e.childrenAfterFilter&&(e.childrenAfterAggFilter=e.childrenAfterFilter,n&&e.childrenAfterAggFilter.forEach(function(e){return a(e,n)}),t.setAllChildrenCount(e)),e.sibling&&(e.sibling.childrenAfterAggFilter=e.childrenAfterAggFilter)};i.forEachChangedNodeDepthFirst(r?function(e){var n;e.childrenAfterAggFilter=(null===(n=e.childrenAfterFilter)||void 0===n?void 0:n.filter(function(e){var n;return o({node:e})&&t.filterManager.doesRowPassAggregateFilters({rowNode:e})?(a(e,!0),!0):null===(n=e.childrenAfterAggFilter)||void 0===n?void 0:n.length}))||null,t.setAllChildrenCount(e),e.sibling&&(e.sibling.childrenAfterAggFilter=e.childrenAfterAggFilter)}:a,!0)},t.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterAggFilter.forEach(function(e){t++,t+=e.allChildrenCount}),e.setAllChildrenCount(t)},t.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterAggFilter.forEach(function(e){e.group?t+=e.allChildrenCount:t++}),e.setAllChildrenCount(t)},t.prototype.setAllChildrenCount=function(e){e.hasChildren()?this.gridOptionsService.isTreeData()?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e):e.setAllChildrenCount(null)},__decorate$2c([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("filterManager")],t.prototype,"filterManager",void 0),__decorate$2c([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2c([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("filterAggregatesStage")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),VERSION$g="29.3.3",__extends$30=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2b=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},GroupFilter=function(e){function t(){return e.call(this,'\n            <div class="ag-group-filter">\n                <div ref="eGroupField"></div>\n                <div ref="eUnderlyingFilter"></div>\n            </div>\n        ')||this}return __extends$30(t,e),t.prototype.postConstruct=function(){this.initialiseTabGuard({})},t.prototype.init=function(e){var t=this;return this.params=e,this.validateParams(),this.updateGroups().then(function(){t.addManagedListener(t.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return t.onColumnRowGroupChanged()})})},t.prototype.validateParams=function(){var e=this.params.colDef;e.field&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn('AG Grid: Group Column Filter does not work with the colDef property "field". This property will be ignored.')},"groupFilterFieldParam"),e.filterValueGetter&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn('AG Grid: Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.')},"groupFilterFilterValueGetterParam"),e.filterParams&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn('AG Grid: Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.')},"groupFilterFilterParams")},t.prototype.updateGroups=function(){var e=this.updateGroupField();return this.getUnderlyingFilters(e)},t.prototype.getSourceColumns=function(){return this.groupColumn=this.params.column,this.gridOptionsService.is("treeData")?(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.")},"groupFilterTreeData"),[]):this.columnModel.getSourceColumnsForGroupColumn(this.groupColumn)||(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: Group Column Filter only works on group columns. Please use a different filter.")},"groupFilterNotGroupColumn"),[])},t.prototype.updateGroupField=function(){var e=this;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.eGroupField),this.eGroupFieldSelect&&this.destroyBean(this.eGroupFieldSelect);var t=this.getSourceColumns(),n=t.filter(function(e){return e.isFilterAllowed()});return n.length?(1===t.length?(this.selectedColumn=n[0],ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eGroupField,!1)):(this.selectedColumn&&n.some(function(t){return t.getId()===e.selectedColumn.getId()})||(this.selectedColumn=n[0]),this.createGroupFieldSelectElement(n),this.eGroupField.appendChild(this.eGroupFieldSelect.getGui()),this.eGroupField.appendChild(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.loadTemplate('<div class="ag-filter-separator"></div>')),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eGroupField,!0)),n):(this.selectedColumn=void 0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eGroupField,!1),null)},t.prototype.createGroupFieldSelectElement=function(e){var t=this;this.eGroupFieldSelect=this.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSelect);var n=this.localeService.getLocaleTextFunc();this.eGroupFieldSelect.setLabel(n("groupFilterSelect","Select field:")),this.eGroupFieldSelect.setLabelAlignment("top"),this.eGroupFieldSelect.addOptions(e.map(function(e){var n;return{value:e.getId(),text:null!==(n=t.columnModel.getDisplayNameForColumn(e,"groupFilter",!1))&&void 0!==n?n:void 0}})),this.eGroupFieldSelect.setValue(this.selectedColumn.getId()),this.eGroupFieldSelect.onValueChange(function(e){return t.updateSelectedColumn(e)}),this.eGroupFieldSelect.addCssClass("ag-group-filter-field-select-wrapper"),1===e.length&&this.eGroupFieldSelect.setDisabled(!0)},t.prototype.getUnderlyingFilters=function(e){var t=this;if(!e)return this.filterColumnPairs=void 0,this.selectedFilter=void 0,this.groupColumn.setFilterActive(!1,"columnRowGroupChanged"),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.resolve();var n=[],r=[];return e.forEach(function(e){var o=t.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");(null==o?void 0:o.filterPromise)&&n.push(o.filterPromise.then(function(n){return n&&r.push({filter:n,column:e}),e.getId()===t.selectedColumn.getId()&&(t.selectedFilter=null!=n?n:void 0),n}))}),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.all(n).then(function(){t.filterColumnPairs=r,t.groupColumn.setFilterActive(t.isFilterActive(),"columnRowGroupChanged")})},t.prototype.addUnderlyingFilterElement=function(){var e=this;if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.eUnderlyingFilter),!this.selectedColumn)return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.resolve();var t=this.filterManager.getOrCreateFilterWrapper(this.selectedColumn,"COLUMN_MENU");return t?t.guiPromise.then(function(n){var r;e.eUnderlyingFilter.appendChild(n),null===(r=t.filterPromise)||void 0===r||r.then(function(t){var n,r;null===(n=null==t?void 0:t.afterGuiAttached)||void 0===n||n.call(t,e.afterGuiAttachedParams),(null===(r=e.afterGuiAttachedParams)||void 0===r?void 0:r.suppressFocus)||!e.eGroupFieldSelect||e.eGroupFieldSelect.isDisabled()||e.eGroupFieldSelect.getFocusableElement().focus()})}):ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.resolve()},t.prototype.updateSelectedColumn=function(e){var n,r;if(e){null===(r=null===(n=this.selectedFilter)||void 0===n?void 0:n.afterGuiDetached)||void 0===r||r.call(n);var o=this.getFilterColumnPair(e);this.selectedColumn=null==o?void 0:o.column,this.selectedFilter=null==o?void 0:o.filter,this.dispatchEvent({type:t.EVENT_SELECTED_COLUMN_CHANGED}),this.addUnderlyingFilterElement()}},t.prototype.isFilterActive=function(){var e;return!!(null===(e=this.filterColumnPairs)||void 0===e?void 0:e.some(function(e){return e.filter.isFilterActive()}))},t.prototype.doesFilterPass=function(){return!0},t.prototype.getModel=function(){return null},t.prototype.setModel=function(){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.resolve()},t.prototype.afterGuiAttached=function(e){this.afterGuiAttachedParams=e,this.addUnderlyingFilterElement()},t.prototype.afterGuiDetached=function(){var e,t;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.eUnderlyingFilter),null===(t=null===(e=this.selectedFilter)||void 0===e?void 0:e.afterGuiDetached)||void 0===t||t.call(e)},t.prototype.onColumnRowGroupChanged=function(){var e=this;this.updateGroups().then(function(){e.dispatchEvent({type:t.EVENT_COLUMN_ROW_GROUP_CHANGED}),e.eventService.dispatchEvent({type:"filterAllowedUpdated"})})},t.prototype.getFilterColumnPair=function(e){var t;if(e)return null===(t=this.filterColumnPairs)||void 0===t?void 0:t.find(function(t){return t.column.getId()===e})},t.prototype.getSelectedFilter=function(){return this.selectedFilter},t.prototype.getSelectedColumn=function(){return this.selectedColumn},t.prototype.isFilterAllowed=function(){return!!this.selectedColumn},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_SELECTED_COLUMN_CHANGED="selectedColumnChanged",__decorate$2b([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("filterManager")],t.prototype,"filterManager",void 0),__decorate$2b([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2b([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eGroupField")],t.prototype,"eGroupField",void 0),__decorate$2b([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eUnderlyingFilter")],t.prototype,"eUnderlyingFilter",void 0),__decorate$2b([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TabGuardComp),__extends$2$=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2a=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},GroupFloatingFilterComp=function(e){function t(){return e.call(this,'\n            <div ref="eFloatingFilter" class="ag-group-floating-filter ag-floating-filter-input" role="presentation"></div>\n        ')||this}return __extends$2$(t,e),t.prototype.init=function(e){var t=this;this.params=e;var n="multipleColumns"===this.gridOptionsService.get("groupDisplayType");return new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise(function(e){t.params.parentFilterInstance(function(r){t.parentFilterInstance=r,n?t.setupUnderlyingFloatingFilterElement().then(function(){return e()}):(t.setupReadOnlyFloatingFilterElement(),e())})}).then(function(){t.addManagedListener(t.parentFilterInstance,GroupFilter.EVENT_SELECTED_COLUMN_CHANGED,function(){return t.onSelectedColumnChanged()}),t.addManagedListener(t.parentFilterInstance,GroupFilter.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return t.onColumnRowGroupChanged()})})},t.prototype.setupReadOnlyFloatingFilterElement=function(){var e=this;if(!this.eFloatingFilterText){this.eFloatingFilterText=this.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgInputTextField);var t=this.columnModel.getDisplayNameForColumn(this.params.column,"header",!0),n=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+n("ariaFilterInput","Filter Input")).addGuiEventListener("click",function(){return e.params.showParentFilter()})}this.updateDisplayedValue(),this.eFloatingFilter.appendChild(this.eFloatingFilterText.getGui())},t.prototype.setupUnderlyingFloatingFilterElement=function(){var e=this;this.showingUnderlyingFloatingFilter=!1,this.underlyingFloatingFilter=void 0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.eFloatingFilter);var t=this.parentFilterInstance.getSelectedColumn();if(t&&!t.isVisible()){var n=this.filterManager.getFloatingFilterCompDetails(t,this.params.showParentFilter);if(n)return this.columnVisibleChangedListener||(this.columnVisibleChangedListener=this.addManagedListener(t,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_VISIBLE_CHANGED,this.onColumnVisibleChanged.bind(this))),n.newAgStackInstance().then(function(t){var n,r;e.underlyingFloatingFilter=t,null===(n=e.underlyingFloatingFilter)||void 0===n||n.onParentModelChanged(null===(r=e.parentFilterInstance.getSelectedFilter())||void 0===r?void 0:r.getModel()),e.appendChild(t.getGui()),e.showingUnderlyingFloatingFilter=!0})}return this.setupReadOnlyFloatingFilterElement(),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.resolve()},t.prototype.onColumnVisibleChanged=function(){this.setupUnderlyingFloatingFilterElement()},t.prototype.onParentModelChanged=function(e,t){var n,r;this.showingUnderlyingFloatingFilter?null===(n=this.underlyingFloatingFilter)||void 0===n||n.onParentModelChanged(null===(r=this.parentFilterInstance.getSelectedFilter())||void 0===r?void 0:r.getModel(),t):this.updateDisplayedValue()},t.prototype.updateDisplayedValue=function(){if(this.parentFilterInstance&&this.eFloatingFilterText){var e=this.parentFilterInstance.getSelectedFilter();if(!e)return this.eFloatingFilterText.setValue(""),void this.eFloatingFilterText.setDisplayed(!1);if(this.eFloatingFilterText.setDisplayed(!0),e.getModelAsString){var t=e.getModel();this.eFloatingFilterText.setValue(null==t?"":e.getModelAsString(t))}else this.eFloatingFilterText.setValue("")}},t.prototype.onSelectedColumnChanged=function(){this.showingUnderlyingFloatingFilter||this.updateDisplayedValue()},t.prototype.onColumnRowGroupChanged=function(){this.showingUnderlyingFloatingFilter||this.updateDisplayedValue()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},__decorate$2a([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$2a([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("filterManager")],t.prototype,"filterManager",void 0),__decorate$2a([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eFloatingFilter")],t.prototype,"eFloatingFilter",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),RowGroupingModule={version:VERSION$g,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.RowGroupingModule,beans:[AggregationStage,FilterAggregatesStage,GroupStage,PivotColDefService,PivotStage,AggFuncService],agStackComponents:[{componentName:"AgGridHeaderDropZones",componentClass:GridHeaderDropZones}],userComponents:[{componentName:"agGroupColumnFilter",componentClass:GroupFilter},{componentName:"agGroupColumnFloatingFilter",componentClass:GroupFloatingFilterComp}],dependantModules:[EnterpriseCoreModule]},__extends$2_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$29=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ValuesDropZonePanel=function(e){function t(t){return e.call(this,t,"aggregation")||this}return __extends$2_(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsService:this.gridOptionsService,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.localeService.getLocaleTextFunc(),n=t("valueColumnsEmptyMessage","Drag here to aggregate"),r=t("values","Values");e.prototype.init.call(this,{dragAndDropIcon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_AGGREGATE,icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("valuePanel",this.gridOptionsService,null),emptyMessage:n,title:r}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshGui.bind(this))},t.prototype.getAriaLabel=function(){return this.localeService.getLocaleTextFunc()("ariaValuesDropZonePanelLabel","Values")},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="valueColumnsList",t},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_AGGREGATE:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.isColumnDroppable=function(e){return!(this.gridOptionsService.is("functionsReadOnly")||!e.isPrimary())&&e.isAllowValue()&&!e.isValueActive()},t.prototype.updateColumns=function(e){if(this.gridOptionsService.is("functionsPassive")){var t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:e};this.eventService.dispatchEvent(t)}else this.columnModel.setValueColumns(e,"toolPanelUi")},t.prototype.getExistingColumns=function(){return this.columnModel.getValueColumns()},__decorate$29([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$29([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("loggerFactory")],t.prototype,"loggerFactory",void 0),__decorate$29([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),__decorate$29([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"passBeansUp",null),t}(BaseDropZonePanel),__extends$2Z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$28=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},PrimaryColsPanel=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return __extends$2Z(t,e),t.prototype.init=function(e,t,n){this.allowDragging=e,this.params=t,this.eventType=n,this.primaryColsHeaderPanel.init(this.params);var r=this.params.suppressColumnFilter,o=this.params.suppressColumnSelectAll;this.params.suppressColumnExpandAll&&r&&o&&this.primaryColsHeaderPanel.setDisplayed(!1),this.addManagedListener(this.primaryColsListPanel,"groupExpanded",this.onGroupExpanded.bind(this)),this.addManagedListener(this.primaryColsListPanel,"selectionChanged",this.onSelectionChange.bind(this)),this.primaryColsListPanel.init(this.params,this.allowDragging,this.eventType),this.addManagedListener(this.primaryColsHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"selectAll",this.onSelectAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"unselectAll",this.onUnselectAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"filterChanged",this.onFilterChanged.bind(this)),this.positionableFeature=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PositionableFeature(this.getGui(),{minHeight:100}),this.createManagedBean(this.positionableFeature)},t.prototype.toggleResizable=function(e){this.positionableFeature.setResizable(!!e&&{bottom:!0})},t.prototype.onExpandAll=function(){this.primaryColsListPanel.doSetExpandedAll(!0)},t.prototype.onCollapseAll=function(){this.primaryColsListPanel.doSetExpandedAll(!1)},t.prototype.expandGroups=function(e){this.primaryColsListPanel.setGroupsExpanded(!0,e)},t.prototype.collapseGroups=function(e){this.primaryColsListPanel.setGroupsExpanded(!1,e)},t.prototype.setColumnLayout=function(e){this.primaryColsListPanel.setColumnLayout(e)},t.prototype.onFilterChanged=function(e){this.primaryColsListPanel.setFilterText(e.filterText)},t.prototype.syncLayoutWithGrid=function(){this.primaryColsListPanel.onColumnsChanged()},t.prototype.onSelectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!0)},t.prototype.onUnselectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!1)},t.prototype.onGroupExpanded=function(e){this.primaryColsHeaderPanel.setExpandState(e.state)},t.prototype.onSelectionChange=function(e){this.primaryColsHeaderPanel.setSelectionState(e.state)},t.TEMPLATE='<div class="ag-column-select">\n            <ag-primary-cols-header ref="primaryColsHeaderPanel"></ag-primary-cols-header>\n            <ag-primary-cols-list ref="primaryColsListPanel"></ag-primary-cols-list>\n        </div>',__decorate$28([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("primaryColsHeaderPanel")],t.prototype,"primaryColsHeaderPanel",void 0),__decorate$28([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("primaryColsListPanel")],t.prototype,"primaryColsListPanel",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$2Y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$N=function(){return __assign$N=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$N.apply(this,arguments)},__decorate$27=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ColumnToolPanel=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.initialised=!1,n.childDestroyFuncs=[],n}return __extends$2Y(t,e),t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},t.prototype.init=function(e){var t=this,n={suppressColumnMove:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi};if(this.params=__assign$N(__assign$N(__assign$N({},n),e),{context:this.gridOptionsService.context}),this.isRowGroupingModuleLoaded()&&!this.params.suppressPivotMode&&(this.pivotModePanel=this.createBean(new PivotModePanel),this.childDestroyFuncs.push(function(){return t.destroyBean(t.pivotModePanel)}),this.appendChild(this.pivotModePanel)),this.primaryColsPanel=this.createBean(new PrimaryColsPanel),this.childDestroyFuncs.push(function(){return t.destroyBean(t.primaryColsPanel)}),this.primaryColsPanel.init(!0,this.params,"toolPanelUi"),this.primaryColsPanel.addCssClass("ag-column-panel-column-select"),this.appendChild(this.primaryColsPanel),this.isRowGroupingModuleLoaded()){this.params.suppressRowGroups||(this.rowGroupDropZonePanel=this.createBean(new RowGroupDropZonePanel(!1)),this.childDestroyFuncs.push(function(){return t.destroyBean(t.rowGroupDropZonePanel)}),this.appendChild(this.rowGroupDropZonePanel)),this.params.suppressValues||(this.valuesDropZonePanel=this.createBean(new ValuesDropZonePanel(!1)),this.childDestroyFuncs.push(function(){return t.destroyBean(t.valuesDropZonePanel)}),this.appendChild(this.valuesDropZonePanel)),this.params.suppressPivots||(this.pivotDropZonePanel=this.createBean(new PivotDropZonePanel(!1)),this.childDestroyFuncs.push(function(){return t.destroyBean(t.pivotDropZonePanel)}),this.appendChild(this.pivotDropZonePanel)),this.setLastVisible();var r=this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){t.resetChildrenHeight(),t.setLastVisible()});this.childDestroyFuncs.push(function(){return r()})}this.initialised=!0},t.prototype.setPivotModeSectionVisible=function(e){var t=this;this.isRowGroupingModuleLoaded()&&(this.pivotModePanel?this.pivotModePanel.setDisplayed(e):e&&(this.pivotModePanel=this.createBean(new PivotModePanel),this.getGui().insertBefore(this.pivotModePanel.getGui(),this.getGui().firstChild),this.childDestroyFuncs.push(function(){return t.destroyBean(t.pivotModePanel)})),this.setLastVisible())},t.prototype.setRowGroupsSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.rowGroupDropZonePanel?this.rowGroupDropZonePanel.setDisplayed(e):e&&(this.rowGroupDropZonePanel=this.createManagedBean(new RowGroupDropZonePanel(!1)),this.appendChild(this.rowGroupDropZonePanel)),this.setLastVisible())},t.prototype.setValuesSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.valuesDropZonePanel?this.valuesDropZonePanel.setDisplayed(e):e&&(this.valuesDropZonePanel=this.createManagedBean(new ValuesDropZonePanel(!1)),this.appendChild(this.valuesDropZonePanel)),this.setLastVisible())},t.prototype.setPivotSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.pivotDropZonePanel?this.pivotDropZonePanel.setDisplayed(e):e&&(this.pivotDropZonePanel=this.createManagedBean(new PivotDropZonePanel(!1)),this.appendChild(this.pivotDropZonePanel),this.pivotDropZonePanel.setDisplayed(e)),this.setLastVisible())},t.prototype.setResizers=function(){[this.primaryColsPanel,this.rowGroupDropZonePanel,this.valuesDropZonePanel,this.pivotDropZonePanel].forEach(function(e){if(e){var t=e.getGui();e.toggleResizable(!t.classList.contains("ag-last-column-drop")&&!t.classList.contains("ag-hidden"))}})},t.prototype.setLastVisible=function(){var e=this.getGui();Array.prototype.slice.call(e.querySelectorAll(".ag-column-drop")).forEach(function(e){return e.classList.remove("ag-last-column-drop")});var t=e.querySelectorAll(".ag-column-drop:not(.ag-hidden)"),n=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(t);n&&n.classList.add("ag-last-column-drop"),this.setResizers()},t.prototype.resetChildrenHeight=function(){for(var e=this.getGui().children,t=0;t<e.length;t++){var n=e[t];n.style.removeProperty("height"),n.style.removeProperty("flex")}},t.prototype.isRowGroupingModuleLoaded=function(){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.assertRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.RowGroupingModule,"Row Grouping")},t.prototype.expandColumnGroups=function(e){this.primaryColsPanel.expandGroups(e)},t.prototype.collapseColumnGroups=function(e){this.primaryColsPanel.collapseGroups(e)},t.prototype.setColumnLayout=function(e){this.primaryColsPanel.setColumnLayout(e)},t.prototype.syncLayoutWithGrid=function(){this.primaryColsPanel.syncLayoutWithGrid()},t.prototype.destroyChildren=function(){this.childDestroyFuncs.forEach(function(e){return e()}),this.childDestroyFuncs.length=0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.getGui())},t.prototype.refresh=function(){this.destroyChildren(),this.init(this.params)},t.prototype.destroy=function(){this.destroyChildren(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-column-panel"></div>',__decorate$27([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$27([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnApi")],t.prototype,"columnApi",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$2X=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$26=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},HorizontalResizeComp=function(e){function t(){var t=e.call(this,'<div class="ag-tool-panel-horizontal-resize"></div>')||this;return t.minWidth=100,t.maxWidth=null,t}return __extends$2X(t,e),t.prototype.setElementToResize=function(e){this.elementToResize=e},t.prototype.postConstruct=function(){var e=this.horizontalResizeService.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizeEnd.bind(this)});this.addDestroyFunc(e),this.setInverted(this.gridOptionsService.is("enableRtl"))},t.prototype.dispatchResizeEvent=function(e,t,n){var r={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_TOOL_PANEL_SIZE_CHANGED,width:n,started:e,ended:t};this.eventService.dispatchEvent(r)},t.prototype.onResizeStart=function(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)},t.prototype.onResizeEnd=function(e){return this.onResizing(e,!0)},t.prototype.onResizing=function(e,t){void 0===t&&(t=!1);var n=this.inverted?-1:1,r=Math.max(this.minWidth,Math.floor(this.startingWidth-e*n));null!=this.maxWidth&&(r=Math.min(this.maxWidth,r)),this.elementToResize.style.width=r+"px",this.dispatchResizeEvent(!1,t,r)},t.prototype.setInverted=function(e){this.inverted=e},t.prototype.setMaxWidth=function(e){this.maxWidth=e},t.prototype.setMinWidth=function(e){this.minWidth=null!=e?e:100},__decorate$26([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),__decorate$26([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$2W=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$25=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SideBarButtonComp=function(e){function t(t){var n=e.call(this)||this;return n.toolPanelDef=t,n}return __extends$2W(t,e),t.prototype.getToolPanelId=function(){return this.toolPanelDef.id},t.prototype.postConstruct=function(){var e=this.createTemplate();this.setTemplate(e),this.setLabel(),this.setIcon(),this.addManagedListener(this.eToggleButton,"click",this.onButtonPressed.bind(this))},t.prototype.createTemplate=function(){return'<div class="ag-side-button" role="presentation">\n                <button type="button" ref="eToggleButton" tabindex="-1" role="tab" class="ag-side-button-button">\n                    <div ref="eIconWrapper" class="ag-side-button-icon-wrapper" aria-hidden="true"></div>\n                    <span ref ="eLabel" class="ag-side-button-label"></span>\n                </button>\n            </div>'},t.prototype.setLabel=function(){var e=this.localeService.getLocaleTextFunc(),t=this.toolPanelDef,n=e(t.labelKey,t.labelDefault);this.eLabel.innerText=n},t.prototype.setIcon=function(){this.eIconWrapper.insertAdjacentElement("afterbegin",ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan(this.toolPanelDef.iconKey,this.gridOptionsService))},t.prototype.onButtonPressed=function(){this.dispatchEvent({type:t.EVENT_TOGGLE_BUTTON_CLICKED})},t.prototype.setSelected=function(e){this.addOrRemoveCssClass("ag-selected",e)},t.EVENT_TOGGLE_BUTTON_CLICKED="toggleButtonClicked",__decorate$25([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eToggleButton")],t.prototype,"eToggleButton",void 0),__decorate$25([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eIconWrapper")],t.prototype,"eIconWrapper",void 0),__decorate$25([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eLabel")],t.prototype,"eLabel",void 0),__decorate$25([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$2V=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$24=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SideBarButtonsComp=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.buttonComps=[],n}return __extends$2V(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.getFocusableElement(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){if(e.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.TAB&&e.shiftKey){var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(this.columnModel.getAllDisplayedColumns());this.focusService.focusGridView(t,!0)&&e.preventDefault()}},t.prototype.setToolPanelDefs=function(e){e.forEach(this.addButtonComp.bind(this))},t.prototype.setActiveButton=function(e){this.buttonComps.forEach(function(t){t.setSelected(e===t.getToolPanelId())})},t.prototype.addButtonComp=function(e){var n=this,r=this.createBean(new SideBarButtonComp(e));this.buttonComps.push(r),this.appendChild(r),r.addEventListener(SideBarButtonComp.EVENT_TOGGLE_BUTTON_CLICKED,function(){n.dispatchEvent({type:t.EVENT_SIDE_BAR_BUTTON_CLICKED,toolPanelId:e.id})})},t.prototype.clearButtons=function(){this.buttonComps=this.destroyBeans(this.buttonComps),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.getGui())},t.EVENT_SIDE_BAR_BUTTON_CLICKED="sideBarButtonClicked",t.TEMPLATE='<div class="ag-side-buttons" role="tablist"></div>',__decorate$24([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("focusService")],t.prototype,"focusService",void 0),__decorate$24([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$24([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),__decorate$24([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreDestroy],t.prototype,"clearButtons",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),SideBarDefParser=function(){function e(){}return e.parse=function(t){if(t){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=[];if(t.forEach(function(t){var r=e.DEFAULT_BY_KEY[t];r?n.push(r):console.warn("AG Grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))}),0===n.length)return;return{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}}},e.parseComponents=function(t){var n=[];return t?(t.forEach(function(t){var r=null;if("string"==typeof t){var o=e.DEFAULT_BY_KEY[t];if(!o)return void console.warn("AG Grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));r=o}else r=t;n.push(r)}),n):n},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}(),__extends$2U=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$23=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ToolPanelWrapper=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return __extends$2U(t,e),t.prototype.setupResize=function(){var e=this.getGui(),t=this.resizeBar=this.createManagedBean(new HorizontalResizeComp);t.setElementToResize(e),this.appendChild(t)},t.prototype.getToolPanelId=function(){return this.toolPanelId},t.prototype.setToolPanelDef=function(e){var t=e.id,n=e.minWidth,r=e.maxWidth,o=e.width;this.toolPanelId=t,this.width=o;var i=this.userComponentFactory.getToolPanelCompDetails(e,{}).newAgStackInstance();null!=i?(i.then(this.setToolPanelComponent.bind(this)),null!=n&&this.resizeBar.setMinWidth(n),null!=r&&this.resizeBar.setMaxWidth(r)):console.warn("AG Grid: error processing tool panel component "+t+". You need to specify either 'toolPanel' or 'toolPanelFramework'")},t.prototype.setToolPanelComponent=function(e){var t=this;this.toolPanelCompInstance=e,this.appendChild(e.getGui()),this.addDestroyFunc(function(){t.destroyBean(e)}),this.width&&(this.getGui().style.width=this.width+"px")},t.prototype.getToolPanelInstance=function(){return this.toolPanelCompInstance},t.prototype.setResizerSizerSide=function(e){var t="left"===e,n=this.gridOptionsService.is("enableRtl")?t:!t;this.resizeBar.setInverted(n)},t.prototype.refresh=function(){this.toolPanelCompInstance.refresh()},t.TEMPLATE='<div class="ag-tool-panel-wrapper"/>',__decorate$23([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),__decorate$23([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"setupResize",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$2T=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$22=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SideBarComp=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.toolPanelWrappers=[],n}return __extends$2T(t,e),t.prototype.postConstruct=function(){var e=this;this.sideBarButtonsComp.addEventListener(SideBarButtonsComp.EVENT_SIDE_BAR_BUTTON_CLICKED,this.onToolPanelButtonClicked.bind(this)),this.setSideBarDef(),this.addManagedPropertyListener("sideBar",function(){e.clearDownUi(),e.setSideBarDef()}),this.gridApi.registerSideBarComp(this),this.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ManagedFocusFeature(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this.focusService,n=this.sideBarButtonsComp,r=this.getGui(),o=n.getGui(),i=this.gridOptionsService.getDocument().activeElement,a=r.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)"),s=e.target;if(a)if(o.contains(i))t.focusInto(a,e.shiftKey)&&e.preventDefault();else if(e.shiftKey){var l=null;a.contains(i)?l=this.focusService.findNextFocusableElement(a,void 0,!0):t.isTargetUnderManagedComponent(a,s)&&e.shiftKey&&(l=this.focusService.findFocusableElementBeforeTabGuard(a,s)),l||(l=o.querySelector(".ag-selected button")),l&&(e.preventDefault(),l.focus())}}},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsService.getDocument();if(this.sideBarButtonsComp.getGui().contains(t.activeElement)){var n=this.sideBarButtonsComp.getGui(),r=Array.prototype.slice.call(n.querySelectorAll(".ag-side-button")),o=t.activeElement,i=r.findIndex(function(e){return e.contains(o)}),a=null;switch(e.key){case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.LEFT:case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.UP:a=Math.max(0,i-1);break;case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.RIGHT:case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.DOWN:a=Math.min(i+1,r.length-1)}if(null!==a){var s=r[a].querySelector("button");s&&(s.focus(),e.preventDefault())}}},t.prototype.onToolPanelButtonClicked=function(e){var t=e.toolPanelId;this.openedItem()===t?this.openToolPanel(void 0,"sideBarButtonClicked"):this.openToolPanel(t,"sideBarButtonClicked")},t.prototype.clearDownUi=function(){this.sideBarButtonsComp.clearButtons(),this.destroyToolPanelWrappers()},t.prototype.setSideBarDef=function(){this.setDisplayed(!1);var e=this.gridOptionsService.get("sideBar");if(this.sideBar=SideBarDefParser.parse(e),this.sideBar&&this.sideBar.toolPanels){var t=!this.sideBar.hiddenByDefault;this.setDisplayed(t);var n=this.sideBar.toolPanels;this.sideBarButtonsComp.setToolPanelDefs(n),this.setupToolPanels(n),this.setSideBarPosition(this.sideBar.position),this.sideBar.hiddenByDefault||this.openToolPanel(this.sideBar.defaultToolPanel,"sideBarInitializing")}},t.prototype.getDef=function(){return this.sideBar},t.prototype.setSideBarPosition=function(e){e||(e="right");var t="left"===e,n=t?"right":"left";return this.addOrRemoveCssClass("ag-side-bar-left",t),this.addOrRemoveCssClass("ag-side-bar-right",!t),this.toolPanelWrappers.forEach(function(e){e.setResizerSizerSide(n)}),this},t.prototype.setupToolPanels=function(e){var t=this;e.forEach(function(e){if(null!=e.id){if("agColumnsToolPanel"===e.toolPanel&&!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.assertRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ColumnsToolPanelModule,"Column Tool Panel"))return;if("agFiltersToolPanel"===e.toolPanel&&!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.assertRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.FiltersToolPanelModule,"Filters Tool Panel"))return;var n=new ToolPanelWrapper;t.getContext().createBean(n),n.setToolPanelDef(e),n.setDisplayed(!1),t.getGui().appendChild(n.getGui()),t.toolPanelWrappers.push(n)}else console.warn("AG Grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id")})},t.prototype.refresh=function(){this.toolPanelWrappers.forEach(function(e){return e.refresh()})},t.prototype.openToolPanel=function(e,t){void 0===t&&(t="api");var n=this.openedItem();n!==e&&(this.toolPanelWrappers.forEach(function(t){var n=e===t.getToolPanelId();t.setDisplayed(n)}),n!==this.openedItem()&&(this.sideBarButtonsComp.setActiveButton(e),this.raiseToolPanelVisibleEvent(e,null!=n?n:void 0,t)))},t.prototype.getToolPanelInstance=function(e){var t=this.toolPanelWrappers.filter(function(t){return t.getToolPanelId()===e})[0];if(t)return t.getToolPanelInstance();console.warn("AG Grid: unable to lookup Tool Panel as invalid key supplied: "+e)},t.prototype.raiseToolPanelVisibleEvent=function(e,t,n){var r={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED,source:e};if(this.eventService.dispatchEvent(r),t){var o={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,source:n,key:t,visible:!1};this.eventService.dispatchEvent(o)}if(e){var i={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,source:n,key:e,visible:!0};this.eventService.dispatchEvent(i)}},t.prototype.close=function(e){void 0===e&&(e="api"),this.openToolPanel(void 0,e)},t.prototype.isToolPanelShowing=function(){return!!this.openedItem()},t.prototype.openedItem=function(){var e=null;return this.toolPanelWrappers.forEach(function(t){t.isDisplayed()&&(e=t.getToolPanelId())}),e},t.prototype.destroyToolPanelWrappers=function(){var e=this;this.toolPanelWrappers.forEach(function(t){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromParent(t.getGui()),e.destroyBean(t)}),this.toolPanelWrappers.length=0},t.prototype.destroy=function(){this.destroyToolPanelWrappers(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-side-bar ag-unselectable">\n            <ag-side-bar-buttons ref="sideBarButtons"></ag-side-bar-buttons>\n        </div>',__decorate$22([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$22([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("focusService")],t.prototype,"focusService",void 0),__decorate$22([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("sideBarButtons")],t.prototype,"sideBarButtonsComp",void 0),__decorate$22([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$2S=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$21=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ToolPanelColDefService=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isColGroupDef=function(e){return e&&void 0!==e.children},t.getId=function(e){return t.isColGroupDef(e)?e.groupId:e.colId},t}return __extends$2S(t,e),t.prototype.createColumnTree=function(e){var t=this,n=[],r=function(e,o){if(t.isColGroupDef(e)){var i=e,a=void 0!==i.groupId?i.groupId:i.headerName,s=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedColumnGroup(i,a,!1,o),l=[];return i.children.forEach(function(e){var t=r(e,o+1);t&&l.push(t)}),s.setChildren(l),s}var c=e,u=c.colId?c.colId:c.field,d=t.columnModel.getPrimaryColumn(u);return d||n.push(c),d},o=[];return e.forEach(function(e){var t=r(e,0);t&&o.push(t)}),n.length>0&&console.warn("AG Grid: unable to find grid columns for the supplied colDef(s):",n),o},t.prototype.syncLayoutWithGrid=function(e){var t=this.getLeafPathTrees();e(this.mergeLeafPathTrees(t))},t.prototype.getLeafPathTrees=function(){var e=function(t,n){var r;if(t instanceof ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedColumnGroup)if(t.isPadding())r=n;else{var o=Object.assign({},t.getColGroupDef());o.groupId=t.getGroupId(),o.children=[n],r=o}else{var i=Object.assign({},t.getColDef());i.colId=t.getColId(),r=i}var a=t.getOriginalParent();return a?e(a,r):r},t=this.columnModel.getAllGridColumns().filter(function(e){var t=e.getColDef();return e.isPrimary()&&!t.showRowGroup});return t.map(function(t){return e(t,t.getColDef())})},t.prototype.mergeLeafPathTrees=function(e){for(var t=this,n=function(e,n){return t.isColGroupDef(e)&&t.isColGroupDef(n)&&t.getId(e)===t.getId(n)},r=function(e,n){if(!t.isColGroupDef(n))return e;var o=e,i=n;return i.children&&i.groupId&&t.addChildrenToGroup(o,i.groupId,i.children[0])||i.children.forEach(function(e){return r(o,e)}),o},o=[],i=1;i<=e.length;i++){var a=e[i-1],s=e[i];n(a,s)?e[i]=r(a,s):o.push(a)}return o},t.prototype.addChildrenToGroup=function(e,t,n){var r=this;if(!this.isColGroupDef(e))return!0;var o=e,i=n;if(function(e,t){var n=e.children.map(r.getId),o=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(n,r.getId(t)),i=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(e.children),a=i&&r.getId(i)!==r.getId(t);return o&&a}(o,i))return o.children.push(i),!0;if(o.groupId===t){var a=o.children.map(this.getId);if(!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(a,this.getId(i)))return o.children.push(i),!0}return o.children.forEach(function(e){return r.addChildrenToGroup(e,t,n)}),!1},__decorate$21([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$21([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("toolPanelColDefService")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),VERSION$f="29.3.3",SideBarModule={version:VERSION$f,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.SideBarModule,beans:[ToolPanelColDefService],agStackComponents:[{componentName:"AgHorizontalResize",componentClass:HorizontalResizeComp},{componentName:"AgSideBar",componentClass:SideBarComp},{componentName:"AgSideBarButtons",componentClass:SideBarButtonsComp}],dependantModules:[EnterpriseCoreModule]},__decorate$20=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ModelItemUtils=function(){function e(){}return e.prototype.selectAllChildren=function(e,t,n){var r=this.extractAllLeafColumns(e);this.setAllColumns(r,t,n)},e.prototype.setColumn=function(e,t,n){this.setAllColumns([e],t,n)},e.prototype.setAllColumns=function(e,t,n){this.columnModel.isPivotMode()?this.setAllPivot(e,t,n):this.setAllVisible(e,t,n)},e.prototype.extractAllLeafColumns=function(e){var t=[],n=function(e){e.forEach(function(e){e.isPassesFilter()&&(e.isGroup()?n(e.getChildren()):t.push(e.getColumn()))})};return n(e),t},e.prototype.setAllVisible=function(e,t,n){var r=[];e.forEach(function(e){e.getColDef().lockVisible||e.isVisible()!=t&&r.push({colId:e.getId(),hide:!t})}),r.length>0&&this.columnModel.applyColumnState({state:r},n)},e.prototype.setAllPivot=function(e,t,n){this.gridOptionsService.is("functionsPassive")?this.setAllPivotPassive(e,t):this.setAllPivotActive(e,t,n)},e.prototype.setAllPivotPassive=function(e,t){var n=this.columnModel.getPivotColumns().slice(),r=this.columnModel.getValueColumns().slice(),o=this.columnModel.getRowGroupColumns().slice(),i=!1,a=!1,s=!1,l=t?function(e){e.isAnyFunctionActive()||(e.isAllowValue()?(r.push(e),a=!0):e.isAllowRowGroup()?(o.push(e),i=!0):e.isAllowPivot()&&(n.push(e),s=!0))}:function(e){e.isAnyFunctionActive()&&(n.indexOf(e)>=0&&(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromArray(n,e),i=!0),r.indexOf(e)>=0&&(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromArray(r,e),a=!0),o.indexOf(e)>=0&&(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromArray(o,e),s=!0))};if(e.forEach(l),i){var c={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:n};this.eventService.dispatchEvent(c)}if(s){var u={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:o};this.eventService.dispatchEvent(u)}if(a){var d={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:o};this.eventService.dispatchEvent(d)}},e.prototype.setAllPivotActive=function(e,t,n){var r=this,o=[],i=t?function(e){if(!e.isAnyFunctionActive())if(e.isAllowValue()){var t="string"==typeof e.getAggFunc()?e.getAggFunc():r.aggFuncService.getDefaultAggFunc(e);o.push({colId:e.getId(),aggFunc:t})}else e.isAllowRowGroup()?o.push({colId:e.getId(),rowGroup:!0}):e.isAllowPivot()&&o.push({colId:e.getId(),pivot:!0})}:function(e){(e.isPivotActive()||e.isRowGroupActive()||e.isValueActive())&&o.push({colId:e.getId(),pivot:!1,rowGroup:!1,aggFunc:null})};e.forEach(i),o.length>0&&this.columnModel.applyColumnState({state:o},n)},__decorate$20([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("aggFuncService")],e.prototype,"aggFuncService",void 0),__decorate$20([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],e.prototype,"columnModel",void 0),__decorate$20([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridOptionsService")],e.prototype,"gridOptionsService",void 0),__decorate$20([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("eventService")],e.prototype,"eventService",void 0),__decorate$20([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("modelItemUtils")],e)}(),VERSION$e="29.3.3",ColumnsToolPanelModule={version:VERSION$e,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ColumnsToolPanelModule,beans:[ModelItemUtils],agStackComponents:[{componentName:"AgPrimaryColsHeader",componentClass:PrimaryColsHeaderPanel},{componentName:"AgPrimaryColsList",componentClass:PrimaryColsListPanel},{componentName:"AgPrimaryCols",componentClass:PrimaryColsPanel}],userComponents:[{componentName:"agColumnsToolPanel",componentClass:ColumnToolPanel}],dependantModules:[EnterpriseCoreModule,RowGroupingModule,SideBarModule]},workbook={getTemplate:function(){return{name:"Workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",html:"http://www.w3.org/TR/REC-html40"}}],rawMap:{xmlns:"urn:schemas-microsoft-com:office:spreadsheet"}}}}},excelWorkbook={getTemplate:function(){return{name:"ExcelWorkbook",properties:{rawMap:{xmlns:"urn:schemas-microsoft-com:office:excel"}},children:[{name:"WindowHeight",textNode:"8130"},{name:"WindowWidth",textNode:"15135"},{name:"WindowHeight",textNode:"8130"},{name:"WindowTopX",textNode:"120"},{name:"WindowTopY",textNode:"45"},{name:"ProtectStructure",textNode:"False"},{name:"ProtectWindow",textNode:"False"}]}}},column={getTemplate:function(e){return{name:"Column",properties:{prefixedAttributes:[{prefix:"ss:",map:{Width:e.width}}]}}}},cell={getTemplate:function(e){var t=e.mergeAcross,n=e.styleId,r=e.data,o={};return t&&(o.MergeAcross=t),n&&(o.StyleID=n),{name:"Cell",properties:{prefixedAttributes:[{prefix:"ss:",map:o}]},children:[{name:"Data",properties:{prefixedAttributes:[{prefix:"ss:",map:{Type:null==r?void 0:r.type}}]},textNode:null==r?void 0:r.value}]}}},row={getTemplate:function(e){return{name:"Row",children:e.cells.map(function(e){return cell.getTemplate(e)})}}},worksheet={getTemplate:function(e){var t=e.table,n=e.name,r=t.columns,o=t.rows,i=r.map(function(e){return column.getTemplate(e)}),a=o.map(function(e){return row.getTemplate(e)});return{name:"Worksheet",children:[{name:"Table",children:i.concat(a)}],properties:{prefixedAttributes:[{prefix:"ss:",map:{Name:n}}]}}}},documentProperties={getTemplate:function(){return{name:"DocumentProperties",properties:{rawMap:{xmlns:"urn:schemas-microsoft-com:office:office"}},children:[{name:"Version",textNode:"12.00"}]}}},alignment={getTemplate:function(e){var t=e.alignment;return{name:"Alignment",properties:{prefixedAttributes:[{prefix:"ss:",map:{Vertical:t.vertical,Horizontal:t.horizontal,Indent:t.indent,ReadingOrder:t.readingOrder,Rotate:t.rotate,ShrinkToFit:t.shrinkToFit,VerticalText:t.verticalText,WrapText:t.wrapText}}]}}}},borders={getTemplate:function(e){var t=e.borders;return{name:"Borders",children:[t.borderBottom,t.borderLeft,t.borderRight,t.borderTop].map(function(e,t){return{name:"Border",properties:{prefixedAttributes:[{prefix:"ss:",map:{Position:0==t?"Bottom":1==t?"Left":2==t?"Right":"Top",LineStyle:e.lineStyle,Weight:e.weight,Color:e.color}}]}}})}}},font={getTemplate:function(e){var t=e.font;return{name:"Font",properties:{prefixedAttributes:[{prefix:"ss:",map:{Bold:t.bold,FontName:t.fontName,Italic:t.italic,Color:t.color,Outline:t.outline,Shadow:t.shadow,Size:t.size,StrikeThrough:t.strikeThrough,Underline:t.underline,VerticalAlign:t.verticalAlign}},{prefix:"x:",map:{CharSet:t.charSet,Family:t.family}}]}}}},interior={getTemplate:function(e){var t=e.interior;return{name:"Interior",properties:{prefixedAttributes:[{prefix:"ss:",map:{Color:t.color,Pattern:t.pattern,PatternColor:t.patternColor}}]}}}},protection={getTemplate:function(e){return{name:"Protection",properties:{prefixedAttributes:[{prefix:"ss:",map:{Protected:e.protection.protected,HideFormula:e.protection.hideFormula}}]}}}},numberFormat={getTemplate:function(e){return{name:"NumberFormat",properties:{prefixedAttributes:[{prefix:"ss:",map:{Format:e.numberFormat.format}}]}}}},style={getTemplate:function(e){var t=e.id;return{name:"Style",properties:{prefixedAttributes:[{prefix:"ss:",map:{ID:t,Name:e.name||t}}]}}}},ExcelXmlFactory=function(){function e(){}return e.createExcel=function(e,t){var n=this.excelXmlHeader(),r=documentProperties.getTemplate(),o=excelWorkbook.getTemplate(),i=this.workbook(r,o,e,t);return""+n+ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.XmlFactory.createXml(i,function(e){return e?"1":"0"})},e.workbook=function(e,t,n,r){var o=[e,t,this.stylesXmlElement(n)].concat(worksheet.getTemplate(r));return Object.assign({},workbook.getTemplate(),{children:o})},e.excelXmlHeader=function(){return'<?xml version="1.0" ?>\n        <?mso-application progid="Excel.Sheet" ?>\n        '},e.stylesXmlElement=function(e){var t=this;return{name:"Styles",children:e?e.map(function(e){return t.styleXmlElement(e)}):[]}},e.styleXmlElement=function(e){var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.compose(this.addProperty("alignment",e),this.addProperty("borders",e),this.addProperty("font",e),this.addProperty("interior",e),this.addProperty("protection",e),this.addProperty("numberFormat",e))([]);return Object.assign({},style.getTemplate(e),{children:t})},e.addProperty=function(e,t){return function(n){if(!t[e])return n;var r={alignment,borders,font,interior,numberFormat,protection};return n.concat(r[e].getTemplate(t))}},e.factoryMode=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ExcelFactoryMode.SINGLE_SHEET,e}(),INCH_TO_EMU=9525,numberFormatMap={0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49},pixelsToPoint=function(e){return Math.round(72*e/96)},pointsToPixel=function(e){return Math.round(96*e/72)},pixelsToEMU=function(e){return Math.ceil(e*INCH_TO_EMU)},getFontFamilyId=function(e){if(void 0!==e){var t=["Automatic","Roman","Swiss","Modern","Script","Decorative"].indexOf(e||"Automatic");return Math.max(t,0)}},getHeightFromProperty=function(e,t){var n;if(t)return n="number"==typeof t?t:t({rowIndex:e}),pixelsToPoint(n)},setExcelImageTotalWidth=function(e,t){var n=e.position,r=n.colSpan,o=n.column;if(e.width)if(r)for(var i=t.slice(o-1,o+r-1),a=0,s=0;s<i.length;s++){var l=i[s].getActualWidth();if(e.width<a+l){e.position.colSpan=s+1,e.totalWidth=e.width,e.width=e.totalWidth-a;break}a+=l}else e.totalWidth=e.width},setExcelImageTotalHeight=function(e,t){var n=e.position,r=n.rowSpan,o=n.row;if(e.height)if(r)for(var i=0,a=0,s=o;s<o+r;s++){var l=pointsToPixel(getHeightFromProperty(s,t)||20);if(e.height<i+l){e.position.rowSpan=a+1,e.totalHeight=e.height,e.height=e.totalHeight-i;break}i+=l,a++}else e.totalHeight=e.height},createXmlPart=function(e){return""+ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.XmlFactory.createHeader({encoding:"UTF-8",standalone:"yes"})+ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.XmlFactory.createXml(e)},getExcelColumnName=function(e){var t=String.fromCharCode,n=Math.floor(e/26),r=e%26;return n&&26!==e?r?n<26?t(65+n-1)+t(65+r-1):getExcelColumnName(n)+t(65+r-1):getExcelColumnName(n-1)+"Z":t(65+e-1)},__extends$2R=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$M=function(){return __assign$M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$M.apply(this,arguments)},__read$17=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$F=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$17(arguments[t]));return e},BaseExcelSerializingSession=function(e){function t(t){var n=e.call(this,t)||this;return n.mixedStyles={},n.mixedStyleCounter=0,n.rows=[],n.config=Object.assign({},t),n.stylesByIds={},n.config.baseExcelStyles.forEach(function(e){n.stylesByIds[e.id]=e}),n.excelStyles=__spread$F(n.config.baseExcelStyles),n}return __extends$2R(t,e),t.prototype.addCustomContent=function(e){var t=this;e.forEach(function(e){var n=t.rows.length+1,r={height:getHeightFromProperty(n,e.height||t.config.rowHeight),cells:(e.cells||[]).map(function(e,r){var o,i,a,s=t.addImage(n,t.columnsToExport[r],null===(o=e.data)||void 0===o?void 0:o.value),l=null;e.styleId&&(l="string"==typeof e.styleId?[e.styleId]:e.styleId);var c=t.getStyleId(l);if(s)return t.createCell(c,t.getDataTypeForValue(s.value),null==s.value?"":s.value);var u=null!==(a=null===(i=e.data)||void 0===i?void 0:i.value)&&void 0!==a?a:"",d=t.getDataTypeForValue(u);return e.mergeAcross?t.createMergedCell(c,d,u,e.mergeAcross):t.createCell(c,d,u)}),outlineLevel:e.outlineLevel||void 0};null!=e.collapsed&&(r.collapsed=e.collapsed),null!=e.hidden&&(r.hidden=e.hidden),t.rows.push(r)})},t.prototype.onNewHeaderGroupingRow=function(){var e=this,t=[];return this.rows.push({cells:t,height:getHeightFromProperty(this.rows.length+1,this.config.headerRowHeight)}),{onColumn:function(n,r,o,i,a){var s=e.config.styleLinker({rowType:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowType.HEADER_GROUPING,rowIndex:1,value:"grouping-"+r,columnGroup:n});t.push(__assign$M(__assign$M({},e.createMergedCell(e.getStyleId(s),e.getDataTypeForValue("string"),r,i)),{collapsibleRanges:a}))}}},t.prototype.onNewHeaderRow=function(){return this.onNewRow(this.onNewHeaderColumn,this.config.headerRowHeight)},t.prototype.onNewBodyRow=function(){return this.onNewRow(this.onNewBodyColumn,this.config.rowHeight)},t.prototype.prepare=function(t){var n=this;e.prototype.prepare.call(this,t),this.columnsToExport=__spread$F(t),this.cols=t.map(function(e,t){return n.convertColumnToExcel(e,t)})},t.prototype.parse=function(){for(var e=this.rows.reduce(function(e,t){return Math.max(e,t.cells.length)},0);this.cols.length<e;)this.cols.push(this.convertColumnToExcel(null,this.cols.length+1));var t={name:this.config.sheetName,table:{columns:this.cols,rows:this.rows}};return this.createExcel(t)},t.prototype.isFormula=function(e){return null!=e&&this.config.autoConvertFormulas&&e.toString().startsWith("=")},t.prototype.isNumerical=function(e){return isFinite(e)&&""!==e&&!isNaN(parseFloat(e))},t.prototype.getStyleById=function(e){return null==e?null:this.stylesByIds[e]||null},t.prototype.convertColumnToExcel=function(e,t){var n=this.config.columnWidth;return n?"number"==typeof n?{width:n}:{width:n({column:e,index:t})}:e?{width:Math.max(e.getActualWidth(),75)}:{}},t.prototype.onNewHeaderColumn=function(e,t){var n=this;return function(r,o){var i=n.extractHeaderValue(r),a=n.config.styleLinker({rowType:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowType.HEADER,rowIndex:e,value:i,column:r});t.push(n.createCell(n.getStyleId(a),n.getDataTypeForValue("string"),i))}},t.prototype.onNewRow=function(e,t){var n=[];return this.rows.push({cells:n,height:getHeightFromProperty(this.rows.length+1,t)}),{onColumn:e.bind(this,this.rows.length,n)()}},t.prototype.onNewBodyColumn=function(e,t){var n=this,r=0;return function(o,i,a){if(r>0)r-=1;else{if(!n.config.gridOptionsService.is("groupHideOpenParents")&&null!=a.level){var s=a.footer?1:0;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(n.rows).outlineLevel=a.level+s}var l=n.extractRowCellValue(o,i,e,"excel",a),c=n.config.styleLinker({rowType:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowType.BODY,rowIndex:e,value:l,column:o,node:a}),u=n.getStyleId(c),d=o.getColSpan(a),p=n.addImage(e,o,l);p?t.push(n.createCell(u,n.getDataTypeForValue(p.value),null==p.value?"":p.value)):d>1?(r=d-1,t.push(n.createMergedCell(u,n.getDataTypeForValue(l),l,d-1))):t.push(n.createCell(u,n.getDataTypeForValue(l),l))}}},t.prototype.getStyleId=function(e){if(!e||!e.length)return null;if(1===e.length)return e[0];var t=e.join("-");return this.mixedStyles[t]||this.addNewMixedStyle(e),this.mixedStyles[t].excelID},t.prototype.addNewMixedStyle=function(e){var t=this;this.mixedStyleCounter+=1;var n="mixedStyle"+this.mixedStyleCounter,r={};e.forEach(function(e){t.excelStyles.forEach(function(t){t.id===e&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.mergeDeep(r,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.deepCloneObject(t))})}),r.id=n,r.name=n;var o=e.join("-");this.mixedStyles[o]={excelID:n,key:o,result:r},this.excelStyles.push(r),this.stylesByIds[n]=r},t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BaseGridSerializingSession),__extends$2Q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ExcelXmlSerializingSession=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2Q(t,e),t.prototype.createExcel=function(e){return ExcelXmlFactory.createExcel(this.excelStyles,e)},t.prototype.getDataTypeForValue=function(e){return this.isNumerical(e)?"Number":"String"},t.prototype.getType=function(e,t,n){if(this.isFormula(n))return"Formula";if(t&&t.dataType)switch(t.dataType.toLocaleLowerCase()){case"string":return"Formula";case"number":return"Number";case"datetime":return"DateTime";case"error":return"Error";case"boolean":return"Boolean";default:console.warn("AG Grid: Unrecognized data type for excel export ["+t.id+".dataType="+t.dataType+"]")}return e},t.prototype.addImage=function(){},t.prototype.createCell=function(e,t,n){var r=this.getStyleById(e),o=this.getType(t,r,n)||t;return{styleId:r?e:void 0,data:{type:o,value:this.getValueTransformed(o,n)}}},t.prototype.getValueTransformed=function(e,t){var n,r=this;switch(e){case"String":return function(e){if(r.config.suppressTextAsCDATA)return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(e);var t="<![CDATA[",n="]]>",o=new RegExp(n,"g");return t+String(e).replace(o,"]]"+n+t+">")+n}(t);case"Number":return Number(t).valueOf()+"";case"Boolean":return(n=t)&&"0"!==n&&"false"!==n?"1":"0";default:return t}},t.prototype.createMergedCell=function(e,t,n,r){return{styleId:this.getStyleById(e)?e:void 0,data:{type:t,value:n},mergeAcross:r}},t}(BaseExcelSerializingSession),coreFactory={getTemplate:function(e){var t=(new Date).toJSON();return{name:"cp:coreProperties",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"}}]},children:[{name:"dc:creator",textNode:e},{name:"dc:title",textNode:"Workbook"},{name:"dcterms:created",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:t},{name:"dcterms:modified",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:t}]}}},contentTypeFactory={getTemplate:function(e){var t=e.name,n=e.ContentType;return{name:t,properties:{rawMap:{Extension:e.Extension,PartName:e.PartName,ContentType:n}}}}},__read$16=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$E=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$16(arguments[t]));return e},contentTypesFactory={getTemplate:function(e){var t=new Array(e).fill(void 0).map(function(e,t){return{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",PartName:"/xl/worksheets/sheet"+(t+1)+".xml"}}),n=ExcelXlsxFactory.worksheetImages.size,r={};ExcelXlsxFactory.workbookImageIds.forEach(function(e){r[e.type]=!0});var o=new Array(n).fill(void 0).map(function(e,t){return{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml",PartName:"/xl/drawings/drawing"+(t+1)+".xml"}}),i=Object.keys(r).map(function(e){return{name:"Default",ContentType:"image/"+e,Extension:e}});return{name:"Types",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"}},children:__spread$E(i,[{name:"Default",Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"},{name:"Default",ContentType:"application/xml",Extension:"xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",PartName:"/xl/workbook.xml"}],t,[{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml",PartName:"/xl/theme/theme1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",PartName:"/xl/styles.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",PartName:"/xl/sharedStrings.xml"}],o,[{name:"Override",ContentType:"application/vnd.openxmlformats-package.core-properties+xml",PartName:"/docProps/core.xml"}]).map(function(e){return contentTypeFactory.getTemplate(e)})}}},getAnchor=function(e,t){return{name:"xdr:"+e,children:[{name:"xdr:col",textNode:t.col.toString()},{name:"xdr:colOff",textNode:t.offsetX.toString()},{name:"xdr:row",textNode:t.row.toString()},{name:"xdr:rowOff",textNode:t.offsetY.toString()}]}},getExt=function(e){var t=[{name:"a:ext",properties:{rawMap:{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}},children:[{name:"a16:creationId",properties:{rawMap:{id:"{822E6D20-D7BC-2841-A643-D49A6EF008A2}","xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main"}}}]}];switch(e.recolor&&e.recolor.toLowerCase()){case"grayscale":case"sepia":case"washout":t.push({name:"a:ext",properties:{rawMap:{uri:"{C183D7F6-B498-43B3-948B-1728B52AA6E4}"}},children:[{name:"adec:decorative",properties:{rawMap:{val:"0","xmlns:adec":"http://schemas.microsoft.com/office/drawing/2017/decorative"}}}]})}return{name:"a:extLst",children:t}},getNvPicPr=function(e,t){return{name:"xdr:nvPicPr",children:[{name:"xdr:cNvPr",properties:{rawMap:{id:t,name:e.id,descr:null!=e.altText?e.altText:void 0}},children:[getExt(e)]},{name:"xdr:cNvPicPr",properties:{rawMap:{preferRelativeResize:"0"}},children:[{name:"a:picLocks"}]}]}},getColorDetails=function(e){if(e.saturation||e.tint){var t=[];return e.saturation&&t.push({name:"a:satMod",properties:{rawMap:{val:1e3*e.saturation}}}),e.tint&&t.push({name:"a:tint",properties:{rawMap:{val:1e3*e.tint}}}),t}},getDuoTone=function(e,t){return{name:"a:duotone",children:[{name:"a:prstClr",properties:{rawMap:{val:e.color}},children:getColorDetails(e)},{name:"a:srgbClr",properties:{rawMap:{val:t.color}},children:getColorDetails(t)}]}},getBlipFill=function(e,t){var n;if(e.transparency){var r=Math.min(Math.max(e.transparency,0),100);n=[{name:"a:alphaModFix",properties:{rawMap:{amt:1e5-Math.round(1e3*r)}}}]}if(e.recolor)switch(n||(n=[]),e.recolor.toLocaleLowerCase()){case"grayscale":n.push({name:"a:grayscl"});break;case"sepia":n.push(getDuoTone({color:"black"},{color:"D9C3A5",tint:50,saturation:180}));break;case"washout":n.push({name:"a:lum",properties:{rawMap:{bright:"70000",contrast:"-70000"}}})}return{name:"xdr:blipFill",children:[{name:"a:blip",properties:{rawMap:{cstate:"print","r:embed":"rId"+t,"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}},children:n},{name:"a:stretch",children:[{name:"a:fillRect"}]}]}},getSpPr=function(e,t){var n={name:"a:xfrm",children:[{name:"a:off",properties:{rawMap:{x:0,y:0}}},{name:"a:ext",properties:{rawMap:{cx:t.width,cy:t.height}}}]};if(e.rotation){var r=e.rotation;n.properties={rawMap:{rot:6e4*Math.min(Math.max(r,0),360)}}}return{name:"xdr:spPr",children:[n,{name:"a:prstGeom",properties:{rawMap:{prst:"rect"}},children:[{name:"a:avLst"}]}]}},getImageBoxSize=function(e){e.fitCell=!!e.fitCell||!e.width||!e.height;var t=e.position,n=void 0===t?{}:t,r=e.fitCell,o=e.width,i=void 0===o?0:o,a=e.height,s=void 0===a?0:a,l=e.totalHeight,c=e.totalWidth,u=n.offsetX,d=void 0===u?0:u,p=n.offsetY,h=void 0===p?0:p,f=n.row,g=void 0===f?1:f,m=n.rowSpan,v=void 0===m?1:m,y=n.column,A=void 0===y?1:y,w=n.colSpan,b=void 0===w?1:w;return{from:{row:g-1,col:A-1,offsetX:pixelsToEMU(d),offsetY:pixelsToEMU(h)},to:{row:g-1+(r?1:v-1),col:A-1+(r?1:b-1),offsetX:pixelsToEMU(i+d),offsetY:pixelsToEMU(s+h)},height:pixelsToEMU(l||s),width:pixelsToEMU(c||i)}},getPicture=function(e,t,n,r){return{name:"xdr:pic",children:[getNvPicPr(e,t+1),getBlipFill(e,n+1),getSpPr(e,r)]}},drawingFactory={getTemplate:function(e){var t=e.sheetIndex,n=ExcelXlsxFactory.worksheetImages.get(t),r=ExcelXlsxFactory.worksheetImageIds.get(t);return{name:"xdr:wsDr",properties:{rawMap:{"xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"}},children:n.map(function(e,t){var n=getImageBoxSize(e);return{name:"xdr:twoCellAnchor",properties:{rawMap:{editAs:"absolute"}},children:[getAnchor("from",n.from),getAnchor("to",n.to),getPicture(e,t,r.get(e.id).index,n),{name:"xdr:clientData"}]}})}}},__read$15=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},getColorChildren=function(e){var t=__read$15(e,4);return{name:"a:"+t[0],children:[{name:"a:"+t[1],properties:{rawMap:{val:t[2],lastClr:t[3]}}}]}},colorScheme={getTemplate:function(){return{name:"a:clrScheme",properties:{rawMap:{name:"Office"}},children:[getColorChildren(["dk1","sysClr","windowText","000000"]),getColorChildren(["lt1","sysClr","window","FFFFFF"]),getColorChildren(["dk2","srgbClr","44546A"]),getColorChildren(["lt2","srgbClr","E7E6E6"]),getColorChildren(["accent1","srgbClr","4472C4"]),getColorChildren(["accent2","srgbClr","ED7D31"]),getColorChildren(["accent3","srgbClr","A5A5A5"]),getColorChildren(["accent4","srgbClr","FFC000"]),getColorChildren(["accent5","srgbClr","5B9BD5"]),getColorChildren(["accent6","srgbClr","70AD47"]),getColorChildren(["hlink","srgbClr","0563C1"]),getColorChildren(["folHlink","srgbClr","954F72"])]}}},__read$14=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},getFont$1=function(e){var t=__read$14(e,4),n=t[0],r=t[1];return{name:"a:"+n,properties:{rawMap:{script:t[2],typeface:r,panose:t[3]}}}},fontScheme={getTemplate:function(){var e=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.utf8_encode;return{name:"a:fontScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:majorFont",children:[getFont$1(["latin","Calibri Light",void 0,"020F0302020204030204"]),getFont$1(["ea",""]),getFont$1(["cs",""]),getFont$1(["font",e("游ゴシック Light"),"Jpan"]),getFont$1(["font",e("맑은 고딕"),"Hang"]),getFont$1(["font",e("等线 Light"),"Hans"]),getFont$1(["font",e("新細明體"),"Hant"]),getFont$1(["font","Times New Roman","Arab"]),getFont$1(["font","Times New Roman","Hebr"]),getFont$1(["font","Tahoma","Thai"]),getFont$1(["font","Nyala","Ethi"]),getFont$1(["font","Vrinda","Beng"]),getFont$1(["font","Shruti","Gujr"]),getFont$1(["font","MoolBoran","Khmr"]),getFont$1(["font","Tunga","Knda"]),getFont$1(["font","Raavi","Guru"]),getFont$1(["font","Euphemia","Cans"]),getFont$1(["font","Plantagenet Cherokee","Cher"]),getFont$1(["font","Microsoft Yi Baiti","Yiii"]),getFont$1(["font","Microsoft Himalaya","Tibt"]),getFont$1(["font","MV Boli","Thaa"]),getFont$1(["font","Mangal","Deva"]),getFont$1(["font","Gautami","Telu"]),getFont$1(["font","Latha","Taml"]),getFont$1(["font","Estrangelo Edessa","Syrc"]),getFont$1(["font","Kalinga","Orya"]),getFont$1(["font","Kartika","Mlym"]),getFont$1(["font","DokChampa","Laoo"]),getFont$1(["font","Iskoola Pota","Sinh"]),getFont$1(["font","Mongolian Baiti","Mong"]),getFont$1(["font","Times New Roman","Viet"]),getFont$1(["font","Microsoft Uighur","Uigh"]),getFont$1(["font","Sylfaen","Geor"]),getFont$1(["font","Arial","Armn"]),getFont$1(["font","Leelawadee UI","Bugi"]),getFont$1(["font","Microsoft JhengHei","Bopo"]),getFont$1(["font","Javanese Text","Java"]),getFont$1(["font","Segoe UI","Lisu"]),getFont$1(["font","Myanmar Text","Mymr"]),getFont$1(["font","Ebrima","Nkoo"]),getFont$1(["font","Nirmala UI","Olck"]),getFont$1(["font","Ebrima","Osma"]),getFont$1(["font","Phagspa","Phag"]),getFont$1(["font","Estrangelo Edessa","Syrn"]),getFont$1(["font","Estrangelo Edessa","Syrj"]),getFont$1(["font","Estrangelo Edessa","Syre"]),getFont$1(["font","Nirmala UI","Sora"]),getFont$1(["font","Microsoft Tai Le","Tale"]),getFont$1(["font","Microsoft New Tai Lue","Talu"]),getFont$1(["font","Ebrima","Tfng"])]},{name:"a:minorFont",children:[getFont$1(["latin","Calibri",void 0,"020F0502020204030204"]),getFont$1(["ea",""]),getFont$1(["cs",""]),getFont$1(["font",e("游ゴシック"),"Jpan"]),getFont$1(["font",e("맑은 고딕"),"Hang"]),getFont$1(["font",e("等线"),"Hans"]),getFont$1(["font",e("新細明體"),"Hant"]),getFont$1(["font","Arial","Arab"]),getFont$1(["font","Arial","Hebr"]),getFont$1(["font","Tahoma","Thai"]),getFont$1(["font","Nyala","Ethi"]),getFont$1(["font","Vrinda","Beng"]),getFont$1(["font","Shruti","Gujr"]),getFont$1(["font","DaunPenh","Khmr"]),getFont$1(["font","Tunga","Knda"]),getFont$1(["font","Raavi","Guru"]),getFont$1(["font","Euphemia","Cans"]),getFont$1(["font","Plantagenet Cherokee","Cher"]),getFont$1(["font","Microsoft Yi Baiti","Yiii"]),getFont$1(["font","Microsoft Himalaya","Tibt"]),getFont$1(["font","MV Boli","Thaa"]),getFont$1(["font","Mangal","Deva"]),getFont$1(["font","Gautami","Telu"]),getFont$1(["font","Latha","Taml"]),getFont$1(["font","Estrangelo Edessa","Syrc"]),getFont$1(["font","Kalinga","Orya"]),getFont$1(["font","Kartika","Mlym"]),getFont$1(["font","DokChampa","Laoo"]),getFont$1(["font","Iskoola Pota","Sinh"]),getFont$1(["font","Mongolian Baiti","Mong"]),getFont$1(["font","Arial","Viet"]),getFont$1(["font","Microsoft Uighur","Uigh"]),getFont$1(["font","Sylfaen","Geor"]),getFont$1(["font","Arial","Armn"]),getFont$1(["font","Leelawadee UI","Bugi"]),getFont$1(["font","Microsoft JhengHei","Bopo"]),getFont$1(["font","Javanese Text","Java"]),getFont$1(["font","Segoe UI","Lisu"]),getFont$1(["font","Myanmar Text","Mymr"]),getFont$1(["font","Ebrima","Nkoo"]),getFont$1(["font","Nirmala UI","Olck"]),getFont$1(["font","Ebrima","Osma"]),getFont$1(["font","Phagspa","Phag"]),getFont$1(["font","Estrangelo Edessa","Syrn"]),getFont$1(["font","Estrangelo Edessa","Syrj"]),getFont$1(["font","Estrangelo Edessa","Syre"]),getFont$1(["font","Nirmala UI","Sora"]),getFont$1(["font","Microsoft Tai Le","Tale"]),getFont$1(["font","Microsoft New Tai Lue","Talu"]),getFont$1(["font","Ebrima","Tfng"])]}]}}},__read$13=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},getPropertyVal=function(e,t,n){return{name:"a:"+e,properties:{rawMap:{val:t}},children:n}},getGs=function(e){var t=__read$13(e,6),n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=[];return l.push(getPropertyVal("satMod",o)),i&&l.push(getPropertyVal("lumMod",i)),a&&l.push(getPropertyVal("tint",a)),s&&l.push(getPropertyVal("shade",s)),{name:"a:gs",properties:{rawMap:{pos:n}},children:[{name:"a:schemeClr",properties:{rawMap:{val:r}},children:l}]}},getSolidFill=function(e,t){return{name:"a:solidFill",children:[getPropertyVal("schemeClr",e,t)]}},getGradFill=function(e){var t=__read$13(e,5),n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=__read$13(a,2),l=s[0],c=s[1];return{name:"a:gradFill",properties:{rawMap:{rotWithShape:n}},children:[{name:"a:gsLst",children:[getGs(r),getGs(o),getGs(i)]},{name:"a:lin",properties:{rawMap:{ang:l,scaled:c}}}]}},getLine=function(e){var t=__read$13(e,4);return{name:"a:ln",properties:{rawMap:{w:t[0],cap:t[1],cmpd:t[2],algn:t[3]}},children:[getSolidFill("phClr"),getPropertyVal("prstDash","solid"),{name:"a:miter",properties:{rawMap:{lim:"800000"}}}]}},getEffectStyle=function(e){var t=[];if(e){var n=__read$13(e,5),r=n[0],o=n[1],i=n[2],a=n[3],s=n[4];t.push({name:"a:outerShdw",properties:{rawMap:{blurRad:r,dist:o,dir:i,algn:a,rotWithShape:s}},children:[getPropertyVal("srgbClr","000000",[getPropertyVal("alpha","63000")])]})}return{name:"a:effectStyle",children:[Object.assign({},{name:"a:effectLst"},t.length?{children:t}:{})]}},getFillStyleList=function(){return{name:"a:fillStyleLst",children:[getSolidFill("phClr"),getGradFill(["1",["0","phClr","105000","110000","67000"],["50000","phClr","103000","105000","73000"],["100000","phClr","109000","105000","81000"],["5400000","0"]]),getGradFill(["1",["0","phClr","103000","102000","94000"],["50000","phClr","110000","100000",void 0,"100000"],["100000","phClr","120000","99000",void 0,"78000"],["5400000","0"]])]}},getLineStyleList=function(){return{name:"a:lnStyleLst",children:[getLine(["6350","flat","sng","ctr"]),getLine(["12700","flat","sng","ctr"]),getLine(["19050","flat","sng","ctr"])]}},getEffectStyleList=function(){return{name:"a:effectStyleLst",children:[getEffectStyle(),getEffectStyle(),getEffectStyle(["57150","19050","5400000","ctr","0"])]}},getBgFillStyleList=function(){return{name:"a:bgFillStyleLst",children:[getSolidFill("phClr"),getSolidFill("phClr",[getPropertyVal("tint","95000"),getPropertyVal("satMod","170000")]),getGradFill(["1",["0","phClr","150000","102000","93000","98000"],["50000","phClr","130000","103000","98000","90000"],["100000","phClr","120000",void 0,void 0,"63000"],["5400000","0"]])]}},formatScheme={getTemplate:function(){return{name:"a:fmtScheme",properties:{rawMap:{name:"Office"}},children:[getFillStyleList(),getLineStyleList(),getEffectStyleList(),getBgFillStyleList()]}}},themeElements={getTemplate:function(){return{name:"a:themeElements",children:[colorScheme.getTemplate(),fontScheme.getTemplate(),formatScheme.getTemplate()]}}},officeTheme={getTemplate:function(){return{name:"a:theme",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{a:"http://schemas.openxmlformats.org/drawingml/2006/main"}}],rawMap:{name:"Office Theme"}},children:[themeElements.getTemplate(),{name:"a:objectDefaults"},{name:"a:extraClrSchemeLst"}]}}},buildSharedString=function(e){var t=[];return e.forEach(function(e,n){var r=n.toString(),o={name:"t",textNode:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.utf8_encode(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(r))};r.trim().length!==r.length&&(o.properties={rawMap:{"xml:space":"preserve"}}),t.push({name:"si",children:[o]})}),t},sharedStrings={getTemplate:function(e){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.size,uniqueCount:e.size}},children:buildSharedString(e)}}},numberFormatFactory={getTemplate:function(e){return{name:"numFmt",properties:{rawMap:{formatCode:e.formatCode,numFmtId:e.numFmtId}}}}},numberFormatsFactory={getTemplate:function(e){return{name:"numFmts",properties:{rawMap:{count:e.length}},children:e.map(function(e){return numberFormatFactory.getTemplate(e)})}}},fontFactory={getTemplate:function(e){var t=e.size,n=e.colorTheme,r=e.color,o=void 0===r?"FF000000":r,i=e.fontName,a=void 0===i?"Calibri":i,s=e.family,l=e.scheme,c=e.italic,u=e.bold,d=e.strikeThrough,p=e.outline,h=e.shadow,f=e.underline,g=e.verticalAlign,m=[{name:"sz",properties:{rawMap:{val:t}}},{name:"color",properties:{rawMap:{theme:n,rgb:o}}},{name:"name",properties:{rawMap:{val:a}}}];return s&&m.push({name:"family",properties:{rawMap:{val:s}}}),l&&m.push({name:"scheme",properties:{rawMap:{val:l}}}),c&&m.push({name:"i"}),u&&m.push({name:"b"}),d&&m.push({name:"strike"}),p&&m.push({name:"outline"}),h&&m.push({name:"shadow"}),f&&m.push({name:"u",properties:{rawMap:{val:f}}}),g&&m.push({name:"vertAlign",properties:{rawMap:{val:g}}}),{name:"font",children:m}}},fontsFactory={getTemplate:function(e){return{name:"fonts",properties:{rawMap:{count:e.length}},children:e.map(function(e){return fontFactory.getTemplate(e)})}}},fillFactory={getTemplate:function(e){var t=e.patternType,n=e.fgTheme,r=e.fgTint,o=e.fgRgb,i=e.bgRgb,a=e.bgIndexed,s={name:"patternFill",properties:{rawMap:{patternType:t}}};return(n||r||o)&&(s.children=[{name:"fgColor",properties:{rawMap:{theme:n,tint:r,rgb:o}}}]),(a||i)&&(s.children||(s.children=[]),s.children.push({name:"bgColor",properties:{rawMap:{indexed:a,rgb:i}}})),{name:"fill",children:[s]}}},fillsFactory={getTemplate:function(e){return{name:"fills",properties:{rawMap:{count:e.length}},children:e.map(function(e){return fillFactory.getTemplate(e)})}}},getWeightName=function(e){switch(e){case 1:return"thin";case 2:return"medium";case 3:return"thick";default:return"hair"}},mappedBorderNames={None:"None",Dot:"Dotted",Dash:"Dashed",Double:"Double",DashDot:"DashDot",DashDotDot:"DashDotDot",SlantDashDot:"SlantDashDot"},mediumBorders=["Dashed","DashDot","DashDotDot"],colorMap={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinDiagStripe:"lightUp",ThinHorzCross:"lightGrid",ThinDiagCross:"lightTrellis",Gray125:"gray125",Gray0625:"gray0625"},horizontalAlignmentMap={Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"},verticalAlignmentMap={Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"},convertLegacyPattern=function(e){return e?colorMap[e]||e:"none"},convertLegacyColor=function(e){return null==e?e:("#"===e.charAt(0)&&(e=e.substr(1)),6===e.length?"FF"+e:e)},convertLegacyBorder=function(e,t){if(!e)return"thin";var n=getWeightName(t),r=mappedBorderNames[e];return"Continuous"===e?n:"medium"===n&&-1!==mediumBorders.indexOf(r)?"medium"+r:r.charAt(0).toLowerCase()+r.substr(1)},convertLegacyHorizontalAlignment=function(e){return horizontalAlignmentMap[e]||"general"},convertLegacyVerticalAlignment=function(e){return verticalAlignmentMap[e]||void 0},getBorderColor=function(e){return{name:"color",properties:{rawMap:{rgb:convertLegacyColor(e||"#000000")}}}},borderFactory$1={getTemplate:function(e){var t=e.left,n=e.right,r=e.top,o=e.bottom,i=e.diagonal,a=t?[getBorderColor(t.color)]:void 0,s=n?[getBorderColor(n.color)]:void 0,l=r?[getBorderColor(r.color)]:void 0,c=o?[getBorderColor(o.color)]:void 0,u=i?[getBorderColor(i.color)]:void 0;return{name:"border",children:[{name:"left",properties:{rawMap:{style:t&&t.style}},children:a},{name:"right",properties:{rawMap:{style:n&&n.style}},children:s},{name:"top",properties:{rawMap:{style:r&&r.style}},children:l},{name:"bottom",properties:{rawMap:{style:o&&o.style}},children:c},{name:"diagonal",properties:{rawMap:{style:i&&i.style}},children:u}]}}},bordersFactory={getTemplate:function(e){return{name:"borders",properties:{rawMap:{count:e.length}},children:e.map(function(e){return borderFactory$1.getTemplate(e)})}}},getReadingOrderId=function(e){var t=["Context","LeftToRight","RightToLeft"].indexOf(e);return Math.max(t,0)},alignmentFactory={getTemplate:function(e){var t=e.horizontal,n=e.indent,r=e.readingOrder,o=e.rotate,i=e.shrinkToFit,a=e.vertical,s=e.wrapText;return{name:"alignment",properties:{rawMap:{horizontal:t&&convertLegacyHorizontalAlignment(t),indent:n,readingOrder:r&&getReadingOrderId(r),textRotation:o,shrinkToFit:i,vertical:a&&convertLegacyVerticalAlignment(a),wrapText:s}}}}},protectionFactory={getTemplate:function(e){var t=!1===e.protected?0:1;return{name:"protection",properties:{rawMap:{hidden:!0===e.hideFormula?1:0,locked:t}}}}},xfFactory={getTemplate:function(e){var t=e.alignment,n=e.borderId,r=e.fillId,o=e.fontId,i=e.numFmtId,a=e.protection,s=e.xfId,l=[];return t&&l.push(alignmentFactory.getTemplate(t)),a&&l.push(protectionFactory.getTemplate(a)),{name:"xf",properties:{rawMap:{applyAlignment:t?1:void 0,applyProtection:a?1:void 0,applyBorder:n?1:void 0,applyFill:r?1:void 0,borderId:n,fillId:r,applyFont:o?1:void 0,fontId:o,applyNumberFormat:i?1:void 0,numFmtId:i,xfId:s}},children:l.length?l:void 0}}},cellStylesXfsFactory={getTemplate:function(e){return{name:"cellStyleXfs",properties:{rawMap:{count:e.length}},children:e.map(function(e){return xfFactory.getTemplate(e)})}}},cellXfsFactory={getTemplate:function(e){return{name:"cellXfs",properties:{rawMap:{count:e.length}},children:e.map(function(e){return xfFactory.getTemplate(e)})}}},borderFactory={getTemplate:function(e){return{name:"cellStyle",properties:{rawMap:{builtinId:e.builtinId,name:e.name,xfId:e.xfId}}}}},cellStylesFactory={getTemplate:function(e){return{name:"cellStyles",properties:{rawMap:{count:e.length}},children:e.map(function(e){return borderFactory.getTemplate(e)})}}},__assign$L=function(){return __assign$L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$L.apply(this,arguments)},stylesMap,registeredNumberFmts,registeredFonts,registeredFills,registeredBorders,registeredCellStyleXfs,registeredCellXfs,registeredCellStyles,currentSheet,getStyleName=function(e,t){return-1!==e.indexOf("mixedStyle")&&t>1&&(e+="_"+t),e},resetStylesheetValues=function(){stylesMap={base:0},registeredNumberFmts=[],registeredFonts=[{fontName:"Calibri",colorTheme:"1",family:"2",scheme:"minor"}],registeredFills=[{patternType:"none"},{patternType:"gray125"}],registeredBorders=[{left:void 0,right:void 0,top:void 0,bottom:void 0,diagonal:void 0}],registeredCellStyleXfs=[{borderId:0,fillId:0,fontId:0,numFmtId:0}],registeredCellXfs=[{borderId:0,fillId:0,fontId:0,numFmtId:0,xfId:0}],registeredCellStyles=[{builtinId:0,name:"Normal",xfId:0}]},registerFill=function(e){var t=convertLegacyPattern(e.pattern),n=convertLegacyColor(e.color),r=convertLegacyColor(e.patternColor),o=registeredFills.findIndex(function(e){var o=e.patternType,i=e.fgRgb,a=e.bgRgb;return o==t&&i==n&&a==r});return-1===o&&(o=registeredFills.length,registeredFills.push({patternType:t,fgRgb:n,bgRgb:r})),o},registerNumberFmt=function(e){if(e=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.utf8_encode(e),numberFormatMap[e])return numberFormatMap[e];var t=registeredNumberFmts.findIndex(function(t){return t.formatCode===e});return-1===t?(t=registeredNumberFmts.length+164,registeredNumberFmts.push({formatCode:e,numFmtId:t})):t=registeredNumberFmts[t].numFmtId,t},registerBorders=function(e){var t,n,r,o,i,a,s,l,c=e.borderBottom,u=e.borderTop,d=e.borderLeft,p=e.borderRight;d&&(r=convertLegacyBorder(d.lineStyle,d.weight),s=convertLegacyColor(d.color)),p&&(o=convertLegacyBorder(p.lineStyle,p.weight),l=convertLegacyColor(p.color)),c&&(t=convertLegacyBorder(c.lineStyle,c.weight),i=convertLegacyColor(c.color)),u&&(n=convertLegacyBorder(u.lineStyle,u.weight),a=convertLegacyColor(u.color));var h=registeredBorders.findIndex(function(e){var c=e.left,u=e.right,d=e.top,p=e.bottom;if(!c&&(r||s))return!1;if(!u&&(o||l))return!1;if(!d&&(n||a))return!1;if(!p&&(t||i))return!1;var h=c||{},f=h.style,g=h.color,m=u||{},v=m.style,y=m.color,A=d||{},w=A.style,b=A.color,_=p||{},C=_.style,E=_.color;return f==r&&g==s&&v==o&&y==l&&w==n&&b==a&&C==t&&E==i});return-1===h&&(h=registeredBorders.length,registeredBorders.push({left:{style:r,color:s},right:{style:o,color:l},top:{style:n,color:a},bottom:{style:t,color:i},diagonal:{style:void 0,color:void 0}})),h},registerFont=function(e){var t=e.fontName,n=void 0===t?"Calibri":t,r=e.color,o=e.size,i=e.bold,a=e.italic,s=e.outline,l=e.shadow,c=e.strikeThrough,u=e.underline,d=e.family,p=e.verticalAlign,h=n?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.utf8_encode(n):n,f=convertLegacyColor(r),g=getFontFamilyId(d),m=u?u.toLocaleLowerCase():void 0,v=p?p.toLocaleLowerCase():void 0,y=registeredFonts.findIndex(function(e){return e.fontName==h&&e.color==f&&e.size==o&&e.bold==i&&e.italic==a&&e.outline==s&&e.shadow==l&&e.strikeThrough==c&&e.underline==m&&e.verticalAlign==v&&e.family==g});return-1===y&&(y=registeredFonts.length,registeredFonts.push({fontName:h,color:f,size:o,bold:i,italic:a,outline:s,shadow:l,strikeThrough:c,underline:m,verticalAlign:v,family:null!=g?g.toString():void 0})),y},registerStyle=function(e){var t=e.alignment,n=e.borders,r=e.font,o=e.interior,i=e.numberFormat,a=e.protection,s=e.id,l=0,c=0,u=0,d=0;s&&(s=getStyleName(s,currentSheet),null==stylesMap[s]&&(o&&(l=registerFill(o)),n&&(c=registerBorders(n)),r&&(u=registerFont(r)),i&&(d=registerNumberFmt(i.format)),stylesMap[s]=registeredCellXfs.length,registeredCellXfs.push({alignment:t,borderId:c||0,fillId:l||0,fontId:u||0,numFmtId:d||0,protection:a,xfId:0})))},stylesheetFactory={getTemplate:function(e){var t=numberFormatsFactory.getTemplate(registeredNumberFmts),n=fontsFactory.getTemplate(registeredFonts.map(function(t){return __assign$L(__assign$L({},t),{size:null!=t.size?t.size:e})})),r=fillsFactory.getTemplate(registeredFills),o=bordersFactory.getTemplate(registeredBorders),i=cellStylesXfsFactory.getTemplate(registeredCellStyleXfs),a=cellXfsFactory.getTemplate(registeredCellXfs),s=cellStylesFactory.getTemplate(registeredCellStyles);return resetStylesheetValues(),{name:"styleSheet",properties:{rawMap:{"mc:Ignorable":"x14ac x16r2 xr",xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision"}},children:[t,n,r,o,i,a,s,{name:"tableStyles",properties:{rawMap:{count:0,defaultPivotStyle:"PivotStyleLight16",defaultTableStyle:"TableStyleMedium2"}}}]}}},getStyleId=function(e,t){return stylesMap[getStyleName(e,t)]||0},registerStyles=function(e,t){1===(currentSheet=t)&&resetStylesheetValues(),e.forEach(registerStyle)},sheetFactory={getTemplate:function(e,t){var n=(t+1).toString();return{name:"sheet",properties:{rawMap:{name:e,sheetId:n,"r:id":"rId"+n}}}}},sheetsFactory={getTemplate:function(e){return{name:"sheets",children:e.map(function(e,t){return sheetFactory.getTemplate(e,t)})}}},workbookFactory={getTemplate:function(e){return{name:"workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[sheetsFactory.getTemplate(e)]}}},getExcelCellWidth=function(e){return Math.ceil((e-12)/7+1)},columnFactory={getTemplate:function(e){var t=e.min,n=e.max,r=e.outlineLevel,o=e.s,i=e.width,a=e.hidden,s=e.bestFit,l=1,c="0";return i>1&&(l=getExcelCellWidth(i),c="1"),{name:"col",properties:{rawMap:{min:t,max:n,outlineLevel:null!=r?r:void 0,width:l,style:o,hidden:a?"1":"0",bestFit:s?"1":"0",customWidth:c}}}}},convertLegacyType=function(e){var t=e.charAt(0).toLowerCase();return"s"===t?"inlineStr":t},cellFactory={getTemplate:function(e,t,n){var r=e.ref,o=e.data,i=e.styleId,a=o||{type:"empty",value:null},s=a.type,l=a.value,c=s;"f"===s?c="str":s.charAt(0)===s.charAt(0).toUpperCase()&&(c=convertLegacyType(s));var u,d={name:"c",properties:{rawMap:{r,t:"empty"===c?void 0:c,s:i?getStyleId(i,n):void 0}}};return"empty"===c?d:(u="str"===c&&"f"===s?[{name:"f",textNode:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.utf8_encode(l))}]:"inlineStr"===c?[{name:"is",children:[{name:"t",textNode:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.utf8_encode(l))}]}]:[{name:"v",textNode:l}],Object.assign({},d,{children:u}))}},__read$12=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$D=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$12(arguments[t]));return e},addEmptyCells=function(e,t){for(var n=[],r=0,o=0;o<e.length;o++)(a=e[o]).mergeAcross&&(n.push({pos:o,excelPos:r}),r+=a.mergeAcross),r++;if(n.length)for(o=n.length-1;o>=0;o--){for(var i=[],a=e[n[o].pos],s=1;s<=a.mergeAcross;s++)i.push({ref:""+getExcelColumnName(n[o].excelPos+1+s)+(t+1),styleId:a.styleId,data:{type:"empty",value:null}});i.length&&e.splice.apply(e,__spread$D([n[o].pos+1,0],i))}},shouldDisplayCell=function(e){var t;return""!==(null===(t=e.data)||void 0===t?void 0:t.value)||void 0!==e.styleId},rowFactory={getTemplate:function(e,t,n){var r=e.collapsed,o=e.hidden,i=e.height,a=e.outlineLevel,s=e.cells,l=void 0===s?[]:s;addEmptyCells(l,t);var c=l.filter(shouldDisplayCell).map(function(e,t){return cellFactory.getTemplate(e,t,n)});return{name:"row",properties:{rawMap:{r:t+1,collapsed:r,hidden:o?"1":"0",ht:i,customHeight:null!=i?"1":"0",spans:"1:1",outlineLevel:a||void 0}},children:c}}},mergeCellFactory={getTemplate:function(e){return{name:"mergeCell",properties:{rawMap:{ref:e}}}}},getMergedCellsAndAddColumnGroups=function(e,t){var n=[],r=[];e.forEach(function(e,o){var i,a=e.cells,s=0;a.forEach(function(e,a){var l=a+s+1,c=getExcelColumnName(l),u=o+1;if(e.mergeAcross){s+=e.mergeAcross;var d=getExcelColumnName(a+s+1);n.push(""+c+u+":"+d+u)}t[l-1]||(t[l-1]={});var p=e.collapsibleRanges;p&&p.forEach(function(e){r.push([l+e[0],l+e[1]])}),(i=t[l-1]).min=l,i.max=l,e.ref=""+c+u})}),r.sort(function(e,t){return e[0]!==t[0]?e[0]-t[0]:t[1]-e[1]});var o=new Map,i=new Map;return r.filter(function(e){var t=e.toString();return!o.get(t)&&(o.set(t,!0),!0)}).forEach(function(e){var n=t.find(function(t){return t.min==e[0]&&t.max==e[1]}),r=i.get(e[0]);t.push({min:e[0],max:e[1],outlineLevel:r||1,width:(n||{width:100}).width}),i.set(e[0],(r||0)+1)}),n},getPageOrientation=function(e){return!e||"Portrait"!==e&&"Landscape"!==e?"portrait":e.toLocaleLowerCase()},getPageSize=function(e){if(null==e)return 1;var t=["Letter","Letter Small","Tabloid","Ledger","Legal","Statement","Executive","A3","A4","A4 Small","A5","A6","B4","B5","Folio","Envelope","Envelope DL","Envelope C5","Envelope B5","Envelope C3","Envelope C4","Envelope C6","Envelope Monarch","Japanese Postcard","Japanese Double Postcard"].indexOf(e);return-1===t?1:t+1},addColumns=function(e){return function(t){return e.length&&t.push({name:"cols",children:e.map(function(e){return columnFactory.getTemplate(e)})}),t}},addSheetData=function(e,t){return function(n){return e.length&&n.push({name:"sheetData",children:e.map(function(e,n){return rowFactory.getTemplate(e,n,t)})}),n}},addMergeCells=function(e){return function(t){return e.length&&t.push({name:"mergeCells",properties:{rawMap:{count:e.length}},children:e.map(function(e){return mergeCellFactory.getTemplate(e)})}),t}},addPageMargins=function(e){return function(t){var n=e.top,r=void 0===n?.75:n,o=e.right,i=void 0===o?.7:o,a=e.bottom,s=void 0===a?.75:a,l=e.left,c=void 0===l?.7:l,u=e.header,d=void 0===u?.3:u,p=e.footer,h=void 0===p?.3:p;return t.push({name:"pageMargins",properties:{rawMap:{bottom:s,footer:h,header:d,left:c,right:i,top:r}}}),t}},addPageSetup=function(e){return function(t){return e&&t.push({name:"pageSetup",properties:{rawMap:{horizontalDpi:0,verticalDpi:0,orientation:getPageOrientation(e.orientation),paperSize:getPageSize(e.pageSize)}}}),t}},replaceHeaderFooterTokens=function(e){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.iterateObject({"&[Page]":"&P","&[Pages]":"&N","&[Date]":"&D","&[Time]":"&T","&[Tab]":"&A","&[Path]":"&Z","&[File]":"&F"},function(t,n){e=e.replace(t,n)}),e},getHeaderPosition=function(e){return"Center"===e?"C":"Right"===e?"R":"L"},applyHeaderFontStyle=function(e,t){return t?(e+="&amp;&quot;",e+=t.fontName||"Calibri",t.bold!==t.italic?e+=t.bold?",Bold":",Italic":t.bold?e+=",Bold Italic":e+=",Regular",e+="&quot;",t.size&&(e+="&amp;"+t.size),t.strikeThrough&&(e+="&amp;S"),t.underline&&(e+="&amp;"+("Double"===t.underline?"E":"U")),t.color&&(e+="&amp;K"+t.color.replace("#","").toUpperCase()),e):e},processHeaderFooterContent=function(e){return e.reduce(function(e,t){var n=getHeaderPosition(t.position);return""+applyHeaderFontStyle(e+"&amp;"+n,t.font)+ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(replaceHeaderFooterTokens(t.value))},"")},buildHeaderFooter=function(e){var t=[];return["all","first","even"].forEach(function(n){var r=e[n],o="all"===n?"odd":n;r&&(r.header||r.footer)&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.iterateObject(r,function(e,n){var r=""+e.charAt(0).toUpperCase()+e.slice(1);n&&t.push({name:""+o+r,properties:{rawMap:{"xml:space":"preserve"}},textNode:processHeaderFooterContent(n)})})}),t},addHeaderFooter=function(e){return function(t){if(!e)return t;var n=null!=e.first?1:0,r=null!=e.even?1:0;return t.push({name:"headerFooter",properties:{rawMap:{differentFirst:n,differentOddEven:r}},children:buildHeaderFooter(e)}),t}},addDrawingRel=function(e){return function(t){return ExcelXlsxFactory.worksheetImages.get(e)&&t.push({name:"drawing",properties:{rawMap:{"r:id":"rId1"}}}),t}},addSheetPr=function(){return function(e){return e.push({name:"sheetPr",children:[{name:"outlinePr",properties:{rawMap:{summaryBelow:0}}}]}),e}},addSheetFormatPr=function(e){return function(t){var n=e.reduce(function(e,t){return t.outlineLevel&&t.outlineLevel>e?t.outlineLevel:e},0);return t.push({name:"sheetFormatPr",properties:{rawMap:{baseColWidth:10,defaultRowHeight:16,outlineLevelRow:n||void 0}}}),t}},worksheetFactory={getTemplate:function(e){var t=e.worksheet,n=e.currentSheet,r=e.margins,o=void 0===r?{}:r,i=e.pageSetup,a=e.headerFooterConfig,s=t.table,l=s.rows,c=s.columns,u=c&&c.length?getMergedCellsAndAddColumnGroups(l,c):[];return{name:"worksheet",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.compose(addSheetPr(),addSheetFormatPr(l),addColumns(c),addSheetData(l,n+1),addMergeCells(u),addPageMargins(o),addPageSetup(i),addHeaderFooter(a),addDrawingRel(n))([])}}},relationshipFactory={getTemplate:function(e){return{name:"Relationship",properties:{rawMap:{Id:e.Id,Type:e.Type,Target:e.Target}}}}},relationshipsFactory={getTemplate:function(e){return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:e.map(function(e){return relationshipFactory.getTemplate(e)})}}},__read$11=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$C=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$11(arguments[t]));return e},ExcelXlsxFactory=function(){function e(){}return e.createExcel=function(e,t,n,r,o){return this.addSheetName(t),registerStyles(e,this.sheetNames.length),this.createWorksheet(t,n,r,o)},e.buildImageMap=function(e,t,n,r,o){var i=this.sheetNames.length,a=this.images.get(e.id);e.position&&e.position.row&&e.position.column||(e.position||(e.position={}),e.position=Object.assign({},e.position,{row:t,column:r.indexOf(n)+1}));var s=e;if(setExcelImageTotalWidth(s,r),setExcelImageTotalHeight(s,o),a){var l=a.find(function(e){return e.sheetId===i});l?l.image.push(s):a.push({sheetId:i,image:[s]})}else this.images.set(s.id,[{sheetId:i,image:[s]}]),this.workbookImageIds.set(s.id,{type:s.imageType,index:this.workbookImageIds.size});this.buildSheetImageMap(i,s)},e.buildSheetImageMap=function(e,t){var n=this.worksheetImageIds.get(e);n||(n=new Map,this.worksheetImageIds.set(e,n));var r=this.worksheetImages.get(e);r?(r.push(t),n.get(t.id)||n.set(t.id,{index:n.size,type:t.imageType})):(this.worksheetImages.set(e,[t]),n.set(t.id,{index:0,type:t.imageType}))},e.addSheetName=function(e){for(var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(e.name)||"",n="";-1!==this.sheetNames.indexOf(""+t+n);)if(""===n)n="_1";else{var r=parseInt(n.slice(1),10);n="_"+(r+1)}e.name=""+t+n,this.sheetNames.push(e.name)},e.getStringPosition=function(e){return this.sharedStrings.has(e)?this.sharedStrings.get(e):(this.sharedStrings.set(e,this.sharedStrings.size),this.sharedStrings.size-1)},e.resetFactory=function(){this.sharedStrings=new Map,this.images=new Map,this.worksheetImages=new Map,this.workbookImageIds=new Map,this.worksheetImageIds=new Map,this.sheetNames=[],this.factoryMode=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ExcelFactoryMode.SINGLE_SHEET},e.createWorkbook=function(){return createXmlPart(workbookFactory.getTemplate(this.sheetNames))},e.createStylesheet=function(e){return createXmlPart(stylesheetFactory.getTemplate(e))},e.createSharedStrings=function(){return createXmlPart(sharedStrings.getTemplate(this.sharedStrings))},e.createCore=function(e){return createXmlPart(coreFactory.getTemplate(e))},e.createContentTypes=function(e){return createXmlPart(contentTypesFactory.getTemplate(e))},e.createRels=function(){var e=relationshipsFactory.getTemplate([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Target:"xl/workbook.xml"},{Id:"rId2",Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"}]);return createXmlPart(e)},e.createTheme=function(){return createXmlPart(officeTheme.getTemplate())},e.createWorkbookRels=function(e){var t=new Array(e).fill(void 0).map(function(e,t){return{Id:"rId"+(t+1),Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Target:"worksheets/sheet"+(t+1)+".xml"}}),n=relationshipsFactory.getTemplate(__spread$C(t,[{Id:"rId"+(e+1),Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Target:"theme/theme1.xml"},{Id:"rId"+(e+2),Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Target:"styles.xml"},{Id:"rId"+(e+3),Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Target:"sharedStrings.xml"}]));return createXmlPart(n)},e.createDrawing=function(e){return createXmlPart(drawingFactory.getTemplate({sheetIndex:e}))},e.createDrawingRel=function(e){var t=this,n=this.worksheetImageIds.get(e),r=[];return n.forEach(function(e,n){r.push({Id:"rId"+(e.index+1),Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:"../media/image"+(t.workbookImageIds.get(n).index+1)+"."+e.type})}),createXmlPart(relationshipsFactory.getTemplate(r))},e.createWorksheetDrawingRel=function(e){var t=relationshipsFactory.getTemplate([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:"../drawings/drawing"+(e+1)+".xml"}]);return createXmlPart(t)},e.createWorksheet=function(e,t,n,r){return createXmlPart(worksheetFactory.getTemplate({worksheet:e,currentSheet:this.sheetNames.length-1,margins:t,pageSetup:n,headerFooterConfig:r}))},e.sharedStrings=new Map,e.sheetNames=[],e.images=new Map,e.worksheetImages=new Map,e.workbookImageIds=new Map,e.worksheetImageIds=new Map,e.factoryMode=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ExcelFactoryMode.SINGLE_SHEET,e}(),__extends$2P=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ExcelXlsxSerializingSession=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2P(t,e),t.prototype.createExcel=function(e){var t=this.excelStyles,n=this.config,r=n.margins,o=n.pageSetup,i=n.headerFooterConfig;return ExcelXlsxFactory.createExcel(t,e,r,o,i)},t.prototype.getDataTypeForValue=function(e){return void 0===e?"empty":this.isNumerical(e)?"n":"s"},t.prototype.getType=function(e,t,n){if(this.isFormula(n))return"f";if(t&&t.dataType)switch(t.dataType.toLocaleLowerCase()){case"formula":return"f";case"string":return"s";case"number":return"n";case"datetime":return"d";case"error":return"e";case"boolean":return"b";default:console.warn("AG Grid: Unrecognized data type for excel export ["+t.id+".dataType="+t.dataType+"]")}return e},t.prototype.addImage=function(e,t,n){if(this.config.addImageToCell){var r=this.config.addImageToCell(e,t,n);if(r)return ExcelXlsxFactory.buildImageMap(r.image,e,t,this.columnsToExport,this.config.rowHeight),r}},t.prototype.createCell=function(e,t,n){var r=this.getStyleById(e),o=this.getType(t,r,n)||t;return{styleId:r?e:void 0,data:{type:o,value:this.getCellValue(o,n)}}},t.prototype.createMergedCell=function(e,t,n,r){var o=null==n?"":n;return{styleId:this.getStyleById(e)?e:void 0,data:{type:t,value:"s"===t?ExcelXlsxFactory.getStringPosition(o).toString():n},mergeAcross:r}},t.prototype.getCellValue=function(e,t){if(null==t)return ExcelXlsxFactory.getStringPosition("").toString();switch(e){case"s":return""===t?"":ExcelXlsxFactory.getStringPosition(t).toString();case"f":return t.slice(1);case"n":return Number(t).toString();default:return t}},t}(BaseExcelSerializingSession),__extends$2O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$K=function(){return __assign$K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$K.apply(this,arguments)},__decorate$1$=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},getMultipleSheetsAsExcel=function(e){var t=e.data,n=e.fontSize,r=void 0===n?11:n,o=e.author,i=void 0===o?"AG Grid":o,a=ExcelXlsxFactory.images.size>0;if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFolders(["_rels/","docProps/","xl/","xl/theme/","xl/_rels/","xl/worksheets/"]),a){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFolders(["xl/worksheets/_rels","xl/drawings/","xl/drawings/_rels","xl/media/"]);var s=0;ExcelXlsxFactory.images.forEach(function(e){var t=e[0].image[0],n=t.imageType;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile("xl/media/image"+ ++s+"."+n,t.base64,!0)})}if(!t||0===t.length)return console.warn("AG Grid: Invalid params supplied to getMultipleSheetsAsExcel() - `ExcelExportParams.data` is empty."),void ExcelXlsxFactory.resetFactory();var l=t.length,c=0;t.forEach(function(e,t){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile("xl/worksheets/sheet"+(t+1)+".xml",e),a&&ExcelXlsxFactory.worksheetImages.get(t)&&createImageRelationsForSheet(t,c++)}),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile("xl/workbook.xml",ExcelXlsxFactory.createWorkbook()),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile("xl/styles.xml",ExcelXlsxFactory.createStylesheet(r)),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile("xl/sharedStrings.xml",ExcelXlsxFactory.createSharedStrings()),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile("xl/theme/theme1.xml",ExcelXlsxFactory.createTheme()),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile("xl/_rels/workbook.xml.rels",ExcelXlsxFactory.createWorkbookRels(l)),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile("docProps/core.xml",ExcelXlsxFactory.createCore(i)),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile("[Content_Types].xml",ExcelXlsxFactory.createContentTypes(l)),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile("_rels/.rels",ExcelXlsxFactory.createRels()),ExcelXlsxFactory.resetFactory();var u=e.mimeType||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.getContent(u)},exportMultipleSheetsAsExcel=function(e){var t=e.fileName,n=void 0===t?"export.xlsx":t,r=getMultipleSheetsAsExcel(e);r&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Downloader.download(n,r)},createImageRelationsForSheet=function(e,t){var n="xl/drawings",r=n+"/drawing"+(t+1)+".xml",o=n+"/_rels/drawing"+(t+1)+".xml.rels",i="xl/worksheets/_rels/sheet"+(e+1)+".xml.rels";ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile(o,ExcelXlsxFactory.createDrawingRel(e)),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile(r,ExcelXlsxFactory.createDrawing(e)),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ZipContainer.addFile(i,ExcelXlsxFactory.createWorksheetDrawingRel(t))},ExcelCreator=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.exportMode="xlsx",t}return __extends$2O(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsService.get("defaultExcelExportParams");return Object.assign({},t,e)},t.prototype.getData=function(t){return this.setExportMode(t.exportMode||"xlsx"),e.prototype.getData.call(this,t)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParams(e),n=this.getData(t),r={data:[n],fontSize:t.fontSize,author:t.author,mimeType:t.mimeType},o=this.packageFile(r);return o&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Downloader.download(this.getFileName(t.fileName),o),n},t.prototype.exportDataAsExcel=function(e){return this.export(e)},t.prototype.getDataAsExcel=function(e){var t=this.getMergedParams(e),n=this.getData(t);if(e&&"xml"===e.exportMode)return n;var r={data:[n],fontSize:t.fontSize,author:t.author,mimeType:t.mimeType};return this.packageFile(r)},t.prototype.setFactoryMode=function(e,t){void 0===t&&(t="xlsx"),("xlsx"===t?ExcelXlsxFactory:ExcelXmlFactory).factoryMode=e},t.prototype.getFactoryMode=function(e){return("xlsx"===e?ExcelXlsxFactory:ExcelXmlFactory).factoryMode},t.prototype.getSheetDataForExcel=function(e){var t=this.getMergedParams(e);return this.getData(t)},t.prototype.getMultipleSheetsAsExcel=function(e){return getMultipleSheetsAsExcel(e)},t.prototype.exportMultipleSheetsAsExcel=function(e){return exportMultipleSheetsAsExcel(e)},t.prototype.getDefaultFileName=function(){return"export."+this.getExportMode()},t.prototype.getDefaultFileExtension=function(){return this.getExportMode()},t.prototype.createSerializingSession=function(e){var t=this,n=t.columnModel,r=t.valueService,o=t.gridOptionsService,i="xlsx"===this.getExportMode(),a="ag-grid";null!=e.sheetName&&(a=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.utf8_encode(e.sheetName.toString().substr(0,31)));var s=__assign$K(__assign$K({},e),{sheetName:a,columnModel:n,valueService:r,gridOptionsService:o,headerRowHeight:e.headerRowHeight||e.rowHeight,baseExcelStyles:this.gridOptionsService.get("excelStyles")||[],styleLinker:this.styleLinker.bind(this)});return new(i?ExcelXlsxSerializingSession:ExcelXmlSerializingSession)(s)},t.prototype.styleLinker=function(e){var t=e.rowType,n=e.rowIndex,r=e.value,o=e.column,i=e.columnGroup,a=e.node,s=t===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowType.HEADER,l=t===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowType.HEADER_GROUPING,c=s?o:i,u=[];if(s||l)return u.push("header"),l&&u.push("headerGroup"),c&&(u=u.concat(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CssClassApplier.getHeaderClassesFromColDef(c.getDefinition(),this.gridOptionsService,o||null,i||null))),u;var d=this.gridOptionsService.get("excelStyles"),p=["cell"];if(!d||!d.length)return p;var h=d.map(function(e){return e.id});return this.stylingService.processAllCellClasses(o.getDefinition(),{value:r,data:a.data,node:a,colDef:o.getDefinition(),column:o,rowIndex:n,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context},function(e){h.indexOf(e)>-1&&p.push(e)}),p.sort(function(e,t){return h.indexOf(e)<h.indexOf(t)?-1:1})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.is("suppressExcelExport")},t.prototype.setExportMode=function(e){this.exportMode=e},t.prototype.getExportMode=function(){return this.exportMode},t.prototype.packageFile=function(e){if("xml"===this.getExportMode()){var t=e.mimeType||"application/vnd.ms-excel";return new Blob(["\ufeff",e.data[0]],{type:t})}return getMultipleSheetsAsExcel(e)},__decorate$1$([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$1$([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueService")],t.prototype,"valueService",void 0),__decorate$1$([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("stylingService")],t.prototype,"stylingService",void 0),__decorate$1$([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridSerializer")],t.prototype,"gridSerializer",void 0),__decorate$1$([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridOptionsService")],t.prototype,"gridOptionsService",void 0),__decorate$1$([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),__decorate$1$([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("excelCreator")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BaseCreator),VERSION$d="29.3.3",ExcelExportModule={version:VERSION$d,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ExcelExportModule,beans:[ExcelCreator,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GridSerializer,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CsvCreator],dependantModules:[ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CsvExportModule,EnterpriseCoreModule]},__extends$2N=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1_=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},EXPAND_STATE;!function(e){e[e.EXPANDED=0]="EXPANDED",e[e.COLLAPSED=1]="COLLAPSED",e[e.INDETERMINATE=2]="INDETERMINATE"}(EXPAND_STATE||(EXPAND_STATE={}));var FiltersToolPanelHeaderPanel=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2N(t,e),t.prototype.preConstruct=function(){this.setTemplate('<div class="ag-filter-toolpanel-search" role="presentation">\n                <div ref="eExpand" class="ag-filter-toolpanel-expand"></div>\n                <ag-input-text-field ref="eFilterTextField" class="ag-filter-toolpanel-search-input"></ag-input-text-field>\n            </div>')},t.prototype.postConstruct=function(){var e=this.localeService.getLocaleTextFunc();this.eFilterTextField.onValueChange(this.onSearchTextChanged.bind(this)),this.eFilterTextField.setInputAriaLabel(e("ariaFilterColumnsInput","Filter Columns Input")),this.createExpandIcons(),this.setExpandState(EXPAND_STATE.EXPANDED),this.addManagedListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this))},t.prototype.init=function(e){this.params=e,this.columnModel.isReady()&&this.showOrHideOptions()},t.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columnSelectOpen",this.gridOptionsService)),this.eExpand.appendChild(this.eExpandUnchecked=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columnSelectClosed",this.gridOptionsService)),this.eExpand.appendChild(this.eExpandIndeterminate=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsService))},t.prototype.showOrHideOptions=function(){var e=!this.params.suppressFilterSearch,t=!this.params.suppressExpandAll,n=this.localeService.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(n("searchOoo","Search..."));var r=this.columnModel.getAllGridColumns().some(function(e){return e.getOriginalParent()&&e.isFilterAllowed()});ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eFilterTextField.getGui(),e),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpand,t&&r)},t.prototype.onSearchTextChanged=function(){var e=this;this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.debounce(function(){e.dispatchEvent({type:"searchChanged",searchText:e.eFilterTextField.getValue()})},300)),this.onSearchTextChangedDebounced()},t.prototype.onExpandClicked=function(){var e=this.currentExpandState===EXPAND_STATE.EXPANDED?{type:"collapseAll"}:{type:"expandAll"};this.dispatchEvent(e)},t.prototype.setExpandState=function(e){this.currentExpandState=e,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpandChecked,this.currentExpandState===EXPAND_STATE.EXPANDED),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpandUnchecked,this.currentExpandState===EXPAND_STATE.COLLAPSED),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpandIndeterminate,this.currentExpandState===EXPAND_STATE.INDETERMINATE)},__decorate$1_([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$1_([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eExpand")],t.prototype,"eExpand",void 0),__decorate$1_([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eFilterTextField")],t.prototype,"eFilterTextField",void 0),__decorate$1_([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreConstruct],t.prototype,"preConstruct",null),__decorate$1_([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$2M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1Z=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ToolPanelFilterComp=function(e){function t(n){void 0===n&&(n=!1);var r=e.call(this,t.TEMPLATE)||this;return r.expanded=!1,r.hideHeader=n,r}return __extends$2M(t,e),t.prototype.postConstruct=function(){this.eExpandChecked=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columnSelectOpen",this.gridOptionsService),this.eExpandUnchecked=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columnSelectClosed",this.gridOptionsService),this.eExpand.appendChild(this.eExpandChecked),this.eExpand.appendChild(this.eExpandUnchecked)},t.prototype.setColumn=function(e){var t=this;this.column=e,this.eFilterName.innerText=this.columnModel.getDisplayNameForColumn(this.column,"filterToolPanel",!1)||"",this.addManagedListener(this.eFilterToolPanelHeader,"click",this.toggleExpanded.bind(this)),this.addManagedListener(this.eFilterToolPanelHeader,"keydown",function(e){e.key===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.ENTER&&t.toggleExpanded()}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addInIcon("filter",this.eFilterIcon,this.column),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eFilterIcon,this.isFilterActive(),{skipAriaHidden:!0}),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpandChecked,!1),this.hideHeader?(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eFilterToolPanelHeader,!1),this.eFilterToolPanelHeader.removeAttribute("tabindex")):this.eFilterToolPanelHeader.setAttribute("tabindex","0"),this.addManagedListener(this.column,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_FILTER_DESTROYED,this.onFilterDestroyed.bind(this))},t.prototype.getColumn=function(){return this.column},t.prototype.getColumnFilterName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"filterToolPanel",!1)},t.prototype.addCssClassToTitleBar=function(e){this.eFilterToolPanelHeader.classList.add(e)},t.prototype.addInIcon=function(e,t,n){if(null!=t){var r=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan(e,this.gridOptionsService,n);t.appendChild(r)}},t.prototype.isFilterActive=function(){return this.filterManager.isFilterActive(this.column)},t.prototype.onFilterChanged=function(){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eFilterIcon,this.isFilterActive(),{skipAriaHidden:!0}),this.dispatchEvent({type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_FILTER_CHANGED})},t.prototype.onFilterDestroyed=function(e){this.expanded&&"api"===e.source&&e.column.getId()===this.column.getId()&&this.columnModel.getPrimaryColumn(this.column)&&(this.removeFilterElement(),this.addFilterElement())},t.prototype.toggleExpanded=function(){this.expanded?this.collapse():this.expand()},t.prototype.expand=function(){this.expanded||(this.expanded=!0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaExpanded(this.eFilterToolPanelHeader,!0),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpandChecked,!0),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpandUnchecked,!1),this.addFilterElement())},t.prototype.addFilterElement=function(){var e=this,t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.loadTemplate('<div class="ag-filter-toolpanel-instance-filter"></div>'),n=this.filterManager.getOrCreateFilterWrapper(this.column,"TOOLBAR");if(n){var r=n.filterPromise,o=n.guiPromise;null==r||r.then(function(n){e.underlyingFilter=n,n&&o.then(function(r){r&&t.appendChild(r),e.agFilterToolPanelBody.appendChild(t),n.afterGuiAttached&&n.afterGuiAttached({container:"toolPanel"})})})}},t.prototype.collapse=function(){var e,t;this.expanded&&(this.expanded=!1,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaExpanded(this.eFilterToolPanelHeader,!1),this.removeFilterElement(),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpandChecked,!1),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eExpandUnchecked,!0),null===(t=null===(e=this.underlyingFilter)||void 0===e?void 0:e.afterGuiDetached)||void 0===t||t.call(e))},t.prototype.removeFilterElement=function(){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.agFilterToolPanelBody)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.refreshFilter=function(e){var t;if(this.expanded){var n=this.underlyingFilter;n&&(e?"function"==typeof n.refreshVirtualList&&n.refreshVirtualList():null===(t=n.afterGuiDetached)||void 0===t||t.call(n))}},t.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.column&&this.expanded&&this.collapse()},t.TEMPLATE='\n        <div class="ag-filter-toolpanel-instance">\n            <div class="ag-filter-toolpanel-header ag-filter-toolpanel-instance-header" ref="eFilterToolPanelHeader" role="button" aria-expanded="false">\n                <div ref="eExpand" class="ag-filter-toolpanel-expand"></div>\n                <span ref="eFilterName" class="ag-header-cell-text"></span>\n                <span ref="eFilterIcon" class="ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon" aria-hidden="true"></span>\n            </div>\n            <div class="ag-filter-toolpanel-instance-body ag-filter" ref="agFilterToolPanelBody"></div>\n        </div>',__decorate$1Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eFilterToolPanelHeader")],t.prototype,"eFilterToolPanelHeader",void 0),__decorate$1Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eFilterName")],t.prototype,"eFilterName",void 0),__decorate$1Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("agFilterToolPanelBody")],t.prototype,"agFilterToolPanelBody",void 0),__decorate$1Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eFilterIcon")],t.prototype,"eFilterIcon",void 0),__decorate$1Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eExpand")],t.prototype,"eExpand",void 0),__decorate$1Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("filterManager")],t.prototype,"filterManager",void 0),__decorate$1Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$1Z([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$2L=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1Y=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ToolPanelFilterGroupComp=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a.columnGroup=t,a.childFilterComps=n,a.depth=o,a.expandedCallback=r,a.showingColumn=i,a}return __extends$2L(t,e),t.prototype.preConstruct=function(){this.setTemplate(t.TEMPLATE,{filterGroupComp:{cssIdentifier:"filter-toolpanel",direction:"vertical"}})},t.prototype.init=function(){var e=this;this.setGroupTitle(),this.filterGroupComp.setAlignItems("stretch"),this.filterGroupComp.addCssClass("ag-filter-toolpanel-group-level-"+this.depth),this.filterGroupComp.addCssClassToTitleBar("ag-filter-toolpanel-group-level-"+this.depth+"-header"),this.childFilterComps.forEach(function(t){e.filterGroupComp.addItem(t),t.addCssClassToTitleBar("ag-filter-toolpanel-group-level-"+(e.depth+1)+"-header")}),this.refreshFilterClass(),this.addExpandCollapseListeners(),this.addFilterChangedListeners(),this.setupTooltip()},t.prototype.setupTooltip=function(){var e=this;if(this.showingColumn){var t=function(){var t=e.columnGroup.getColDef().headerTooltip;e.setTooltip(t)};t(),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,t)}},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="filterToolPanelColumnGroup",t},t.prototype.addCssClassToTitleBar=function(e){this.filterGroupComp.addCssClassToTitleBar(e)},t.prototype.refreshFilters=function(e){this.childFilterComps.forEach(function(n){n instanceof t?n.refreshFilters(e):n.refreshFilter(e)})},t.prototype.isColumnGroup=function(){return this.columnGroup instanceof ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedColumnGroup},t.prototype.isExpanded=function(){return this.filterGroupComp.isExpanded()},t.prototype.getChildren=function(){return this.childFilterComps},t.prototype.getFilterGroupName=function(){return this.filterGroupName?this.filterGroupName:""},t.prototype.getFilterGroupId=function(){return this.columnGroup.getId()},t.prototype.hideGroupItem=function(e,t){this.filterGroupComp.hideItem(e,t)},t.prototype.hideGroup=function(e){this.setDisplayed(!e)},t.prototype.forEachToolPanelFilterChild=function(e){this.childFilterComps.forEach(function(t){t instanceof ToolPanelFilterComp&&e(t)})},t.prototype.addExpandCollapseListeners=function(){var e=this,t=this.isColumnGroup()?function(){return e.expandedCallback()}:function(){return e.forEachToolPanelFilterChild(function(e){return e.expand()})},n=this.isColumnGroup()?function(){return e.expandedCallback()}:function(){return e.forEachToolPanelFilterChild(function(e){return e.collapse()})};this.addManagedListener(this.filterGroupComp,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgGroupComponent.EVENT_EXPANDED,t),this.addManagedListener(this.filterGroupComp,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgGroupComponent.EVENT_COLLAPSED,n)},t.prototype.getColumns=function(){return this.columnGroup instanceof ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedColumnGroup?this.columnGroup.getLeafColumns():[this.columnGroup]},t.prototype.addFilterChangedListeners=function(){var e=this;this.getColumns().forEach(function(t){e.addManagedListener(t,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Column.EVENT_FILTER_CHANGED,function(){return e.refreshFilterClass()})}),this.columnGroup instanceof ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedColumnGroup||this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this))},t.prototype.refreshFilterClass=function(){var e=this.getColumns();this.filterGroupComp.addOrRemoveCssClass("ag-has-filter",e.some(function(e){return e.isFilterActive()}))},t.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.columnGroup&&this.isExpanded()&&this.collapse()},t.prototype.expand=function(){this.filterGroupComp.toggleGroupExpand(!0)},t.prototype.collapse=function(){this.filterGroupComp.toggleGroupExpand(!1)},t.prototype.setGroupTitle=function(){this.filterGroupName=this.columnGroup instanceof ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedColumnGroup?this.getColumnGroupName(this.columnGroup):this.getColumnName(this.columnGroup),this.filterGroupComp.setTitle(this.filterGroupName||"")},t.prototype.getColumnGroupName=function(e){return this.columnModel.getDisplayNameForProvidedColumnGroup(null,e,"filterToolPanel")},t.prototype.getColumnName=function(e){return this.columnModel.getDisplayNameForColumn(e,"filterToolPanel",!1)},t.prototype.destroyFilters=function(){this.childFilterComps=this.destroyBeans(this.childFilterComps),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.getGui())},t.prototype.destroy=function(){this.destroyFilters(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-filter-toolpanel-group-wrapper">\n            <ag-group-component ref="filterGroupComp"></ag-group-component>\n        </div>',__decorate$1Y([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("filterGroupComp")],t.prototype,"filterGroupComp",void 0),__decorate$1Y([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$1Y([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreConstruct],t.prototype,"preConstruct",null),__decorate$1Y([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$2K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1X=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},FiltersToolPanelListPanel=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.initialised=!1,n.filterGroupComps=[],n}return __extends$2K(t,e),t.prototype.init=function(e){var t=this;this.initialised=!0;var n={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context};ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.mergeDeep(n,e),this.params=n,this.params.suppressSyncLayoutWithGrid||this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_MOVED,function(){return t.onColumnsChanged()}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,function(){return t.onColumnsChanged()}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,function(e){"filters"===e.key&&t.refreshFilters(e.visible)}),this.columnModel.isReady()&&this.onColumnsChanged()},t.prototype.onColumnsChanged=function(){var e=this.columnModel.isPivotMode();this.params.suppressSyncLayoutWithGrid||e?this.buildTreeFromProvidedColumnDefs():this.syncFilterLayout()},t.prototype.syncFilterLayout=function(){this.toolPanelColDefService.syncLayoutWithGrid(this.setFiltersLayout.bind(this))},t.prototype.buildTreeFromProvidedColumnDefs=function(){var e=this.columnModel.getPrimaryColumnTree();this.recreateFilters(e)},t.prototype.setFiltersLayout=function(e){var t=this.toolPanelColDefService.createColumnTree(e);this.recreateFilters(t)},t.prototype.recreateFilters=function(e){var t=this,n=this.gridOptionsService.getDocument().activeElement,r=this.getExpansionState();this.destroyFilters(),this.filterGroupComps=this.recursivelyAddComps(e,0,r);var o=this.filterGroupComps.length;o&&(this.filterGroupComps.forEach(function(e){return t.appendChild(e)}),this.setFirstAndLastVisible(0,o-1)),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent(),this.getGui().contains(n)&&n.focus()},t.prototype.recursivelyAddComps=function(e,t,n){var r=this;return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.flatten(e.map(function(e){if(e instanceof ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedColumnGroup)return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.flatten(r.recursivelyAddFilterGroupComps(e,t,n));var o=e;if(!r.shouldDisplayFilter(o))return[];var i=new ToolPanelFilterComp(0===t);if(r.createBean(i),i.setColumn(o),n.get(o.getId())&&i.expand(),t>0)return i;var a=r.createBean(new ToolPanelFilterGroupComp(o,[i],r.onGroupExpanded.bind(r),t,!0));return a.addCssClassToTitleBar("ag-filter-toolpanel-header"),n.get(a.getFilterGroupId())||a.collapse(),a}))},t.prototype.recursivelyAddFilterGroupComps=function(e,t,n){if(this.filtersExistInChildren(e.getChildren())){var r=e.getColGroupDef();if(r&&r.suppressFiltersToolPanel)return[];var o=e.isPadding()?t:t+1,i=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.flatten(this.recursivelyAddComps(e.getChildren(),o,n));if(e.isPadding())return i;var a=new ToolPanelFilterGroupComp(e,i,this.onGroupExpanded.bind(this),t,!1);return this.createBean(a),a.addCssClassToTitleBar("ag-filter-toolpanel-header"),!1===n.get(a.getFilterGroupId())&&a.collapse(),[a]}},t.prototype.filtersExistInChildren=function(e){var t=this;return e.some(function(e){return e instanceof ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedColumnGroup?t.filtersExistInChildren(e.getChildren()):t.shouldDisplayFilter(e)})},t.prototype.shouldDisplayFilter=function(e){var t=e.getColDef()&&e.getColDef().suppressFiltersToolPanel;return e.isFilterAllowed()&&!t},t.prototype.getExpansionState=function(){var e=new Map,t=function(n){e.set(n.getFilterGroupId(),n.isExpanded()),n.getChildren().forEach(function(n){n instanceof ToolPanelFilterGroupComp?t(n):e.set(n.getColumn().getId(),n.isExpanded())})};return this.filterGroupComps.forEach(t),e},t.prototype.refresh=function(){},t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},t.prototype.expandFilterGroups=function(e,t){var n=[],r=function(o){var i=o.getFilterGroupId();(!t||ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(t,i))&&(e&&o.isColumnGroup()?o.expand():o.collapse(),n.push(i)),o.getChildren().forEach(function(e){e instanceof ToolPanelFilterGroupComp&&r(e)})};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),t){var o=t.filter(function(e){return n.indexOf(e)<0});o.length>0&&console.warn("AG Grid: unable to find groups for these supplied groupIds:",o)}},t.prototype.expandFilters=function(e,t){var n=[],r=function(o){if(o instanceof ToolPanelFilterGroupComp){var i=!1;return o.getChildren().forEach(function(t){r(t)&&(e?(o.expand(),i=!0):o.isColumnGroup()||o.collapse())}),i}var a=o.getColumn().getColId(),s=!t||ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(t,a);return s&&(e?o.expand():o.collapse(),n.push(a)),s};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),t){var o=t.filter(function(e){return n.indexOf(e)<0});o.length>0&&console.warn("AG Grid: unable to find columns for these supplied colIds:",o)}},t.prototype.onGroupExpanded=function(){this.fireExpandedEvent()},t.prototype.fireExpandedEvent=function(){var e,t=0,n=0,r=function(e){e.isColumnGroup()&&(e.isExpanded()?t++:n++,e.getChildren().forEach(function(e){e instanceof ToolPanelFilterGroupComp&&r(e)}))};this.filterGroupComps.forEach(r),e=t>0&&n>0?EXPAND_STATE.INDETERMINATE:n>0?EXPAND_STATE.COLLAPSED:EXPAND_STATE.EXPANDED,this.dispatchEvent({type:"groupExpanded",state:e})},t.prototype.performFilterSearch=function(e){this.searchFilterText=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e)?e.toLowerCase():null,this.searchFilters(this.searchFilterText)},t.prototype.searchFilters=function(e){var t,n,r=function(t){return!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e)||-1!==t.toLowerCase().indexOf(e)},o=function(e,t){if(!(e instanceof ToolPanelFilterGroupComp))return r(e.getColumnFilterName()||"");var n=e.getChildren(),i=r(e.getFilterGroupName()),a=t||i;if(a){e.hideGroup(!1);for(var s=0;s<n.length;s++)o(n[s],a),e.hideGroupItem(!1,s);return!0}var l=!1;return n.forEach(function(n,r){var i=o(n,t);e.hideGroupItem(!i,r),i&&(l=!0)}),e.hideGroup(!l),l};this.filterGroupComps.forEach(function(e,r){o(e,!1),void 0===t?e.containsCssClass("ag-hidden")||(t=r,n=r):e.containsCssClass("ag-hidden")||n===r||(n=r)}),this.setFirstAndLastVisible(t,n)},t.prototype.setFirstAndLastVisible=function(e,t){this.filterGroupComps.forEach(function(n,r){n.removeCssClass("ag-first-group-visible"),n.removeCssClass("ag-last-group-visible"),r===e&&n.addCssClass("ag-first-group-visible"),r===t&&n.addCssClass("ag-last-group-visible")})},t.prototype.refreshFilters=function(e){this.filterGroupComps.forEach(function(t){return t.refreshFilters(e)})},t.prototype.destroyFilters=function(){this.filterGroupComps=this.destroyBeans(this.filterGroupComps),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.getGui())},t.prototype.destroy=function(){this.destroyFilters(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-filter-list-panel"></div>',__decorate$1X([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$1X([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnApi")],t.prototype,"columnApi",void 0),__decorate$1X([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("toolPanelColDefService")],t.prototype,"toolPanelColDefService",void 0),__decorate$1X([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$2J=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$J=function(){return __assign$J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$J.apply(this,arguments)},__decorate$1W=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},FiltersToolPanel=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.initialised=!1,n.listenerDestroyFuncs=[],n}return __extends$2J(t,e),t.prototype.init=function(e){this.initialised&&(this.listenerDestroyFuncs.forEach(function(e){return e()}),this.listenerDestroyFuncs=[]),this.initialised=!0;var t={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi};this.params=__assign$J(__assign$J(__assign$J({},t),e),{context:this.gridOptionsService.context}),this.filtersToolPanelHeaderPanel.init(this.params),this.filtersToolPanelListPanel.init(this.params);var n=this.params.suppressExpandAll,r=this.params.suppressFilterSearch;n&&r&&this.filtersToolPanelHeaderPanel.setDisplayed(!1),this.listenerDestroyFuncs.push(this.addManagedListener(this.filtersToolPanelHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addManagedListener(this.filtersToolPanelHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addManagedListener(this.filtersToolPanelHeaderPanel,"searchChanged",this.onSearchChanged.bind(this)),this.addManagedListener(this.filtersToolPanelListPanel,"groupExpanded",this.onGroupExpanded.bind(this)))},t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},t.prototype.onExpandAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!0)},t.prototype.onCollapseAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!1)},t.prototype.onSearchChanged=function(e){this.filtersToolPanelListPanel.performFilterSearch(e.searchText)},t.prototype.setFilterLayout=function(e){this.filtersToolPanelListPanel.setFiltersLayout(e)},t.prototype.onGroupExpanded=function(e){this.filtersToolPanelHeaderPanel.setExpandState(e.state)},t.prototype.expandFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!0,e)},t.prototype.collapseFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!1,e)},t.prototype.expandFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!0,e)},t.prototype.collapseFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!1,e)},t.prototype.syncLayoutWithGrid=function(){this.filtersToolPanelListPanel.syncFilterLayout()},t.prototype.refresh=function(){this.init(this.params)},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-filter-toolpanel">\n            <ag-filters-tool-panel-header ref="filtersToolPanelHeaderPanel"></ag-filters-tool-panel-header>\n            <ag-filters-tool-panel-list ref="filtersToolPanelListPanel"></ag-filters-tool-panel-list>\n         </div>',__decorate$1W([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("filtersToolPanelHeaderPanel")],t.prototype,"filtersToolPanelHeaderPanel",void 0),__decorate$1W([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("filtersToolPanelListPanel")],t.prototype,"filtersToolPanelListPanel",void 0),__decorate$1W([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$1W([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnApi")],t.prototype,"columnApi",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),VERSION$c="29.3.3",FiltersToolPanelModule={version:VERSION$c,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.FiltersToolPanelModule,beans:[],agStackComponents:[{componentName:"AgFiltersToolPanelHeader",componentClass:FiltersToolPanelHeaderPanel},{componentName:"AgFiltersToolPanelList",componentClass:FiltersToolPanelListPanel}],userComponents:[{componentName:"agFiltersToolPanel",componentClass:FiltersToolPanel}],dependantModules:[SideBarModule,EnterpriseCoreModule]},__extends$2I=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),TimeInterval=function(){function e(e,t,n){this._encode=e,this._decode=t,this._rangeCallback=n}return e.prototype.floor=function(e){var t=new Date(e),n=this._encode(t);return this._decode(n)},e.prototype.ceil=function(e){var t=new Date(Number(e)-1),n=this._encode(t);return this._decode(n+1)},e.prototype.range=function(e,t,n){var r,o=null===(r=this._rangeCallback)||void 0===r?void 0:r.call(this,e,t),i=this._encode(n?this.floor(e):this.ceil(e)),a=this._encode(n?this.ceil(t):this.floor(t));if(a<i)return[];for(var s=[],l=i;l<=a;l++){var c=this._decode(l);s.push(c)}return null==o||o(),s},e}(),CountableTimeInterval=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2I(t,e),t.prototype.getOffset=function(e,t){var n="number"==typeof e||e instanceof Date?this._encode(new Date(e)):0;return Math.floor(n)%t},t.prototype.every=function(e,t){var n,r=this,o=0,i=(null!=t?t:{}).snapTo,a=void 0===i?"start":i;if("string"==typeof a){var s=o;n=function(t,n){var i="start"===a?t:n;return o=r.getOffset(i,e),function(){return o=s}}}else"number"==typeof a?o=this.getOffset(new Date(a),e):a instanceof Date&&(o=this.getOffset(a,e));return new TimeInterval(function(t){var n=r._encode(t);return Math.floor((n-o)/e)},function(t){return r._decode(t*e+o)},n)},t}(TimeInterval);function encode$b(e){return e.getTime()}function decode$b(e){return new Date(e)}var millisecond=new CountableTimeInterval(encode$b,decode$b);new Date(0).getFullYear();var durationSecond=1e3,durationMinute=60*durationSecond,durationHour=60*durationMinute,durationDay=24*durationHour,durationWeek=7*durationDay,durationMonth=30*durationDay,durationYear=365*durationDay,offset$2=(new Date).getTimezoneOffset()*durationMinute;function encode$a(e){return Math.floor((e.getTime()-offset$2)/durationSecond)}function decode$a(e){return new Date(offset$2+e*durationSecond)}var second=new CountableTimeInterval(encode$a,decode$a),offset$1=(new Date).getTimezoneOffset()*durationMinute;function encode$9(e){return Math.floor((e.getTime()-offset$1)/durationMinute)}function decode$9(e){return new Date(offset$1+e*durationMinute)}var minute=new CountableTimeInterval(encode$9,decode$9),offset=(new Date).getTimezoneOffset()*durationMinute;function encode$8(e){return Math.floor((e.getTime()-offset)/durationHour)}function decode$8(e){return new Date(offset+e*durationHour)}var hour=new CountableTimeInterval(encode$8,decode$8);function encode$7(e){var t=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate());return Math.floor(t/durationDay)}function decode$7(e){var t=new Date(0);return t.setDate(t.getDate()+e),t.setHours(0,0,0,0),t}var day=new CountableTimeInterval(encode$7,decode$7),baseSunday=new Date(2023,0,1);function weekday(e){var t=Date.UTC(baseSunday.getFullYear(),baseSunday.getMonth(),baseSunday.getDate())+e*durationDay;return new CountableTimeInterval(function(e){var n=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate());return Math.floor((n-t)/durationWeek)},function(e){var n=new Date(t);return n.setDate(n.getDate()+7*e),n})}var sunday=weekday(0),monday=weekday(1),tuesday=weekday(2),wednesday=weekday(3),thursday=weekday(4),friday=weekday(5),saturday=weekday(6);function encode$6(e){return 12*e.getFullYear()+e.getMonth()}function decode$6(e){var t=Math.floor(e/12);return new Date(t,e-12*t,1)}var month=new CountableTimeInterval(encode$6,decode$6);function encode$5(e){return e.getFullYear()}function decode$5(e){var t=new Date;return t.setFullYear(e),t.setMonth(0,1),t.setHours(0,0,0,0),t}var year=new CountableTimeInterval(encode$5,decode$5);function encode$4(e){return Math.floor(e.getTime()/durationMinute)}function decode$4(e){return new Date(e*durationMinute)}var utcMinute=new CountableTimeInterval(encode$4,decode$4);function encode$3(e){return Math.floor(e.getTime()/durationHour)}function decode$3(e){return new Date(e*durationHour)}var utcHour=new CountableTimeInterval(encode$3,decode$3);function encode$2(e){return Math.floor(e.getTime()/durationDay)}function decode$2(e){var t=new Date(0);return t.setUTCDate(t.getUTCDate()+e),t.setUTCHours(0,0,0,0),t}var utcDay=new CountableTimeInterval(encode$2,decode$2);function encode$1(e){return 12*e.getUTCFullYear()+e.getUTCMonth()}function decode$1(e){var t=Math.floor(e/12),n=e-12*t;return new Date(Date.UTC(t,n,1))}var utcMonth=new CountableTimeInterval(encode$1,decode$1);function encode(e){return e.getUTCFullYear()}function decode(e){var t=new Date;return t.setUTCFullYear(e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),t}var utcYear=new CountableTimeInterval(encode,decode),time=Object.freeze({__proto__:null,millisecond,second,minute,hour,day,sunday,monday,tuesday,wednesday,thursday,friday,saturday,month,year,utcMinute,utcHour,utcDay,utcMonth,utcYear}),MOBILE=[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i];function isDesktop(){var e=navigator.userAgent;return!MOBILE.some(function(t){return t.test(e)})}var HdpiCanvas=function(){function e(e){var t=e.document,n=void 0===t?window.document:t,r=e.width,o=void 0===r?600:r,i=e.height,a=void 0===i?300:i,s=e.domLayer,l=void 0!==s&&s,c=e.zIndex,u=void 0===c?0:c,d=e.name,p=void 0===d?void 0:d,h=e.overrideDevicePixelRatio,f=void 0===h?void 0:h;this._container=void 0,this._enabled=!0,this._pixelRatio=NaN,this._width=0,this._height=0,this.document=n,this.element=n.createElement("canvas"),this.element.width=o,this.element.height=a,this.context=this.element.getContext("2d"),this.imageSource=this.context.canvas;var g=this.element.style;g.userSelect="none",g.display="block",l&&(g.position="absolute",g.zIndex=String(u),g.top="0",g.left="0",g.pointerEvents="none",g.opacity="1",p&&(this.element.id=p)),this.setPixelRatio(f),this.resize(o,a)}return Object.defineProperty(e.prototype,"container",{get:function(){return this._container},set:function(e){this._container!==e&&(this.remove(),e&&e.appendChild(this.element),this._container=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this.element.style.display=e?"block":"none",this._enabled=!!e},enumerable:!1,configurable:!0}),e.prototype.remove=function(){var e=this.element.parentNode;null!=e&&e.removeChild(this.element)},e.prototype.destroy=function(){this.element.remove(),this.element.width=0,this.element.height=0,this.context.clearRect(0,0,0,0),Object.freeze(this)},e.prototype.snapshot=function(){},e.prototype.clear=function(){this.context.save(),this.context.resetTransform(),this.context.clearRect(0,0,this.width,this.height),this.context.restore()},e.prototype.toImage=function(){var e=this.document.createElement("img");return e.src=this.getDataURL(),e},e.prototype.getDataURL=function(e){return this.element.toDataURL(e)},e.prototype.download=function(e,t){void 0===t&&(t="image/png"),e=(e||"").trim()||"image";var n=this.getDataURL(t),r=this.document,o=r.createElement("a");o.href=n,o.download=e,o.style.display="none",r.body.appendChild(o),o.click(),r.body.removeChild(o)},Object.defineProperty(e.prototype,"pixelRatio",{get:function(){return this._pixelRatio},enumerable:!1,configurable:!0}),e.prototype.setPixelRatio=function(t){var n=null!=t?t:window.devicePixelRatio;isDesktop()||(n=1),e.overrideScale(this.context,n),this._pixelRatio=n},Object.defineProperty(e.prototype,"pixelated",{get:function(){return"pixelated"===this.element.style.imageRendering},set:function(e){this.element.style.imageRendering=e?"pixelated":"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),e.prototype.resize=function(e,t){if(e>0&&t>0){var n=this,r=n.element,o=n.context,i=n.pixelRatio;r.width=Math.round(e*i),r.height=Math.round(t*i),r.style.width=e+"px",r.style.height=t+"px",o.resetTransform(),this._width=e,this._height=t}},Object.defineProperty(e,"textMeasuringContext",{get:function(){if(this._textMeasuringContext)return this._textMeasuringContext;var e=document.createElement("canvas");return this._textMeasuringContext=e.getContext("2d"),this._textMeasuringContext},enumerable:!1,configurable:!0}),Object.defineProperty(e,"svgText",{get:function(){if(this._svgText)return this._svgText;var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("width","100"),t.setAttribute("height","100"),t.classList?t.classList.add("text-measuring-svg"):t.setAttribute("class","text-measuring-svg"),t.style.position="absolute",t.style.top="-1000px",t.style.visibility="hidden";var n=document.createElementNS(e,"text");return n.setAttribute("x","0"),n.setAttribute("y","30"),n.setAttribute("text","black"),t.appendChild(n),document.body.appendChild(t),this._svgText=n,n},enumerable:!1,configurable:!0}),Object.defineProperty(e,"has",{get:function(){if(this._has)return this._has;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.userAgent.indexOf("Firefox")>-1,n=!e&&navigator.userAgent.indexOf("Safari")>-1;return this._has=Object.freeze({textMetrics:void 0!==this.textMeasuringContext.measureText("test").actualBoundingBoxDescent&&!t&&!n,getTransform:void 0!==this.textMeasuringContext.getTransform}),this._has},enumerable:!1,configurable:!0}),e.measureText=function(e,t,n,r){var o=this.textMeasuringContext;return o.font=t,o.textBaseline=n,o.textAlign=r,o.measureText(e)},e.getTextSize=function(e,t){if(this.has.textMetrics){var n=this.textMeasuringContext;n.font=t;var r=n.measureText(e);return{width:r.width,height:r.actualBoundingBoxAscent+r.actualBoundingBoxDescent}}return this.measureSvgText(e,t)},e.measureSvgText=function(e,t){var n=this.textSizeCache,r=n[t];if(r){var o=r[e];if(o)return o}else n[t]={};var i=this.svgText;i.style.font=t,i.textContent=e;var a=i.getBBox(),s={width:a.width,height:a.height};return n[t][e]=s,s},e.overrideScale=function(e,t){var n=0,r={save:function(){this.$save(),n++},restore:function(){if(!(n>0))throw new Error("AG Charts - Unable to restore() past depth 0");this.$restore(),n--},setTransform:function(e,n,r,o,i,a){"object"==typeof e?this.$setTransform(e):this.$setTransform(e*t,n*t,r*t,o*t,i*t,a*t)},resetTransform:function(){this.$setTransform(t,0,0,t,0,0)},verifyDepthZero:function(){if(0!==n)throw new Error("AG Charts - Save/restore depth is non-zero: "+n)}};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e["$"+o]||(e["$"+o]=e[o]),e[o]=r[o])},e.textSizeCache={},e}(),__assign$I=function(){return __assign$I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$I.apply(this,arguments)},__read$10=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},BBox=function(){function e(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.clone=function(){var t=this;return new e(t.x,t.y,t.width,t.height)},e.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height},e.prototype.containsPoint=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.collidesBBox=function(e){return this.x<e.x+e.width&&this.x+this.width>e.x&&this.y<e.y+e.height&&this.y+this.height>e.y},e.prototype.isInfinite=function(){return Math.abs(this.x)===1/0||Math.abs(this.y)===1/0||Math.abs(this.width)===1/0||Math.abs(this.height)===1/0},e.prototype.shrink=function(e,t){var n=this,r=function(e,t){switch(e){case"top":n.y+=t;case"bottom":n.height-=t;break;case"left":n.x+=t;case"right":n.width-=t;break;case"vertical":n.y+=t,n.height-=2*t;break;case"horizontal":n.x+=t,n.width-=2*t;break;default:n.x+=t,n.width-=2*t,n.y+=t,n.height-=2*t}};return"number"==typeof e?r(t,e):Object.entries(e).forEach(function(e){var t=__read$10(e,2),n=t[0],o=t[1];return r(n,o)}),this},e.prototype.grow=function(e,t){if("number"==typeof e)this.shrink(-e,t);else{var n=__assign$I({},e);for(var r in n)n[r]*=-1;this.shrink(n)}return this},e.merge=function(t){var n=1/0,r=1/0,o=-1/0,i=-1/0;return t.forEach(function(e){e.x<n&&(n=e.x),e.y<r&&(r=e.y),e.x+e.width>o&&(o=e.x+e.width),e.y+e.height>i&&(i=e.y+e.height)}),new e(n,r,o-n,i-r)},e}(),__read$$=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Matrix=function(){function e(e){void 0===e&&(e=[1,0,0,1,0,0]),this.elements=e}return e.prototype.setElements=function(e){var t=this.elements;return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],this},Object.defineProperty(e.prototype,"identity",{get:function(){var e=this.elements;return 1===e[0]&&0===e[1]&&0===e[2]&&1===e[3]&&0===e[4]&&0===e[5]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this.elements[0]},set:function(e){this.elements[0]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.elements[1]},set:function(e){this.elements[1]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.elements[2]},set:function(e){this.elements[2]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"d",{get:function(){return this.elements[3]},set:function(e){this.elements[3]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"e",{get:function(){return this.elements[4]},set:function(e){this.elements[4]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"f",{get:function(){return this.elements[5]},set:function(e){this.elements[5]=e},enumerable:!1,configurable:!0}),e.prototype.AxB=function(e,t,n){var r=e[0]*t[0]+e[2]*t[1],o=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],a=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];(n=n||e)[0]=r,n[1]=o,n[2]=i,n[3]=a,n[4]=s,n[5]=l},e.prototype.multiplySelf=function(e){return this.AxB(this.elements,e.elements),this},e.prototype.multiply=function(t){var n=new Array(6);return this.AxB(this.elements,t.elements,n),new e(n)},e.prototype.preMultiplySelf=function(e){return this.AxB(e.elements,this.elements,this.elements),this},e.prototype.inverse=function(){var t=this.elements,n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=1/(n*i-r*o);return new e([i*=l,-(r*=l),-(o*=l),n*=l,o*s-i*a,r*a-n*s])},e.prototype.inverseTo=function(e){var t=this.elements,n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=1/(n*i-r*o);return n*=l,r*=l,o*=l,i*=l,e.setElements([i,-r,-o,n,o*s-i*a,r*a-n*s]),this},e.prototype.invertSelf=function(){var e=this.elements,t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=1/(t*o-n*r);return t*=s,n*=s,r*=s,o*=s,e[0]=o,e[1]=-n,e[2]=-r,e[3]=t,e[4]=r*a-o*i,e[5]=n*i-t*a,this},e.prototype.transformPoint=function(e,t){var n=this.elements;return{x:e*n[0]+t*n[2]+n[4],y:e*n[1]+t*n[3]+n[5]}},e.prototype.transformBBox=function(e,t){var n=this.elements,r=n[0],o=n[1],i=n[2],a=n[3],s=.5*e.width,l=.5*e.height,c=e.x+s,u=e.y+l,d=Math.abs(s*r)+Math.abs(l*i),p=Math.abs(s*o)+Math.abs(l*a);return t||(t=new BBox(0,0,0,0)),t.x=c*r+u*i+n[4]-d,t.y=c*o+u*a+n[5]-p,t.width=d+d,t.height=p+p,t},e.prototype.toContext=function(e){if(!this.identity){var t=this.elements;e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}},e.flyweight=function(t){return e.instance.setElements(t.elements)},e.updateTransformMatrix=function(e,t,n,r,o,i,a){var s,l,c=__read$$([0,0],2),u=c[0],d=c[1],p=t,h=n;1===p&&1===h?(s=0,l=0):(s=null==(null==a?void 0:a.scalingCenterX)?u:null==a?void 0:a.scalingCenterX,l=null==(null==a?void 0:a.scalingCenterY)?d:null==a?void 0:a.scalingCenterY);var f,g,m=r,v=Math.cos(m),y=Math.sin(m);0===m?(f=0,g=0):(f=null==(null==a?void 0:a.rotationCenterX)?u:null==a?void 0:a.rotationCenterX,g=null==(null==a?void 0:a.rotationCenterY)?d:null==a?void 0:a.rotationCenterY);var A=o,w=i,b=s*(1-p)-f,_=l*(1-h)-g;return e.setElements([v*p,y*p,-y*h,v*h,v*b-y*_+f+A,y*b+v*_+g+w]),e},e.fromContext=function(t){var n=t.getTransform();return new e([n.a,n.b,n.c,n.d,n.e,n.f])},e.instance=new e,e}(),ID_MAP={},RedrawType;function createId$1(e){var t,n=e.constructor,r=Object.prototype.hasOwnProperty.call(n,"className")?n.className:n.name;if(!r)throw new Error("The "+n+" is missing the 'className' property.");var o=(null!==(t=ID_MAP[r])&&void 0!==t?t:0)+1;return ID_MAP[r]=o,r+"-"+o}function windowValue(e){var t="undefined"!=typeof window?window:void 0;return null==t?void 0:t[e]}function evalAvailable(){try{return eval(""),!0}catch(e){return!1}}!function(e){e[e.NONE=0]="NONE",e[e.TRIVIAL=1]="TRIVIAL",e[e.MINOR=2]="MINOR",e[e.MAJOR=3]="MAJOR"}(RedrawType||(RedrawType={}));var EVAL_USEABLE=evalAvailable();function SceneChangeDetection(opts){var _a=opts||{},_b=_a.redraw,redraw=void 0===_b?RedrawType.TRIVIAL:_b,_c=_a.type,type=void 0===_c?"normal":_c,changeCb=_a.changeCb,convertor=_a.convertor,_d=_a.checkDirtyOnAssignment,checkDirtyOnAssignment=void 0!==_d&&_d,debug=null!=windowValue("agChartsSceneChangeDetectionDebug");return function(target,key){var privateKey="__"+key;if(!target[key])if(EVAL_USEABLE){var setterJs="\n                "+(debug?"var setCount = 0;":"")+"\n                function set_"+key+"(value) {\n                    const oldValue = this."+privateKey+";\n                    "+(convertor?"value = convertor(value);":"")+"\n                    if (value !== oldValue) {\n                        this."+privateKey+" = value;\n                        "+(debug?"console.log({ t: this, property: '"+key+"', oldValue, value, stack: new Error().stack });":"")+"\n                        "+("normal"===type?"this.markDirty(this, "+redraw+");":"")+"\n                        "+("transform"===type?"this.markDirtyTransform("+redraw+");":"")+"\n                        "+("path"===type?"if (!this._dirtyPath) { this._dirtyPath = true; this.markDirty(this, "+redraw+"); }":"")+"\n                        "+("font"===type?"if (!this._dirtyFont) { this._dirtyFont = true; this.markDirty(this, "+redraw+"); }":"")+"\n                        "+(changeCb?"changeCb(this);":"")+"\n                    }\n                    "+(checkDirtyOnAssignment?"if (value != null && value._dirty > "+RedrawType.NONE+") { this.markDirty(value, value._dirty); }":"")+"\n                };\n                set_"+key+";\n            ",getterJs="\n                function get_"+key+"() {\n                    return this."+privateKey+";\n                };\n                get_"+key+";\n            ";Object.defineProperty(target,key,{set:eval(setterJs),get:eval(getterJs),enumerable:!0,configurable:!0})}else{var setter=function(e){var t=this[privateKey];(e=convertor?convertor(e):e)!==t&&(this[privateKey]=e,"normal"===type&&this.markDirty(this,redraw),"transform"===type&&this.markDirtyTransform(redraw),"path"!==type||this._dirtyPath||(this._dirtyPath=!0,this.markDirty(this,redraw)),"font"!==type||this._dirtyFont||(this._dirtyFont=!0,this.markDirty(this,redraw)),changeCb&&changeCb(this)),checkDirtyOnAssignment&&null!=e&&e._dirty>RedrawType.NONE&&this.markDirty(e,e._dirty)},getter=function(){return this[privateKey]};Object.defineProperty(target,key,{set:setter,get:getter,enumerable:!0,configurable:!0})}}}var ChangeDetectable=function(){function e(){this._dirty=RedrawType.MAJOR}return e.prototype.markDirty=function(e,t){void 0===t&&(t=RedrawType.TRIVIAL),this._dirty>t||(this._dirty=t)},e.prototype.markClean=function(e){this._dirty=RedrawType.NONE},e.prototype.isDirty=function(){return this._dirty>RedrawType.NONE},e}(),__extends$2H=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1V=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__values$B=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$B=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$_(arguments[t]));return e},PointerEvents;!function(e){e[e.All=0]="All",e[e.None=1]="None"}(PointerEvents||(PointerEvents={}));var zIndexChangedCallback=function(e){e.parent&&(e.parent.dirtyZIndex=!0),e.zIndexChanged()},Node=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.serialNumber=t._nextSerialNumber++,n.id=createId$1(n),n.tag=NaN,n.isContainerNode=!1,n._children=[],n.childSet={},n.matrix=new Matrix,n.inverseMatrix=new Matrix,n._dirtyTransform=!1,n.scalingX=1,n.scalingY=1,n.scalingCenterX=null,n.scalingCenterY=null,n.rotationCenterX=null,n.rotationCenterY=null,n.rotation=0,n.translationX=0,n.translationY=0,n.visible=!0,n.dirtyZIndex=!1,n.zIndex=0,n.zIndexSubOrder=void 0,n.pointerEvents=PointerEvents.All,n}return __extends$2H(t,e),Object.defineProperty(t.prototype,"datum",{get:function(){var e;return void 0!==this._datum?this._datum:null===(e=this._parent)||void 0===e?void 0:e.datum},set:function(e){this._datum=e},enumerable:!1,configurable:!0}),t.prototype._setLayerManager=function(e){var t,n;this._layerManager=e,this._debug=null==e?void 0:e.debug;try{for(var r=__values$B(this.children),o=r.next();!o.done;o=r.next())o.value._setLayerManager(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},Object.defineProperty(t.prototype,"layerManager",{get:function(){return this._layerManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._children},enumerable:!1,configurable:!0}),t.prototype.append=function(e){var t,n;Array.isArray(e)||(e=[e]);try{for(var r=__values$B(e),o=r.next();!o.done;o=r.next()){var i=o.value;if(i.parent)throw new Error(i+" already belongs to another parent: "+i.parent+".");if(i.layerManager)throw new Error(i+" already belongs to a scene: "+i.layerManager+".");if(this.childSet[i.id])throw new Error("Duplicate "+i.constructor.name+" node: "+i);this._children.push(i),this.childSet[i.id]=!0,i._parent=this,i._setLayerManager(this.layerManager)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}this.dirtyZIndex=!0,this.markDirty(this,RedrawType.MAJOR)},t.prototype.appendChild=function(e){return this.append(e),e},t.prototype.removeChild=function(e){if(e.parent===this){var t=this.children.indexOf(e);if(t>=0)return this._children.splice(t,1),delete this.childSet[e.id],e._parent=void 0,e._setLayerManager(),this.dirtyZIndex=!0,this.markDirty(e,RedrawType.MAJOR),e}throw new Error("The node to be removed is not a child of this node.")},t.prototype.insertBefore=function(e,t){var n=e.parent;if(e.parent&&e.parent.removeChild(e),t&&t.parent===this){var r=this.children.indexOf(t);if(!(r>=0))throw new Error(t+" has "+n+" as the parent, but is not in its list of children.");this._children.splice(r,0,e),this.childSet[e.id]=!0,e._parent=this,e._setLayerManager(this.layerManager),this.dirtyZIndex=!0,this.markDirty(e,RedrawType.MAJOR)}else this.append(e);return e},t.prototype.calculateCumulativeMatrix=function(){this.computeTransformMatrix();for(var e=Matrix.flyweight(this.matrix),t=this.parent;t;)t.computeTransformMatrix(),e.preMultiplySelf(t.matrix),t=t.parent;return e},t.prototype.transformPoint=function(e,t){return this.calculateCumulativeMatrix().invertSelf().transformPoint(e,t)},t.prototype.inverseTransformPoint=function(e,t){return this.calculateCumulativeMatrix().transformPoint(e,t)},t.prototype.transformBBox=function(e){return this.calculateCumulativeMatrix().invertSelf().transformBBox(e)},t.prototype.inverseTransformBBox=function(e){return this.calculateCumulativeMatrix().transformBBox(e)},t.prototype.markDirtyTransform=function(){this._dirtyTransform=!0,this.markDirty(this,RedrawType.MAJOR)},t.prototype.containsPoint=function(e,t){return!1},t.prototype.pickNode=function(e,t){var n;if(this.visible&&this.pointerEvents!==PointerEvents.None&&this.containsPoint(e,t)){var r=this.children;if(r.length>1e3){for(var o=r.length-1;o>=0;o--)if(i=(null===(n=r[o].computeBBox())||void 0===n?void 0:n.containsPoint(e,t))?r[o].pickNode(e,t):void 0)return i}else if(r.length)for(o=r.length-1;o>=0;o--){var i;if(i=r[o].pickNode(e,t))return i}else if(!this.isContainerNode)return this}},t.prototype.findNodes=function(e){var t,n,r=e(this)?[this]:[];try{for(var o=__values$B(this.children),i=o.next();!i.done;i=o.next()){var a=i.value.findNodes(e);a&&r.push.apply(r,__spread$B(a))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},t.prototype.computeBBox=function(){},t.prototype.computeTransformedBBox=function(){var e=this.computeBBox();if(e){this.computeTransformMatrix();for(var t=Matrix.flyweight(this.matrix),n=this.parent;n;)n.computeTransformMatrix(),t.preMultiplySelf(n.matrix),n=n.parent;return t.transformBBox(e,e),e}},t.prototype.computeTransformMatrix=function(){if(this._dirtyTransform){var e=this,t=e.matrix,n=e.scalingX,r=e.scalingY,o=e.rotation,i=e.translationX,a=e.translationY,s=e.scalingCenterX,l=e.scalingCenterY,c=e.rotationCenterX,u=e.rotationCenterY;Matrix.updateTransformMatrix(t,n,r,o,i,a,{scalingCenterX:s,scalingCenterY:l,rotationCenterX:c,rotationCenterY:u}),t.inverseTo(this.inverseMatrix),this._dirtyTransform=!1}},t.prototype.render=function(e){var t=e.stats;this._dirty=RedrawType.NONE,t&&t.nodesRendered++},t.prototype.clearBBox=function(e){var t=this.computeBBox();if(null!=t){var n=t.x,r=t.y,o=t.width,i=t.height,a=this.transformPoint(n,r),s=this.transformPoint(n+o,r+i);e.clearRect(a.x,a.y,s.x-a.x,s.y-a.y)}},t.prototype.markDirty=function(e,t,n){void 0===t&&(t=RedrawType.TRIVIAL),void 0===n&&(n=t),this._dirty>t||this._dirty===t&&t===n||(this._dirty=t,this.parent?this.parent.markDirty(this,n):this.layerManager&&this.layerManager.markDirty())},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!1,configurable:!0}),t.prototype.markClean=function(e){var t,n,r=e||{},o=r.force,i=void 0!==o&&o,a=r.recursive,s=void 0===a||a;if((this._dirty!==RedrawType.NONE||i)&&(this._dirty=RedrawType.NONE,s))try{for(var l=__values$B(this.children),c=l.next();!c.done;c=l.next())c.value.markClean()}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}},t.prototype.visibilityChanged=function(){},Object.defineProperty(t.prototype,"nodeCount",{get:function(){var e,t,n=1,r=this._dirty>=RedrawType.NONE||this._dirtyTransform?1:0,o=this.visible?1:0;try{for(var i=__values$B(this._children),a=i.next();!a.done;a=i.next()){var s=a.value.nodeCount,l=s.count,c=s.visibleCount,u=s.dirtyCount;n+=l,o+=c,r+=u}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return{count:n,visibleCount:o,dirtyCount:r}},enumerable:!1,configurable:!0}),t.prototype.zIndexChanged=function(){},t._nextSerialNumber=0,__decorate$1V([SceneChangeDetection({type:"transform"})],t.prototype,"scalingX",void 0),__decorate$1V([SceneChangeDetection({type:"transform"})],t.prototype,"scalingY",void 0),__decorate$1V([SceneChangeDetection({type:"transform"})],t.prototype,"scalingCenterX",void 0),__decorate$1V([SceneChangeDetection({type:"transform"})],t.prototype,"scalingCenterY",void 0),__decorate$1V([SceneChangeDetection({type:"transform"})],t.prototype,"rotationCenterX",void 0),__decorate$1V([SceneChangeDetection({type:"transform"})],t.prototype,"rotationCenterY",void 0),__decorate$1V([SceneChangeDetection({type:"transform"})],t.prototype,"rotation",void 0),__decorate$1V([SceneChangeDetection({type:"transform"})],t.prototype,"translationX",void 0),__decorate$1V([SceneChangeDetection({type:"transform"})],t.prototype,"translationY",void 0),__decorate$1V([SceneChangeDetection({redraw:RedrawType.MAJOR,changeCb:function(e){return e.visibilityChanged()}})],t.prototype,"visible",void 0),__decorate$1V([SceneChangeDetection({redraw:RedrawType.TRIVIAL,changeCb:zIndexChangedCallback})],t.prototype,"zIndex",void 0),__decorate$1V([SceneChangeDetection({redraw:RedrawType.TRIVIAL,changeCb:zIndexChangedCallback})],t.prototype,"zIndexSubOrder",void 0),t}(ChangeDetectable);function ascendingStringNumberUndefined(e,t){var n=0;return"number"==typeof e&&"number"==typeof t?n=e-t:"string"==typeof e&&"string"==typeof t?n=e.localeCompare(t):null==e&&null==t||(n=null==e?-1:null==t?1:String(e).localeCompare(String(t))),n}function compoundAscending(e,t,n){var r=function(e){return"function"==typeof e?e():e};for(var o in e){var i=n(r(e[o]),r(t[o]));if(0!==i)return i}return 0}var doOnceFlags$1={};function doOnce$1(e,t){doOnceFlags$1[t]||(e(),doOnceFlags$1[t]=!0)}var __read$Z=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$A=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$Z(arguments[t]));return e},Logger={debug:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.log.apply(console,__spread$A(e))},warn:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];console.warn.apply(console,__spread$A(["AG Charts - "+e],t))},error:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];console.error.apply(console,__spread$A(["AG Charts - "+e],t))},warnOnce:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];doOnce$1(function(){return Logger.warn.apply(Logger,__spread$A([e],t))},"Logger.warn: "+e)},errorOnce:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];doOnce$1(function(){return Logger.error.apply(Logger,__spread$A([e],t))},"Logger.warn: "+e)}},__extends$2G=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$H=function(){return __assign$H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$H.apply(this,arguments)},__decorate$1U=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__values$A=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$Y=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$z=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$Y(arguments[t]));return e},Group=function(e){function t(t){var n,r=e.call(this)||this;r.opts=t,r.opacity=1,r.lastBBox=void 0;var o=t||{},i=o.zIndex,a=o.zIndexSubOrder;return r.isContainerNode=!0,void 0!==i&&(r.zIndex=i),void 0!==a&&(r.zIndexSubOrder=a),r.name=null===(n=r.opts)||void 0===n?void 0:n.name,r}return __extends$2G(t,e),t.prototype.zIndexChanged=function(){var e;this.layer&&(null===(e=this._layerManager)||void 0===e||e.moveLayer(this.layer,this.zIndex,this.zIndexSubOrder))},t.prototype.isLayer=function(){return null!=this.layer},t.prototype._setLayerManager=function(t){var n,r=this;if(this._layerManager&&this.layer&&(this._layerManager.removeLayer(this.layer),this.layer=void 0),this.layer)throw new Error("AG Charts - unable to deregister scene rendering layer!");if(e.prototype._setLayerManager.call(this,t),t&&(null===(n=this.opts)||void 0===n?void 0:n.layer)){var o=this.opts||{},i=o.zIndex,a=o.zIndexSubOrder,s=o.name;this.layer=t.addLayer({zIndex:i,zIndexSubOrder:a,name:s,getComputedOpacity:function(){return r.getComputedOpacity()},getVisibility:function(){return r.getVisibility()}})}},t.prototype.getComputedOpacity=function(){var e=1,n=this;do{n instanceof t&&(e*=n.opacity)}while(n=n.parent);return e},t.prototype.getVisibility=function(){for(var e=this,t=this.visible;e=e.parent;)e.visible||(t=e.visible);return t},t.prototype.visibilityChanged=function(){this.layer&&(this.layer.enabled=this.visible)},t.prototype.markDirty=function(t,n){void 0===n&&(n=RedrawType.TRIVIAL);var r=n<=RedrawType.MINOR?RedrawType.TRIVIAL:n;e.prototype.markDirty.call(this,t,n,r)},t.prototype.containsPoint=function(e,t){return!0},t.prototype.computeBBox=function(){return this.computeTransformMatrix(),t.computeBBox(this.children)},t.prototype.computeTransformedBBox=function(){return this.computeBBox()},t.prototype.render=function(t){var n,r,o,i,a=this.opts,s=(void 0===a?{}:a).name,l=void 0===s?void 0:s,c=this._debug,u=(void 0===c?{}:c).consoleLog,d=void 0!==u&&u,p=this,h=p.dirty,f=p.dirtyZIndex,g=p.layer,m=p.children,v=p.clipRect,y=t.ctx,A=t.forceRender,w=t.clipBBox,b=t.resized,_=t.stats,C=y.getTransform(),E=h>=RedrawType.MINOR||f||b,S=E||m.some(function(e){return e.dirty>=RedrawType.TRIVIAL});if(l&&d&&Logger.debug({name:l,group:this,isDirty:E,isChildDirty:S,renderCtx:t,forceRender:A}),g){var O=this.computeBBox();void 0!==this.lastBBox&&this.lastBBox.equals(O)?O.isInfinite()||(A=!1):(A=!0,this.lastBBox=O)}if(!E&&!S&&!A){if(l&&d&&_){var x=this.nodeCount;Logger.debug({name:l,result:"skipping",renderCtx:t,counts:x,group:this})}return g&&_&&(_.layersSkipped++,_.nodesSkipped+=this.nodeCount.count),void this.markClean({recursive:!1})}var D=this.visible;if(g){if((y=g.context).save(),y.resetTransform(),A=!0,g.clear(),w){var P=w.width,M=w.height,T=w.x,R=w.y;d&&Logger.debug({name:l,clipBBox:w,ctxTransform:y.getTransform(),renderCtx:t,group:this}),this.clipCtx(y,T,R,P,M)}y.setTransform(C)}else y.globalAlpha*=this.opacity;this.computeTransformMatrix(),this.matrix.toContext(y),v&&(T=v.x,R=v.y,P=v.width,M=v.height,y.save(),d&&Logger.debug({name:l,clipRect:v,ctxTransform:y.getTransform(),renderCtx:t,group:this}),this.clipCtx(y,T,R,P,M),w=this.matrix.inverse().transformBBox(v)),f&&(this.sortChildren(),A=!0);var I=A!==t.forceRender||w!==t.clipBBox||y!==t.ctx?__assign$H(__assign$H({},t),{ctx:y,forceRender:A,clipBBox:w}):t,F=0;try{for(var k=__values$A(m),L=k.next();!L.done;L=k.next()){var B=L.value;B.visible&&D?A||B.dirty!==RedrawType.NONE?(y.save(),B.render(I),y.restore()):_&&(F+=B.nodeCount.count):(B.markClean(),_&&(F+=B.nodeCount.count))}}catch(e){n={error:e}}finally{try{L&&!L.done&&(r=k.return)&&r.call(k)}finally{if(n)throw n.error}}_&&(_.nodesSkipped+=F),e.prototype.render.call(this,t),v&&y.restore(),g&&(_&&_.layersRendered++,y.restore(),g.snapshot(),null===(i=(o=g.context).verifyDepthZero)||void 0===i||i.call(o)),l&&d&&_&&(x=this.nodeCount,Logger.debug({name:l,result:"rendered",skipped:F,renderCtx:t,counts:x,group:this}))},t.prototype.sortChildren=function(){this.dirtyZIndex=!1,this.children.sort(function(e,t){var n,r;return compoundAscending(__spread$z([e.zIndex],null!==(n=e.zIndexSubOrder)&&void 0!==n?n:[void 0,void 0],[e.serialNumber]),__spread$z([t.zIndex],null!==(r=t.zIndexSubOrder)&&void 0!==r?r:[void 0,void 0],[t.serialNumber]),ascendingStringNumberUndefined)})},t.prototype.clipCtx=function(e,t,n,r,o){e.beginPath(),e.moveTo(t,n),e.lineTo(t+r,n),e.lineTo(t+r,n+o),e.lineTo(t,n+o),e.closePath(),e.clip()},t.computeBBox=function(e){var t=1/0,n=-1/0,r=1/0,o=-1/0;return e.forEach(function(e){if(e.visible){var i=e.computeTransformedBBox();if(i){var a=i.x,s=i.y;a<t&&(t=a),s<r&&(r=s),a+i.width>n&&(n=a+i.width),s+i.height>o&&(o=s+i.height)}}}),new BBox(t,r,n-t,o-r)},t.prototype.setClipRectInGroupCoordinateSpace=function(e){this.clipRect=e?this.transformBBox(e):void 0},t.className="Group",__decorate$1U([SceneChangeDetection({convertor:function(e){return Math.min(1,Math.max(0,e))}})],t.prototype,"opacity",void 0),t}(Node),HdpiOffscreenCanvas=function(){function e(e){var t=e.width,n=void 0===t?600:t,r=e.height,o=void 0===r?300:r,i=e.overrideDevicePixelRatio,a=void 0===i?void 0:i;this.enabled=!0,this._pixelRatio=NaN,this._width=0,this._height=0,this.canvas=new OffscreenCanvas(n,o),this.context=this.canvas.getContext("2d"),this.imageSource=this.canvas.transferToImageBitmap(),this.setPixelRatio(a),this.resize(n,o)}return e.isSupported=function(){return null!=window.OffscreenCanvas},e.prototype.snapshot=function(){this.imageSource.close(),this.imageSource=this.canvas.transferToImageBitmap()},e.prototype.destroy=function(){this.imageSource.close(),this.canvas.width=0,this.canvas.height=0,this.context.clearRect(0,0,0,0)},e.prototype.clear=function(){this.context.save(),this.context.resetTransform(),this.context.clearRect(0,0,this.width,this.height),this.context.restore()},Object.defineProperty(e.prototype,"pixelRatio",{get:function(){return this._pixelRatio},enumerable:!1,configurable:!0}),e.prototype.setPixelRatio=function(e){var t=null!=e?e:window.devicePixelRatio;isDesktop()||(t=1),HdpiCanvas.overrideScale(this.context,t),this._pixelRatio=t},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),e.prototype.resize=function(e,t){if(e>0&&t>0){var n=this,r=n.canvas,o=n.context,i=n.pixelRatio;r.width=Math.round(e*i),r.height=Math.round(t*i),o.resetTransform(),this._width=e,this._height=t}},e}(),__assign$G=function(){return __assign$G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$G.apply(this,arguments)},__awaiter$f=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$f=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__read$X=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$y=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$X(arguments[t]));return e},__values$z=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function buildSceneNodeHighlight(){var e,t=null!==(e=windowValue("agChartsSceneDebug"))&&void 0!==e?e:[];"string"==typeof t&&(t=[t]);var n=[];return t.forEach(function(e){"layout"===e?n.push("seriesRoot","legend","root",/.*Axis-\d+-axis.*/):n.push(e)}),n}var Scene=function(){function e(e){var t,n;this.id=createId$1(this),this.layers=[],this._nextZIndex=0,this._nextLayerId=0,this._dirty=!1,this._root=null,this.debug={dirtyTree:!1,stats:!1,renderBoundingBoxes:!1,consoleLog:!1,sceneNodeHighlight:[]};var r=e.document,o=void 0===r?window.document:r,i=e.mode,a=void 0===i?windowValue("agChartsSceneRenderModel")||"adv-composite":i,s=e.width,l=e.height,c=e.overrideDevicePixelRatio,u=void 0===c?void 0:c;this.overrideDevicePixelRatio=u,this.opts={document:o,mode:a},this.debug.consoleLog=!0===windowValue("agChartsDebug"),this.debug.stats=null!==(t=windowValue("agChartsSceneStats"))&&void 0!==t&&t,this.debug.dirtyTree=null!==(n=windowValue("agChartsSceneDirtyTree"))&&void 0!==n&&n,this.debug.sceneNodeHighlight=buildSceneNodeHighlight(),this.canvas=new HdpiCanvas({document:o,width:s,height:l,overrideDevicePixelRatio:u})}return Object.defineProperty(e.prototype,"container",{get:function(){return this.canvas.container},set:function(e){this.canvas.container=e},enumerable:!1,configurable:!0}),e.prototype.download=function(e,t){this.canvas.download(e,t)},e.prototype.getDataURL=function(e){return this.canvas.getDataURL(e)},Object.defineProperty(e.prototype,"width",{get:function(){return this.pendingSize?this.pendingSize[0]:this.canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.pendingSize?this.pendingSize[1]:this.canvas.height},enumerable:!1,configurable:!0}),e.prototype.resize=function(e,t){e=Math.round(e),t=Math.round(t);var n=e<=0||t<=0,r=isNaN(e)||isNaN(t);return!(e===this.width&&t===this.height||r||n||(this.pendingSize=[e,t],this.markDirty(),0))},e.prototype.addLayer=function(e){var t,n=this.opts.mode;if(["composite","dom-composite","adv-composite"].includes(n)){var r=e.zIndex,o=void 0===r?this._nextZIndex++:r,i=e.name,a=e.zIndexSubOrder,s=e.getComputedOpacity,l=e.getVisibility,c=this,u=c.width,d=c.height,p=c.overrideDevicePixelRatio,h="dom-composite"===n,f="adv-composite"===n&&HdpiOffscreenCanvas.isSupported()?new HdpiOffscreenCanvas({width:u,height:d,overrideDevicePixelRatio:p}):new HdpiCanvas({document:this.opts.document,width:u,height:d,domLayer:h,zIndex:o,name:i,overrideDevicePixelRatio:p}),g={id:this._nextLayerId++,name:i,zIndex:o,zIndexSubOrder:a,canvas:f,getComputedOpacity:s,getVisibility:l};if(o>=this._nextZIndex&&(this._nextZIndex=o+1),this.layers.push(g),this.sortLayers(),h){var m=this.layers.map(function(e){return e.canvas}).filter(function(e){return e instanceof HdpiCanvas}),v=m.findIndex(function(e){return e===f});(null!==(t=m[v-1])&&void 0!==t?t:this.canvas).element.insertAdjacentElement("afterend",f.element)}return this.debug.consoleLog&&Logger.debug({layers:this.layers}),g.canvas}},e.prototype.removeLayer=function(e){var t=this.layers.findIndex(function(t){return t.canvas===e});t>=0&&(this.layers.splice(t,1),e.destroy(),this.markDirty(),this.debug.consoleLog&&Logger.debug({layers:this.layers}))},e.prototype.moveLayer=function(e,t,n){var r=this.layers.find(function(t){return t.canvas===e});r&&(r.zIndex=t,r.zIndexSubOrder=n,this.sortLayers(),this.markDirty(),this.debug.consoleLog&&Logger.debug({layers:this.layers}))},e.prototype.sortLayers=function(){this.layers.sort(function(e,t){var n,r;return compoundAscending(__spread$y([e.zIndex],null!==(n=e.zIndexSubOrder)&&void 0!==n?n:[void 0,void 0],[e.id]),__spread$y([t.zIndex],null!==(r=t.zIndexSubOrder)&&void 0!==r?r:[void 0,void 0],[t.id]),ascendingStringNumberUndefined)})},e.prototype.markDirty=function(){this._dirty=!0},Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._root},set:function(e){e!==this._root&&(this._root&&this._root._setLayerManager(),this._root=e,e&&(null===e.parent&&e.layerManager&&e.layerManager!==this&&(e.layerManager.root=null),e._setLayerManager(this)),this.markDirty())},enumerable:!1,configurable:!0}),e.prototype.strip=function(){var e,t,n=this.layers;try{for(var r=__values$z(n),o=r.next();!o.done;o=r.next()){var i=o.value;i.canvas.destroy(),delete i.canvas}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}n.splice(0,n.length),this.root=null,this._dirty=!1,this.canvas.context.resetTransform()},e.prototype.destroy=function(){this.container=void 0,this.strip(),this.canvas.destroy(),Object.assign(this,{canvas:void 0,ctx:void 0})},e.prototype.render=function(e){var t;return __awaiter$f(this,void 0,void 0,function(){var n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A;return __generator$f(this,function(w){return r=(n=e||{}).debugSplitTimes,o=void 0===r?[performance.now()]:r,i=n.extraDebugStats,a=void 0===i?{}:i,l=(s=this).canvas,c=s.canvas.context,u=s.root,d=s.layers,p=s.pendingSize,h=s.opts.mode,p&&((A=this.canvas).resize.apply(A,__spread$y(p)),this.layers.forEach(function(e){var t;return(t=e.canvas).resize.apply(t,__spread$y(p))}),this.pendingSize=void 0),u&&!u.visible?(this._dirty=!1,[2]):u&&!this.dirty?(this.debug.consoleLog&&Logger.debug("no-op",{redrawType:RedrawType[u.dirty],tree:this.buildTree(u)}),this.debugStats(o,c,void 0,a),[2]):(f={ctx:c,forceRender:!0,resized:!!p,debugNodes:{}},"detailed"===this.debug.stats&&(f.stats={layersRendered:0,layersSkipped:0,nodesRendered:0,nodesSkipped:0}),g=!1,(!u||u.dirty>=RedrawType.TRIVIAL)&&(g=!0,l.clear()),u&&this.debug.dirtyTree&&(m=this.buildDirtyTree(u),v=m.dirtyTree,y=m.paths,Logger.debug({dirtyTree:v,paths:y})),u&&g&&(this.debug.consoleLog&&Logger.debug("before",{redrawType:RedrawType[u.dirty],canvasCleared:g,tree:this.buildTree(u)}),u.visible&&(c.save(),u.render(f),c.restore())),"dom-composite"!==h&&d.length>0&&g&&(this.sortLayers(),c.save(),c.setTransform(1/l.pixelRatio,0,0,1/l.pixelRatio,0,0),d.forEach(function(e){var t=e.canvas,n=t.imageSource,r=t.enabled,o=e.getComputedOpacity,i=e.getVisibility;r&&i()&&(c.globalAlpha=o(),c.drawImage(n,0,0))}),c.restore()),null===(t=c.verifyDepthZero)||void 0===t||t.call(c),this._dirty=!1,this.debugStats(o,c,f.stats,a),this.debugSceneNodeHighlight(c,this.debug.sceneNodeHighlight,f.debugNodes),u&&this.debug.consoleLog&&Logger.debug("after",{redrawType:RedrawType[u.dirty],canvasCleared:g,tree:this.buildTree(u)}),[2])})})},e.prototype.debugStats=function(e,t,n,r){var o,i;void 0===r&&(r={});var a=performance.now();if(this.debug.stats){var s=e[0];e.push(a);var l=function(e,t){var n=e+t;return e+" / "+n+" ("+Math.round(100*e/n)+"%)"},c=function(e,t){return Math.round(100*(t-e))/100+"ms"},u=null!=n?n:{},d=u.layersRendered,p=void 0===d?0:d,h=u.layersSkipped,f=void 0===h?0:h,g=u.nodesRendered,m=void 0===g?0:g,v=u.nodesSkipped,y=void 0===v?0:v,A=e.map(function(t,n){return n>0?c(e[n-1],t):null}).filter(function(e){return null!=e}).join(" + "),w=Object.entries(r).map(function(e){var t=__read$X(e,2);return t[0]+": "+t[1]}).join(" ; "),b=[c(s,a)+" ("+A+")",""+w,"detailed"===this.debug.stats?"Layers: "+l(p,f):null,"detailed"===this.debug.stats?"Nodes: "+l(m,y):null].filter(function(e){return null!=e});t.save(),t.fillStyle="white",t.fillRect(0,0,200,10+15*b.length),t.fillStyle="black";var _=0;try{for(var C=__values$z(b),E=C.next();!E.done;E=C.next()){var S=E.value;t.fillText(S,2,10+15*_++)}}catch(e){o={error:e}}finally{try{E&&!E.done&&(i=C.return)&&i.call(C)}finally{if(o)throw o.error}}t.restore()}},e.prototype.debugSceneNodeHighlight=function(e,t,n){var r,o,i,a,s,l,c,u=function(e){return function(t){return!!e.test(t.id)||t instanceof Group&&null!=t.name&&e.test(t.name)}},d=function(e){return function(t){return e===t.id||t instanceof Group&&null!=t.name&&e===t.name}};try{for(var p=__values$z(t),h=p.next();!h.done;h=p.next()){var f=h.value;if("string"!=typeof f||null==n[f]){var g="string"==typeof f?d(f):u(f),m=null===(c=this.root)||void 0===c?void 0:c.findNodes(g);if(m&&0!==m.length)try{for(var v=(i=void 0,__values$z(m)),y=v.next();!y.done;y=v.next())(b=y.value)instanceof Group&&b.name?n[b.name]=b:n[b.id]=b}catch(e){i={error:e}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}else Logger.debug("no debugging node with id ["+f+"] in scene graph.")}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}e.save();try{for(var A=__values$z(Object.entries(n)),w=A.next();!w.done;w=A.next()){var b,_=__read$X(w.value,2),C=_[0],E=(b=_[1]).computeTransformedBBox();E?(e.globalAlpha=.8,e.strokeStyle="red",e.lineWidth=1,e.strokeRect(E.x,E.y,E.width,E.height),e.fillStyle="red",e.strokeStyle="white",e.font="16px sans-serif",e.textBaseline="top",e.textAlign="left",e.lineWidth=2,e.strokeText(C,E.x,E.y,E.width),e.fillText(C,E.x,E.y,E.width)):Logger.debug("no bbox for debugged node ["+C+"].")}}catch(e){s={error:e}}finally{try{w&&!w.done&&(l=A.return)&&l.call(A)}finally{if(s)throw s.error}}e.restore()},e.prototype.buildTree=function(e){var t,n=this,r=null!==(t=e instanceof Group?e.name:null)&&void 0!==t?t:e.id;return __assign$G({name:r,node:e,dirty:RedrawType[e.dirty]},e.children.map(function(e){return n.buildTree(e)}).reduce(function(e,t){var n=t.name,r=t.node,o=r.visible,i=r.opacity,a=r.zIndex,s=r.zIndexSubOrder,l=t.node;return(!o||i<=0)&&(n="("+n+")"),l instanceof Group&&l.isLayer()&&(n="*"+n+"*"),e[[""+(null!=n?n:"<unknown>"),"z: "+a,s&&"zo: "+s.join(" / ")].filter(function(e){return!!e}).join(" ")]=t,e},{}))},e.prototype.buildDirtyTree=function(e){var t,n=this;if(e.dirty===RedrawType.NONE)return{dirtyTree:{},paths:[]};var r=e.children.map(function(e){return n.buildDirtyTree(e)}).filter(function(e){return e.paths.length>0}),o=null!==(t=e instanceof Group?e.name:null)&&void 0!==t?t:e.id,i=0===r.length?[o]:r.map(function(e){return e.paths}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return o+"."+e});return{dirtyTree:__assign$G({name:o,node:e,dirty:RedrawType[e.dirty]},r.map(function(e){return e.dirtyTree}).filter(function(e){return void 0!==e.dirty}).reduce(function(e,t){return e[t.name||"<unknown>"]=t,e},{})),paths:i}},e.className="Scene",e}(),Observable=function(){function e(){this.allEventListeners=new Map}return e.prototype.addEventListener=function(e,t){if("function"!=typeof t)throw new Error("AG Charts - listener must be a Function");var n=this.allEventListeners,r=n.get(e);r||(r=new Set,n.set(e,r)),r.has(t)||r.add(t)},e.prototype.removeEventListener=function(e,t){var n=this.allEventListeners,r=n.get(e);r&&(r.delete(t),0===r.size&&n.delete(e))},e.prototype.hasEventListener=function(e){return this.allEventListeners.has(e)},e.prototype.clearEventListeners=function(){this.allEventListeners.clear()},e.prototype.fireEvent=function(e){var t=this.allEventListeners.get(e.type);null==t||t.forEach(function(t){return t(e)})},e}(),isString$1=function(e){return"string"==typeof e},isStringObject$1=function(e){return!!e&&Object.prototype.hasOwnProperty.call(e,"toString")&&isString$1(e.toString())},isDate$1=function(e){return e instanceof Date&&!isNaN(+e)};function isDiscrete(e){return isString$1(e)||isStringObject$1(e)}function isContinuous(e){var t;return isNumber$4(e)||!!(t=e)&&Object.prototype.hasOwnProperty.call(t,"valueOf")&&isNumber$4(t.valueOf())||function(e){return e instanceof Date&&!isNaN(+e)}(e)}function checkDatum(e,t){return t&&isContinuous(e)?e:t?void 0:isDiscrete(e)?e:String(e)}var isNumber$4=function(e){return"number"==typeof e&&Number.isFinite(e)},__values$y=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},BREAK_TRANSFORM_CHAIN=Symbol("BREAK"),CONFIG_KEY="__decorator_config";function initialiseConfig(e,t,n,r){null==Object.getOwnPropertyDescriptor(e,CONFIG_KEY)&&Object.defineProperty(e,CONFIG_KEY,{value:{}});var o=e[CONFIG_KEY];if(null!=o[n])return o[n];o[n]={setters:[],getters:[]};var i=Object.getOwnPropertyDescriptor(e,t),a=null==i?void 0:i.set,s=null==i?void 0:i.get;return Object.defineProperty(e,t,{set:function(e){var i,l,c,u,d,p=null!==(u=null===(c=o[n])||void 0===c?void 0:c.setters)&&void 0!==u?u:[];p.some(function(e){return e.length>2})&&(d=s?s.call(this):this[r]);try{for(var h=__values$y(p),f=h.next();!f.done;f=h.next())if((e=(0,f.value)(this,t,e,d))===BREAK_TRANSFORM_CHAIN)return}catch(e){i={error:e}}finally{try{f&&!f.done&&(l=h.return)&&l.call(h)}finally{if(i)throw i.error}}a?a.call(this,e):this[r]=e},get:function(){var e,i,a,l,c=s?s.call(this):this[r];try{for(var u=__values$y(null!==(l=null===(a=o[n])||void 0===a?void 0:a.getters)&&void 0!==l?l:[]),d=u.next();!d.done;d=u.next())if((c=(0,d.value)(this,t,c))===BREAK_TRANSFORM_CHAIN)return}catch(t){e={error:t}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}return c},enumerable:!0,configurable:!1}),o[n]}function addTransformToInstanceProperty(e,t){return function(n,r){var o=r.toString(),i=initialiseConfig(n,r,o,"__"+o),a=i.getters;i.setters.push(e),t&&a.splice(0,0,t)}}function createDeprecationWarning(){return function(e,t){var n=["Property ["+e+"] is deprecated.",t].filter(function(e){return null!=e}).join(" ");Logger.warnOnce(n)}}function Deprecated(e,t){var n=null==t?void 0:t.default,r=createDeprecationWarning();return addTransformToInstanceProperty(function(t,o,i){return i!==n&&r(o.toString(),e),i})}function DeprecatedAndRenamedTo(e,t){var n=createDeprecationWarning();return addTransformToInstanceProperty(function(r,o,i){return i!==r[e]&&(n(o.toString(),"Use ["+e+"] instead."),r[e]=t?t(i):i),BREAK_TRANSFORM_CHAIN},function(t,r){return n(r.toString(),"Use ["+e+"] instead."),t[e]})}var __read$W=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Color=function(){function e(e,t,n,r){void 0===r&&(r=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,n||0)),this.a=Math.min(1,Math.max(0,r||0))}return e.validColorString=function(t){return t.indexOf("#")>=0?!!e.parseHex(t):t.indexOf("rgb")>=0?!!e.stringToRgba(t):!!e.nameToHex[t.toLowerCase()]},e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var n=e.nameToHex[t.toLowerCase()];if(n)return e.fromHexString(n);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.tryParseFromString=function(t){try{return e.fromString(t)}catch(n){return Logger.warnOnce("invalid color string: '"+t+"'."),e.fromArray([0,0,0])}},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((null==t?void 0:t.length)>=3&&t.every(function(e){return e>=0}))return 3===t.length&&t.push(255),t},e.fromHexString=function(t){var n=e.parseHex(t);if(n){var r=__read$W(n,4);return new e(r[0]/255,r[1]/255,r[2]/255,r[3]/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.stringToRgba=function(e){for(var t=__read$W([NaN,NaN],2),n=t[0],r=t[1],o=0;o<e.length;o++){var i=e[o];if(n||"("!==i){if(")"===i){r=o;break}}else n=o}var a=n&&r&&e.substring(n+1,r);if(a){var s=a.split(","),l=[];for(o=0;o<s.length;o++){var c=s[o],u=parseFloat(c);if(isNaN(u))return;c.indexOf("%")>=0?(u=Math.max(0,Math.min(100,u)),u/=100):3===o?u=Math.max(0,Math.min(1,u)):(u=Math.max(0,Math.min(255,u)),u/=255),l.push(u)}return l}},e.fromRgbaString=function(t){var n=e.stringToRgba(t);if(n){if(3===n.length)return new e(n[0],n[1],n[2]);if(4===n.length)return new e(n[0],n[1],n[2],n[3])}throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,n,r,o){void 0===o&&(o=1);var i=e.HSBtoRGB(t,n,r);return new e(i[0],i[1],i[2],o)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],n=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*n)/n),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,n){var r=Math.min(e,t,n),o=Math.max(e,t,n),i=NaN;if(r!==o){var a=o-r,s=(o-e)/a,l=(o-t)/a,c=(o-n)/a;i=e===o?c-l:t===o?2+s-c:4+l-s,(i/=6)<0&&(i+=1)}return[360*i,0!==o?(o-r)/o:0,o]},e.HSBtoRGB=function(e,t,n){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var r=0,o=0,i=0;if(0===t)r=o=i=n;else{var a=6*(e-Math.floor(e)),s=a-Math.floor(a),l=n*(1-t),c=n*(1-t*s),u=n*(1-t*(1-s));switch(0|a){case 0:r=n,o=u,i=l;break;case 1:r=c,o=n,i=l;break;case 2:r=l,o=n,i=u;break;case 3:r=l,o=c,i=n;break;case 4:r=u,o=l,i=n;break;case 5:r=n,o=l,i=c}}return[r,o,i]},e.prototype.derive=function(t,n,r,o){var i=e.RGBtoHSB(this.r,this.g,this.b),a=i[2];0==a&&r>1&&(a=.05);var s=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*n,1),0);a=Math.max(Math.min(a*r,1),0);var c=Math.max(Math.min(this.a*o,1),0),u=e.HSBtoRGB(s,l,a);return u.push(c),e.fromArray(u)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.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",transparent:"#00000000",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}();function Validate(e){return addTransformToInstanceProperty(function(t,n,r){var o,i,a;if(e(r,{target:t}))return r;var s=n.toString().replace(/^_*/,""),l=null!==(i=null===(o=t.constructor)||void 0===o?void 0:o.className)&&void 0!==i?i:null===(a=t.constructor)||void 0===a?void 0:a.name;(null==l?void 0:l.length)<3&&(l=null);var c=l?"of ["+l+"] ":"";return e.message?Logger.warn("Property ["+s+"] "+c+"cannot be set to ["+JSON.stringify(r)+"]; "+e.message+", ignoring."):Logger.warn("Property ["+s+"] "+c+"cannot be set to ["+JSON.stringify(r)+"], ignoring."),BREAK_TRANSFORM_CHAIN})}function predicateWithMessage(e,t){return e.message=t,e}var OPTIONAL=function(e,t,n){return void 0===e||n(e,t)},ARRAY=function(e,t){return predicateWithMessage(function(n,r){return Array.isArray(n)&&(!e||n.length===e)&&(!t||n.every(function(e){return t(e,r)}))},"expecting an Array")},OPT_ARRAY=function(e){return predicateWithMessage(function(t,n){return OPTIONAL(t,n,ARRAY(e))},"expecting an optional Array")},AND=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return predicateWithMessage(function(t,n){return e.every(function(e){return e(t,n)})},e.map(function(e){return e.message}).filter(function(e){return null!=e}).join(" AND "))},OR=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return predicateWithMessage(function(t,n){return e.some(function(e){return e(t,n)})},e.map(function(e){return e.message}).filter(function(e){return null!=e}).join(" OR "))},isComparable=function(e){return null!=e&&!isNaN(e)},LESS_THAN=function(e){return predicateWithMessage(function(t,n){return!isComparable(t)||!isComparable(n.target[e])||t<n.target[e]},"expected to be less than "+e)},GREATER_THAN=function(e){return predicateWithMessage(function(t,n){return!isComparable(t)||!isComparable(n.target[e])||t>n.target[e]},"expected to be greater than "+e)},FUNCTION=predicateWithMessage(function(e){return"function"==typeof e},"expecting a Function"),OPT_FUNCTION=predicateWithMessage(function(e,t){return OPTIONAL(e,t,FUNCTION)},"expecting an optional Function"),BOOLEAN=predicateWithMessage(function(e){return!0===e||!1===e},"expecting a Boolean"),OPT_BOOLEAN=predicateWithMessage(function(e,t){return OPTIONAL(e,t,BOOLEAN)},"expecting an optional Boolean"),STRING=predicateWithMessage(function(e){return"string"==typeof e},"expecting a String"),OPT_STRING=predicateWithMessage(function(e,t){return OPTIONAL(e,t,STRING)},"expecting an optional String"),DATE=predicateWithMessage(function(e){return e instanceof Date&&!isNaN(+e)},"expecting a Date object"),OPT_DATE=predicateWithMessage(function(e,t){return OPTIONAL(e,t,DATE)},"expecting an optional Date");predicateWithMessage(ARRAY(void 0,DATE),"expecting an Array of Date objects");var DATETIME_MS=NUMBER(0),OPT_DATETIME_MS=predicateWithMessage(function(e,t){return OPTIONAL(e,t,DATETIME_MS)},"expecting an optional number"),OPT_DATE_OR_DATETIME_MS=OR(OPT_DATE,OPT_DATETIME_MS),colorMessage="A color string can be in one of the following formats to be valid: #rgb, #rrggbb, rgb(r, g, b), rgba(r, g, b, a) or a CSS color name such as 'white', 'orange', 'cyan', etc",COLOR_STRING=predicateWithMessage(function(e){return"string"==typeof e&&Color.validColorString(e)},"expecting a color String. "+colorMessage),OPT_COLOR_STRING=predicateWithMessage(function(e,t){return OPTIONAL(e,t,COLOR_STRING)},"expecting an optional color String. "+colorMessage),COLOR_STRING_ARRAY=predicateWithMessage(ARRAY(void 0,COLOR_STRING),"expecting an Array of color strings. "+colorMessage),OPT_COLOR_STRING_ARRAY=predicateWithMessage(function(e,t){return OPTIONAL(e,t,COLOR_STRING_ARRAY)},"expecting an optional Array of color strings. "+colorMessage);function NUMBER(e,t){return predicateWithMessage(function(n){return"number"==typeof n&&Number.isFinite(n)&&(void 0===e||n>=e)&&(void 0===t||n<=t)},"expecting a finite Number"+(void 0!==e?", more than or equal to "+e:"")+(void 0!==t?", less than or equal to "+t:""))}function OPT_NUMBER(e,t){return predicateWithMessage(function(n,r){return OPTIONAL(n,r,NUMBER(e,t))},"expecting an optional finite Number"+(void 0!==e?", more than or equal to "+e:"")+(void 0!==t?", less than or equal to "+t:""))}function NUMBER_OR_NAN(e,t){return predicateWithMessage(function(n){return"number"==typeof n&&(isNaN(n)||Number.isFinite(n)&&(void 0===e||n>=e)&&(void 0===t||n<=t))},"expecting a finite Number"+(void 0!==e?", more than or equal to "+e:"")+(void 0!==t?", less than or equal to "+t:""))}var NUMBER_ARRAY=predicateWithMessage(ARRAY(void 0,NUMBER()),"expecting an Array of numbers"),OPT_NUMBER_ARRAY=predicateWithMessage(function(e,t){return OPTIONAL(e,t,NUMBER_ARRAY)},"expecting an optional Array of numbers"),STRING_ARRAY=predicateWithMessage(ARRAY(void 0,STRING),"expecting an Array of strings");function STRING_UNION(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return predicateWithMessage(function(t){return"string"==typeof t&&e.indexOf(t)>=0},"expecting one of: "+e.join(", "))}predicateWithMessage(function(e,t){return OPTIONAL(e,t,STRING_ARRAY)},"expecting an optional Array of strings");var BOOLEAN_ARRAY=predicateWithMessage(ARRAY(void 0,BOOLEAN),"expecting an Array of boolean values");predicateWithMessage(function(e,t){return OPTIONAL(e,t,BOOLEAN_ARRAY)},"expecting an optional Array of boolean values");var FONT_WEIGHTS=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],FONT_STYLE=predicateWithMessage(function(e){return"normal"===e||"italic"===e||"oblique"===e},"expecting a font style keyword such as 'normal', 'italic' or 'oblique'"),OPT_FONT_STYLE=predicateWithMessage(function(e,t){return OPTIONAL(e,t,FONT_STYLE)},"expecting an optional font style keyword such as 'normal', 'italic' or 'oblique'"),FONT_WEIGHT=predicateWithMessage(function(e){return FONT_WEIGHTS.includes(e)},"expecting a font weight keyword such as 'normal', 'bold' or 'bolder' or a numeric value such as 100, 300 or 600"),OPT_FONT_WEIGHT=predicateWithMessage(function(e,t){return OPTIONAL(e,t,FONT_WEIGHT)},"expecting an optional font weight keyword such as 'normal', 'bold' or 'bolder' or a numeric value such as 100, 300 or 600"),LINE_DASH=predicateWithMessage(ARRAY(void 0,NUMBER(0)),"expecting an Array of numbers specifying the length in pixels of alternating dashes and gaps, for example, [6, 3] means dashes with a length of 6 pixels with gaps between of 3 pixels."),OPT_LINE_DASH=predicateWithMessage(function(e,t){return OPTIONAL(e,t,LINE_DASH)},"expecting an optional Array of numbers specifying the length in pixels of alternating dashes and gaps, for example, [6, 3] means dashes with a length of 6 pixels with gaps between of 3 pixels."),LINE_CAPS=["butt","round","square"],LINE_CAP=predicateWithMessage(function(e){return LINE_CAPS.includes(e)},"expecting a line cap keyword such as 'butt', 'round' or 'square'");predicateWithMessage(function(e,t){return OPTIONAL(e,t,LINE_CAP)},"expecting an optional line cap keyword such as 'butt', 'round' or 'square'");var LINE_JOINS=["round","bevel","miter"],LINE_JOIN=predicateWithMessage(function(e){return LINE_JOINS.includes(e)},"expecting a line join keyword such as 'round', 'bevel' or 'miter'");predicateWithMessage(function(e,t){return OPTIONAL(e,t,LINE_JOIN)},"expecting an optional line join keyword such as 'round', 'bevel' or 'miter'");var POSITIONS=["top","right","bottom","left"],POSITION=predicateWithMessage(function(e){return POSITIONS.includes(e)},"expecting a position keyword such as 'top', 'right', 'bottom' or 'left"),INTERACTION_RANGES=["exact","nearest"],INTERACTION_RANGE=predicateWithMessage(function(e){return"number"==typeof e&&Number.isFinite(e)||INTERACTION_RANGES.includes(e)},"expecting an interaction range of 'exact', 'nearest' or a number"),Layers,ChartAxisDirection;!function(e){e[e.SERIES_BACKGROUND_ZINDEX=-10]="SERIES_BACKGROUND_ZINDEX",e[e.AXIS_GRID_ZINDEX=0]="AXIS_GRID_ZINDEX",e[e.AXIS_ZINDEX=20]="AXIS_ZINDEX",e[e.SERIES_CROSSLINE_RANGE_ZINDEX=30]="SERIES_CROSSLINE_RANGE_ZINDEX",e[e.SERIES_LAYER_ZINDEX=500]="SERIES_LAYER_ZINDEX",e[e.SERIES_CROSSHAIR_ZINDEX=1e3]="SERIES_CROSSHAIR_ZINDEX",e[e.SERIES_LABEL_ZINDEX=1500]="SERIES_LABEL_ZINDEX",e[e.SERIES_CROSSLINE_LINE_ZINDEX=2500]="SERIES_CROSSLINE_LINE_ZINDEX",e[e.LEGEND_ZINDEX=3e3]="LEGEND_ZINDEX"}(Layers||(Layers={})),function(e){e.X="x",e.Y="y"}(ChartAxisDirection||(ChartAxisDirection={}));var __decorate$1T=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__values$x=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},DEFAULT_TOOLTIP_CLASS="ag-chart-tooltip",defaultTooltipCss$1="\n."+DEFAULT_TOOLTIP_CLASS+" {\n    transition: transform 0.1s ease;\n    display: table;\n    position: fixed;\n    left: 0px;\n    top: 0px;\n    white-space: nowrap;\n    z-index: 99999;\n    font: 12px Verdana, sans-serif;\n    color: black;\n    background: rgb(244, 244, 244);\n    border-radius: 5px;\n    box-shadow: 0 0 1px rgba(3, 3, 3, 0.7), 0.5vh 0.5vh 1vh rgba(3, 3, 3, 0.25);\n}\n\n."+DEFAULT_TOOLTIP_CLASS+"-no-interaction {\n    pointer-events: none;\n    user-select: none;\n}\n\n."+DEFAULT_TOOLTIP_CLASS+"-no-animation {\n    transition: none !important;\n}\n\n."+DEFAULT_TOOLTIP_CLASS+"-hidden {\n    visibility: hidden;\n}\n\n."+DEFAULT_TOOLTIP_CLASS+"-title {\n    font-weight: bold;\n    padding: 7px;\n    border-top-left-radius: 5px;\n    border-top-right-radius: 5px;\n    color: white;\n    background-color: #888888;\n    border-top-left-radius: 5px;\n    border-top-right-radius: 5px;\n}\n\n."+DEFAULT_TOOLTIP_CLASS+"-content {\n    padding: 7px;\n    line-height: 1.7em;\n    border-bottom-left-radius: 5px;\n    border-bottom-right-radius: 5px;\n    overflow: hidden;\n}\n\n."+DEFAULT_TOOLTIP_CLASS+"-content:empty {\n    padding: 0;\n    height: 7px;\n}\n\n."+DEFAULT_TOOLTIP_CLASS+'-arrow::before {\n    content: "";\n\n    position: absolute;\n    top: 100%;\n    left: 50%;\n    transform: translateX(-50%);\n\n    border: 6px solid #989898;\n\n    border-left-color: transparent;\n    border-right-color: transparent;\n    border-top-color: #989898;\n    border-bottom-color: transparent;\n\n    width: 0;\n    height: 0;\n\n    margin: 0 auto;\n}\n\n.'+DEFAULT_TOOLTIP_CLASS+'-arrow::after {\n    content: "";\n\n    position: absolute;\n    top: 100%;\n    left: 50%;\n    transform: translateX(-50%);\n\n    border: 5px solid black;\n\n    border-left-color: transparent;\n    border-right-color: transparent;\n    border-top-color: rgb(244, 244, 244);\n    border-bottom-color: transparent;\n\n    width: 0;\n    height: 0;\n\n    margin: 0 auto;\n}\n\n.ag-chart-wrapper {\n    box-sizing: border-box;\n    overflow: hidden;\n}\n';function toTooltipHtml$1(e,t){if("string"==typeof e)return e;t=t||{};var n=e.content,r=void 0===n?t.content||"":n,o=e.title,i=void 0===o?t.title||void 0:o,a=e.color,s=void 0===a?t.color||"white":a,l=e.backgroundColor,c=void 0===l?t.backgroundColor||"#888":l;return(i?'<div class="'+DEFAULT_TOOLTIP_CLASS+'-title"\n        style="color: '+s+"; background-color: "+c+'">'+i+"</div>":"")+'<div class="'+DEFAULT_TOOLTIP_CLASS+'-content">'+r+"</div>"}var POSITION_TYPES=["pointer","node"],POSITION_TYPE=predicateWithMessage(function(e){return POSITION_TYPES.includes(e)},"expecting a position type keyword such as 'pointer' or 'node'"),TooltipPosition=function(){function e(){this.type="pointer",this.xOffset=0,this.yOffset=0}return __decorate$1T([Validate(POSITION_TYPE)],e.prototype,"type",void 0),__decorate$1T([Validate(NUMBER())],e.prototype,"xOffset",void 0),__decorate$1T([Validate(NUMBER())],e.prototype,"yOffset",void 0),e}(),Tooltip=function(){function e(t,n,r){var o=this;this.enableInteraction=!1,this.enabled=!0,this.class=void 0,this.lastClass=void 0,this.delay=0,this.range="nearest",this.position=new TooltipPosition,this.showTimeout=0,this.showArrow=!0,this.tooltipRoot=r;var i=n.createElement("div");if(this.element=this.tooltipRoot.appendChild(i),this.element.classList.add(DEFAULT_TOOLTIP_CLASS),this.canvasElement=t,window.IntersectionObserver){var a=new IntersectionObserver(function(e){var t,n;try{for(var r=__values$x(e),i=r.next();!i.done;i=r.next()){var a=i.value;a.target===o.canvasElement&&0===a.intersectionRatio&&o.toggle(!1)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},{root:this.tooltipRoot});a.observe(this.canvasElement),this.observer=a}if(e.tooltipDocuments.indexOf(n)<0){var s=n.createElement("style");s.innerHTML=defaultTooltipCss$1,n.head.insertBefore(s,n.head.querySelector("style")),e.tooltipDocuments.push(n)}}return e.prototype.destroy=function(){var e=this.element.parentNode;e&&e.removeChild(this.element),this.observer&&this.observer.unobserve(this.canvasElement)},e.prototype.isVisible=function(){return!this.element.classList.contains(DEFAULT_TOOLTIP_CLASS+"-hidden")},e.prototype.updateClass=function(e,t){var n=this,r=n.element,o=n.class,i=n.lastClass,a=n.enableInteraction,s=function(e,t){var n=DEFAULT_TOOLTIP_CLASS+"-"+e;t?r.classList.add(n):r.classList.remove(n)};s("no-animation",!this.isVisible()&&!!e),s("no-interaction",!a),s("hidden",!e),s("arrow",!!t),o!==i&&(i&&r.classList.remove(i),o&&r.classList.add(o),this.lastClass=o)},e.prototype.show=function(e,t,n){var r,o,i,a,s,l=this;void 0===n&&(n=!1);var c=this.element,u=this.canvasElement;if(void 0!==t)c.innerHTML=t;else if(!c.innerHTML)return;var d=function(e,t,n){return Math.max(Math.min(t,n),e)},p=null!==(o=null===(r=e.position)||void 0===r?void 0:r.xOffset)&&void 0!==o?o:0,h=null!==(a=null===(i=e.position)||void 0===i?void 0:i.yOffset)&&void 0!==a?a:0,f=u.getBoundingClientRect(),g=f.left+e.offsetX-c.clientWidth/2+p,m=f.top+e.offsetY-c.clientHeight-8+h,v=this.getWindowBoundingBox(),y=v.x+v.width-c.clientWidth-1,A=v.y+v.height-c.clientHeight,w=d(v.x,g,y),b=d(v.y,m,A),_=0!==p||0!==h,C=w!==g||b!==m;if(this.showArrow=!C&&!_,c.style.transform="translate("+Math.round(w)+"px, "+Math.round(b)+"px)",this.enableInteraction=null!==(s=e.enableInteraction)&&void 0!==s&&s,this.delay>0&&!n)return this.toggle(!1),void(this.showTimeout=window.setTimeout(function(){l.toggle(!0)},this.delay));this.toggle(!0)},e.prototype.getWindowBoundingBox=function(){return new BBox(0,0,window.innerWidth,window.innerHeight)},e.prototype.toggle=function(e){e||window.clearTimeout(this.showTimeout),this.updateClass(e,this.showArrow)},e.prototype.pointerLeftOntoTooltip=function(e){var t;if(!this.enableInteraction)return!1;var n=null===(t=e.sourceEvent.relatedTarget)||void 0===t?void 0:t.classList,r=Boolean(["","-title","-content"].filter(function(e){return null==n?void 0:n.contains(""+DEFAULT_TOOLTIP_CLASS+e)}));return void 0!==n&&r},e.tooltipDocuments=[],__decorate$1T([Validate(BOOLEAN)],e.prototype,"enabled",void 0),__decorate$1T([Validate(OPT_STRING)],e.prototype,"class",void 0),__decorate$1T([Validate(NUMBER(0))],e.prototype,"delay",void 0),__decorate$1T([DeprecatedAndRenamedTo("range",function(e){return e?"nearest":"exact"})],e.prototype,"tracking",void 0),__decorate$1T([Validate(INTERACTION_RANGE)],e.prototype,"range",void 0),e}(),__extends$2F=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$F=function(){return __assign$F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$F.apply(this,arguments)},__decorate$1S=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__values$w=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$V=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$x=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$V(arguments[t]));return e},SeriesNodePickMode;!function(e){e[e.EXACT_SHAPE_MATCH=0]="EXACT_SHAPE_MATCH",e[e.NEAREST_BY_MAIN_AXIS_FIRST=1]="NEAREST_BY_MAIN_AXIS_FIRST",e[e.NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST=2]="NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST",e[e.NEAREST_NODE=3]="NEAREST_NODE"}(SeriesNodePickMode||(SeriesNodePickMode={}));var warnDeprecated=createDeprecationWarning(),warnSeriesDeprecated=function(){return warnDeprecated("series","Use seriesId to get the series ID")};function keyProperty(e,t,n){return void 0===n&&(n={}),__assign$F(__assign$F({},n),{property:e,type:"key",valueType:t?"range":"category",validation:function(e){return null!=checkDatum(e,t)}})}function valueProperty(e,t,n){return void 0===n&&(n={}),__assign$F(__assign$F({},n),{property:e,type:"value",valueType:t?"range":"category",validation:function(e){return null!=checkDatum(e,t)}})}function sumProperties(e){return{properties:e,type:"sum"}}var SeriesNodeBaseClickEvent=function(){function e(e,t,n){this.type="nodeClick",this.event=e,this.datum=t.datum,this.seriesId=n.id,this._series=n}return Object.defineProperty(e.prototype,"series",{get:function(){return warnSeriesDeprecated(),this._series},enumerable:!1,configurable:!0}),e}(),SeriesNodeClickEvent=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2F(t,e),t}(SeriesNodeBaseClickEvent),SeriesNodeDoubleClickEvent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="nodeDoubleClick",t}return __extends$2F(t,e),t}(SeriesNodeBaseClickEvent),SeriesItemHighlightStyle=function(){function e(){this.fill="yellow",this.fillOpacity=void 0,this.stroke=void 0,this.strokeWidth=void 0}return __decorate$1S([Validate(OPT_COLOR_STRING)],e.prototype,"fill",void 0),__decorate$1S([Validate(OPT_NUMBER(0,1))],e.prototype,"fillOpacity",void 0),__decorate$1S([Validate(OPT_COLOR_STRING)],e.prototype,"stroke",void 0),__decorate$1S([Validate(OPT_NUMBER(0))],e.prototype,"strokeWidth",void 0),e}(),SeriesHighlightStyle=function(){function e(){this.strokeWidth=void 0,this.dimOpacity=void 0,this.enabled=void 0}return __decorate$1S([Validate(OPT_NUMBER(0))],e.prototype,"strokeWidth",void 0),__decorate$1S([Validate(OPT_NUMBER(0,1))],e.prototype,"dimOpacity",void 0),__decorate$1S([Validate(OPT_BOOLEAN)],e.prototype,"enabled",void 0),e}(),TextHighlightStyle=function(){function e(){this.color="black"}return __decorate$1S([Validate(OPT_COLOR_STRING)],e.prototype,"color",void 0),e}(),HighlightStyle=function(){this.item=new SeriesItemHighlightStyle,this.series=new SeriesHighlightStyle,this.text=new TextHighlightStyle},SeriesTooltip=function(){function e(){this.enabled=!0,this.interaction=new SeriesTooltipInteraction,this.position=new TooltipPosition}return __decorate$1S([Validate(BOOLEAN)],e.prototype,"enabled",void 0),e}(),SeriesTooltipInteraction=function(){function e(){this.enabled=!1}return __decorate$1S([Validate(BOOLEAN)],e.prototype,"enabled",void 0),e}(),Series=function(e){function t(t){var n=void 0===t?{}:t,r=n.useSeriesGroupLayer,o=void 0===r||r,i=n.useLabelLayer,a=void 0!==i&&i,s=n.pickModes,l=void 0===s?[SeriesNodePickMode.NEAREST_BY_MAIN_AXIS_FIRST]:s,c=n.directionKeys,u=void 0===c?{}:c,d=e.call(this)||this;d.id=createId$1(d),d.rootGroup=new Group({name:"seriesRoot"}),d.directions=[ChartAxisDirection.X,ChartAxisDirection.Y],d.nodeDataRefresh=!0,d._data=void 0,d._visible=!0,d.showInLegend=!0,d.cursor="default",d.nodeClickRange="exact",d._declarationOrder=-1,d.highlightStyle=new HighlightStyle;var p=d.rootGroup;return d.directionKeys=u,d.contentGroup=p.appendChild(new Group({name:d.id+"-content",layer:o,zIndex:Layers.SERIES_LAYER_ZINDEX,zIndexSubOrder:[function(){return d._declarationOrder},0]})),d.highlightGroup=p.appendChild(new Group({name:d.id+"-highlight",layer:!0,zIndex:Layers.SERIES_LAYER_ZINDEX,zIndexSubOrder:[function(){return d._declarationOrder},15e3]})),d.highlightNode=d.highlightGroup.appendChild(new Group({name:"highlightNode"})),d.highlightLabel=d.highlightGroup.appendChild(new Group({name:"highlightLabel"})),d.highlightNode.zIndex=0,d.highlightLabel.zIndex=10,d.pickModes=l,a&&(d.labelGroup=p.appendChild(new Group({name:d.id+"-series-labels",layer:!0,zIndex:Layers.SERIES_LABEL_ZINDEX}))),d}return __extends$2F(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return this.constructor.type||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.nodeDataRefresh=!0},enumerable:!1,configurable:!0}),t.prototype.hasData=function(){var e=this.data;return e&&(!Array.isArray(e)||e.length>0)},Object.defineProperty(t.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e,this.visibleChanged()},enumerable:!1,configurable:!0}),t.prototype.getBandScalePadding=function(){return{inner:1,outer:0}},t.prototype.destroy=function(){},Object.defineProperty(t.prototype,"grouped",{set:function(e){if(!0===e)throw new Error("AG Charts - grouped: true is unsupported for series of type: "+this.type)},enumerable:!1,configurable:!0}),t.prototype.getKeys=function(e){var t=this,n=this.directionKeys,r=this.resolveKeyDirection(e),o=n&&n[r],i=[],a=function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{for(var o=__values$w(n),i=o.next();!i.done;i=o.next()){var a=i.value;s(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},s=function(e){Array.isArray(e)?a.apply(void 0,__spread$x(e)):i.push(e)};return o?(o.forEach(function(e){var n=t[e];n&&s(n)}),i):i},t.prototype.resolveKeyDirection=function(e){return e},t.prototype.markNodeDataDirty=function(){this.nodeDataRefresh=!0},t.prototype.visibleChanged=function(){},t.prototype.getOpacity=function(e){var t=this.highlightStyle.series,n=t.dimOpacity,r=void 0===n?1:n,o=t.enabled;if(!1===(void 0===o||o)||1===r)return 1;switch(this.isItemIdHighlighted(e)){case"no-highlight":case"highlighted":return 1;case"peer-highlighted":case"other-highlighted":return r}},t.prototype.getStrokeWidth=function(e,t){var n=this.highlightStyle.series,r=n.strokeWidth,o=n.enabled;if(!1===(void 0===o||o)||void 0===r)return e;switch(this.isItemIdHighlighted(t)){case"highlighted":return r;case"no-highlight":case"other-highlighted":case"peer-highlighted":return e}},t.prototype.isItemIdHighlighted=function(e){var t,n=null===(t=this.highlightManager)||void 0===t?void 0:t.getActiveHighlight(),r=null!=n?n:{},o=r.series,i=r.itemId;return null!=o?o!==this?"other-highlighted":void 0===i?"highlighted":e&&n!==e&&i!==e.itemId?"peer-highlighted":"highlighted":"no-highlight"},t.prototype.pickNode=function(e,t){var n,r,o=this,i=o.pickModes,a=o.visible,s=o.rootGroup;if(a&&s.visible)try{for(var l=__values$w(i),c=l.next();!c.done;c=l.next()){var u=c.value;if(!t||t.includes(u)){var d=void 0;switch(u){case SeriesNodePickMode.EXACT_SHAPE_MATCH:d=this.pickNodeExactShape(e);break;case SeriesNodePickMode.NEAREST_BY_MAIN_AXIS_FIRST:case SeriesNodePickMode.NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST:d=this.pickNodeMainAxisFirst(e,u===SeriesNodePickMode.NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST);break;case SeriesNodePickMode.NEAREST_NODE:d=this.pickNodeClosestDatum(e)}if(d)return{pickMode:u,match:d.datum,distance:d.distance}}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}},t.prototype.pickNodeExactShape=function(e){var t=this.contentGroup.pickNode(e.x,e.y);if(t)return{datum:t.datum,distance:0}},t.prototype.pickNodeClosestDatum=function(e){throw new Error("AG Charts - Series.pickNodeClosestDatum() not implemented")},t.prototype.pickNodeMainAxisFirst=function(e,t){throw new Error("AG Charts - Series.pickNodeMainAxisFirst() not implemented")},t.prototype.fireNodeClickEvent=function(e,t){var n=this.getNodeClickEvent(e,t);this.fireEvent(n)},t.prototype.fireNodeDoubleClickEvent=function(e,t){var n=this.getNodeDoubleClickEvent(e,t);this.fireEvent(n)},t.prototype.getNodeClickEvent=function(e,t){return new SeriesNodeClickEvent(e,t,this)},t.prototype.getNodeDoubleClickEvent=function(e,t){return new SeriesNodeDoubleClickEvent(e,t,this)},t.prototype.toggleSeriesItem=function(e,t){this.visible=t,this.nodeDataRefresh=!0},t.prototype.toggleOtherSeriesItems=function(e,t,n,r){},t.prototype.isEnabled=function(){return this.visible},t.prototype.fixNumericExtent=function(e,t){var n;if(void 0===e)return[];var r=__read$V(e,2),o=r[0],i=r[1];if(i=+i,0===(o=+o)&&0===i)return[0,1];if(o===1/0&&i===-1/0)return[];if(o===1/0&&(o=0),i===-1/0&&(i=0),o===i){var a=null!==(n=null==t?void 0:t.calculatePadding(o,i))&&void 0!==n?n:1;o-=a,i+=a}return isNumber$4(o)&&isNumber$4(i)?[o,i]:[]},t.highlightedZIndex=1e12,__decorate$1S([Validate(STRING)],t.prototype,"id",void 0),__decorate$1S([Validate(BOOLEAN)],t.prototype,"_visible",void 0),__decorate$1S([Validate(BOOLEAN)],t.prototype,"showInLegend",void 0),__decorate$1S([Validate(STRING)],t.prototype,"cursor",void 0),__decorate$1S([Validate(INTERACTION_RANGE)],t.prototype,"nodeClickRange",void 0),t}(Observable),__decorate$1R=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Padding$1=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=e),void 0===n&&(n=e),void 0===r&&(r=t),this.top=e,this.right=t,this.bottom=n,this.left=r}return e.prototype.clear=function(){this.top=this.right=this.bottom=this.left=0},__decorate$1R([Validate(NUMBER(0))],e.prototype,"top",void 0),__decorate$1R([Validate(NUMBER(0))],e.prototype,"right",void 0),__decorate$1R([Validate(NUMBER(0))],e.prototype,"bottom",void 0),__decorate$1R([Validate(NUMBER(0))],e.prototype,"left",void 0),e}(),Selection=function(){function e(e,t){this._nodes=[],this._data=[],this._parent=e,this._factory=Object.prototype.isPrototypeOf.call(Node,t)?function(){return new t}:t}return e.select=function(t,n){return new e(t,n)},e.prototype.each=function(e){return this._nodes.forEach(function(t,n){return e(t,t.datum,n)}),this},e.prototype.update=function(e,t){var n=this,r=this._data,o=this._parent,i=this._factory;e.length>r.length?e.slice(r.length).forEach(function(e){var r=i(e);r.datum=e,t&&t(r),o.appendChild(r),n._nodes.push(r)}):e.length<r.length&&this._nodes.splice(e.length).forEach(function(e){o.removeChild(e)}),this._data=e.slice(0);for(var a=0;a<e.length;a++)this._nodes[a].datum=this._data[a];return this},e.prototype.clear=function(){return this.update([]),this},e.prototype.select=function(e){var t=[],n=function(r){e(r)&&t.push(r),r.children.forEach(n)};return n(this._parent),t},e.prototype.selectByClass=function(e){return this.select(function(t){return t instanceof e})},e.prototype.selectByTag=function(e){return this.select(function(t){return t.tag===e})},e.prototype.nodes=function(){return this._nodes},e}(),Gradient=function(){this.stops=[]},twoPi=2*Math.PI;function normalizeAngle360(e){return e%=twoPi,(e+=twoPi)%twoPi}function normalizeAngle360Inclusive(e){return e%=twoPi,(e+=twoPi)!==twoPi&&(e%=twoPi),e}function normalizeAngle180(e){return(e%=twoPi)<-Math.PI?e+=twoPi:e>=Math.PI&&(e-=twoPi),e}function toRadians$1(e){return e/180*Math.PI}var __extends$2E=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LinearGradient=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.angle=0,t}return __extends$2E(t,e),t.prototype.createGradient=function(e,t){var n=this.stops,r=normalizeAngle360(toRadians$1(this.angle+90)),o=Math.cos(r),i=Math.sin(r),a=t.width,s=t.height,l=t.x+.5*a,c=t.y+.5*s;if(a>0&&s>0){var u,d=Math.sqrt(s*s+a*a)/2,p=Math.atan2(s,a);u=r<Math.PI/2?r:r<Math.PI?Math.PI-r:r<3*Math.PI/2?r-Math.PI:2*Math.PI-r;var h=d*Math.abs(Math.cos(u-p)),f=e.createLinearGradient(l+o*h,c+i*h,l-o*h,c-i*h);return n.forEach(function(e){f.addColorStop(e.offset,e.color)}),f}return"black"},t}(Gradient),__extends$2D=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1Q=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},LINEAR_GRADIENT_REGEXP=/^linear-gradient\((.*?)deg,\s*(.*?)\s*\)$/i,Shape=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.lastInstanceId=0,n.fillOpacity=1,n.strokeOpacity=1,n.fill=t.defaultStyles.fill,n.stroke=t.defaultStyles.stroke,n.strokeWidth=t.defaultStyles.strokeWidth,n.lineDash=t.defaultStyles.lineDash,n.lineDashOffset=t.defaultStyles.lineDashOffset,n.lineCap=t.defaultStyles.lineCap,n.lineJoin=t.defaultStyles.lineJoin,n.opacity=t.defaultStyles.opacity,n.fillShadow=t.defaultStyles.fillShadow,n}return __extends$2D(t,e),t.createInstance=function(e){var t=Object.create(e);return t._setParent(void 0),t.id=e.id+"-Instance-"+String(++e.lastInstanceId),t},t.prototype.restoreOwnStyles=function(){for(var e=this.constructor.defaultStyles,t=Object.getOwnPropertyNames(e),n=0,r=t.length;n<r;n++){var o=t[n];this[o]=e[o]}},t.prototype.restoreAllStyles=function(){var e=this.constructor.defaultStyles;for(var t in e)this[t]=e[t]},t.prototype.restoreOverriddenStyles=function(){var e=this.constructor.defaultStyles,t=Object.getPrototypeOf(e);for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(t,n)&&(this[n]=e[n])},t.prototype.updateGradient=function(){var e,t=this.fill;if((null==t?void 0:t.startsWith("linear-gradient"))&&(e=t.match(LINEAR_GRADIENT_REGEXP))){for(var n=parseFloat(e[1]),r=[],o=e[2],i=/(#[0-9a-f]+)|(rgba?\(.+?\))|([a-z]+)/gi,a=void 0;a=i.exec(o);)r.push(a[0]);this.gradient=new LinearGradient,this.gradient.angle=n,this.gradient.stops=r.map(function(e,t){return{offset:t/(r.length-1),color:e}})}else this.gradient=void 0},t.prototype.align=function(e,t){var n,r,o,i=null!==(o=null===(r=null===(n=this.layerManager)||void 0===n?void 0:n.canvas)||void 0===r?void 0:r.pixelRatio)&&void 0!==o?o:1,a=Math.round(e*i)/i;return null==t?a:0===t?0:t<1?Math.ceil(t*i)/i:Math.round((t+e)*i)/i-a},t.prototype.fillStroke=function(e){this.renderFill(e),this.renderStroke(e)},t.prototype.renderFill=function(e){if(this.fill){var t=e.globalAlpha;this.applyFill(e),this.applyFillAlpha(e),this.applyShadow(e),e.fill(),e.globalAlpha=t}e.shadowColor="rgba(0, 0, 0, 0)"},t.prototype.applyFill=function(e){this.gradient?e.fillStyle=this.gradient.createGradient(e,this.computeBBox()):e.fillStyle=this.fill},t.prototype.applyFillAlpha=function(e){var t=e.globalAlpha;e.globalAlpha=t*this.opacity*this.fillOpacity},t.prototype.applyShadow=function(e){var t,n,r=null!==(n=null===(t=this.layerManager)||void 0===t?void 0:t.canvas.pixelRatio)&&void 0!==n?n:1,o=this.fillShadow;o&&o.enabled&&(e.shadowColor=o.color,e.shadowOffsetX=o.xOffset*r,e.shadowOffsetY=o.yOffset*r,e.shadowBlur=o.blur*r)},t.prototype.renderStroke=function(e){if(this.stroke&&this.strokeWidth){var t=e.globalAlpha;e.strokeStyle=this.stroke,e.globalAlpha=t*this.opacity*this.strokeOpacity,e.lineWidth=this.strokeWidth,this.lineDash&&e.setLineDash(this.lineDash),this.lineDashOffset&&(e.lineDashOffset=this.lineDashOffset),this.lineCap&&(e.lineCap=this.lineCap),this.lineJoin&&(e.lineJoin=this.lineJoin),e.stroke(),e.globalAlpha=t}},t.prototype.containsPoint=function(e,t){return this.isPointInPath(e,t)},t.defaultStyles=Object.assign({},{fill:"black",stroke:void 0,strokeWidth:0,lineDash:void 0,lineDashOffset:0,lineCap:void 0,lineJoin:void 0,opacity:1,fillShadow:void 0}),__decorate$1Q([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"fillOpacity",void 0),__decorate$1Q([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"strokeOpacity",void 0),__decorate$1Q([SceneChangeDetection({redraw:RedrawType.MINOR,changeCb:function(e){return e.updateGradient()}})],t.prototype,"fill",void 0),__decorate$1Q([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"stroke",void 0),__decorate$1Q([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"strokeWidth",void 0),__decorate$1Q([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"lineDash",void 0),__decorate$1Q([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"lineDashOffset",void 0),__decorate$1Q([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"lineCap",void 0),__decorate$1Q([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"lineJoin",void 0),__decorate$1Q([SceneChangeDetection({redraw:RedrawType.MINOR,convertor:function(e){return Math.min(1,Math.max(0,e))}})],t.prototype,"opacity",void 0),__decorate$1Q([SceneChangeDetection({redraw:RedrawType.MINOR,checkDirtyOnAssignment:!0})],t.prototype,"fillShadow",void 0),t}(Node),__extends$2C=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1P=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};function SceneFontChangeDetection(e){var t=e||{},n=t.redraw;return SceneChangeDetection({redraw:void 0===n?RedrawType.MAJOR:n,type:"font",changeCb:t.changeCb})}var Text=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.x=0,n.y=0,n.lines=[],n.text="",n._dirtyFont=!0,n.fontSize=10,n.fontFamily="sans-serif",n.textAlign=t.defaultStyles.textAlign,n.textBaseline=t.defaultStyles.textBaseline,n.lineHeight=void 0,n}return __extends$2C(t,e),t.prototype._splitText=function(){this.lines="string"==typeof this.text?this.text.split(/\r?\n/g):[]},Object.defineProperty(t.prototype,"font",{get:function(){return this._dirtyFont&&(this._dirtyFont=!1,this._font=getFont(this.fontSize,this.fontFamily,this.fontStyle,this.fontWeight)),this._font},enumerable:!1,configurable:!0}),t.prototype.computeBBox=function(){return HdpiCanvas.has.textMetrics?this.getPreciseBBox():this.getApproximateBBox()},t.prototype.getPreciseBBox=function(){for(var e,t,n=0,r=0,o=0,i=0,a=0,s=0;s<this.lines.length;s++){var l=HdpiCanvas.measureText(this.lines[s],this.font,this.textBaseline,this.textAlign);n=Math.max(n,l.actualBoundingBoxLeft),o=Math.max(o,l.width),0==s?(r+=l.actualBoundingBoxAscent,i+=l.actualBoundingBoxAscent):a+=null!==(e=l.fontBoundingBoxAscent)&&void 0!==e?e:l.emHeightAscent,s==this.lines.length-1?i+=l.actualBoundingBoxDescent:a+=null!==(t=l.fontBoundingBoxDescent)&&void 0!==t?t:l.emHeightDescent}return void 0!==this.lineHeight&&(a=(this.lines.length-1)*this.lineHeight),i+=a,r+=a*this.getVerticalOffset(),new BBox(this.x-n,this.y-r,o,i)},t.prototype.getVerticalOffset=function(){switch(this.textBaseline){case"top":case"hanging":return 0;case"bottom":case"alphabetic":case"ideographic":return 1;case"middle":return.5}},t.prototype.getApproximateBBox=function(){var e,t=0,n=0,r=0;this.lines.length>0&&(t=(i=HdpiCanvas.getTextSize(this.lines[0],this.font)).width,n=i.height);for(var o=1;o<this.lines.length;o++){var i=HdpiCanvas.getTextSize(this.lines[o],this.font);t=Math.max(t,i.width),r+=null!==(e=this.lineHeight)&&void 0!==e?e:i.height}var a=this.x,s=this.y;switch(this.textAlign){case"end":case"right":a-=t;break;case"center":a-=t/2}switch(this.textBaseline){case"alphabetic":s-=.7*n+.5*r;break;case"middle":s-=.45*n+.5*r;break;case"ideographic":case"bottom":s-=n+r;break;case"hanging":s-=.2*n+.5*r}return new BBox(a,s,t,n+r)},t.prototype.getLineHeight=function(e){var t,n;if(this.lineHeight)return this.lineHeight;if(HdpiCanvas.has.textMetrics){var r=HdpiCanvas.measureText(e,this.font,this.textBaseline,this.textAlign);return(null!==(t=r.fontBoundingBoxAscent)&&void 0!==t?t:r.emHeightAscent)+(null!==(n=r.fontBoundingBoxDescent)&&void 0!==n?n:r.emHeightDescent)}return HdpiCanvas.getTextSize(e,this.font).height},t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t),r=this.computeBBox();return!!r&&r.containsPoint(n.x,n.y)},t.prototype.render=function(t){var n=t.ctx,r=t.forceRender,o=t.stats;if(this.dirty!==RedrawType.NONE||r)if(this.lines.length&&this.layerManager){this.computeTransformMatrix(),this.matrix.toContext(n);var i=this,a=i.fill,s=i.stroke,l=i.strokeWidth;n.font=this.font,n.textAlign=this.textAlign,n.textBaseline=this.textBaseline;var c=this.layerManager.canvas.pixelRatio||1,u=n.globalAlpha;if(a){n.fillStyle=a,n.globalAlpha=u*this.opacity*this.fillOpacity;var d=this.fillShadow;d&&d.enabled&&(n.shadowColor=d.color,n.shadowOffsetX=d.xOffset*c,n.shadowOffsetY=d.yOffset*c,n.shadowBlur=d.blur*c),this.renderLines(function(e,t,r){return n.fillText(e,t,r)})}if(s&&l){n.strokeStyle=s,n.lineWidth=l,n.globalAlpha=u*this.opacity*this.strokeOpacity;var p=this,h=p.lineDash,f=p.lineDashOffset,g=p.lineCap,m=p.lineJoin;h&&n.setLineDash(h),f&&(n.lineDashOffset=f),g&&(n.lineCap=g),m&&(n.lineJoin=m),this.renderLines(function(e,t,r){return n.strokeText(e,t,r)})}e.prototype.render.call(this,t)}else o&&(o.nodesSkipped+=this.nodeCount.count);else o&&(o.nodesSkipped+=this.nodeCount.count)},t.prototype.renderLines=function(e){for(var t=this,n=this,r=n.lines,o=n.x,i=n.y,a=this.lines.map(function(e){return t.getLineHeight(e)}),s=-(a.reduce(function(e,t){return e+t},0)-a[0])*this.getVerticalOffset(),l=0;l<r.length;l++)e(r[l],o,i+s),s+=a[l]},t.className="Text",t.defaultStyles=Object.assign({},Shape.defaultStyles,{textAlign:"start",fontStyle:void 0,fontWeight:void 0,fontSize:10,fontFamily:"sans-serif",textBaseline:"alphabetic"}),__decorate$1P([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"x",void 0),__decorate$1P([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"y",void 0),__decorate$1P([SceneChangeDetection({redraw:RedrawType.MAJOR,changeCb:function(e){return e._splitText()}})],t.prototype,"text",void 0),__decorate$1P([SceneFontChangeDetection()],t.prototype,"fontStyle",void 0),__decorate$1P([SceneFontChangeDetection()],t.prototype,"fontWeight",void 0),__decorate$1P([SceneFontChangeDetection()],t.prototype,"fontSize",void 0),__decorate$1P([SceneFontChangeDetection()],t.prototype,"fontFamily",void 0),__decorate$1P([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"textAlign",void 0),__decorate$1P([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"textBaseline",void 0),__decorate$1P([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"lineHeight",void 0),t}(Shape);function getFont(e,t,n,r){return[n||"",r||"",e+"px",t].join(" ").trim()}function linearRoot(e,t){var n=-t/e;return 0!==e&&n>=0&&n<=1?[n]:[]}function quadraticRoots(e,t,n){if(0===e)return linearRoot(t,n);var r=t*t-4*e*n,o=[];if(0===r){var i=-t/(2*e);i>=0&&i<=1&&o.push(i)}else if(r>0){var a=Math.sqrt(r),s=(-t-a)/(2*e),l=(-t+a)/(2*e);s>=0&&s<=1&&o.push(s),l>=0&&l<=1&&o.push(l)}return o}function cubicRoots(e,t,n,r){if(0===e)return quadraticRoots(t,n,r);var o=t/e,i=n/e,a=(3*i-o*o)/9,s=(9*o*i-r/e*27-2*o*o*o)/54,l=a*a*a+s*s,c=1/3,u=[];if(l>=0){var d=Math.sqrt(l),p=Math.sign(s+d)*Math.pow(Math.abs(s+d),c),h=Math.sign(s-d)*Math.pow(Math.abs(s-d),c),f=Math.abs(Math.sqrt(3)*(p-h)/2),g=-c*o+(p+h);if(g>=0&&g<=1&&u.push(g),0===f){var m=-c*o-(p+h)/2;m>=0&&m<=1&&u.push(m)}}else{var v=Math.acos(s/Math.sqrt(-a*a*a)),y=c*o,A=2*Math.sqrt(-a),w=A*Math.cos(c*v)-y,b=A*Math.cos(c*(v+2*Math.PI))-y,_=A*Math.cos(c*(v+4*Math.PI))-y;w>=0&&w<=1&&u.push(w),b>=0&&b<=1&&u.push(b),_>=0&&_<=1&&u.push(_)}return u}var __values$v=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function segmentIntersection(e,t,n,r,o,i,a,s){var l=(n-e)*(s-i)-(r-t)*(a-o);if(0===l)return null;var c=((a-o)*(t-i)-(e-o)*(s-i))/l,u=((n-e)*(t-i)-(r-t)*(e-o))/l;return c>=0&&c<=1&&u>=0&&u<=1?{x:e+c*(n-e),y:t+c*(r-t)}:null}function cubicSegmentIntersections(e,t,n,r,o,i,a,s,l,c,u,d){var p,h,f=[],g=c-d,m=u-l,v=l*(d-c)-c*(u-l),y=bezierCoefficients(e,n,o,a),A=bezierCoefficients(t,r,i,s),w=cubicRoots(g*y[0]+m*A[0],g*y[1]+m*A[1],g*y[2]+m*A[2],g*y[3]+m*A[3]+v);try{for(var b=__values$v(w),_=b.next();!_.done;_=b.next()){var C,E=_.value,S=E*E,O=E*S,x=y[0]*O+y[1]*S+y[2]*E+y[3],D=A[0]*O+A[1]*S+A[2]*E+A[3];(C=l!==u?(x-l)/(u-l):(D-c)/(d-c))>=0&&C<=1&&f.push({x,y:D})}}catch(e){p={error:e}}finally{try{_&&!_.done&&(h=b.return)&&h.call(b)}finally{if(p)throw p.error}}return f}function bezierCoefficients(e,t,n,r){return[3*t-e-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function arcIntersections(e,t,n,r,o,i,a,s,l,c){var u=(c-s)/(l-a),d=s-u*a,p=Math.pow(u,2)+1,h=2*(u*(d-t)-e),f=Math.pow(e,2)+Math.pow(d-t,2)-Math.pow(n,2),g=Math.pow(h,2)-4*p*f;if(g<0)return[];var m=(-h+Math.sqrt(g))/2/p,v=(-h-Math.sqrt(g))/2/p,y=[];return[m,v].forEach(function(e){if(e>=Math.min(a,l)&&e<=Math.max(a,l)){var t=u*e,n=normalizeAngle360(i?o:r),s=normalizeAngle360(i?r:o),c=normalizeAngle360(Math.atan2(t,e));s<=n&&(s+=2*Math.PI),c<n&&(c+=2*Math.PI),c>=n&&c<=s&&y.push({x:e,y:t})}}),y}var __values$u=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Command;!function(e){e[e.Move=0]="Move",e[e.Line=1]="Line",e[e.Arc=2]="Arc",e[e.Curve=3]="Curve",e[e.ClosePath=4]="ClosePath"}(Command||(Command={}));var Path2D=function(){function e(){this.previousCommands=[],this.previousParams=[],this.previousClosedPath=!1,this.commands=[],this.params=[],this._closedPath=!1}return e.prototype.isDirty=function(){if(this._closedPath!==this.previousClosedPath)return!0;if(this.previousCommands.length!==this.commands.length)return!0;if(this.previousParams.length!==this.params.length)return!0;for(var e=0;e<this.commands.length;e++)if(this.commands[e]!==this.previousCommands[e])return!0;for(e=0;e<this.params.length;e++)if(this.params[e]!==this.previousParams[e])return!0;return!1},e.prototype.draw=function(e){var t,n,r=this.commands,o=this.params,i=0;e.beginPath();try{for(var a=__values$u(r),s=a.next();!s.done;s=a.next())switch(s.value){case Command.Move:e.moveTo(o[i++],o[i++]);break;case Command.Line:e.lineTo(o[i++],o[i++]);break;case Command.Curve:e.bezierCurveTo(o[i++],o[i++],o[i++],o[i++],o[i++],o[i++]);break;case Command.Arc:e.arc(o[i++],o[i++],o[i++],o[i++],o[i++],1===o[i++]);break;case Command.ClosePath:e.closePath()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}0===r.length&&e.closePath()},e.prototype.moveTo=function(e,t){this.xy?(this.xy[0]=e,this.xy[1]=t):this.xy=[e,t],this.commands.push(Command.Move),this.params.push(e,t)},e.prototype.lineTo=function(e,t){this.xy?(this.commands.push(Command.Line),this.params.push(e,t),this.xy[0]=e,this.xy[1]=t):this.moveTo(e,t)},e.prototype.rect=function(e,t,n,r){this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.closePath()},e.prototype.arc=function(e,t,n,r,o,i){void 0===i&&(i=!1);var a=e+n*Math.cos(o),s=t+n*Math.sin(o);this.xy?(this.xy[0]=a,this.xy[1]=s):this.xy=[a,s],this.commands.push(Command.Arc),this.params.push(e,t,n,r,o,i?1:0)},e.prototype.cubicCurveTo=function(e,t,n,r,o,i){this.xy||this.moveTo(e,t),this.commands.push(Command.Curve),this.params.push(e,t,n,r,o,i),this.xy[0]=o,this.xy[1]=i},Object.defineProperty(e.prototype,"closedPath",{get:function(){return this._closedPath},enumerable:!1,configurable:!0}),e.prototype.closePath=function(){this.xy&&(this.xy=void 0,this.commands.push(Command.ClosePath),this._closedPath=!0)},e.prototype.clear=function(e){(void 0===e?{trackChanges:!1}:e).trackChanges?(this.previousCommands=this.commands,this.previousParams=this.params,this.previousClosedPath=this._closedPath,this.commands=[],this.params=[]):(this.commands.length=0,this.params.length=0),this.xy=void 0,this._closedPath=!1},e.prototype.isPointInPath=function(e,t){for(var n=this.commands,r=this.params,o=n.length,i=-1e4,a=-1e4,s=NaN,l=NaN,c=0,u=0,d=0,p=0,h=0;p<o;p++)switch(n[p]){case Command.Move:isNaN(s)||segmentIntersection(s,l,c,u,i,a,e,t)&&d++,s=c=r[h++],l=u=r[h++];break;case Command.Line:segmentIntersection(c,u,r[h++],r[h++],i,a,e,t)&&d++,c=r[h-2],u=r[h-1];break;case Command.Curve:d+=cubicSegmentIntersections(c,u,r[h++],r[h++],r[h++],r[h++],r[h++],r[h++],i,a,e,t).length,c=r[h-2],u=r[h-1];break;case Command.Arc:d+=arcIntersections(r[h++],r[h++],r[h++],r[h++],r[h++],Boolean(r[h++]),i,a,e,t).length,c=r[h-2],u=r[h-1];break;case Command.ClosePath:isNaN(s)||segmentIntersection(s,l,c,u,i,a,e,t)&&d++}return d%2==1},e}(),__extends$2B=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1O=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};function ScenePathChangeDetection(e){var t=e||{},n=t.redraw,r=void 0===n?RedrawType.MAJOR:n,o=t.changeCb;return SceneChangeDetection({redraw:r,type:"path",convertor:t.convertor,changeCb:o})}var Path=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.path=new Path2D,t._dirtyPath=!0,t}return __extends$2B(t,e),Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&this.markDirty(this,RedrawType.MAJOR))},enumerable:!1,configurable:!0}),t.prototype.checkPathDirty=function(){var e,t;this._dirtyPath||(this.dirtyPath=this.path.isDirty()||null!==(t=null===(e=this.fillShadow)||void 0===e?void 0:e.isDirty())&&void 0!==t&&t)},t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t);return this.path.closedPath&&this.path.isPointInPath(n.x,n.y)},t.prototype.isDirtyPath=function(){return!1},t.prototype.updatePath=function(){},t.prototype.render=function(t){var n,r,o=t.ctx,i=t.forceRender,a=t.stats;if(this.dirty!==RedrawType.NONE||i){if(this.computeTransformMatrix(),this.matrix.toContext(o),(this.dirtyPath||this.isDirtyPath())&&(this.updatePath(),this.dirtyPath=!1),this.clipPath){if(o.save(),"normal"===this.clipMode&&(this.clipPath.draw(o),o.clip()),this.path.draw(o),this.fillStroke(o),"punch-out"===this.clipMode){this.clipPath.draw(o),o.clip();var s=null!==(n=this.computeBBox())&&void 0!==n?n:{},l=s.x,c=void 0===l?-1e4:l,u=s.y,d=void 0===u?-1e4:u,p=s.width,h=void 0===p?2e4:p,f=s.height,g=void 0===f?2e4:f;o.clearRect(c,d,h,g)}o.restore()}else this.path.draw(o),this.fillStroke(o);null===(r=this.fillShadow)||void 0===r||r.markClean(),e.prototype.render.call(this,t)}else a&&(a.nodesSkipped+=this.nodeCount.count)},t.className="Path",__decorate$1O([ScenePathChangeDetection()],t.prototype,"clipPath",void 0),__decorate$1O([ScenePathChangeDetection()],t.prototype,"clipMode",void 0),t}(Shape),__extends$2A=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1N=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__values$t=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Marker=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.x=0,t.y=0,t.size=12,t}return __extends$2A(t,e),t.prototype.computeBBox=function(){var e=this,t=e.x,n=e.y,r=e.size,o=r/2;return new BBox(t-o,n-o,r,r)},t.prototype.applyPath=function(e,t){var n,r,o=this.path,i=this.x,a=this.y;o.clear();try{for(var s=__values$t(t),l=s.next();!l.done;l=s.next()){var c=l.value,u=c.x,d=c.y,p=c.t;i+=u*e,a+=d*e,"move"===p?o.moveTo(i,a):o.lineTo(i,a)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}o.closePath()},__decorate$1N([ScenePathChangeDetection()],t.prototype,"x",void 0),__decorate$1N([ScenePathChangeDetection()],t.prototype,"y",void 0),__decorate$1N([ScenePathChangeDetection({convertor:Math.abs})],t.prototype,"size",void 0),t}(Path),__extends$2z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Square=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2z(t,e),t.prototype.updatePath=function(){var e=this,t=e.path,n=e.x,r=e.y,o=this.size/2;t.clear(),t.moveTo(this.align(n-o),this.align(r-o)),t.lineTo(this.align(n+o),this.align(r-o)),t.lineTo(this.align(n+o),this.align(r+o)),t.lineTo(this.align(n-o),this.align(r+o)),t.closePath()},t.className="Square",t}(Marker);function ProxyPropertyOnWrite(e,t){return addTransformToInstanceProperty(function(n,r,o){return n[e][null!=t?t:r]=o,o})}function ActionOnSet(e){var t=e.newValue,n=e.oldValue,r=e.changeValue;return addTransformToInstanceProperty(function(e,o,i,a){return i!==a&&(void 0!==a&&(null==n||n.call(e,a)),void 0!==i&&(null==t||t.call(e,i)),null==r||r.call(e,i,a)),i})}var __extends$2y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1M=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},MarkerLabel=function(e){function t(){var t=e.call(this,{name:"markerLabelGroup"})||this;t.label=new Text,t._marker=new Square,t._markerSize=15,t._spacing=8;var n=t.label;return n.textBaseline="middle",n.fontSize=12,n.fontFamily="Verdana, sans-serif",n.fill="black",n.y=HdpiCanvas.has.textMetrics?1:0,t.append([t.marker,n]),t.update(),t}return __extends$2y(t,e),Object.defineProperty(t.prototype,"marker",{get:function(){return this._marker},set:function(e){this._marker!==e&&(this.removeChild(this._marker),this._marker=e,this.appendChild(e),this.update())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){this._markerSize!==e&&(this._markerSize=e,this.update())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"spacing",{get:function(){return this._spacing},set:function(e){this._spacing!==e&&(this._spacing=e,this.update())},enumerable:!1,configurable:!0}),t.prototype.update=function(){var e=this.marker,t=this.markerSize;e.size=t,this.label.x=t/2+this.spacing},t.prototype.render=function(t){this.marker.opacity=this.opacity,this.label.opacity=this.opacity,e.prototype.render.call(this,t)},t.className="MarkerLabel",__decorate$1M([ProxyPropertyOnWrite("label")],t.prototype,"text",void 0),__decorate$1M([ProxyPropertyOnWrite("label")],t.prototype,"fontStyle",void 0),__decorate$1M([ProxyPropertyOnWrite("label")],t.prototype,"fontWeight",void 0),__decorate$1M([ProxyPropertyOnWrite("label")],t.prototype,"fontSize",void 0),__decorate$1M([ProxyPropertyOnWrite("label")],t.prototype,"fontFamily",void 0),__decorate$1M([ProxyPropertyOnWrite("label","fill")],t.prototype,"color",void 0),__decorate$1M([ProxyPropertyOnWrite("marker","fill")],t.prototype,"markerFill",void 0),__decorate$1M([ProxyPropertyOnWrite("marker","stroke")],t.prototype,"markerStroke",void 0),__decorate$1M([ProxyPropertyOnWrite("marker","strokeWidth")],t.prototype,"markerStrokeWidth",void 0),__decorate$1M([ProxyPropertyOnWrite("marker","fillOpacity")],t.prototype,"markerFillOpacity",void 0),__decorate$1M([ProxyPropertyOnWrite("marker","strokeOpacity")],t.prototype,"markerStrokeOpacity",void 0),t}(Group),__extends$2x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Circle=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2x(t,e),t.prototype.updatePath=function(){var e=this,t=e.x,n=e.y,r=e.path,o=e.size/2;r.clear(),r.arc(t,n,o,0,2*Math.PI),r.closePath()},t.className="Circle",t}(Marker),__extends$2w=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cross=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2w(t,e),t.prototype.updatePath=function(){var n=this.size/4.2;e.prototype.applyPath.call(this,n,t.moves)},t.className="Cross",t.moves=[{x:-1,y:0,t:"move"},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1},{x:1,y:1},{x:-1,y:1},{x:-1,y:-1},{x:-1,y:1},{x:-1,y:-1}],t}(Marker),__extends$2v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Diamond=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2v(t,e),t.prototype.updatePath=function(){var n=this.size/2;e.prototype.applyPath.call(this,n,t.moves)},t.className="Diamond",t.moves=[{x:0,y:-1,t:"move"},{x:1,y:1},{x:-1,y:1},{x:-1,y:-1},{x:1,y:-1}],t}(Marker),__extends$2u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Heart=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2u(t,e),t.prototype.rad=function(e){return e/180*Math.PI},t.prototype.updatePath=function(){var e=this,t=e.x,n=e.path,r=e.size,o=e.rad,i=r/4,a=this.y+i/2;n.clear(),n.arc(t-i,a-i,i,o(130),o(330)),n.arc(t+i,a-i,i,o(220),o(50)),n.lineTo(t,a+i),n.closePath()},t.className="Heart",t}(Marker),__extends$2t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Plus=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2t(t,e),t.prototype.updatePath=function(){var n=this.size/3;e.prototype.applyPath.call(this,n,t.moves)},t.className="Plus",t.moves=[{x:-.5,y:-.5,t:"move"},{x:0,y:-1},{x:1,y:0},{x:0,y:1},{x:1,y:0},{x:0,y:1},{x:-1,y:0},{x:0,y:1},{x:-1,y:0},{x:0,y:-1},{x:-1,y:0},{x:0,y:-1}],t}(Marker),__extends$2s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Triangle=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2s(t,e),t.prototype.updatePath=function(){var n=1.1*this.size;e.prototype.applyPath.call(this,n,t.moves)},t.className="Triangle",t.moves=[{x:0,y:-.48,t:"move"},{x:.5,y:.87},{x:-1,y:0}],t}(Marker),ChartUpdateType;function getMarker$1(e){if(void 0===e&&(e=Square),"string"==typeof e)switch(e){case"circle":return Circle;case"cross":return Cross;case"diamond":return Diamond;case"heart":return Heart;case"plus":return Plus;case"triangle":return Triangle;default:return Square}return"function"==typeof e?e:Square}!function(e){e[e.FULL=0]="FULL",e[e.PROCESS_DATA=1]="PROCESS_DATA",e[e.PERFORM_LAYOUT=2]="PERFORM_LAYOUT",e[e.SERIES_UPDATE=3]="SERIES_UPDATE",e[e.TOOLTIP_RECALCULATION=4]="TOOLTIP_RECALCULATION",e[e.SCENE_RENDER=5]="SCENE_RENDER",e[e.NONE=6]="NONE"}(ChartUpdateType||(ChartUpdateType={}));var __values$s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function gridLayout(e){for(var t=e.orientation,n=e.bboxes,r=e.maxHeight,o=e.maxWidth,i=e.itemPaddingY,a=void 0===i?0:i,s=e.itemPaddingX,l=void 0===s?0:s,c=e.forceResult,u=void 0!==c&&c,d="horizontal"===t,p={max:d?o:r,fn:d?function(e){return e.width}:function(e){return e.height},padding:d?l:a},h={max:d?r:o,fn:d?function(e){return e.height}:function(e){return e.width},padding:d?a:l},f=0,g=[];f<n.length;){var m=processBBoxes(n.slice(f),f,p,h,u);if(!m)return;f+=m.processedBBoxCount,g.push(m.pageIndices)}return buildPages(g,t,n,a,l)}function processBBoxes(e,t,n,r,o){var i=estimateStartingGuess(e,n);if(i<1){if(!o)return;i=1}for(var a=i;a>=1;a--){var s=calculatePage(e,t,a,n,r,o);if(null==s&&a<=1)return;if(null!=s){if("number"!=typeof s)return{processedBBoxCount:s.length*s[0].length,pageIndices:s};if(s<=1)return;a=s<a&&s>1?s:a}}}function calculatePage(e,t,n,r,o,i){for(var a,s=[],l=0,c=0,u=[],d=[],p=0;p<e.length;p++){var h=(p+n)%n;0===h&&(l+=c,c=0,u.length>0&&s.push(u),u=[]);var f=r.fn(e[p])+r.padding;d[h]=Math.max(null!==(a=d[h])&&void 0!==a?a:0,f);var g=l+(c=Math.max(c,o.fn(e[p])+o.padding)),m=!i||s.length>0;if(g>o.max&&m){u=[];break}if(d.reduce(function(e,t){return e+t},0)>r.max&&!i)return d.length<n?d.length:void 0;u.push(p+t)}return u.length>0&&s.push(u),s.length>0?s:void 0}function buildPages(e,t,n,r,o){var i=0,a=0,s=e.map(function(e){"horizontal"===t&&(e=transpose(e));var s=0,l=e.map(function(e){var t=e.map(function(e){return s=Math.max(e,s),n[e]}),i=0,a=0;return t.forEach(function(e){i+=e.height+r,a=Math.max(a,e.width+o)}),{indices:e,bboxes:t,columnHeight:i,columnWidth:a}}),c=0,u=0;return l.forEach(function(e){c+=e.columnWidth,u=Math.max(u,e.columnHeight)}),i=Math.max(c,i),a=Math.max(u,a),{columns:l,startIndex:e[0][0],endIndex:s,pageWidth:c,pageHeight:u}});return{pages:s,maxPageWidth:i,maxPageHeight:a}}function transpose(e){var t,n,r=[];try{for(var o=__values$s(e[0]),i=o.next();!i.done;i=o.next())i.value,r.push([])}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return e.forEach(function(e,t){e.forEach(function(e,n){r[n][t]=e})}),r}function estimateStartingGuess(e,t){for(var n=e.length,r=0,o=0;o<n;o++)if((r+=t.fn(e[o])+t.padding)>t.max)return n/o<2?Math.ceil(n/2):o;return n}var __decorate$1L=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},PaginationLabel=function(){function e(){this.color="black",this.fontStyle=void 0,this.fontWeight=void 0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}return __decorate$1L([Validate(COLOR_STRING)],e.prototype,"color",void 0),__decorate$1L([Validate(OPT_FONT_STYLE)],e.prototype,"fontStyle",void 0),__decorate$1L([Validate(OPT_FONT_WEIGHT)],e.prototype,"fontWeight",void 0),__decorate$1L([Validate(NUMBER(0))],e.prototype,"fontSize",void 0),__decorate$1L([Validate(STRING)],e.prototype,"fontFamily",void 0),e}(),PaginationMarkerStyle=function(){function e(){this.size=15,this.fill=void 0,this.fillOpacity=void 0,this.stroke=void 0,this.strokeWidth=1,this.strokeOpacity=1}return __decorate$1L([Validate(NUMBER(0))],e.prototype,"size",void 0),__decorate$1L([Validate(OPT_COLOR_STRING)],e.prototype,"fill",void 0),__decorate$1L([Validate(OPT_NUMBER(0,1))],e.prototype,"fillOpacity",void 0),__decorate$1L([Validate(OPT_COLOR_STRING)],e.prototype,"stroke",void 0),__decorate$1L([Validate(NUMBER(0))],e.prototype,"strokeWidth",void 0),__decorate$1L([Validate(NUMBER(0,1))],e.prototype,"strokeOpacity",void 0),e}(),PaginationMarker=function(){function e(){this.size=15,this._shape=Triangle,this.padding=8}return Object.defineProperty(e.prototype,"shape",{get:function(){return this._shape},set:function(e){var t;this._shape=e,null===(t=this.parent)||void 0===t||t.onMarkerShapeChange()},enumerable:!1,configurable:!0}),__decorate$1L([Validate(NUMBER(0))],e.prototype,"size",void 0),__decorate$1L([Validate(NUMBER(0))],e.prototype,"padding",void 0),e}(),Pagination=function(){function e(e,t,n,r){var o=this;this.chartUpdateCallback=e,this.pageUpdateCallback=t,this.interactionManager=n,this.cursorManager=r,this.id=createId$1(this),this.group=new Group({name:"pagination"}),this.labelNode=new Text,this.marker=new PaginationMarker,this.activeStyle=new PaginationMarkerStyle,this.inactiveStyle=new PaginationMarkerStyle,this.highlightStyle=new PaginationMarkerStyle,this.label=new PaginationLabel,this.totalPages=0,this.currentPage=0,this.nextButtonDisabled=!1,this.previousButtonDisabled=!1,this._visible=!0,this._enabled=!0,this._orientation="vertical",this._nextButton=new Triangle,this._previousButton=new Triangle;var i=this.labelNode;i.textBaseline="middle",i.fontSize=12,i.fontFamily="Verdana, sans-serif",i.fill="black",i.y=HdpiCanvas.has.textMetrics?1:0,this.group.append([this.nextButton,this.previousButton,i]),this.interactionManager.addListener("click",function(e){return o.onPaginationClick(e)}),this.interactionManager.addListener("hover",function(e){return o.onPaginationMouseMove(e)}),this.marker.parent=this,this.update(),this.updateMarkers()}return Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e,this.updateGroupVisibility()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this.updateGroupVisibility()},enumerable:!1,configurable:!0}),e.prototype.updateGroupVisibility=function(){this.group.visible=this.enabled&&this.visible},Object.defineProperty(e.prototype,"orientation",{get:function(){return this._orientation},set:function(e){this._orientation=e,"horizontal"===e?(this.previousButton.rotation=-Math.PI/2,this.nextButton.rotation=Math.PI/2):(this.previousButton.rotation=0,this.nextButton.rotation=Math.PI)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"translationX",{get:function(){return this.group.translationX},set:function(e){this.group.translationX=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"translationY",{get:function(){return this.group.translationY},set:function(e){this.group.translationY=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextButton",{get:function(){return this._nextButton},set:function(e){this._nextButton!==e&&(this.group.removeChild(this._nextButton),this._nextButton=e,this.group.appendChild(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousButton",{get:function(){return this._previousButton},set:function(e){this._previousButton!==e&&(this.group.removeChild(this._previousButton),this._previousButton=e,this.group.appendChild(e))},enumerable:!1,configurable:!0}),e.prototype.update=function(){this.updateLabel(),this.updatePositions(),this.enableOrDisableButtons()},e.prototype.updatePositions=function(){this.updateLabelPosition(),this.updateNextButtonPosition()},e.prototype.updateLabelPosition=function(){var e=this.marker,t=e.size,n=e.padding;this.nextButton.size=t,this.previousButton.size=t,this.labelNode.x=t/2+n},e.prototype.updateNextButtonPosition=function(){var e=this.labelNode.computeBBox();this.nextButton.translationX=e.x+e.width+this.marker.size/2+this.marker.padding},e.prototype.updateLabel=function(){var e=this,t=e.currentPage,n=e.totalPages,r=e.labelNode,o=e.label,i=o.color,a=o.fontStyle,s=o.fontWeight,l=o.fontSize,c=o.fontFamily;r.text=t+1+" / "+n,r.fill=i,r.fontStyle=a,r.fontWeight=s,r.fontSize=l,r.fontFamily=c},e.prototype.updateMarkers=function(){var e=this,t=e.nextButton,n=e.previousButton,r=e.nextButtonDisabled,o=e.previousButtonDisabled,i=e.activeStyle,a=e.inactiveStyle,s=e.highlightStyle,l=e.highlightActive,c=function(e,t){return t?a:e===l?s:i};this.updateMarker(t,c("next",r)),this.updateMarker(n,c("previous",o))},e.prototype.updateMarker=function(e,t){var n,r=this.marker.size;e.size=r,e.fill=t.fill,e.fillOpacity=null!==(n=t.fillOpacity)&&void 0!==n?n:1,e.stroke=t.stroke,e.strokeWidth=t.strokeWidth,e.strokeOpacity=t.strokeOpacity},e.prototype.enableOrDisableButtons=function(){var e=this.currentPage,t=this.totalPages,n=0===t,r=e===t-1,o=0===e;this.nextButtonDisabled=r||n,this.previousButtonDisabled=o||n},e.prototype.nextButtonContainsPoint=function(e,t){return!this.nextButtonDisabled&&this.nextButton.containsPoint(e,t)},e.prototype.previousButtonContainsPoint=function(e,t){return!this.previousButtonDisabled&&this.previousButton.containsPoint(e,t)},e.prototype.onPaginationClick=function(e){var t=e.offsetX,n=e.offsetY;this.nextButtonContainsPoint(t,n)?(this.incrementPage(),this.onPaginationChanged(),e.consume()):this.previousButtonContainsPoint(t,n)&&(this.decrementPage(),this.onPaginationChanged(),e.consume())},e.prototype.onPaginationMouseMove=function(e){var t=e.offsetX,n=e.offsetY;this.nextButtonContainsPoint(t,n)?(this.cursorManager.updateCursor(this.id,"pointer"),this.highlightActive="next"):this.previousButtonContainsPoint(t,n)?(this.cursorManager.updateCursor(this.id,"pointer"),this.highlightActive="previous"):(this.cursorManager.updateCursor(this.id),this.highlightActive=void 0),this.updateMarkers(),this.chartUpdateCallback(ChartUpdateType.SCENE_RENDER)},e.prototype.onPaginationChanged=function(){this.pageUpdateCallback(this.currentPage)},e.prototype.incrementPage=function(){this.currentPage=Math.min(this.currentPage+1,this.totalPages-1)},e.prototype.decrementPage=function(){this.currentPage=Math.max(this.currentPage-1,0)},e.prototype.onMarkerShapeChange=function(){var e=getMarker$1(this.marker.shape||Triangle);this.previousButton=new e,this.nextButton=new e,this.updatePositions(),this.updateMarkers(),this.chartUpdateCallback(ChartUpdateType.SCENE_RENDER)},e.prototype.attachPagination=function(e){e.append(this.group)},e.prototype.computeBBox=function(){return this.group.computeBBox()},e.className="Pagination",e}(),__decorate$1K=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$U=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$w=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$U(arguments[t]));return e},__values$r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ORIENTATIONS=["horizontal","vertical"],OPT_ORIENTATION=predicateWithMessage(function(e,t){return OPTIONAL(e,t,function(e){return ORIENTATIONS.includes(e)})},"expecting an orientation keyword such as 'horizontal' or 'vertical'"),LegendLabel=function(){function e(){this.maxLength=void 0,this.color="black",this.fontStyle=void 0,this.fontWeight=void 0,this.fontSize=12,this.fontFamily="Verdana, sans-serif",this.formatter=void 0}return e.prototype.getFont=function(){return getFont(this.fontSize,this.fontFamily,this.fontStyle,this.fontWeight)},__decorate$1K([Validate(OPT_NUMBER(0))],e.prototype,"maxLength",void 0),__decorate$1K([Validate(COLOR_STRING)],e.prototype,"color",void 0),__decorate$1K([Validate(OPT_FONT_STYLE)],e.prototype,"fontStyle",void 0),__decorate$1K([Validate(OPT_FONT_WEIGHT)],e.prototype,"fontWeight",void 0),__decorate$1K([Validate(NUMBER(0))],e.prototype,"fontSize",void 0),__decorate$1K([Validate(STRING)],e.prototype,"fontFamily",void 0),__decorate$1K([Validate(OPT_FUNCTION)],e.prototype,"formatter",void 0),e}(),LegendMarker=function(){function e(){this.size=15,this._shape=void 0,this.padding=8,this.strokeWidth=1}return Object.defineProperty(e.prototype,"shape",{get:function(){return this._shape},set:function(e){var t;this._shape=e,null===(t=this.parent)||void 0===t||t.onMarkerShapeChange()},enumerable:!1,configurable:!0}),__decorate$1K([Validate(NUMBER(0))],e.prototype,"size",void 0),__decorate$1K([Validate(NUMBER(0))],e.prototype,"padding",void 0),__decorate$1K([Validate(NUMBER(0))],e.prototype,"strokeWidth",void 0),e}(),LegendItem=function(){function e(){this.marker=new LegendMarker,this.label=new LegendLabel,this.maxWidth=void 0,this.paddingX=16,this.paddingY=8,this.toggleSeriesVisible=!0}return __decorate$1K([Validate(OPT_NUMBER(0))],e.prototype,"maxWidth",void 0),__decorate$1K([Validate(NUMBER(0))],e.prototype,"paddingX",void 0),__decorate$1K([Validate(NUMBER(0))],e.prototype,"paddingY",void 0),__decorate$1K([Validate(BOOLEAN)],e.prototype,"toggleSeriesVisible",void 0),e}(),LegendListeners=function(){function e(){this.legendItemClick=void 0,this.legendItemDoubleClick=void 0}return __decorate$1K([Validate(OPT_FUNCTION)],e.prototype,"legendItemClick",void 0),e}(),Legend=function(){function e(e,t,n,r,o,i){var a,s=this;this.chart=e,this.interactionManager=t,this.cursorManager=n,this.highlightManager=r,this.tooltipManager=o,this.layoutService=i,this.id=createId$1(this),this.group=new Group({name:"legend",layer:!0,zIndex:Layers.LEGEND_ZINDEX}),this.itemSelection=Selection.select(this.group,MarkerLabel),this.oldSize=[0,0],this.pages=[],this.maxPageSize=[0,0],this.paginationTrackingIndex=0,this.item=new LegendItem,this.listeners=new LegendListeners,this.truncatedItems=new Set,this._data=[],this._enabled=!0,this.position="right",this.maxWidth=void 0,this.maxHeight=void 0,this.reverseOrder=void 0,this.destroyFns=[],this.spacing=20,this.characterWidths=new Map,this.size=[0,0],this._visible=!0,this.item.marker.parent=this,this.pagination=new Pagination(function(e){return s.chart.update(e)},function(e){return s.updatePageNumber(e)},this.interactionManager,this.cursorManager),this.pagination.attachPagination(this.group),this.item.marker.parent=this;var l=[this.interactionManager.addListener("click",function(e){return s.checkLegendClick(e)}),this.interactionManager.addListener("dblclick",function(e){return s.checkLegendDoubleClick(e)}),this.interactionManager.addListener("hover",function(e){return s.handleLegendMouseMove(e)})],c=[this.layoutService.addListener("start-layout",function(e){return s.positionLegend(e.shrinkRect)})];(a=this.destroyFns).push.apply(a,__spread$w(l.map(function(e){return function(){return s.interactionManager.removeListener(e)}}),c.map(function(e){return function(){return s.layoutService.removeListener(e)}})))}return Object.defineProperty(e.prototype,"translationX",{get:function(){return this.group.translationX},set:function(e){this.group.translationX=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"translationY",{get:function(){return this.group.translationY},set:function(e){this.group.translationY=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.updateGroupVisibility()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this.updateGroupVisibility()},enumerable:!1,configurable:!0}),e.prototype.getOrientation=function(){if(void 0!==this.orientation)return this.orientation;switch(this.position){case"right":case"left":return"vertical";case"bottom":case"top":return"horizontal"}},e.prototype.destroy=function(){this.destroyFns.forEach(function(e){return e()})},e.prototype.onMarkerShapeChange=function(){this.itemSelection.clear(),this.group.markDirty(this.group,RedrawType.MINOR)},e.prototype.getCharacterWidths=function(e){var t=this.characterWidths;if(t.has(e))return t.get(e);var n={"...":HdpiCanvas.getTextSize("...",e).width};return t.set(e,n),n},Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e,this.updateGroupVisibility()},enumerable:!1,configurable:!0}),e.prototype.updateGroupVisibility=function(){this.group.visible=this.enabled&&this.visible&&this.data.length>0},e.prototype.attachLegend=function(e){e.append(this.group)},e.prototype.performLayout=function(e,t){var n=this,r=this.item,o=r.paddingX,i=r.paddingY,a=r.label,s=r.maxWidth,l=r.marker,c=l.size,u=l.padding,d=l.shape,p=r.label,h=p.maxLength,f=void 0===h?1/0:h,g=p.fontStyle,m=p.fontWeight,v=p.fontSize,y=p.fontFamily,A=__spread$w(this.data);this.reverseOrder&&A.reverse(),this.itemSelection.update(A);var w=[],b=a.getFont(),_=null!=s?s:.8*e,C=c+u+o;if(this.itemSelection.each(function(e,t){var r,o=getMarker$1(d||t.marker.shape);e.marker&&e.marker instanceof o||(e.marker=new o),e.markerSize=c,e.spacing=u,e.fontStyle=g,e.fontWeight=m,e.fontSize=v,e.fontFamily=y;var i=t.itemId||t.id,a=(null!==(r=t.label.text)&&void 0!==r?r:"<unknown>").replace(/\r?\n/g," ");e.text=n.truncate(a,f,_,C,b,i),w.push(e.computeBBox())}),e=Math.max(1,e),t=Math.max(1,t),!isFinite(e))return!1;var E=this.size,S=this.oldSize;E[0]=e,E[1]=t,E[0]===S[0]&&E[1]===S[1]||(S[0]=E[0],S[1]=E[1]);var O=this.updatePagination(w,e,t),x=O.pages,D=O.maxPageHeight,P=O.maxPageWidth;this.pages=x,this.maxPageSize=[P-o,D-i];var M=this.pagination.currentPage,T=this.pages[M];this.pages.length<1||!T?this.visible=!1:(this.visible=!0,this.updatePositions(M),this.update())},e.prototype.truncate=function(e,t,n,r,o,i){var a,s,l=e.split(""),c=!1;if(e.length>t&&(e=""+e.substring(0,t),c=!0),Math.floor(r+HdpiCanvas.getTextSize(e,o).width)>n){var u="",d=this.getCharacterWidths(o),p=r+d["..."];try{for(var h=__values$r(l),f=h.next();!f.done;f=h.next()){var g=f.value;if(d[g]||(d[g]=HdpiCanvas.getTextSize(g,o).width),(p+=d[g])>n)break;u+=g}}catch(e){a={error:e}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}e=u,c=!0}return c?(e+="...",this.truncatedItems.add(i)):this.truncatedItems.delete(i),e},e.prototype.updatePagination=function(e,t,n){var r=this.getOrientation(),o=Math.min(this.paginationTrackingIndex,e.length);this.pagination.orientation=r,this.pagination.translationX=0,this.pagination.translationY=0;var i=this.calculatePagination(e,t,n),a=i.pages,s=i.maxPageHeight,l=i.maxPageWidth,c=i.paginationBBox,u=i.paginationVertical,d=a.findIndex(function(e){return e.endIndex>=o});this.pagination.currentPage=Math.min(Math.max(d,0),a.length-1);var p=this.item,h=l-p.paddingX,f=s-p.paddingY,g=0,m=-c.y-this.item.marker.size/2;return u?m+=f+8:(g+=-c.x+h+8,m+=(f-c.height)/2),this.pagination.translationX=g,this.pagination.translationY=m,this.pagination.update(),this.pagination.updateMarkers(),{maxPageHeight:s,maxPageWidth:l,pages:a}},e.prototype.calculatePagination=function(e,t,n){var r,o,i,a=this.item,s=a.paddingX,l=a.paddingY,c=this.getOrientation(),u=["left","right"].includes(this.position),d=this.pagination.computeBBox(),p=new BBox(0,0,0,0),h=[],f=0,g=0,m=0,v=function(e){var t=e.width,n=e.height;return t===d.width&&n===d.height},y=void 0!==this.maxWidth||void 0!==this.maxHeight;do{if(m++>10){Logger.warn("unable to find stable legend layout.");break}d=p;var A=t-(u?0:d.width),w=gridLayout({orientation:c,bboxes:e,maxHeight:n-(u?d.height:0),maxWidth:A,itemPaddingY:l,itemPaddingX:s,forceResult:y});h=null!==(r=null==w?void 0:w.pages)&&void 0!==r?r:[],f=null!==(o=null==w?void 0:w.maxPageWidth)&&void 0!==o?o:0,g=null!==(i=null==w?void 0:w.maxPageHeight)&&void 0!==i?i:0;var b=h.length;if(this.pagination.visible=b>1,this.pagination.totalPages=b,this.pagination.update(),p=this.pagination.computeBBox(),!this.pagination.visible)break}while(!v(p));return{maxPageWidth:f,maxPageHeight:g,pages:h,paginationBBox:d,paginationVertical:u}},e.prototype.updatePositions=function(e){void 0===e&&(e=0);var t=this,n=t.item.paddingY,r=t.itemSelection,o=t.pages;if(!(o.length<1)&&o[e]){var i=o[e],a=i.columns,s=i.startIndex,l=i.endIndex,c=0,u=0,d=a.length,p=a[0].indices.length,h="horizontal"===this.getOrientation(),f=a[0].bboxes[0].height+n,g=[];r.each(function(e,t,n){var r,o;if(n<s||n>l)e.visible=!1;else{var i=n-s,m=0,v=0;h?(m=i%d,v=Math.floor(i/d)):(m=Math.floor(i/p),v=i%p),e.visible=!0;var y=a[m];y&&(u=f*v,c=null!==(r=g[v])&&void 0!==r?r:0,g[v]=(null!==(o=g[v])&&void 0!==o?o:0)+y.columnWidth,e.translationX=Math.floor(c),e.translationY=Math.floor(u))}})}},e.prototype.updatePageNumber=function(e){var t=this.pages,n=t[e],r=n.startIndex,o=n.endIndex;0===r?this.paginationTrackingIndex=0:e===t.length-1?this.paginationTrackingIndex=o:this.paginationTrackingIndex=Math.floor((r+o)/2),this.pagination.update(),this.pagination.updateMarkers(),this.updatePositions(e),this.chart.update(ChartUpdateType.SCENE_RENDER)},e.prototype.update=function(){var e=this.item,t=e.marker.strokeWidth,n=e.label.color;this.itemSelection.each(function(e,r){var o=r.marker;e.markerFill=o.fill,e.markerStroke=o.stroke,e.markerStrokeWidth=t,e.markerFillOpacity=o.fillOpacity,e.markerStrokeOpacity=o.strokeOpacity,e.opacity=r.enabled?1:.5,e.color=n})},e.prototype.getDatumForPoint=function(e,t){var n,r,o=[],i={dist:1/0,datum:void 0};try{for(var a=__values$r(this.group.children),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.visible&&l instanceof MarkerLabel){var c=l.computeBBox();if(c.grow(this.item.paddingX/2,"horizontal"),c.grow(this.item.paddingY/2,"vertical"),c.containsPoint(e,t))return l.datum;var u=e-c.x-this.item.paddingX/2,d=t-c.y-this.item.paddingY/2,p=Math.pow(u,2)+Math.pow(d,2);u>=0&&d>=0&&p<i.dist&&(i.dist=p,i.datum=l.datum),o.push(c)}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}if(BBox.merge(o).containsPoint(e,t))return i.datum},e.prototype.computeBBox=function(){return this.group.computeBBox()},e.prototype.computePagedBBox=function(){var e=this.group.computeBBox();if(this.pages.length<=1)return e;var t=__read$U(this.maxPageSize,2),n=t[0],r=t[1];return e.height=Math.max(r,e.height),e.width=Math.max(n,e.width),e},e.prototype.checkLegendClick=function(e){var t=this,n=t.listeners.legendItemClick,r=t.chart,o=t.highlightManager,i=t.item.toggleSeriesVisible,a=this.getDatumForPoint(e.offsetX,e.offsetY);if(a){var s=a.id,l=a.itemId,c=a.enabled,u=r.series.find(function(e){return e.id===s});if(u){e.consume();var d=c;i&&(d=!c,r.series.forEach(function(e){e.id===u.id?e.toggleSeriesItem(l,d):e.toggleOtherSeriesItems(u,a,d)})),d?o.updateHighlight(this.id,{series:u,itemId:l,datum:void 0}):o.updateHighlight(this.id),this.chart.update(ChartUpdateType.PROCESS_DATA,{forceNodeDataRefresh:!0}),null==n||n({type:"click",enabled:d,itemId:l,seriesId:u.id})}}},e.prototype.checkLegendDoubleClick=function(e){var t,n,r=this,o=r.listeners.legendItemDoubleClick,i=r.chart,a=r.item.toggleSeriesVisible;if("integrated"!==i.mode){var s=this.getDatumForPoint(e.offsetX,e.offsetY);if(s){var l=s.id,c=s.itemId,u=s.seriesId,d=i.series.find(function(e){return e.id===l});if(d){if(e.consume(),a){var p=i.series.reduce(function(e,t){return __spread$w(e,t.getLegendData())},[]),h=p.filter(function(e){return e.enabled}).length,f=p.find(function(e){return e.itemId===c&&e.seriesId===u}),g=p.reduce(function(e,t){var n,r;return null!==(n=e[r=t.seriesId])&&void 0!==n||(e[r]=0),e[t.seriesId]++,e},{}),m=p.reduce(function(e,t){var n,r;return t.enabled?(null!==(n=e[r=t.seriesId])&&void 0!==n||(e[r]=0),e[t.seriesId]++,e):e},{}),v=0===Object.values(g).filter(function(e){return e>1}).length,y=0===Object.values(m).filter(function(e){return e>1}).length,A=1===h&&null!==(t=null==f?void 0:f.enabled)&&void 0!==t&&t,w=y&&null!==(n=null==f?void 0:f.enabled)&&void 0!==n&&n;i.series.forEach(function(e){e.getLegendData().forEach(function(t){var n=t.itemId===c&&t.seriesId===u||v&&A||!v&&w;e.toggleSeriesItem(t.itemId,n)}),e.id!==d.id&&e.toggleOtherSeriesItems(d,s,void 0,w)})}this.chart.update(ChartUpdateType.PROCESS_DATA,{forceNodeDataRefresh:!0}),null==o||o({type:"dblclick",enabled:!0,itemId:c,seriesId:d.id})}}}},e.prototype.handleLegendMouseMove=function(e){var t=this,n=t.enabled,r=t.item.toggleSeriesVisible,o=t.listeners;if(n){var i=this.computeBBox(),a=e.pageX,s=e.pageY,l=e.offsetX,c=e.offsetY,u=this.group.visible&&i.containsPoint(l,c);if(!u)return this.cursorManager.updateCursor(this.id),this.highlightManager.updateHighlight(this.id),void this.tooltipManager.removeTooltip(this.id);e.consume();var d=this.getDatumForPoint(l,c);if(!u||void 0===d)return this.cursorManager.updateCursor(this.id),void this.highlightManager.updateHighlight(this.id);var p=d?this.chart.series.find(function(e){return e.id===(null==d?void 0:d.id)}):void 0;d&&this.truncatedItems.has(d.itemId||d.id)?this.tooltipManager.updateTooltip(this.id,{pageX:a,pageY:s,offsetX:l,offsetY:c,event:e},toTooltipHtml$1({content:d.label.text})):this.tooltipManager.removeTooltip(this.id),(r||null!=o.legendItemClick)&&this.cursorManager.updateCursor(this.id,"pointer"),(null==d?void 0:d.enabled)&&p?this.highlightManager.updateHighlight(this.id,{series:p,itemId:null==d?void 0:d.itemId,datum:void 0}):this.highlightManager.updateHighlight(this.id)}},e.prototype.positionLegend=function(e){var t=this,n=e.clone();if(!this.enabled||!this.data.length)return{shrinkRect:n};var r=__read$U(this.calculateLegendDimensions(e),2),o=r[0],i=r[1],a=0,s=0;this.translationX=0,this.translationY=0,this.performLayout(o,i);var l=this.computePagedBBox(),c=function(){switch(t.position){case"top":case"left":return 0;case"bottom":return e.height-l.height;default:return e.width-l.width}};if(this.visible){switch(this.position){case"top":case"bottom":a=(e.width-l.width)/2,s=c(),n.shrink(l.height,this.position);break;default:a=c(),s=(e.height-l.height)/2,n.shrink(l.width,this.position)}this.translationX=Math.floor(-l.x+e.x+a),this.translationY=Math.floor(-l.y+e.y+s)}if(this.visible&&this.enabled&&this.data.length){var u=this.spacing;n.shrink(u,this.position);var d=l.clone();d.x+=this.translationX,d.y+=this.translationY,this.tooltipManager.updateExclusiveRect(this.id,d)}else this.tooltipManager.updateExclusiveRect(this.id);return{shrinkRect:n}},e.prototype.calculateLegendDimensions=function(e){var t=e.width,n=e.height,r=t/n,o=0,i=0;switch(this.position){case"top":case"bottom":var a=r<1?Math.min(.5,1/r*.2):.2;o=this.maxWidth?Math.min(this.maxWidth,t):t,i=this.maxHeight?Math.min(this.maxHeight,n):Math.round(n*a);break;default:var s=r>1?Math.min(.5,.25*r):.25;o=this.maxWidth?Math.min(this.maxWidth,t):Math.round(t*s),i=this.maxHeight?Math.min(this.maxHeight,n):n}return[o,i]},e.className="Legend",__decorate$1K([Validate(BOOLEAN)],e.prototype,"_enabled",void 0),__decorate$1K([Validate(POSITION)],e.prototype,"position",void 0),__decorate$1K([Validate(OPT_NUMBER(0))],e.prototype,"maxWidth",void 0),__decorate$1K([Validate(OPT_NUMBER(0))],e.prototype,"maxHeight",void 0),__decorate$1K([Validate(OPT_BOOLEAN)],e.prototype,"reverseOrder",void 0),__decorate$1K([Validate(OPT_ORIENTATION)],e.prototype,"orientation",void 0),__decorate$1K([Validate(NUMBER(0))],e.prototype,"spacing",void 0),e}(),__values$q=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},SizeMonitor=function(){function e(){}return e.init=function(){var e=this,t=window.ResizeObserver;t?this.resizeObserver=new t(function(t){var n,r;try{for(var o=__values$q(t),i=o.next();!i.done;i=o.next()){var a=i.value,s=a.contentRect,l=s.width,c=s.height;e.checkSize(e.elements.get(a.target),a.target,l,c)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}):window.setInterval(function(){e.elements.forEach(function(t,n){e.checkClientSize(n,t)})},100),this.ready=!0},e.checkSize=function(e,t,n,r){e&&(e.size&&n===e.size.width&&r===e.size.height||(e.size={width:n,height:r},e.cb(e.size,t)))},e.observe=function(e,t){this.ready||this.init(),this.unobserve(e),this.resizeObserver&&this.resizeObserver.observe(e),this.elements.set(e,{cb:t}),this.checkClientSize(e,{cb:t})},e.unobserve=function(e){this.resizeObserver&&this.resizeObserver.unobserve(e),this.elements.delete(e)},e.checkClientSize=function(e,t){var n=e.clientWidth?e.clientWidth:0,r=e.clientHeight?e.clientHeight:0;this.checkSize(t,e,n,r)},e.elements=new Map,e.ready=!1,e}();function circleRectOverlap(e,t,n,r,o){var i=e.x<t?t:e.x>t+r?t+r:e.x,a=e.y<n?n:e.y>n+o?n+o:e.y,s=e.x-i,l=e.y-a;return Math.sqrt(s*s+l*l)<=.5*e.size}function rectRectOverlap(e,t,n,r,o){var i=e.x+e.width>t&&e.x<t+r,a=e.y+e.height>n&&e.y<n+o;return i&&a}function rectContainsRect(e,t,n,r,o){return t+r<e.x+e.width&&t>e.x&&n>e.y&&n+o<e.y+e.height}function isPointLabelDatum(e){return null!=e&&"object"==typeof e.point&&"object"==typeof e.label}function placeLabels(e,t,n){void 0===n&&(n=5);var r=[];e=e.map(function(e){return e.slice().sort(function(e,t){return t.point.size-e.point.size})});for(var o=0;o<e.length;o++){var i=r[o]=[],a=e[o];if(a&&a.length&&a[0].label)for(var s=function(o,s){var l=a[o],c=l.label,u=.5*l.point.size,d=l.point.x-.5*c.width,p=l.point.y-u-c.height-n,h=c.width,f=c.height;if(t&&!rectContainsRect(t,d,p,h,f))return"continue";var g=e.some(function(e){return e.some(function(e){return circleRectOverlap(e.point,d,p,h,f)})});if(g)return"continue";var m=r.some(function(e){return e.some(function(e){return rectRectOverlap(e,d,p,h,f)})});if(m)return"continue";i.push({index:o,text:c.text,x:d,y:p,width:h,height:f,datum:l})},l=0,c=a.length;l<c;l++)s(l)}return r}function axisLabelsOverlap(e,t){for(var n=[],r=function(r){var o=e[r],i=o.point,a=i.x,s=i.y,l=o.label.text,c=o.label,u=c.width,d=c.height;if(u+=null!=t?t:0,d+=null!=t?t:0,n.some(function(e){return rectRectOverlap(e,a,s,u,d)}))return{value:!0};n.push({index:r,text:l,x:a,y:s,width:u,height:d,datum:o})},o=0;o<e.length;o++){var i=r(o);if("object"==typeof i)return i.value}return!1}var __awaiter$e=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$e=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};function debouncedAnimationFrame(e){return buildScheduler(function(e){return requestAnimationFrame(e)},e)}function debouncedCallback(e){return buildScheduler(function(e){return setTimeout(e,0)},e)}function buildScheduler(e,t){var n,r,o=0,i=!1,a=function(){return i},s=function(){i=!1,null==r||r(),r=void 0,n=void 0,o>0&&e(l)},l=function(){var e=o;o=0,i=!0;var n=t({count:e});n?n.then(s).catch(s):s()};return{schedule:function(){0!==o||a()||e(l),o++},await:function(){return __awaiter$e(this,void 0,void 0,function(){return __generator$e(this,function(e){switch(e.label){case 0:if(!a())return[2];n||(n=new Promise(function(e){r=e})),e.label=1;case 1:return a()?[4,n]:[3,3];case 2:return e.sent(),[3,1];case 3:return[2]}})})}}}var __extends$2r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1J=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},MARKER_SHAPES=["circle","cross","diamond","heart","plus","square","triangle"],MARKER_SHAPE=predicateWithMessage(function(e){return MARKER_SHAPES.includes(e)||Object.getPrototypeOf(e)===Marker},"expecting a marker shape keyword such as 'circle', 'diamond' or 'square' or an object extending the Marker class"),SeriesMarker=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enabled=!0,t.shape=Circle,t.size=6,t.maxSize=30,t.domain=void 0,t.fill=void 0,t.stroke=void 0,t.strokeWidth=1,t.fillOpacity=void 0,t.strokeOpacity=void 0,t}return __extends$2r(t,e),__decorate$1J([Validate(BOOLEAN),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"enabled",void 0),__decorate$1J([Validate(MARKER_SHAPE),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"shape",void 0),__decorate$1J([Validate(NUMBER(0)),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"size",void 0),__decorate$1J([Validate(NUMBER(0)),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"maxSize",void 0),__decorate$1J([Validate(OPT_NUMBER_ARRAY),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"domain",void 0),__decorate$1J([Validate(OPT_COLOR_STRING),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"fill",void 0),__decorate$1J([Validate(OPT_COLOR_STRING),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"stroke",void 0),__decorate$1J([Validate(OPT_NUMBER(0)),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"strokeWidth",void 0),__decorate$1J([Validate(OPT_NUMBER(0,1)),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"fillOpacity",void 0),__decorate$1J([Validate(OPT_NUMBER(0,1)),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"strokeOpacity",void 0),t}(ChangeDetectable),__read$T=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ContinuousScale=function(){function e(t,n){this.domain=t,this.range=n,this.nice=!1,this.tickCount=e.defaultTickCount,this.minTickCount=0,this.maxTickCount=1/0,this.niceDomain=null,this.strictClampByDefault=!1,this.cache=null,this.cacheProps=["domain","range","nice","tickCount","minTickCount","maxTickCount"]}return e.prototype.transform=function(e){return e},e.prototype.transformInvert=function(e){return e},e.prototype.fromDomain=function(e){return"number"==typeof e?e:e instanceof Date?e.getTime():NaN},e.prototype.getDomain=function(){return this.nice&&(this.refresh(),this.niceDomain)?this.niceDomain:this.domain},e.prototype.convert=function(e,t){var n,r=this;if(!this.domain||this.domain.length<2)return NaN;this.refresh();var o=null!==(n=null==t?void 0:t.strict)&&void 0!==n?n:this.strictClampByDefault,i=this.getDomain().map(function(e){return r.transform(e)}),a=__read$T(i,2),s=a[0],l=a[1],c=this.range,u=__read$T(c,2),d=u[0],p=u[1];return(e=this.transform(e))<s?o?NaN:d:e>l?o?NaN:p:s===l?(d+p)/2:e===s?d:e===l?p:d+(this.fromDomain(e)-this.fromDomain(s))/(this.fromDomain(l)-this.fromDomain(s))*(p-d)},e.prototype.invert=function(e){var t=this;this.refresh();var n,r=this.getDomain().map(function(e){return t.transform(e)}),o=__read$T(r,2),i=o[0],a=o[1],s=this.range,l=__read$T(s,2),c=l[0],u=l[1],d=c>u;return e<(d?u:c)?d?a:i:e>(d?c:u)?d?i:a:(n=c===u?this.toDomain((this.fromDomain(i)+this.fromDomain(a))/2):this.toDomain(this.fromDomain(i)+(e-c)/(u-c)*(this.fromDomain(a)-this.fromDomain(i))),this.transformInvert(n))},e.prototype.didChange=function(){var e=this,t=this.cache;return!(t&&!this.cacheProps.some(function(n){return e[n]!==t[n]})||(this.cache={},this.cacheProps.forEach(function(t){return e.cache[t]=e[t]}),0))},e.prototype.refresh=function(){this.didChange()&&this.update()},e.prototype.isDenseInterval=function(e){var t=e.start,n=e.stop,r=e.interval,o=e.count,i=this.range,a=n-t,s=Math.min(i[0],i[1]);return null!=o||(o=a/("number"==typeof r?r:1)),o>=Math.max(i[0],i[1])-s&&(Logger.warn("the configured tick interval, "+JSON.stringify(r)+", results in more than 1 tick per pixel, ignoring. Supply a larger tick interval or omit this configuration."),!0)},e.defaultTickCount=5,e.defaultMaxTickCount=6,e}(),__read$S=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function clamp(e,t,n){return Math.max(t,Math.min(n,e))}var BandScale$5=function(){function e(){this.type="band",this.cache=null,this.cacheProps=["_domain","range","_paddingInner","_paddingOuter","round","interval"],this.index=new Map,this.ordinalRange=[],this._domain=[],this.range=[0,1],this._bandwidth=1,this._rawBandwidth=1,this._paddingInner=0,this._paddingOuter=0,this.round=!1}return e.prototype.didChange=function(){var e=this,t=this.cache;return!(t&&!this.cacheProps.some(function(n){return e[n]!==t[n]})||(this.cache={},this.cacheProps.forEach(function(t){return e.cache[t]=e[t]}),0))},e.prototype.refresh=function(){this.didChange()&&this.update()},Object.defineProperty(e.prototype,"domain",{get:function(){return this._domain},set:function(e){var t=[];this.index=new Map;var n=this.index;e.forEach(function(e){void 0===n.get(e)&&n.set(e,t.push(e)-1)}),this._domain=t},enumerable:!1,configurable:!0}),e.prototype.ticks=function(){this.refresh();var e=this.interval,t=void 0===e?1:e,n=Math.abs(Math.round(t));return this._domain.filter(function(e,t){return t%n===0})},e.prototype.convert=function(e){this.refresh();var t=this.index.get(e);if(void 0===t)return NaN;var n=this.ordinalRange[t];return void 0===n?NaN:n},e.prototype.invert=function(e){this.refresh();var t=this.ordinalRange.findIndex(function(t){return t===e});return this.domain[t]},Object.defineProperty(e.prototype,"bandwidth",{get:function(){return this.refresh(),this._bandwidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawBandwidth",{get:function(){return this.refresh(),this._rawBandwidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._paddingInner},set:function(e){e=clamp(e,0,1),this._paddingInner=e,this._paddingOuter=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paddingInner",{get:function(){return this._paddingInner},set:function(e){this._paddingInner=clamp(e,0,1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paddingOuter",{get:function(){return this._paddingOuter},set:function(e){this._paddingOuter=clamp(e,0,1)},enumerable:!1,configurable:!0}),e.prototype.update=function(){var e=this._domain.length;if(0!==e){for(var t=this.round,n=this._paddingInner,r=this._paddingOuter,o=__read$S(this.range,2),i=o[0],a=o[1]-i,s=a/Math.max(1,e+2*r-n),l=t?Math.floor(s):s,c=i+(a-l*(e-n))/2,u=t?Math.round(c):c,d=l*(1-n),p=t?Math.round(d):d,h=s*(1-n),f=[],g=0;g<e;g++)f.push(u+l*g);this._bandwidth=p,this._rawBandwidth=h,this.ordinalRange=f}},e}(),__extends$2q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1I=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Line=function(e){function t(){var t=e.call(this)||this;return t.x1=0,t.y1=0,t.x2=0,t.y2=0,t.restoreOwnStyles(),t}return __extends$2q(t,e),t.prototype.computeBBox=function(){return new BBox(this.x1,this.y1,this.x2-this.x1,this.y2-this.y1)},t.prototype.isPointInPath=function(e,t){return!1},t.prototype.render=function(t){var n,r=t.ctx,o=t.forceRender,i=t.stats;if(this.dirty!==RedrawType.NONE||o){this.computeTransformMatrix(),this.matrix.toContext(r);var a=this.x1,s=this.y1,l=this.x2,c=this.y2;if(a===l){var u=Math.round(a)+Math.floor(this.strokeWidth)%2/2;a=u,l=u}else if(s===c){var d=Math.round(s)+Math.floor(this.strokeWidth)%2/2;s=d,c=d}r.beginPath(),r.moveTo(a,s),r.lineTo(l,c),this.fillStroke(r),null===(n=this.fillShadow)||void 0===n||n.markClean(),e.prototype.render.call(this,t)}else i&&(i.nodesSkipped+=this.nodeCount.count)},t.className="Line",t.defaultStyles=Object.assign({},Shape.defaultStyles,{fill:void 0,strokeWidth:1}),__decorate$1I([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"x1",void 0),__decorate$1I([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"y1",void 0),__decorate$1I([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"x2",void 0),__decorate$1I([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"y2",void 0),t}(Shape);function isEqual$2(e,t,n){return void 0===n&&(n=1e-10),Math.abs(e-t)<n}function toFixed(e,t){void 0===t&&(t=2);var n=Math.floor(Math.log(Math.abs(e))/Math.LN10);return n>=0||!isFinite(n)?e.toFixed(t):e.toFixed(Math.abs(n)-1+t)}function mod(e,t){return e>=0?Math.floor(e%t):Math.floor(e%t+t)}var __extends$2p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1H=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ArcType;!function(e){e[e.Open=0]="Open",e[e.Chord=1]="Chord",e[e.Round=2]="Round"}(ArcType||(ArcType={}));var Arc=function(e){function t(){var t=e.call(this)||this;return t.centerX=0,t.centerY=0,t.radius=10,t.startAngle=0,t.endAngle=2*Math.PI,t.counterClockwise=!1,t.type=ArcType.Open,t.restoreOwnStyles(),t}return __extends$2p(t,e),Object.defineProperty(t.prototype,"fullPie",{get:function(){return isEqual$2(normalizeAngle360(this.startAngle),normalizeAngle360(this.endAngle))},enumerable:!1,configurable:!0}),t.prototype.updatePath=function(){var e=this.path;e.clear(),e.arc(this.centerX,this.centerY,this.radius,this.startAngle,this.endAngle,this.counterClockwise),this.type===ArcType.Chord?e.closePath():this.type!==ArcType.Round||this.fullPie||(e.lineTo(this.centerX,this.centerY),e.closePath())},t.prototype.computeBBox=function(){return new BBox(this.centerX-this.radius,this.centerY-this.radius,2*this.radius,2*this.radius)},t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t),r=this.computeBBox();return this.type!==ArcType.Open&&r.containsPoint(n.x,n.y)&&this.path.isPointInPath(n.x,n.y)},t.className="Arc",t.defaultStyles=Object.assign({},Shape.defaultStyles,{lineWidth:1,fillStyle:null}),__decorate$1H([ScenePathChangeDetection()],t.prototype,"centerX",void 0),__decorate$1H([ScenePathChangeDetection()],t.prototype,"centerY",void 0),__decorate$1H([ScenePathChangeDetection()],t.prototype,"radius",void 0),__decorate$1H([ScenePathChangeDetection()],t.prototype,"startAngle",void 0),__decorate$1H([ScenePathChangeDetection()],t.prototype,"endAngle",void 0),__decorate$1H([ScenePathChangeDetection()],t.prototype,"counterClockwise",void 0),__decorate$1H([ScenePathChangeDetection()],t.prototype,"type",void 0),t}(Path),__decorate$1G=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Caption=function(){function e(){this.node=new Text,this.enabled=!1,this.text="",this.fontSize=10,this.fontFamily="sans-serif",this.spacing=e.PADDING,this._lineHeight=void 0;var t=this.node;t.textAlign="center",t.pointerEvents=PointerEvents.None}return Object.defineProperty(e.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(e){this._lineHeight=e,this.node.lineHeight=e},enumerable:!1,configurable:!0}),e.PADDING=10,__decorate$1G([Validate(BOOLEAN)],e.prototype,"enabled",void 0),__decorate$1G([Validate(STRING),ProxyPropertyOnWrite("node")],e.prototype,"text",void 0),__decorate$1G([Validate(OPT_FONT_STYLE),ProxyPropertyOnWrite("node")],e.prototype,"fontStyle",void 0),__decorate$1G([Validate(OPT_FONT_WEIGHT),ProxyPropertyOnWrite("node")],e.prototype,"fontWeight",void 0),__decorate$1G([Validate(NUMBER(0)),ProxyPropertyOnWrite("node")],e.prototype,"fontSize",void 0),__decorate$1G([Validate(STRING),ProxyPropertyOnWrite("node")],e.prototype,"fontFamily",void 0),__decorate$1G([Validate(OPT_COLOR_STRING),ProxyPropertyOnWrite("node","fill")],e.prototype,"color",void 0),__decorate$1G([Validate(OPT_NUMBER(0))],e.prototype,"spacing",void 0),__decorate$1G([Validate(OPT_NUMBER(0))],e.prototype,"_lineHeight",void 0),e}();function areArrayItemsStrictlyEqual(e,t){return e.length===t.length&&e.every(function(e,n){var r=t[n];return Array.isArray(e)&&Array.isArray(r)?areArrayItemsStrictlyEqual(e,r):e===r})}function areArrayNumbersEqual(e,t){return e.length===t.length&&e.every(function(e,n){return Number(e)===Number(t[n])})}var __extends$2o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ticks(e,t,n,r,o){if(n<2)return range(e,t,t-e);var i=tickStep(e,t,n,r,o);return isNaN(i)?new NumericTicks(0):range(e=Math.ceil(e/i)*i,t=Math.floor(t/i)*i,i)}var tickMultipliers=[1,2,5,10];function tickStep(e,t,n,r,o){void 0===r&&(r=0),void 0===o&&(o=1/0);var i=(t-e)/n,a=Math.floor(Math.log10(i)),s=Math.pow(10,a),l=tickMultipliers.map(function(i){var a=i*s,l=Math.ceil((t-e)/a);return{multiplier:i,isWithinBounds:l>=r&&l<=o,diffCount:Math.abs(l-n)}}).sort(function(e,t){return e.isWithinBounds!==t.isWithinBounds?e.isWithinBounds?-1:1:e.diffCount-t.diffCount})[0].multiplier;return!l||isNaN(l)?NaN:l*s}function singleTickDomain(e,t){var n=Math.floor(Math.log10(t-e)),r=Math.pow(10,n);return tickMultipliers.map(function(n){var o=n*r,i=Math.floor(e/o)*o,a=Math.ceil(t/o)*o;return{error:1-(t-e)/(a-i),domain:[i,a]}}).sort(function(e,t){return e.error-t.error})[0].domain}var NumericTicks=function(e){function t(t,n){var r=e.call(this)||this;if(n)for(var o=0,i=n.length;o<i;o++)r[o]=n[o];return r.fractionDigits=t,r}return __extends$2o(t,e),t}(Array);function range(e,t,n){for(var r=function(e){var t,n,r=e.split("e");return Math.max((null!==(n=null===(t=r[0].split(".")[1])||void 0===t?void 0:t.length)&&void 0!==n?n:0)-Number(r[1]),0)}((n%1).toExponential()),o=Math.pow(10,r),i=Math.ceil((t-e)/n),a=new NumericTicks(r),s=0;s<=i;s++){var l=e+n*s;a.push(Math.round(l*o)/o)}return a}var CONSTANTS={periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};function dayOfYear(e,t){void 0===t&&(t=new Date(e.getFullYear(),0,1));var n=e.getTimezoneOffset()-t.getTimezoneOffset(),r=e.getTime()-t.getTime()+6e4*n;return Math.floor(r/864e5)}function weekOfYear(e,t){var n=(t-new Date(e.getFullYear(),0,1).getDay()+7)%7,r=new Date(e.getFullYear(),0,n+1);return r<=e?Math.floor(dayOfYear(e,r)/7)+1:0}var SUNDAY=0,MONDAY=1,THURSDAY=4;function isoWeekOfYear(e,t){void 0===t&&(t=e.getFullYear());var n=new Date(t,0,1).getDay(),r=new Date(t,0,(THURSDAY-n+7)%7-(THURSDAY-MONDAY)+1);return r<=e?Math.floor(dayOfYear(e,r)/7)+1:isoWeekOfYear(e,t-1)}function timezone(e){var t=e.getTimezoneOffset(),n=Math.abs(t);return(t>0?"-":"+")+pad(Math.floor(n/60),2,"0")+pad(Math.floor(n%60),2,"0")}var FORMATTERS={a:function(e){return CONSTANTS.shortDays[e.getDay()]},A:function(e){return CONSTANTS.days[e.getDay()]},b:function(e){return CONSTANTS.shortMonths[e.getMonth()]},B:function(e){return CONSTANTS.months[e.getMonth()]},c:"%x, %X",d:function(e,t){return pad(e.getDate(),2,null!=t?t:"0")},e:"%_d",f:function(e,t){return pad(1e3*e.getMilliseconds(),6,null!=t?t:"0")},H:function(e,t){return pad(e.getHours(),2,null!=t?t:"0")},I:function(e,t){var n=e.getHours()%12;return 0===n?"12":pad(n,2,null!=t?t:"0")},j:function(e,t){return pad(dayOfYear(e)+1,3,null!=t?t:"0")},m:function(e,t){return pad(e.getMonth()+1,2,null!=t?t:"0")},M:function(e,t){return pad(e.getMinutes(),2,null!=t?t:"0")},L:function(e,t){return pad(e.getMilliseconds(),3,null!=t?t:"0")},p:function(e){return e.getHours()<12?"AM":"PM"},Q:function(e){return String(e.getTime())},s:function(e){return String(Math.floor(e.getTime()/1e3))},S:function(e,t){return pad(e.getSeconds(),2,null!=t?t:"0")},u:function(e){var t=e.getDay();return t<1&&(t+=7),String(t%7)},U:function(e,t){return pad(weekOfYear(e,SUNDAY),2,null!=t?t:"0")},V:function(e,t){return pad(isoWeekOfYear(e),2,null!=t?t:"0")},w:function(e,t){return pad(e.getDay(),2,null!=t?t:"0")},W:function(e,t){return pad(weekOfYear(e,MONDAY),2,null!=t?t:"0")},x:"%-m/%-d/%Y",X:"%-I:%M:%S %p",y:function(e,t){return pad(e.getFullYear()%100,2,null!=t?t:"0")},Y:function(e,t){return pad(e.getFullYear(),4,null!=t?t:"0")},Z:function(e){return timezone(e)},"%":function(){return"%"}},PADS={_:" ",0:"0","-":""};function pad(e,t,n){var r=String(Math.floor(e));return r.length>=t?r:""+n.repeat(t-r.length)+r}function buildFormatter(e){for(var t=[];e.length>0;){var n=e.indexOf("%");if(0!==n){var r=n>0?e.substring(0,n):e;t.push(r)}if(n<0)break;var o=e[n+1],i=PADS[o];null!=i&&n++;var a=e[n+1],s=FORMATTERS[a];if("function"==typeof s)t.push([s,i]);else if("string"==typeof s){var l=buildFormatter(s);t.push([l,i])}else t.push(""+(null!=i?i:"")+a);e=e.substring(n+2)}return function(e){var n="number"==typeof e?new Date(e):e;return t.map(function(e){return"string"==typeof e?e:e[0](n,e[1])}).join("")}}var __extends$2n=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__values$p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$R=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$v=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$R(arguments[t]));return e},_a$2,DefaultTimeFormats;!function(e){e[e.MILLISECOND=0]="MILLISECOND",e[e.SECOND=1]="SECOND",e[e.MINUTE=2]="MINUTE",e[e.HOUR=3]="HOUR",e[e.WEEK_DAY=4]="WEEK_DAY",e[e.SHORT_MONTH=5]="SHORT_MONTH",e[e.MONTH=6]="MONTH",e[e.SHORT_YEAR=7]="SHORT_YEAR",e[e.YEAR=8]="YEAR"}(DefaultTimeFormats||(DefaultTimeFormats={}));var formatStrings=(_a$2={},_a$2[DefaultTimeFormats.MILLISECOND]=".%L",_a$2[DefaultTimeFormats.SECOND]=":%S",_a$2[DefaultTimeFormats.MINUTE]="%I:%M",_a$2[DefaultTimeFormats.HOUR]="%I %p",_a$2[DefaultTimeFormats.WEEK_DAY]="%a",_a$2[DefaultTimeFormats.SHORT_MONTH]="%b %d",_a$2[DefaultTimeFormats.MONTH]="%B",_a$2[DefaultTimeFormats.SHORT_YEAR]="%y",_a$2[DefaultTimeFormats.YEAR]="%Y",_a$2);function toNumber(e){return e instanceof Date?e.getTime():e}var TimeScale$1=function(e){function t(){var t=e.call(this,[new Date(2022,11,7),new Date(2022,11,8)],[0,1])||this;return t.type="time",t.cacheProps=["domain","range","nice","tickCount","interval","minTickCount","maxTickCount"],t.year=year,t.month=month,t.week=sunday,t.day=day,t.hour=hour,t.minute=minute,t.second=second,t.millisecond=millisecond,t.tickIntervals=[[t.second,1,durationSecond],[t.second,5,5*durationSecond],[t.second,15,15*durationSecond],[t.second,30,30*durationSecond],[t.minute,1,durationMinute],[t.minute,5,5*durationMinute],[t.minute,15,15*durationMinute],[t.minute,30,30*durationMinute],[t.hour,1,durationHour],[t.hour,3,3*durationHour],[t.hour,6,6*durationHour],[t.hour,12,12*durationHour],[t.day,1,durationDay],[t.day,2,2*durationDay],[t.week,1,durationWeek],[t.week,2,2*durationWeek],[t.week,3,3*durationWeek],[t.month,1,durationMonth],[t.month,2,2*durationMonth],[t.month,3,3*durationMonth],[t.month,4,4*durationMonth],[t.month,6,6*durationMonth],[t.year,1,durationYear]],t}return __extends$2n(t,e),t.prototype.toDomain=function(e){return new Date(e)},t.prototype.calculateDefaultTickFormat=function(e){var t,n;void 0===e&&(e=[]);var r=DefaultTimeFormats.YEAR,o=function(e){e<r&&(r=e)};try{for(var i=__values$p(e),a=i.next();!a.done;a=i.next()){var s=a.value;o(this.getLowestGranularityFormat(s))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}var l=toNumber(e[0]),c=toNumber(e[e.length-1]),u=new Date(l).getFullYear(),d=new Date(c).getFullYear()-u>0;return this.buildFormatString(r,d)},t.prototype.buildFormatString=function(e,t){var n=[formatStrings[e]],r=0,o=this.getDomain(),i=Math.min.apply(Math,__spread$v(o.map(toNumber))),a=Math.max.apply(Math,__spread$v(o.map(toNumber)))-i;switch(e){case DefaultTimeFormats.SECOND:a/durationMinute>1&&n.push(formatStrings[DefaultTimeFormats.MINUTE]);case DefaultTimeFormats.MINUTE:a/durationHour>1&&n.push(formatStrings[DefaultTimeFormats.HOUR]);case DefaultTimeFormats.HOUR:r=n.length,a/durationDay>1&&n.push(formatStrings[DefaultTimeFormats.WEEK_DAY]);case DefaultTimeFormats.WEEK_DAY:if(a/durationWeek>1||t){var s=n.indexOf(formatStrings[DefaultTimeFormats.WEEK_DAY]);s>-1&&n.splice(s,1,formatStrings[DefaultTimeFormats.SHORT_MONTH])}case DefaultTimeFormats.SHORT_MONTH:case DefaultTimeFormats.MONTH:(a/durationYear>1||t)&&n.push(formatStrings[DefaultTimeFormats.YEAR])}return r<n.length&&(n=__spread$v(n.slice(0,r),[n.slice(r).join(" ")])),r>0&&r<(n=__spread$v(n.slice(0,r).reverse(),n.slice(r))).length&&n.splice(r,0," "),n.join("")},t.prototype.getLowestGranularityFormat=function(e){return this.second.floor(e)<e?DefaultTimeFormats.MILLISECOND:this.minute.floor(e)<e?DefaultTimeFormats.SECOND:this.hour.floor(e)<e?DefaultTimeFormats.MINUTE:this.day.floor(e)<e?DefaultTimeFormats.HOUR:this.month.floor(e)<e?this.week.floor(e)<e?DefaultTimeFormats.WEEK_DAY:DefaultTimeFormats.SHORT_MONTH:this.year.floor(e)<e?DefaultTimeFormats.MONTH:DefaultTimeFormats.YEAR},t.prototype.defaultTickFormat=function(e){var t=this.calculateDefaultTickFormat(e);return function(e){return buildFormatter(t)(e)}},t.prototype.getTickInterval=function(e){for(var t,n,r,o=e.start,i=e.stop,a=e.count,s=e.minCount,l=e.maxCount,c=this.tickIntervals,u=null!=a?a:ContinuousScale.defaultTickCount,d=Math.abs(i-o)/Math.max(u,1),p=0;p<c.length&&d>c[p][2];)p++;if(0===p)r=Math.max(tickStep(o,i,u,s,l),1),n=this.millisecond;else if(p===c.length)r=tickStep(o/durationYear,i/durationYear,u,s,l),n=this.year;else{var h=d-c[p-1][2],f=c[p][2]-d;n=(t=__read$R(c[h<f?p-1:p],2))[0],r=t[1]}return n.every(r)},t.prototype.invert=function(t){return new Date(e.prototype.invert.call(this,t))},t.prototype.ticks=function(){if(!this.domain||this.domain.length<2)return[];this.refresh();var e=__read$R(this.getDomain().map(toNumber),2),t=e[0],n=e[1];if(void 0!==this.interval)return this.getTicksForInterval({start:t,stop:n});if(this.nice){var r=this.tickCount;if(2===r)return this.niceDomain;if(1===r)return this.niceDomain.slice(0,1)}return this.getDefaultTicks({start:t,stop:n})},t.prototype.getDefaultTicks=function(e){var t=e.start,n=e.stop,r=this.getTickInterval({start:t,stop:n,count:this.tickCount,minCount:this.minTickCount,maxCount:this.maxTickCount});return r?r.range(new Date(t),new Date(n)):[]},t.prototype.getTicksForInterval=function(e){var t=e.start,n=e.stop,r=this.interval,o=this.tickIntervals;if(!r)return[];if(r instanceof TimeInterval){var i=r.range(new Date(t),new Date(n));return this.isDenseInterval({start:t,stop:n,interval:r,count:i.length})?this.getDefaultTicks({start:t,stop:n}):i}var a=Math.abs(r);if(this.isDenseInterval({start:t,stop:n,interval:a}))return this.getDefaultTicks({start:t,stop:n});var s=__spread$v(o);s.reverse();var l=s.find(function(e){return a%e[2]===0});if(l)return l[0].every(a/(l[2]/l[1])).range(new Date(t),new Date(n));for(var c=new Date(t),u=new Date(n),d=[];c<=u;)d.push(c),(c=new Date(c)).setMilliseconds(c.getMilliseconds()+a);return d},t.prototype.tickFormat=function(e){var t=e.ticks,n=e.specifier;return null==n?this.defaultTickFormat(t):buildFormatter(n)},t.prototype.update=function(){!this.domain||this.domain.length<2||this.nice&&this.updateNiceDomain()},t.prototype.updateNiceDomain=function(){for(var e=__read$R(this.domain,2),t=e[0],n=e[1],r=0;r<4;r++){this.updateNiceDomainIteration(t,n);var o=__read$R(this.niceDomain,2),i=o[0],a=o[1];if(toNumber(t)===toNumber(i)&&toNumber(n)===toNumber(a))break;t=i,n=a}},t.prototype.updateNiceDomainIteration=function(e,t){var n,r=toNumber(e),o=toNumber(t),i=this.interval;if(i instanceof TimeInterval)n=i;else{var a="number"==typeof i?(o-r)/Math.max(i,1):this.tickCount;n=this.getTickInterval({start:r,stop:o,count:a,minCount:this.minTickCount,maxCount:this.maxTickCount})}if(n){var s=n.range(e,t,!0),l=s[0],c=s[s.length-1];this.niceDomain=[l,c]}},t}(ContinuousScale),__read$Q=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$u=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$Q(arguments[t]));return e},_a$1,group=function(e){return"("+e+")"},optionalGroup=function(e){return group(e)+"?"},nonCapturingGroup=function(e){return optionalGroup("?:"+e)},formatRegEx=new RegExp(["^",nonCapturingGroup(""+optionalGroup(".")+group("[<>=^]")),optionalGroup("[+\\-( ]"),optionalGroup("[$€£¥₣₹#]"),optionalGroup("0"),optionalGroup("\\d+"),optionalGroup(","),nonCapturingGroup("\\."+group("\\d+")),optionalGroup("~"),optionalGroup("[%a-z]"),"$"].join(""),"i"),surroundedRegEx=new RegExp(["^",group(".*?"),"#\\{"+group(".+?")+"\\}",group(".*?"),"$"].join(""));function parseFormatter(e){var t,n,r,o=e.match(surroundedRegEx);o&&(n=(t=__read$Q(o,4))[1],e=t[2],r=t[3]);var i=e.match(formatRegEx);if(!i)throw new Error("The number formatter is invalid: "+e);var a=__read$Q(i,11),s=a[1],l=a[2],c=a[3],u=a[4],d=a[5],p=a[6],h=a[7],f=a[8],g=a[9],m=a[10];return{fill:s,align:l,sign:c,symbol:u,zero:d,width:parseInt(p),comma:h,precision:parseInt(f),trim:Boolean(g),type:m,prefix:n,suffix:r}}function format(e){var t,n="string"==typeof e?parseFormatter(e):e,r=n.fill,o=n.align,i=n.sign,a=void 0===i?"-":i,s=n.symbol,l=n.zero,c=n.width,u=n.comma,d=n.type,p=n.prefix,h=void 0===p?"":p,f=n.suffix,g=void 0===f?"":f,m=n.precision,v=n.trim;if(d)if(d in decimalTypes&&d in integerTypes)t=isNaN(m)?integerTypes[d]:decimalTypes[d];else if(d in decimalTypes)t=decimalTypes[d];else{if(!(d in integerTypes))throw new Error("The number formatter type is invalid: "+d);t=integerTypes[d]}else t=decimalTypes.g,v=!0;return isNaN(m)&&(m=d?6:12),function(e){var n=t(e,m);return v&&(n=removeTrailingZeros(n)),u&&(n=insertSeparator(n,u)),n=addSign(e,n,a),s&&"#"!==s&&(n=""+s+n),"#"===s&&"x"===d&&(n="0x"+n),"s"===d&&(n=""+n+getSIPrefix(e)),"%"!==d&&"p"!==d||(n+="%"),isNaN(c)||(n=addPadding(n,c,r||l,o)),""+h+n+g}}var absFloor=function(e){return Math.floor(Math.abs(e))},integerTypes={b:function(e){return absFloor(e).toString(2)},c:function(e){return String.fromCharCode(e)},d:function(e){return Math.round(Math.abs(e)).toFixed(0)},o:function(e){return absFloor(e).toString(8)},x:function(e){return absFloor(e).toString(16)},X:function(e){return integerTypes.x(e).toUpperCase()},n:function(e){return integerTypes.d(e)},"%":function(e){return""+absFloor(100*e).toFixed(0)}},decimalTypes={e:function(e,t){return Math.abs(e).toExponential(t)},E:function(e,t){return decimalTypes.e(e,t).toUpperCase()},f:function(e,t){return Math.abs(e).toFixed(t)},F:function(e,t){return decimalTypes.f(e,t).toUpperCase()},g:function(e,t){if(0===e)return"0";var n=Math.abs(e),r=Math.floor(Math.log10(n));return r>=-4&&r<t?n.toFixed(t-1-r):n.toExponential(t-1)},G:function(e,t){return decimalTypes.g(e,t).toUpperCase()},n:function(e,t){return decimalTypes.g(e,t)},p:function(e,t){return decimalTypes.r(100*e,t)},r:function(e,t){if(0===e)return"0";var n=Math.abs(e),r=Math.floor(Math.log10(n))-(t-1);if(r<=0)return n.toFixed(-r);var o=Math.pow(10,r);return(Math.round(n/o)*o).toFixed()},s:function(e,t){var n=getSIPrefixPower(e);return decimalTypes.r(e/Math.pow(10,n),t)},"%":function(e,t){return decimalTypes.f(100*e,t)}};function removeTrailingZeros(e){return e.replace(/\.0+$/,"").replace(/(\.[1-9])0+$/,"$1")}function insertSeparator(e,t){var n=e.indexOf(".");n<0&&(n=e.length);for(var r=e.substring(0,n).split(""),o=e.substring(n),i=r.length-3;i>0;i-=3)r.splice(i,0,t);return""+r.join("")+o}function getSIPrefix(e){return siPrefixes[getSIPrefixPower(e)]}function getSIPrefixPower(e){var t=Math.log10(Math.abs(e)),n=3*Math.floor(t/3);return Math.max(minSIPrefix,Math.min(maxSIPrefix,n))}var minSIPrefix=-24,maxSIPrefix=24,siPrefixes=(_a$1={},_a$1[minSIPrefix]="y",_a$1[-21]="z",_a$1[-18]="a",_a$1[-15]="f",_a$1[-12]="p",_a$1[-9]="n",_a$1[-6]="µ",_a$1[-3]="m",_a$1[0]="",_a$1[3]="k",_a$1[6]="M",_a$1[9]="G",_a$1[12]="T",_a$1[15]="P",_a$1[18]="E",_a$1[21]="Z",_a$1[maxSIPrefix]="Y",_a$1),minusSign="−";function addSign(e,t,n){return void 0===n&&(n=""),"("===n?e>=0?t:"("+t+")":""+(e>=0?"+"===n?"+":"":minusSign)+t}function addPadding(e,t,n,r){void 0===n&&(n=" "),void 0===r&&(r=">");var o=e;if(">"!==r&&r){if("<"===r)o=o.padEnd(t,n);else if("^"===r){var i=Math.max(0,t-o.length),a=Math.ceil(i/2),s=Math.floor(i/2);o=(o=o.padStart(a+o.length,n)).padEnd(s+o.length,n)}}else o=o.padStart(t,n);return o}function tickFormat(e,t){var n=parseFormatter(t||",f");isNaN(n.precision)&&("f"===n.type||"%"===n.type?n.precision=Math.max.apply(Math,__spread$u(e.map(function(e){if("number"!=typeof e||0===e)return 0;var t=Math.floor(Math.log10(Math.abs(e))),r=n.type?6:12,o=e.toExponential(r-1).replace(/\.?0+e/,"e"),i=o.indexOf(".");if(i<0)return t>=0?0:-t;var a=o.indexOf("e")-i;return Math.max(0,a-t-1)}))):n.type&&!(n.type in decimalTypes)||(n.precision=Math.max.apply(Math,__spread$u(e.map(function(e){if("number"!=typeof e)return 0;var t=e.toExponential((n.type?6:12)-1).replace(/\.?0+e/,"e");return t.substring(0,t.indexOf("e")).replace(".","").length})))));var r=format(n);return function(e){return r(Number(e))}}var __extends$2m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1F=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$P=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$t=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$P(arguments[t]));return e},identity=function(e){return e},LogScale=function(e){function t(){var t=e.call(this,[1,10],[0,1])||this;return t.type="log",t.base=10,t.cacheProps=["domain","range","nice","tickCount","base"],t.baseLog=identity,t.basePow=identity,t.log=function(e){return t.domain[0]>=0?t.baseLog(e):-t.baseLog(-e)},t.pow=function(e){return t.domain[0]>=0?t.basePow(e):-t.basePow(-e)},t}return __extends$2m(t,e),t.prototype.toDomain=function(e){return e},t.prototype.transform=function(e){return this.domain[0]>=0?Math.log(e):-Math.log(-e)},t.prototype.transformInvert=function(e){return this.domain[0]>=0?Math.exp(e):-Math.exp(-e)},t.prototype.update=function(){!this.domain||this.domain.length<2||(this.updateLogFn(),this.updatePowFn(),this.nice&&this.updateNiceDomain())},t.prototype.updateLogFn=function(){var e,t=this.base;if(10===t)e=Math.log10;else if(t===Math.E)e=Math.log;else if(2===t)e=Math.log2;else{var n=Math.log(t);e=function(e){return Math.log(e)/n}}this.baseLog=e},t.prototype.updatePowFn=function(){var e,n=this.base;e=10===n?t.pow10:n===Math.E?Math.exp:function(e){return Math.pow(n,e)},this.basePow=e},t.prototype.updateNiceDomain=function(){var e=__read$P(this.domain,2),t=e[0],n=e[1],r=this.pow(Math.floor(this.log(t))),o=this.pow(Math.ceil(this.log(n)));this.niceDomain=[r,o]},t.pow10=function(e){return e>=0?Math.pow(10,e):1/Math.pow(10,-e)},t.prototype.ticks=function(){var e,t=this,n=null!==(e=this.tickCount)&&void 0!==e?e:10;if(!this.domain||this.domain.length<2||n<1)return[];this.refresh();var r=this.base,o=__read$P(this.getDomain(),2),i=o[0],a=o[1],s=this.log(i),l=this.log(a);if(this.interval){var c=Math.abs(this.interval),u=Math.abs(l-s),d=range(s,l,Math.min(u,c)).map(function(e){return t.pow(e)}).filter(function(e){return e>=i&&e<=a});if(!this.isDenseInterval({start:i,stop:a,interval:c,count:d.length}))return d}if(r%1!=0||l-s>=n)return ticks(s,l,Math.min(l-s,n)).map(function(e){return t.pow(e)});var p=[],h=i>0;s=Math.floor(s)-1,l=Math.round(l)+1;for(var f=Math.min.apply(Math,__spread$t(this.range)),g=(Math.max.apply(Math,__spread$t(this.range))-f)/n,m=1/0,v=s;v<=l;v++)for(var y=this.convert(this.pow(v+1)),A=1;A<r;A++){var w=h?A:r-A+1,b=this.pow(v)*w,_=this.convert(b),C=Math.abs(m-_),E=Math.abs(_-y);b>=i&&b<=a&&(1===A||C>=g&&E>=g)&&(p.push(b),m=_)}return p},t.prototype.tickFormat=function(e){var t=e.count,n=e.ticks,r=e.specifier,o=this.base;return null==r&&(r=10===o?".0e":","),"function"!=typeof r&&(r=format(r)),t===1/0?r:(null==t&&(t=10),n=null!=n?n:this.ticks(),function(e){return r(e)})},__decorate$1F([Validate(NUMBER(0))],t.prototype,"base",void 0),t}(ContinuousScale);function Default(e,t){return void 0===t&&(t=[void 0]),addTransformToInstanceProperty(function(n,r,o){return t.includes(o)?e:o})}function extent$4(e){var t=e.length;if(0!==t){for(var n=1/0,r=-1/0,o=0;o<t;o++){var i=e[o];i instanceof Date&&(i=i.getTime()),"number"==typeof i&&(i<n&&(n=i),i>r&&(r=i))}var a=[n,r];if(!a.some(function(e){return!isFinite(e)}))return a}}var __decorate$1E=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Label$1=function(){function e(){this.enabled=!0,this.fontSize=12,this.fontFamily="Verdana, sans-serif",this.fontStyle=void 0,this.fontWeight=void 0,this.color="rgba(70, 70, 70, 1)"}return e.prototype.getFont=function(){return getFont(this.fontSize,this.fontFamily,this.fontStyle,this.fontWeight)},__decorate$1E([Validate(BOOLEAN)],e.prototype,"enabled",void 0),__decorate$1E([Validate(NUMBER(0))],e.prototype,"fontSize",void 0),__decorate$1E([Validate(STRING)],e.prototype,"fontFamily",void 0),__decorate$1E([Validate(OPT_FONT_STYLE)],e.prototype,"fontStyle",void 0),__decorate$1E([Validate(OPT_FONT_WEIGHT)],e.prototype,"fontWeight",void 0),__decorate$1E([Validate(COLOR_STRING)],e.prototype,"color",void 0),e}();function calculateLabelRotation(e){var t=e.parallelFlipRotation,n=void 0===t?0:t,r=e.regularFlipRotation,o=void 0===r?0:r,i=e.rotation?normalizeAngle360(toRadians$1(e.rotation)):0,a=!i&&n>=0&&n<=Math.PI?-1:1,s=!i&&o>=0&&o<=Math.PI?-1:1,l=0;return e.parallel?l=a*Math.PI/2:-1===s&&(l=Math.PI),{labelRotation:i,autoRotation:l,parallelFlipFlag:a,regularFlipFlag:s}}var __decorate$1D=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$O=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$s=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$O(arguments[t]));return e},TICK_COUNT=predicateWithMessage(function(e,t){return NUMBER(0)(e,t)||e instanceof TimeInterval},"expecting a tick count Number value or, for a time axis, a Time Interval such as 'agCharts.time.month'"),OPT_TICK_COUNT=predicateWithMessage(function(e,t){return OPTIONAL(e,t,TICK_COUNT)},"expecting an optional tick count Number value or, for a time axis, a Time Interval such as 'agCharts.time.month'"),OPT_TICK_INTERVAL=predicateWithMessage(function(e,t){return OPTIONAL(e,t,function(e,t){return 0!==e&&NUMBER(0)(e,t)||e instanceof TimeInterval})},"expecting an optional non-zero positive Number value or, for a time axis, a Time Interval such as 'agCharts.time.month'"),GRID_STYLE_KEYS=["stroke","lineDash"],GRID_STYLE=predicateWithMessage(ARRAY(void 0,function(e){for(var t in e)if(!GRID_STYLE_KEYS.includes(t))return!1;return!0}),"expecting an Array of objects with gridline style properties such as 'stroke' and 'lineDash'"),Tags;!function(e){e[e.TickLine=0]="TickLine",e[e.TickLabel=1]="TickLabel",e[e.GridLine=2]="GridLine",e[e.GridArc=3]="GridArc",e[e.AxisLine=4]="AxisLine"}(Tags||(Tags={}));var AxisLine=function(){function e(){this.width=1,this.color="rgba(195, 195, 195, 1)"}return __decorate$1D([Validate(NUMBER(0))],e.prototype,"width",void 0),__decorate$1D([Validate(OPT_COLOR_STRING)],e.prototype,"color",void 0),e}(),AxisTick=function(){function e(){this.width=1,this.size=6,this.color="rgba(195, 195, 195, 1)",this.count=void 0,this.interval=void 0,this.values=void 0,this.minSpacing=NaN,this.maxSpacing=NaN}return __decorate$1D([Validate(NUMBER(0))],e.prototype,"width",void 0),__decorate$1D([Validate(NUMBER(0))],e.prototype,"size",void 0),__decorate$1D([Validate(OPT_COLOR_STRING)],e.prototype,"color",void 0),__decorate$1D([Validate(OPT_TICK_COUNT),Deprecated("Use tick.interval or tick.minSpacing and tick.maxSpacing instead")],e.prototype,"count",void 0),__decorate$1D([Validate(OPT_TICK_INTERVAL)],e.prototype,"interval",void 0),__decorate$1D([Validate(OPT_ARRAY())],e.prototype,"values",void 0),__decorate$1D([Validate(AND(NUMBER_OR_NAN(1),LESS_THAN("maxSpacing"))),Default(NaN)],e.prototype,"minSpacing",void 0),__decorate$1D([Validate(AND(NUMBER_OR_NAN(1),GREATER_THAN("minSpacing"))),Default(NaN)],e.prototype,"maxSpacing",void 0),e}(),AxisLabel=function(){function e(){this.fontStyle=void 0,this.fontWeight=void 0,this.fontSize=12,this.fontFamily="Verdana, sans-serif",this.padding=5,this.minSpacing=NaN,this.color="rgba(87, 87, 87, 1)",this.rotation=void 0,this.autoRotate=void 0,this.autoRotateAngle=335,this.avoidCollisions=!0,this.mirrored=!1,this.parallel=!1,this.formatter=void 0,this.format=void 0}return __decorate$1D([Validate(OPT_FONT_STYLE)],e.prototype,"fontStyle",void 0),__decorate$1D([Validate(OPT_FONT_WEIGHT)],e.prototype,"fontWeight",void 0),__decorate$1D([Validate(NUMBER(1))],e.prototype,"fontSize",void 0),__decorate$1D([Validate(STRING)],e.prototype,"fontFamily",void 0),__decorate$1D([Validate(NUMBER(0))],e.prototype,"padding",void 0),__decorate$1D([Validate(NUMBER_OR_NAN()),Default(NaN)],e.prototype,"minSpacing",void 0),__decorate$1D([Validate(OPT_COLOR_STRING)],e.prototype,"color",void 0),__decorate$1D([Validate(OPT_NUMBER(-360,360))],e.prototype,"rotation",void 0),__decorate$1D([Validate(OPT_BOOLEAN)],e.prototype,"autoRotate",void 0),__decorate$1D([Validate(NUMBER(-360,360))],e.prototype,"autoRotateAngle",void 0),__decorate$1D([Validate(BOOLEAN)],e.prototype,"avoidCollisions",void 0),__decorate$1D([Validate(BOOLEAN)],e.prototype,"mirrored",void 0),__decorate$1D([Validate(BOOLEAN)],e.prototype,"parallel",void 0),__decorate$1D([Validate(OPT_STRING)],e.prototype,"format",void 0),e}(),Axis=function(){function e(e){this.id=createId$1(this),this.nice=!0,this.dataDomain=[],this.axisGroup=new Group({name:this.id+"-axis",zIndex:Layers.AXIS_ZINDEX}),this.lineNode=this.axisGroup.appendChild(new Line),this.tickLineGroup=this.axisGroup.appendChild(new Group({name:this.id+"-Axis-tick-lines",zIndex:Layers.AXIS_ZINDEX})),this.tickLabelGroup=this.axisGroup.appendChild(new Group({name:this.id+"-Axis-tick-labels",zIndex:Layers.AXIS_ZINDEX})),this.crossLineGroup=new Group({name:this.id+"-CrossLines"}),this.gridGroup=new Group({name:this.id+"-Axis-grid"}),this.gridLineGroup=this.gridGroup.appendChild(new Group({name:this.id+"-gridLines",zIndex:Layers.AXIS_GRID_ZINDEX})),this.gridArcGroup=this.gridGroup.appendChild(new Group({name:this.id+"-gridArcs",zIndex:Layers.AXIS_GRID_ZINDEX})),this.tickLineGroupSelection=Selection.select(this.tickLineGroup,Line),this.tickLabelGroupSelection=Selection.select(this.tickLabelGroup,Text),this.gridLineGroupSelection=Selection.select(this.gridLineGroup,Line),this.gridArcGroupSelection=Selection.select(this.gridArcGroup,Arc),this._crossLines=[],this.line=new AxisLine,this.tick=new AxisTick,this.label=new AxisLabel,this.translation={x:0,y:0},this.rotation=0,this.layout={label:{align:"center",baseline:"middle",rotation:0,fractionDigits:0,padding:this.label.padding,format:this.label.format}},this.requestedRange=[0,1],this._visibleRange=[0,1],this._title=void 0,this._gridLength=0,this.gridStyle=[{stroke:"rgba(219, 219, 219, 1)",lineDash:[4,2]}],this._radialGrid=!1,this.fractionDigits=0,this.gridPadding=0,this.seriesAreaPadding=0,this.thickness=0,this._scale=e,this.refreshScale()}return Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"crossLines",{get:function(){return this._crossLines},set:function(e){var t,n,r=this;null===(t=this._crossLines)||void 0===t||t.forEach(function(e){return r.detachCrossLine(e)}),this._crossLines=e,null===(n=this._crossLines)||void 0===n||n.forEach(function(e){r.attachCrossLine(e),r.initCrossLine(e)})},enumerable:!1,configurable:!0}),e.prototype.attachCrossLine=function(e){this.crossLineGroup.appendChild(e.group)},e.prototype.detachCrossLine=function(e){this.crossLineGroup.removeChild(e.group)},e.prototype.destroy=function(){},e.prototype.refreshScale=function(){var e,t=this;this.requestedRange=this.scale.range.slice(),null===(e=this.crossLines)||void 0===e||e.forEach(function(e){t.initCrossLine(e)})},e.prototype.updateRange=function(){var e,t=this,n=t.requestedRange,r=t.visibleRange,o=t.scale,i=(n[1]-n[0])/(r[1]-r[0]),a=i*r[0],s=n[0]-a;o.range=[s,s+i],null===(e=this.crossLines)||void 0===e||e.forEach(function(e){e.clippedRange=[n[0],n[1]]})},e.prototype.setCrossLinesVisible=function(e){this.crossLineGroup.visible=e},e.prototype.attachAxis=function(e,t){e.insertBefore(this.gridGroup,t),e.insertBefore(this.axisGroup,t),e.insertBefore(this.crossLineGroup,t)},e.prototype.detachAxis=function(e){e.removeChild(this.gridGroup),e.removeChild(this.axisGroup),e.removeChild(this.crossLineGroup)},e.prototype.inRange=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),0===this.inRangeEx(e,t,n)},e.prototype.inRangeEx=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var r=this.range,o=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e+t<o-n?-1:e>i+n?1:0},Object.defineProperty(e.prototype,"range",{get:function(){return this.requestedRange},set:function(e){this.requestedRange=e.slice(),this.updateRange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleRange",{get:function(){return this._visibleRange.slice()},set:function(e){if(e&&2===e.length){var t=__read$O(e,2),n=t[0],r=t[1];n=Math.max(0,n),r=Math.min(1,r),n=Math.min(n,r),r=Math.max(n,r),this._visibleRange=[n,r],this.updateRange()}},enumerable:!1,configurable:!0}),e.prototype.onLabelFormatChange=function(e,t){var n=this.scale,r=this.fractionDigits,o=!(n instanceof LogScale)&&r>0?function(e){return"number"==typeof e?e.toFixed(r):String(e)}:function(e){return String(e)};if(t&&n&&n.tickFormat)try{this.labelFormatter=n.tickFormat({ticks:e,specifier:t})}catch(e){this.labelFormatter=o,Logger.warnOnce("the axis label format string "+t+" is invalid. No formatting will be applied")}else this.labelFormatter=o},Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){var t=this._title;t!==e&&(t&&this.axisGroup.removeChild(t.node),e&&(e.node.rotation=-Math.PI/2,this.axisGroup.appendChild(e.node)),this._title=e,this.setTickCount(this.tick.count),this.setTickInterval(this.tick.interval),this.updateTitle({ticks:this.scale.ticks()}))},enumerable:!1,configurable:!0}),e.prototype.setDomain=function(){var e,t=this,n=t.scale,r=t.dataDomain,o=t.tick.values;if(o&&n instanceof ContinuousScale){var i=__read$O(null!==(e=extent$4(o))&&void 0!==e?e:[1/0,-1/0],2),a=i[0],s=i[1],l=Math.min(n.fromDomain(r[0]),a),c=Math.max(n.fromDomain(r[1]),s);n.domain=[n.toDomain(l),n.toDomain(c)]}else n.domain=r},e.prototype.setTickInterval=function(e){var t;this.scale.interval=null!==(t=this.tick.interval)&&void 0!==t?t:e},e.prototype.setTickCount=function(e,t,n){var r=this.scale;if(e&&r instanceof ContinuousScale)return"number"==typeof e?(r.tickCount=e,r.minTickCount=null!=t?t:0,void(r.maxTickCount=null!=n?n:1/0)):void(r instanceof TimeScale$1&&this.setTickInterval(e))},Object.defineProperty(e.prototype,"gridLength",{get:function(){return this._gridLength},set:function(e){var t,n=this;(this._gridLength&&!e||!this._gridLength&&e)&&(this.gridLineGroupSelection=this.gridLineGroupSelection.clear(),this.gridArcGroupSelection=this.gridArcGroupSelection.clear()),this._gridLength=e,null===(t=this.crossLines)||void 0===t||t.forEach(function(e){n.initCrossLine(e)})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"radialGrid",{get:function(){return this._radialGrid},set:function(e){this._radialGrid!==e&&(this._radialGrid=e,this.gridLineGroupSelection=this.gridLineGroupSelection.clear(),this.gridArcGroupSelection=this.gridArcGroupSelection.clear())},enumerable:!1,configurable:!0}),e.prototype.update=function(e){var t,n;this.calculateDomain();var r=this,o=r.scale,i=r.gridLength,a=r.tick,s=r.label,l=s.parallel,c=s.mirrored,u=s.avoidCollisions,d=r.requestedRange,p=Math.min.apply(Math,__spread$s(d)),h=Math.max.apply(Math,__spread$s(d)),f=toRadians$1(this.rotation),g=this.isAnySeriesActive(),m=c?1:-1,v=normalizeAngle360(f),y=normalizeAngle360(f-Math.PI/2),A=this.nice;this.setDomain(),this.setTickInterval(this.tick.interval),o instanceof ContinuousScale&&(o.nice=A,this.setTickCount(this.tick.count),o.update());var w=(o.bandwidth||0)/2;this.updatePosition(),this.updateLine();for(var b=0,_=!0,C=[],E=this.estimateTickCount({minSpacing:this.tick.minSpacing,maxSpacing:this.tick.maxSpacing}),S=E.maxTickCount,O=E.minTickCount,x=E.defaultTickCount,D=o instanceof ContinuousScale,P=void 0!==e,M=u&&void 0===this.tick.interval&&void 0===this.tick.values,T=!isNaN(this.tick.minSpacing)||!isNaN(this.tick.maxSpacing),R=this.tick.count||!D||isNaN(S)?10:S;_;){for(var I=!0,F=function(){if(b>R)return"break";var n=C,r=Math.max(x-b,O),a=M&&!(D&&void 0===k.tick.count)&&(T||0!==b);if(k.tick.values?C=k.tick.values:0===S?C=[]:0!==b&&a||(k.setTickCount(null!==(t=k.tick.count)&&void 0!==t?t:r,O,S),C=o.ticks()),a){var s=T?Math.ceil(C.length/r):2;C=C.filter(function(e,t){return t%s===0})}var l=void 0;P&&(l=k.updateSecondaryAxisTicks(e),C=l),k.updateSelections({halfBandwidth:w,gridLength:i,ticks:C}),!P&&C.length>0&&(e=C.length),I=!!M&&areArrayNumbersEqual(C,n),b++},k=this;I&&"break"!==F(););if(I)break;this.onLabelFormatChange(C,this.label.format);var L=this.updateLabels({parallelFlipRotation:v,regularFlipRotation:y,sideFlag:m,tickLabelGroupSelection:this.tickLabelGroupSelection,ticks:C}),B=L.labelData,N=L.rotated,j=this.getLabelSpacing(N);_=!!M&&axisLabelsOverlap(B,j)}this.updateGridLines({gridLength:i,halfBandwidth:w,sideFlag:m});var U=!1,V=function(e){var t=Math.floor(p),n=Math.ceil(h);if(t!==n){e.translationY>=t-1&&e.translationY<t&&(e.translationY=t),e.translationY>n&&e.translationY<=n+1&&(e.translationY=n);var r=e.translationY>=t&&e.translationY<=n;r&&(U=!0),e.visible=r}else e.visible=!1},H=this,G=H.gridLineGroupSelection,W=H.gridArcGroupSelection,z=H.tickLineGroupSelection,$=H.tickLabelGroupSelection;return G.each(V),W.each(V),z.each(V),$.each(V),this.tickLineGroup.visible=U,this.tickLabelGroup.visible=U,this.gridLineGroup.visible=U,this.gridArcGroup.visible=U,null===(n=this.crossLines)||void 0===n||n.forEach(function(e){e.sideFlag=-m,e.direction=f===-Math.PI/2?ChartAxisDirection.X:ChartAxisDirection.Y,e.label.parallel=void 0!==e.label.parallel?e.label.parallel:l,e.parallelFlipRotation=v,e.regularFlipRotation=y,e.update(g)}),this.updateTitle({ticks:C}),z.each(function(e){e.strokeWidth=a.width,e.stroke=a.color,e.visible=U,e.x1=m*a.size,e.x2=0,e.y1=0,e.y2=0}),e},e.prototype.estimateTickCount=function(t){var n=t.minSpacing,r=t.maxSpacing,o=this.requestedRange,i=Math.min.apply(Math,__spread$s(o)),a=Math.max.apply(Math,__spread$s(o))-i,s=Math.max(e.defaultTickMinSpacing,a/ContinuousScale.defaultMaxTickCount);isNaN(n)&&isNaN(r)?(n=s)>(r=a)&&(r=n):isNaN(n)?(n=s)>r&&(n=r):isNaN(r)&&n>(r=a)&&(r=n);var l=Math.max(1,Math.floor(a/n)),c=Math.min(l,Math.ceil(a/r)),u=ContinuousScale.defaultTickCount;return u>l?u=l:u<c&&(u=c),{minTickCount:c,maxTickCount:l,defaultTickCount:u}},e.prototype.getLabelSpacing=function(e){var t=this.label;return isNaN(t.minSpacing)?e?0:10:t.minSpacing},e.prototype.calculateDomain=function(){},e.prototype.updatePosition=function(){var e=this,t=e.label,n=e.crossLineGroup,r=e.axisGroup,o=e.gridGroup,i=e.translation,a=e.gridLineGroupSelection,s=e.gridPadding,l=e.gridLength,c=toRadians$1(this.rotation),u=t.mirrored?1:-1,d=Math.floor(i.x),p=Math.floor(i.y);n.translationX=d,n.translationY=p,n.rotation=c,r.translationX=d,r.translationY=p,r.rotation=c,o.translationX=d,o.translationY=p,o.rotation=c,a.each(function(e){e.x1=s,e.x2=-u*l+s,e.y1=0,e.y2=0})},e.prototype.updateSecondaryAxisTicks=function(e){throw new Error("AG Charts - unexpected call to updateSecondaryAxisTicks() - check axes configuration.")},e.prototype.updateSelections=function(e){var t=e.ticks,n=e.halfBandwidth,r=e.gridLength,o=this.scale,i=t.map(function(e){return{tick:e,translationY:o.convert(e)+n}}),a=this.radialGrid?this.gridLineGroupSelection:this.gridLineGroupSelection.update(r?i:[],function(e){var t=new Line;t.tag=Tags.GridLine,e.append(t)}),s=this.radialGrid?this.gridArcGroupSelection.update(r?i:[],function(e){var t=new Arc;t.tag=Tags.GridArc,e.append(t)}):this.gridArcGroupSelection,l=this.tickLineGroupSelection.update(i,function(e){var t=new Line;t.tag=Tags.TickLine,e.appendChild(t)}),c=this.tickLabelGroupSelection.update(i,function(e){var t=new Text;t.tag=Tags.TickLabel,e.appendChild(t)}),u=function(e){return e.translationY=Math.round(e.datum.translationY)};a.each(u),s.each(u),l.each(u),c.each(u),this.tickLineGroupSelection=l,this.tickLabelGroupSelection=c,this.gridLineGroupSelection=a,this.gridArcGroupSelection=s},e.prototype.updateGridLines=function(e){var t=e.gridLength,n=e.halfBandwidth,r=e.sideFlag,o=this,i=o.gridStyle,a=o.scale,s=o.tick,l=o.gridPadding;if(t&&i.length){var c=i.length,u=void 0;if(this.radialGrid){var d=normalizeAngle360Inclusive(toRadians$1(t));u=this.gridArcGroupSelection.each(function(e,t){var r=Math.round(a.convert(t)+n);e.centerX=0,e.centerY=a.range[0]-r,e.endAngle=d,e.radius=r})}else u=this.gridLineGroupSelection.each(function(e){e.x1=l,e.x2=-r*t+l,e.y1=0,e.y2=0});u.each(function(e,t,n){var r=i[n%c];e.stroke=r.stroke,e.strokeWidth=s.width,e.lineDash=r.lineDash,e.fill=void 0})}},e.prototype.updateLabels=function(e){var t=this,n=e.ticks,r=e.tickLabelGroupSelection,o=e.sideFlag,i=e.parallelFlipRotation,a=e.regularFlipRotation,s=this,l=s.label,c=s.label,u=c.parallel,d=c.rotation,p=s.tick,h=0,f=calculateLabelRotation({rotation:d,parallel:u,regularFlipRotation:a,parallelFlipRotation:i}),g=f.autoRotation,m=f.labelRotation,v=f.parallelFlipFlag,y=f.regularFlipFlag;this.fractionDigits=n.fractionDigits>=0?n.fractionDigits:0;var A=new Map,w=o*(p.size+l.padding+this.seriesAreaPadding),b=new Matrix;Matrix.updateTransformMatrix(b,1,1,g,0,0);var _=[],C=r.each(function(e,n,r){var o=n.tick,i=n.translationY;e.fontStyle=l.fontStyle,e.fontWeight=l.fontWeight,e.fontSize=l.fontSize,e.fontFamily=l.fontFamily,e.fill=l.color,e.text=t.formatTickDatum(o,r);var a=""===e.text||null==e.text,s=e.computeBBox(),c=s.width,u=s.height,d=new BBox(w,i,0,0);b.transformBBox(d,s);var p=s.x,h=void 0===p?0:p,f=s.y,g=void 0===f?0:f;s.width=c,s.height=u,A.set(r,a?null:s),a||_.push({point:{x:h,y:g,size:0},label:{width:c,height:u,text:""}})}),E=this.getLabelSpacing(),S=axisLabelsOverlap(_,E);void 0===l.rotation&&!0===l.autoRotate&&S&&(h=normalizeAngle360(toRadians$1(l.autoRotateAngle)));var O="middle";u&&!m&&(O=o*v===-1?"hanging":"bottom");var x=m>0&&m<=Math.PI,D=h>0&&h<=Math.PI,P="start";u?m||h?o*(x||D?-1:1)==-1&&(P="end"):P="center":o*y===-1&&(P="end");var M=g+m+h;return M&&Matrix.updateTransformMatrix(b,1,1,M,0,0),_=[],C.each(function(e,t,n){if(""!==e.text&&null!=e.text){e.textBaseline=O,e.textAlign=P,e.x=w,e.rotationCenterX=w,e.rotation=M;var r=A.get(n);if(r){e.visible=!0;var o=r.width,i=void 0===o?0:o,a=r.height,s=void 0===a?0:a,l=t.translationY,c=new BBox(w,l,0,0);b.transformBBox(c,r);var u=r.x,d=void 0===u?0:u,p=r.y,h=void 0===p?0:p;_.push({point:{x:d,y:h,size:0},label:{width:i,height:s,text:e.text}})}}else e.visible=!1}),this.layout.label={align:P,baseline:O,rotation:M,fractionDigits:this.fractionDigits,padding:this.label.padding,format:this.label.format},{labelData:_,rotated:!(!m&&!h)}},e.prototype.updateLine=function(){var e=this.lineNode,t=this.requestedRange;e.x1=0,e.x2=0,e.y1=t[0],e.y2=t[1],e.strokeWidth=this.line.width,e.stroke=this.line.color,e.visible=!0},e.prototype.updateTitle=function(e){var t=e.ticks,n=this,r=n.label,o=n.rotation,i=n.title,a=n.lineNode,s=n.requestedRange,l=n.tickLineGroup,c=n.tickLabelGroup;if(i){var u=!1;if(i.enabled&&a.visible){u=!0;var d=r.mirrored?1:-1,p=normalizeAngle360(o),h=Caption.PADDING,f=i.node,g=-1===d&&p>Math.PI&&p<2*Math.PI?-1:1;f.rotation=g*d*Math.PI/2,f.x=Math.floor(g*d*(s[0]+s[1])/2);var m=0;if((null==t?void 0:t.length)>0){var v=Group.computeBBox([l,c]),y=0===o?v.width:v.height;Math.abs(y)<1/0&&(m+=y)}f.y=-1===d?Math.floor(g*(-h-m)):Math.floor(-h-m),f.textBaseline=1===g?"bottom":"top"}i.node.visible=u}},e.prototype.formatTickDatum=function(e,t){var n=this,r=n.label,o=n.labelFormatter,i=n.fractionDigits;return r.formatter?r.formatter({value:i>0?e:String(e),index:t,fractionDigits:i,formatter:o}):o?o(e):String(e)},e.prototype.formatDatum=function(e){return String(e)},e.prototype.computeBBox=function(){return this.axisGroup.computeBBox()},e.prototype.initCrossLine=function(e){e.scale=this.scale,e.gridLength=this.gridLength},e.prototype.isAnySeriesActive=function(){return!1},e.prototype.clipTickLines=function(e,t,n,r){this.tickLineGroup.setClipRectInGroupCoordinateSpace(new BBox(e,t,n,r))},e.prototype.clipGrid=function(e,t,n,r){this.gridGroup.setClipRectInGroupCoordinateSpace(new BBox(e,t,n,r))},e.prototype.calculatePadding=function(e,t){return Math.abs(.01*e)},e.defaultTickMinSpacing=50,__decorate$1D([Validate(BOOLEAN)],e.prototype,"nice",void 0),__decorate$1D([Validate(GRID_STYLE)],e.prototype,"gridStyle",void 0),__decorate$1D([Validate(NUMBER(0))],e.prototype,"thickness",void 0),e}(),__extends$2l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__read$N=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},LinearScale$1=function(e){function t(){var t=e.call(this,[0,1],[0,1])||this;return t.type="linear",t}return __extends$2l(t,e),t.prototype.toDomain=function(e){return e},t.prototype.ticks=function(){var e,t=null!==(e=this.tickCount)&&void 0!==e?e:ContinuousScale.defaultTickCount;if(!this.domain||this.domain.length<2||t<1||this.domain.some(function(e){return!isFinite(e)}))return[];this.refresh();var n=__read$N(this.getDomain(),2),r=n[0],o=n[1],i=this.interval;if(i){var a=Math.abs(i);if(!this.isDenseInterval({start:r,stop:o,interval:a}))return range(r,o,a)}return ticks(r,o,t,this.minTickCount,this.maxTickCount)},t.prototype.update=function(){!this.domain||this.domain.length<2||this.nice&&this.updateNiceDomain()},t.prototype.updateNiceDomain=function(){var e,t,n=null!==(e=this.tickCount)&&void 0!==e?e:ContinuousScale.defaultTickCount,r=__read$N(this.domain,2),o=r[0],i=r[1];if(n<1)this.niceDomain=[o,i];else if(1!==n){for(var a=o,s=i,l=0;l<4;l++){var c=null!==(t=this.interval)&&void 0!==t?t:tickStep(o,i,n,this.minTickCount,this.maxTickCount),u=__read$N(this.domain,2),d=u[0],p=u[1];if(c>=1)o=Math.floor(d/c)*c,i=Math.ceil(p/c)*c;else{var h=1/c;o=Math.floor(d*h)/h,i=Math.ceil(p*h)/h}if(o===a&&i===s)break;a=o,s=i}this.niceDomain=[o,i]}else this.niceDomain=singleTickDomain(o,i)},t.prototype.tickFormat=function(e){var t=e.ticks,n=e.specifier;return tickFormat(t||this.ticks(),n)},t}(ContinuousScale),__extends$2k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$E=function(){return __assign$E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$E.apply(this,arguments)},__decorate$1C=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$M=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$r=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$M(arguments[t]));return e},__values$o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function flipChartAxisDirection(e){return e===ChartAxisDirection.X?ChartAxisDirection.Y:ChartAxisDirection.X}var ChartAxis=function(e){function t(t,n){var r=e.call(this,n)||this;return r.moduleCtx=t,r.keys=[],r.direction=ChartAxisDirection.Y,r.boundSeries=[],r.includeInvisibleDomains=!1,r.modules={},r._position="left",r}return __extends$2k(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return this.constructor.type||""},enumerable:!1,configurable:!0}),t.prototype.useCalculatedTickCount=function(){return this.scale instanceof LinearScale$1},Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(e){if(this._position!==e){switch(this._position=e,e){case"top":this.direction=ChartAxisDirection.X,this.rotation=-90,this.label.mirrored=!0,this.label.parallel=!0;break;case"right":this.direction=ChartAxisDirection.Y,this.rotation=0,this.label.mirrored=!0,this.label.parallel=!1;break;case"bottom":this.direction=ChartAxisDirection.X,this.rotation=-90,this.label.mirrored=!1,this.label.parallel=!0;break;case"left":this.direction=ChartAxisDirection.Y,this.rotation=0,this.label.mirrored=!1,this.label.parallel=!1}this.axisContext&&(this.axisContext.position=e,this.axisContext.direction=this.direction)}},enumerable:!1,configurable:!0}),t.prototype.calculateDomain=function(){var e,t=this,n=t.direction,r=t.boundSeries,o=t.includeInvisibleDomains;if(this.linkedTo)this.dataDomain=this.linkedTo.dataDomain;else{var i=[];r.filter(function(e){return o||e.isEnabled()}).forEach(function(e){i.push(e.getDomain(n))});var a=(e=new Array).concat.apply(e,__spread$r(i));this.dataDomain=this.normaliseDataDomain(a)}},t.prototype.normaliseDataDomain=function(e){return e},t.prototype.isAnySeriesActive=function(){var e=this;return this.boundSeries.some(function(t){return e.includeInvisibleDomains||t.isEnabled()})},t.prototype.getLayoutState=function(){return __assign$E({rect:this.computeBBox(),gridPadding:this.gridPadding,seriesAreaPadding:this.seriesAreaPadding,tickSize:this.tick.size},this.layout)},t.prototype.addModule=function(e){var t=this;if(null!=this.modules[e.optionsKey])throw new Error("AG Charts - module already initialised: "+e.optionsKey);null==this.axisContext&&(this.axisContext={axisId:this.id,position:this.position,direction:this.direction,continuous:this.scale instanceof ContinuousScale,keys:function(){return t.boundSeries.map(function(e){return e.getKeys(t.direction)}).reduce(function(e,t){return e.push.apply(e,__spread$r(t)),e},[])},scaleValueFormatter:function(e){var n,r,o;return null!==(o=null===(r=(n=t.scale).tickFormat)||void 0===r?void 0:r.call(n,{specifier:e}))&&void 0!==o?o:void 0},scaleBandwidth:function(){var e;return null!==(e=t.scale.bandwidth)&&void 0!==e?e:0},scaleConvert:function(e){return t.scale.convert(e)},scaleInvert:function(e){var n,r,o;return null!==(o=null===(r=(n=t.scale).invert)||void 0===r?void 0:r.call(n,e))&&void 0!==o?o:void 0}});var n=e.initialiseModule(__assign$E(__assign$E({},this.moduleCtx),{parent:this.axisContext}));this.modules[e.optionsKey]=n,this[e.optionsKey]=n.instance},t.prototype.removeModule=function(e){var t,n;null===(n=null===(t=this.modules[e.optionsKey])||void 0===t?void 0:t.instance)||void 0===n||n.destroy(),delete this.modules[e.optionsKey],delete this[e.optionsKey]},t.prototype.isModuleEnabled=function(e){return null!=this.modules[e.optionsKey]},t.prototype.destroy=function(){var t,n;e.prototype.destroy.call(this);try{for(var r=__values$o(Object.entries(this.modules)),o=r.next();!o.done;o=r.next()){var i=__read$M(o.value,2),a=i[0];i[1].instance.destroy(),delete this.modules[a],delete this[a]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},__decorate$1C([Validate(STRING_ARRAY)],t.prototype,"keys",void 0),__decorate$1C([Validate(POSITION)],t.prototype,"_position",void 0),t}(Axis),__extends$2j=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1B=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$L=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$q=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$L(arguments[t]));return e},CategoryAxis=function(e){function t(t){var n=e.call(this,t,new BandScale$5)||this;return n._paddingOverrideEnabled=!1,n.groupPaddingInner=.1,n.includeInvisibleDomains=!0,n}return __extends$2j(t,e),Object.defineProperty(t.prototype,"paddingInner",{get:function(){return this._paddingOverrideEnabled=!0,this.scale.paddingInner},set:function(e){this._paddingOverrideEnabled=!0,this.scale.paddingInner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingOuter",{get:function(){return this.scale.paddingOuter},set:function(e){this.scale.paddingOuter=e},enumerable:!1,configurable:!0}),t.prototype.normaliseDataDomain=function(e){var t=new Set(e);return new(Array.bind.apply(Array,__spread$q([void 0],t.values())))},t.prototype.calculateDomain=function(){if(!this._paddingOverrideEnabled){var t=this.boundSeries.map(function(e){var t;return null===(t=e.getBandScalePadding)||void 0===t?void 0:t.call(e)}).filter(function(e){return null!=e});t.length>0&&(this.scale.paddingInner=Math.min.apply(Math,__spread$q(t.map(function(e){return e.inner}))),this.scale.paddingOuter=Math.max.apply(Math,__spread$q(t.map(function(e){return e.outer}))))}return e.prototype.calculateDomain.call(this)},t.className="CategoryAxis",t.type="category",__decorate$1B([Validate(NUMBER(0,1))],t.prototype,"groupPaddingInner",void 0),t}(ChartAxis),__assign$D=function(){return __assign$D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$D.apply(this,arguments)},__read$K=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$p=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$K(arguments[t]));return e},__values$n=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function jsonDiff(e,t){var n,r,o=classify(e),i=classify(t);if("array"===i){var a=t;return"array"!==o||e.length!==a.length||a.some(function(t,n){var r;return null!=jsonDiff(null===(r=e)||void 0===r?void 0:r[n],t)})?__spread$p(a):null}if("primitive"===i)return"primitive"!==o?__assign$D({},t):e!==t?t:null;var s=e||{},l=t||{},c=new Set(__spread$p(Object.keys(s),Object.keys(l))),u=0,d={},p=function(e){if(s[e]===l[e])return"continue";var t=function(t){d[e]=t,u++},n=classify(s[e]),r=classify(l[e]);if(n!==r)return t(l[e]),"continue";if("primitive"===r||null===r)return t(l[e]),"continue";if("array"===r&&s[e].length!==l[e].length)return t(l[e]),"continue";if("class-instance"===r)return t(l[e]),"continue";if("function"===r&&s[e]!==l[e])return t(l[e]),"continue";var o=jsonDiff(s[e],l[e]);null!==o&&t(o)};try{for(var h=__values$n(c),f=h.next();!f.done;f=h.next())p(f.value)}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}return 0===u?null:d}var DELETE=Symbol("<delete-property>"),NOT_SPECIFIED=Symbol("<unspecified-property>");function jsonMerge(e,t){var n,r,o=(null==t?void 0:t.avoidDeepClone)||[];if(e.map(function(e){return classify(e)}).some(function(e){return"array"===e})){var i=e[e.length-1];return i instanceof Array?i.map(function(e){var n=classify(e);return"array"===n?jsonMerge([[],e],t):"object"===n?jsonMerge([{},e],t):e}):i}var a={},s=new Set(e.map(function(e){return null!=e?Object.keys(e):[]}).reduce(function(e,t){return e.concat(t)},[])),l=function(n){var r=e.map(function(e){return null!=e&&n in e?e[n]:NOT_SPECIFIED}).filter(function(e){return e!==NOT_SPECIFIED});if(0===r.length)return"continue";var i=r[r.length-1];if(i===DELETE)return"continue";var s=r.map(function(e){return classify(e)}),l=s[0];if(s.some(function(e){return e!==l}))return a[n]=i,"continue";"array"!==l&&"object"!==l||o.includes(n)?a[n]="array"===l?__spread$p(i):i:a[n]=jsonMerge(r,t)};try{for(var c=__values$n(s),u=c.next();!u.done;u=c.next())l(u.value)}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return a}function jsonApply(e,t,n){var r;void 0===n&&(n={});var o=n.path,i=void 0===o?void 0:o,a=n.matcherPath,s=void 0===a?i?i.replace(/(\[[0-9+]+\])/i,"[]"):void 0:a,l=n.skip,c=void 0===l?[]:l,u=n.constructors,d=void 0===u?{}:u,p=n.allowedTypes,h=void 0===p?{}:p,f=n.idx;if(null==e)throw new Error("AG Charts - target is uninitialised: "+(i||"<root>"));if(null==t)return e;var g=e;null!=f&&"_declarationOrder"in g&&(g._declarationOrder=f);var m=classify(e),v=function(o){var a=(s?s+".":"")+o;if(c.indexOf(a)>=0)return"continue";var l=t[o],u=(i?i+".":"")+o,p=g.constructor,f=g[o],v=null!==(r=d[o])&&void 0!==r?r:d[a];try{var y=classify(f),A=classify(l);if("class-instance"===m&&!(o in e)&&!Object.prototype.hasOwnProperty.call(g,o))return Logger.warn("unable to set ["+u+"] in "+(null==p?void 0:p.name)+" - property is unknown"),"continue";var w=h[a]||[y];if("class-instance"===y&&"object"===A);else if(null!=y&&null!=A&&!w.includes(A))return Logger.warn("unable to set ["+u+"] in "+(null==p?void 0:p.name)+" - can't apply type of ["+A+"], allowed types are: ["+w+"]"),"continue";if("array"===A)if(null!=(v=null!=v?v:d[a+"[]"])){var b=l;g[o]=b.map(function(e,t){return jsonApply(new v,e,__assign$D(__assign$D({},n),{path:u,matcherPath:a+"[]",idx:t}))})}else g[o]=l;else"class-instance"===A?g[o]=l:"object"===A?null!=f?jsonApply(f,l,__assign$D(__assign$D({},n),{path:u,matcherPath:a,idx:void 0})):g[o]=null!=v?jsonApply(new v,l,__assign$D(__assign$D({},n),{path:u,matcherPath:a,idx:void 0})):l:g[o]=l}catch(e){var _=e;return Logger.warn("unable to set ["+u+"] in ["+(null==p?void 0:p.name)+"]; nested error is: "+_.message),"continue"}};for(var y in t)v(y);return e}function jsonWalk(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var i=classify(e),a=n.skip||[];if("array"!==i){if("object"===i){t.apply(void 0,__spread$p([i,e],r));var s=function(o){if(a.indexOf(o)>=0)return"continue";var i=e[o],s=null==r?void 0:r.map(function(e){return null==e?void 0:e[o]}),l=classify(i);"object"!==l&&"array"!==l||jsonWalk.apply(void 0,__spread$p([i,t,n],s))};for(var l in e)s(l)}}else e.forEach(function(e,o){jsonWalk.apply(void 0,__spread$p([e,t,n],(null!=r?r:[]).map(function(e){return null==e?void 0:e[o]})))})}function classify(e){return null==e?null:e instanceof HTMLElement?"primitive":e instanceof Array?"array":e instanceof Date?"primitive":"object"==typeof e&&e.constructor===Object?"object":"function"==typeof e?"function":"object"==typeof e&&null!=e.constructor?"class-instance":"primitive"}var __extends$2i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1A=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__awaiter$d=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$d=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__read$J=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$o=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$J(arguments[t]));return e},__values$m=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_a,DEFAULT_DIRECTION_KEYS=(_a={},_a[ChartAxisDirection.X]=["xKey"],_a[ChartAxisDirection.Y]=["yKey"],_a),CartesianSeriesNodeBaseClickEvent=function(e){function t(t,n,r,o,i){var a=e.call(this,r,o,i)||this;return a.xKey=t,a.yKey=n,a}return __extends$2i(t,e),t}(SeriesNodeBaseClickEvent),CartesianSeriesNodeClickEvent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="nodeClick",t}return __extends$2i(t,e),t}(CartesianSeriesNodeBaseClickEvent),CartesianSeriesNodeDoubleClickEvent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="nodeDoubleClick",t}return __extends$2i(t,e),t}(CartesianSeriesNodeBaseClickEvent),CartesianSeries=function(e){function t(t){var n;void 0===t&&(t={});var r=e.call(this,{useSeriesGroupLayer:!0,pickModes:t.pickModes,directionKeys:null!==(n=t.directionKeys)&&void 0!==n?n:DEFAULT_DIRECTION_KEYS})||this;r._contextNodeData=[],r.nodeDataDependencies={},r.highlightSelection=Selection.select(r.highlightNode,function(){return r.opts.hasMarkers?r.markerFactory():r.nodeFactory()}),r.highlightLabelSelection=Selection.select(r.highlightLabel,Text),r.subGroups=[],r.subGroupId=0,r.seriesItemEnabled=new Map;var o=t.pathsPerSeries,i=void 0===o?1:o,a=t.hasMarkers,s=void 0!==a&&a,l=t.pathsZIndexSubOrderOffset,c=void 0===l?[]:l,u=t.renderLayerPerSubSeries,d=void 0===u||u;return r.opts={pathsPerSeries:i,hasMarkers:s,pathsZIndexSubOrderOffset:c,renderLayerPerSubSeries:d},r}return __extends$2i(t,e),Object.defineProperty(t.prototype,"contextNodeData",{get:function(){var e;return null===(e=this._contextNodeData)||void 0===e?void 0:e.slice()},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this._contextNodeData.splice(0,this._contextNodeData.length),this.subGroups.splice(0,this.subGroups.length)},t.prototype.checkDomainXY=function(e,t,n,r){return(n&&isContinuous(e)||!n&&isDiscrete(e))&&(r&&isContinuous(t)||!r&&isDiscrete(t))?[e,t]:void 0},t.prototype.checkRangeXY=function(e,t,n,r){return!isNaN(e)&&!isNaN(t)&&n.inRange(e)&&r.inRange(t)},t.prototype.update=function(e){var t,n,r=e.seriesRect;return __awaiter$d(this,void 0,void 0,function(){var e,o,i,a,s,l,c;return __generator$d(this,function(u){switch(u.label){case 0:return o=(e=this).seriesItemEnabled,i=e.visible,a=(null!==(n=null===(t=this.highlightManager)||void 0===t?void 0:t.getActiveHighlight())&&void 0!==n?n:{}).series,s=a?a===this:void 0,l=i&&0===o.size||__spread$o(o.values()).some(function(e){return!0===e}),c={seriesRectWidth:null==r?void 0:r.width,seriesRectHeight:null==r?void 0:r.height},null!=jsonDiff(this.nodeDataDependencies,c)&&(this.nodeDataDependencies=c,this.markNodeDataDirty()),[4,this.updateSelections(s,l)];case 1:return u.sent(),[4,this.updateNodes(s,l)];case 2:return u.sent(),[2]}})})},t.prototype.updateSelections=function(e,t){return __awaiter$d(this,void 0,void 0,function(){var n,r=this;return __generator$d(this,function(o){switch(o.label){case 0:return[4,this.updateHighlightSelection(e)];case 1:return o.sent(),t&&(this.nodeDataRefresh||this.isPathOrSelectionDirty())?this.nodeDataRefresh?(this.nodeDataRefresh=!1,n=this,[4,this.createNodeData()]):[3,4]:[2];case 2:return n._contextNodeData=o.sent(),[4,this.updateSeriesGroups()];case 3:o.sent(),o.label=4;case 4:return[4,Promise.all(this.subGroups.map(function(t,n){return r.updateSeriesGroupSelections(t,n,e)}))];case 5:return o.sent(),[2]}})})},t.prototype.updateSeriesGroupSelections=function(e,t,n){return __awaiter$d(this,void 0,void 0,function(){var r,o,i,a,s,l,c,u,d,p,h;return __generator$d(this,function(f){switch(f.label){case 0:return r=e.datumSelection,o=e.labelSelection,i=e.markerSelection,a=e.paths,s=this._contextNodeData[t],l=s.nodeData,c=s.labelData,u=s.itemId,[4,this.updatePaths({seriesHighlighted:n,itemId:u,contextData:s,paths:a,seriesIdx:t})];case 1:return f.sent(),d=e,[4,this.updateDatumSelection({nodeData:l,datumSelection:r,seriesIdx:t})];case 2:return d.datumSelection=f.sent(),p=e,[4,this.updateLabelSelection({labelData:c,labelSelection:o,seriesIdx:t})];case 3:return p.labelSelection=f.sent(),i?(h=e,[4,this.updateMarkerSelection({nodeData:l,markerSelection:i,seriesIdx:t})]):[3,5];case 4:h.markerSelection=f.sent(),f.label=5;case 5:return[2]}})})},t.prototype.nodeFactory=function(){return new Group},t.prototype.markerFactory=function(){return new(getMarker$1())},t.prototype.updateSeriesGroups=function(){var e;return __awaiter$d(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w=this;return __generator$d(this,function(b){if(n=(t=this)._contextNodeData,r=t.contentGroup,o=t.subGroups,i=t.opts,a=i.pathsPerSeries,s=i.hasMarkers,l=i.pathsZIndexSubOrderOffset,c=i.renderLayerPerSubSeries,n.length===o.length)return[2];for(n.length<o.length&&o.splice(n.length).forEach(function(e){var t,n,o=e.dataNodeGroup,i=e.markerGroup,a=e.labelGroup,s=e.paths;r.removeChild(o),i&&r.removeChild(i),a&&r.removeChild(a);try{for(var l=__values$m(s),c=l.next();!c.done;c=l.next()){var u=c.value;r.removeChild(u)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}}),u=n.length;u>o.length;){for(d=c,p=this.subGroupId++,h=p,f=new Group({name:this.id+"-series-sub"+p+"-dataNodes",layer:d,zIndex:Layers.SERIES_LAYER_ZINDEX,zIndexSubOrder:[function(){return w._declarationOrder},h]}),g=s?new Group({name:this.id+"-series-sub"+this.subGroupId+++"-markers",layer:d,zIndex:Layers.SERIES_LAYER_ZINDEX,zIndexSubOrder:[function(){return w._declarationOrder},1e4+p]}):void 0,m=new Group({name:this.id+"-series-sub"+this.subGroupId+++"-labels",layer:d,zIndex:Layers.SERIES_LABEL_ZINDEX,zIndexSubOrder:[function(){return w._declarationOrder},p]}),r.appendChild(f),r.appendChild(m),g&&r.appendChild(g),v=c?f:r,y=[],A=0;A<a;A++)y[A]=new Path,y[A].zIndex=Layers.SERIES_LAYER_ZINDEX,y[A].zIndexSubOrder=[function(){return w._declarationOrder},(null!==(e=l[A])&&void 0!==e?e:0)+h],v.appendChild(y[A]);o.push({paths:y,dataNodeGroup:f,markerGroup:g,labelGroup:m,labelSelection:Selection.select(m,Text),datumSelection:Selection.select(f,function(){return w.nodeFactory()}),markerSelection:g?Selection.select(g,function(){return w.markerFactory()}):void 0})}return[2]})})},t.prototype.updateNodes=function(e,t){var n;return __awaiter$d(this,void 0,void 0,function(){var r,o,i,a,s,l,c,u,d,p,h,f,g=this;return __generator$d(this,function(m){switch(m.label){case 0:return o=(r=this).highlightSelection,i=r.highlightLabelSelection,a=r._contextNodeData,s=r.seriesItemEnabled,l=r.opts,c=l.hasMarkers,u=l.renderLayerPerSubSeries,d=this.visible&&(null===(n=this._contextNodeData)||void 0===n?void 0:n.length)>0&&t,this.rootGroup.visible=d,this.contentGroup.visible=d,this.highlightGroup.visible=d&&!!e,p=this.getOpacity(),h=this.subGroups.map(function(e,t){var n=a[t].itemId;return g.getOpacity({itemId:n})}),f=h.some(function(e){return e!==p}),this.contentGroup.opacity=f?1:p,c?[4,this.updateMarkerNodes({markerSelection:o,isHighlight:!0,seriesIdx:-1})]:[3,2];case 1:return m.sent(),[3,4];case 2:return[4,this.updateDatumNodes({datumSelection:o,isHighlight:!0,seriesIdx:-1})];case 3:m.sent(),m.label=4;case 4:return[4,this.updateLabelNodes({labelSelection:i,seriesIdx:-1})];case 5:return m.sent(),[4,Promise.all(this.subGroups.map(function(t,n){return __awaiter$d(g,void 0,void 0,function(){var r,o,i,l,p,g,m,v,y,A,w,b,_,C,E,S;return __generator$d(this,function(O){switch(O.label){case 0:r=t.dataNodeGroup,o=t.markerGroup,i=t.datumSelection,l=t.labelSelection,p=t.markerSelection,g=t.paths,m=t.labelGroup,v=a[n].itemId,y=d&&(null===(S=s.get(v))||void 0===S||S),A=f?h[n]:1,r.opacity=A,r.visible=y,m.visible=y,o&&(o.opacity=A,o.zIndex=r.zIndex>=Layers.SERIES_LAYER_ZINDEX?r.zIndex:r.zIndex+1,o.visible=y),m&&(m.opacity=A);try{for(w=__values$m(g),b=w.next();!b.done;b=w.next())_=b.value,u||(_.opacity=A,_.visible=y)}catch(e){C={error:e}}finally{try{b&&!b.done&&(E=w.return)&&E.call(w)}finally{if(C)throw C.error}}return r.visible?[4,this.updatePathNodes({seriesHighlighted:e,itemId:v,paths:g,seriesIdx:n})]:[2];case 1:return O.sent(),[4,this.updateDatumNodes({datumSelection:i,isHighlight:!1,seriesIdx:n})];case 2:return O.sent(),[4,this.updateLabelNodes({labelSelection:l,seriesIdx:n})];case 3:return O.sent(),c&&p?[4,this.updateMarkerNodes({markerSelection:p,isHighlight:!1,seriesIdx:n})]:[3,5];case 4:O.sent(),O.label=5;case 5:return[2]}})})}))];case 6:return m.sent(),[2]}})})},t.prototype.updateHighlightSelection=function(e){var t;return __awaiter$d(this,void 0,void 0,function(){var n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v;return __generator$d(this,function(y){switch(y.label){case 0:return r=(n=this).highlightSelection,o=n.highlightLabelSelection,i=n._contextNodeData,a=null===(t=this.highlightManager)||void 0===t?void 0:t.getActiveHighlight(),s=e&&(null==a?void 0:a.datum)?a:void 0,l=this,[4,this.updateHighlightSelectionItem({item:s,highlightSelection:r})];case 1:if(l.highlightSelection=y.sent(),this.isLabelEnabled()&&null!=s){u=s.itemId,d=void 0===u?void 0:u;try{for(p=__values$m(i),h=p.next();!h.done&&(f=h.value.labelData,null==(c=f.find(function(e){return e.datum===s.datum&&e.itemId===d})));h=p.next());}catch(e){m={error:e}}finally{try{h&&!h.done&&(v=p.return)&&v.call(p)}finally{if(m)throw m.error}}}return g=this,[4,this.updateHighlightSelectionLabel({item:c,highlightLabelSelection:o})];case 2:return g.highlightLabelSelection=y.sent(),[2]}})})},t.prototype.pickNodeExactShape=function(t){var n,r,o=e.prototype.pickNodeExactShape.call(this,t);if(o)return o;var i=t.x,a=t.y,s=this.opts.hasMarkers;try{for(var l=__values$m(this.subGroups),c=l.next();!c.done;c=l.next()){var u=c.value,d=u.dataNodeGroup,p=u.markerGroup,h=d.pickNode(i,a);if(!h&&s&&(h=null==p?void 0:p.pickNode(i,a)),h)return{datum:h.datum,distance:0}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}},t.prototype.pickNodeClosestDatum=function(e){var t,n,r,o,i,a,s,l=e.x,c=e.y,u=this,d=u.xAxis,p=u.yAxis,h=u.rootGroup,f=u._contextNodeData,g=h.transformPoint(l,c),m=1/0;try{for(var v=__values$m(f),y=v.next();!y.done;y=v.next()){var A=y.value;try{for(var w=(r=void 0,__values$m(A.nodeData)),b=w.next();!b.done;b=w.next()){var _,C=b.value,E=C.point,S=void 0===E?{}:E,O=S.x,x=void 0===O?NaN:O,D=S.y,P=void 0===D?NaN:D;isNaN(x)||isNaN(P)||(null==d?void 0:d.inRange(x))&&(null==p?void 0:p.inRange(P))&&(_=Math.max(Math.pow(g.x-x,2)+Math.pow(g.y-P,2),0))<m&&(m=_,s=C)}}catch(e){r={error:e}}finally{try{b&&!b.done&&(o=w.return)&&o.call(w)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{y&&!y.done&&(n=v.return)&&n.call(v)}finally{if(t)throw t.error}}if(s)return{datum:s,distance:_=Math.max(Math.sqrt(m)-(null!==(a=null===(i=s.point)||void 0===i?void 0:i.size)&&void 0!==a?a:0),0)}},t.prototype.pickNodeMainAxisFirst=function(e,t){var n,r,o,i,a,s,l=e.x,c=e.y,u=this,d=u.xAxis,p=u.yAxis,h=u.rootGroup,f=u._contextNodeData,g=[d,p].filter(function(e){return e instanceof CategoryAxis}).map(function(e){return e.direction});if(!t||0!==g.length){var m=__read$J(g,1)[0],v=void 0===m?ChartAxisDirection.X:m,y=h.transformPoint(l,c),A=v===ChartAxisDirection.X?[y.x,y.y]:[y.y,y.x],w=[1/0,1/0],b=void 0;try{for(var _=__values$m(f),C=_.next();!C.done;C=_.next()){var E=C.value;try{for(var S=(o=void 0,__values$m(E.nodeData)),O=S.next();!O.done;O=S.next()){var x=O.value,D=x.point,P=void 0===D?{}:D,M=P.x,T=void 0===M?NaN:M,R=P.y,I=void 0===R?NaN:R;if(!isNaN(T)&&!isNaN(I)&&(null==d?void 0:d.inRange(T))&&(null==p?void 0:p.inRange(I))){for(var F=v===ChartAxisDirection.X?[T,I]:[I,T],k=!0,L=0;L<F.length;L++){var B=Math.abs(F[L]-A[L]);if(B>w[L]){k=!1;break}B<w[L]&&(w[L]=B,w.fill(1/0,L+1,w.length))}k&&(b=x)}}}catch(e){o={error:e}}finally{try{O&&!O.done&&(i=S.return)&&i.call(S)}finally{if(o)throw o.error}}}}catch(e){n={error:e}}finally{try{C&&!C.done&&(r=_.return)&&r.call(_)}finally{if(n)throw n.error}}if(b)return{datum:b,distance:Math.max(Math.sqrt(Math.pow(w[0],2)+Math.pow(w[1],2))-(null!==(s=null===(a=b.point)||void 0===a?void 0:a.size)&&void 0!==s?s:0),0)}}},t.prototype.toggleSeriesItem=function(t,n){this.seriesItemEnabled.size>0?(this.seriesItemEnabled.set(t,n),this.nodeDataRefresh=!0):e.prototype.toggleSeriesItem.call(this,t,n)},t.prototype.isEnabled=function(){var t,n;if(this.seriesItemEnabled.size>0){try{for(var r=__values$m(this.seriesItemEnabled),o=r.next();!o.done;o=r.next())if(__read$J(o.value,2)[1])return!0}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1}return e.prototype.isEnabled.call(this)},t.prototype.isPathOrSelectionDirty=function(){return!1},t.prototype.getLabelData=function(){return[]},t.prototype.isAnySeriesVisible=function(){var e,t;try{for(var n=__values$m(this.seriesItemEnabled.values()),r=n.next();!r.done;r=n.next())if(r.value)return!0}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!1},t.prototype.validateXYData=function(e,t,n,r,o,i,a,s){var l;if(void 0===s&&(s=1),"integrated"===(null===(l=this.chart)||void 0===l?void 0:l.mode))return!0;if(!r||!o||0===n.length||this.seriesItemEnabled.size>0&&!this.isAnySeriesVisible())return!0;var c=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),e.some(t===n?function(e){return isContinuous(e)}:function(e){return c(e,t+1,n)})},u=r.scale instanceof ContinuousScale,d=o.scale instanceof ContinuousScale,p=!0;return u&&!c(i)&&(Logger.warnOnce("the number axis has no numeric data supplied for xKey: ["+e+"]."),p=!1),d&&!c(a,0,s-1)&&(Logger.warnOnce("the number axis has no numeric data supplied for yKey: ["+t+"]."),p=!1),p},t.prototype.updatePaths=function(e){return __awaiter$d(this,void 0,void 0,function(){return __generator$d(this,function(t){return e.paths.forEach(function(e){return e.visible=!1}),[2]})})},t.prototype.updatePathNodes=function(e){return __awaiter$d(this,void 0,void 0,function(){return __generator$d(this,function(e){return[2]})})},t.prototype.updateHighlightSelectionItem=function(e){return __awaiter$d(this,void 0,void 0,function(){var t,n,r,o,i;return __generator$d(this,function(a){return t=this.opts.hasMarkers,n=e.item,r=e.highlightSelection,o=n?[n]:[],t?(i=r,[2,this.updateMarkerSelection({nodeData:o,markerSelection:i,seriesIdx:-1})]):[2,this.updateDatumSelection({nodeData:o,datumSelection:r,seriesIdx:-1})]})})},t.prototype.updateHighlightSelectionLabel=function(e){return __awaiter$d(this,void 0,void 0,function(){var t,n,r;return __generator$d(this,function(o){return t=e.item,n=e.highlightLabelSelection,r=t?[t]:[],[2,this.updateLabelSelection({labelData:r,labelSelection:n,seriesIdx:-1})]})})},t.prototype.updateDatumSelection=function(e){return __awaiter$d(this,void 0,void 0,function(){return __generator$d(this,function(t){return[2,e.datumSelection]})})},t.prototype.updateDatumNodes=function(e){return __awaiter$d(this,void 0,void 0,function(){return __generator$d(this,function(e){return[2]})})},t.prototype.updateMarkerSelection=function(e){return __awaiter$d(this,void 0,void 0,function(){return __generator$d(this,function(t){return[2,e.markerSelection]})})},t.prototype.updateMarkerNodes=function(e){return __awaiter$d(this,void 0,void 0,function(){return __generator$d(this,function(e){return[2]})})},t}(Series),CartesianSeriesMarker=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.formatter=void 0,t}return __extends$2i(t,e),__decorate$1A([Validate(OPT_FUNCTION),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"formatter",void 0),t}(SeriesMarker);function sleep(e){return new Promise(function(t){setTimeout(function(){return t(void 0)},e)})}var __decorate$1z=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Overlay=function(){function e(e,t){this.renderer=void 0,this.text=void 0,this.className=e,this.parentElement=t}return e.prototype.show=function(e){var t,n,r=this.element;if(this.element||((r=document.createElement("div")).className=this.className,this.element=r),r.style.position="absolute",r.style.left=e.x+"px",r.style.top=e.y+"px",r.style.width=e.width+"px",r.style.height=e.height+"px",this.renderer)this.element.innerHTML=this.renderer();else{var o=document.createElement("div");o.style.alignItems="center",o.style.boxSizing="border-box",o.style.display="flex",o.style.justifyContent="center",o.style.margin="8px",o.style.height="100%",o.style.font="12px Verdana, sans-serif",o.innerText=null!==(t=this.text)&&void 0!==t?t:"No data to display",r.append(o)}null===(n=this.parentElement)||void 0===n||n.append(r)},e.prototype.hide=function(){var e;null===(e=this.element)||void 0===e||e.remove(),this.element=void 0},__decorate$1z([Validate(OPT_FUNCTION)],e.prototype,"renderer",void 0),__decorate$1z([Validate(OPT_STRING)],e.prototype,"text",void 0),e}(),ChartOverlays=function(e){this.noData=new Overlay("ag-chart-no-data-overlay",e)},__read$I=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$n=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$I(arguments[t]));return e},__values$l=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Listeners=function(){function e(){this.registeredListeners={}}return e.prototype.addListener=function(e,t){var n,r=Symbol(e);return this.registeredListeners[e]||(this.registeredListeners[e]=[]),null===(n=this.registeredListeners[e])||void 0===n||n.push({symbol:r,handler:t}),r},e.prototype.dispatch=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(null!==(t=this.registeredListeners[e])&&void 0!==t?t:[]).map(function(e){return e.handler.apply(e,__spread$n(n))})},e.prototype.cancellableDispatch=function(e,t){for(var n,r,o,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=null!==(o=this.registeredListeners[e])&&void 0!==o?o:[],l=[];try{for(var c=__values$l(s),u=c.next();!u.done;u=c.next()){var d=u.value;if(t())break;l.push(d.handler.apply(d,__spread$n(i)))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return l},e.prototype.reduceDispatch=function(e,t){for(var n,r,o,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=null!==(o=this.registeredListeners[e])&&void 0!==o?o:[],l=void 0;try{for(var c=__values$l(s),u=c.next();!u.done;u=c.next()){var d=u.value;l=d.handler.apply(d,__spread$n(i)),i=t.apply(void 0,__spread$n([l],i))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return l},e.prototype.removeListener=function(e){for(var t in this.registeredListeners){var n=this.registeredListeners[t],r=null==n?void 0:n.findIndex(function(t){return t.symbol===e});null!=r&&r>=0&&(null==n||n.splice(r,1)),null!=r&&0===(null==n?void 0:n.length)&&delete this.registeredListeners[t]}},e}(),BaseManager=function(){function e(){this.listeners=new Listeners}return e.prototype.addListener=function(e,t){return this.listeners.addListener(e,t)},e.prototype.removeListener=function(e){this.listeners.removeListener(e)},e}(),__extends$2h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$C=function(){return __assign$C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$C.apply(this,arguments)},__awaiter$c=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$c=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__values$k=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},WINDOW_EVENT_HANDLERS=["pagehide","mousemove","mouseup","wheel"],EVENT_HANDLERS=["click","dblclick","contextmenu","mousedown","mouseout","mouseenter","touchstart","touchmove","touchend","touchcancel"],CSS="\n.ag-chart-wrapper {\n    touch-action: none;\n}\n",InteractionManager=function(e){function t(n,r){var o,i,a,s;void 0===r&&(r=document);var l=e.call(this)||this;l.eventHandler=function(e){return l.processEvent(e)},l.mouseDown=!1,l.touchDown=!1,l.rootElement=r.body,l.element=n;try{for(var c=__values$k(EVENT_HANDLERS),u=c.next();!u.done;u=c.next())(h=u.value).startsWith("touch")?n.addEventListener(h,l.eventHandler,{passive:!0}):n.addEventListener(h,l.eventHandler)}catch(e){o={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}try{for(var d=__values$k(WINDOW_EVENT_HANDLERS),p=d.next();!p.done;p=d.next()){var h=p.value;window.addEventListener(h,l.eventHandler)}}catch(e){a={error:e}}finally{try{p&&!p.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}if(t.interactionDocuments.indexOf(r)<0){var f=document.createElement("style");f.innerHTML=CSS,document.head.insertBefore(f,document.head.querySelector("style")),t.interactionDocuments.push(r)}return l}return __extends$2h(t,e),t.prototype.destroy=function(){var e,t,n,r;try{for(var o=__values$k(WINDOW_EVENT_HANDLERS),i=o.next();!i.done;i=o.next()){var a=i.value;window.removeEventListener(a,this.eventHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}try{for(var s=__values$k(EVENT_HANDLERS),l=s.next();!l.done;l=s.next())a=l.value,this.element.removeEventListener(a,this.eventHandler)}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}},t.prototype.processEvent=function(e){var t=this.decideInteractionEventTypes(e);t.length>0&&this.dispatchEvent(e,t)},t.prototype.dispatchEvent=function(e,t){return __awaiter$c(this,void 0,void 0,function(){var n,r,o,i,a,s,l,c;return __generator$c(this,function(u){if(null==(n=this.calculateCoordinates(e)))return[2];r=function(t){var r=o.buildEvent(__assign$C(__assign$C({event:e},n),{type:t}));o.listeners.cancellableDispatch(t,function(){return r.consumed},r)},o=this;try{for(i=__values$k(t),a=i.next();!a.done;a=i.next())s=a.value,r(s)}catch(e){l={error:e}}finally{try{a&&!a.done&&(c=i.return)&&c.call(i)}finally{if(l)throw l.error}}return[2]})})},t.prototype.decideInteractionEventTypes=function(e){switch(e.type){case"click":return["click"];case"dblclick":return["dblclick"];case"contextmenu":return["contextmenu"];case"mousedown":return this.mouseDown=!0,this.dragStartElement=e.target,["drag-start"];case"touchstart":return this.touchDown=!0,this.dragStartElement=e.target,["drag-start"];case"touchmove":case"mousemove":return this.mouseDown||this.touchDown||this.isEventOverElement(e)?this.mouseDown||this.touchDown?["drag"]:["hover"]:[];case"mouseup":return this.mouseDown||this.isEventOverElement(e)?(this.mouseDown=!1,this.dragStartElement=void 0,["drag-end"]):[];case"touchend":return this.touchDown||this.isEventOverElement(e)?(this.touchDown=!1,this.dragStartElement=void 0,["drag-end"]):[];case"mouseout":case"touchcancel":return["leave"];case"mouseenter":var t=e instanceof MouseEvent&&!(1&~e.buttons);return this.mouseDown!==t?(this.mouseDown=t,[t?"drag-start":"drag-end"]):[];case"pagehide":return["page-left"];case"wheel":return["wheel"]}return[]},t.prototype.isEventOverElement=function(e){var t;return e.target===this.element||(null===(t=e.target)||void 0===t?void 0:t.parentElement)===this.element},t.prototype.calculateCoordinates=function(e){var n;if(e instanceof MouseEvent){var r=e.clientX,o=e.clientY,i=e.pageX,a=e.pageY,s=e.offsetX,l=e.offsetY;return this.fixOffsets(e,{clientX:r,clientY:o,pageX:i,pageY:a,offsetX:s,offsetY:l})}if("undefined"!=typeof TouchEvent&&e instanceof TouchEvent){var c=null!==(n=e.touches[0])&&void 0!==n?n:e.changedTouches[0];return r=c.clientX,o=c.clientY,i=c.pageX,a=c.pageY,__assign$C(__assign$C({},t.NULL_COORDS),{clientX:r,clientY:o,pageX:i,pageY:a})}if(e instanceof PageTransitionEvent){if(e.persisted)return;return t.NULL_COORDS}},t.prototype.fixOffsets=function(e,t){var n=function(e){for(var t=0,n=0;e;)t+=e.offsetLeft,n+=e.offsetTop,e=e.offsetParent;return{x:t,y:n}};if(null!=this.dragStartElement&&e.target!==this.dragStartElement){var r=n(this.dragStartElement),o=n(e.target);t.offsetX-=r.x-o.x,t.offsetY-=r.y-o.y}return t},t.prototype.buildEvent=function(e){var t=e.type,n=e.event,r=e.clientX,o=e.clientY,i=e.offsetX,a=e.offsetY,s=e.pageX,l=e.pageY;if(!isNumber$4(i)||!isNumber$4(a)){var c=this.element.getBoundingClientRect();i=r-c.left,a=o-c.top}if(!isNumber$4(s)||!isNumber$4(l)){var u=this.rootElement.getBoundingClientRect();s=r-u.left,l=o-u.top}var d={type:t,offsetX:i,offsetY:a,pageX:s,pageY:l,sourceEvent:n,consumed:!1,consume:function(){return d.consumed=!0}};return d},t.interactionDocuments=[],t.NULL_COORDS={clientX:-1/0,clientY:-1/0,pageX:-1/0,pageY:-1/0,offsetX:-1/0,offsetY:-1/0},t}(BaseManager),__read$H=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},CursorManager=function(){function e(e){this.states={},this.element=e}return e.prototype.updateCursor=function(e,t){delete this.states[e],null!=t&&(this.states[e]={style:t}),this.applyStates()},e.prototype.applyStates=function(){var e="default";Object.entries(this.states).reverse().slice(0,1).forEach(function(t){var n=__read$H(t,2);n[0];var r=n[1].style;return e=r}),this.element.style.cursor=e},e}(),__extends$2g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__read$G=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function isEqual$1(e,t){return e===t||(null==e?void 0:e.series)===(null==t?void 0:t.series)&&(null==e?void 0:e.itemId)===(null==t?void 0:t.itemId)&&(null==e?void 0:e.datum)===(null==t?void 0:t.datum)}var HighlightManager=function(e){function t(){var t=e.call(this)||this;return t.states={},t.activeHighlight=void 0,t}return __extends$2g(t,e),t.prototype.updateHighlight=function(e,t){delete this.states[e],null!=t&&(this.states[e]={highlightedDatum:t}),this.applyStates()},t.prototype.getActiveHighlight=function(){return this.activeHighlight},t.prototype.applyStates=function(){var e=this.activeHighlight,t=void 0;if(Object.entries(this.states).reverse().slice(0,1).forEach(function(e){var n=__read$G(e,2);n[0];var r=n[1].highlightedDatum;return t=r}),this.activeHighlight=t,!isEqual$1(e,this.activeHighlight)){var n={type:"highlight-change",previousHighlight:e,currentHighlight:this.activeHighlight};this.listeners.dispatch("highlight-change",n)}},t}(BaseManager),__values$j=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$F=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},TooltipManager=function(){function e(e,t){var n=this;this.states={},this.exclusiveAreas={},this.destroyFns=[],this.tooltip=e;var r=t.addListener("hover",function(e){return n.checkExclusiveRects(e)});this.destroyFns.push(function(){return t.removeListener(r)})}return e.prototype.updateTooltip=function(e,t,n){var r;null==n&&(n=null===(r=this.states[e])||void 0===r?void 0:r.content),this.states[e]={content:n,meta:t},this.applyStates()},e.prototype.updateExclusiveRect=function(e,t){t?this.exclusiveAreas[e]=t:delete this.exclusiveAreas[e]},e.prototype.removeTooltip=function(e){delete this.states[e],this.applyStates()},e.prototype.getTooltipMeta=function(e){var t;return null===(t=this.states[e])||void 0===t?void 0:t.meta},e.prototype.destroy=function(){var e,t;try{for(var n=__values$j(this.destroyFns),r=n.next();!r.done;r=n.next())(0,r.value)()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e.prototype.checkExclusiveRects=function(e){var t,n,r;try{for(var o=__values$j(Object.entries(this.exclusiveAreas)),i=o.next();!i.done;i=o.next()){var a=__read$F(i.value,2),s=a[0];if(a[1].containsPoint(e.offsetX,e.offsetY)){r=s;break}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}r!==this.appliedExclusiveArea&&(this.appliedExclusiveArea=r,this.applyStates())},e.prototype.applyStates=function(){var e,t=this,n=this.appliedExclusiveArea?[this.appliedExclusiveArea]:Object.keys(this.states),r=void 0,o=void 0;if(n.reverse().slice(0,1).forEach(function(e){var n,i=null!==(n=t.states[e])&&void 0!==n?n:{},a=i.content,s=i.meta;r=a,o=s}),void 0===o||void 0===r)return this.appliedState=void 0,void this.tooltip.toggle(!1);if((null===(e=this.appliedState)||void 0===e?void 0:e.content)===r){var i=this.tooltip.isVisible();this.tooltip.show(o,void 0,i)}else this.tooltip.show(o,r);this.appliedState={content:r,meta:o}},e}(),__extends$2f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$B=function(){return __assign$B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$B.apply(this,arguments)},__values$i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$E=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function isEqual(e,t){var n,r,o,i,a,s,l,c;return e===t||(null===(n=null==e?void 0:e.x)||void 0===n?void 0:n.min)===(null===(r=null==t?void 0:t.x)||void 0===r?void 0:r.min)&&(null===(o=null==e?void 0:e.x)||void 0===o?void 0:o.max)===(null===(i=null==t?void 0:t.x)||void 0===i?void 0:i.max)&&(null===(a=null==e?void 0:e.y)||void 0===a?void 0:a.max)===(null===(s=null==t?void 0:t.y)||void 0===s?void 0:s.max)&&(null===(l=null==e?void 0:e.y)||void 0===l?void 0:l.min)===(null===(c=null==t?void 0:t.y)||void 0===c?void 0:c.min)}var ZoomManager=function(e){function t(){var t=e.call(this)||this;return t.states={},t.currentZoom=void 0,t}return __extends$2f(t,e),t.prototype.updateZoom=function(e,t){delete this.states[e],null!=t&&(this.states[e]=__assign$B({},t)),this.applyStates()},t.prototype.getZoom=function(){return this.currentZoom},t.prototype.applyStates=function(){var e,t,n=this.currentZoom,r={};try{for(var o=__values$i(Object.entries(this.states)),i=o.next();!i.done;i=o.next()){var a=__read$E(i.value,2),s=(a[0],a[1]),l=s.x,c=s.y;r.x=null!=l?l:r.x,r.y=null!=c?c:r.y}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}if(this.currentZoom=null!=r.x||null!=r.y?r:void 0,!isEqual(n,this.currentZoom)){var u=__assign$B({type:"zoom-change"},null!=n?n:{});this.listeners.dispatch("zoom-change",u)}},t}(BaseManager),__assign$A=function(){return __assign$A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$A.apply(this,arguments)};function isLayoutStage(e){return"layout-complete"!==e}function isLayoutComplete(e){return"layout-complete"===e}var LayoutService=function(){function e(){this.layoutProcessors=new Listeners,this.listeners=new Listeners}return e.prototype.addListener=function(e,t){if(isLayoutStage(e))return this.layoutProcessors.addListener(e,t);if(isLayoutComplete(e))return this.listeners.addListener(e,t);throw new Error("AG Charts - unsupported listener type: "+e)},e.prototype.removeListener=function(e){this.listeners.removeListener(e),this.layoutProcessors.removeListener(e)},e.prototype.dispatchPerformLayout=function(e,t){var n=this.layoutProcessors.reduceDispatch(e,function(e,t){var n=e.shrinkRect;return[__assign$A(__assign$A({},t),{shrinkRect:n})]},t);return null!=n?n:t},e.prototype.dispatchLayoutComplete=function(e){this.listeners.dispatch("layout-complete",e)},e}(),UpdateService=function(){function e(e){this.updateCallback=e}return e.prototype.update=function(e){void 0===e&&(e=ChartUpdateType.FULL),this.updateCallback(e)},e}(),__decorate$1y=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ChartHighlight=function(){function e(){this.range="tooltip"}return __decorate$1y([Validate(STRING_UNION("tooltip","node"))],e.prototype,"range",void 0),e}(),__extends$2e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$z=function(){return __assign$z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$z.apply(this,arguments)},__decorate$1x=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__awaiter$b=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$b=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__values$h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$D=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$m=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$D(arguments[t]));return e},Chart=function(e){function t(t,n,r){var o;void 0===t&&(t=window.document);var i=e.call(this)||this;i.id=createId$1(i),i.processedOptions={},i.userOptions={},i.queuedUserOptions=[],i.seriesRoot=new Group({name:i.id+"-Series-root"}),i.extraDebugStats={},i._container=void 0,i.data=[],i.padding=new Padding$1(20),i.seriesAreaPadding=new Padding$1(0),i.title=void 0,i.subtitle=void 0,i.footnote=void 0,i.mode="standalone",i._destroyed=!1,i.modules={},i._pendingFactoryUpdates=[],i._performUpdateNoRenderCount=0,i._performUpdateType=ChartUpdateType.NONE,i.seriesToUpdate=new Set,i.performUpdateTrigger=debouncedCallback(function(e){var t=e.count;return __awaiter$b(i,void 0,void 0,function(){var e;return __generator$b(this,function(n){switch(n.label){case 0:if(this._destroyed)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.performUpdate(t)];case 2:return n.sent(),[3,4];case 3:return e=n.sent(),this._lastPerformUpdateError=e,Logger.error("update error",e),[3,4];case 4:return[2]}})})}),i._axes=[],i._series=[],i.lastInteractionEvent=void 0,i.pointerScheduler=debouncedAnimationFrame(function(){i.lastInteractionEvent&&i.handlePointer(i.lastInteractionEvent),i.lastInteractionEvent=void 0}),i.onSeriesNodeClick=function(e){var t=__assign$z(__assign$z({},e),{type:"seriesNodeClick"});Object.defineProperty(t,"series",{enumerable:!1,get:function(){return e.series}}),i.fireEvent(t)},i.onSeriesNodeDoubleClick=function(e){var t=__assign$z(__assign$z({},e),{type:"seriesNodeDoubleClick"});i.fireEvent(t)};var a=null==r?void 0:r.scene,s=null!==(o=null==r?void 0:r.element)&&void 0!==o?o:t.createElement("div"),l=null==r?void 0:r.container,c=new Group({name:"root"});return c.visible=!1,c.append(i.seriesRoot),i.axisGroup=new Group({name:"Axes",layer:!0,zIndex:Layers.AXIS_ZINDEX}),c.appendChild(i.axisGroup),i.element=s,s.classList.add("ag-chart-wrapper"),s.style.position="relative",i.scene=null!=a?a:new Scene({document:t,overrideDevicePixelRatio:n}),i.debug=!1,i.scene.debug.consoleLog=!1,i.scene.root=c,i.scene.container=s,i.autoSize=!0,i.interactionManager=new InteractionManager(s),i.cursorManager=new CursorManager(s),i.highlightManager=new HighlightManager,i.zoomManager=new ZoomManager,i.layoutService=new LayoutService,i.updateService=new UpdateService(function(e){return void 0===e&&(e=ChartUpdateType.FULL),i.update(e)}),SizeMonitor.observe(i.element,function(e){var t=e.width,n=e.height;i.autoSize&&(0===t&&0===n||t===i.width&&n===i.height||(i._lastAutoSize=[t,n],i.resize(t,n)))}),i.layoutService.addListener("start-layout",function(e){return i.positionPadding(e.shrinkRect)}),i.layoutService.addListener("start-layout",function(e){return i.positionCaptions(e.shrinkRect)}),i.tooltip=new Tooltip(i.scene.canvas.element,t,t.body),i.tooltipManager=new TooltipManager(i.tooltip,i.interactionManager),i.legend=new Legend(i,i.interactionManager,i.cursorManager,i.highlightManager,i.tooltipManager,i.layoutService),i.overlays=new ChartOverlays(i.element),i.highlight=new ChartHighlight,i.container=l,i.interactionManager.addListener("click",function(e){return i.onClick(e)}),i.interactionManager.addListener("dblclick",function(e){return i.onDoubleClick(e)}),i.interactionManager.addListener("hover",function(e){return i.onMouseMove(e)}),i.interactionManager.addListener("leave",function(e){return i.onLeave(e)}),i.interactionManager.addListener("page-left",function(){return i.destroy()}),i.interactionManager.addListener("wheel",function(){return i.disablePointer()}),i.zoomManager.addListener("zoom-change",function(e){return i.update(ChartUpdateType.PROCESS_DATA,{forceNodeDataRefresh:!0})}),i.highlightManager.addListener("highlight-change",function(e){return i.changeHighlightDatum(e)}),i}return __extends$2e(t,e),t.prototype.getOptions=function(){var e,t=this.queuedUserOptions;return jsonMerge([null!==(e=t[t.length-1])&&void 0!==e?e:this.userOptions])},Object.defineProperty(t.prototype,"container",{get:function(){return this._container},set:function(e){if(this._container!==e){var t=this.element.parentNode;null!=t&&t.removeChild(this.element),e&&!this.destroyed&&e.appendChild(this.element),this._container=e}},enumerable:!1,configurable:!0}),t.prototype.autoSizeChanged=function(e){var t=this.element.style;if(e){if(t.display="block",t.width="100%",t.height="100%",!this._lastAutoSize)return;this.resize(this._lastAutoSize[0],this._lastAutoSize[1])}else t.display="inline-block",t.width="auto",t.height="auto"},t.prototype.download=function(e,t){this.scene.download(e,t)},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),t.prototype.addModule=function(e){if(null!=this.modules[e.optionsKey])throw new Error("AG Charts - module already initialised: "+e.optionsKey);var t=e.initialiseModule(this.getModuleContext());this.modules[e.optionsKey]=t,this[e.optionsKey]=t.instance},t.prototype.removeModule=function(e){var t,n;null===(n=null===(t=this.modules[e.optionsKey])||void 0===t?void 0:t.instance)||void 0===n||n.destroy(),delete this.modules[e.optionsKey],delete this[e.optionsKey]},t.prototype.isModuleEnabled=function(e){return null!=this.modules[e.optionsKey]},t.prototype.getModuleContext=function(){var e=this;return{scene:e.scene,interactionManager:e.interactionManager,zoomManager:e.zoomManager,cursorManager:e.cursorManager,highlightManager:e.highlightManager,tooltipManager:e.tooltipManager,layoutService:e.layoutService,updateService:e.updateService}},t.prototype.destroy=function(e){var t,n;if(!this._destroyed){var r=null==e?void 0:e.keepTransferableResources,o=void 0;this._performUpdateType=ChartUpdateType.NONE,this._pendingFactoryUpdates.splice(0),this.tooltipManager.destroy(),this.tooltip.destroy(),this.legend.destroy(),SizeMonitor.unobserve(this.element);try{for(var i=__values$h(Object.entries(this.modules)),a=i.next();!a.done;a=i.next()){var s=__read$D(a.value,2),l=s[0];s[1].instance.destroy(),delete this.modules[l],delete this[l]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return this.interactionManager.destroy(),r?(this.scene.strip(),o={container:this.container,scene:this.scene,element:this.element}):(this.scene.destroy(),this.container=void 0),this.series.forEach(function(e){return e.destroy()}),this.series=[],this.axes.forEach(function(e){return e.destroy()}),this.axes=[],this._destroyed=!0,o}},t.prototype.log=function(e){this.debug&&Logger.debug(e)},t.prototype.disablePointer=function(e){void 0===e&&(e=!1),e||this.tooltipManager.removeTooltip(this.id),this.highlightManager.updateHighlight(this.id),this.lastInteractionEvent&&(this.lastInteractionEvent=void 0)},t.prototype.requestFactoryUpdate=function(e){var t=this._pendingFactoryUpdates,n=t.length;0===n?(t.push(e),this._processCallbacks()):t.splice(1,n-1,e)},t.prototype._processCallbacks=function(){return __awaiter$b(this,void 0,void 0,function(){var e,t;return __generator$b(this,function(n){switch(n.label){case 0:e=this._pendingFactoryUpdates,n.label=1;case 1:return e.length>0?this.updatePending?[4,sleep(1)]:[3,3]:[3,7];case 2:return n.sent(),[3,1];case 3:return n.trys.push([3,5,,6]),[4,e[0]()];case 4:return n.sent(),[3,6];case 5:return t=n.sent(),Logger.error("update error",t),[3,6];case 6:return e.shift(),[3,1];case 7:return[2]}})})},Object.defineProperty(t.prototype,"performUpdateType",{get:function(){return this._performUpdateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updatePending",{get:function(){return this._performUpdateType!==ChartUpdateType.NONE||null!=this.lastInteractionEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastPerformUpdateError",{get:function(){return this._lastPerformUpdateError},enumerable:!1,configurable:!0}),t.prototype.awaitUpdateCompletion=function(){return __awaiter$b(this,void 0,void 0,function(){return __generator$b(this,function(e){switch(e.label){case 0:return[4,this.performUpdateTrigger.await()];case 1:return e.sent(),[2]}})})},t.prototype.update=function(e,t){var n,r;void 0===e&&(e=ChartUpdateType.FULL);var o=t||{},i=o.forceNodeDataRefresh,a=void 0!==i&&i,s=o.seriesToUpdate,l=void 0===s?this.series:s;a&&this.series.forEach(function(e){return e.markNodeDataDirty()});try{for(var c=__values$h(l),u=c.next();!u.done;u=c.next()){var d=u.value;this.seriesToUpdate.add(d)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}e<this._performUpdateType&&(this._performUpdateType=e,this.performUpdateTrigger.schedule())},t.prototype.performUpdate=function(e){var t;return __awaiter$b(this,void 0,void 0,function(){var n,r,o,i,a,s,l,c;return __generator$b(this,function(u){switch(u.label){case 0:switch(r=(n=this)._performUpdateType,o=n.extraDebugStats,i=[performance.now()],r){case ChartUpdateType.FULL:case ChartUpdateType.PROCESS_DATA:return[3,1];case ChartUpdateType.PERFORM_LAYOUT:return[3,3];case ChartUpdateType.SERIES_UPDATE:return[3,5];case ChartUpdateType.TOOLTIP_RECALCULATION:return[3,7];case ChartUpdateType.SCENE_RENDER:return[3,8];case ChartUpdateType.NONE:return[3,10]}return[3,11];case 1:return[4,this.processData()];case 2:u.sent(),this.disablePointer(!0),i.push(performance.now()),u.label=3;case 3:return this.autoSize&&!this._lastAutoSize&&this._performUpdateNoRenderCount++<5?(this._performUpdateType=ChartUpdateType.PERFORM_LAYOUT,this.performUpdateTrigger.schedule(),[3,11]):(this._performUpdateNoRenderCount=0,[4,this.performLayout()]);case 4:u.sent(),this.handleOverlays(),i.push(performance.now()),u.label=5;case 5:return a=this.seriesRect,s=__spread$m(this.seriesToUpdate).map(function(e){return e.update({seriesRect:a})}),this.seriesToUpdate.clear(),[4,Promise.all(s)];case 6:u.sent(),i.push(performance.now()),u.label=7;case 7:l=this.tooltipManager.getTooltipMeta(this.id),r<ChartUpdateType.SERIES_UPDATE&&"hover"===(null===(t=null==l?void 0:l.event)||void 0===t?void 0:t.type)&&this.handlePointer(l.event),u.label=8;case 8:return[4,this.scene.render({debugSplitTimes:i,extraDebugStats:o})];case 9:u.sent(),this.extraDebugStats={},u.label=10;case 10:this._performUpdateType=ChartUpdateType.NONE,u.label=11;case 11:return c=performance.now(),this.log({chart:this,durationMs:Math.round(100*(c-i[0]))/100,count:e,performUpdateType:ChartUpdateType[r]}),[2]}})})},Object.defineProperty(t.prototype,"axes",{get:function(){return this._axes},set:function(e){var t=this,n=new Set;this._axes.forEach(function(e){e.detachAxis(t.axisGroup),n.add(e)}),this._axes=e.filter(function(e){return!e.linkedTo}).concat(e.filter(function(e){return e.linkedTo})),this._axes.forEach(function(e){e.attachAxis(t.axisGroup),n.delete(e)}),n.forEach(function(e){return e.destroy()})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){var t=this;this.removeAllSeries(),e.forEach(function(e){return t.addSeries(e)})},enumerable:!1,configurable:!0}),t.prototype.addSeries=function(e,t){var n=this.series,r=this.seriesRoot;if(n.indexOf(e)<0){var o=t?n.indexOf(t):-1;return o>=0?(n.splice(o,0,e),r.insertBefore(e.rootGroup,t.rootGroup)):(n.push(e),r.append(e.rootGroup)),this.initSeries(e),!0}return!1},t.prototype.initSeries=function(e){e.chart=this,e.highlightManager=this.highlightManager,e.data||(e.data=this.data),this.addSeriesListeners(e)},t.prototype.freeSeries=function(e){e.chart=void 0,e.removeEventListener("nodeClick",this.onSeriesNodeClick),e.removeEventListener("nodeDoubleClick",this.onSeriesNodeDoubleClick)},t.prototype.removeAllSeries=function(){var e=this;this.series.forEach(function(t){e.freeSeries(t),e.seriesRoot.removeChild(t.rootGroup)}),this._series=[]},t.prototype.addSeriesListeners=function(e){this.hasEventListener("seriesNodeClick")&&e.addEventListener("nodeClick",this.onSeriesNodeClick),this.hasEventListener("seriesNodeDoubleClick")&&e.addEventListener("nodeDoubleClick",this.onSeriesNodeDoubleClick)},t.prototype.updateAllSeriesListeners=function(){var e=this;this.series.forEach(function(t){t.removeEventListener("nodeClick",e.onSeriesNodeClick),t.removeEventListener("nodeDoubleClick",e.onSeriesNodeDoubleClick),e.addSeriesListeners(t)})},t.prototype.assignSeriesToAxes=function(){var e=this;this.axes.forEach(function(t){t.boundSeries=e.series.filter(function(e){return(t.direction===ChartAxisDirection.X?e.xAxis:e.yAxis)===t})})},t.prototype.assignAxesToSeries=function(e){var t=this;void 0===e&&(e=!1);var n={};this.axes.forEach(function(e){var t=e.direction;(n[t]||(n[t]=[])).push(e)}),this.series.forEach(function(r){r.directions.forEach(function(o){if(!(o===ChartAxisDirection.X?r.xAxis:r.yAxis)||e){var i=n[o];if(i){var a=r.getKeys(o),s=t.findMatchingAxis(i,r.getKeys(o));s?o===ChartAxisDirection.X?r.xAxis=s:r.yAxis=s:Logger.warn("no matching axis for direction ["+o+"] and keys ["+a+"]; check series and axes configuration.")}else Logger.warn("no available axis for direction ["+o+"]; check series and axes configuration.")}})})},t.prototype.findMatchingAxis=function(e,t){var n,r,o,i;try{for(var a=__values$h(e),s=a.next();!s.done;s=a.next()){var l=s.value,c=l.keys;if(!c.length)return l;if(t)try{for(var u=(o=void 0,__values$h(t)),d=u.next();!d.done;d=u.next()){var p=d.value;if(c.indexOf(p)>=0)return l}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},t.prototype.resize=function(e,t){e&&t&&Number.isFinite(e)&&Number.isFinite(t)&&this.scene.resize(e,t)&&(this.disablePointer(),this.update(ChartUpdateType.PERFORM_LAYOUT,{forceNodeDataRefresh:!0}))},t.prototype.processData=function(){return __awaiter$b(this,void 0,void 0,function(){return __generator$b(this,function(e){switch(e.label){case 0:return(this.axes.length>0||this.series.some(function(e){return e instanceof CartesianSeries}))&&(this.assignAxesToSeries(!0),this.assignSeriesToAxes()),[4,Promise.all(this.series.map(function(e){return e.processData()}))];case 1:return e.sent(),[4,this.updateLegend()];case 2:return e.sent(),[2]}})})},t.prototype.placeLabels=function(){var e,t,n=[],r=[];try{for(var o=__values$h(this.series),i=o.next();!i.done;i=o.next()){var a=i.value;if(a.visible){var s=a.getLabelData();s&&isPointLabelDatum(s[0])&&(r.push(s),n.push(a))}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}var l=this.seriesRect,c=l&&r.length>0?placeLabels(r,{x:0,y:0,width:l.width,height:l.height}):[];return new Map(c.map(function(e,t){return[n[t],e]}))},t.prototype.updateLegend=function(){return __awaiter$b(this,void 0,void 0,function(){var e,t;return __generator$b(this,function(n){return e=[],this.series.filter(function(e){return e.showInLegend}).forEach(function(t){e.push.apply(e,__spread$m(t.getLegendData()))}),(t=this.legend.item.label.formatter)&&e.forEach(function(e){return e.label.text=t({get id(){return Logger.warnOnce("LegendLabelFormatterParams.id is deprecated, use seriesId instead"),e.seriesId},itemId:e.itemId,value:e.label.text,seriesId:e.seriesId})}),this.legend.data=e,[2]})})},t.prototype.performLayout=function(){return __awaiter$b(this,void 0,void 0,function(){var e,t,n,r;return __generator$b(this,function(o){return this.scene.root.visible=!0,e=this.scene,t=e.width,n=e.height,r=new BBox(0,0,t,n),r=this.layoutService.dispatchPerformLayout("start-layout",{shrinkRect:r}).shrinkRect,[2,r=this.layoutService.dispatchPerformLayout("before-series",{shrinkRect:r}).shrinkRect]})})},t.prototype.positionPadding=function(e){var t=this.padding;return e.shrink(t.left,"left"),e.shrink(t.top,"top"),e.shrink(t.right,"right"),e.shrink(t.bottom,"bottom"),{shrinkRect:e}},t.prototype.positionCaptions=function(e){var t=this,n=t.title,r=t.subtitle,o=t.footnote,i=e.clone(),a=function(e){var t,n=i.y;e.node.x=i.x+i.width/2,e.node.y=n,e.node.textBaseline="top";var r=e.node.computeBBox(),o=Math.ceil(r.y-n+r.height+(null!==(t=e.spacing)&&void 0!==t?t:0));i.shrink(o,"top")};return n&&(n.node.visible=n.enabled,n.node.visible&&a(n)),r&&(r.node.visible=void 0!==n&&n.enabled&&r.enabled,r.node.visible&&a(r)),o&&(o.node.visible=o.enabled,o.node.visible&&function(e){var t,n=i.y+i.height;e.node.x=i.x+i.width/2,e.node.y=n,e.node.textBaseline="bottom";var r=e.node.computeBBox(),o=Math.ceil(n-r.y+(null!==(t=e.spacing)&&void 0!==t?t:0));i.shrink(o,"bottom")}(o)),{shrinkRect:i}},t.prototype.getSeriesRect=function(){return this.seriesRect},t.prototype.pickSeriesNode=function(e,t,n){var r,o,i,a,s=performance.now(),l=t?[SeriesNodePickMode.EXACT_SHAPE_MATCH]:void 0,c=__spread$m(this.series).reverse(),u=void 0;try{for(var d=__values$h(c),p=d.next();!p.done;p=d.next()){var h=p.value;if(h.visible&&h.rootGroup.visible){var f=null!==(i=h.pickNode(e,l))&&void 0!==i?i:{},g=f.match,m=f.distance;if(g&&null!=m&&((!u||u.distance>m)&&m<=(null!=n?n:1/0)&&(u={series:h,distance:m,datum:g}),0===m))break}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}return this.extraDebugStats.pickSeriesNode=Math.round((null!==(a=this.extraDebugStats.pickSeriesNode)&&void 0!==a?a:0)+(performance.now()-s)),u},t.prototype.onMouseMove=function(e){this.lastInteractionEvent=e,this.pointerScheduler.schedule(),this.extraDebugStats.mouseX=e.offsetX,this.extraDebugStats.mouseY=e.offsetY,this.update(ChartUpdateType.SCENE_RENDER)},t.prototype.onLeave=function(e){this.tooltip.pointerLeftOntoTooltip(e)||this.disablePointer()},t.prototype.handlePointer=function(e){var t=this,n=this.lastPick,r=this.hoverRect,o=e.offsetX,i=e.offsetY,a=function(e){void 0===e&&(e=!1),n&&t.disablePointer(e)};(null==r?void 0:r.containsPoint(o,i))?(this.handlePointerTooltip(e,a),this.handlePointerNode(e)):a()},t.prototype.handlePointerTooltip=function(e,t){var n,r,o,i=this.lastPick,a=this.tooltip.range,s=e.pageX,l=e.pageY,c=e.offsetX,u=e.offsetY;"number"==typeof a&&Number.isFinite(a)&&(o=a);var d=this.pickSeriesNode({x:c,y:u},"exact"===a,o);if(!d)return this.tooltipManager.updateTooltip(this.id),void("tooltip"===this.highlight.range&&t(!0));var p,h="node"===this.highlight.range||!i||i.datum!==d.datum;h?(p=d.series.getTooltipHtml(d.datum),"tooltip"===this.highlight.range&&this.highlightManager.updateHighlight(this.id,d.datum)):i&&(i.event=e.sourceEvent);var f=null!=o,g=this.tooltip.enabled&&d.series.tooltip.enabled,m="exact"===a&&0===d.distance,v=g&&("nearest"===a||f||m)&&(!h||void 0!==p),y={xOffset:d.datum.series.tooltip.position.xOffset,yOffset:d.datum.series.tooltip.position.yOffset},A=this.mergePointerDatum({pageX:s,pageY:l,offsetX:c,offsetY:u,event:e,position:y},d.datum);A.enableInteraction=null!==(r=null===(n=d.series.tooltip.interaction)||void 0===n?void 0:n.enabled)&&void 0!==r&&r,v&&this.tooltipManager.updateTooltip(this.id,A,p)},t.prototype.handlePointerNode=function(e){var t=this;this.checkSeriesNodeRange(e,function(e,n){(e.hasEventListener("nodeClick")||e.hasEventListener("nodeDoubleClick"))&&t.cursorManager.updateCursor("chart","pointer"),"node"===t.highlight.range&&t.highlightManager.updateHighlight(t.id,n)})||(this.cursorManager.updateCursor("chart"),"node"===this.highlight.range&&this.highlightManager.updateHighlight(this.id))},t.prototype.onClick=function(e){this.checkSeriesNodeClick(e)?this.update(ChartUpdateType.SERIES_UPDATE):this.fireEvent({type:"click",event:e.sourceEvent})},t.prototype.onDoubleClick=function(e){this.checkSeriesNodeDoubleClick(e)?this.update(ChartUpdateType.SERIES_UPDATE):this.fireEvent({type:"doubleClick",event:e.sourceEvent})},t.prototype.checkSeriesNodeClick=function(e){return this.checkSeriesNodeRange(e,function(t,n){return t.fireNodeClickEvent(e.sourceEvent,n)})},t.prototype.checkSeriesNodeDoubleClick=function(e){return this.checkSeriesNodeRange(e,function(t,n){return t.fireNodeDoubleClickEvent(e.sourceEvent,n)})},t.prototype.checkSeriesNodeRange=function(e,t){var n,r=this.pickSeriesNode({x:e.offsetX,y:e.offsetY},!1),o=null==r?void 0:r.datum,i=null==o?void 0:o.series.nodeClickRange;if(o&&"nearest"===i)return t(o.series,o),!0;"number"==typeof i&&Number.isFinite(i)&&(n=i);var a=this.pickSeriesNode({x:e.offsetX,y:e.offsetY},"exact"===i,n);if(!a)return!1;var s=null!=n,l="exact"===i&&0===a.distance;return!(!s&&!l||(t(a.series,a.datum),0))},t.prototype.mergePointerDatum=function(e,t){if("node"===t.series.tooltip.position.type&&t.nodeMidPoint){var n=t.nodeMidPoint,r=n.x,o=n.y,i=this.scene.canvas,a=t.series.rootGroup.inverseTransformPoint(r,o),s=i.element.getBoundingClientRect();return __assign$z(__assign$z({},e),{pageX:Math.round(s.left+window.scrollX+a.x),pageY:Math.round(s.top+window.scrollY+a.y),offsetX:Math.round(a.x),offsetY:Math.round(a.y)})}return e},t.prototype.changeHighlightDatum=function(e){var t=new Set,n=e.currentHighlight||{},r=n.series,o=void 0===r?void 0:r,i=n.datum,a=e.previousHighlight||{},s=a.series,l=void 0===s?void 0:s,c=a.datum;l&&t.add(l),o&&t.add(o),(null==l?void 0:l.cursor)&&c&&this.cursorManager.updateCursor(l.id),(null==o?void 0:o.cursor)&&i&&this.cursorManager.updateCursor(o.id,o.cursor),this.lastPick=e.currentHighlight?{datum:e.currentHighlight}:void 0,null==o||null==l?this.update(ChartUpdateType.SERIES_UPDATE):this.update(ChartUpdateType.SERIES_UPDATE,{seriesToUpdate:t})},t.prototype.waitForUpdate=function(e){return void 0===e&&(e=5e3),__awaiter$b(this,void 0,void 0,function(){var t;return __generator$b(this,function(n){switch(n.label){case 0:t=performance.now(),n.label=1;case 1:if(!(this._pendingFactoryUpdates.length>0||this.updatePending))return[3,3];if(performance.now()-t>e)throw new Error("waitForUpdate() timeout reached.");return[4,sleep(5)];case 2:return n.sent(),[3,1];case 3:return[4,this.awaitUpdateCompletion()];case 4:return n.sent(),[2]}})})},t.prototype.handleOverlays=function(){this.handleNoDataOverlay()},t.prototype.handleNoDataOverlay=function(){var e=!this.series.some(function(e){return e.hasData()}),t=this.getSeriesRect();e&&t?this.overlays.noData.show(t):this.overlays.noData.hide()},__decorate$1x([ActionOnSet({newValue:function(e){this.scene.debug.consoleLog=e}})],t.prototype,"debug",void 0),__decorate$1x([ActionOnSet({newValue:function(e){var t;null===(t=this.series)||void 0===t||t.forEach(function(t){return t.data=e})}})],t.prototype,"data",void 0),__decorate$1x([ActionOnSet({newValue:function(e){this.autoSize=!1,this.resize(e,this.height)}})],t.prototype,"width",void 0),__decorate$1x([ActionOnSet({newValue:function(e){this.autoSize=!1,this.resize(this.width,e)}})],t.prototype,"height",void 0),__decorate$1x([ActionOnSet({changeValue:function(e){this.autoSizeChanged(e)}}),Validate(BOOLEAN)],t.prototype,"autoSize",void 0),__decorate$1x([ActionOnSet({newValue:function(e){var t;null===(t=this.scene.root)||void 0===t||t.appendChild(e.node)},oldValue:function(e){var t;null===(t=this.scene.root)||void 0===t||t.removeChild(e.node)}})],t.prototype,"title",void 0),__decorate$1x([ActionOnSet({newValue:function(e){var t;null===(t=this.scene.root)||void 0===t||t.appendChild(e.node)},oldValue:function(e){var t;null===(t=this.scene.root)||void 0===t||t.removeChild(e.node)}})],t.prototype,"subtitle",void 0),__decorate$1x([ActionOnSet({newValue:function(e){var t;null===(t=this.scene.root)||void 0===t||t.appendChild(e.node)},oldValue:function(e){var t;null===(t=this.scene.root)||void 0===t||t.removeChild(e.node)}})],t.prototype,"footnote",void 0),__decorate$1x([Validate(STRING_UNION("standalone","integrated"))],t.prototype,"mode",void 0),t}(Observable),TreeNode=function(){function e(e,t,n){void 0===e&&(e=""),void 0===n&&(n=0),this.x=0,this.y=0,this.subtreeLeft=NaN,this.subtreeRight=NaN,this.screenX=0,this.screenY=0,this.children=[],this.leafCount=0,this.prelim=0,this.mod=0,this.ancestor=this,this.change=0,this.shift=0,this.label=e,this.parent=t,this.depth=t?t.depth+1:0,this.number=n}return e.prototype.getLeftSibling=function(){return this.number>0&&this.parent?this.parent.children[this.number-1]:void 0},e.prototype.getLeftmostSibling=function(){return this.number>0&&this.parent?this.parent.children[0]:void 0},e.prototype.nextLeft=function(){return this.children?this.children[0]:this.thread},e.prototype.nextRight=function(){return this.children?this.children[this.children.length-1]:this.thread},e.prototype.getSiblings=function(){var e=this;return this.parent?this.parent.children.filter(function(t,n){return n!==e.number}):[]},e}();function ticksToTree(e,t){void 0===t&&(t=!0);var n=new TreeNode,r=0;return t&&e.forEach(function(e){return r=Math.max(r,e.labels.length)}),e.forEach(function(e){if(t)for(;e.labels.length<r;)e.labels.unshift("");insertTick(n,e)}),n}function insertTick(e,t){var n=t.labels.slice().reverse(),r=n.length-1;n.forEach(function(t,n){var o=e.children,i=o.find(function(e){return e.label===t}),a=n!==r;if(i&&a)e=i;else{var s=new TreeNode(t,e);s.number=o.length,o.push(s),a&&(e=s)}})}function moveSubtree(e,t,n){var r=n/(t.number-e.number);t.change-=r,t.shift+=n,e.change+=r,t.prelim+=n,t.mod+=n}function ancestor(e,t,n){return t.getSiblings().indexOf(e.ancestor)>=0?e.ancestor:n}function executeShifts(e){var t=e.children;if(t)for(var n=0,r=0,o=t.length-1;o>=0;o--){var i=t[o];i.prelim+=n,i.mod+=n,r+=i.change,n+=i.shift+r}}function apportion(e,t,n){var r=e.getLeftSibling();if(r){for(var o=e,i=e,a=r,s=i.getLeftmostSibling(),l=i.mod,c=o.mod,u=a.mod,d=s.mod;a.nextRight()&&i.nextLeft();){a=a.nextRight(),i=i.nextLeft(),s=s.nextLeft(),(o=o.nextRight()).ancestor=e;var p=a.prelim+u-(i.prelim+l)+n;p>0&&(moveSubtree(ancestor(a,e,t),e,p),l+=p,c+=p),u+=a.mod,l+=i.mod,d+=s.mod,c+=o.mod}a.nextRight()&&!o.nextRight()?(o.thread=a.nextRight(),o.mod+=u-c):(i.nextLeft()&&!s.nextLeft()&&(s.thread=i.nextLeft(),s.mod+=l-d),t=e)}return t}function firstWalk(e,t){var n=e.children;if(n.length){var r=n[0];n.forEach(function(e){firstWalk(e,t),r=apportion(e,r,t)}),executeShifts(e);var o=(n[0].prelim+n[n.length-1].prelim)/2;(i=e.getLeftSibling())?(e.prelim=i.prelim+t,e.mod=e.prelim-o):e.prelim=o}else{var i=e.getLeftSibling();e.prelim=i?i.prelim+t:0}}var Dimensions=function(){function e(){this.top=1/0,this.right=-1/0,this.bottom=-1/0,this.left=1/0}return e.prototype.update=function(e,t){var n=t(e),r=n.x,o=n.y;r>this.right&&(this.right=r),r<this.left&&(this.left=r),o>this.bottom&&(this.bottom=o),o<this.top&&(this.top=o)},e}();function secondWalk(e,t,n){e.x=e.prelim+t,e.y=e.depth,n.update(e),e.children.forEach(function(r){return secondWalk(r,t+e.mod,n)})}function thirdWalk(e){var t=e.children,n=0;t.forEach(function(e){thirdWalk(e),e.children.length?n+=e.leafCount:n++}),e.leafCount=n,t.length?(e.subtreeLeft=t[0].subtreeLeft,e.subtreeRight=t[e.children.length-1].subtreeRight,e.x=(e.subtreeLeft+e.subtreeRight)/2):(e.subtreeLeft=e.x,e.subtreeRight=e.x)}function treeLayout(e){var t=new TreeLayout;return firstWalk(e,1),secondWalk(e,-e.prelim,t),thirdWalk(e),t}var TreeLayout=function(){function e(){this.dimensions=new Dimensions,this.leafCount=0,this.nodes=[],this.leafNodes=[],this.nonLeafNodes=[],this.depth=0}return e.prototype.update=function(e){this.dimensions.update(e,function(e){return{x:e.x,y:e.y}}),e.children.length?this.nonLeafNodes.push(e):(this.leafCount++,this.leafNodes.push(e)),e.depth>this.depth&&(this.depth=e.depth),this.nodes.push(e)},e.prototype.resize=function(e,t,n,r,o){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=!1);var i=this.leafCount-1,a=this.depth,s=this.dimensions,l=1,c=1;if(e>0&&i){var u=(s.right-s.left)/i;l=e/i/u,o&&(l=-l)}if(t>0&&a){var d=(s.bottom-s.top)/a;c=t/a/d}var p=new Dimensions;this.nodes.forEach(function(e){e.screenX=e.x*l,e.screenY=e.y*c,p.update(e,function(e){return{x:e.screenX,y:e.screenY}})});var h=-p.left,f=-p.top;this.nodes.forEach(function(e){e.screenX+=h+n,e.screenY+=f+r})},e}(),__extends$2d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1w=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$C=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$l=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$C(arguments[t]));return e},GroupedCategoryAxisLabel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.grid=!1,t}return __extends$2d(t,e),__decorate$1w([Validate(BOOLEAN)],t.prototype,"grid",void 0),t}(AxisLabel),GroupedCategoryAxis=function(e){function t(t){var n=e.call(this,t,new BandScale$5)||this;n.tickScale=new BandScale$5,n.translation={x:0,y:0},n.line=new AxisLine,n.label=new GroupedCategoryAxisLabel,n.labelColor="rgba(87, 87, 87, 1)",n.includeInvisibleDomains=!0;var r=n,o=r.tickLineGroup,i=r.tickLabelGroup,a=r.gridLineGroup,s=r.tickScale,l=r.scale;return l.paddingOuter=.1,l.paddingInner=2*l.paddingOuter,n.requestedRange=l.range.slice(),n.refreshScale(),s.paddingInner=1,s.paddingOuter=0,n.gridLineSelection=Selection.select(a,Line),n.axisLineSelection=Selection.select(o,Line),n.separatorSelection=Selection.select(o,Line),n.labelSelection=Selection.select(i,Text),n}return __extends$2d(t,e),Object.defineProperty(t.prototype,"range",{get:function(){return this.requestedRange.slice()},set:function(e){this.requestedRange=e.slice(),this.updateRange()},enumerable:!1,configurable:!0}),t.prototype.updateRange=function(){var e=this,t=e.requestedRange,n=e.visibleRange,r=e.scale,o=(t[1]-t[0])/(n[1]-n[0]),i=o*n[0],a=t[0]-i;this.tickScale.range=r.range=[a,a+o],this.resizeTickTree()},t.prototype.resizeTickTree=function(){var e=this.scale,t=e.domain.length?[e.convert(e.domain[0]),e.convert(e.domain[e.domain.length-1])]:e.range,n=this.tickTreeLayout,r=this.lineHeight;n&&n.resize(Math.abs(t[1]-t[0]),n.depth*r,(Math.min(t[0],t[1])||0)+(e.bandwidth||0)/2,-n.depth*r,t[1]-t[0]<0)},Object.defineProperty(t.prototype,"lineHeight",{get:function(){return 1.5*this.label.fontSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gridLength",{get:function(){return this._gridLength},set:function(e){(this._gridLength&&!e||!this._gridLength&&e)&&(this.gridLineSelection.clear(),this.labelSelection.clear()),this._gridLength=e},enumerable:!1,configurable:!0}),t.prototype.calculateDomain=function(){var e,t=this.direction,n=this.boundSeries,r=[],o=void 0;n.filter(function(e){return e.visible}).forEach(function(e){if(t===ChartAxisDirection.X)if(void 0===o){var n=e.getDomain(t);r.push(n),o="number"==typeof n[0]}else o&&r.push(e.getDomain(t));else r.push(e.getDomain(t))});var i=(e=new Array).concat.apply(e,__spread$l(r)),a=extent$4(i)||i;this.dataDomain=this.normaliseDataDomain(a)},t.prototype.normaliseDataDomain=function(e){var t=e.filter(function(e,t,n){return n.indexOf(e)===t}),n=ticksToTree(t);this.tickTreeLayout=treeLayout(n);var r=t.slice();return r.push(""),this.tickScale.domain=r,this.resizeTickTree(),t},t.prototype.update=function(e){var t=this;this.calculateDomain();var n=this,r=n.scale,o=n.label,i=n.label.parallel,a=n.tickScale,s=n.requestedRange;r.domain=this.dataDomain;var l=r.range[0],c=r.range[1],u=Math.abs(c-l)/r.domain.length||0,d=toRadians$1(this.rotation),p=Math.abs(Math.cos(d))<1e-8;this.updatePosition();var h=this.title;h&&(h.node.visible=!1);var f=this.lineHeight,g=this.tickTreeLayout,m=r.ticks(),v=g?g.nodes:[],y=!!g&&g.depth>1,A=a.ticks(),w=o.mirrored?1:-1,b=calculateLabelRotation({rotation:o.rotation,parallel:i,regularFlipRotation:normalizeAngle360(d-Math.PI/2),parallelFlipRotation:normalizeAngle360(d)}),_=b.autoRotation,C=b.labelRotation,E=b.parallelFlipFlag,S=this.gridLineSelection.update(this.gridLength?A:[]),O=this.labelSelection.update(v),x=o.formatter,D=new Map,P=0;O.each(function(e,t,n){e.fontStyle=o.fontStyle,e.fontWeight=o.fontWeight,e.fontSize=o.fontSize,e.fontFamily=o.fontFamily,e.fill=o.color,e.textBaseline=-1===E?"bottom":"hanging",e.textAlign="center",e.translationX=t.screenY-.25*o.fontSize,e.translationY=t.screenX,0===n?h&&h.enabled&&m.length>0?(e.visible=!0,e.text=h.text,e.fontSize=h.fontSize,e.fontStyle=h.fontStyle,e.fontWeight=h.fontWeight,e.fontFamily=h.fontFamily,e.textBaseline="hanging"):e.visible=!1:(e.text=x?x({value:String(t.label),index:n}):String(t.label),e.visible=t.screenX>=s[0]&&t.screenX<=s[1]);var r=e.computeBBox();D.set(e.id,r),r.width>P&&(P=r.width)});var M=w*o.padding,T=this.label.grid,R=[];O.each(function(e,n,r){if(e.x=M,e.rotationCenterX=M,n.children.length){e.translationX-=P-f+t.label.padding;var o=n.leafCount*u;(i=D.get(e.id))&&i.width>o?e.visible=!1:e.rotation=p?_:-Math.PI/2}else{var i;e.rotation=C,e.textAlign="end",e.textBaseline="middle",(i=D.get(e.id))&&i.height>u&&(e.visible=!1)}if(n.parent&&y){var a=n.children.length?n.screenX-n.leafCount*u/2:n.screenX-u/2;if(n.children.length){var s=-P-2*t.label.padding+n.screenY;R.push({y:a,x1:s+f,x2:s,toString:function(){return String(r)}})}else(n.number!==n.children.length-1||T)&&R.push({y:a,x1:0,x2:-P-2*t.label.padding,toString:function(){return String(r)}})}});var I=0;R.forEach(function(e){return I=Math.min(I,e.x2)}),R.push({y:Math.max(l,c),x1:0,x2:I,toString:function(){return String(R.length)}}),this.separatorSelection.update(R).each(function(e,n){e.x1=n.x1,e.x2=n.x2,e.y1=n.y,e.y2=n.y,e.visible=n.y>=s[0]-1e-7&&n.y<=s[1]+1e-7,e.stroke=t.tick.color,e.fill=void 0,e.strokeWidth=1}),this.gridLineSelection=S,this.labelSelection=O;for(var F=g?g.depth+1:1,k=[],L=0;L<F;L++)k.push(L);if(this.axisLineSelection.update(k).each(function(e,n,r){var o=r>0?-P-2*t.label.padding-(r-1)*f:0;e.x1=o,e.x2=o,e.y1=s[0],e.y2=s[1],e.strokeWidth=t.line.width,e.stroke=t.line.color,e.visible=m.length>0&&(0===r||T&&y)}),this.gridLength){var B=this.gridStyle,N=B.length;S.each(function(e,n,r){var o=Math.round(a.convert(n));e.x1=0,e.x2=-w*t.gridLength,e.y1=o,e.y2=o,e.visible=o>=s[0]&&o<=s[1];var i=B[r%N];e.stroke=i.stroke,e.strokeWidth=t.tick.width,e.lineDash=i.lineDash,e.fill=void 0})}return e},t.className="GroupedCategoryAxis",t.type="groupedCategory",__decorate$1w([Validate(OPT_COLOR_STRING)],t.prototype,"labelColor",void 0),t}(ChartAxis),__extends$2c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$y=function(){return __assign$y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$y.apply(this,arguments)},__awaiter$a=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$a=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__values$g=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$B=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},directions=["top","right","bottom","left"],CartesianChart=function(e){function t(t,n,r){void 0===t&&(t=window.document);var o=e.call(this,t,n,r)||this;o.paired=!0,o._lastAxisWidths={top:0,bottom:0,left:0,right:0},o._lastVisibility={crossLines:!0,series:!0};var i=o.scene.root;return o.legend.attachLegend(i),o}return __extends$2c(t,e),t.prototype.performLayout=function(){return __awaiter$a(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l,c,u;return __generator$a(this,function(d){switch(d.label){case 0:return[4,e.prototype.performLayout.call(this)];case 1:return t=d.sent(),n=this.updateAxes(t),r=n.seriesRect,o=n.visibility,i=n.clipSeries,this.seriesRoot.visible=o.series,this.seriesRect=r,this.series.forEach(function(e){e.rootGroup.translationX=Math.floor(r.x),e.rootGroup.translationY=Math.floor(r.y)}),s=(a=this).seriesRoot,l=a.seriesAreaPadding,c=r.clone().grow(l),u=c.clone().grow(20),this.hoverRect=u,this.layoutService.dispatchLayoutComplete({type:"layout-complete",chart:{width:this.scene.width,height:this.scene.height},series:{rect:r,paddedRect:c,hoverRect:u,visible:o.series},axes:this.axes.map(function(e){return __assign$y({id:e.id},e.getLayoutState())})}),i?s.setClipRectInGroupCoordinateSpace(c):s.setClipRectInGroupCoordinateSpace(),[2,t]}})})},t.prototype.updateAxes=function(e){var t,n,r,o=__assign$y({},this._lastAxisWidths),i=__assign$y({},this._lastVisibility),a=new Set(this._axes.map(function(e){return e.position}));try{for(var s=__values$g(Object.keys(o)),l=s.next();!l.done;l=s.next()){var c=l.value;a.has(c)||delete o[c]}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var u=function(e,t){return!Object.keys(e).some(function(e){return null==o[e]})&&i.crossLines===t.crossLines&&i.series===t.series&&Object.entries(o).every(function(t){var n=__read$B(t,2),r=n[0],o=n[1],i=e[r];return null==o&&null==i||o===i})},d=function(e){return Object.entries(e).reduce(function(e,t){var n=__read$B(t,2),r=n[0],o=n[1];return o&&Math.abs(o)===1/0&&(o=0),e[r]=null!=o?Math.ceil(o):o,e},{})},p={},h={},f=!1,g=null===(r=this.seriesRect)||void 0===r?void 0:r.clone(),m=0;do{Object.assign(o,p),Object.assign(i,h);var v=this.updateAxesPass(o,e.clone(),g);if(p=d(v.axisWidths),h=v.visibility,f=v.clipSeries,g=v.seriesRect,m++>10){Logger.warn("unable to find stable axis layout.");break}}while(!u(p,h));return this.axes.forEach(function(t){if(t.setCrossLinesVisible(i.crossLines),g)switch(t.clipGrid(g.x,g.y,g.width+5,g.height+5),t.position){case"left":case"right":t.clipTickLines(e.x,g.y,e.width+5,g.height+5);break;case"top":case"bottom":t.clipTickLines(g.x,e.y,g.width+5,e.height+5)}}),this._lastAxisWidths=o,this._lastVisibility=i,{seriesRect:g,visibility:i,clipSeries:f}},t.prototype.updateAxesPass=function(e,t,n){var r=this,o=this.axes,i={},a={},s={series:!0,crossLines:!0},l=!1,c={},u=this.applySeriesPadding(t),d=n?this.buildCrossLinePadding(n,e):{},p=this.buildAxisBound(u,e,d,s),h=this.buildSeriesRect(p,e);return o.forEach(function(t){var n,o,s=t.position,u=r.calculateAxisDimensions({axis:t,seriesRect:h,axisWidths:e,newAxisWidths:a,primaryTickCounts:c,clipSeries:l,addInterAxisPadding:(null!==(n=i[s])&&void 0!==n?n:0)>0}),d=u.clipSeries,f=u.axisThickness,g=u.axisOffset;i[s]=(null!==(o=i[s])&&void 0!==o?o:0)+1,l=l||d,r.positionAxis({axis:t,axisBound:p,axisOffset:g,axisThickness:f,axisWidths:e,primaryTickCounts:c,seriesRect:h})}),{clipSeries:l,seriesRect:h,axisWidths:a,visibility:s}},t.prototype.buildCrossLinePadding=function(e,t){var n,r,o,i={};this.axes.forEach(function(t){t.crossLines&&t.crossLines.forEach(function(t){t.calculatePadding(i,e)})});try{for(var a=__values$g(Object.entries(i)),s=a.next();!s.done;s=a.next()){var l=__read$B(s.value,2),c=l[0],u=l[1],d=void 0===u?0:u;i[c]=Math.max(d-(null!==(o=t[c])&&void 0!==o?o:0),0)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},t.prototype.applySeriesPadding=function(e){var t=this,n=e.clone(),r=this.axes.slice().reverse();return directions.forEach(function(e){var o=t.seriesAreaPadding[e],i=r.find(function(t){return t.position===e});i?i.seriesAreaPadding=o:n.shrink(o,e)}),n},t.prototype.buildAxisBound=function(e,t,n,r){var o,i,a,s,l=e.clone(),c=n.top,u=void 0===c?0:c,d=n.right,p=void 0===d?0:d,h=n.bottom,f=void 0===h?0:h,g=n.left,m=void 0===g?0:g,v=m+p,y=u+f,A=(null!==(o=t.left)&&void 0!==o?o:0)+(null!==(i=t.right)&&void 0!==i?i:0)+v,w=(null!==(a=t.top)&&void 0!==a?a:0)+(null!==(s=t.bottom)&&void 0!==s?s:0)+y;return l.width<=A||l.height<=w?(r.crossLines=!1,r.series=!1,l):(l.x+=m,l.y+=u,l.width-=v,l.height-=y,l)},t.prototype.buildSeriesRect=function(e,t){var n=e.clone(),r=t.top,o=t.bottom,i=t.left,a=t.right;return n.x+=null!=i?i:0,n.y+=null!=r?r:0,n.width-=(null!=i?i:0)+(null!=a?a:0),n.height-=(null!=r?r:0)+(null!=o?o:0),n.width=Math.max(0,n.width),n.height=Math.max(0,n.height),n},t.prototype.clampToOutsideSeriesRect=function(e,t,n,r){var o=e.x,i=e.y,a=[o,i,o+e.width,i+e.height];return(1===r?Math.min:Math.max)(t,a[("x"===n?0:1)+(1===r?0:2)])},t.prototype.calculateAxisDimensions=function(e){var t,n,r,o,i,a,s=e.axis,l=e.seriesRect,c=e.axisWidths,u=e.newAxisWidths,d=e.primaryTickCounts,p=e.addInterAxisPadding,h=e.clipSeries,f=s.position,g=s.direction;s.label.mirrored=["top","right"].includes(f);var m=null!==(t=u[f])&&void 0!==t?t:0;switch(f){case"top":case"bottom":s.range=[0,l.width],s.gridLength=l.height;break;case"right":case"left":s.range=function(e){return e instanceof CategoryAxis||e instanceof GroupedCategoryAxis?[0,l.height]:[l.height,0]}(s),s.gridLength=l.width}var v=null===(n=this.zoomManager.getZoom())||void 0===n?void 0:n[s.direction],y=null!=v?v:{},A=y.min,w=void 0===A?0:A,b=y.max,_=void 0===b?1:b;s.visibleRange=[w,_],!h&&(s.visibleRange[0]>0||s.visibleRange[1]<1)&&(h=!0);var C=s.nice?d[g]:void 0;C=s.update(C),d[g]=null!==(r=d[g])&&void 0!==r?r:C;var E=0;if(s.thickness)E=s.thickness;else{var S=s.computeBBox();E=g===ChartAxisDirection.X?S.height:S.width}return p&&(E+=15),E=Math.ceil(E),u[f]=(null!==(o=u[f])&&void 0!==o?o:0)+E,s.gridPadding=(null!==(i=c[f])&&void 0!==i?i:0)-(null!==(a=u[f])&&void 0!==a?a:0),{clipSeries:h,axisThickness:E,axisOffset:m}},t.prototype.positionAxis=function(e){var t,n,r,o,i=e.axis,a=e.axisBound,s=e.axisWidths,l=e.seriesRect,c=e.axisOffset,u=e.axisThickness;switch(i.position){case"top":i.translation.x=a.x+(null!==(t=s.left)&&void 0!==t?t:0),i.translation.y=this.clampToOutsideSeriesRect(l,a.y+1+c+u,"y",1);break;case"bottom":i.translation.x=a.x+(null!==(n=s.left)&&void 0!==n?n:0),i.translation.y=this.clampToOutsideSeriesRect(l,a.y+a.height+1-u-c,"y",-1);break;case"left":i.translation.y=a.y+(null!==(r=s.top)&&void 0!==r?r:0),i.translation.x=this.clampToOutsideSeriesRect(l,a.x+c+u,"x",1);break;case"right":i.translation.y=a.y+(null!==(o=s.top)&&void 0!==o?o:0),i.translation.x=this.clampToOutsideSeriesRect(l,a.x+a.width-u-c,"x",-1)}i.updatePosition()},t.className="CartesianChart",t.type="cartesian",t}(Chart),__extends$2b=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),PolarSeries=function(e){function t(t){var n,r=t.useLabelLayer,o=void 0!==r&&r,i=e.call(this,{useLabelLayer:o,pickModes:[SeriesNodePickMode.EXACT_SHAPE_MATCH],directionKeys:(n={},n[ChartAxisDirection.X]=["angleKey"],n[ChartAxisDirection.Y]=["radiusKey"],n)})||this;return i.centerX=0,i.centerY=0,i.radius=0,i}return __extends$2b(t,e),t.prototype.getLabelData=function(){return[]},t.prototype.computeLabelsBBox=function(e){return null},t}(Series),__extends$2a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter$9=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$9=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},PolarChart=function(e){function t(t,n,r){void 0===t&&(t=window.document);var o=e.call(this,t,n,r)||this;o.padding=new Padding$1(40);var i=o.scene.root;return o.legend.attachLegend(i),o}return __extends$2a(t,e),t.prototype.performLayout=function(){return __awaiter$9(this,void 0,void 0,function(){var t,n,r;return __generator$9(this,function(o){switch(o.label){case 0:return[4,e.prototype.performLayout.call(this)];case 1:return t=o.sent(),n=t.clone(),this.computeSeriesRect(t),this.computeCircle(),r=t.clone().grow(20),this.hoverRect=r,this.layoutService.dispatchLayoutComplete({type:"layout-complete",chart:{width:this.scene.width,height:this.scene.height},series:{rect:n,paddedRect:t,hoverRect:r,visible:!0},axes:[]}),[2,t]}})})},t.prototype.computeSeriesRect=function(e){var t=this.seriesAreaPadding;e.shrink(t.left,"left"),e.shrink(t.top,"top"),e.shrink(t.right,"right"),e.shrink(t.bottom,"bottom"),this.seriesRect=e},t.prototype.computeCircle=function(){var e=this,t=this.seriesRect,n=this.series.filter(function(e){return e instanceof PolarSeries}),r=function(e,t,r){n.forEach(function(n){n.centerX=e,n.centerY=t,n.radius=r})},o=t.x+t.width/2,i=t.y+t.height/2,a=Math.max(0,Math.min(t.width,t.height)/2),s=a;r(o,i,s);var l=function(t){var l=(void 0===t?{}:t).hideWhenNecessary,c=void 0!==l&&l,u=n.map(function(e){return e.computeLabelsBBox({hideWhenNecessary:c})}).filter(function(e){return null!=e});if(0!==u.length){var d=BBox.merge(u),p=e.refineCircle(d,s);r(p.centerX,p.centerY,p.radius),p.radius!==s&&(s=p.radius)}else r(o,i,a)};l(),l(),l(),l({hideWhenNecessary:!0}),l({hideWhenNecessary:!0})},t.prototype.refineCircle=function(e,t){var n=this.seriesRect,r=-t,o=-t,i=t,a=t,s=Math.max(0,r-e.x),l=Math.max(0,o-e.y),c=Math.max(0,e.x+e.width-i),u=Math.max(0,e.y+e.height-a),d=n.width-s-c,p=n.height-l-u,h=Math.min(d,p)/2,f=.5*n.width/2,g=.5*n.height/2,m=Math.min(f,g);if(h<m){var v=s+c;if(2*(h=m)+(l+u)>n.height){var y=n.height-2*h;2*Math.min(l,u)>y?(l=y/2,u=y/2):l>u?l=y-u:u=y-l}if(2*h+v>n.width){var A=n.width-2*h;2*Math.min(s,c)>A?(s=A/2,c=A/2):s>c?s=A-c:c=A-s}}var w=s+2*h+c,b=l+2*h+u;return{centerX:n.x+(n.width-w)/2+s+h,centerY:n.y+(n.height-b)/2+l+h,radius:h}},t.className="PolarChart",t.type="polar",t}(Chart),__extends$29=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter$8=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$8=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},HierarchyChart=function(e){function t(t,n,r){void 0===t&&(t=window.document);var o=e.call(this,t,n,r)||this;o._data={};var i=o.scene.root;return o.legend.attachLegend(i),o}return __extends$29(t,e),t.prototype.performLayout=function(){return __awaiter$8(this,void 0,void 0,function(){var t,n,r,o;return __generator$8(this,function(i){switch(i.label){case 0:return[4,e.prototype.performLayout.call(this)];case 1:return t=i.sent(),n=this.seriesAreaPadding,r=t.clone(),t.shrink(n.left,"left"),t.shrink(n.top,"top"),t.shrink(n.right,"right"),t.shrink(n.bottom,"bottom"),this.seriesRect=t,o=t.clone().grow(20),this.hoverRect=o,this.series.forEach(function(e){e.rootGroup.translationX=Math.floor(t.x),e.rootGroup.translationY=Math.floor(t.y),e.update({seriesRect:t})}),this.seriesRoot.setClipRectInGroupCoordinateSpace(new BBox(t.x,t.y,t.width,t.height)),this.layoutService.dispatchLayoutComplete({type:"layout-complete",chart:{width:this.scene.width,height:this.scene.height},series:{rect:r,paddedRect:t,hoverRect:o,visible:!0},axes:[]}),[2,t]}})})},t.className="HierarchyChart",t.type="hierarchy",t}(Chart),__read$A=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},interpolatePattern=/(#\{(.*?)\})/g;function interpolate(e,t,n){return e.replace(interpolatePattern,function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=e[2],i=__read$A(o.split(":"),2),a=i[0],s=i[1],l=t[a];if("number"==typeof l){var c;if(c=s&&n&&n[s]){var u=c,d=u.locales,p=u.options;return l.toLocaleString(d,p)}return String(l)}return l instanceof Date?"string"==typeof(c=s&&n&&n[s])?buildFormatter(c)(l):l.toDateString():"string"==typeof l||l&&l.toString?String(l):""})}var element=null;function sanitizeHtml(e){return element=element||document.createElement("div"),e?(element.textContent=e,element.innerHTML):""}function calculateNiceSecondaryAxis(e,t){var n=Math.floor(e[0]),r=e[1],o=getTickStep(n=calculateNiceStart(n,r,t),r,t);return[[n,r=n+(t-1)*o],getTicks(n,o,t)]}function calculateNiceStart(e,t,n){var r=Math.abs(t-e)/(n-1),o=Math.floor(Math.log10(r)),i=Math.pow(10,o);return Math.floor(e/i)*i}function getTicks(e,t,n){for(var r=Math.floor(Math.log10(t)),o=t>0&&t<1?Math.abs(r):0,i=Math.pow(10,o),a=new NumericTicks(o),s=0;s<n;s++){var l=e+t*s;a[s]=Math.round(l*i)/i}return a}function getTickStep(e,t,n){return calculateNextNiceStep((t-e)/(n-1))}function calculateNextNiceStep(e){var t=Math.floor(Math.log10(e)),n=Math.pow(10,t),r=e/n*10;return r>0&&r<=1?n/10:r>1&&r<=2?2*n/10:r>1&&r<=5?5*n/10:r>5&&r<=10?10*n/10:r>10&&r<=20?20*n/10:r>20&&r<=40?40*n/10:r>40&&r<=50?50*n/10:r>50&&r<=100?100*n/10:r}var __extends$28=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1v=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$z=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},NumberAxis=function(e){function t(t,n){void 0===n&&(n=new LinearScale$1);var r=e.call(this,t,n)||this;return r.min=NaN,r.max=NaN,n.strictClampByDefault=!0,r}return __extends$28(t,e),t.prototype.normaliseDataDomain=function(e){var t=this.min,n=this.max;return e.length>2&&(e=extent$4(e)||[NaN,NaN]),isNaN(t)||(e=[t,e[1]]),isNaN(n)||(e=[e[0],n]),e[0]>e[1]&&(e=[]),e},t.prototype.formatDatum=function(e){return"number"==typeof e?e.toFixed(2):(Logger.warnOnce("data contains Date objects which are being plotted against a number axis, please only use a number axis for numbers."),String(e))},t.prototype.updateSecondaryAxisTicks=function(e){if(null==this.dataDomain)throw new Error("AG Charts - dataDomain not calculated, cannot perform tick calculation.");var t=__read$z(calculateNiceSecondaryAxis(this.dataDomain,null!=e?e:0),2),n=t[0],r=t[1];return this.scale.nice=!1,this.scale.domain=n,this.scale.update(),r},t.className="NumberAxis",t.type="number",__decorate$1v([Validate(AND(NUMBER_OR_NAN(),LESS_THAN("max"))),Default(NaN)],t.prototype,"min",void 0),__decorate$1v([Validate(AND(NUMBER_OR_NAN(),GREATER_THAN("min"))),Default(NaN)],t.prototype,"max",void 0),t}(ChartAxis),__extends$27=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1u=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};function NON_ZERO_NUMBER(){return predicateWithMessage(function(e){return"number"==typeof e&&0!==e},"expecting a non-zero Number")}var LogAxis=function(e){function t(t){var n=e.call(this,t,new LogScale)||this;return n.min=NaN,n.max=NaN,n.scale.strictClampByDefault=!0,n}return __extends$27(t,e),t.prototype.normaliseDataDomain=function(e){var t=this.min,n=this.max;e.length>2&&(e=extent$4(e)||[NaN,NaN]),isNaN(t)||(e=[t,e[1]]),isNaN(n)||(e=[e[0],n]);var r=e[0]>e[1],o=e[0]<0&&e[1]>0,i=0===e[0]&&0===e[1];return(r||o||i)&&(e=[],o?Logger.warn("the data domain crosses zero, the chart data cannot be rendered. See log axis documentation for more information."):i&&Logger.warn("the data domain has 0 extent, no data is rendered.")),0===e[0]&&(e[0]=1),0===e[1]&&(e[1]=-1),e},Object.defineProperty(t.prototype,"base",{get:function(){return this.scale.base},set:function(e){this.scale.base=e},enumerable:!1,configurable:!0}),t.className="LogAxis",t.type="log",__decorate$1u([Validate(AND(NUMBER_OR_NAN(),LESS_THAN("max"),NON_ZERO_NUMBER())),Default(NaN)],t.prototype,"min",void 0),__decorate$1u([Validate(AND(NUMBER_OR_NAN(),GREATER_THAN("min"),NON_ZERO_NUMBER())),Default(NaN)],t.prototype,"max",void 0),t}(NumberAxis),__assign$x=function(){return __assign$x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$x.apply(this,arguments)},__values$f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$y=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$k=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$y(arguments[t]));return e};function extendDomain(e,t){var n,r;void 0===t&&(t=[1/0,-1/0]);try{for(var o=__values$f(e),i=o.next();!i.done;i=o.next()){var a=i.value;"number"==typeof a&&(a<t[0]&&(t[0]=a),a>t[1]&&(t[1]=a))}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t}function sumValues(e,t){var n,r;void 0===t&&(t=[0,0]);try{for(var o=__values$f(e),i=o.next();!i.done;i=o.next()){var a=i.value;"number"==typeof a&&(a<0&&(t[0]+=a),a>0&&(t[1]+=a))}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t}function toKeyString(e){return e.map(function(e){return null==e||"number"==typeof e||"string"==typeof e||"boolean"==typeof e?e:"object"==typeof e?JSON.stringify(e):e}).join("-")}var SMALLEST_KEY_INTERVAL={type:"reducer",property:"smallestKeyInterval",initialValue:1/0,reducer:function(){var e=NaN;return function(t,n){var r=n.keys[0],o=Math.abs(r-e);return e=r,!isNaN(o)&&o>0&&o<t?o:t}}},SUM_VALUE_EXTENT={type:"processor",property:"sumValueExtent",calculate:function(e){var t,n,r,o,i,a,s=__spread$k(null!==(o=null===(r=e.domain.sumValues)||void 0===r?void 0:r[0])&&void 0!==o?o:[0,0]);try{for(var l=__values$f(null!==(a=null===(i=e.domain.sumValues)||void 0===i?void 0:i.slice(1))&&void 0!==a?a:[]),c=l.next();!c.done;c=l.next()){var u=__read$y(c.value,2),d=u[0],p=u[1];d<s[0]&&(s[0]=d),p>s[1]&&(s[1]=p)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s}},INVALID_VALUE=Symbol("invalid"),DataModel=function(){function e(e){var t,n,r,o,i,a=this,s=e.props,l=!0;try{for(var c=__values$f(s),u=c.next();!u.done;u=c.next()){var d=u.value;if("key"===d.type&&!l)throw new Error("AG Charts - internal config error: keys must come before values.");"value"===d.type&&l&&(l=!1)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}this.opts=__assign$x({dataVisible:!0},e),this.keys=s.filter(function(e){return"key"===e.type}).map(function(e,t){return __assign$x(__assign$x({},e),{index:t,missing:!1})}),this.values=s.filter(function(e){return"value"===e.type}).map(function(e,t){return __assign$x(__assign$x({},e),{index:t,missing:!1})}),this.sums=s.filter(function(e){return"sum"===e.type}),this.reducers=s.filter(function(e){return"reducer"===e.type}),this.processors=s.filter(function(e){return"processor"===e.type});try{for(var p=__values$f(null!==(i=this.sums)&&void 0!==i?i:[]),h=p.next();!h.done;h=p.next()){var f=h.value.properties;if(0!==f.length&&!f.some(function(e){return a.values.some(function(t){return t.property===e})}))throw new Error("AG Charts - internal config error: sum properties must match defined properties ("+f+").")}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}return e.prototype.resolveProcessedDataIndex=function(e){var t=this.resolveProcessedDataDef(e);if("key"===(null==t?void 0:t.type)||"value"===(null==t?void 0:t.type))return{type:t.type,index:t.index}},e.prototype.resolveProcessedDataDef=function(e){var t=this.keys,n=this.values,r=__spread$k(t,n).find(function(t){return t.property===e});if(r)return r},e.prototype.getDomain=function(e,t){var n=this.resolveProcessedDataIndex(e);return n?t.domain["key"===n.type?"keys":"values"][n.index]:[]},e.prototype.processData=function(e){var t,n,r,o,i=this,a=i.opts,s=a.groupByKeys,l=a.normaliseTo,c=i.sums,u=i.reducers,d=i.processors,p=performance.now();try{for(var h=__values$f(__spread$k(this.keys,this.values)),f=h.next();!f.done;f=h.next())(y=f.value).missing=!1}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}if(!s||0!==this.keys.length){var g=this.extractData(e);s&&(g=this.groupData(g)),c.length>0&&this.sumData(g),"number"==typeof l&&this.normaliseData(g),u.length>0&&this.reduceData(g),d.length>0&&this.postProcessData(g);try{for(var m=__values$f(__spread$k(this.keys,this.values)),v=m.next();!v.done;v=m.next()){var y;(y=v.value).missing&&Logger.warnOnce("the key '"+y.property+"' was not found in at least one data element.")}}catch(e){r={error:e}}finally{try{v&&!v.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}var A=performance.now();return g.time=A-p,g}},e.prototype.extractData=function(e){var t,n,r,o,i,a,s=this,l=s.keys,c=s.values,u=s.opts.dataVisible,d=this.initDataDomainProcessor(),p=d.dataDomain,h=d.processValue,f=new Array(u?e.length:0),g=0;try{e:for(var m=__values$f(e),v=m.next();!v.done;v=m.next()){var y=v.value,A=u?new Array(l.length):void 0,w=0;try{for(var b=(r=void 0,__values$f(l)),_=b.next();!_.done;_=b.next()){var C=h(_.value,y);if(C===INVALID_VALUE)continue e;A&&(A[w++]=C)}}catch(e){r={error:e}}finally{try{_&&!_.done&&(o=b.return)&&o.call(b)}finally{if(r)throw r.error}}var E=u?new Array(c.length):void 0,S=0;try{for(var O=(i=void 0,__values$f(c)),x=O.next();!x.done;x=O.next()){var D=h(x.value,y);if(D===INVALID_VALUE)continue e;E&&(E[S++]=D)}}catch(e){i={error:e}}finally{try{x&&!x.done&&(a=O.return)&&a.call(O)}finally{if(i)throw i.error}}u&&(f[g++]={datum:y,keys:A,values:E})}}catch(e){t={error:e}}finally{try{v&&!v.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}f.length=g;var P=function(e){var t=p.get(e.property).domain;return Array.isArray(t)&&t[0]>t[1]?[]:__spread$k(t)};return{type:"ungrouped",data:f,domain:{keys:l.map(function(e){return P(e)}),values:c.map(function(e){return P(e)})},indices:{keys:l.reduce(function(e,t){var n=t.property,r=t.index;return e[n]=r,e},{}),values:c.reduce(function(e,t){var n=t.property,r=t.index;return e[n]=r,e},{})},defs:{keys:l,values:c},time:0}},e.prototype.groupData=function(e){var t,n,r,o,i=new Map;try{for(var a=__values$f(e.data),s=a.next();!s.done;s=a.next()){var l=s.value,c=l.keys,u=l.values,d=l.datum,p=toKeyString(c);if(i.has(p)){var h=i.get(p);h.values.push(u),h.datum.push(d)}else i.set(p,{keys:c,values:[u],datum:[d]})}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}var f=new Array(i.size),g=0;try{for(var m=__values$f(i.entries()),v=m.next();!v.done;v=m.next()){var y=__read$y(v.value,2)[1];c=y.keys,u=y.values,d=y.datum,f[g++]={keys:c,values:u,datum:d}}}catch(e){r={error:e}}finally{try{v&&!v.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}return __assign$x(__assign$x({},e),{type:"grouped",data:f})},e.prototype.sumData=function(e){var t,n,r,o,i,a,s,l=this.values,c=this.sums;if(c){var u=c.map(function(){return[1/0,-1/0]}),d=c.map(function(e){return e.properties.map(function(e){return l.findIndex(function(t){return t.property===e})})});try{for(var p=__values$f(e.data),h=p.next();!h.done;h=p.next()){var f=h.value,g=f.values;null!==(s=f.sumValues)&&void 0!==s||(f.sumValues=new Array(d.length)),"ungrouped"===e.type&&(g=[g]);var m=0;try{for(var v=(r=void 0,__values$f(d)),y=v.next();!y.done;y=v.next()){var A=y.value,w=extendDomain([]),b=function(e){var t=sumValues(A.map(function(t){return e[t]}));t&&extendDomain(t,w)};try{for(var _=(i=void 0,__values$f(g)),C=_.next();!C.done;C=_.next())b(C.value)}catch(e){i={error:e}}finally{try{C&&!C.done&&(a=_.return)&&a.call(_)}finally{if(i)throw i.error}}extendDomain(w,u[m]),f.sumValues[m++]=w}}catch(e){r={error:e}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}e.domain.sumValues=u}},e.prototype.normaliseData=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m=this,v=m.sums,y=m.values,A=m.opts.normaliseTo;if(null!=A)for(var w=e.domain.sumValues,b=v.map(function(e){return e.properties.map(function(e){return y.findIndex(function(t){return t.property===e})})}),_=function(e,t){var n=e*A/t;return n>=0?Math.min(A,n):Math.max(-A,n)},C=0;C<v.length;C++){var E=null==w?void 0:w[C];if(null!=E){var S=-1/0;try{for(var O=(t=void 0,__values$f(E)),x=O.next();!x.done;x=O.next()){var D=x.value;S<(U=Math.abs(D))&&(S=U)}}catch(e){t={error:e}}finally{try{x&&!x.done&&(n=O.return)&&n.call(O)}finally{if(t)throw t.error}}var P=0;try{for(var M=(r=void 0,__values$f(E)),T=M.next();!T.done;T=M.next())T.value,E[P]=_(E[P],S),P++}catch(e){r={error:e}}finally{try{T&&!T.done&&(o=M.return)&&o.call(M)}finally{if(r)throw r.error}}try{for(var R=(i=void 0,__values$f(e.data)),I=R.next();!I.done;I=R.next()){var F=I.value,k=F.sumValues,L=F.values;"ungrouped"===e.type&&(L=[L]);var B=0;try{for(var N=(s=void 0,__values$f(null!==(g=null==k?void 0:k[C])&&void 0!==g?g:[])),j=N.next();!j.done;j=N.next()){var U;D=j.value,B<(U=Math.abs(D))&&(B=U)}}catch(e){s={error:e}}finally{try{j&&!j.done&&(l=N.return)&&l.call(N)}finally{if(s)throw s.error}}try{for(var V=(c=void 0,__values$f(L)),H=V.next();!H.done;H=V.next()){var G=H.value;try{for(var W=(d=void 0,__values$f(b[C])),z=W.next();!z.done;z=W.next()){var $=z.value;G[$]=_(G[$],B)}}catch(e){d={error:e}}finally{try{z&&!z.done&&(p=W.return)&&p.call(W)}finally{if(d)throw d.error}}}}catch(e){c={error:e}}finally{try{H&&!H.done&&(u=V.return)&&u.call(V)}finally{if(c)throw c.error}}if(null!=k){P=0;try{for(var K=(h=void 0,__values$f(k[C])),Q=K.next();!Q.done;Q=K.next())Q.value,k[C][P]=_(k[C][P],B),P++}catch(e){h={error:e}}finally{try{Q&&!Q.done&&(f=K.return)&&f.call(K)}finally{if(h)throw h.error}}}}}catch(e){i={error:e}}finally{try{I&&!I.done&&(a=R.return)&&a.call(R)}finally{if(i)throw i.error}}}}},e.prototype.reduceData=function(e){var t,n,r,o,i,a=this.reducers,s=a.map(function(e){return e.reducer()}),l=a.map(function(e){return e.initialValue});try{for(var c=__values$f(e.data),u=c.next();!u.done;u=c.next()){var d=u.value,p=0;try{for(var h=(r=void 0,__values$f(s)),f=h.next();!f.done;f=h.next()){var g=f.value;l[p]=g(l[p],d),p++}}catch(e){r={error:e}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}for(var m=0;m<l.length;m++)null!==(i=e.reduced)&&void 0!==i||(e.reduced={}),e.reduced[a[m].property]=l[m]},e.prototype.postProcessData=function(e){var t,n,r,o=this.processors;try{for(var i=__values$f(o),a=i.next();!a.done;a=i.next()){var s=a.value;null!==(r=e.reduced)&&void 0!==r||(e.reduced={}),e.reduced[s.property]=s.calculate(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.initDataDomainProcessor=function(){var e=this.keys,t=this.values,n=new Map,r=function(e,t,n){"category"===t?n.set(e,{type:t,domain:new Set}):n.set(e,{type:t,domain:[1/0,-1/0]})},o=function(o){return void 0===o&&(o=n),e.forEach(function(e){return r(e.property,e.valueType,o)}),t.forEach(function(e){return r(e.property,e.valueType,o)}),o};return o(),{dataDomain:n,processValue:function(e,t,r){var i,a;void 0===r&&(r=n);var s=e.property in t,l="missingValue"in e;e.missing||s||l||(e.missing=!0),r.has(e.property)||o(r);var c=s?t[e.property]:e.missingValue;if(s&&null!==(a=null===(i=e.validation)||void 0===i?void 0:i.call(e,c))&&void 0!==a&&!a){if(!("invalidValue"in e))return INVALID_VALUE;c=e.invalidValue}var u=r.get(e.property);return"category"===(null==u?void 0:u.type)?u.domain.add(c):"range"===(null==u?void 0:u.type)&&(u.domain[0]>c&&(u.domain[0]=c),u.domain[1]<c&&(u.domain[1]=c)),c},initDataDomain:o}},e}(),__extends$26=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1t=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},TimeAxis=function(e){function t(t){var n=e.call(this,t,new TimeScale$1)||this;n.datumFormat="%m/%d/%y, %H:%M:%S",n.min=void 0,n.max=void 0;var r=n.scale;return r.strictClampByDefault=!0,n.refreshScale(),n.datumFormatter=r.tickFormat({specifier:n.datumFormat}),n}return __extends$26(t,e),t.prototype.normaliseDataDomain=function(e){var t=this.min,n=this.max;return"number"==typeof t&&(t=new Date(t)),"number"==typeof n&&(n=new Date(n)),e.length>2&&(e=(extent$4(e)||[0,1e3]).map(function(e){return new Date(e)})),t instanceof Date&&(e=[t,e[1]]),n instanceof Date&&(e=[e[0],n]),e[0]>e[1]&&(e=[]),e},t.prototype.onLabelFormatChange=function(t,n){n?e.prototype.onLabelFormatChange.call(this,t,n):this.labelFormatter=this.scale.tickFormat({ticks:t})},t.prototype.formatDatum=function(e){return this.datumFormatter(e)},t.prototype.calculatePadding=function(e,t){return 1},t.className="TimeAxis",t.type="time",__decorate$1t([Validate(AND(OPT_DATE_OR_DATETIME_MS,LESS_THAN("max")))],t.prototype,"min",void 0),__decorate$1t([Validate(AND(OPT_DATE_OR_DATETIME_MS,GREATER_THAN("min")))],t.prototype,"max",void 0),t}(ChartAxis),__extends$25=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1s=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__awaiter$7=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$7=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__read$x=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$j=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$x(arguments[t]));return e},__values$e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},AreaSeriesLabel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.formatter=void 0,t}return __extends$25(t,e),__decorate$1s([Validate(OPT_FUNCTION)],t.prototype,"formatter",void 0),t}(Label$1),AreaSeriesTooltip=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderer=void 0,t.format=void 0,t}return __extends$25(t,e),__decorate$1s([Validate(OPT_FUNCTION)],t.prototype,"renderer",void 0),__decorate$1s([Validate(OPT_STRING)],t.prototype,"format",void 0),t}(SeriesTooltip),AreaSeriesTag;!function(e){e[e.Fill=0]="Fill",e[e.Stroke=1]="Stroke",e[e.Marker=2]="Marker",e[e.Label=3]="Label"}(AreaSeriesTag||(AreaSeriesTag={}));var AreaSeries=function(e){function t(){var t=e.call(this,{pathsPerSeries:2,pathsZIndexSubOrderOffset:[0,1e3],hasMarkers:!0,renderLayerPerSubSeries:!1,directionKeys:{x:["xKey"],y:["yKeys"]}})||this;t.tooltip=new AreaSeriesTooltip,t.marker=new CartesianSeriesMarker,t.label=new AreaSeriesLabel,t.fills=["#c16068","#a2bf8a","#ebcc87","#80a0c3","#b58dae","#85c0d1"],t.strokes=["#874349","#718661","#a48f5f","#5a7088","#7f637a","#5d8692"],t.fillOpacity=1,t.strokeOpacity=1,t.lineDash=[0],t.lineDashOffset=0,t._xKey="",t.xName="",t._yKeys=[],t._visibles=[],t.yNames=[],t.strokeWidth=2,t.shadow=void 0;var n=t,r=n.marker,o=n.label;return r.enabled=!1,o.enabled=!1,t}return __extends$25(t,e),Object.defineProperty(t.prototype,"xKey",{get:function(){return this._xKey},set:function(e){this._xKey=e,this.processedData=void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yKeys",{get:function(){return this._yKeys},set:function(e){areArrayItemsStrictlyEqual(this._yKeys,e)||(this._yKeys=e,this.processedData=void 0,this.processSeriesItemEnabled())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibles",{get:function(){return this._visibles},set:function(e){this._visibles=e,this.processSeriesItemEnabled()},enumerable:!1,configurable:!0}),t.prototype.processSeriesItemEnabled=function(){var e=this.seriesItemEnabled,t=this._visibles,n=void 0===t?[]:t;e.clear(),this._yKeys.forEach(function(t,r){var o;return e.set(t,null===(o=n[r])||void 0===o||o)})},Object.defineProperty(t.prototype,"normalizedTo",{get:function(){return this._normalizedTo},set:function(e){var t=e?Math.abs(e):void 0;this._normalizedTo!==t&&(this._normalizedTo=t)},enumerable:!1,configurable:!0}),t.prototype.processData=function(){return __awaiter$7(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s,l,c,u,d;return __generator$7(this,function(p){return t=(e=this).xKey,n=e.yKeys,r=e.seriesItemEnabled,o=e.xAxis,i=e.yAxis,a=e.normalizedTo,s=t&&n.length&&this.data?this.data:[],l=(null==o?void 0:o.scale)instanceof ContinuousScale,c=(null==i?void 0:i.scale)instanceof ContinuousScale,u=__spread$j(r.entries()).filter(function(e){return __read$x(e,2)[1]}).map(function(e){return __read$x(e,1)[0]}),d=a&&isFinite(a)?a:void 0,this.dataModel=new DataModel({props:__spread$j([keyProperty(t,l)],u.map(function(e){return valueProperty(e,c,{missingValue:NaN,invalidValue:void 0})}),[sumProperties(u),SUM_VALUE_EXTENT]),groupByKeys:!0,dataVisible:this.visible&&u.length>0,normaliseTo:d}),this.processedData=this.dataModel.processData(s),[2]})})},t.prototype.getDomain=function(e){var t=this,n=t.processedData,r=t.xAxis,o=t.yAxis;if(!n)return[];var i=n,a=__read$x(i.defs.keys,1)[0],s=i.domain,l=__read$x(s.keys,1)[0],c=__read$x(s.values,1)[0],u=i.reduced,d=(void 0===u?{}:u)[SUM_VALUE_EXTENT.property];return e===ChartAxisDirection.X?"category"===a.valueType?l:this.fixNumericExtent(extent$4(l),r):o instanceof LogAxis||o instanceof TimeAxis?this.fixNumericExtent(c,o):this.fixNumericExtent(d,o)},t.prototype.createNodeData=function(){return __awaiter$7(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_,C,E=this;return __generator$7(this,function(S){return t=(e=this).xAxis,n=e.yAxis,r=e.data,o=e.processedData,i=(void 0===o?{}:o).data,t&&n&&r?(a=[],l=(s=this).yKeys,c=s.xKey,u=s.marker,d=s.label,p=s.fills,h=s.strokes,f=s.id,g=t.scale,m=n.scale,v=m instanceof ContinuousScale,y=(g.bandwidth||0)/2,A=r.length,w=new Array(A).fill(null).map(function(){return{left:0,right:0}}),b=new Array(A).fill(0),_=function(e,t,n,r){var o=g.convert(e)+y,i=w[n][r],a=w[n][r]+t,s=m.convert(i,{strict:!1}),l=m.convert(a,{strict:!1});return w[n][r]=a,[{x:o,y:l,size:u.size},{x:o,y:s,size:u.size}]},C=function(e,t,n,r){var o,i=E.normalizedTo&&isFinite(E.normalizedTo),a=i&&v&&isContinuous(r);return(!i&&!isNaN(r)||a)&&(o=b[n]+=t),{x:g.convert(e)+y,y:m.convert(o,{strict:!1}),size:u.size}},l.forEach(function(e,t){var n,r=null===(n=E.dataModel)||void 0===n?void 0:n.resolveProcessedDataIndex(e),o=[],s=[],l={itemId:e,points:[],yValues:[]},g={itemId:e,points:[]};if(a[t]={itemId:e,fillSelectionData:g,labelData:o,nodeData:s,strokeSelectionData:l},r){var m=g.points,v=[],y=l.points,A=l.yValues,w=-1;null==i||i.forEach(function(n,a){var l=__read$x(n.keys,1)[0],g=n.datum,S=n.values;S.forEach(function(O,x){w++;var D,P=g[x],M=O[r.index],T=isNaN(M)?void 0:M,R=x<S.length-1,I=R?n:i[a+1],F=null==I?void 0:I.keys[0],k=R?x+1:0,L=null==I?void 0:I.values[k][r.index],B=isNaN(L)?void 0:L,N=C(l,+T,w,P[e]);u&&s.push({index:w,series:E,itemId:e,datum:P,nodeMidPoint:{x:N.x,y:N.y},cumulativeValue:b[w],yValue:T,yKey:e,xKey:c,point:N,fill:p[t%p.length],stroke:h[t%h.length]}),D=d.formatter?d.formatter({value:T,seriesId:f}):isNumber$4(T)?Number(T).toFixed(2):String(T),d&&o.push({index:w,itemId:e,point:N,label:D?{text:D,fontStyle:d.fontStyle,fontWeight:d.fontWeight,fontSize:d.fontSize,fontFamily:d.fontFamily,textAlign:"center",textBaseline:"bottom",fill:d.color}:void 0});var j=[l,F],U=[T,B];if(!j.some(function(e){return null==e})){U.some(function(e){return null==e})&&(U[0]=0,U[1]=0);var V=_(j[0],+U[0],w,"right");m.push(V[0]),v.push(V[1]);var H=_(j[1],+U[1],w,"left");m.push(H[0]),v.push(H[1]),y.push({x:NaN,y:NaN}),A.push(void 0),y.push(V[0]),A.push(T),void 0!==B&&(y.push(H[0]),A.push(T))}})});for(var S=v.length-1;S>=0;S--)m.push(v[S])}}),[2,a]):[2,[]]})})},t.prototype.isPathOrSelectionDirty=function(){return this.marker.isDirty()},t.prototype.updatePaths=function(e){return __awaiter$7(this,void 0,void 0,function(){var t,n,r,o,i,a;return __generator$7(this,function(s){return t=e.contextData,n=t.fillSelectionData,r=t.strokeSelectionData,o=__read$x(e.paths,2),i=o[0],a=o[1],i.datum=n,i.tag=AreaSeriesTag.Fill,i.lineJoin="round",i.stroke=void 0,i.pointerEvents=PointerEvents.None,a.datum=r,a.tag=AreaSeriesTag.Stroke,a.fill=void 0,a.lineJoin=a.lineCap="round",a.pointerEvents=PointerEvents.None,[2]})})},t.prototype.updatePathNodes=function(e){return __awaiter$7(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_,C,E,S,O,x;return __generator$7(this,function(D){t=__read$x(e.paths,2),n=t[0],r=t[1],o=e.seriesIdx,i=e.itemId,s=(a=this).strokes,l=a.fills,c=a.fillOpacity,u=a.strokeOpacity,d=a.strokeWidth,p=a.shadow,m=n.datum.points,n.fill=l[o%l.length],n.fillOpacity=c,n.strokeOpacity=u,n.strokeWidth=d,n.lineDash=this.lineDash,n.lineDashOffset=this.lineDashOffset,n.fillShadow=p,(A=n.path).clear({trackChanges:!0}),w=0;try{for(h=__values$e(m),f=h.next();!f.done;f=h.next())C=f.value,w++>0?A.lineTo(C.x,C.y):A.moveTo(C.x,C.y)}catch(e){E={error:e}}finally{try{f&&!f.done&&(S=h.return)&&S.call(h)}finally{if(E)throw E.error}}A.closePath(),n.checkPathDirty(),g=r.datum,m=g.points,v=g.yValues,y=!0,r.stroke=s[o%s.length],r.strokeWidth=this.getStrokeWidth(this.strokeWidth,{itemId:i}),r.strokeOpacity=u,r.lineDash=this.lineDash,r.lineDashOffset=this.lineDashOffset,(A=r.path).clear({trackChanges:!0}),w=0;try{for(b=__values$e(m),_=b.next();!_.done;_=b.next())C=_.value,void 0===v[w++]?y=!0:y?(A.moveTo(C.x,C.y),y=!1):A.lineTo(C.x,C.y)}catch(e){O={error:e}}finally{try{_&&!_.done&&(x=b.return)&&x.call(b)}finally{if(O)throw O.error}}return r.checkPathDirty(),[2]})})},t.prototype.markerFactory=function(){return new(getMarker$1(this.marker.shape))},t.prototype.updateMarkerSelection=function(e){return __awaiter$7(this,void 0,void 0,function(){var t,n,r,o;return __generator$7(this,function(i){return t=e.nodeData,n=e.markerSelection,r=this.marker.enabled,o=r&&t?t:[],this.marker.isDirty()&&n.clear(),[2,n.update(o,function(e){e.tag=AreaSeriesTag.Marker})]})})},t.prototype.updateMarkerNodes=function(e){return __awaiter$7(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_,C,E;return __generator$7(this,function(S){return t=e.markerSelection,n=e.isHighlight,o=(r=this).id,i=r.xKey,a=r.marker,s=r.seriesItemEnabled,l=r.yKeys,c=r.fills,u=r.strokes,d=r.fillOpacity,p=r.marker.fillOpacity,h=void 0===p?d:p,f=r.strokeOpacity,g=r.highlightStyle.item,m=g.fill,v=g.fillOpacity,y=void 0===v?h:v,A=g.stroke,w=g.strokeWidth,b=a.size,_=a.formatter,C=void 0!==a.strokeWidth?a.strokeWidth:this.strokeWidth,E="function"==typeof a.shape,t.each(function(e,t){var r,d,p=l.indexOf(t.yKey),g=n&&void 0!==m?m:a.fill||c[p%c.length],v=n?y:h,S=n&&void 0!==A?A:a.stroke||u[p%c.length],O=n&&void 0!==w?w:C,x=void 0;_&&(x=_({datum:t.datum,xKey:i,yKey:t.yKey,fill:g,stroke:S,strokeWidth:O,size:b,highlighted:n,seriesId:o})),e.fill=x&&x.fill||g,e.stroke=x&&x.stroke||S,e.strokeWidth=x&&void 0!==x.strokeWidth?x.strokeWidth:O,e.fillOpacity=null!=v?v:1,e.strokeOpacity=null!==(d=null!==(r=a.strokeOpacity)&&void 0!==r?r:f)&&void 0!==d?d:1,e.size=x&&void 0!==x.size?x.size:b,e.translationX=t.point.x,e.translationY=t.point.y,e.visible=e.size>0&&!!s.get(t.yKey)&&!isNaN(t.point.x)&&!isNaN(t.point.y),E&&!e.dirtyPath&&(e.path.clear({trackChanges:!0}),e.updatePath(),e.checkPathDirty())}),n||this.marker.markClean(),[2]})})},t.prototype.updateLabelSelection=function(e){return __awaiter$7(this,void 0,void 0,function(){var t;return __generator$7(this,function(n){return t=e.labelData,[2,e.labelSelection.update(t,function(e){e.tag=AreaSeriesTag.Label})]})})},t.prototype.updateLabelNodes=function(e){return __awaiter$7(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l;return __generator$7(this,function(c){return t=e.labelSelection,n=this.label,r=n.enabled,o=n.fontStyle,i=n.fontWeight,a=n.fontSize,s=n.fontFamily,l=n.color,t.each(function(e,t){var n=t.point,c=t.label;c&&r?(e.fontStyle=o,e.fontWeight=i,e.fontSize=a,e.fontFamily=s,e.textAlign=c.textAlign,e.textBaseline=c.textBaseline,e.text=c.text,e.x=n.x,e.y=n.y-10,e.fill=l,e.visible=!0):e.visible=!1}),[2]})})},t.prototype.getNodeClickEvent=function(e,t){return new CartesianSeriesNodeClickEvent(this.xKey,t.yKey,e,t,this)},t.prototype.getNodeDoubleClickEvent=function(e,t){return new CartesianSeriesNodeDoubleClickEvent(this.xKey,t.yKey,e,t,this)},t.prototype.getTooltipHtml=function(e){var t,n,r,o=this.xKey,i=this.id,a=e.yKey,s=null===(t=this.dataModel)||void 0===t?void 0:t.resolveProcessedDataIndex(a);if(!o||!a||!s)return"";var l=e.datum,c=l[o],u=l[a],d=this,p=d.xAxis,h=d.yAxis,f=d.yKeys;if(!(p&&h&&isNumber$4(u)&&s))return"";var g=this,m=g.xName,v=g.yNames,y=g.fills,A=g.strokes,w=g.tooltip,b=g.marker,_=b.size,C=b.formatter,E=b.strokeWidth,S=b.fill,O=b.stroke,x=p.formatDatum(c),D=h.formatDatum(u),P=f.indexOf(a),M=null===(r=null===(n=this.processedData)||void 0===n?void 0:n.data[e.index])||void 0===r?void 0:r.values[0][null==s?void 0:s.index],T=v[P],R=sanitizeHtml(T),I=sanitizeHtml(x+": "+D),F=void 0!==E?E:this.strokeWidth,k=S||y[P%y.length],L=O||A[P%y.length],B=void 0;C&&(B=C({datum:l,xKey:o,yKey:a,fill:k,stroke:L,strokeWidth:F,size:_,highlighted:!1,seriesId:i}));var N=B&&B.fill||k,j={title:R,backgroundColor:N,content:I},U=w.renderer,V=w.format;if(V||U){var H={datum:l,xKey:o,xName:m,xValue:c,yKey:a,yValue:u,processedYValue:M,yName:T,color:N,title:R,seriesId:i};if(V)return toTooltipHtml$1({content:interpolate(V,H)},j);if(U)return toTooltipHtml$1(U(H),j)}return toTooltipHtml$1(j)},t.prototype.getLegendData=function(){var e,t,n=this,r=n.data,o=n.id,i=n.xKey,a=n.yKeys,s=n.yNames,l=n.seriesItemEnabled,c=n.marker,u=n.fills,d=n.strokes,p=n.fillOpacity,h=n.strokeOpacity;if(!(r&&r.length&&i&&a.length))return[];for(var f=[],g=a.length-1;g>=0;g--){var m=a[g];f.push({id:o,itemId:m,seriesId:o,enabled:l.get(m)||!1,label:{text:s[g]||a[g]},marker:{shape:c.shape,fill:c.fill||u[g%u.length],stroke:c.stroke||d[g%d.length],fillOpacity:null!==(e=c.fillOpacity)&&void 0!==e?e:p,strokeOpacity:null!==(t=c.strokeOpacity)&&void 0!==t?t:h}})}return f},t.prototype.isLabelEnabled=function(){return this.label.enabled},t.className="AreaSeries",t.type="area",__decorate$1s([Validate(COLOR_STRING_ARRAY)],t.prototype,"fills",void 0),__decorate$1s([Validate(COLOR_STRING_ARRAY)],t.prototype,"strokes",void 0),__decorate$1s([Validate(NUMBER(0,1))],t.prototype,"fillOpacity",void 0),__decorate$1s([Validate(NUMBER(0,1))],t.prototype,"strokeOpacity",void 0),__decorate$1s([Validate(OPT_LINE_DASH)],t.prototype,"lineDash",void 0),__decorate$1s([Validate(NUMBER(0))],t.prototype,"lineDashOffset",void 0),__decorate$1s([Validate(STRING)],t.prototype,"_xKey",void 0),__decorate$1s([Validate(STRING)],t.prototype,"xName",void 0),__decorate$1s([Validate(STRING_ARRAY)],t.prototype,"_yKeys",void 0),__decorate$1s([Validate(BOOLEAN_ARRAY)],t.prototype,"_visibles",void 0),__decorate$1s([Validate(STRING_ARRAY)],t.prototype,"yNames",void 0),__decorate$1s([Validate(OPT_NUMBER())],t.prototype,"_normalizedTo",void 0),__decorate$1s([Validate(NUMBER(0))],t.prototype,"strokeWidth",void 0),t}(CartesianSeries),__extends$24=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1r=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rect=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.borderPath=new Path2D,t.x=0,t.y=0,t.width=10,t.height=10,t.radius=0,t.crisp=!1,t.lastUpdatePathStrokeWidth=Shape.defaultStyles.strokeWidth,t.effectiveStrokeWidth=Shape.defaultStyles.strokeWidth,t.microPixelEffectOpacity=1,t}return __extends$24(t,e),t.prototype.isDirtyPath=function(){var e;return this.lastUpdatePathStrokeWidth!==this.strokeWidth||!!(this.path.isDirty()||this.borderPath.isDirty()||(null===(e=this.clipPath)||void 0===e?void 0:e.isDirty()))},t.prototype.updatePath=function(){var e,t,n,r=this,o=r.path,i=r.borderPath,a=r.crisp,s=this,l=s.x,c=s.y,u=s.width,d=s.height,p=s.strokeWidth,h=1/(null!==(t=null===(e=this.layerManager)||void 0===e?void 0:e.canvas.pixelRatio)&&void 0!==t?t:1),f=1;if(o.clear({trackChanges:!0}),i.clear({trackChanges:!0}),a&&(u<=h&&(f*=u/h),d<=h&&(f*=d/h),u=this.align(l,u),d=this.align(c,d),l=this.align(l),c=this.align(c)),p)if(u<h){var g=l+h/2;i.moveTo(g,c),i.lineTo(g,c+d),p=h,this.borderClipPath=void 0}else if(d<h){var m=c+h/2;i.moveTo(l,m),i.lineTo(l+u,m),p=h,this.borderClipPath=void 0}else if(p<u&&p<d){var v=p/2;l+=v,c+=v,u-=p,d-=p,this.borderClipPath=void 0,o.rect(l,c,u,d),i.rect(l,c,u,d)}else this.borderClipPath=null!==(n=this.borderClipPath)&&void 0!==n?n:new Path2D,this.borderClipPath.clear({trackChanges:!0}),this.borderClipPath.rect(l,c,u,d),i.rect(l,c,u,d);else this.borderClipPath=void 0,o.rect(l,c,u,d);this.effectiveStrokeWidth=p,this.lastUpdatePathStrokeWidth=p,this.microPixelEffectOpacity=f},t.prototype.computeBBox=function(){var e=this,t=e.x,n=e.y,r=e.width,o=e.height;return new BBox(t,n,r,o)},t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t);return this.computeBBox().containsPoint(n.x,n.y)},t.prototype.applyFillAlpha=function(e){var t=this,n=t.fillOpacity,r=t.microPixelEffectOpacity,o=t.opacity;e.globalAlpha=o*n*r},t.prototype.renderStroke=function(e){var t=this,n=t.stroke,r=t.effectiveStrokeWidth,o=t.borderPath,i=t.borderClipPath,a=t.opacity,s=t.microPixelEffectOpacity;if(n&&r){var l=this,c=l.strokeOpacity,u=l.lineDash,d=l.lineDashOffset,p=l.lineCap,h=l.lineJoin;i&&(i.draw(e),e.clip()),o.draw(e);var f=e.globalAlpha;e.strokeStyle=n,e.globalAlpha=f*a*c*s,e.lineWidth=r,u&&e.setLineDash(u),d&&(e.lineDashOffset=d),p&&(e.lineCap=p),h&&(e.lineJoin=h),e.stroke(),e.globalAlpha=f}},t.className="Rect",__decorate$1r([ScenePathChangeDetection()],t.prototype,"x",void 0),__decorate$1r([ScenePathChangeDetection()],t.prototype,"y",void 0),__decorate$1r([ScenePathChangeDetection()],t.prototype,"width",void 0),__decorate$1r([ScenePathChangeDetection()],t.prototype,"height",void 0),__decorate$1r([ScenePathChangeDetection()],t.prototype,"radius",void 0),__decorate$1r([ScenePathChangeDetection()],t.prototype,"crisp",void 0),t}(Path),__extends$23=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1q=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__awaiter$6=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$6=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__read$w=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$i=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$w(arguments[t]));return e},BAR_LABEL_PLACEMENTS=["inside","outside"],OPT_BAR_LABEL_PLACEMENT=function(e,t){return OPTIONAL(e,t,function(e){return BAR_LABEL_PLACEMENTS.includes(e)})},BarSeriesNodeTag;!function(e){e[e.Bar=0]="Bar",e[e.Label=1]="Label"}(BarSeriesNodeTag||(BarSeriesNodeTag={}));var BarSeriesLabel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.formatter=void 0,t.placement="inside",t}return __extends$23(t,e),__decorate$1q([Validate(OPT_FUNCTION)],t.prototype,"formatter",void 0),__decorate$1q([Validate(OPT_BAR_LABEL_PLACEMENT)],t.prototype,"placement",void 0),t}(Label$1),BarSeriesTooltip=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderer=void 0,t}return __extends$23(t,e),__decorate$1q([Validate(OPT_FUNCTION)],t.prototype,"renderer",void 0),t}(SeriesTooltip);function is2dArray$1(e){return e.length>0&&Array.isArray(e[0])}var BarSeries=function(e){function t(){var t,n=e.call(this,{pickModes:[SeriesNodePickMode.EXACT_SHAPE_MATCH],pathsPerSeries:0,directionKeys:(t={},t[ChartAxisDirection.X]=["xKey"],t[ChartAxisDirection.Y]=["yKeys"],t)})||this;return n.label=new BarSeriesLabel,n.tooltip=new BarSeriesTooltip,n.flipXY=!1,n.fills=["#c16068","#a2bf8a","#ebcc87","#80a0c3","#b58dae","#85c0d1"],n.strokes=["#874349","#718661","#a48f5f","#5a7088","#7f637a","#5d8692"],n.fillOpacity=1,n.strokeOpacity=1,n.lineDash=[0],n.lineDashOffset=0,n.formatter=void 0,n.groupScale=new BandScale$5,n._xKey="",n.xName="",n.cumYKeyCount=[],n.flatYKeys=void 0,n.hideInLegend=[],n.yKeys=[],n.yKeysCache=[],n.visibles=[],n._grouped=!1,n.stackGroups={},n.yNames={},n.strokeWidth=1,n.shadow=void 0,n.smallestDataInterval=void 0,n.label.enabled=!1,n}return __extends$23(t,e),t.prototype.resolveKeyDirection=function(e){return this.flipXY?flipChartAxisDirection(e):e},Object.defineProperty(t.prototype,"xKey",{get:function(){return this._xKey},set:function(e){this._xKey=e,this.processedData=void 0},enumerable:!1,configurable:!0}),t.prototype.processYKeys=function(){var e=this,t=this.yKeys,n=void 0;is2dArray$1(t)||(n=t,t=this.grouped?n.map(function(e){return[e]}):[n]);var r=Object.values(this.stackGroups);if(r.length>0){var o=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},i=o(t),a=new Set(o(r)),s=i.filter(function(e){return!a.has(e)});t=r.map(function(e){return e}),s.length>0&&t.push(s);var l=o(t).reduce(function(e,t,n){return e.set(t,n)},new Map),c=function(e){var t=Array.from({length:e.length});return e.forEach(function(e,n){var r=i[n],o=l.get(r);t[o]=e}),t};this.fills=c(this.fills),this.strokes=c(this.strokes),this.visibles=c(this.visibles)}if(!areArrayItemsStrictlyEqual(this.yKeysCache,t)){this.flatYKeys=n||void 0,this.yKeys=t;var u=0;this.cumYKeyCount=[];var d=[];t.forEach(function(t,n){t.length>0&&d.push(String(n)),e.cumYKeyCount.push(u),u+=t.length}),this.processSeriesItemEnabled(),this.groupScale.domain=d}this.yKeysCache=t},t.prototype.processSeriesItemEnabled=function(){var e=this.seriesItemEnabled,t=this.visibles.reduce(function(e,t){return e.concat.apply(e,__spread$i(Array.isArray(t)?t:[t]))},[]);e.clear();var n=0;this.yKeys.forEach(function(r){r.forEach(function(r){var o;return e.set(r,null===(o=t[n++])||void 0===o||o)})})},Object.defineProperty(t.prototype,"grouped",{get:function(){return this._grouped},set:function(e){this._grouped=e},enumerable:!1,configurable:!0}),t.prototype.getStackGroup=function(e){var t,n=this.stackGroups;return null===(t=Object.entries(n).find(function(t){var n=__read$w(t,2);return n[0],n[1].includes(e)}))||void 0===t?void 0:t[0]},t.prototype.processYNames=function(){var e=this.yNames;if(Array.isArray(e)&&this.flatYKeys){var t={};this.flatYKeys.forEach(function(n,r){t[n]=e[r]}),this.yNames=t}},Object.defineProperty(t.prototype,"normalizedTo",{get:function(){return this._normalizedTo},set:function(e){var t=e?Math.abs(e):void 0;this._normalizedTo=t},enumerable:!1,configurable:!0}),t.prototype.processData=function(){var e,t,n,r,o;return __awaiter$6(this,void 0,void 0,function(){var i,a,s,l,c,u,d,p,h,f,g;return __generator$6(this,function(m){return this.processYKeys(),this.processYNames(),a=(i=this).xKey,s=i.seriesItemEnabled,l=i.normalizedTo,c=i.data,u=void 0===c?[]:c,d=(null===(e=this.getCategoryAxis())||void 0===e?void 0:e.scale)instanceof ContinuousScale,p=(null===(t=this.getValueAxis())||void 0===t?void 0:t.scale)instanceof ContinuousScale,h=__spread$i(s.entries()).filter(function(e){return __read$w(e,2)[1]}).map(function(e){return __read$w(e,1)[0]}),f=this.yKeys.map(function(e){return e.filter(function(e){return s.get(e)})}).filter(function(e){return e.length>0}),g=l&&isFinite(l)?l:void 0,this.dataModel=new DataModel({props:__spread$i([keyProperty(a,d)],h.map(function(e){return valueProperty(e,p,{invalidValue:null})}),f.map(function(e){return sumProperties(e)}),d?[SMALLEST_KEY_INTERVAL]:[],[SUM_VALUE_EXTENT]),groupByKeys:!0,dataVisible:this.visible&&h.length>0,normaliseTo:g}),this.processedData=this.dataModel.processData(u),this.smallestDataInterval={x:null!==(o=null===(r=null===(n=this.processedData)||void 0===n?void 0:n.reduced)||void 0===r?void 0:r[SMALLEST_KEY_INTERVAL.property])&&void 0!==o?o:1/0,y:1/0},[2]})})},t.prototype.getDomain=function(e){var t=this.flipXY,n=this.processedData;if(!n)return[];t&&(e=flipChartAxisDirection(e));var r=n,o=__read$w(r.defs.keys,1)[0],i=r.domain,a=__read$w(i.keys,1)[0],s=__read$w(i.values,1)[0],l=r.reduced,c=void 0===l?{}:l,u=c[SMALLEST_KEY_INTERVAL.property],d=c[SUM_VALUE_EXTENT.property];if(e===ChartAxisDirection.X){if("category"===o.valueType)return a;var p=extent$4(a)||[NaN,NaN];return t?[p[0]+-u,p[1]]:[p[0],p[1]+u]}return this.getValueAxis()instanceof LogAxis?this.fixNumericExtent(s):this.fixNumericExtent(d)},t.prototype.getNodeClickEvent=function(e,t){return new CartesianSeriesNodeClickEvent(this.xKey,t.yKey,e,t,this)},t.prototype.getNodeDoubleClickEvent=function(e,t){return new CartesianSeriesNodeDoubleClickEvent(this.xKey,t.yKey,e,t,this)},t.prototype.getCategoryAxis=function(){return this.flipXY?this.yAxis:this.xAxis},t.prototype.getValueAxis=function(){return this.flipXY?this.xAxis:this.yAxis},t.prototype.calculateStep=function(e){var t,n=this.smallestDataInterval,r=this.getCategoryAxis();if(r){var o=(r.dataDomain[1]-r.dataDomain[0])/(null!==(t=null==n?void 0:n.x)&&void 0!==t?t:1)+1,i=Math.floor(e),a=Math.min(o,i);return e/Math.max(1,a)}},t.prototype.createNodeData=function(){return __awaiter$6(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_,C,E,S,O,x,D,P,M,T,R=this;return __generator$6(this,function(I){return t=(e=this).data,n=e.visible,r=this.getCategoryAxis(),o=this.getValueAxis(),t&&n&&r&&o?(i=r.scale,a=o.scale,l=(s=this).groupScale,c=s.yKeys,u=s.xKey,d=s.cumYKeyCount,p=s.fills,h=s.strokes,f=s.strokeWidth,g=s.seriesItemEnabled,m=s.label,v=s.flipXY,y=s.id,A=s.processedData,w=m.fontStyle,b=m.fontWeight,_=m.fontSize,C=m.fontFamily,E=m.color,S=m.formatter,O=m.placement,x=i.bandwidth,i instanceof ContinuousScale&&(D=Math.max(r.range[0],r.range[1]),P=this.calculateStep(D),x=P),l.range=[0,x],l.padding=r instanceof CategoryAxis?r.groupPaddingInner:r instanceof GroupedCategoryAxis?.1:0,0===l.padding?l.round=!1:l.round=!0,M=l.bandwidth>=1?l.bandwidth:l.rawBandwidth,T=[],null==A||A.data.forEach(function(e,t){for(var n,o,s,m,x,D,P=e.keys,I=e.datum,F=e.values,k=i.convert(P[0]),L=0;L<(null!==(n=null==c?void 0:c.length)&&void 0!==n?n:0);L++){var B=null!==(o=null==c?void 0:c[L])&&void 0!==o?o:[];null!==(s=T[L])&&void 0!==s||(T[L]=[]);for(var N=0,j=0,U=0;U<B.length;U++){var V=B[U],H=null!==(m=null==A?void 0:A.indices.values[V])&&void 0!==m?m:-1;if(null!==(x=(D=T[L])[U])&&void 0!==x||(D[U]={itemId:V,nodeData:[],labelData:[]}),void 0!==H){var G=F[0][H],W=+G,z=k+l.convert(String(L));if(r.inRange(z,M)&&!isNaN(W)){var $,K=W<0?N:j,Q=a.convert(K+W,{strict:!1}),q=a.convert(K,{strict:!1});$=S?S({value:isNumber$4(G)?G:void 0,seriesId:y}):isNumber$4(G)?G.toFixed(2):"";var Y=void 0,X=void 0;v?(X=z+M/2,Y="inside"===O?Q+(G>=0?-1:1)*Math.abs(q-Q)/2:Q+4*(G>=0?1:-1)):(Y=z+M/2,X="inside"===O?Q+(G>=0?1:-1)*Math.abs(q-Q)/2:Q+(G>=0?-3:4));var Z=void 0,J=void 0;"inside"===O?(Z="center",J="middle"):(Z=v?G>=0?"start":"end":"center",J=v?"middle":G>=0?"bottom":"top");var ee=d[L]+U,te={x:v?Math.min(Q,q):z,y:v?z:Math.min(Q,q),width:v?Math.abs(q-Q):M,height:v?M:Math.abs(q-Q)},ne={x:te.x+te.width/2,y:te.y+te.height/2},re={index:t,series:R,itemId:V,datum:I[0],cumulativeValue:K+W,yValue:G,yKey:V,xKey:u,x:te.x,y:te.y,width:te.width,height:te.height,nodeMidPoint:ne,colorIndex:ee,fill:p[ee%p.length],stroke:h[ee%h.length],strokeWidth:f,label:g.get(V)&&$?{text:$,fontStyle:w,fontWeight:b,fontSize:_,fontFamily:C,textAlign:Z,textBaseline:J,fill:E,x:Y,y:X}:void 0};T[L][U].nodeData.push(re),T[L][U].labelData.push(re),W<0?N+=W:j+=W}}}}}),[2,T.reduce(function(e,t){return e.concat.apply(e,__spread$i(t))},[])]):[2,[]]})})},t.prototype.nodeFactory=function(){return new Rect},t.prototype.updateDatumSelection=function(e){return __awaiter$6(this,void 0,void 0,function(){var t;return __generator$6(this,function(n){return t=e.nodeData,[2,e.datumSelection.update(t,function(e){return e.tag=BarSeriesNodeTag.Bar})]})})},t.prototype.updateDatumNodes=function(e){var t,n;return __awaiter$6(this,void 0,void 0,function(){var r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_,C,E,S=this;return __generator$6(this,function(O){return r=e.datumSelection,o=e.isHighlight,a=(i=this).fills,s=i.strokes,l=i.fillOpacity,c=i.strokeOpacity,u=i.shadow,d=i.formatter,p=i.xKey,h=i.flipXY,f=i.highlightStyle.item,g=f.fill,m=f.fillOpacity,v=void 0===m?l:m,y=f.stroke,A=f.strokeWidth,w=i.id,b=__read$w(null!==(n=null===(t=this.xAxis)||void 0===t?void 0:t.visibleRange)&&void 0!==n?n:[],2),_=b[0],C=b[1],E=!(0!==_||1!==C),r.each(function(e,t){var n=t.colorIndex,r=o&&void 0!==g?g:a[n%a.length],i=o&&void 0!==y?y:s[n%a.length],f=o&&void 0!==A?A:S.getStrokeWidth(S.strokeWidth,t),m=o?v:l,b=S.getStackGroup(t.yKey),_=void 0;d&&(_=d({datum:t.datum,fill:r,stroke:i,strokeWidth:f,highlighted:o,xKey:p,yKey:t.yKey,seriesId:w,stackGroup:b})),e.crisp=E,e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e.fill=_&&_.fill||r,e.stroke=_&&_.stroke||i,e.strokeWidth=_&&void 0!==_.strokeWidth?_.strokeWidth:f,e.fillOpacity=m,e.strokeOpacity=c,e.lineDash=S.lineDash,e.lineDashOffset=S.lineDashOffset,e.fillShadow=u,e.visible=h?t.width>0:t.height>0}),[2]})})},t.prototype.updateLabelSelection=function(e){return __awaiter$6(this,void 0,void 0,function(){var t,n,r,o;return __generator$6(this,function(i){return t=e.labelData,n=e.labelSelection,r=this.label.enabled,o=r?t:[],[2,n.update(o,function(e){e.tag=BarSeriesNodeTag.Label,e.pointerEvents=PointerEvents.None})]})})},t.prototype.updateLabelNodes=function(e){return __awaiter$6(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l;return __generator$6(this,function(c){return t=e.labelSelection,n=this.label,r=n.enabled,o=n.fontStyle,i=n.fontWeight,a=n.fontSize,s=n.fontFamily,l=n.color,t.each(function(e,t){var n=t.label;n&&r?(e.fontStyle=o,e.fontWeight=i,e.fontSize=a,e.fontFamily=s,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline,e.text=n.text,e.x=n.x,e.y=n.y,e.fill=l,e.visible=!0):e.visible=!1}),[2]})})},t.prototype.getTooltipHtml=function(e){var t=this,n=t.xKey,r=t.yKeys,o=t.processedData,i=this.getCategoryAxis(),a=this.getValueAxis(),s=e.yKey;if(!(o&&n&&s&&i&&a))return"";for(var l=0,c=0,u=0;u<r.length;u++){var d=r[u];if((c=d.indexOf(s))>=0){l+=c;break}l+=d.length}var p=this,h=p.xName,f=p.yNames,g=p.fills,m=p.strokes,v=p.tooltip,y=p.formatter,A=p.id,w=v.renderer,b=e.datum,_=f[s],C=this.getStackGroup(s),E=g[l%g.length],S=m[l%g.length],O=this.getStrokeWidth(this.strokeWidth),x=b[n],D=b[s],P=sanitizeHtml(i.formatDatum(x)),M=sanitizeHtml(a.formatDatum(D)),T=sanitizeHtml(_),R=P+": "+M,I=void 0;y&&(I=y({datum:b,fill:E,stroke:S,strokeWidth:O,highlighted:!1,xKey:n,yKey:s,seriesId:A,stackGroup:C}));var F=I&&I.fill||E,k={title:T,backgroundColor:F,content:R};return w?toTooltipHtml$1(w({datum:b,xKey:n,xValue:x,xName:h,yKey:s,yValue:D,yName:_,color:F,title:T,seriesId:A,stackGroup:C}),k):toTooltipHtml$1(k)},t.prototype.getLegendData=function(){var e=this,t=e.id,n=e.data,r=e.xKey,o=e.yKeys,i=e.yNames,a=e.cumYKeyCount,s=e.seriesItemEnabled,l=e.hideInLegend,c=e.fills,u=e.strokes,d=e.fillOpacity,p=e.strokeOpacity,h=e.flipXY;if(!(n&&n.length&&r&&o.length))return[];var f=[];return this.yKeys.forEach(function(e,n){for(var r=h?0:e.length-1,o=h?1:-1,g=r,m=0;m<e.length;g+=o,m++){var v=e[g];if(l.indexOf(v)>=0)return;var y=a[n]+g;f.push({id:t,itemId:v,seriesId:t,enabled:s.get(v)||!1,label:{text:i[v]||v},marker:{fill:c[y%c.length],stroke:u[y%u.length],fillOpacity:d,strokeOpacity:p}})}}),f},t.prototype.toggleSeriesItem=function(t,n){e.prototype.toggleSeriesItem.call(this,t,n);var r=this.yKeys.map(function(e){return e.slice()});this.seriesItemEnabled.forEach(function(e,t){e||r.forEach(function(e){var n=e.indexOf(t);n>=0&&e.splice(n,1)})});var o=[];r.forEach(function(e,t){e.length>0&&o.push(String(t))}),this.groupScale.domain=o,this.nodeDataRefresh=!0},t.prototype.isLabelEnabled=function(){return this.label.enabled},t.prototype.getBandScalePadding=function(){return{inner:.2,outer:.3}},t.className="BarSeries",t.type="bar",__decorate$1q([Validate(BOOLEAN)],t.prototype,"flipXY",void 0),__decorate$1q([Validate(COLOR_STRING_ARRAY)],t.prototype,"fills",void 0),__decorate$1q([Validate(COLOR_STRING_ARRAY)],t.prototype,"strokes",void 0),__decorate$1q([Validate(NUMBER(0,1))],t.prototype,"fillOpacity",void 0),__decorate$1q([Validate(NUMBER(0,1))],t.prototype,"strokeOpacity",void 0),__decorate$1q([Validate(OPT_LINE_DASH)],t.prototype,"lineDash",void 0),__decorate$1q([Validate(NUMBER(0))],t.prototype,"lineDashOffset",void 0),__decorate$1q([Validate(OPT_FUNCTION)],t.prototype,"formatter",void 0),__decorate$1q([Validate(STRING)],t.prototype,"_xKey",void 0),__decorate$1q([Validate(STRING)],t.prototype,"xName",void 0),__decorate$1q([Validate(STRING_ARRAY)],t.prototype,"hideInLegend",void 0),__decorate$1q([Validate(BOOLEAN_ARRAY)],t.prototype,"visibles",void 0),__decorate$1q([Validate(BOOLEAN)],t.prototype,"_grouped",void 0),__decorate$1q([Validate(OPT_NUMBER())],t.prototype,"_normalizedTo",void 0),__decorate$1q([Validate(NUMBER(0))],t.prototype,"strokeWidth",void 0),t}(CartesianSeries),__extends$22=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1p=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__awaiter$5=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$5=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__read$v=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$h=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$v(arguments[t]));return e},HISTOGRAM_AGGREGATIONS=["count","sum","mean"],HISTOGRAM_AGGREGATION=predicateWithMessage(function(e){return HISTOGRAM_AGGREGATIONS.includes(e)},"expecting a histogram aggregation keyword such as 'count', 'sum' or 'mean"),HistogramSeriesNodeTag;!function(e){e[e.Bin=0]="Bin",e[e.Label=1]="Label"}(HistogramSeriesNodeTag||(HistogramSeriesNodeTag={}));var HistogramSeriesLabel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.formatter=void 0,t}return __extends$22(t,e),__decorate$1p([Validate(OPT_FUNCTION)],t.prototype,"formatter",void 0),t}(Label$1),defaultBinCount=10,aggregationFunctions={count:function(e){return e.data.length},sum:function(e,t){return e.data.reduce(function(e,n){return e+n[t]},0)},mean:function(e,t){return aggregationFunctions.sum(e,t)/aggregationFunctions.count(e,t)}},HistogramBin=function(){function e(e){var t=__read$v(e,2),n=t[0],r=t[1];this.data=[],this.aggregatedValue=0,this.frequency=0,this.domain=[n,r]}return e.prototype.addDatum=function(e){this.data.push(e),this.frequency++},Object.defineProperty(e.prototype,"domainWidth",{get:function(){var e=__read$v(this.domain,2),t=e[0];return e[1]-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relativeHeight",{get:function(){return this.aggregatedValue/this.domainWidth},enumerable:!1,configurable:!0}),e.prototype.calculateAggregatedValue=function(e,t){t||(e="count");var n=aggregationFunctions[e];this.aggregatedValue=n(this,t)},e.prototype.getY=function(e){return e?this.relativeHeight:this.aggregatedValue},e}(),HistogramSeriesTooltip=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderer=void 0,t}return __extends$22(t,e),__decorate$1p([Validate(OPT_FUNCTION)],t.prototype,"renderer",void 0),t}(SeriesTooltip),HistogramSeries=function(e){function t(){var t=e.call(this,{pickModes:[SeriesNodePickMode.EXACT_SHAPE_MATCH]})||this;return t.binnedData=[],t.xDomain=[],t.yDomain=[],t.label=new HistogramSeriesLabel,t.tooltip=new HistogramSeriesTooltip,t.fill=void 0,t.stroke=void 0,t.fillOpacity=1,t.strokeOpacity=1,t.lineDash=[0],t.lineDashOffset=0,t.xKey="",t.areaPlot=!1,t.bins=void 0,t.aggregation="count",t.binCount=void 0,t.xName="",t.yKey="",t.yName="",t.strokeWidth=1,t.shadow=void 0,t.label.enabled=!1,t}return __extends$22(t,e),t.prototype.deriveBins=function(){var e=this,t=this.bins;if(!this.data)return[];var n=this.data.map(function(t){return t[e.xKey]}),r=this.fixNumericExtent(extent$4(n));if(void 0===this.binCount){if(t)return t;var o=ticks(r[0],r[1],defaultBinCount),i=tickStep(r[0],r[1],defaultBinCount),a=o[0];return __spread$h([[a-i,a]],o.map(function(e){return[e,e+i]}))}return this.calculateNiceBins(r,this.binCount)},t.prototype.calculateNiceBins=function(e,t){var n=Math.floor(e[0]),r=e[1],o=t||1,i=this.calculateNiceStart(n,r,o),a=i.start,s=i.binSize;return this.getBins(a,r,s,o)},t.prototype.getBins=function(e,t,n,r){for(var o=[],i=0;i<r;i++){var a=Math.round(10*(e+i*n))/10,s=Math.round(10*(e+(i+1)*n))/10;i===r-1&&(s=Math.max(s,t)),o[i]=[a,s]}return o},t.prototype.calculateNiceStart=function(e,t,n){var r=Math.abs(t-e)/n,o=Math.floor(Math.log10(r)),i=Math.pow(10,o);return{start:Math.floor(e/i)*i,binSize:r}},t.prototype.placeDataInBins=function(e){var t=this,n=this.xKey,r=this.deriveBins();this.bins=r;for(var o=e.slice().sort(function(e,t){return e[n]<t[n]?-1:e[n]>t[n]?1:0}),i=[new HistogramBin(r[0])],a=0,s=0;s<o.length&&a<r.length;s++){for(var l=o[s];l[n]>r[a][1]&&a<r.length;)a++,i.push(new HistogramBin(r[a]));a<r.length&&i[a].addDatum(l)}return i.forEach(function(e){return e.calculateAggregatedValue(t.aggregation,t.yKey)}),i},Object.defineProperty(t.prototype,"xMax",{get:function(){var e=this;return this.data&&this.data.reduce(function(t,n){return Math.max(t,n[e.xKey])},Number.NEGATIVE_INFINITY)},enumerable:!1,configurable:!0}),t.prototype.processData=function(){return __awaiter$5(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s,l,c=this;return __generator$5(this,function(u){return t=(e=this).xKey,n=e.data,this.binnedData=this.placeDataInBins(t&&n?n:[]),r=this.binnedData.map(function(e){return e.getY(c.areaPlot)}),o=extent$4(r),this.yDomain=this.fixNumericExtent([0,o?o[1]:1]),i=this.binnedData[0],a=this.binnedData[this.binnedData.length-1],s=i.domain[0],l=a.domain[1],this.xDomain=[s,l],[2]})})},t.prototype.getDomain=function(e){return e===ChartAxisDirection.X?this.xDomain:this.yDomain},t.prototype.getNodeClickEvent=function(e,t){return new CartesianSeriesNodeClickEvent(this.xKey,this.yKey,e,t,this)},t.prototype.getNodeDoubleClickEvent=function(e,t){return new CartesianSeriesNodeDoubleClickEvent(this.xKey,this.yKey,e,t,this)},t.prototype.createNodeData=function(){return __awaiter$5(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_=this;return __generator$5(this,function(C){return t=(e=this).xAxis,n=e.yAxis,this.seriesItemEnabled&&t&&n?(r=t.scale,o=n.scale,a=(i=this).fill,s=i.stroke,l=i.strokeWidth,c=i.id,u=i.yKey,d=i.xKey,p=[],h=function(e){return String(e.value)},f=this.label,g=f.formatter,m=void 0===g?h:g,v=f.fontStyle,y=f.fontWeight,A=f.fontSize,w=f.fontFamily,b=f.color,this.binnedData.forEach(function(e){var t=e.aggregatedValue,n=e.frequency,i=__read$v(e.domain,2),h=i[0],f=i[1],g=e.relativeHeight,C=r.convert(h),E=r.convert(f),S=_.areaPlot?g:u?t:n,O=o.convert(0),x=o.convert(S),D=E-C,P=Math.abs(x-O),M=0!==S?{text:m({value:e.aggregatedValue,seriesId:c}),fontStyle:v,fontWeight:y,fontSize:A,fontFamily:w,fill:b,x:C+D/2,y:x+P/2}:void 0,T={x:C+D/2,y:x+P/2};p.push({series:_,datum:e,aggregatedValue:e.aggregatedValue,domain:e.domain,yKey:u,xKey:d,x:C,y:x,width:D,height:P,nodeMidPoint:T,fill:a,stroke:s,strokeWidth:l,label:M})}),[2,[{itemId:this.yKey,nodeData:p,labelData:p}]]):[2,[]]})})},t.prototype.nodeFactory=function(){return new Rect},t.prototype.updateDatumSelection=function(e){return __awaiter$5(this,void 0,void 0,function(){var t;return __generator$5(this,function(n){return t=e.nodeData,[2,e.datumSelection.update(t,function(e){e.tag=HistogramSeriesNodeTag.Bin,e.crisp=!0})]})})},t.prototype.updateDatumNodes=function(e){return __awaiter$5(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l,c,u,d,p,h=this;return __generator$5(this,function(f){return t=e.datumSelection,n=e.isHighlight,o=(r=this).fillOpacity,i=r.strokeOpacity,a=r.shadow,s=r.highlightStyle.item,l=s.fill,c=s.fillOpacity,u=void 0===c?o:c,d=s.stroke,p=s.strokeWidth,t.each(function(e,t,r){var s=n&&void 0!==p?p:t.strokeWidth,c=n?u:o;e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e.fill=n&&void 0!==l?l:t.fill,e.stroke=n&&void 0!==d?d:t.stroke,e.fillOpacity=c,e.strokeOpacity=i,e.strokeWidth=s,e.lineDash=h.lineDash,e.lineDashOffset=h.lineDashOffset,e.fillShadow=a,e.zIndex=n?Series.highlightedZIndex:r,e.visible=t.height>0}),[2]})})},t.prototype.updateLabelSelection=function(e){return __awaiter$5(this,void 0,void 0,function(){var t;return __generator$5(this,function(n){return t=e.labelData,[2,e.labelSelection.update(t,function(e){e.tag=HistogramSeriesNodeTag.Label,e.pointerEvents=PointerEvents.None,e.textAlign="center",e.textBaseline="middle"})]})})},t.prototype.updateLabelNodes=function(e){return __awaiter$5(this,void 0,void 0,function(){var t,n;return __generator$5(this,function(r){return t=e.labelSelection,n=this.label.enabled,t.each(function(e,t){var r=t.label;r&&n?(e.text=r.text,e.x=r.x,e.y=r.y,e.fontStyle=r.fontStyle,e.fontWeight=r.fontWeight,e.fontSize=r.fontSize,e.fontFamily=r.fontFamily,e.fill=r.fill,e.visible=!0):e.visible=!1}),[2]})})},t.prototype.getTooltipHtml=function(e){var t=this,n=t.xKey,r=t.yKey,o=t.xAxis,i=t.yAxis;if(!n||!o||!i)return"";var a=this,s=a.xName,l=a.yName,c=a.fill,u=a.tooltip,d=a.aggregation,p=a.id,h=u.renderer,f=e.datum,g=f.aggregatedValue,m=f.frequency,v=__read$v(f.domain,2),y=v[0],A=v[1],w=sanitizeHtml(s||n)+": "+o.formatDatum(y)+" - "+o.formatDatum(A),b=r?"<b>"+sanitizeHtml(l||r)+" ("+d+")</b>: "+i.formatDatum(g)+"<br>":"",_={title:w,backgroundColor:c,content:b+="<b>Frequency</b>: "+m};return h?toTooltipHtml$1(h({datum:f,xKey:n,xValue:f.domain,xName:s,yKey:r,yValue:f.aggregatedValue,yName:l,color:c,title:w,seriesId:p}),_):toTooltipHtml$1(_)},t.prototype.getLegendData=function(){var e=this,t=e.id,n=e.data,r=e.xKey,o=e.yName,i=e.visible,a=e.fill,s=e.stroke,l=e.fillOpacity,c=e.strokeOpacity;return n&&0!==n.length?[{id:t,itemId:r,seriesId:t,enabled:i,label:{text:o||r||"Frequency"},marker:{fill:a||"rgba(0, 0, 0, 0)",stroke:s||"rgba(0, 0, 0, 0)",fillOpacity:l,strokeOpacity:c}}]:[]},t.prototype.isLabelEnabled=function(){return this.label.enabled},t.className="HistogramSeries",t.type="histogram",__decorate$1p([Validate(OPT_COLOR_STRING)],t.prototype,"fill",void 0),__decorate$1p([Validate(OPT_COLOR_STRING)],t.prototype,"stroke",void 0),__decorate$1p([Validate(NUMBER(0,1))],t.prototype,"fillOpacity",void 0),__decorate$1p([Validate(NUMBER(0,1))],t.prototype,"strokeOpacity",void 0),__decorate$1p([Validate(OPT_LINE_DASH)],t.prototype,"lineDash",void 0),__decorate$1p([Validate(NUMBER(0))],t.prototype,"lineDashOffset",void 0),__decorate$1p([Validate(STRING)],t.prototype,"xKey",void 0),__decorate$1p([Validate(BOOLEAN)],t.prototype,"areaPlot",void 0),__decorate$1p([Validate(OPT_ARRAY())],t.prototype,"bins",void 0),__decorate$1p([Validate(HISTOGRAM_AGGREGATION)],t.prototype,"aggregation",void 0),__decorate$1p([Validate(OPT_NUMBER(0))],t.prototype,"binCount",void 0),__decorate$1p([Validate(STRING)],t.prototype,"xName",void 0),__decorate$1p([Validate(STRING)],t.prototype,"yKey",void 0),__decorate$1p([Validate(STRING)],t.prototype,"yName",void 0),__decorate$1p([Validate(NUMBER(0))],t.prototype,"strokeWidth",void 0),t}(CartesianSeries),__extends$21=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1o=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__awaiter$4=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$4=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__values$d=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$u=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},LineSeriesLabel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.formatter=void 0,t}return __extends$21(t,e),__decorate$1o([Validate(OPT_FUNCTION)],t.prototype,"formatter",void 0),t}(Label$1),LineSeriesTooltip=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderer=void 0,t.format=void 0,t}return __extends$21(t,e),__decorate$1o([Validate(OPT_FUNCTION)],t.prototype,"renderer",void 0),__decorate$1o([Validate(OPT_STRING)],t.prototype,"format",void 0),t}(SeriesTooltip),LineSeries=function(e){function t(){var t=e.call(this,{hasMarkers:!0,pickModes:[SeriesNodePickMode.NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST,SeriesNodePickMode.NEAREST_NODE,SeriesNodePickMode.EXACT_SHAPE_MATCH]})||this;t.xDomain=[],t.yDomain=[],t.pointsData=[],t.marker=new CartesianSeriesMarker,t.label=new LineSeriesLabel,t.title=void 0,t.stroke="#874349",t.lineDash=[0],t.lineDashOffset=0,t.strokeWidth=2,t.strokeOpacity=1,t.tooltip=new LineSeriesTooltip,t._xKey="",t.xName="",t._yKey="",t.yName="";var n=t,r=n.marker,o=n.label;return r.fill="#c16068",r.stroke="#874349",o.enabled=!1,t}return __extends$21(t,e),Object.defineProperty(t.prototype,"xKey",{get:function(){return this._xKey},set:function(e){this._xKey=e,this.pointsData.splice(0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yKey",{get:function(){return this._yKey},set:function(e){this._yKey=e,this.pointsData.splice(0)},enumerable:!1,configurable:!0}),t.prototype.getDomain=function(e){return e===ChartAxisDirection.X?this.xDomain:this.yDomain},t.prototype.processData=function(){return __awaiter$4(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A;return __generator$4(this,function(w){if(t=(e=this).xAxis,n=e.yAxis,r=e.xKey,o=e.yKey,i=e.pointsData,a=r&&o&&this.data?this.data:[],!t||!n)return[2];s=t.scale instanceof ContinuousScale,l=n.scale instanceof ContinuousScale,c=[],u=[],i.splice(0);try{for(d=__values$d(a),p=d.next();!p.done;p=d.next())h=p.value,f=h[r],g=h[o],m=checkDatum(f,s),s&&void 0===m||(v=checkDatum(g,l),c.push(m),u.push(v),i.push({xDatum:m,yDatum:v,datum:h}))}catch(e){y={error:e}}finally{try{p&&!p.done&&(A=d.return)&&A.call(d)}finally{if(y)throw y.error}}return this.validateXYData(this.xKey,this.yKey,a,t,n,c,u,1),this.xDomain=s?this.fixNumericExtent(extent$4(c),t):c,this.yDomain=l?this.fixNumericExtent(extent$4(u),n):u,[2]})})},t.prototype.createNodeData=function(){var e;return __awaiter$4(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_,C,E,S,O,x,D,P,M,T,R,I,F,k;return __generator$4(this,function(L){if(n=(t=this).data,r=t.xAxis,o=t.yAxis,i=t.marker,a=i.enabled,s=i.size,l=i.strokeWidth,!n||!r||!o)return[2,[]];for(u=(c=this).pointsData,d=c.label,p=c.yKey,h=c.xKey,f=c.id,g=r.scale,m=o.scale,v=(g.bandwidth||0)/2,y=(m.bandwidth||0)/2,A=new Array(n.length),w=a?s:0,b=!0,_=void 0,C=void 0,E=0,S=0;S<u.length;S++)if(void 0===(O=C||u[S]).yDatum)_=void 0,b=!0;else{if(x=O.xDatum,D=O.yDatum,P=O.datum,M=g.convert(x)+v,isNaN(M)){_=void 0,b=!0;continue}if(T=(g.bandwidth||.5*s+(l||0))+1,C=void 0===(null===(e=u[S+1])||void 0===e?void 0:e.yDatum)?void 0:u[S+1],R=r.inRangeEx(M,0,T),I=C&&r.inRangeEx(g.convert(C.xDatum)+v,0,T),-1===R&&-1===I){b=!0;continue}if(1===R&&1===_){b=!0;continue}_=R,F=m.convert(D)+y,k=d.formatter?d.formatter({value:D,seriesId:f}):"number"==typeof D&&isFinite(D)?D.toFixed(2):D?String(D):"",A[E++]={series:this,datum:P,yKey:p,xKey:h,point:{x:M,y:F,moveTo:b,size:w},nodeMidPoint:{x:M,y:F},label:k?{text:k,fontStyle:d.fontStyle,fontWeight:d.fontWeight,fontSize:d.fontSize,fontFamily:d.fontFamily,textAlign:"center",textBaseline:"bottom",fill:d.color}:void 0},b=!1}return A.length=E,[2,[{itemId:p,nodeData:A,labelData:A}]]})})},t.prototype.isPathOrSelectionDirty=function(){return this.marker.isDirty()},t.prototype.updatePaths=function(e){return __awaiter$4(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l,c;return __generator$4(this,function(u){t=e.contextData.nodeData,n=__read$u(e.paths,1),r=n[0],o=r.path,r.fill=void 0,r.lineJoin="round",r.pointerEvents=PointerEvents.None,o.clear({trackChanges:!0});try{for(i=__values$d(t),a=i.next();!a.done;a=i.next())(s=a.value).point.moveTo?o.moveTo(s.point.x,s.point.y):o.lineTo(s.point.x,s.point.y)}catch(e){l={error:e}}finally{try{a&&!a.done&&(c=i.return)&&c.call(i)}finally{if(l)throw l.error}}return r.checkPathDirty(),[2]})})},t.prototype.updatePathNodes=function(e){return __awaiter$4(this,void 0,void 0,function(){var t,n;return __generator$4(this,function(r){return t=__read$u(e.paths,1),(n=t[0]).stroke=this.stroke,n.strokeWidth=this.getStrokeWidth(this.strokeWidth),n.strokeOpacity=this.strokeOpacity,n.lineDash=this.lineDash,n.lineDashOffset=this.lineDashOffset,[2]})})},t.prototype.markerFactory=function(){return new(getMarker$1(this.marker.shape))},t.prototype.updateMarkerSelection=function(e){return __awaiter$4(this,void 0,void 0,function(){var t,n,r,o,i;return __generator$4(this,function(a){return t=e.nodeData,n=e.markerSelection,r=this.marker,o=r.shape,i=r.enabled,t=o&&i?t:[],this.marker.isDirty()&&n.clear(),[2,n.update(t)]})})},t.prototype.updateMarkerNodes=function(e){return __awaiter$4(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w;return __generator$4(this,function(b){return t=e.markerSelection,n=e.isHighlight,o=(r=this).marker,i=r.marker.fillOpacity,a=r.xKey,s=r.yKey,l=r.stroke,c=r.strokeOpacity,u=r.highlightStyle.item,d=u.fill,p=u.fillOpacity,h=void 0===p?i:p,f=u.stroke,g=u.strokeWidth,m=r.id,v=o.size,y=o.formatter,A=void 0!==o.strokeWidth?o.strokeWidth:this.strokeWidth,w="function"==typeof o.shape,t.each(function(e,t){var r,u,p=n&&void 0!==d?d:o.fill,b=n?h:i,_=n&&void 0!==f?f:o.stroke||l,C=n&&void 0!==g?g:A,E=void 0;y&&(E=y({datum:t.datum,xKey:a,yKey:s,fill:p,stroke:_,strokeWidth:C,size:v,highlighted:n,seriesId:m})),e.fill=E&&E.fill||p,e.stroke=E&&E.stroke||_,e.strokeWidth=E&&void 0!==E.strokeWidth?E.strokeWidth:C,e.fillOpacity=null!=b?b:1,e.strokeOpacity=null!==(u=null!==(r=o.strokeOpacity)&&void 0!==r?r:c)&&void 0!==u?u:1,e.size=E&&void 0!==E.size?E.size:v,e.translationX=t.point.x,e.translationY=t.point.y,e.visible=e.size>0&&!isNaN(t.point.x)&&!isNaN(t.point.y),w&&!e.dirtyPath&&(e.path.clear({trackChanges:!0}),e.updatePath(),e.checkPathDirty())}),n||this.marker.markClean(),[2]})})},t.prototype.updateLabelSelection=function(e){return __awaiter$4(this,void 0,void 0,function(){var t,n,r,o,i;return __generator$4(this,function(a){return t=e.labelData,n=e.labelSelection,r=this.marker,o=r.shape,i=r.enabled,t=o&&i?t:[],[2,n.update(t)]})})},t.prototype.updateLabelNodes=function(e){return __awaiter$4(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l;return __generator$4(this,function(c){return t=e.labelSelection,n=this.label,r=n.enabled,o=n.fontStyle,i=n.fontWeight,a=n.fontSize,s=n.fontFamily,l=n.color,t.each(function(e,t){var n=t.point,c=t.label;t&&c&&r?(e.fontStyle=o,e.fontWeight=i,e.fontSize=a,e.fontFamily=s,e.textAlign=c.textAlign,e.textBaseline=c.textBaseline,e.text=c.text,e.x=n.x,e.y=n.y-10,e.fill=l,e.visible=!0):e.visible=!1}),[2]})})},t.prototype.getNodeClickEvent=function(e,t){return new CartesianSeriesNodeClickEvent(this.xKey,this.yKey,e,t,this)},t.prototype.getNodeDoubleClickEvent=function(e,t){return new CartesianSeriesNodeDoubleClickEvent(this.xKey,this.yKey,e,t,this)},t.prototype.getTooltipHtml=function(e){var t=this,n=t.xKey,r=t.yKey,o=t.xAxis,i=t.yAxis;if(!(n&&r&&o&&i))return"";var a=this,s=a.xName,l=a.yName,c=a.tooltip,u=a.marker,d=a.id,p=c.renderer,h=c.format,f=e.datum,g=f[n],m=f[r],v=o.formatDatum(g),y=i.formatDatum(m),A=sanitizeHtml(this.title||l),w=sanitizeHtml(v+": "+y),b=u.formatter,_=u.fill,C=u.stroke,E=u.strokeWidth,S=u.size,O=void 0!==E?E:this.strokeWidth,x=void 0;b&&(x=b({datum:f,xKey:n,yKey:r,fill:_,stroke:C,strokeWidth:O,size:S,highlighted:!1,seriesId:d}));var D=x&&x.fill||_,P={title:A,backgroundColor:D,content:w};if(h||p){var M={datum:f,xKey:n,xValue:g,xName:s,yKey:r,yValue:m,yName:l,title:A,color:D,seriesId:d};if(h)return toTooltipHtml$1({content:interpolate(h,M)},P);if(p)return toTooltipHtml$1(p(M),P)}return toTooltipHtml$1(P)},t.prototype.getLegendData=function(){var e,t,n,r=this,o=r.id,i=r.data,a=r.xKey,s=r.yKey,l=r.yName,c=r.visible,u=r.title,d=r.marker,p=r.stroke,h=r.strokeOpacity;return i&&i.length&&a&&s?[{id:o,itemId:s,seriesId:o,enabled:c,label:{text:u||l||s},marker:{shape:d.shape,fill:d.fill||"rgba(0, 0, 0, 0)",stroke:d.stroke||p||"rgba(0, 0, 0, 0)",fillOpacity:null!==(e=d.fillOpacity)&&void 0!==e?e:1,strokeOpacity:null!==(n=null!==(t=d.strokeOpacity)&&void 0!==t?t:h)&&void 0!==n?n:1}}]:[]},t.prototype.isLabelEnabled=function(){return this.label.enabled},t.className="LineSeries",t.type="line",__decorate$1o([Validate(OPT_STRING)],t.prototype,"title",void 0),__decorate$1o([Validate(OPT_COLOR_STRING)],t.prototype,"stroke",void 0),__decorate$1o([Validate(OPT_LINE_DASH)],t.prototype,"lineDash",void 0),__decorate$1o([Validate(NUMBER(0))],t.prototype,"lineDashOffset",void 0),__decorate$1o([Validate(NUMBER(0))],t.prototype,"strokeWidth",void 0),__decorate$1o([Validate(NUMBER(0,1))],t.prototype,"strokeOpacity",void 0),__decorate$1o([Validate(STRING)],t.prototype,"_xKey",void 0),__decorate$1o([Validate(STRING)],t.prototype,"xName",void 0),__decorate$1o([Validate(STRING)],t.prototype,"_yKey",void 0),__decorate$1o([Validate(STRING)],t.prototype,"yName",void 0),t}(CartesianSeries),__extends$20=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$w=function(){return __assign$w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$w.apply(this,arguments)},__decorate$1n=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__awaiter$3=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$3=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__read$t=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$g=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$t(arguments[t]));return e},__values$c=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ScatterSeriesNodeBaseClickEvent=function(e){function t(t,n,r,o,i,a){var s=e.call(this,n,r,o,i,a)||this;return s.sizeKey=t,s}return __extends$20(t,e),t}(CartesianSeriesNodeBaseClickEvent),ScatterSeriesNodeClickEvent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="nodeClick",t}return __extends$20(t,e),t}(ScatterSeriesNodeBaseClickEvent),ScatterSeriesNodeDoubleClickEvent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="nodeDoubleClick",t}return __extends$20(t,e),t}(ScatterSeriesNodeBaseClickEvent),ScatterSeriesTooltip=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderer=void 0,t}return __extends$20(t,e),__decorate$1n([Validate(OPT_FUNCTION)],t.prototype,"renderer",void 0),t}(SeriesTooltip),ScatterSeries=function(e){function t(){var t=e.call(this,{pickModes:[SeriesNodePickMode.NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST,SeriesNodePickMode.NEAREST_NODE,SeriesNodePickMode.EXACT_SHAPE_MATCH],pathsPerSeries:0,hasMarkers:!0})||this;return t.sizeScale=new LinearScale$1,t.marker=new CartesianSeriesMarker,t.label=new Label$1,t.title=void 0,t.labelKey=void 0,t.xName="",t.yName="",t.sizeName="Size",t.labelName="Label",t._xKey="",t._yKey="",t._sizeKey=void 0,t.tooltip=new ScatterSeriesTooltip,t.label.enabled=!1,t}return __extends$20(t,e),Object.defineProperty(t.prototype,"xKey",{get:function(){return this._xKey},set:function(e){this._xKey=e,this.processedData=void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yKey",{get:function(){return this._yKey},set:function(e){this._yKey=e,this.processedData=void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeKey",{get:function(){return this._sizeKey},set:function(e){this._sizeKey=e,this.processedData=void 0},enumerable:!1,configurable:!0}),t.prototype.processData=function(){var e,t,n,r;return __awaiter$3(this,void 0,void 0,function(){var o,i,a,s,l,c,u,d,p,h,f,g;return __generator$3(this,function(m){return i=(o=this).xKey,a=o.yKey,s=o.sizeKey,l=o.xAxis,c=o.yAxis,u=o.marker,d=o.data,p=(null==l?void 0:l.scale)instanceof ContinuousScale,h=(null==c?void 0:c.scale)instanceof ContinuousScale,this.dataModel=new DataModel({props:__spread$g([valueProperty(i,p),valueProperty(a,h)],s?[valueProperty(s,!0)]:[]),dataVisible:this.visible}),this.processedData=this.dataModel.processData(null!=d?d:[]),s&&(f=null!==(t=null===(e=this.dataModel.resolveProcessedDataIndex(s))||void 0===e?void 0:e.index)&&void 0!==t?t:-1,g=null!==(r=null===(n=this.processedData)||void 0===n?void 0:n.domain.values[f])&&void 0!==r?r:[],this.sizeScale.domain=u.domain?u.domain:g),[2]})})},t.prototype.getDomain=function(e){var t,n,r,o,i,a,s=null===(t=this.dataModel)||void 0===t?void 0:t.resolveProcessedDataIndex(this.xKey),l=null===(n=this.dataModel)||void 0===n?void 0:n.resolveProcessedDataIndex(this.yKey);return s&&l?e===ChartAxisDirection.X?null!==(o=null===(r=this.processedData)||void 0===r?void 0:r.domain.values[0])&&void 0!==o?o:[]:null!==(a=null===(i=this.processedData)||void 0===i?void 0:i.domain.values[1])&&void 0!==a?a:[]:[]},t.prototype.getNodeClickEvent=function(e,t){return new ScatterSeriesNodeClickEvent(this.sizeKey,this.xKey,this.yKey,e,t,this)},t.prototype.getNodeDoubleClickEvent=function(e,t){return new ScatterSeriesNodeDoubleClickEvent(this.sizeKey,this.xKey,this.yKey,e,t,this)},t.prototype.createNodeData=function(){var e,t,n,r,o,i;return __awaiter$3(this,void 0,void 0,function(){var a,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_,C,E,S,O,x,D,P,M,T,R,I,F,k,L,B;return __generator$3(this,function(N){if(s=(a=this).visible,l=a.xAxis,c=a.yAxis,u=a.yKey,d=a.xKey,p=a.label,h=a.labelKey,f=null===(e=this.dataModel)||void 0===e?void 0:e.resolveProcessedDataIndex(d),g=null===(t=this.dataModel)||void 0===t?void 0:t.resolveProcessedDataIndex(u),!(f&&g&&s&&l&&c))return[2,[]];m=l.scale,v=c.scale,y=(m.bandwidth||0)/2,A=(v.bandwidth||0)/2,b=(w=this).sizeScale,_=w.marker,C=new Array(null!==(r=null===(n=this.processedData)||void 0===n?void 0:n.data.length)&&void 0!==r?r:0),b.range=[_.size,_.maxSize],E=p.getFont(),S=0;try{for(O=__values$c(null!==(i=null===(o=this.processedData)||void 0===o?void 0:o.data)&&void 0!==i?i:[]),x=O.next();!x.done;x=O.next())D=x.value,P=D.values,M=D.datum,T=m.convert(P[f.index])+y,R=v.convert(P[g.index])+A,this.checkRangeXY(T,R,l,c)&&(I=h?String(M[h]):"",F=HdpiCanvas.getTextSize(I,E),k=P.length>2?b.convert(P[2]):_.size,C[S++]={series:this,itemId:u,yKey:u,xKey:d,datum:M,point:{x:T,y:R,size:k},nodeMidPoint:{x:T,y:R},label:__assign$w({text:I},F)})}catch(e){L={error:e}}finally{try{x&&!x.done&&(B=O.return)&&B.call(O)}finally{if(L)throw L.error}}return C.length=S,[2,[{itemId:this.yKey,nodeData:C,labelData:C}]]})})},t.prototype.isPathOrSelectionDirty=function(){return this.marker.isDirty()},t.prototype.getLabelData=function(){var e;return null===(e=this.contextNodeData)||void 0===e?void 0:e.reduce(function(e,t){return e.concat(t.labelData)},[])},t.prototype.markerFactory=function(){return new(getMarker$1(this.marker.shape))},t.prototype.updateMarkerSelection=function(e){return __awaiter$3(this,void 0,void 0,function(){var t,n,r,o;return __generator$3(this,function(i){return t=e.nodeData,n=e.markerSelection,r=this.marker.enabled,this.marker.isDirty()&&n.clear(),o=r?t:[],[2,n.update(o)]})})},t.prototype.updateMarkerNodes=function(e){return __awaiter$3(this,void 0,void 0,function(){var t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w;return __generator$3(this,function(b){return t=e.markerSelection,n=e.isHighlight,o=(r=this).marker,i=r.xKey,a=r.yKey,s=r.sizeScale,l=r.marker,c=l.fillOpacity,u=l.strokeOpacity,d=l.strokeWidth,p=r.highlightStyle.item,h=p.fill,f=p.fillOpacity,g=void 0===f?c:f,m=p.stroke,v=p.strokeWidth,y=r.id,A=o.formatter,s.range=[o.size,o.maxSize],w="function"==typeof o.shape,t.each(function(e,t){var r,s,l,p,f,b,_,C=n&&void 0!==h?h:o.fill,E=n?g:c,S=n&&void 0!==m?m:o.stroke,O=u,x=n&&void 0!==v?v:null!=d?d:1,D=null!==(s=null===(r=t.point)||void 0===r?void 0:r.size)&&void 0!==s?s:0,P=void 0;A&&(P=A({datum:t.datum,xKey:i,yKey:a,fill:C,stroke:S,strokeWidth:x,size:D,highlighted:n,seriesId:y})),e.fill=P&&P.fill||C,e.stroke=P&&P.stroke||S,e.strokeWidth=null!==(l=null==P?void 0:P.strokeWidth)&&void 0!==l?l:x,e.size=P&&void 0!==P.size?P.size:D,e.fillOpacity=null!=E?E:1,e.strokeOpacity=null!=O?O:1,e.translationX=null!==(f=null===(p=t.point)||void 0===p?void 0:p.x)&&void 0!==f?f:0,e.translationY=null!==(_=null===(b=t.point)||void 0===b?void 0:b.y)&&void 0!==_?_:0,e.visible=e.size>0,w&&!e.dirtyPath&&(e.path.clear({trackChanges:!0}),e.updatePath(),e.checkPathDirty())}),n||this.marker.markClean(),[2]})})},t.prototype.updateLabelSelection=function(e){var t,n;return __awaiter$3(this,void 0,void 0,function(){var r,o,i,a;return __generator$3(this,function(s){return r=e.labelSelection,o=this.label.enabled,i=o&&null!==(n=null===(t=this.chart)||void 0===t?void 0:t.placeLabels().get(this))&&void 0!==n?n:[],a=i.map(function(e){return __assign$w(__assign$w({},e.datum),{point:{x:e.x,y:e.y,size:e.datum.point.size}})}),[2,r.update(a)]})})},t.prototype.updateLabelNodes=function(e){return __awaiter$3(this,void 0,void 0,function(){var t,n;return __generator$3(this,function(r){return t=e.labelSelection,n=this.label,t.each(function(e,t){var r,o,i,a;e.text=t.label.text,e.fill=n.color,e.x=null!==(o=null===(r=t.point)||void 0===r?void 0:r.x)&&void 0!==o?o:0,e.y=null!==(a=null===(i=t.point)||void 0===i?void 0:i.y)&&void 0!==a?a:0,e.fontStyle=n.fontStyle,e.fontWeight=n.fontWeight,e.fontSize=n.fontSize,e.fontFamily=n.fontFamily,e.textAlign="left",e.textBaseline="top"}),[2]})})},t.prototype.getTooltipHtml=function(e){var t,n,r,o=this,i=o.xKey,a=o.yKey,s=o.xAxis,l=o.yAxis;if(!(i&&a&&s&&l))return"";var c=this,u=c.marker,d=c.tooltip,p=c.xName,h=c.yName,f=c.sizeKey,g=c.sizeName,m=c.labelKey,v=c.labelName,y=c.id,A=u.fill,w=u.stroke,b=this.getStrokeWidth(null!==(t=u.strokeWidth)&&void 0!==t?t:1),_=this.marker.formatter,C=void 0;_&&(C=_({datum:e,xKey:i,yKey:a,fill:A,stroke:w,strokeWidth:b,size:null!==(r=null===(n=e.point)||void 0===n?void 0:n.size)&&void 0!==r?r:0,highlighted:!1,seriesId:y}));var E=C&&C.fill||A||"gray",S=this.title||h,O=e.datum,x=O[i],D=O[a],P=sanitizeHtml(s.formatDatum(x)),M=sanitizeHtml(l.formatDatum(D)),T="<b>"+sanitizeHtml(p||i)+"</b>: "+P+"<br><b>"+sanitizeHtml(h||a)+"</b>: "+M;f&&(T+="<br><b>"+sanitizeHtml(g||f)+"</b>: "+sanitizeHtml(O[f])),m&&(T="<b>"+sanitizeHtml(v||m)+"</b>: "+sanitizeHtml(O[m])+"<br>"+T);var R={title:S,backgroundColor:E,content:T},I=d.renderer;return I?toTooltipHtml$1(I({datum:O,xKey:i,xValue:x,xName:p,yKey:a,yValue:D,yName:h,sizeKey:f,sizeName:g,labelKey:m,labelName:v,title:S,color:E,seriesId:y}),R):toTooltipHtml$1(R)},t.prototype.getLegendData=function(){var e=this,t=e.id,n=e.data,r=e.xKey,o=e.yKey,i=e.yName,a=e.title,s=e.visible,l=e.marker,c=l.fill,u=l.stroke,d=l.fillOpacity,p=l.strokeOpacity;return n&&n.length&&r&&o?[{id:t,itemId:o,seriesId:t,enabled:s,label:{text:a||i||o},marker:{shape:l.shape,fill:l.fill||c||"rgba(0, 0, 0, 0)",stroke:l.stroke||u||"rgba(0, 0, 0, 0)",fillOpacity:null!=d?d:1,strokeOpacity:null!=p?p:1}}]:[]},t.prototype.isLabelEnabled=function(){return this.label.enabled},t.className="ScatterSeries",t.type="scatter",__decorate$1n([Validate(OPT_STRING)],t.prototype,"title",void 0),__decorate$1n([Validate(OPT_STRING)],t.prototype,"labelKey",void 0),__decorate$1n([Validate(STRING)],t.prototype,"xName",void 0),__decorate$1n([Validate(STRING)],t.prototype,"yName",void 0),__decorate$1n([Validate(OPT_STRING)],t.prototype,"sizeName",void 0),__decorate$1n([Validate(OPT_STRING)],t.prototype,"labelName",void 0),__decorate$1n([Validate(STRING)],t.prototype,"_xKey",void 0),__decorate$1n([Validate(STRING)],t.prototype,"_yKey",void 0),__decorate$1n([Validate(OPT_STRING)],t.prototype,"_sizeKey",void 0),t}(CartesianSeries);function isPointInSector(e,t,n){var r=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),o=n.innerRadius,i=n.outerRadius;if(r<Math.min(o,i)||r>Math.max(o,i))return!1;var a=Math.atan2(t,e);a<-Math.PI/2&&(a+=2*Math.PI);var s=n.startAngle,l=n.endAngle;return l===-Math.PI/2?a<s:s===3*Math.PI/2?a>l:a>=l&&a<=s}function lineCollidesSector(e,t){var n=t.startAngle,r=t.endAngle,o=t.innerRadius,i=t.outerRadius,a={x:i*Math.cos(n),y:i*Math.sin(n)},s={x:i*Math.cos(r),y:i*Math.sin(r)},l=0===o?{x:0,y:0}:{x:o*Math.cos(n),y:o*Math.sin(n)},c=0===o?{x:0,y:0}:{x:o*Math.cos(r),y:o*Math.sin(r)};return null!=segmentIntersection(e.start.x,e.start.y,e.end.x,e.end.y,a.x,a.y,l.x,l.y)||null!=segmentIntersection(e.start.x,e.start.y,e.end.x,e.end.y,s.x,s.y,c.x,c.y)||arcIntersections(0,0,i,n,r,!0,e.start.x,e.start.y,e.end.x,e.end.y).length>0}function boxCollidesSector(e,t){var n={x:e.x,y:e.y},r={x:e.x+e.width,y:e.y},o={x:e.x,y:e.y+e.height},i={x:e.x+e.width,y:e.y+e.height};return lineCollidesSector({start:n,end:r},t)||lineCollidesSector({start:o,end:i},t)}var __extends$1$=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1m=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sector=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.centerX=0,t.centerY=0,t.innerRadius=10,t.outerRadius=20,t.startAngle=0,t.endAngle=2*Math.PI,t.angleOffset=0,t}return __extends$1$(t,e),t.prototype.computeBBox=function(){var e=this.outerRadius;return new BBox(this.centerX-e,this.centerY-e,2*e,2*e)},t.prototype.updatePath=function(){var e=this.path,t=this.angleOffset,n=Math.min(this.startAngle,this.endAngle)+t,r=Math.max(this.startAngle,this.endAngle)+t,o=Math.min(this.innerRadius,this.outerRadius),i=Math.max(this.innerRadius,this.outerRadius),a=isEqual$2(normalizeAngle360(this.startAngle),normalizeAngle360(this.endAngle)),s=this.centerX,l=this.centerY;e.clear(),a?(e.arc(s,l,i,n,r),o>0&&(e.moveTo(s+o*Math.cos(r),l+o*Math.sin(r)),e.arc(s,l,o,r,n,!0))):(e.moveTo(s+o*Math.cos(n),l+o*Math.sin(n)),e.arc(s,l,i,n,r),o>0?e.arc(s,l,o,r,n,!0):e.lineTo(s,l)),e.closePath(),this.dirtyPath=!1},t.prototype.isPointInPath=function(e,t){var n=this.angleOffset,r=this.startAngle+n,o=this.endAngle+n,i=Math.min(this.innerRadius,this.outerRadius),a=Math.max(this.innerRadius,this.outerRadius),s=this.transformPoint(e,t);return isPointInSector(s.x,s.y,{startAngle:r,endAngle:o,innerRadius:i,outerRadius:a})},t.className="Sector",__decorate$1m([ScenePathChangeDetection()],t.prototype,"centerX",void 0),__decorate$1m([ScenePathChangeDetection()],t.prototype,"centerY",void 0),__decorate$1m([ScenePathChangeDetection()],t.prototype,"innerRadius",void 0),__decorate$1m([ScenePathChangeDetection()],t.prototype,"outerRadius",void 0),__decorate$1m([ScenePathChangeDetection()],t.prototype,"startAngle",void 0),__decorate$1m([ScenePathChangeDetection()],t.prototype,"endAngle",void 0),__decorate$1m([ScenePathChangeDetection()],t.prototype,"angleOffset",void 0),t}(Path),__extends$1_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$v=function(){return __assign$v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$v.apply(this,arguments)},__decorate$1l=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__awaiter$2=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$2=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__read$s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$f=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$s(arguments[t]));return e},PieSeriesNodeBaseClickEvent=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,i,a,s)||this;return l.angleKey=t,l.calloutLabelKey=n,l.sectorLabelKey=r,l.radiusKey=o,l}return __extends$1_(t,e),__decorate$1l([DeprecatedAndRenamedTo("calloutLabelKey")],t.prototype,"labelKey",void 0),t}(SeriesNodeBaseClickEvent),PieSeriesNodeClickEvent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="nodeClick",t}return __extends$1_(t,e),t}(PieSeriesNodeBaseClickEvent),PieSeriesNodeDoubleClickEvent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="nodeDoubleClick",t}return __extends$1_(t,e),t}(PieSeriesNodeBaseClickEvent),PieNodeTag;!function(e){e[e.Sector=0]="Sector",e[e.Callout=1]="Callout",e[e.Label=2]="Label"}(PieNodeTag||(PieNodeTag={}));var PieSeriesCalloutLabel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.offset=3,t.minAngle=0,t.formatter=void 0,t.minSpacing=4,t.maxCollisionOffset=50,t}return __extends$1_(t,e),__decorate$1l([Validate(NUMBER(0))],t.prototype,"offset",void 0),__decorate$1l([Validate(NUMBER(0))],t.prototype,"minAngle",void 0),__decorate$1l([Validate(OPT_FUNCTION)],t.prototype,"formatter",void 0),__decorate$1l([Validate(NUMBER(0))],t.prototype,"minSpacing",void 0),__decorate$1l([Validate(NUMBER(0))],t.prototype,"maxCollisionOffset",void 0),t}(Label$1),PieSeriesSectorLabel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.positionOffset=0,t.positionRatio=.5,t.formatter=void 0,t}return __extends$1_(t,e),__decorate$1l([Validate(NUMBER())],t.prototype,"positionOffset",void 0),__decorate$1l([Validate(NUMBER(0,1))],t.prototype,"positionRatio",void 0),__decorate$1l([Validate(OPT_FUNCTION)],t.prototype,"formatter",void 0),t}(Label$1),PieSeriesCalloutLine=function(){function e(){this.colors=void 0,this.length=10,this.strokeWidth=1}return __decorate$1l([Validate(OPT_COLOR_STRING_ARRAY)],e.prototype,"colors",void 0),__decorate$1l([Validate(NUMBER(0))],e.prototype,"length",void 0),__decorate$1l([Validate(NUMBER(0))],e.prototype,"strokeWidth",void 0),e}(),PieSeriesTooltip=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderer=void 0,t}return __extends$1_(t,e),__decorate$1l([Validate(OPT_FUNCTION)],t.prototype,"renderer",void 0),t}(SeriesTooltip),PieTitle=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.showInLegend=!1,t}return __extends$1_(t,e),__decorate$1l([Validate(BOOLEAN)],t.prototype,"showInLegend",void 0),t}(Caption),DoughnutInnerLabel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.text="",t.margin=2,t}return __extends$1_(t,e),__decorate$1l([Validate(STRING)],t.prototype,"text",void 0),__decorate$1l([Validate(NUMBER())],t.prototype,"margin",void 0),t}(Label$1),DoughnutInnerCircle=function(){function e(){this.fill="transparent",this.fillOpacity=1}return __decorate$1l([Validate(COLOR_STRING)],e.prototype,"fill",void 0),__decorate$1l([Validate(OPT_NUMBER(0,1))],e.prototype,"fillOpacity",void 0),e}(),PieSeries=function(e){function t(){var t,n=e.call(this,{useLabelLayer:!0})||this;n.radiusScale=new LinearScale$1,n.groupSelection=Selection.select(n.contentGroup,Group),n.highlightSelection=Selection.select(n.highlightGroup,Group),n.groupSelectionData=[],n.sectorFormatData=[],n.angleScale=((t=new LinearScale$1).domain=[0,1],t.range=[-Math.PI,Math.PI].map(function(e){return e+Math.PI/2}),t),n.seriesItemEnabled=[],n.calloutLabel=new PieSeriesCalloutLabel,n.label=n.calloutLabel,n.sectorLabel=new PieSeriesSectorLabel,n.calloutLine=new PieSeriesCalloutLine,n.callout=n.calloutLine,n.tooltip=new PieSeriesTooltip,n.angleKey="",n.angleName="",n.innerLabels=[],n.radiusKey=void 0,n.radiusName=void 0,n.radiusMin=void 0,n.radiusMax=void 0,n.calloutLabelKey=void 0,n.calloutLabelName=void 0,n.labelKey=void 0,n.labelName=void 0,n.sectorLabelKey=void 0,n.sectorLabelName=void 0,n.legendItemKey=void 0,n.fills=["#c16068","#a2bf8a","#ebcc87","#80a0c3","#b58dae","#85c0d1"],n.strokes=["#874349","#718661","#a48f5f","#5a7088","#7f637a","#5d8692"],n.fillOpacity=1,n.strokeOpacity=1,n.lineDash=[0],n.lineDashOffset=0,n.formatter=void 0,n.rotation=0,n.outerRadiusOffset=0,n.outerRadiusRatio=1,n.innerRadiusOffset=0,n.innerRadiusRatio=1,n.strokeWidth=1,n.shadow=void 0,n.highlightStyle=new HighlightStyle,n.datumSectorRefs=new WeakMap,n.backgroundGroup=n.rootGroup.appendChild(new Group({name:n.id+"-background",layer:!0,zIndex:Layers.SERIES_BACKGROUND_ZINDEX}));var r=new Group({name:"pieCalloutLabels"}),o=new Group({name:"pieSectorLabels"}),i=new Group({name:"innerLabels"});return n.labelGroup.append(r),n.labelGroup.append(o),n.labelGroup.append(i),n.calloutLabelSelection=Selection.select(r,Group),n.sectorLabelSelection=Selection.select(o,Text),n.innerLabelsSelection=Selection.select(i,Text),n}return __extends$1_(t,e),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){var t,n,r=this._title;r!==e&&(r&&(null===(t=this.labelGroup)||void 0===t||t.removeChild(r.node)),e&&(e.node.textBaseline="bottom",null===(n=this.labelGroup)||void 0===n||n.appendChild(e.node)),this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.processSeriesItemEnabled()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerCircle",{get:function(){return this._innerCircleConfig},set:function(e){var t;if(this._innerCircleConfig!==e){var n=this._innerCircleNode,r=void 0;n&&this.backgroundGroup.removeChild(n),e&&((r=new Circle).fill=e.fill,r.fillOpacity=null!==(t=e.fillOpacity)&&void 0!==t?t:1,this.backgroundGroup.appendChild(r)),this._innerCircleConfig=e,this._innerCircleNode=r}},enumerable:!1,configurable:!0}),t.prototype.visibleChanged=function(){this.processSeriesItemEnabled()},t.prototype.processSeriesItemEnabled=function(){var e=this.data,t=this.visible;this.seriesItemEnabled=(null==e?void 0:e.map(function(){return t}))||[]},t.prototype.getDomain=function(e){return e===ChartAxisDirection.X?this.angleScale.domain:this.radiusScale.domain},t.prototype.processData=function(){return __awaiter$2(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_,C,E,S,O,x,D,P,M,T,R,I,F,k=this;return __generator$2(this,function(L){var B;return t=(e=this).angleKey,n=e.radiusKey,r=e.seriesItemEnabled,o=e.angleScale,i=e.groupSelectionData,a=e.sectorFormatData,s=e.calloutLabel,l=e.sectorLabel,c=e.id,u=t&&this.data?this.data:[],d=u.map(function(e,n){return r[n]&&Math.abs(+e[t])||0}),p=d.reduce(function(e,t){return e+t},0),B=0,h=d.map(function(e){return B+=e/p}),f=s.formatter,g=s.enabled?this.calloutLabelKey:void 0,m=l.enabled?this.sectorLabelKey:void 0,v=[],y=[],A=[],w=function(e){return{datum:e,angleKey:t,angleValue:e[t],angleName:k.angleName,radiusKey:n,radiusValue:n?e[n]:void 0,radiusName:k.radiusName,labelKey:g,labelValue:g?e[g]:void 0,labelName:k.calloutLabelName,calloutLabelKey:g,calloutLabelValue:g?e[g]:void 0,calloutLabelName:k.calloutLabelName,sectorLabelKey:m,sectorLabelValue:m?e[m]:void 0,sectorLabelName:k.sectorLabelName,seriesId:c}},g&&(f?(b=function(){return Logger.warnOnce("the use of { value } in the pie chart label formatter function is deprecated. Please use { datum, labelKey, ... } instead.")},v=u.map(function(e){var t=e[g],n=__assign$v(__assign$v({},w(e)),{get value(){return b(),t},set value(e){b(),t=e}});return f(n)})):v=u.map(function(e){return String(e[g])})),_=l.formatter,m&&(y=_?u.map(function(e){var t=w(e);return _(t)}):u.map(function(e){return String(e[m])})),n&&(E=(C=this).radiusMin,S=C.radiusMax,O=u.map(function(e){return Math.abs(e[n])}),x=null!=E?E:0,D=S||Math.max.apply(Math,__spread$f(O)),P=D-x,A=O.map(function(e){return P?(e-x)/P:1})),i.length=0,a.length=0,a.push.apply(a,__spread$f(u.map(function(e,t){return k.getSectorFormat(e,t,t,!1)}))),M=toRadians$1(this.rotation),T=Math.PI/2,R=0,I=[{textAlign:"center",textBaseline:"bottom"},{textAlign:"left",textBaseline:"middle"},{textAlign:"center",textBaseline:"hanging"},{textAlign:"right",textBaseline:"middle"}],F=0,h.forEach(function(e){if(!isNaN(e)){var t=n?A[R]:1,r=o.convert(e)+M,l=o.convert(F)+M,c=(r+l)/2,d=Math.abs(l-r),p=Math.cos(c),h=Math.sin(c),f=toRadians$1(s.minAngle),w=g&&d>f,b=normalizeAngle180(c)- -3*Math.PI/4,_=mod(Math.floor(b/T),I.length),C=I[_],E=C.textAlign,S=C.textBaseline,O=u[R],x=R;i.push({series:k,datum:O,itemId:x,index:R,radius:t,startAngle:r,endAngle:l,midAngle:c,midCos:p,midSin:h,calloutLabel:w?{text:v[R],textAlign:E,textBaseline:S,hidden:!1,collisionTextAlign:void 0,collisionOffsetY:0,box:void 0}:void 0,sectorLabel:m?{text:y[R]}:void 0,sectorFormat:a[R]}),R++,F=e}}),[2]})})},t.prototype.getSectorFormat=function(e,t,n,r){var o,i,a,s,l,c,u=this,d=u.angleKey,p=u.radiusKey,h=u.fills,f=u.strokes,g=u.fillOpacity,m=u.formatter,v=u.id,y=null===(o=this.highlightManager)||void 0===o?void 0:o.getActiveHighlight(),A=r&&(null==y?void 0:y.series)===this&&t===y.itemId,w=A?this.highlightStyle.item:null,b=(null==w?void 0:w.fill)||h[n%h.length],_=null!==(i=null==w?void 0:w.fillOpacity)&&void 0!==i?i:g,C=(null==w?void 0:w.stroke)||f[n%f.length],E=null!==(a=null==w?void 0:w.strokeWidth)&&void 0!==a?a:this.getStrokeWidth(this.strokeWidth);return m&&(c=m({datum:e,angleKey:d,radiusKey:p,fill:b,stroke:C,strokeWidth:E,highlighted:A,seriesId:v})),{fill:(null==c?void 0:c.fill)||b,fillOpacity:null!==(s=null==c?void 0:c.fillOpacity)&&void 0!==s?s:_,stroke:(null==c?void 0:c.stroke)||C,strokeWidth:null!==(l=null==c?void 0:c.strokeWidth)&&void 0!==l?l:E}},t.prototype.createNodeData=function(){return __awaiter$2(this,void 0,void 0,function(){return __generator$2(this,function(e){return[2,[]]})})},t.prototype.getInnerRadius=function(){var e=this,t=e.radius,n=e.innerRadiusRatio,r=t*(null!=n?n:1)+(e.innerRadiusOffset||0);return r===t||r<0?0:r},t.prototype.getOuterRadius=function(){var e=this,t=e.radius,n=e.outerRadiusRatio,r=t*(null!=n?n:1)+(e.outerRadiusOffset||0);return r<0?0:r},t.prototype.updateRadiusScale=function(){var e=this.getInnerRadius(),t=this.getOuterRadius();this.radiusScale.range=[e,t]},t.prototype.getTitleTranslationY=function(){var e,t,n=Math.max(0,this.radiusScale.range[1]);if(0===n)return NaN;var r=2+(null!==(t=null===(e=this.title)||void 0===e?void 0:e.spacing)&&void 0!==t?t:0),o=Math.min.apply(Math,__spread$f([0],this.groupSelectionData.map(function(e){var t,n;return(null===(n=null===(t=e.calloutLabel)||void 0===t?void 0:t.box)||void 0===n?void 0:n.y)||0})));return-n-r-Math.max(0,-n-o)},t.prototype.update=function(){return __awaiter$2(this,void 0,void 0,function(){var e,t;return __generator$2(this,function(n){switch(n.label){case 0:return e=this.title,this.updateRadiusScale(),this.rootGroup.translationX=this.centerX,this.rootGroup.translationY=this.centerY,e&&(t=this.getTitleTranslationY(),isFinite(t)?(e.node.visible=e.enabled,e.node.translationY=t):e.node.visible=!1),this.updateNodeMidPoint(),[4,this.updateSelections()];case 1:return n.sent(),[4,this.updateNodes()];case 2:return n.sent(),[2]}})})},t.prototype.updateNodeMidPoint=function(){var e=this;this.groupSelectionData.forEach(function(t){var n=e.radiusScale.convert(t.radius);t.nodeMidPoint={x:t.midCos*Math.max(0,n/2),y:t.midSin*Math.max(0,n/2)}})},t.prototype.updateSelections=function(){return __awaiter$2(this,void 0,void 0,function(){return __generator$2(this,function(e){switch(e.label){case 0:return[4,this.updateGroupSelection()];case 1:return e.sent(),[2]}})})},t.prototype.updateGroupSelection=function(){return __awaiter$2(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s=this;return __generator$2(this,function(l){return t=(e=this).groupSelection,n=e.highlightSelection,r=e.calloutLabelSelection,o=e.sectorLabelSelection,i=e.innerLabelsSelection,a=function(e){return e.update(s.groupSelectionData,function(e){var t=new Sector;t.tag=PieNodeTag.Sector,e.appendChild(t)})},this.groupSelection=a(t),this.highlightSelection=a(n),r.update(this.groupSelectionData,function(e){var t=new Line;t.tag=PieNodeTag.Callout,t.pointerEvents=PointerEvents.None,e.appendChild(t);var n=new Text;n.tag=PieNodeTag.Label,n.pointerEvents=PointerEvents.None,e.appendChild(n)}),o.update(this.groupSelectionData,function(e){e.pointerEvents=PointerEvents.None}),i.update(this.innerLabels,function(e){e.pointerEvents=PointerEvents.None}),[2]})})},t.prototype.updateNodes=function(){var e;return __awaiter$2(this,void 0,void 0,function(){var t,n,r,o,i,a=this;return __generator$2(this,function(s){return t=null===(e=this.highlightManager)||void 0===e?void 0:e.getActiveHighlight(),n=this.seriesItemEnabled.indexOf(!0)>=0,this.rootGroup.visible=n,this.backgroundGroup.visible=n,this.contentGroup.visible=n,this.highlightGroup.visible=n&&(null==t?void 0:t.series)===this,this.labelGroup.visible=n,this.contentGroup.opacity=this.getOpacity(),this.updateInnerCircle(),r=this.radiusScale,o=r.convert(0),i=function(e,t,n,i){var s=r.convert(t.radius),l=e.parent,c=null==l?void 0:l.parent;i&&l&&c&&(c.removeChild(l),c.appendChild(l)),e.innerRadius=Math.max(0,o),e.outerRadius=Math.max(0,s),e.startAngle=t.startAngle,e.endAngle=t.endAngle;var u=a.getSectorFormat(t.datum,t.itemId,n,i);e.fill=u.fill,e.stroke=u.stroke,e.strokeWidth=u.strokeWidth,e.fillOpacity=u.fillOpacity,e.strokeOpacity=a.strokeOpacity,e.lineDash=a.lineDash,e.lineDashOffset=a.lineDashOffset,e.fillShadow=a.shadow,e.lineJoin="round",e.visible=a.seriesItemEnabled[n],a.datumSectorRefs.set(t,e)},this.groupSelection.selectByTag(PieNodeTag.Sector).forEach(function(e,t){return i(e,e.datum,t,!1)}),this.highlightSelection.selectByTag(PieNodeTag.Sector).forEach(function(e,n){var r=(null==t?void 0:t.series)===a&&e.datum.itemId===t.itemId;e.visible=r,e.visible&&i(e,e.datum,n,r)}),this.updateCalloutLineNodes(),this.updateCalloutLabelNodes(),this.updateSectorLabelNodes(),this.updateInnerLabelNodes(),[2]})})},t.prototype.updateCalloutLineNodes=function(){var e=this.radiusScale,t=this.calloutLine,n=t.length,r=t.strokeWidth,o=t.colors||this.strokes,i=this.calloutLabel.offset;this.calloutLabelSelection.selectByTag(PieNodeTag.Callout).forEach(function(t,a){var s=t.datum,l=e.convert(s.radius),c=Math.max(0,l),u=s.calloutLabel;if(u&&u.text&&!u.hidden&&0!==c){t.visible=!0,t.strokeWidth=r,t.stroke=o[a%o.length],t.fill=void 0;var d=s.midCos*c,p=s.midSin*c,h=s.midCos*(c+n),f=s.midSin*(c+n);if(u.collisionTextAlign||0!==u.collisionOffsetY){var g=u.box,m=(h<g.x?g.x:h>g.x+g.width?g.x+g.width:h)-h,v=(f<g.y?g.y:f>g.y+g.height?g.y+g.height:f)-f,y=Math.sqrt(Math.pow(m,2)+Math.pow(v,2)),A=y-i;A>0&&(h+=m*A/y,f+=v*A/y)}t.x1=d,t.y1=p,t.x2=h,t.y2=f}else t.visible=!1})},t.prototype.getLabelOverflow=function(e,t){var n=this.chart.getSeriesRect(),r=n.x-this.centerX,o=n.x+n.width-this.centerX,i=n.y-this.centerY,a=n.y+n.height-this.centerY,s=1;t.x+1<r?s=(t.x+t.width-r)/t.width:t.x+t.width-1>o&&(s=(o-t.x)/t.width);var l=t.y+1<i||t.y+t.height-1>a;return{visibleTextPart:s,textLength:Math.floor(e.length*s)-1,hasVerticalOverflow:l}},t.prototype.computeCalloutLabelCollisionOffsets=function(){var e=this,t=this,n=t.radiusScale,r=t.calloutLabel,o=t.calloutLine,i=r.offset,a=r.minSpacing,s=n.convert(0),l=this.groupSelectionData,c=this.groupSelectionData.filter(function(e){return r=(t=e).calloutLabel,o=n.convert(t.radius),i=Math.max(0,o),!(!r||0===i);var t,r,o,i});if(c.forEach(function(e){var t=e.calloutLabel;t.hidden=!1,t.collisionTextAlign=void 0,t.collisionOffsetY=0}),!(c.length<=1)){var u=c.filter(function(e){return e.midCos<0}).sort(function(e,t){return e.midSin-t.midSin}),d=c.filter(function(e){return e.midCos>=0}).sort(function(e,t){return e.midSin-t.midSin}),p=c.filter(function(e){return e.midSin<0&&"center"===e.calloutLabel.textAlign}).sort(function(e,t){return e.midCos-t.midCos}),h=c.filter(function(e){return e.midSin>=0&&"center"===e.calloutLabel.textAlign}).sort(function(e,t){return e.midCos-t.midCos}),f=new Text,g=function(t){var r=t.calloutLabel,a=n.convert(t.radius),s=Math.max(0,a)+o.length+i,l=t.midCos*s,c=t.midSin*s+r.collisionOffsetY;return e.setTextDimensionalProps(f,l,c,e.calloutLabel,r),f.computeBBox()},m=function(e,t,n){var r=g(e).grow(a/2),o=g(t).grow(a/2);if(r.x<o.x+o.width&&r.x+r.width>o.x&&("to-top"===n?r.y<o.y+o.height:r.y+r.height>o.y)){var i="to-top"===n?r.y-o.y-o.height:r.y+r.height-o.y;t.calloutLabel.collisionOffsetY=i}},v=function(e){for(var t=e.slice().sort(function(e,t){return Math.abs(e.midSin)-Math.abs(t.midSin)})[0],n=e.indexOf(t),r=n-1;r>=0;r--){var o=e[r+1],i=e[r];m(o,i,"to-top")}for(r=n+1;r<e.length;r++)o=e[r-1],i=e[r],m(o,i,"to-bottom")},y=function(e){var t=c.some(function(e){return 0!==e.calloutLabel.collisionOffsetY}),r=e.map(function(e){return g(e)}),o=r.map(function(e){return e.clone().grow(a/2)}),i=!1;e:for(var u=0;u<o.length;u++)for(var d=o[u],p=u+1;p<e.length;p++){var h=o[p];if(d.collidesBBox(h)){i=!0;break e}}var f=l.map(function(e){var t=e.startAngle,r=e.endAngle,o=n.convert(e.radius),i=Math.max(0,o);return{startAngle:t,endAngle:r,innerRadius:s,outerRadius:i}}),m=r.some(function(e){return f.some(function(t){return boxCollidesSector(e,t)})});(i||t||m)&&e.filter(function(e){return"center"===e.calloutLabel.textAlign}).forEach(function(e){e.calloutLabel.collisionTextAlign=e.midCos<0?"right":e.midCos>0?"left":"center"})};v(u),v(d),y(p),y(h)}},t.prototype.updateCalloutLabelNodes=function(){var e=this,t=this,n=t.radiusScale,r=t.calloutLabel,o=t.calloutLine.length,i=r.offset,a=r.color,s=new Text;this.calloutLabelSelection.selectByTag(PieNodeTag.Label).forEach(function(t){var r=t.datum,l=r.calloutLabel,c=n.convert(r.radius),u=Math.max(0,c);if(l&&l.text&&0!==u&&!l.hidden){var d=u+o+i,p=r.midCos*d,h=r.midSin*d+l.collisionOffsetY;e.setTextDimensionalProps(s,p,h,e.calloutLabel,l);var f=s.computeBBox(),g=e.getLabelOverflow(l.text,f),m=g.visibleTextPart,v=g.textLength,y=g.hasVerticalOverflow,A=1===m?l.text:l.text.substring(0,v)+"…";e.setTextDimensionalProps(t,p,h,e.calloutLabel,__assign$v(__assign$v({},l),{text:A})),t.fill=a,t.visible=!y}else t.visible=!1})},t.prototype.computeLabelsBBox=function(e){var t=this,n=this,r=n.radiusScale,o=n.calloutLabel,i=n.calloutLine.length,a=o.offset,s=o.maxCollisionOffset;this.updateRadiusScale(),this.computeCalloutLabelCollisionOffsets();var l=new Text,c=this.groupSelectionData.map(function(n){var o=n.calloutLabel,c=r.convert(n.radius),u=Math.max(0,c);if(!o||0===u)return null;var d=u+i+a,p=n.midCos*d,h=n.midSin*d+o.collisionOffsetY;t.setTextDimensionalProps(l,p,h,t.calloutLabel,o);var f=l.computeBBox();if(o.box=f,Math.abs(o.collisionOffsetY)>s)return o.hidden=!0,null;if(e.hideWhenNecessary){var g=t.getLabelOverflow(o.text,f),m=g.textLength,v=g.hasVerticalOverflow,y=o.text.length>2&&m<2;if(v||y)return o.hidden=!0,null}return o.hidden=!1,f}).filter(function(e){return null!=e});if(this.title&&this.title.text){var u=this.getTitleTranslationY();if(isFinite(u)){this.setTextDimensionalProps(l,0,u,this.title,{text:this.title.text,textBaseline:"bottom",textAlign:"center",hidden:!1,collisionTextAlign:void 0,collisionOffsetY:0});var d=l.computeBBox();c.push(d)}}return 0===c.length?null:BBox.merge(c)},t.prototype.setTextDimensionalProps=function(e,t,n,r,o){var i=r.fontStyle,a=r.fontWeight,s=r.fontSize,l=r.fontFamily;e.fontStyle=i,e.fontWeight=a,e.fontSize=s,e.fontFamily=l,e.text=o.text,e.x=t,e.y=n,e.textAlign=o.collisionTextAlign||o.textAlign,e.textBaseline=o.textBaseline},t.prototype.updateSectorLabelNodes=function(){var e=this,t=this.radiusScale,n=t.convert(0),r=this.sectorLabel,o=r.fontSize,i=r.fontStyle,a=r.fontWeight,s=r.fontFamily,l=r.positionOffset,c=r.positionRatio,u=r.color,d=n>0,p=1===this.seriesItemEnabled.filter(Boolean).length;this.sectorLabelSelection.each(function(r,h){var f=h.sectorLabel,g=t.convert(h.radius),m=Math.max(0,g),v=!1;if(f&&0!==m){var y=n*(1-c)+g*c+l;if(r.fill=u,r.fontStyle=i,r.fontWeight=a,r.fontSize=o,r.fontFamily=s,r.text=f.text,!d&&p?(r.x=0,r.y=0):(r.x=h.midCos*y,r.y=h.midSin*y),r.textAlign="center",r.textBaseline="middle",e.datumSectorRefs.get(h)){var A=r.computeBBox(),w=[[A.x,A.y],[A.x+A.width,A.y],[A.x+A.width,A.y+A.height],[A.x,A.y+A.height]],b={startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:n,outerRadius:m};w.every(function(e){var t=__read$s(e,2);return isPointInSector(t[0],t[1],b)})&&(v=!0)}}r.visible=v})},t.prototype.updateInnerCircle=function(){var e=this._innerCircleNode;if(e){var t=this.getInnerRadius();if(0===t)e.size=0;else{var n=Math.min(t,this.getOuterRadius());e.size=Math.ceil(2*n+1)}}},t.prototype.updateInnerLabelNodes=function(){var e=[],t=[];this.innerLabelsSelection.each(function(n,r){var o=r.fontStyle,i=r.fontWeight,a=r.fontSize,s=r.fontFamily,l=r.color;n.fontStyle=o,n.fontWeight=i,n.fontSize=a,n.fontFamily=s,n.text=r.text,n.x=0,n.y=0,n.fill=l,n.textAlign="center",n.textBaseline="alphabetic",e.push(n.computeBBox()),t.push(r.margin)});for(var n=function(e){return 0===e?0:t[e]},r=function(e){return e===t.length-1?0:t[e]},o=e.reduce(function(e,t,o){return e+t.height+n(o)+r(o)},0),i=Math.max.apply(Math,__spread$f(e.map(function(e){return e.width}))),a=this.getInnerRadius(),s=Math.sqrt(Math.pow(i/2,2)+Math.pow(o/2,2))<=(a>0?a:this.getOuterRadius()),l=[],c=0,u=-o/2;c<e.length;c++){var d=e[c].height+u+n(c);l.push(d),u=d+r(c)}this.innerLabelsSelection.each(function(e,t,n){e.y=l[n],e.visible=s})},t.prototype.getNodeClickEvent=function(e,t){return new PieSeriesNodeClickEvent(this.angleKey,this.calloutLabelKey,this.sectorLabelKey,this.radiusKey,e,t,this)},t.prototype.getNodeDoubleClickEvent=function(e,t){return new PieSeriesNodeDoubleClickEvent(this.angleKey,this.calloutLabelKey,this.sectorLabelKey,this.radiusKey,e,t,this)},t.prototype.getTooltipHtml=function(e){var t=this.angleKey;if(!t)return"";var n=this,r=n.tooltip,o=n.angleName,i=n.radiusKey,a=n.radiusName,s=n.calloutLabelKey,l=n.sectorLabelKey,c=n.calloutLabelName,u=n.sectorLabelName,d=n.id,p=r.renderer,h=e.sectorFormat.fill,f=e.datum,g=s?f[s]+": ":"",m=f[t],v="number"==typeof m?toFixed(m):m.toString(),y=this.title?this.title.text:void 0,A={title:y,backgroundColor:h,content:g+v};return p?toTooltipHtml$1(p({datum:f,angleKey:t,angleValue:m,angleName:o,radiusKey:i,radiusValue:i?f[i]:void 0,radiusName:a,labelKey:s,labelName:c,calloutLabelKey:s,calloutLabelName:c,sectorLabelKey:l,sectorLabelName:u,title:y,color:h,seriesId:d}),A):toTooltipHtml$1(A)},t.prototype.getLegendData=function(){var e=this,t=this,n=t.calloutLabelKey,r=t.legendItemKey,o=t.data,i=t.id,a=t.sectorFormatData;if(!o||0===o.length||!r&&!n)return[];var s=this.title&&this.title.showInLegend&&this.title.text;return o.map(function(t,o){var l=[];return s&&l.push(s),r?l.push(String(t[r])):n&&l.push(String(t[n])),{id:i,itemId:o,seriesId:i,enabled:e.seriesItemEnabled[o],label:{text:l.join(" - ")},marker:{fill:a[o].fill,stroke:a[o].stroke,fillOpacity:e.fillOpacity,strokeOpacity:e.strokeOpacity}}})},t.prototype.toggleSeriesItem=function(e,t){this.seriesItemEnabled[e]=t,this.nodeDataRefresh=!0},t.prototype.toggleOtherSeriesItems=function(e,t,n,r){var o,i,a=this,s=this.legendItemKey;if("pie"===e.type&&void 0!==s){var l=e,c=t&&l.legendItemKey&&(null===(o=l.data)||void 0===o?void 0:o.find(function(e,n){return n===t.itemId})[l.legendItemKey]);c&&(null===(i=this.data)||void 0===i||i.forEach(function(e,t){void 0!==n&&e[s]===c?a.toggleSeriesItem(t,n):void 0!==r&&a.toggleSeriesItem(t,r||e[s]===c)}))}},t.className="PieSeries",t.type="pie",__decorate$1l([DeprecatedAndRenamedTo("calloutLabel")],t.prototype,"label",void 0),__decorate$1l([DeprecatedAndRenamedTo("calloutLine")],t.prototype,"callout",void 0),__decorate$1l([Validate(STRING)],t.prototype,"angleKey",void 0),__decorate$1l([Validate(STRING)],t.prototype,"angleName",void 0),__decorate$1l([Validate(OPT_STRING)],t.prototype,"radiusKey",void 0),__decorate$1l([Validate(OPT_STRING)],t.prototype,"radiusName",void 0),__decorate$1l([Validate(OPT_NUMBER(0))],t.prototype,"radiusMin",void 0),__decorate$1l([Validate(OPT_NUMBER(0))],t.prototype,"radiusMax",void 0),__decorate$1l([Validate(OPT_STRING)],t.prototype,"calloutLabelKey",void 0),__decorate$1l([Validate(OPT_STRING)],t.prototype,"calloutLabelName",void 0),__decorate$1l([DeprecatedAndRenamedTo("calloutLabelKey")],t.prototype,"labelKey",void 0),__decorate$1l([DeprecatedAndRenamedTo("calloutLabelName")],t.prototype,"labelName",void 0),__decorate$1l([Validate(OPT_STRING)],t.prototype,"sectorLabelKey",void 0),__decorate$1l([Validate(OPT_STRING)],t.prototype,"sectorLabelName",void 0),__decorate$1l([Validate(OPT_STRING)],t.prototype,"legendItemKey",void 0),__decorate$1l([Validate(COLOR_STRING_ARRAY)],t.prototype,"fills",void 0),__decorate$1l([Validate(COLOR_STRING_ARRAY)],t.prototype,"strokes",void 0),__decorate$1l([Validate(NUMBER(0,1))],t.prototype,"fillOpacity",void 0),__decorate$1l([Validate(NUMBER(0,1))],t.prototype,"strokeOpacity",void 0),__decorate$1l([Validate(OPT_LINE_DASH)],t.prototype,"lineDash",void 0),__decorate$1l([Validate(NUMBER(0))],t.prototype,"lineDashOffset",void 0),__decorate$1l([Validate(OPT_FUNCTION)],t.prototype,"formatter",void 0),__decorate$1l([Validate(NUMBER(-360,360))],t.prototype,"rotation",void 0),__decorate$1l([Validate(NUMBER())],t.prototype,"outerRadiusOffset",void 0),__decorate$1l([Validate(NUMBER(0))],t.prototype,"outerRadiusRatio",void 0),__decorate$1l([Validate(NUMBER())],t.prototype,"innerRadiusOffset",void 0),__decorate$1l([Validate(NUMBER(0))],t.prototype,"innerRadiusRatio",void 0),__decorate$1l([Validate(NUMBER(0))],t.prototype,"strokeWidth",void 0),t}(PolarSeries),__extends$1Z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),HierarchySeries=function(e){function t(){return e.call(this,{pickModes:[SeriesNodePickMode.EXACT_SHAPE_MATCH]})||this}return __extends$1Z(t,e),t.prototype.getLabelData=function(){return[]},t}(Series),__extends$1Y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1k=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},DropShadow=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enabled=!0,t.color="rgba(0, 0, 0, 0.5)",t.xOffset=0,t.yOffset=0,t.blur=5,t}return __extends$1Y(t,e),__decorate$1k([Validate(BOOLEAN),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"enabled",void 0),__decorate$1k([Validate(COLOR_STRING),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"color",void 0),__decorate$1k([Validate(NUMBER()),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"xOffset",void 0),__decorate$1k([Validate(NUMBER()),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"yOffset",void 0),__decorate$1k([Validate(NUMBER(0)),SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"blur",void 0),t}(ChangeDetectable);function number(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function interpolateColor(e,t){if("string"==typeof e)try{e=Color.fromString(e)}catch(t){e=Color.fromArray([0,0,0])}if("string"==typeof t)try{t=Color.fromString(t)}catch(e){t=Color.fromArray([0,0,0])}var n=number(e.r,t.r),r=number(e.g,t.g),o=number(e.b,t.b),i=number(e.a,t.a);return function(e){return Color.fromArray([n(e),r(e),o(e),i(e)]).toRgbaString()}}var ColorScale=function(){function e(){this.domain=[0,1],this._range=["red","green"],this.parsedRange=this._range.map(function(e){return Color.fromString(e)})}return Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e,this.parsedRange=e.map(function(e){return Color.fromString(e)})},enumerable:!1,configurable:!0}),e.prototype.convert=function(e){var t,n,r=this,o=r.domain,i=r.range,a=r.parsedRange,s=o[0],l=o[o.length-1],c=i[0],u=i[i.length-1];if(e<=s)return c;if(e>=l)return u;if(2===o.length){var d=(e-s)/(l-s),p=1/(i.length-1);n=(d-(t=i.length<=2?0:Math.min(Math.floor(d*(i.length-1)),i.length-2))*p)/p}else{for(t=0;t<o.length-2&&!(e<o[t+1]);t++);var h=o[t];n=(e-h)/(o[t+1]-h)}return interpolateColor(a[t],a[t+1])(n)},e}(),__extends$1X=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$u=function(){return __assign$u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$u.apply(this,arguments)},__decorate$1j=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__awaiter$1=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator$1=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},TreemapSeriesTooltip=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderer=void 0,t}return __extends$1X(t,e),__decorate$1j([Validate(OPT_FUNCTION)],t.prototype,"renderer",void 0),t}(SeriesTooltip),TreemapSeriesNodeBaseClickEvent=function(e){function t(t,n,r,o,i,a){var s=e.call(this,o,i,a)||this;return s.labelKey=t,s.sizeKey=n,s.colorKey=r,s}return __extends$1X(t,e),t}(SeriesNodeBaseClickEvent),TreemapSeriesNodeClickEvent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="nodeClick",t}return __extends$1X(t,e),t}(TreemapSeriesNodeBaseClickEvent),TreemapSeriesNodeDoubleClickEvent=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="nodeDoubleClick",t}return __extends$1X(t,e),t}(TreemapSeriesNodeBaseClickEvent),TreemapSeriesLabel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.padding=10,t}return __extends$1X(t,e),__decorate$1j([Validate(NUMBER(0))],t.prototype,"padding",void 0),t}(Label$1),TreemapValueLabel=function(){function e(){var e;this.style=((e=new Label$1).color="white",e)}return __decorate$1j([Validate(OPT_STRING)],e.prototype,"key",void 0),__decorate$1j([Validate(OPT_STRING)],e.prototype,"name",void 0),__decorate$1j([Validate(OPT_FUNCTION)],e.prototype,"formatter",void 0),e}(),TextNodeTag;function getTextSize(e,t){return HdpiCanvas.getTextSize(e,[t.fontWeight,t.fontSize+"px",t.fontFamily].join(" "))}function validateColor(e){return"string"!=typeof e||Color.validColorString(e)?e:(Logger.warnOnce('invalid Treemap tile colour string "'+e+'". Affected treemap tiles will be coloured black.'),"black")}!function(e){e[e.Name=0]="Name",e[e.Value=1]="Value"}(TextNodeTag||(TextNodeTag={}));var TreemapTextHighlightStyle=function(){function e(){this.color="black"}return __decorate$1j([Validate(OPT_COLOR_STRING)],e.prototype,"color",void 0),e}(),TreemapHighlightStyle=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.text=new TreemapTextHighlightStyle,t}return __extends$1X(t,e),t}(HighlightStyle),TreemapSeries=function(e){function t(){var t,n=null!==e&&e.apply(this,arguments)||this;return n.groupSelection=Selection.select(n.contentGroup,Group),n.highlightSelection=Selection.select(n.highlightGroup,Group),n.title=((t=new TreemapSeriesLabel).color="white",t.fontWeight="bold",t.fontSize=12,t.fontFamily="Verdana, sans-serif",t.padding=15,t),n.subtitle=function(){var e=new TreemapSeriesLabel;return e.color="white",e.fontSize=9,e.fontFamily="Verdana, sans-serif",e.padding=13,e}(),n.labels={large:function(){var e=new Label$1;return e.color="white",e.fontWeight="bold",e.fontSize=18,e}(),medium:function(){var e=new Label$1;return e.color="white",e.fontWeight="bold",e.fontSize=14,e}(),small:function(){var e=new Label$1;return e.color="white",e.fontWeight="bold",e.fontSize=10,e}(),value:new TreemapValueLabel},n.nodePadding=2,n.labelKey="label",n.sizeKey="size",n.colorKey="color",n.colorDomain=[-5,5],n.colorRange=["#cb4b3f","#6acb64"],n.groupFill="#272931",n.groupStroke="black",n.groupStrokeWidth=1,n.tileStroke="black",n.tileStrokeWidth=1,n.gradient=!0,n.formatter=void 0,n.colorName="Change",n.rootName="Root",n.highlightGroups=!0,n.tileShadow=new DropShadow,n.labelShadow=new DropShadow,n.tooltip=new TreemapSeriesTooltip,n.highlightStyle=new TreemapHighlightStyle,n}return __extends$1X(t,e),t.prototype.getNodePaddingTop=function(e,t){var n=this,r=n.title,o=n.subtitle,i=n.nodePadding,a=e.label;if(e.isLeaf||!a||0===e.depth)return i;var s=e.depth>1?o:r,l=getTextSize(a,s);return s.fontSize>t.width/3||s.fontSize>t.height/3||l.height>=t.height?i:l.height+2*i},t.prototype.getNodePadding=function(e,t){var n=this.nodePadding;return{top:this.getNodePaddingTop(e,t),right:n,bottom:n,left:n}},t.prototype.squarify=function(e,t,n){void 0===n&&(n=new Map);var r=this.getNodePadding(e,t);n.set(e,t);var o=t.width-r.left-r.right,i=t.height-r.top-r.bottom;if(o<=0||i<=0||e.value<=0)return n;for(var a=0,s=0,l=1/0,c=e.value,u=e.children,d=new BBox(t.x+r.left,t.y+r.top,o,i),p=0;p<u.length;p++){var h=u[p].value,f=u[s].value,g=d.width<d.height;a+=h;var m=g?d.height:d.width,v=g?d.width:d.height,y=v*f/a,A=m*a/c,w=Math.max(y,A)/Math.min(y,A),b=Math.abs(1-w);if(b<l)l=b;else{A=m*(a-=h)/c;for(var _=g?d.x:d.y,C=s;C<p;C++){var E=u[C],S=g?_:d.x,O=g?d.y:_,x=v*E.value/a,D=new BBox(S,O,g?x:A,g?A:x);this.squarify(E,D,n),c-=E.value,_+=x}g?(d.y+=A,d.height-=A):(d.x+=A,d.width-=A),s=p,a=0,l=1/0,p--}}var P=d.width<d.height,M=P?d.x:d.y;for(p=s;p<u.length;p++){S=P?M:d.x,O=P?d.y:M;var T=u[p].value/c,R=d.width*(P?T:1),I=d.height*(P?1:T);D=new BBox(S,O,R,I),this.squarify(u[p],D,n),M+=P?R:I}return n},t.prototype.processData=function(){return __awaiter$1(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s,l,c,u=this;return __generator$1(this,function(d){return this.data?(t=(e=this).data,n=e.sizeKey,r=e.labelKey,o=e.colorKey,i=e.colorDomain,a=e.colorRange,s=e.groupFill,(l=new ColorScale).domain=i,l.range=a,c=function(e,t,i){var a,d;void 0===t&&(t=0);var p=r&&e[r]||"",h=o&&null!==(a=e[o])&&void 0!==a?a:t;h=validateColor(h);var f=!e.children,g="string"==typeof h?h:f||!s?l.convert(h):s,m={datum:e,depth:t,parent:i,value:0,label:p,fill:g,series:u,isLeaf:f,children:[]};return f?m.value=n&&null!==(d=e[n])&&void 0!==d?d:1:(e.children.forEach(function(e){var n=c(e,t+1,m),r=n.value;!isNaN(r)&&isFinite(r)&&0!==r&&(m.value+=r,m.children.push(n))}),m.children.sort(function(e,t){return t.value-e.value})),m},this.dataRoot=c(t),[2]):[2]})})},t.prototype.createNodeData=function(){return __awaiter$1(this,void 0,void 0,function(){return __generator$1(this,function(e){return[2,[]]})})},t.prototype.update=function(){return __awaiter$1(this,void 0,void 0,function(){return __generator$1(this,function(e){switch(e.label){case 0:return[4,this.updateSelections()];case 1:return e.sent(),[4,this.updateNodes()];case 2:return e.sent(),[2]}})})},t.prototype.updateSelections=function(){return __awaiter$1(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s,l;return __generator$1(this,function(c){return this.nodeDataRefresh?(this.nodeDataRefresh=!1,t=(e=this).chart,n=e.dataRoot,t&&n&&t.getSeriesRect()?(r=[],o=function(e){var t;r.push(e),null===(t=e.children)||void 0===t||t.forEach(o)},o(this.dataRoot),a=(i=this).groupSelection,s=i.highlightSelection,l=function(e){return e.update(r,function(e){var t=new Rect,n=new Text;n.tag=TextNodeTag.Name;var r=new Text;r.tag=TextNodeTag.Value,e.append([t,n,r])})},this.groupSelection=l(a),this.highlightSelection=l(s),[2]):[2]):[2]})})},t.prototype.isDatumHighlighted=function(e){var t;return e===(null===(t=this.highlightManager)||void 0===t?void 0:t.getActiveHighlight())&&(e.isLeaf||this.highlightGroups)},t.prototype.getTileFormat=function(e,t){var n,r=this.formatter;if(!r)return{};var o=this,i=o.gradient,a=o.colorKey,s=o.labelKey,l=o.sizeKey,c=o.tileStroke,u=o.tileStrokeWidth,d=o.groupStroke,p=o.groupStrokeWidth,h=e.isLeaf?c:d,f=e.isLeaf?u:p;return r({seriesId:this.id,datum:e.datum,depth:e.depth,parent:null===(n=e.parent)||void 0===n?void 0:n.datum,colorKey:a,sizeKey:l,labelKey:s,fill:e.fill,stroke:h,strokeWidth:f,gradient:i,highlighted:t})},t.prototype.updateNodes=function(){return __awaiter$1(this,void 0,void 0,function(){var e,t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w=this;return __generator$1(this,function(b){return this.chart?(t=(e=this).gradient,n=e.highlightStyle,r=n.item,o=r.fill,i=r.fillOpacity,a=r.stroke,s=r.strokeWidth,l=n.text.color,c=e.tileStroke,u=e.tileStrokeWidth,d=e.groupStroke,p=e.groupStrokeWidth,h=e.tileShadow,f=e.labelShadow,g=this.chart.getSeriesRect(),m=this.squarify(this.dataRoot,new BBox(0,0,g.width,g.height)),v=this.buildLabelMeta(m),this.updateNodeMidPoint(m),y=function(e,n,r){var l,f,g,v,y,A,b=m.get(n);if(b){var _=r&&void 0!==o?o:n.fill,C=null!==(l=r?i:1)&&void 0!==l?l:1,E=r&&void 0!==a?a:n.isLeaf?c:d,S=r&&void 0!==s?s:n.isLeaf?u:p,O=w.getTileFormat(n,r),x=validateColor(null!==(f=null==O?void 0:O.fill)&&void 0!==f?f:_);if(null!==(g=null==O?void 0:O.gradient)&&void 0!==g?g:t){var D=Color.tryParseFromString(_).brighter().toString(),P=Color.tryParseFromString(_).darker().toString();e.fill="linear-gradient(180deg, "+D+", "+P+")"}else e.fill=x;if(e.fillOpacity=null!==(v=null==O?void 0:O.fillOpacity)&&void 0!==v?v:C,e.stroke=validateColor(null!==(y=null==O?void 0:O.stroke)&&void 0!==y?y:E),e.strokeWidth=null!==(A=null==O?void 0:O.strokeWidth)&&void 0!==A?A:S,e.fillShadow=h,e.crisp=!0,e.x=b.x,e.y=b.y,e.width=b.width,e.height=b.height,e.visible=!0,r&&!n.isLeaf){var M=w.getNodePadding(n,b),T=b.x+M.left,R=b.x+b.width-M.right,I=b.y+M.top,F=b.y+b.height-M.bottom;e.clipPath?e.clipPath.clear():e.clipPath=new Path2D,e.clipMode="punch-out",e.clipPath.moveTo(T,I),e.clipPath.lineTo(R,I),e.clipPath.lineTo(R,F),e.clipPath.lineTo(T,F),e.clipPath.lineTo(T,I),e.clipPath.closePath()}}else e.visible=!1},this.groupSelection.selectByClass(Rect).forEach(function(e){return y(e,e.datum,!1)}),this.highlightSelection.selectByClass(Rect).forEach(function(e){var t=w.isDatumHighlighted(e.datum);e.visible=t,e.visible&&y(e,e.datum,t)}),A=function(e,t,n,r){var o=v.get(t),i=null==o?void 0:o[r];i?(e.text=i.text,e.fontFamily=i.style.fontFamily,e.fontSize=i.style.fontSize,e.fontWeight=i.style.fontWeight,e.fill=n&&null!=l?l:i.style.color,e.fillShadow=n?void 0:f,e.textAlign=i.hAlign,e.textBaseline=i.vAlign,e.x=i.x,e.y=i.y,e.visible=!0):e.visible=!1},this.groupSelection.selectByTag(TextNodeTag.Name).forEach(function(e){return A(e,e.datum,!1,"label")}),this.highlightSelection.selectByTag(TextNodeTag.Name).forEach(function(e){var t=w.isDatumHighlighted(e.datum);e.visible=t,e.visible&&A(e,e.datum,t,"label")}),this.groupSelection.selectByTag(TextNodeTag.Value).forEach(function(e){return A(e,e.datum,!1,"value")}),this.highlightSelection.selectByTag(TextNodeTag.Value).forEach(function(e){var t=w.isDatumHighlighted(e.datum);e.visible=t,e.visible&&A(e,e.datum,t,"value")}),[2]):[2]})})},t.prototype.updateNodeMidPoint=function(e){e.forEach(function(e,t){t.nodeMidPoint={x:e.x+e.width/2,y:e.y}})},t.prototype.buildLabelMeta=function(e){var t=this,n=t.labels,r=t.title,o=t.subtitle,i=t.nodePadding,a=t.labelKey,s=new Map;return e.forEach(function(e,t){if(a&&0!==t.depth){var l,c=t.isLeaf?t.label:t.label.toUpperCase();l=t.isLeaf?[n.large,n.medium,n.small].find(function(t){var n=getTextSize(c,t),r=n.width,o=n.height;return r<e.width&&o<e.height})||n.small:1===t.depth?r:o;var u=getTextSize(c,l),d=e.width-2*i,p=e.height-2*i;if(!(l.fontSize>e.width/3||l.fontSize>e.height/3)){if(u.width>d){var h=Math.floor(c.length*d/u.width)-1;c=c.substring(0,h)+"…"}var f=n.value,g=f.style,m=(l.fontSize+g.fontSize)/8,v=String(t.isLeaf?f.formatter?f.formatter({datum:t.datum}):f.key?t.datum[f.key]:"":""),y=getTextSize(v,g),A=v&&y.width<d&&y.height+u.height+m<p;s.set(t,{label:__assign$u({text:c,style:l},t.isLeaf?{hAlign:"center",vAlign:"middle",x:e.x+e.width/2,y:e.y+e.height/2-(A?y.height/2+m/2:0)}:{hAlign:"left",vAlign:"top",x:e.x+i,y:e.y+i}),value:A?{text:v,style:g,hAlign:"center",vAlign:"middle",x:e.x+e.width/2,y:e.y+e.height/2+u.height/2+m/2}:void 0})}}}),s},t.prototype.getDomain=function(e){return[0,1]},t.prototype.getNodeClickEvent=function(e,t){return new TreemapSeriesNodeClickEvent(this.labelKey,this.sizeKey,this.colorKey,e,t,this)},t.prototype.getNodeDoubleClickEvent=function(e,t){return new TreemapSeriesNodeDoubleClickEvent(this.labelKey,this.sizeKey,this.colorKey,e,t,this)},t.prototype.getTooltipHtml=function(e){var t;if(!this.highlightGroups&&!e.isLeaf)return"";var n=this,r=n.tooltip,o=n.sizeKey,i=n.labelKey,a=n.colorKey,s=n.rootName,l=n.id,c=n.labels,u=e.datum,d=r.renderer,p=e.depth?u[i]:s||u[i],h="",f=this.getTileFormat(e,!1),g=(null==f?void 0:f.fill)||e.fill||"gray",m=c.value.key,v=c.value.formatter;if(m||v){var y="";if(v)y=v({datum:u});else{var A=u[m];"number"==typeof A&&isFinite(A)&&(y=toFixed(A))}y&&(c.value.name&&(h+="<b>"+c.value.name+":</b> "),h+=y)}var w={title:p,backgroundColor:g,content:h};return d?toTooltipHtml$1(d({datum:e.datum,parent:null===(t=e.parent)||void 0===t?void 0:t.datum,depth:e.depth,sizeKey:o,labelKey:i,colorKey:a,title:p,color:g,seriesId:l}),w):p||h?toTooltipHtml$1(w):""},t.prototype.getLegendData=function(){return[]},t.className="TreemapSeries",t.type="treemap",__decorate$1j([Validate(NUMBER(0))],t.prototype,"nodePadding",void 0),__decorate$1j([Validate(STRING)],t.prototype,"labelKey",void 0),__decorate$1j([Validate(OPT_STRING)],t.prototype,"sizeKey",void 0),__decorate$1j([Validate(OPT_STRING)],t.prototype,"colorKey",void 0),__decorate$1j([Validate(NUMBER_ARRAY)],t.prototype,"colorDomain",void 0),__decorate$1j([Validate(COLOR_STRING_ARRAY)],t.prototype,"colorRange",void 0),__decorate$1j([Validate(OPT_STRING)],t.prototype,"groupFill",void 0),__decorate$1j([Validate(OPT_COLOR_STRING)],t.prototype,"groupStroke",void 0),__decorate$1j([Validate(OPT_NUMBER(0))],t.prototype,"groupStrokeWidth",void 0),__decorate$1j([Validate(OPT_COLOR_STRING)],t.prototype,"tileStroke",void 0),__decorate$1j([Validate(OPT_NUMBER(0))],t.prototype,"tileStrokeWidth",void 0),__decorate$1j([Validate(BOOLEAN)],t.prototype,"gradient",void 0),__decorate$1j([Validate(OPT_FUNCTION)],t.prototype,"formatter",void 0),__decorate$1j([Validate(STRING)],t.prototype,"colorName",void 0),__decorate$1j([Validate(STRING)],t.prototype,"rootName",void 0),__decorate$1j([Validate(OPT_BOOLEAN)],t.prototype,"highlightGroups",void 0),t}(HierarchySeries),types$1={area:"cartesian",bar:"cartesian",column:"cartesian",histogram:"cartesian",line:"cartesian",scatter:"cartesian",treemap:"hierarchy",pie:"polar"},CHART_TYPES={add:function(e,t){types$1[e]=t},delete:function(e){delete types$1[e]},has:function(e){return Object.prototype.hasOwnProperty.call(types$1,e)},isCartesian:function(e){return"cartesian"===types$1[e]},isPolar:function(e){return"polar"===types$1[e]},isHierarchy:function(e){return"hierarchy"===types$1[e]},get seriesTypes(){return Object.keys(types$1)},get cartesianTypes(){var e=this;return this.seriesTypes.filter(function(t){return e.isCartesian(t)})},get polarTypes(){var e=this;return this.seriesTypes.filter(function(t){return e.isPolar(t)})},get hierarchyTypes(){var e=this;return this.seriesTypes.filter(function(t){return e.isHierarchy(t)})}};function deepMerge$1(e,t){if(isPlainObject(e)&&isPlainObject(t)){var n={};return Object.keys(e).forEach(function(r){n[r]=r in t?deepMerge$1(e[r],t[r]):e[r]}),Object.keys(t).forEach(function(r){r in e||(n[r]=t[r])}),n}return Array.isArray(e)&&!Array.isArray(t)||isObject(e)&&!isObject(t)?e:t}function isObject(e){return e&&"object"==typeof e}function isPlainObject(e){return isObject(e)&&e.constructor===Object}var __assign$t=function(){return __assign$t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$t.apply(this,arguments)},__read$r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},palette$8={fills:["#f3622d","#fba71b","#57b757","#41a9c9","#4258c9","#9a42c8","#c84164","#888888"],strokes:["#aa4520","#b07513","#3d803d","#2d768d","#2e3e8d","#6c2e8c","#8c2d46","#5f5f5f"]},BOLD="bold",INSIDE="inside",RIGHT="right",ChartTheme=function(){function e(e){var t=(e=deepMerge$1({},e||{})).overrides,n=void 0===t?null:t,r=e.palette,o=void 0===r?null:r,i=this.createChartConfigPerChartType(this.getDefaults());if(n){var a=n.common,s=n.cartesian,l=n.polar,c=n.hierarchy,u=function(e,t,n){n&&(i[e]=deepMerge$1(i[e],n),t.forEach(function(e){var t=e;i[t]=deepMerge$1(i[t],n)}))};u("common",Object.keys(i),a),u("cartesian",CHART_TYPES.cartesianTypes,s),u("polar",CHART_TYPES.polarTypes,l),u("hierarchy",CHART_TYPES.hierarchyTypes,c),CHART_TYPES.seriesTypes.forEach(function(e){var t,r=e,o=n[r];o&&(o.series&&(o.series=((t={})[r]=o.series,t)),i[r]=deepMerge$1(i[r],o))})}this.palette=null!=o?o:this.getPalette(),this.config=Object.freeze(i)}return e.prototype.getPalette=function(){return palette$8},e.getAxisDefaults=function(){return{top:{},right:{},bottom:{},left:{},thickness:0,title:{enabled:!1,text:"Axis Title",fontStyle:void 0,fontWeight:BOLD,fontSize:12,fontFamily:this.fontFamily,color:"rgb(70, 70, 70)"},label:{fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:this.fontFamily,padding:5,rotation:void 0,color:"rgb(87, 87, 87)",formatter:void 0,autoRotate:!1,avoidCollisions:!0},line:{width:1,color:"rgb(195, 195, 195)"},tick:{width:1,size:6,color:"rgb(195, 195, 195)"},gridStyle:[{stroke:"rgb(219, 219, 219)",lineDash:[4,2]}],crossLines:{enabled:!1,fill:"rgb(187,221,232)",stroke:"rgb(70,162,192)",strokeWidth:1,label:{enabled:!1,fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:this.fontFamily,padding:5,color:"rgb(87, 87, 87)",rotation:void 0}}}},e.getSeriesDefaults=function(){return{tooltip:{enabled:!0,renderer:void 0},visible:!0,showInLegend:!0,highlightStyle:{item:{fill:"yellow",fillOpacity:1},series:{dimOpacity:1},text:{color:"black"}},nodeClickRange:"exact"}},e.getBarSeriesDefaults=function(){return __assign$t(__assign$t({},this.getSeriesDefaults()),{flipXY:!1,fillOpacity:1,strokeOpacity:1,xKey:"",xName:"",normalizedTo:void 0,strokeWidth:1,lineDash:[0],lineDashOffset:0,label:{enabled:!1,fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:this.fontFamily,color:"rgb(70, 70, 70)",formatter:void 0,placement:INSIDE},shadow:{enabled:!1,color:"rgba(0, 0, 0, 0.5)",xOffset:3,yOffset:3,blur:5}})},e.getLineSeriesDefaults=function(){var e=this.getSeriesDefaults();return __assign$t(__assign$t({},e),{tooltip:__assign$t(__assign$t({},e.tooltip),{format:void 0,position:{type:"node"}})})},e.getAreaSeriesDefaults=function(){var e=this.getSeriesDefaults();return __assign$t(__assign$t({},e),{nodeClickRange:"nearest",tooltip:__assign$t(__assign$t({},e.tooltip),{position:{type:"node"}})})},e.getScatterSeriesDefaults=function(){var e=this.getSeriesDefaults();return __assign$t(__assign$t({},e),{tooltip:__assign$t(__assign$t({},e.tooltip),{position:{type:"node"}})})},e.getCartesianSeriesMarkerDefaults=function(){return{enabled:!0,shape:"circle",size:6,maxSize:30,strokeWidth:1,formatter:void 0}},e.getChartDefaults=function(){return{background:{visible:!0,fill:"white"},padding:{top:20,right:20,bottom:20,left:20},title:{enabled:!1,text:"Title",fontStyle:void 0,fontWeight:BOLD,fontSize:16,fontFamily:this.fontFamily,color:"rgb(70, 70, 70)"},subtitle:{enabled:!1,text:"Subtitle",fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:this.fontFamily,color:"rgb(140, 140, 140)"},footnote:{enabled:!1,text:"Footnote",fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:this.fontFamily,color:"rgb(140, 140, 140)",spacing:30},legend:{enabled:!0,position:RIGHT,spacing:20,listeners:{},item:{paddingX:16,paddingY:8,marker:{shape:void 0,size:15,strokeWidth:1,padding:8},label:{color:"black",fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:this.fontFamily,formatter:void 0}},reverseOrder:!1,pagination:{marker:{size:12},activeStyle:{fill:"rgb(70, 70, 70)"},inactiveStyle:{fill:"rgb(219, 219, 219)"},highlightStyle:{fill:"rgb(70, 70, 70)"},label:{color:"rgb(70, 70, 70)"}}},tooltip:{enabled:!0,range:"nearest",delay:0},listeners:{}}},e.prototype.createChartConfigPerChartType=function(e){var t={cartesian:CHART_TYPES.cartesianTypes,polar:CHART_TYPES.polarTypes,hierarchy:CHART_TYPES.hierarchyTypes,groupedCategory:[]};return Object.entries(t).forEach(function(t){var n=__read$r(t,2),r=n[0];n[1].forEach(function(t){e[t]||(e[t]=deepMerge$1({},e[r]))})}),e},e.prototype.getDefaults=function(){var t=deepMerge$1({},e.defaults),n=function(t){var n={};return n.series=t.reduce(function(t,n){return Object.prototype.hasOwnProperty.call(e.seriesThemeOverrides,n)&&(t[n]=e.seriesThemeOverrides[n]({seriesDefaults:e.getSeriesDefaults(),defaultFontFamily:e.fontFamily})),t},{}),n};return deepMerge$1(t,{cartesian:n(CHART_TYPES.cartesianTypes),groupedCategory:n(CHART_TYPES.cartesianTypes),polar:n(CHART_TYPES.polarTypes),hierarchy:n(CHART_TYPES.hierarchyTypes)})},e.prototype.mergeWithParentDefaults=function(e,t){return deepMerge$1(e,t)},e.fontFamily="Verdana, sans-serif",e.seriesThemeOverrides={},e.cartesianDefaults=__assign$t(__assign$t({},e.getChartDefaults()),{axes:{number:__assign$t({},e.getAxisDefaults()),log:__assign$t(__assign$t({},e.getAxisDefaults()),{base:10}),category:__assign$t(__assign$t({},e.getAxisDefaults()),{groupPaddingInner:.1,label:__assign$t(__assign$t({},e.getAxisDefaults().label),{autoRotate:!0})}),groupedCategory:__assign$t({},e.getAxisDefaults()),time:__assign$t({},e.getAxisDefaults())},series:{column:__assign$t(__assign$t({},e.getBarSeriesDefaults()),{flipXY:!1}),bar:__assign$t(__assign$t({},e.getBarSeriesDefaults()),{flipXY:!0}),line:__assign$t(__assign$t({},e.getLineSeriesDefaults()),{title:void 0,xKey:"",xName:"",yKey:"",yName:"",strokeWidth:2,strokeOpacity:1,lineDash:[0],lineDashOffset:0,marker:__assign$t(__assign$t({},e.getCartesianSeriesMarkerDefaults()),{fillOpacity:1,strokeOpacity:1}),label:{enabled:!1,fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:e.fontFamily,color:"rgb(70, 70, 70)",formatter:void 0}}),scatter:__assign$t(__assign$t({},e.getScatterSeriesDefaults()),{title:void 0,xKey:"",yKey:"",sizeKey:void 0,labelKey:void 0,xName:"",yName:"",sizeName:"Size",labelName:"Label",marker:__assign$t({},e.getCartesianSeriesMarkerDefaults()),label:{enabled:!1,fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:e.fontFamily,color:"rgb(70, 70, 70)"}}),area:__assign$t(__assign$t({},e.getAreaSeriesDefaults()),{xKey:"",xName:"",normalizedTo:void 0,fillOpacity:.8,strokeOpacity:1,strokeWidth:2,lineDash:[0],lineDashOffset:0,shadow:{enabled:!1,color:"rgba(0, 0, 0, 0.5)",xOffset:3,yOffset:3,blur:5},marker:__assign$t(__assign$t({},e.getCartesianSeriesMarkerDefaults()),{fillOpacity:1,strokeOpacity:1,enabled:!1}),label:{enabled:!1,fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:e.fontFamily,color:"rgb(70, 70, 70)",formatter:void 0}}),histogram:__assign$t(__assign$t({},e.getSeriesDefaults()),{xKey:"",yKey:"",xName:"",yName:"",strokeWidth:1,fillOpacity:1,strokeOpacity:1,lineDash:[0],lineDashOffset:0,areaPlot:!1,bins:void 0,aggregation:"sum",label:{enabled:!1,fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:e.fontFamily,color:"rgb(70, 70, 70)",formatter:void 0},shadow:{enabled:!0,color:"rgba(0, 0, 0, 0.5)",xOffset:0,yOffset:0,blur:5}})},navigator:{enabled:!1,height:30,mask:{fill:"#999999",stroke:"#999999",strokeWidth:1,fillOpacity:.2},minHandle:{fill:"#f2f2f2",stroke:"#999999",strokeWidth:1,width:8,height:16,gripLineGap:2,gripLineLength:8},maxHandle:{fill:"#f2f2f2",stroke:"#999999",strokeWidth:1,width:8,height:16,gripLineGap:2,gripLineLength:8}}}),e.polarDefaults=__assign$t(__assign$t({},e.getChartDefaults()),{series:{pie:__assign$t(__assign$t({},e.getSeriesDefaults()),{title:{enabled:!0,text:"",fontStyle:void 0,fontWeight:"bold",fontSize:14,fontFamily:e.fontFamily,color:"rgb(70, 70, 70)"},angleKey:"",angleName:"",radiusKey:void 0,radiusName:void 0,calloutLabelKey:void 0,calloutLabelName:void 0,sectorLabelKey:void 0,sectorLabelName:void 0,calloutLabel:{enabled:!0,fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:e.fontFamily,color:"rgb(70, 70, 70)",offset:3,minAngle:0},sectorLabel:{enabled:!0,fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:e.fontFamily,color:"rgb(70, 70, 70)",positionOffset:0,positionRatio:.5},calloutLine:{length:10,strokeWidth:2},fillOpacity:1,strokeOpacity:1,strokeWidth:1,lineDash:[0],lineDashOffset:0,rotation:0,outerRadiusOffset:0,innerRadiusOffset:0,shadow:{enabled:!1,color:"rgba(0, 0, 0, 0.5)",xOffset:3,yOffset:3,blur:5},innerLabels:{fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:e.fontFamily,color:"rgb(70, 70, 70)",margin:2}})}}),e.hierarchyDefaults=__assign$t(__assign$t({},e.getChartDefaults()),{series:{treemap:__assign$t(__assign$t({},e.getSeriesDefaults()),{showInLegend:!1,labelKey:"label",sizeKey:"size",colorKey:"color",colorDomain:[-5,5],colorRange:["#cb4b3f","#6acb64"],groupFill:"#272931",groupStroke:"black",groupStrokeWidth:1,tileStroke:"black",tileStrokeWidth:1,gradient:!0,tileShadow:{enabled:!1,color:"rgba(0, 0, 0, 0.5)",xOffset:3,yOffset:3,blur:5},labelShadow:{enabled:!0,color:"rgba(0, 0, 0, 0.4)",xOffset:1.5,yOffset:1.5,blur:5},highlightGroups:!0,nodePadding:2,title:{enabled:!0,color:"white",fontStyle:void 0,fontWeight:"bold",fontSize:12,fontFamily:"Verdana, sans-serif",padding:15},subtitle:{enabled:!0,color:"white",fontStyle:void 0,fontWeight:void 0,fontSize:9,fontFamily:"Verdana, sans-serif",padding:13},labels:{large:{enabled:!0,fontStyle:void 0,fontWeight:"bold",fontSize:18,fontFamily:"Verdana, sans-serif",color:"white"},medium:{enabled:!0,fontStyle:void 0,fontWeight:"bold",fontSize:14,fontFamily:"Verdana, sans-serif",color:"white"},small:{enabled:!0,fontStyle:void 0,fontWeight:"bold",fontSize:10,fontFamily:"Verdana, sans-serif",color:"white"},value:{style:{enabled:!0,fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:"Verdana, sans-serif",color:"white"}}}})}}),e.defaults={cartesian:e.cartesianDefaults,groupedCategory:e.cartesianDefaults,polar:e.polarDefaults,hierarchy:e.hierarchyDefaults},e}(),__extends$1W=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$s=function(){return __assign$s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$s.apply(this,arguments)},DarkTheme=function(e){function t(t){return e.call(this,t)||this}return __extends$1W(t,e),t.prototype.getDefaults=function(){var n=t.fontColor,r=t.mutedFontColor,o={title:{color:n},label:{color:n},gridStyle:[{stroke:"rgb(88, 88, 88)",lineDash:[4,2]}]},i={label:{color:n}},a={axes:{number:__assign$s({},o),category:__assign$s({},o),time:__assign$s({},o)}},s={background:{fill:"rgb(34, 38, 41)"},title:{color:n},subtitle:{color:r},legend:{item:{label:{color:n}},pagination:{activeStyle:{fill:n},inactiveStyle:{fill:r},highlightStyle:{fill:n},label:{color:n}}}},l=function(e){return e.reduce(function(e,n){return Object.prototype.hasOwnProperty.call(t.seriesDarkThemeOverrides,n)&&(e[n]=t.seriesDarkThemeOverrides[n]({seriesLabelDefaults:t.seriesLabelDefaults})),e},{})};return this.mergeWithParentDefaults(e.prototype.getDefaults.call(this),{cartesian:__assign$s(__assign$s(__assign$s({},s),a),{series:__assign$s({bar:__assign$s({},i),column:__assign$s({},i),histogram:__assign$s({},i)},l(CHART_TYPES.cartesianTypes))}),groupedCategory:__assign$s(__assign$s(__assign$s({},s),a),{series:__assign$s({bar:__assign$s({},i),column:__assign$s({},i),histogram:__assign$s({},i)},l(CHART_TYPES.cartesianTypes))}),polar:__assign$s(__assign$s({},s),{series:__assign$s({pie:{calloutLabel:{color:n},sectorLabel:{color:n},title:{color:n},innerLabels:{color:n}}},l(CHART_TYPES.polarTypes))}),hierarchy:__assign$s(__assign$s({},s),{series:__assign$s({treemap:{tileStroke:"white",groupStroke:"white",title:{color:n},subtitle:{color:r},labels:{large:{color:n},medium:{color:n},small:{color:n},value:{style:{color:n}}}}},l(CHART_TYPES.hierarchyTypes))})})},t.fontColor="rgb(200, 200, 200)",t.mutedFontColor="rgb(150, 150, 150)",t.seriesLabelDefaults={label:{color:t.fontColor}},t.seriesDarkThemeOverrides={},t}(ChartTheme),__values$b=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},BaseModuleInstance=function(){function e(){this.destroyFns=[]}return e.prototype.destroy=function(){var e,t;try{for(var n=__values$b(this.destroyFns),r=n.next();!r.done;r=n.next())(0,r.value)()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e}(),REGISTERED_MODULES=[];function registerModule(e){var t=REGISTERED_MODULES.find(function(t){return e.type===t.type&&e.optionsKey===t.optionsKey});if(t){if("enterprise"===e.packageType&&"community"===t.packageType){var n=REGISTERED_MODULES.indexOf(t);REGISTERED_MODULES.splice(n,1,e)}}else REGISTERED_MODULES.push(e)}var __extends$1V=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1i=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},RangeHandle$1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._fill="#f2f2f2",t._stroke="#999999",t._strokeWidth=1,t._lineCap="square",t._centerX=0,t._centerY=0,t._width=8,t._gripLineGap=2,t._gripLineLength=8,t._height=16,t}return __extends$1V(t,e),Object.defineProperty(t.prototype,"centerX",{get:function(){return this._centerX},set:function(e){this._centerX!==e&&(this._centerX=e,this.dirtyPath=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function(){return this._centerY},set:function(e){this._centerY!==e&&(this._centerY=e,this.dirtyPath=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){this._width!==e&&(this._width=e,this.dirtyPath=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gripLineGap",{get:function(){return this._gripLineGap},set:function(e){this._gripLineGap!==e&&(this._gripLineGap=e,this.dirtyPath=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gripLineLength",{get:function(){return this._gripLineLength},set:function(e){this._gripLineLength!==e&&(this._gripLineLength=e,this.dirtyPath=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){this._height!==e&&(this._height=e,this.dirtyPath=!0)},enumerable:!1,configurable:!0}),t.prototype.computeBBox=function(){var e=this,t=e.centerX,n=e.centerY,r=e.width,o=e.height;return new BBox(t-r/2,n-o/2,r,o)},t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t);return this.computeBBox().containsPoint(n.x,n.y)},t.prototype.updatePath=function(){var e=this,t=e.path,n=e.centerX,r=e.centerY,o=e.width,i=e.height;t.clear();var a=n-o/2,s=r-i/2,l=this.align(a),c=this.align(s),u=l+this.align(a,o),d=c+this.align(s,i);t.moveTo(l,c),t.lineTo(u,c),t.lineTo(u,d),t.lineTo(l,d),t.lineTo(l,c);var p=this.gripLineGap/2,h=this.gripLineLength/2;t.moveTo(this.align(n-p),this.align(r-h)),t.lineTo(this.align(n-p),this.align(r+h)),t.moveTo(this.align(n+p),this.align(r-h)),t.lineTo(this.align(n+p),this.align(r+h))},t.className="RangeHandle",__decorate$1i([Validate(COLOR_STRING)],t.prototype,"_fill",void 0),__decorate$1i([Validate(COLOR_STRING)],t.prototype,"_stroke",void 0),__decorate$1i([Validate(NUMBER(0))],t.prototype,"_strokeWidth",void 0),__decorate$1i([Validate(LINE_CAP)],t.prototype,"_lineCap",void 0),__decorate$1i([Validate(NUMBER(0))],t.prototype,"_width",void 0),__decorate$1i([Validate(NUMBER(0))],t.prototype,"_gripLineGap",void 0),__decorate$1i([Validate(NUMBER(0))],t.prototype,"_gripLineLength",void 0),__decorate$1i([Validate(NUMBER(0))],t.prototype,"_height",void 0),t}(Path),__extends$1U=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1h=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},RangeMask=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._stroke="#999999",t._strokeWidth=1,t._fill="#999999",t._fillOpacity=.2,t._lineCap="square",t._x=0,t._y=0,t._width=200,t._height=30,t.minRange=.05,t._min=0,t._max=1,t}return __extends$1U(t,e),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirtyPath=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirtyPath=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){this._width!==e&&(this._width=e,this.dirtyPath=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){this._height!==e&&(this._height=e,this.dirtyPath=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(e){var t;e=Math.min(Math.max(e,0),this.max-this.minRange),isNaN(e)||this._min!==e&&(this._min=e,this.dirtyPath=!0,null===(t=this.onRangeChange)||void 0===t||t.call(this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(e){var t;e=Math.max(Math.min(e,1),this.min+this.minRange),isNaN(e)||this._max!==e&&(this._max=e,this.dirtyPath=!0,null===(t=this.onRangeChange)||void 0===t||t.call(this))},enumerable:!1,configurable:!0}),t.prototype.computeBBox=function(){var e=this,t=e.x,n=e.y,r=e.width,o=e.height;return new BBox(t,n,r,o)},t.prototype.computeVisibleRangeBBox=function(){var e=this,t=e.x,n=e.y,r=e.width,o=e.height,i=e.min,a=e.max,s=t+r*i;return new BBox(s,n,t+r*a-s,o)},t.prototype.updatePath=function(){var e=this,t=e.path,n=e.x,r=e.y,o=e.width,i=e.height,a=e.min,s=e.max;t.clear();var l=this.align(n),c=this.align(r),u=l+this.align(n,o),d=c+this.align(r,i);t.moveTo(l,c),t.lineTo(u,c),t.lineTo(u,d),t.lineTo(l,d),t.lineTo(l,c);var p=this.align(n+o*a),h=this.align(n+o*s);t.moveTo(p,c),t.lineTo(p,d),t.lineTo(h,d),t.lineTo(h,c),t.lineTo(p,c)},t.className="RangeMask",__decorate$1h([Validate(COLOR_STRING)],t.prototype,"_stroke",void 0),__decorate$1h([Validate(NUMBER(0))],t.prototype,"_strokeWidth",void 0),__decorate$1h([Validate(COLOR_STRING)],t.prototype,"_fill",void 0),__decorate$1h([Validate(NUMBER(0,1))],t.prototype,"_fillOpacity",void 0),__decorate$1h([Validate(LINE_CAP)],t.prototype,"_lineCap",void 0),__decorate$1h([Validate(NUMBER(0))],t.prototype,"_width",void 0),__decorate$1h([Validate(NUMBER(0))],t.prototype,"_height",void 0),__decorate$1h([Validate(NUMBER())],t.prototype,"_min",void 0),__decorate$1h([Validate(NUMBER())],t.prototype,"_max",void 0),t}(Path),__extends$1T=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$r=function(){return __assign$r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$r.apply(this,arguments)},RangeSelector=function(e){function t(){var n=e.call(this,{name:"rangeSelectorGroup"})||this;return n.minHandle=new RangeHandle$1,n.maxHandle=new RangeHandle$1,n.mask=function(){var e=t.defaults,r=e.x,o=e.y,i=e.width,a=e.height,s=e.min,l=e.max,c=new RangeMask;c.x=r,c.y=o,c.width=i,c.height=a,c.min=s,c.max=l;var u=n,d=u.minHandle,p=u.maxHandle;return d.centerX=r,p.centerX=r+i,d.centerY=p.centerY=o+a/2,n.append([c,d,p]),c.onRangeChange=function(){var e;n.updateHandles(),null===(e=n.onRangeChange)||void 0===e||e.call(n)},c}(),n._x=t.defaults.x,n._y=t.defaults.y,n._width=t.defaults.width,n._height=t.defaults.height,n._min=t.defaults.min,n._max=t.defaults.max,n.isContainerNode=!0,n}return __extends$1T(t,e),Object.defineProperty(t.prototype,"x",{get:function(){return this.mask.x},set:function(e){this.mask.x=e,this.updateHandles()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.mask.y},set:function(e){this.mask.y=e,this.updateHandles()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.mask.width},set:function(e){this.mask.width=e,this.updateHandles()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.mask.height},set:function(e){this.mask.height=e,this.updateHandles()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.mask.min},set:function(e){this.mask.min=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.mask.max},set:function(e){this.mask.max=e},enumerable:!1,configurable:!0}),t.prototype.updateHandles=function(){var e=this,t=e.minHandle,n=e.maxHandle,r=e.x,o=e.y,i=e.width,a=e.height,s=e.mask;t.centerX=r+i*s.min,n.centerX=r+i*s.max,t.centerY=n.centerY=o+a/2},t.prototype.computeBBox=function(){return this.mask.computeBBox()},t.prototype.computeVisibleRangeBBox=function(){return this.mask.computeVisibleRangeBBox()},t.prototype.render=function(e){var t=e.ctx,n=e.forceRender,r=e.stats;if(this.dirty!==RedrawType.NONE||n){this.computeTransformMatrix(),this.matrix.toContext(t);var o=this;[o.mask,o.minHandle,o.maxHandle].forEach(function(r){r.visible&&(n||r.dirty>RedrawType.NONE)&&(t.save(),r.render(__assign$r(__assign$r({},e),{ctx:t,forceRender:n})),t.restore())}),this.markClean({force:!0}),r&&r.nodesRendered++}else r&&r.nodesSkipped++},t.className="Range",t.defaults={x:0,y:0,width:200,height:30,min:0,max:1},t}(Group),NavigatorMask=function(){function e(e){this.rm=e}return Object.defineProperty(e.prototype,"fill",{get:function(){return this.rm.fill},set:function(e){this.rm.fill=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.rm.stroke},set:function(e){this.rm.stroke=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.rm.strokeWidth},set:function(e){this.rm.strokeWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillOpacity",{get:function(){return this.rm.fillOpacity},set:function(e){this.rm.fillOpacity=e},enumerable:!1,configurable:!0}),e}(),NavigatorHandle=function(){function e(e){this.rh=e}return Object.defineProperty(e.prototype,"fill",{get:function(){return this.rh.fill},set:function(e){this.rh.fill=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.rh.stroke},set:function(e){this.rh.stroke=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.rh.strokeWidth},set:function(e){this.rh.strokeWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.rh.width},set:function(e){this.rh.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.rh.height},set:function(e){this.rh.height=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gripLineGap",{get:function(){return this.rh.gripLineGap},set:function(e){this.rh.gripLineGap=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gripLineLength",{get:function(){return this.rh.gripLineLength},set:function(e){this.rh.gripLineLength=e},enumerable:!1,configurable:!0}),e}(),__extends$1S=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1g=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Navigator=function(e){function t(t){var n=e.call(this)||this;return n.ctx=t,n.rs=new RangeSelector,n.mask=new NavigatorMask(n.rs.mask),n.minHandle=new NavigatorHandle(n.rs.minHandle),n.maxHandle=new NavigatorHandle(n.rs.maxHandle),n.minHandleDragging=!1,n.maxHandleDragging=!1,n.panHandleOffset=NaN,n._enabled=!1,n.margin=10,n._visible=!0,n.rs.onRangeChange=function(){return n.ctx.zoomManager.updateZoom("navigator",{x:{min:n.rs.min,max:n.rs.max}})},[t.interactionManager.addListener("drag-start",function(e){return n.onDragStart(e)}),t.interactionManager.addListener("drag",function(e){return n.onDrag(e)}),t.interactionManager.addListener("hover",function(e){return n.onDrag(e)}),t.interactionManager.addListener("drag-end",function(){return n.onDragStop()})].forEach(function(e){return n.destroyFns.push(function(){return t.interactionManager.removeListener(e)})}),[t.layoutService.addListener("before-series",function(e){return n.layout(e)}),t.layoutService.addListener("layout-complete",function(e){return n.layoutComplete(e)})].forEach(function(e){return n.destroyFns.push(function(){return t.layoutService.removeListener(e)})}),t.scene.root.appendChild(n.rs),n.destroyFns.push(function(){var e;return null===(e=t.scene.root)||void 0===e?void 0:e.removeChild(n.rs)}),n.updateGroupVisibility(),n}return __extends$1S(t,e),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this.updateGroupVisibility()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.rs.width},set:function(e){this.rs.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.rs.height},set:function(e){this.rs.height=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.rs.min},set:function(e){this.rs.min=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.rs.max},set:function(e){this.rs.max=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e,this.updateGroupVisibility()},enumerable:!1,configurable:!0}),t.prototype.updateGroupVisibility=function(){this.rs.visible=this.enabled&&this.visible},t.prototype.layout=function(e){var t=e.shrinkRect;if(this.enabled){var n=this.rs.height+this.margin;t.shrink(n,"bottom"),this.rs.y=t.y+t.height+this.margin}return{shrinkRect:t}},t.prototype.layoutComplete=function(e){var t=e.series,n=t.rect,r=t.visible;this.enabled&&r&&(this.rs.x=n.x,this.rs.width=n.width),this.visible=r},t.prototype.update=function(){},t.prototype.onDragStart=function(e){if(this.enabled){var t=e.offsetX,n=e.offsetY,r=this.rs,o=r.minHandle,i=r.maxHandle,a=r.x,s=r.width,l=r.min,c=r.computeVisibleRangeBBox();this.minHandleDragging||this.maxHandleDragging||(o.containsPoint(t,n)?this.minHandleDragging=!0:i.containsPoint(t,n)?this.maxHandleDragging=!0:c.containsPoint(t,n)&&(this.panHandleOffset=(t-a)/s-l))}},t.prototype.onDrag=function(e){if(this.enabled){var t=this.rs,n=this.panHandleOffset,r=t.x,o=t.y,i=t.width,a=t.height,s=t.minHandle,l=t.maxHandle,c=e.offsetX,u=e.offsetY,d=r+i*t.min,p=r+i*t.max,h=new BBox(d,o,p-d,a),f=function(){return Math.min(Math.max((c-r)/i,0),1)};if(s.containsPoint(c,u)||l.containsPoint(c,u)?this.ctx.cursorManager.updateCursor("navigator","ew-resize"):h.containsPoint(c,u)?this.ctx.cursorManager.updateCursor("navigator","grab"):this.ctx.cursorManager.updateCursor("navigator"),this.minHandleDragging)t.min=f();else if(this.maxHandleDragging)t.max=f();else if(!isNaN(n)){var g=t.max-t.min,m=Math.min(f()-n,1-g);m<=t.min?(t.min=m,t.max=t.min+g):(t.max=m+g,t.min=t.max-g)}}},t.prototype.onDragStop=function(){this.stopHandleDragging()},t.prototype.stopHandleDragging=function(){this.minHandleDragging=this.maxHandleDragging=!1,this.panHandleOffset=NaN},__decorate$1g([Validate(BOOLEAN)],t.prototype,"_enabled",void 0),__decorate$1g([Validate(NUMBER(0))],t.prototype,"margin",void 0),t}(BaseModuleInstance),CHART_NAVIGATOR_MODULE={type:"root",optionsKey:"navigator",packageType:"community",chartTypes:["cartesian"],initialiseModule:function(e){return{instance:new Navigator(e)}}};registerModule(CHART_NAVIGATOR_MODULE);var __extends$1R=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1f=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Background=function(e){function t(t){var n,r=e.call(this)||this;r.onLayoutComplete=function(e){var t=e.chart,n=t.width,o=t.height;r.rectNode.width=n,r.rectNode.height=o},r.node=new Group({name:"background"}),r.node.zIndex=Layers.SERIES_BACKGROUND_ZINDEX,r.rectNode=new Rect,r.node.appendChild(r.rectNode),r.fill="white",r.visible=!0,null===(n=t.scene.root)||void 0===n||n.appendChild(r.node),r.destroyFns.push(function(){var e;return null===(e=t.scene.root)||void 0===e?void 0:e.removeChild(r.node)});var o=t.layoutService.addListener("layout-complete",r.onLayoutComplete);return r.destroyFns.push(function(){return t.layoutService.removeListener(o)}),r}return __extends$1R(t,e),t.prototype.update=function(){},__decorate$1f([Validate(BOOLEAN),ProxyPropertyOnWrite("node","visible")],t.prototype,"visible",void 0),__decorate$1f([Validate(OPT_COLOR_STRING),ProxyPropertyOnWrite("rectNode","fill")],t.prototype,"fill",void 0),t}(BaseModuleInstance),CHART_BACKGROUND_MODULE={type:"root",optionsKey:"background",packageType:"community",chartTypes:["cartesian","polar","hierarchy"],initialiseModule:function(e){return{instance:new Background(e)}}};registerModule(CHART_BACKGROUND_MODULE);var builtinSeriesTypes={area:AreaSeries,bar:BarSeries,column:BarSeries,histogram:HistogramSeries,line:LineSeries,pie:PieSeries,scatter:ScatterSeries,treemap:TreemapSeries},extraSeriesFactories={},initialisedSeriesModules=new Map;function initialiseSeriesModules(){REGISTERED_MODULES.filter(function(e){return"series"===e.type}).filter(function(e){return!initialisedSeriesModules.has(e)}).forEach(function(e){return initialiseSeriesModule(e)})}var seriesDefaults={};function initialiseSeriesModule(e){var t=e.optionsKey,n=e.initialiseModule({seriesFactory:{add:function(e){extraSeriesFactories[t]=e},delete:function(){delete extraSeriesFactories[t]}},defaults:{add:function(e){seriesDefaults[t]=e},delete:function(){delete seriesDefaults[t]}},themes:{chartTheme:{add:function(e){ChartTheme.seriesThemeOverrides[t]=e},delete:function(){delete ChartTheme.seriesThemeOverrides[t]}},darkTheme:{add:function(e){DarkTheme.seriesDarkThemeOverrides[t]=e},delete:function(){delete DarkTheme.seriesDarkThemeOverrides[t]}}}});initialisedSeriesModules.set(e,n);var r=e.chartTypes[0];CHART_TYPES.add(t,r)}function getSeries(e){if(Object.prototype.hasOwnProperty.call(extraSeriesFactories,e))return(0,extraSeriesFactories[e])();if(Object.prototype.hasOwnProperty.call(builtinSeriesTypes,e))return new(0,builtinSeriesTypes[e]);throw new Error("AG Charts - unknown series type: "+e)}var DEFAULT_CARTESIAN_CHART_OVERRIDES={axes:[{type:NumberAxis.type,position:"left"},{type:CategoryAxis.type,position:"bottom"}]},DEFAULT_BAR_CHART_OVERRIDES={axes:[{type:"number",position:"bottom"},{type:"category",position:"left"}]},DEFAULT_SCATTER_HISTOGRAM_CHART_OVERRIDES={axes:[{type:"number",position:"bottom"},{type:"number",position:"left"}]},__assign$q=function(){return __assign$q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$q.apply(this,arguments)};function transform(e,t){var n={};for(var r in e){var o=t[r]||function(e){return e};n[r]=o(e[r],e)}return n}function is2dArray(e){return null!=e&&e instanceof Array&&e[0]instanceof Array}function yNamesMapping(e,t){if(null==e)return{};if(!(e instanceof Array))return e;var n=t.yKeys;if(null==n||is2dArray(n))throw new Error("AG Charts - yNames and yKeys mismatching configuration.");var r={};return n.forEach(function(t,n){r[t]=e[n]}),r}function yKeysMapping(e,t){return null==e?[[]]:is2dArray(e)?e:t.grouped?e.map(function(e){return[e]}):[e]}function barSeriesTransform(e){var t=__assign$q({},e);return delete t.yKey,delete t.yName,transform(t,{yNames:yNamesMapping,yKeys:yKeysMapping})}function identityTransform(e){return e}var SERIES_TRANSFORMS={area:identityTransform,bar:barSeriesTransform,column:barSeriesTransform,histogram:identityTransform,line:identityTransform,pie:identityTransform,scatter:identityTransform,treemap:identityTransform};function applySeriesTransform(e){var t=e.type||"line",n=SERIES_TRANSFORMS[t];return(null!=n?n:identityTransform)(e)}var __extends$1Q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),palette$7={fills:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722"],strokes:["#ab2f26","#a31545","#6d1b7b","#482980","#2c397f","#1769aa","#0276ab","#008494","#00695f","#357a38","#618834","#909a28","#b3a429","#b38705","#b36a00","#b33d18"]},MaterialLight=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1Q(t,e),t.prototype.getPalette=function(){return palette$7},t}(ChartTheme),__extends$1P=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),palette$6={fills:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722"],strokes:["#ab2f26","#a31545","#6d1b7b","#482980","#2c397f","#1769aa","#0276ab","#008494","#00695f","#357a38","#618834","#909a28","#b3a429","#b38705","#b36a00","#b33d18"]},MaterialDark=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1P(t,e),t.prototype.getPalette=function(){return palette$6},t}(DarkTheme),__extends$1O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),palette$5={fills:["#c16068","#a2bf8a","#ebcc87","#80a0c3","#b58dae","#85c0d1"],strokes:["#874349","#718661","#a48f5f","#5a7088","#7f637a","#5d8692"]},PastelLight=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1O(t,e),t.prototype.getPalette=function(){return palette$5},t}(ChartTheme),__extends$1N=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),palette$4={fills:["#c16068","#a2bf8a","#ebcc87","#80a0c3","#b58dae","#85c0d1"],strokes:["#874349","#718661","#a48f5f","#5a7088","#7f637a","#5d8692"]},PastelDark=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1N(t,e),t.prototype.getPalette=function(){return palette$4},t}(DarkTheme),__extends$1M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),palette$3={fills:["#febe76","#ff7979","#badc58","#f9ca23","#f0932b","#eb4c4b","#6ab04c","#7ed6df","#e056fd","#686de0"],strokes:["#b28553","#b35555","#829a3e","#ae8d19","#a8671e","#a43535","#4a7b35","#58969c","#9d3cb1","#494c9d"]},SolarLight=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1M(t,e),t.prototype.getPalette=function(){return palette$3},t}(ChartTheme),__extends$1L=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),palette$2={fills:["#febe76","#ff7979","#badc58","#f9ca23","#f0932b","#eb4c4b","#6ab04c","#7ed6df","#e056fd","#686de0"],strokes:["#b28553","#b35555","#829a3e","#ae8d19","#a8671e","#a43535","#4a7b35","#58969c","#9d3cb1","#494c9d"]},SolarDark=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1L(t,e),t.prototype.getPalette=function(){return palette$2},t}(DarkTheme),__extends$1K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),palette$1={fills:["#5BC0EB","#FDE74C","#9BC53D","#E55934","#FA7921","#fa3081"],strokes:["#4086a4","#b1a235","#6c8a2b","#a03e24","#af5517","#af225a"]},VividLight=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1K(t,e),t.prototype.getPalette=function(){return palette$1},t}(ChartTheme),__extends$1J=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),palette={fills:["#5BC0EB","#FDE74C","#9BC53D","#E55934","#FA7921","#fa3081"],strokes:["#4086a4","#b1a235","#6c8a2b","#a03e24","#af5517","#af225a"]},VividDark=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1J(t,e),t.prototype.getPalette=function(){return palette},t}(DarkTheme),__assign$p=function(){return __assign$p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$p.apply(this,arguments)},lightTheme=function(){return new ChartTheme},darkTheme=function(){return new DarkTheme},lightThemes={undefined:lightTheme,null:lightTheme,"ag-default":lightTheme,"ag-material":function(){return new MaterialLight},"ag-pastel":function(){return new PastelLight},"ag-solar":function(){return new SolarLight},"ag-vivid":function(){return new VividLight}},darkThemes={undefined:darkTheme,null:darkTheme,"ag-default-dark":darkTheme,"ag-material-dark":function(){return new MaterialDark},"ag-pastel-dark":function(){return new PastelDark},"ag-solar-dark":function(){return new SolarDark},"ag-vivid-dark":function(){return new VividDark}},themes$1=__assign$p(__assign$p({},darkThemes),lightThemes);function getChartTheme(e){var t;if(e instanceof ChartTheme)return e;var n=themes$1[e];if(n)return n();for(var r,o=[];"object"==typeof e;)o.push(null!==(t=e.overrides)&&void 0!==t?t:{}),e.palette&&null==r&&(r=e.palette),e=e.baseTheme;o.reverse();var i=__assign$p({baseTheme:e,overrides:jsonMerge(o)},r?{palette:r}:{});return i.baseTheme||i.overrides?new(getChartTheme(i.baseTheme).constructor)(i):lightTheme()}var __assign$o=function(){return __assign$o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$o.apply(this,arguments)},__values$a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$q=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$e=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$q(arguments[t]));return e};function groupSeriesByType(e){var t,n,r={},o=[];try{for(var i=__values$a(e),a=i.next();!a.done;a=i.next()){var s=a.value;if("column"===s.type||"bar"===s.type||"area"===s.type&&!0===s.stacked){var l=s.type||"line",c=s.stacked?"stacked":"grouped",u=l+"-"+s.xKey+"-"+c;null==r[u]&&(r[u]=[],o.push(r[u])),r[u].push(s)}else o.push([s])}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}var FAIL=Symbol(),SKIP=Symbol(),ARRAY_REDUCER=function(e){return function(t,n){var r;return t.concat.apply(t,__spread$e(null!==(r=n[e])&&void 0!==r?r:[]))}},BOOLEAN_OR_REDUCER=function(e,t){return function(n,r){return"boolean"==typeof r[e]?null!=n&&n||r[e]:null!=n?n:t}},DEFAULTING_ARRAY_REDUCER=function(e,t){return function(n,r,o,i){var a,s=t===SKIP||t===FAIL,l=null!==(a=r[e])&&void 0!==a?a:t;if(l===FAIL)throw new Error("AG Charts - missing value for property ["+e+"] on series config.");if(l===SKIP)return n;if(0===n.length&&!s)for(;n.length<i;)n=n.concat(t);return s?n.concat(l):(n[o]=l,n)}},YKEYS_REDUCER=function(e,t){return function(n,r){return r[e]===t?n.concat.apply(n,__spread$e(r.yKey?[r.yKey]:r.yKeys)):n}},STACK_GROUPS_REDUCER=function(){return function(e,t){var n;return __assign$o(__assign$o({},e),((n={})[t.stackGroup]=__spread$e(e[t.stackGroup]||[],[t.yKey]),n))}},REDUCE_CONFIG={hideInChart:{outputProp:"hideInChart",reducer:ARRAY_REDUCER("hideInChart"),start:[]},hideInLegend:{outputProp:"hideInLegend",reducer:ARRAY_REDUCER("hideInLegend"),start:[]},yKey:{outputProp:"yKeys",reducer:DEFAULTING_ARRAY_REDUCER("yKey",SKIP),start:[]},fill:{outputProp:"fills",reducer:DEFAULTING_ARRAY_REDUCER("fill",SKIP),start:[]},stroke:{outputProp:"strokes",reducer:DEFAULTING_ARRAY_REDUCER("stroke",SKIP),start:[]},yName:{outputProp:"yNames",reducer:DEFAULTING_ARRAY_REDUCER("yName",SKIP),start:[]},visible:{outputProp:"visibles",reducer:DEFAULTING_ARRAY_REDUCER("visible",!0),start:[]},grouped:{outputProp:"grouped",reducer:BOOLEAN_OR_REDUCER("grouped"),seriesType:["bar","column"],start:void 0},showInLegend:{outputProp:"hideInLegend",reducer:YKEYS_REDUCER("showInLegend",!1),seriesType:["bar","column"],start:[]},stackGroup:{outputProp:"stackGroups",reducer:STACK_GROUPS_REDUCER(),seriesType:["bar","column"],start:{}}};function reduceSeries(e){var t={};return e.forEach(function(n,r){Object.keys(n).forEach(function(o){var i,a=REDUCE_CONFIG[o],s=function(){var e,r;t[o]=null!==(r=null!==(e=n[o])&&void 0!==e?e:t[o])&&void 0!==r?r:void 0};if(a){var l=a.outputProp,c=a.reducer,u=a.start,d=void 0===u?void 0:u,p=a.seriesType;if((void 0===p?[n.type]:p).includes(n.type)){var h=c(null!==(i=t[l])&&void 0!==i?i:d,n,r,e.length);void 0!==h&&(t[l]=h)}else s()}else s()})}),t}function processSeriesOptions(e){var t,n,r=[],o=e.map(function(e){return"bar"!==e.type&&"column"!==e.type||null==e.yKey||e.stacked?e:__assign$o(__assign$o({},e),{grouped:null==e.grouped||e.grouped})});try{for(var i=__values$a(groupSeriesByType(o)),a=i.next();!a.done;a=i.next()){var s=a.value;switch(s[0].type){case"column":case"bar":case"area":r.push(reduceSeries(s));break;default:s.length>1&&Logger.warn("unexpected grouping of series type: "+s[0].type),r.push(s[0])}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}var types={number:"number",time:"time",log:"log",category:"category",groupedCategory:"groupedCategory"},CHART_AXES_TYPES={has:function(e){return Object.prototype.hasOwnProperty.call(types,e)},get axesTypes(){return Object.keys(types)}},__assign$n=function(){return __assign$n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$n.apply(this,arguments)},__values$9=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$p=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$d=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$p(arguments[t]));return e};function optionsType(e){var t,n,r,o;return null!==(o=null!==(t=e.type)&&void 0!==t?t:null===(r=null===(n=e.series)||void 0===n?void 0:n[0])||void 0===r?void 0:r.type)&&void 0!==o?o:"line"}function isAgCartesianChartOptions(e){var t=optionsType(e);return null==t||("cartesian"===t?(Logger.warnOnce("type '"+t+"' is deprecated, use a series type instead"),!0):CHART_TYPES.isCartesian(t))}function isAgHierarchyChartOptions(e){var t=optionsType(e);return null!=t&&("hierarchy"===t?(Logger.warnOnce("type '"+t+"' is deprecated, use a series type instead"),!0):CHART_TYPES.isHierarchy(t))}function isAgPolarChartOptions(e){var t=optionsType(e);return null!=t&&("polar"===t?(Logger.warnOnce("type '"+t+"' is deprecated, use a series type instead"),!0):CHART_TYPES.isPolar(t))}function isSeriesOptionType(e){return null!=e&&CHART_TYPES.has(e)}function isAxisOptionType(e){return null!=e&&CHART_AXES_TYPES.has(e)}function countArrayElements(e){var t,n,r=0;try{for(var o=__values$9(e),i=o.next();!i.done;i=o.next()){var a=i.value;a instanceof Array&&(r+=countArrayElements(a)),null!=a&&r++}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function takeColours(e,t,n){for(var r=[],o=0;o<n;o++)r.push(t[(o+e.colourIndex)%t.length]);return r}var noDataCloneMergeOptions={avoidDeepClone:["data"]};function prepareOptions(e,t,n){var r,o,i,a,s,l,c,u,d=jsonMerge([t,e],noDataCloneMergeOptions);sanityCheckOptions(d);var p=d.type,h=optionsType(d),f=(null===(s=d.tooltip)||void 0===s?void 0:s.position)||{},g=function(e){if(null!=e&&!isSeriesOptionType(e)&&!(null==n?void 0:n[e]))throw new Error("AG Charts - unknown series type: "+e+"; expected one of: "+CHART_TYPES.seriesTypes)};g(h);try{for(var m=__values$9(null!==(l=d.series)&&void 0!==l?l:[]),v=m.next();!v.done;v=m.next()){var y=v.value.type;null!=y&&g(y)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}d=__assign$n(__assign$n({},d),{type:h});var A="line";isAgCartesianChartOptions(d)?A="line":isAgHierarchyChartOptions(d)?A="treemap":isAgPolarChartOptions(d)&&(A="pie");var w={};n&&Object.prototype.hasOwnProperty.call(n,h)?w=n[h]:"bar"===h?w=DEFAULT_BAR_CHART_OVERRIDES:"scatter"===h||"histogram"===h?w=DEFAULT_SCATTER_HISTOGRAM_CHART_OVERRIDES:isAgCartesianChartOptions(d)&&(w=DEFAULT_CARTESIAN_CHART_OVERRIDES);var b=prepareMainOptions(w,d),_=b.context,C=b.mergedOptions,E=b.axesThemes,S=b.seriesThemes;C.series=processSeriesOptions((C.series||[]).map(function(e){var t=A;e.type?t=e.type:isSeriesOptionType(p)&&(t=p);var n=mergeSeriesOptions(e,t,S,f);return"pie"===t&&preparePieOptions(S.pie,e,n),n})).map(function(e){return prepareSeries(_,e)});var O=function(e){var t=isAxisOptionType(e);return t||Logger.warnOnce("AG Charts - unknown axis type: "+e+"; expected one of: "+CHART_AXES_TYPES.axesTypes+", ignoring."),t};if(isAgCartesianChartOptions(C)){var x=!0;try{for(var D=__values$9(null!==(c=C.axes)&&void 0!==c?c:[]),P=D.next();!P.done;P=D.next())O(P.value.type)||(x=!1)}catch(e){i={error:e}}finally{try{P&&!P.done&&(a=D.return)&&a.call(D)}finally{if(i)throw i.error}}C.axes=x?null===(u=C.axes)||void 0===u?void 0:u.map(function(e){var t=e.type;return prepareAxis(e,jsonMerge([E[t],E[t][e.position||"unknown"]||{}]))}):w.axes}return prepareEnabledOptions(d,C),C}function sanityCheckOptions(e){Object.entries({yKeys:"yKey",yNames:"yName"}).forEach(function(t){var n,r=__read$p(t,2),o=r[0],i=r[1];(null===(n=e.series)||void 0===n?void 0:n.some(function(e){return null!=e[o]}))&&Logger.warnOnce("property [series."+o+"] is deprecated, please use [series."+i+"] and multiple series instead.")})}function mergeSeriesOptions(e,t,n,r){var o,i=jsonMerge([__assign$n({},r),null===(o=e.tooltip)||void 0===o?void 0:o.position],noDataCloneMergeOptions);return jsonMerge([n[t]||{},__assign$n(__assign$n({},e),{type:t,tooltip:__assign$n(__assign$n({},e.tooltip),{position:i})})],noDataCloneMergeOptions)}function prepareMainOptions(e,t){var n=prepareTheme(t),r=n.theme,o=n.cleanedTheme,i=n.axesThemes,a=n.seriesThemes;return{context:{colourIndex:0,palette:r.palette},mergedOptions:jsonMerge([e,o,t],noDataCloneMergeOptions),axesThemes:i,seriesThemes:a}}function prepareTheme(e){var t=getChartTheme(e.theme),n=t.config[optionsType(e)||"cartesian"],r=Object.entries(t.config).reduce(function(e,t){var n=__read$p(t,2),r=n[0],o=n[1].series;return e[r]=null==o?void 0:o[r],e},{});return{theme:t,axesThemes:n.axes||{},seriesThemes:r,cleanedTheme:jsonMerge([n,{axes:DELETE,series:DELETE}])}}function prepareSeries(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=calculateSeriesPalette(e,t);return applySeriesTransform(jsonMerge(__spread$d(n,[o,t,{stacked:DELETE}]),noDataCloneMergeOptions))}function calculateSeriesPalette(e,t){var n={},r=e.palette,o=r.fills,i=r.strokes,a=countArrayElements(t.yKeys||[])||1;switch(t.type){case"pie":a=Math.max(o.length,i.length);case"area":case"bar":case"column":n.fills=takeColours(e,o,a),n.strokes=takeColours(e,i,a);break;case"histogram":n.fill=takeColours(e,o,1)[0],n.stroke=takeColours(e,i,1)[0];break;case"scatter":n.marker={stroke:takeColours(e,i,1)[0],fill:takeColours(e,o,1)[0]};break;case"line":n.stroke=takeColours(e,o,1)[0],n.marker={stroke:takeColours(e,i,1)[0],fill:takeColours(e,o,1)[0]}}return e.colourIndex+=a,n}function prepareAxis(e,t){var n={top:DELETE,bottom:DELETE,left:DELETE,right:DELETE};if(e.crossLines){Array.isArray(e.crossLines)||(Logger.warn("axis[].crossLines should be an array."),e.crossLines=[]);var r=t.crossLines;e.crossLines=e.crossLines.map(function(e){return jsonMerge([r,e])})}return jsonMerge([t,{crossLines:DELETE},e,n],noDataCloneMergeOptions)}function prepareEnabledOptions(e,t){jsonWalk(e,function(e,t,n){if(n){var r=n._enabledFromTheme;null!=r&&delete n._enabledFromTheme,"enabled"in n&&(r||null==t.enabled&&(n.enabled=!0))}},{skip:["data","theme"]},t),jsonWalk(t,function(e,t){null!=t._enabledFromTheme&&delete t._enabledFromTheme},{skip:["data","theme"]})}function preparePieOptions(e,t,n){Array.isArray(t.innerLabels)?n.innerLabels=t.innerLabels.map(function(t){return jsonMerge([e.innerLabels,t])}):n.innerLabels=DELETE}var horizontalCrosslineTranslationDirections={top:{xTranslationDirection:0,yTranslationDirection:-1},bottom:{xTranslationDirection:0,yTranslationDirection:1},left:{xTranslationDirection:-1,yTranslationDirection:0},right:{xTranslationDirection:1,yTranslationDirection:0},topLeft:{xTranslationDirection:1,yTranslationDirection:-1},topRight:{xTranslationDirection:-1,yTranslationDirection:-1},bottomLeft:{xTranslationDirection:1,yTranslationDirection:1},bottomRight:{xTranslationDirection:-1,yTranslationDirection:1},inside:{xTranslationDirection:0,yTranslationDirection:0},insideLeft:{xTranslationDirection:1,yTranslationDirection:0},insideRight:{xTranslationDirection:-1,yTranslationDirection:0},insideTop:{xTranslationDirection:0,yTranslationDirection:1},insideBottom:{xTranslationDirection:0,yTranslationDirection:-1},insideTopLeft:{xTranslationDirection:1,yTranslationDirection:1},insideBottomLeft:{xTranslationDirection:1,yTranslationDirection:-1},insideTopRight:{xTranslationDirection:-1,yTranslationDirection:1},insideBottomRight:{xTranslationDirection:-1,yTranslationDirection:-1}},verticalCrossLineTranslationDirections={top:{xTranslationDirection:1,yTranslationDirection:0},bottom:{xTranslationDirection:-1,yTranslationDirection:0},left:{xTranslationDirection:0,yTranslationDirection:-1},right:{xTranslationDirection:0,yTranslationDirection:1},topLeft:{xTranslationDirection:-1,yTranslationDirection:-1},topRight:{xTranslationDirection:-1,yTranslationDirection:1},bottomLeft:{xTranslationDirection:1,yTranslationDirection:-1},bottomRight:{xTranslationDirection:1,yTranslationDirection:1},inside:{xTranslationDirection:0,yTranslationDirection:0},insideLeft:{xTranslationDirection:0,yTranslationDirection:1},insideRight:{xTranslationDirection:0,yTranslationDirection:-1},insideTop:{xTranslationDirection:-1,yTranslationDirection:0},insideBottom:{xTranslationDirection:1,yTranslationDirection:0},insideTopLeft:{xTranslationDirection:-1,yTranslationDirection:1},insideBottomLeft:{xTranslationDirection:1,yTranslationDirection:1},insideTopRight:{xTranslationDirection:-1,yTranslationDirection:-1},insideBottomRight:{xTranslationDirection:1,yTranslationDirection:-1}},calculateLabelTranslation=function(e){var t,n=e.yDirection,r=e.padding,o=void 0===r?0:r,i=e.position,a=e.bbox,s=n?horizontalCrosslineTranslationDirections:verticalCrossLineTranslationDirections,l=null!==(t=s[i])&&void 0!==t?t:s.top,c=l.xTranslationDirection,u=l.yTranslationDirection;return{xTranslation:c*(o+(n?a.width:a.height)/2),yTranslation:u*(o+(n?a.height:a.width)/2)}},POSITION_TOP_COORDINATES=function(e){var t=e.yDirection,n=e.xEnd,r=e.yStart,o=e.yEnd;return t?{x:n/2,y:r}:{x:n,y:isNaN(o)?r:(r+o)/2}},POSITION_LEFT_COORDINATES=function(e){var t=e.yDirection,n=e.xStart,r=e.xEnd,o=e.yStart,i=e.yEnd;return t?{x:n,y:isNaN(i)?o:(o+i)/2}:{x:r/2,y:o}},POSITION_RIGHT_COORDINATES=function(e){var t=e.yDirection,n=e.xEnd,r=e.yStart,o=e.yEnd;return t?{x:n,y:isNaN(o)?r:(r+o)/2}:{x:n/2,y:isNaN(o)?r:o}},POSITION_BOTTOM_COORDINATES=function(e){var t=e.yDirection,n=e.xStart,r=e.xEnd,o=e.yStart,i=e.yEnd;return t?{x:r/2,y:isNaN(i)?o:i}:{x:n,y:isNaN(i)?o:(o+i)/2}},POSITION_INSIDE_COORDINATES=function(e){var t=e.xEnd,n=e.yStart,r=e.yEnd;return{x:t/2,y:isNaN(r)?n:(n+r)/2}},POSITION_TOP_LEFT_COORDINATES=function(e){var t=e.yDirection,n=e.xStart,r=e.xEnd,o=e.yStart;return t?{x:n/2,y:o}:{x:r,y:o}},POSITION_BOTTOM_LEFT_COORDINATES=function(e){var t=e.yDirection,n=e.xStart,r=e.yStart,o=e.yEnd;return t?{x:n,y:isNaN(o)?r:o}:{x:n,y:r}},POSITION_TOP_RIGHT_COORDINATES=function(e){var t=e.yDirection,n=e.xEnd,r=e.yStart,o=e.yEnd;return t?{x:n,y:r}:{x:n,y:isNaN(o)?r:o}},POSITION_BOTTOM_RIGHT_COORDINATES=function(e){var t=e.yDirection,n=e.xStart,r=e.xEnd,o=e.yStart,i=e.yEnd;return t?{x:r,y:isNaN(i)?o:i}:{x:n,y:isNaN(i)?o:i}},labeldDirectionHandling={top:{c:POSITION_TOP_COORDINATES},bottom:{c:POSITION_BOTTOM_COORDINATES},left:{c:POSITION_LEFT_COORDINATES},right:{c:POSITION_RIGHT_COORDINATES},topLeft:{c:POSITION_TOP_LEFT_COORDINATES},topRight:{c:POSITION_TOP_RIGHT_COORDINATES},bottomLeft:{c:POSITION_BOTTOM_LEFT_COORDINATES},bottomRight:{c:POSITION_BOTTOM_RIGHT_COORDINATES},inside:{c:POSITION_INSIDE_COORDINATES},insideLeft:{c:POSITION_LEFT_COORDINATES},insideRight:{c:POSITION_RIGHT_COORDINATES},insideTop:{c:POSITION_TOP_COORDINATES},insideBottom:{c:POSITION_BOTTOM_COORDINATES},insideTopLeft:{c:POSITION_TOP_LEFT_COORDINATES},insideBottomLeft:{c:POSITION_BOTTOM_LEFT_COORDINATES},insideTopRight:{c:POSITION_TOP_RIGHT_COORDINATES},insideBottomRight:{c:POSITION_BOTTOM_RIGHT_COORDINATES}},__extends$1I=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$m=function(){return __assign$m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$m.apply(this,arguments)},__decorate$1e=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Range=function(e){function t(){var t=e.call(this)||this;return t.x1=0,t.y1=0,t.x2=0,t.y2=0,t.startLine=!1,t.endLine=!1,t.isRange=!1,t.restoreOwnStyles(),t}return __extends$1I(t,e),t.prototype.computeBBox=function(){return new BBox(this.x1,this.y1,this.x2-this.x1,this.y2-this.y1)},t.prototype.isPointInPath=function(e,t){return!1},t.prototype.render=function(t){var n,r=t.ctx,o=t.forceRender,i=t.stats;if(this.dirty!==RedrawType.NONE||o){this.computeTransformMatrix(),this.matrix.toContext(r);var a=this,s=a.x1,l=a.y1,c=a.x2,u=a.y2;s=this.align(s),l=this.align(l),c=this.align(c),u=this.align(u);var d=this,p=d.fill,h=d.opacity;if(d.isRange&&p){var f=this.fillOpacity;r.fillStyle=p,r.globalAlpha=h*f,r.beginPath(),r.moveTo(s,l),r.lineTo(c,l),r.lineTo(c,u),r.lineTo(s,u),r.closePath(),r.fill()}var g=this,m=g.stroke,v=g.strokeWidth,y=g.startLine,A=g.endLine;if((y||A)&&m&&v){var w=this,b=w.strokeOpacity,_=w.lineDash,C=w.lineDashOffset,E=w.lineCap,S=w.lineJoin;r.strokeStyle=m,r.globalAlpha=h*b,r.lineWidth=v,_&&r.setLineDash(_),C&&(r.lineDashOffset=C),E&&(r.lineCap=E),S&&(r.lineJoin=S),r.beginPath(),y&&(r.moveTo(s,l),r.lineTo(c,l)),A&&(r.moveTo(c,u),r.lineTo(s,u)),r.stroke()}null===(n=this.fillShadow)||void 0===n||n.markClean(),e.prototype.render.call(this,t)}else i&&(i.nodesSkipped+=this.nodeCount.count)},t.className="Range",t.defaultStyles=__assign$m(__assign$m({},Shape.defaultStyles),{strokeWidth:1}),__decorate$1e([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"x1",void 0),__decorate$1e([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"y1",void 0),__decorate$1e([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"x2",void 0),__decorate$1e([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"y2",void 0),__decorate$1e([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"startLine",void 0),__decorate$1e([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"endLine",void 0),__decorate$1e([SceneChangeDetection({redraw:RedrawType.MINOR})],t.prototype,"isRange",void 0),t}(Shape),__decorate$1d=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$c=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$o(arguments[t]));return e},CROSSLINE_LABEL_POSITIONS=["top","left","right","bottom","topLeft","topRight","bottomLeft","bottomRight","inside","insideLeft","insideRight","insideTop","insideBottom","insideTopLeft","insideBottomLeft","insideTopRight","insideBottomRight"],OPT_CROSSLINE_LABEL_POSITION=predicateWithMessage(function(e,t){return OPTIONAL(e,t,function(e){return CROSSLINE_LABEL_POSITIONS.includes(e)})},"expecting an optional crossLine label position keyword such as 'topLeft', 'topRight' or 'inside'"),OPT_CROSSLINE_TYPE=predicateWithMessage(function(e,t){return OPTIONAL(e,t,function(e){return"range"===e||"line"===e})},"expecting a crossLine type keyword such as 'range' or 'line'"),CrossLineLabel=function(){function e(){this.enabled=void 0,this.text=void 0,this.fontStyle=void 0,this.fontWeight=void 0,this.fontSize=14,this.fontFamily="Verdana, sans-serif",this.padding=5,this.color="rgba(87, 87, 87, 1)",this.position=void 0,this.rotation=void 0,this.parallel=void 0}return __decorate$1d([Validate(OPT_BOOLEAN)],e.prototype,"enabled",void 0),__decorate$1d([Validate(OPT_STRING)],e.prototype,"text",void 0),__decorate$1d([Validate(OPT_FONT_STYLE)],e.prototype,"fontStyle",void 0),__decorate$1d([Validate(OPT_FONT_WEIGHT)],e.prototype,"fontWeight",void 0),__decorate$1d([Validate(NUMBER(0))],e.prototype,"fontSize",void 0),__decorate$1d([Validate(STRING)],e.prototype,"fontFamily",void 0),__decorate$1d([Validate(NUMBER(0))],e.prototype,"padding",void 0),__decorate$1d([Validate(OPT_COLOR_STRING)],e.prototype,"color",void 0),__decorate$1d([Validate(OPT_CROSSLINE_LABEL_POSITION)],e.prototype,"position",void 0),__decorate$1d([Validate(OPT_NUMBER(-360,360))],e.prototype,"rotation",void 0),__decorate$1d([Validate(OPT_BOOLEAN)],e.prototype,"parallel",void 0),e}(),CrossLine=function(){function e(){this.id=createId$1(this),this.enabled=void 0,this.type=void 0,this.range=void 0,this.value=void 0,this.fill=void 0,this.fillOpacity=void 0,this.stroke=void 0,this.strokeWidth=void 0,this.strokeOpacity=void 0,this.lineDash=void 0,this.label=new CrossLineLabel,this.scale=void 0,this.clippedRange=[-1/0,1/0],this.gridLength=0,this.sideFlag=-1,this.parallelFlipRotation=0,this.regularFlipRotation=0,this.direction=ChartAxisDirection.X,this.group=new Group({name:""+this.id,layer:!0,zIndex:e.LINE_LAYER_ZINDEX}),this.crossLineRange=new Range,this.crossLineLabel=new Text,this.labelPoint=void 0,this.data=[],this.startLine=!1,this.endLine=!1,this.isRange=!1;var t=this,n=t.group,r=t.crossLineRange,o=t.crossLineLabel;n.append([r,o]),r.pointerEvents=PointerEvents.None}return e.prototype.update=function(e){this.enabled&&(this.group.visible=e,e&&(this.createNodeData()?(this.updateNodes(),this.group.zIndex=this.getZIndex(this.isRange)):this.group.visible=!1))},e.prototype.updateNodes=function(){this.updateRangeNode(),this.label.enabled&&(this.updateLabel(),this.positionLabel())},e.prototype.createNodeData=function(){var e,t,n,r,o,i=this,a=i.scale,s=i.gridLength,l=i.sideFlag,c=i.direction,u=i.label.position,d=void 0===u?"top":u,p=i.clippedRange,h=i.strokeWidth,f=void 0===h?0:h;if(!a)return!1;var g=null!==(r=a.bandwidth)&&void 0!==r?r:0,m=function(e){return Math.max(Math.min.apply(Math,__spread$c(p)),Math.min(Math.max.apply(Math,__spread$c(p)),e))},v=__read$o([0,l*s],2),y=v[0],A=v[1],w=__read$o(this.getRange(),2),b=w[0],_=w[1],C=__read$o([Number(a.convert(b,{strict:!1})),a.convert(_,{strict:!1})+g],2),E=C[0],S=C[1];E=m(E),S=m(S),b=(e=__read$o([Number(a.convert(b)),a.convert(_)+g],2))[0],_=e[1];var O=!isNaN(E)&&!isNaN(S)&&(b===E||_===S||E!==S)&&Math.abs(S-E)>0;if(O&&E!==Math.min(E,S)&&(E=(t=__read$o([Math.min(E,S),Math.max(E,S)],2))[0],S=t[1],b=(n=__read$o([_,b],2))[0],_=n[1]),this.isRange=O,this.startLine=!isNaN(b)&&f>0&&b===E,this.endLine=!isNaN(_)&&f>0&&_===S,!O&&!this.startLine&&!this.endLine)return!1;if(this.data=[E,S],this.label.enabled){var x=c===ChartAxisDirection.Y,D=(null!==(o=labeldDirectionHandling[d])&&void 0!==o?o:{}).c,P=(void 0===D?POSITION_TOP_COORDINATES:D)({yDirection:x,xStart:y,xEnd:A,yStart:E,yEnd:S}),M=P.x,T=P.y;this.labelPoint={x:M,y:T}}return!0},e.prototype.updateRangeNode=function(){var e,t=this,n=t.crossLineRange,r=t.sideFlag,o=t.gridLength,i=t.data,a=t.startLine,s=t.endLine,l=t.isRange,c=t.fill,u=t.fillOpacity,d=t.stroke,p=t.strokeWidth,h=t.lineDash;n.x1=0,n.x2=r*o,n.y1=i[0],n.y2=i[1],n.startLine=a,n.endLine=s,n.isRange=l,n.fill=c,n.fillOpacity=null!=u?u:1,n.stroke=d,n.strokeWidth=null!=p?p:1,n.strokeOpacity=null!==(e=this.strokeOpacity)&&void 0!==e?e:1,n.lineDash=h},e.prototype.updateLabel=function(){var e=this.crossLineLabel,t=this.label;t.text&&(e.fontStyle=t.fontStyle,e.fontWeight=t.fontWeight,e.fontSize=t.fontSize,e.fontFamily=t.fontFamily,e.fill=t.color,e.text=t.text)},e.prototype.positionLabel=function(){var e=this,t=e.crossLineLabel,n=e.labelPoint,r=void 0===n?{}:n,o=r.x,i=void 0===o?void 0:o,a=r.y,s=void 0===a?void 0:a,l=e.label,c=l.parallel,u=l.rotation,d=l.position,p=void 0===d?"top":d,h=l.padding,f=void 0===h?0:h,g=e.direction,m=e.parallelFlipRotation,v=e.regularFlipRotation;if(void 0!==i&&void 0!==s){var y=calculateLabelRotation({rotation:u,parallel:c,regularFlipRotation:v,parallelFlipRotation:m}),A=y.autoRotation,w=y.labelRotation;t.rotation=A+w,t.textBaseline="middle",t.textAlign="center";var b=this.computeLabelBBox();if(b){var _=g===ChartAxisDirection.Y,C=calculateLabelTranslation({yDirection:_,padding:f,position:p,bbox:b}),E=C.xTranslation,S=C.yTranslation;t.translationX=i+E,t.translationY=s+S}}},e.prototype.getZIndex=function(t){return void 0===t&&(t=!1),t?e.RANGE_LAYER_ZINDEX:e.LINE_LAYER_ZINDEX},e.prototype.getRange=function(){var e,t=this,n=t.value,r=t.range,o=t.scale instanceof ContinuousScale,i=__read$o(null!=r?r:[n,void 0],2),a=i[0],s=i[1];return o||void 0!==s||(s=a),a=(e=__read$o([checkDatum(a,o),checkDatum(s,o)],2))[0],s=e[1],o&&a===s&&(s=void 0),void 0===a&&void 0!==s&&(a=s,s=void 0),[a,s]},e.prototype.computeLabelBBox=function(){return this.crossLineLabel.computeTransformedBBox()},e.prototype.calculatePadding=function(e,t){var n,r,o,i,a,s,l=this,c=l.isRange,u=l.startLine,d=l.endLine;if(c||u||d){var p=this.computeLabelBBox(),h=null==p?void 0:p.x,f=null==p?void 0:p.y;if(null!=h&&null!=f){var g=null!==(n=null==p?void 0:p.width)&&void 0!==n?n:0,m=null!==(r=null==p?void 0:p.height)&&void 0!==r?r:0;if(!(g>t.width||m>t.height)){if(h+g>=t.x+t.width){var v=h+g-(t.x+t.width);e.right=(null!==(o=e.right)&&void 0!==o?o:0)>=v?e.right:v}else if(h<=t.x){var y=t.x-h;e.left=(null!==(i=e.left)&&void 0!==i?i:0)>=y?e.left:y}if(f+m>=t.y+t.height){var A=f+m-(t.y+t.height);e.bottom=(null!==(a=e.bottom)&&void 0!==a?a:0)>=A?e.bottom:A}else if(f<=t.y){var w=t.y-f;e.top=(null!==(s=e.top)&&void 0!==s?s:0)>=w?e.top:w}}}}},e.LINE_LAYER_ZINDEX=Layers.SERIES_CROSSLINE_LINE_ZINDEX,e.RANGE_LAYER_ZINDEX=Layers.SERIES_CROSSLINE_RANGE_ZINDEX,e.className="CrossLine",__decorate$1d([Validate(OPT_BOOLEAN)],e.prototype,"enabled",void 0),__decorate$1d([Validate(OPT_CROSSLINE_TYPE)],e.prototype,"type",void 0),__decorate$1d([Validate(OPT_ARRAY(2))],e.prototype,"range",void 0),__decorate$1d([Validate(OPT_COLOR_STRING)],e.prototype,"fill",void 0),__decorate$1d([Validate(OPT_NUMBER(0,1))],e.prototype,"fillOpacity",void 0),__decorate$1d([Validate(OPT_COLOR_STRING)],e.prototype,"stroke",void 0),__decorate$1d([Validate(OPT_NUMBER())],e.prototype,"strokeWidth",void 0),__decorate$1d([Validate(OPT_NUMBER(0,1))],e.prototype,"strokeOpacity",void 0),__decorate$1d([Validate(OPT_LINE_DASH)],e.prototype,"lineDash",void 0),e}(),__extends$1H=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1c=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Image=function(e){function t(t){var n=e.call(this)||this;return n.x=0,n.y=0,n.width=0,n.height=0,n.opacity=1,n.sourceImage=t,n}return __extends$1H(t,e),t.prototype.render=function(t){var n=t.ctx,r=t.forceRender,o=t.stats;if(this.dirty!==RedrawType.NONE||r){this.computeTransformMatrix(),this.matrix.toContext(n);var i=this.sourceImage;n.globalAlpha=this.opacity,n.drawImage(i,0,0,i.width,i.height,this.x,this.y,this.width,this.height),e.prototype.render.call(this,t)}else o&&o.nodesSkipped++},__decorate$1c([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"x",void 0),__decorate$1c([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"y",void 0),__decorate$1c([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"width",void 0),__decorate$1c([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"height",void 0),__decorate$1c([SceneChangeDetection({redraw:RedrawType.MAJOR})],t.prototype,"opacity",void 0),t}(Node),BackgroundImage=function(){function e(){var e=this;this._image=document.createElement("img"),this.loadedSynchronously=!0,this.left=void 0,this.top=void 0,this.right=void 0,this.bottom=void 0,this.width=void 0,this.height=void 0,this.opacity=1,this.containerWidth=0,this.containerHeight=0,this.onload=void 0,this.onImageLoad=function(){e.loadedSynchronously||(e.node.visible=!1,e.performLayout(e.containerWidth,e.containerHeight),e.onload&&e.onload())},this.node=new Image(this._image),this._image.onload=this.onImageLoad}return Object.defineProperty(e.prototype,"url",{get:function(){return this._image.src},set:function(e){this._image.src=e,this.loadedSynchronously=this.complete},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"complete",{get:function(){return this._image.width>0&&this._image.height>0},enumerable:!1,configurable:!0}),e.prototype.performLayout=function(e,t){if(this.containerWidth=e,this.containerHeight=t,this.complete){var n=this.calculatePosition(this._image.width,this._image.height);Object.assign(this.node,n),this.node.visible=!0,this.node.opacity=this.opacity}else this.node.visible=!1},e.prototype.calculatePosition=function(e,t){var n=this.left,r=this.right,o=this.width,i=this.top,a=this.bottom,s=this.height;return null!=n?null!=r?o=this.containerWidth-n-r:null!=o&&(r=this.containerWidth-n+o):null!=r&&null!=o&&(n=this.containerWidth-r-o),null!=i?null!=a?s=this.containerHeight-a-i:null!=s&&(a=this.containerHeight-i-s):null!=a&&null!=s&&(i=this.containerHeight-a-s),null==o?null==s?(o=e,s=t):o=Math.ceil(e*s/t):null==s&&(s=Math.ceil(t*o/e)),null==n&&(n=null==r?Math.floor((this.containerWidth-o)/2):this.containerWidth-r-o),null==i&&(i=null==a?Math.floor((this.containerHeight-s)/2):this.containerHeight-s-a),{x:n,y:i,width:o,height:s}},e}(),__assign$l=function(){return __assign$l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$l.apply(this,arguments)},__awaiter=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},__generator=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},__read$n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$b=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$n(arguments[t]));return e},__values$8=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function chartType(e){if(isAgCartesianChartOptions(e))return"cartesian";if(isAgPolarChartOptions(e))return"polar";if(isAgHierarchyChartOptions(e))return"hierarchy";throw new Error("AG Chart - unknown type of chart for options with type: "+e.type)}var AgChart=function(){function e(){}return e.create=function(e){return AgChartInternal.createOrUpdate(e)},e.update=function(e,t){if(!AgChartInstanceProxy.isInstance(e))throw new Error("AG Charts - invalid chart reference passed");AgChartInternal.createOrUpdate(t,e)},e.updateDelta=function(e,t){if(!AgChartInstanceProxy.isInstance(e))throw new Error("AG Charts - invalid chart reference passed");return AgChartInternal.updateUserDelta(e,t)},e.download=function(e,t){if(!(e instanceof AgChartInstanceProxy))throw new Error("AG Charts - invalid chart reference passed");return AgChartInternal.download(e,t)},e.getImageDataURL=function(e,t){if(!(e instanceof AgChartInstanceProxy))throw new Error("AG Charts - invalid chart reference passed");return AgChartInternal.getImageDataURL(e,t)},e}(),AgChartInstanceProxy=function(){function e(e){this.chart=e}return e.isInstance=function(t){var n,r;if(t instanceof e)return!0;if("AgChartInstanceProxy"===(null===(n=t.constructor)||void 0===n?void 0:n.name)&&null!=t.chart)return!0;var o=Object.keys(null===(r=t.constructor)||void 0===r?void 0:r.prototype);return!(!Object.keys(e.prototype).every(function(e){return o.includes(e)})||null==t.chart)},e.prototype.getOptions=function(){return this.chart.getOptions()},e.prototype.destroy=function(){this.chart.destroy()},e}(),AgChartInternal=function(){function e(){}return e.createOrUpdate=function(t,n){var r=this;debug(">>> createOrUpdate() user options",t);var o={};!0===e.DEBUG()&&(o.debug=!0);var i=t.overrideDevicePixelRatio;delete t.overrideDevicePixelRatio,initialiseSeriesModules();var a=prepareOptions(t,o,seriesDefaults),s=null==n?void 0:n.chart;null!=s&&chartType(t)===chartType(s.processedOptions)||(s=e.createChartInstance(a,i,s)),null==n?n=new AgChartInstanceProxy(s):n.chart=s;var l=s;l.queuedUserOptions.push(t);var c=function(){var e=l.queuedUserOptions.indexOf(t);l.queuedUserOptions.splice(0,e)};return l.requestFactoryUpdate(function(){return __awaiter(r,void 0,void 0,function(){var n;return __generator(this,function(r){switch(r.label){case 0:return l.destroyed?[2]:null==(n=jsonDiff(l.processedOptions,a))?(c(),[2]):[4,e.updateDelta(l,n,t)];case 1:return r.sent(),c(),[2]}})})}),n},e.updateUserDelta=function(t,n){var r,o=t.chart,i=t.chart.queuedUserOptions,a=null!==(r=i[i.length-1])&&void 0!==r?r:o.userOptions,s=jsonMerge([a,n]);debug(">>> updateUserDelta() user delta",n),debug("base options",a),e.createOrUpdate(s,t)},e.download=function(t,n){__awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){switch(o.label){case 0:return[4,e.prepareResizedChart(t,n)];case 1:return(r=o.sent()).chart.scene.download(null==n?void 0:n.fileName,null==n?void 0:n.fileFormat),r!==t&&r.destroy(),[2]}})})},e.getImageDataURL=function(t,n){return __awaiter(this,void 0,void 0,function(){var r,o,i;return __generator(this,function(a){switch(a.label){case 0:return[4,e.prepareResizedChart(t,n)];case 1:return r=a.sent(),o=r.chart,i=o.scene.canvas.getDataURL(null==n?void 0:n.fileFormat),r!==t&&r.destroy(),[2,i]}})})},e.prepareResizedChart=function(t,n){return __awaiter(this,void 0,void 0,function(){var r,o,i,a,s,l,c,u;return __generator(this,function(d){switch(d.label){case 0:return r=t.chart,i=(o=n||{}).width,a=o.height,s=r.width,l=r.height,void 0===i&&void 0===a||1===r.scene.canvas.pixelRatio&&s===i&&l===a?[2,t]:(i=null!=i?i:s,a=null!=a?a:l,c=__assign$l(__assign$l({},r.userOptions),{container:document.createElement("div"),width:i,height:a,autoSize:!1,overrideDevicePixelRatio:1}),[4,(u=e.createOrUpdate(c)).chart.waitForUpdate()]);case 1:return d.sent(),[2,u]}})})},e.createChartInstance=function(e,t,n){var r=null==n?void 0:n.destroy({keepTransferableResources:!0});if(isAgCartesianChartOptions(e))return new CartesianChart(document,t,r);if(isAgHierarchyChartOptions(e))return new HierarchyChart(document,t,r);if(isAgPolarChartOptions(e))return new PolarChart(document,t,r);throw new Error("AG Charts - couldn't apply configuration, check type of options: "+e.type)},e.updateDelta=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){switch(r.label){case 0:return null==t.type&&(t=__assign$l(__assign$l({},t),{type:e.processedOptions.type||optionsType(t)})),[4,e.awaitUpdateCompletion()];case 1:return r.sent(),e.destroyed||(debug("applying delta",t),applyChartOptions(e,t,n)),[2]}})})},e.DEBUG=function(){var e;return null!==(e=windowValue("agChartsDebug"))&&void 0!==e&&e},e}();function debug(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];[!0,"opts"].includes(AgChartInternal.DEBUG())&&Logger.debug.apply(Logger,__spread$b([e],t))}function applyChartOptions(e,t,n){var r,o,i,a,s=jsonMerge([null!==(r=e.processedOptions)&&void 0!==r?r:{},t],noDataCloneMergeOptions),l=applyModules(e,s),c=["type","data","series","autoSize","listeners","theme","legend.listeners"];if(isAgCartesianChartOptions(t))c.push("axes");else if(!isAgPolarChartOptions(t)&&!isAgHierarchyChartOptions(t))throw new Error("AG Charts - couldn't apply configuration, check type of options and chart: "+t.type);t.listeners&&registerListeners(e,t.listeners),applyOptionValues(e,t,{skip:c});var u=!1;t.series&&t.series.length>0&&(applySeries(e,t),u=!0),isAgCartesianChartOptions(t)&&t.axes&&applyAxes(e,t)&&(u=!0);var d=t.series,p=!!t.data||(null==d?void 0:d.some(function(e){return null!=e.data})),h=t.legend||t.title||t.subtitle;u=u||p||!!h,t.data&&(e.data=t.data),null!=t.autoSize&&(e.autoSize=t.autoSize),(null===(o=t.legend)||void 0===o?void 0:o.listeners)&&Object.assign(e.legend.listeners,null!==(i=t.legend.listeners)&&void 0!==i?i:{}),t.listeners&&e.updateAllSeriesListeners(),e.processedOptions=s,e.userOptions=jsonMerge([null!==(a=e.userOptions)&&void 0!==a?a:{},n],noDataCloneMergeOptions);var f=u||l?ChartUpdateType.PROCESS_DATA:ChartUpdateType.PERFORM_LAYOUT;debug("chart update type",{updateType:ChartUpdateType[f]}),e.update(f,{forceNodeDataRefresh:u})}function applyModules(e,t){var n,r,o=function(t){return e instanceof CartesianChart&&t.chartTypes.includes("cartesian")||e instanceof PolarChart&&t.chartTypes.includes("polar")||e instanceof HierarchyChart&&t.chartTypes.includes("hierarchy")},i=!1,a=REGISTERED_MODULES.filter(function(e){return"root"===e.type});try{for(var s=__values$8(a),l=s.next();!l.done;l=s.next()){var c=l.value,u=o(c)&&null!=t[c.optionsKey];u!==e.isModuleEnabled(c)&&(i=!0,u?e.addModule(c):e.removeModule(c))}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return i}function applySeries(e,t){var n=t.series;if(n){var r=e.series.length===n.length&&e.series.every(function(e,t){var r;return e.type===(null===(r=n[t])||void 0===r?void 0:r.type)});r?e.series.forEach(function(t,r){var o,i,a=jsonDiff((null===(i=null===(o=e.processedOptions)||void 0===o?void 0:o.series)||void 0===i?void 0:i[r])||{},n[r]||{});a&&(debug("applying series diff idx "+r,a),applySeriesValues(t,a,{path:"series["+r+"]",index:r}),t.markNodeDataDirty())}):e.series=createSeries(n)}}function applyAxes(e,t){var n=t.axes;if(!n)return!1;if(e.axes.length===n.length&&e.axes.every(function(e,t){return e.type===n[t].type})){var r=e.processedOptions;if(isAgCartesianChartOptions(r))return e.axes.forEach(function(e,t){var o,i=jsonDiff((null===(o=r.axes)||void 0===o?void 0:o[t])||{},n[t]);debug("applying axis diff idx "+t,i),applyOptionValues(e,i,{path:"axes["+t+"]",skip:["axes[].type"]})}),!0}return e.axes=createAxis(e,n),!0}function createSeries(e){var t,n,r=[],o=0;try{for(var i=__values$8(e||[]),a=i.next();!a.done;a=i.next()){var s=a.value,l="series["+o+++"]",c=getSeries(s.type);applySeriesValues(c,s,{path:l,index:o}),r.push(c)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function createAxis(e,t){var n,r,o=[],i=["axes[].type"],a=e.getModuleContext(),s=0;try{for(var l=__values$8(t||[]),c=l.next();!c.done;c=l.next()){var u=c.value,d=void 0;switch(u.type){case"number":d=new NumberAxis(a);break;case LogAxis.type:d=new LogAxis(a);break;case CategoryAxis.type:d=new CategoryAxis(a);break;case GroupedCategoryAxis.type:d=new GroupedCategoryAxis(a);break;case TimeAxis.type:d=new TimeAxis(a);break;default:throw new Error("AG Charts - unknown axis type: "+u.type)}var p="axes["+s+++"]";applyAxisModules(d,u),applyOptionValues(d,u,{path:p,skip:i}),o.push(d)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return o}function applyAxisModules(e,t){var n,r,o=!1,i=REGISTERED_MODULES.filter(function(e){return"axis"===e.type});try{for(var a=__values$8(i),s=a.next();!s.done;s=a.next()){var l=s.value,c=null!=t[l.optionsKey];c!==e.isModuleEnabled(l)&&(o=!0,c?e.addModule(l):e.removeModule(l))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}function registerListeners(e,t){for(var n in e.clearEventListeners(),t){var r=t[n];"function"==typeof r&&e.addEventListener(n,r)}}var JSON_APPLY_OPTIONS={constructors:{title:Caption,subtitle:Caption,footnote:Caption,shadow:DropShadow,innerCircle:DoughnutInnerCircle,"axes[].crossLines[]":CrossLine,"series[].innerLabels[]":DoughnutInnerLabel,"background.image":BackgroundImage},allowedTypes:{"legend.pagination.marker.shape":["primitive","function"],"series[].marker.shape":["primitive","function"],"axis[].tick.count":["primitive","class-instance"]}};function applyOptionValues(e,t,n){var r=void 0===n?{}:n,o=r.skip,i=r.path;return jsonApply(e,t,__assign$l(__assign$l(__assign$l({},JSON_APPLY_OPTIONS),{skip:o}),i?{path:i}:{}))}function applySeriesValues(e,t,n){var r=void 0===n?{}:n,o=r.path,i=r.index,a=(null==JSON_APPLY_OPTIONS?void 0:JSON_APPLY_OPTIONS.constructors)||{},s={constructors:__assign$l(__assign$l({},a),{title:"pie"===e.type?PieTitle:a.title})},l=jsonApply(e,t,__assign$l(__assign$l(__assign$l(__assign$l(__assign$l({},JSON_APPLY_OPTIONS),s),{skip:__spread$b(["series[].type"],["series[].listeners"]||0)}),o?{path:o}:{}),{idx:null!=i?i:-1})),c=null==t?void 0:t.listeners;return null!=c&&registerListeners(e,c),l}var VERSION$b="7.3.0",__read$m=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},themes=Object.entries(themes$1).reduce(function(e,t){var n=__read$m(t,2),r=n[0],o=n[1];return e[r]=o(),e},{}),__extends$1G=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1b=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ChartDatasource=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$1G(t,e),t.prototype.getData=function(e){if(e.crossFiltering){if(e.grouping)return console.warn("AG Grid: crossing filtering with row grouping is not supported."),{chartData:[],columnNames:{}};if(!this.gridOptionsService.isRowModelType("clientSide"))return console.warn("AG Grid: crossing filtering is only supported in the client side row model."),{chartData:[],columnNames:{}}}this.gridOptionsService.isRowModelType("serverSide")&&e.pivoting&&this.updatePivotKeysForSSRM();var t=this.extractRowsFromGridRowModel(e);return t.chartData=this.aggregateRowsByDimension(e,t.chartData),t},t.prototype.extractRowsFromGridRowModel=function(e){var n,r=this,o=[],i={},a={},s={},l={},c=[];if(e.crossFiltering)l=this.getFilteredRowNodes(),n=(c=this.getAllRowNodes()).length;else{var u=this.gridRowModel.getRowCount()-1;n=(e.endRow>=0?Math.min(e.endRow,u):u)-e.startRow+1}for(var d=function(n){var u={},d=e.crossFiltering?c[n]:p.gridRowModel.getRow(n+e.startRow);e.dimensionCols.forEach(function(o){var i=o.colId,l=r.columnModel.getGridColumn(i);if(l){var c=r.valueService.getValue(l,d);if(e.grouping){var p=c&&c.toString?String(c.toString()):"",h=t.getGroupLabels(d,p);u[i]={labels:h,toString:function(){return this.labels.filter(function(e){return!!e}).reverse().join(" - ")}},d.group&&(a[h.toString()]=n);var f=h.slice(1,h.length).toString();f&&(s[f]=a[f])}else u[i]=c}else u[ChartDataModel.DEFAULT_CATEGORY]=n+1}),e.valueCols.forEach(function(t){var n=[],o=t.getColDef().pivotKeys;o&&(n=o.slice());var a=t.getColDef().headerName;a&&n.push(a),n.length>0&&(i[t.getId()]=n);var s=t.getColId();if(e.crossFiltering){var c=s+"-filtered-out",p=null!=(h=r.valueService.getValue(t,d))&&"function"==typeof h.toNumber?h.toNumber():h;l[d.id]?(u[s]=p,u[c]=e.aggFunc||e.isScatter?void 0:0):(u[s]=e.aggFunc||e.isScatter?void 0:0,u[c]=p)}else{var h;(h=r.valueService.getValue(t,d))&&h.hasOwnProperty("toString")&&(h=parseFloat(h.toString())),u[s]=null!=h&&"function"==typeof h.toNumber?h.toNumber():h}}),d.footer&&(u.footer=!0),o.push(u)},p=this,h=0;h<n;h++)d(h);if(e.grouping){var f=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.values(s);o=o.filter(function(e,t){return!e.footer&&!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(f,t)})}return{chartData:o,columnNames:i}},t.prototype.aggregateRowsByDimension=function(e,t){var n=this,r=e.dimensionCols;if(!e.aggFunc||0===r.length)return t;var o=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(r),i=o&&o.colId,a={},s=[];return t.forEach(function(e){var t=a;r.forEach(function(n){var o=n.colId,a=e[o];if(o===i){var l=t[a];l||(l={__children:[]},r.forEach(function(t){var n=t.colId;l[n]=e[n]}),t[a]=l,s.push(l)),l.__children.push(e)}else t[a]||(t[a]={}),t=t[a]})}),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.assertRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.RowGroupingModule,"Charting Aggregation")&&s.forEach(function(t){return e.valueCols.forEach(function(r){if(e.crossFiltering)e.valueCols.forEach(function(r){var o=r.getColId(),i=t.__children.filter(function(e){return void 0!==e[o]}).map(function(e){return e[o]}),a=n.aggregationStage.aggregateValues(i,e.aggFunc);t[r.getId()]=a&&void 0!==a.value?a.value:a;var s=o+"-filtered-out",l=t.__children.filter(function(e){return void 0!==e[s]}).map(function(e){return e[s]}),c=n.aggregationStage.aggregateValues(l,e.aggFunc);t[s]=c&&void 0!==c.value?c.value:c});else{var o=t.__children.map(function(e){return e[r.getId()]}),i=0;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.assertRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.RowGroupingModule,"Charting Aggregation")&&(i=n.aggregationStage.aggregateValues(o,e.aggFunc)),t[r.getId()]=i&&void 0!==i.value?i.value:i}})}),s},t.prototype.updatePivotKeysForSSRM=function(){var e=this.columnModel.getSecondaryColumns();if(e){var t=this.extractPivotKeySeparator(e);e.forEach(function(e){if(""===t)e.getColDef().pivotKeys=[];else{var n=e.getColId().split(t);e.getColDef().pivotKeys=n.slice(0,n.length-1)}})}},t.prototype.extractPivotKeySeparator=function(e){if(0===e.length)return"";var t=function(e,n){var r=e.getGroupId();return e.getParent()?t(e.getParent(),r):n.split(r)[1][0]},n=e[0];return null==n.getParent()?"":t(n.getParent(),n.getColId())},t.getGroupLabels=function(e,t){for(var n=[t];e&&0!==e.level;)(e=e.parent)&&n.push(e.key);return n},t.prototype.getFilteredRowNodes=function(){var e={};return this.gridRowModel.forEachNodeAfterFilterAndSort(function(t){e[t.id]=t}),e},t.prototype.getAllRowNodes=function(){var e=[];return this.gridRowModel.forEachNode(function(t){e.push(t)}),this.sortRowNodes(e)},t.prototype.sortRowNodes=function(e){var t=this.sortController.getSortOptions();return t&&0!=t.length?this.rowNodeSorter.doFullSort(e,t):e},__decorate$1b([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowModel")],t.prototype,"gridRowModel",void 0),__decorate$1b([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueService")],t.prototype,"valueService",void 0),__decorate$1b([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$1b([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),__decorate$1b([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("sortController")],t.prototype,"sortController",void 0),__decorate$1b([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Optional)("aggregationStage")],t.prototype,"aggregationStage",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$1F=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$1a=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$l=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$a=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$l(arguments[t]));return e},ChartDataModel=function(e){function t(t){var n=e.call(this)||this;return n.unlinked=!1,n.chartData=[],n.valueColState=[],n.dimensionColState=[],n.columnNames={},n.grouping=!1,n.crossFiltering=!1,n.suppressComboChartWarnings=!1,n.chartId=t.chartId,n.chartType=t.chartType,n.pivotChart=t.pivotChart,n.chartThemeName=t.chartThemeName,n.aggFunc=t.aggFunc,n.referenceCellRange=t.cellRange,n.suppliedCellRange=t.cellRange,n.suppressChartRanges=t.suppressChartRanges,n.unlinked=!!t.unlinkChart,n.crossFiltering=!!t.crossFiltering,n.seriesChartTypes=t.seriesChartTypes||[],n.initComboCharts(t),n}return __extends$1F(t,e),t.prototype.initComboCharts=function(e){var t=this.seriesChartTypes&&this.seriesChartTypes.length>0;("customCombo"===e.chartType||t)&&(this.chartType="customCombo",this.savedCustomSeriesChartTypes=this.seriesChartTypes||[])},t.prototype.init=function(){this.datasource=this.createManagedBean(new ChartDatasource),this.updateCellRanges()},t.prototype.updateCellRanges=function(e){this.valueCellRange&&(this.referenceCellRange=this.valueCellRange);var t=this.getAllChartColumns(),n=t.dimensionCols,r=t.valueCols,o=this.getAllColumnsFromRanges();e&&this.updateColumnState(e),this.setDimensionCellRange(n,o,e),this.setValueCellRange(r,o,e),e||(this.resetColumnState(),this.syncDimensionCellRange()),this.updateSeriesChartTypes(),this.updateData()},t.prototype.updateSeriesChartTypes=function(){this.isComboChart()&&(this.seriesChartTypes=this.seriesChartTypes.map(function(e){var t=["groupedColumn","stackedColumn","stackedArea"].includes(e.chartType);return e.secondaryAxis=!t&&e.secondaryAxis,e}),"customCombo"!==this.chartType?this.updateChartSeriesTypesForBuiltInCombos():this.updateSeriesChartTypesForCustomCombo())},t.prototype.updateSeriesChartTypesForCustomCombo=function(){var e=this;this.seriesChartTypes&&this.seriesChartTypes.length>0||this.suppressComboChartWarnings||console.warn("AG Grid: 'seriesChartTypes' are required when the 'customCombo' chart type is specified."),this.seriesChartTypes=this.seriesChartTypes.map(function(e){return t.SUPPORTED_COMBO_CHART_TYPES.includes(e.chartType)||(console.warn("AG Grid: invalid chartType '"+e.chartType+"' supplied in 'seriesChartTypes', converting to 'line' instead."),e.chartType="line"),e});var n=this.valueColState.map(function(t){return e.savedCustomSeriesChartTypes&&0!==e.savedCustomSeriesChartTypes.length||(e.savedCustomSeriesChartTypes=e.seriesChartTypes),e.savedCustomSeriesChartTypes.find(function(e){return e.colId===t.colId})||(t.selected&&!e.suppressComboChartWarnings&&console.warn("AG Grid: no 'seriesChartType' found for colId = '"+t.colId+"', defaulting to 'line'."),{colId:t.colId,chartType:"line",secondaryAxis:!1})});this.seriesChartTypes=n,this.savedCustomSeriesChartTypes=n,this.suppressComboChartWarnings=!0},t.prototype.updateChartSeriesTypesForBuiltInCombos=function(){var e="columnLineCombo"===this.chartType?"groupedColumn":"stackedArea",t="columnLineCombo"===this.chartType?"line":"groupedColumn",n=this.valueColState.filter(function(e){return e.selected}),r=Math.ceil(n.length/2);this.seriesChartTypes=n.map(function(n,o){var i=o>=r?t:e;return{colId:n.colId,chartType:i,secondaryAxis:!1}})},t.prototype.updateData=function(){var e=this.getRowIndexes(),t=e.startRow,n=e.endRow;this.pivotChart&&this.resetColumnState(),this.grouping=this.isGrouping();var r={aggFunc:this.aggFunc,dimensionCols:[this.getSelectedDimension()],grouping:this.grouping,pivoting:this.isPivotActive(),crossFiltering:this.crossFiltering,valueCols:this.getSelectedValueCols(),startRow:t,endRow:n,isScatter:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(["scatter","bubble"],this.chartType)},o=this.datasource.getData(r),i=o.chartData,a=o.columnNames;this.chartData=i,this.columnNames=a},t.prototype.isGrouping=function(){var e=this.gridOptionsService.isTreeData(),t=e?null:this.columnModel.getRowGroupColumns(),n=e||t&&t.length>0,r=this.getSelectedDimension().colId,o=this.columnModel.getGroupDisplayColumns().map(function(e){return e.getColId()}).some(function(e){return e===r});return!!n&&o},t.prototype.getSelectedValueCols=function(){return this.valueColState.filter(function(e){return e.selected}).map(function(e){return e.column})},t.prototype.getSelectedDimension=function(){return this.dimensionColState.filter(function(e){return e.selected})[0]},t.prototype.getColDisplayName=function(e){return this.columnModel.getDisplayNameForColumn(e,"chart")},t.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},t.prototype.getChartDataType=function(e){var t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef().chartDataType:void 0},t.prototype.isPivotActive=function(){return this.columnModel.isPivotActive()},t.prototype.createCellRange=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return{id:this.chartId,startRow:this.referenceCellRange.startRow,endRow:this.referenceCellRange.endRow,columns:t,startColumn:e===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellRangeType.DIMENSION?t[0]:this.referenceCellRange.startColumn,type:e}},t.prototype.getAllColumnsFromRanges=function(){if(this.pivotChart)return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.convertToSet(this.columnModel.getAllDisplayedColumns());var e=this.dimensionCellRange||this.valueCellRange?[]:this.referenceCellRange.columns;return this.dimensionCellRange&&e.push.apply(e,__spread$a(this.dimensionCellRange.columns)),this.valueCellRange&&e.push.apply(e,__spread$a(this.valueCellRange.columns)),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.convertToSet(e)},t.prototype.getRowIndexes=function(){var e=0,t=0,n=this.rangeService,r=this.valueCellRange;if(n&&r){e=n.getRangeStartRow(r).rowIndex;var o=n.getRangeEndRow(r);t="bottom"===o.rowPinned?-1:o.rowIndex}return{startRow:e,endRow:t}},t.prototype.getAllChartColumns=function(){var e=this,t=this.columnModel.getAllDisplayedColumns(),n=new Set,r=new Set;return t.forEach(function(t){var o=t.getColDef(),i=o.chartDataType;if(i)switch(i){case"category":case"time":return void n.add(t);case"series":return void r.add(t);case"excluded":return;default:console.warn("AG Grid: unexpected chartDataType value '"+i+"' supplied, instead use 'category', 'series' or 'excluded'")}"ag-Grid-AutoColumn"!==o.colId?t.isPrimary()?(e.isNumberCol(t)?r:n).add(t):r.add(t):n.add(t)}),{dimensionCols:n,valueCols:r}},t.prototype.isNumberCol=function(e){if("ag-Grid-AutoColumn"===e.getColId())return!1;var t=this.rowRenderer.getRowNode({rowIndex:0,rowPinned:null});if(!t)return!1;var n=this.valueService.getValue(e,t);return null==n&&(n=this.extractLeafData(t,e)),null!=n&&"function"==typeof n.toNumber&&(n=n.toNumber()),"number"==typeof n},t.prototype.extractLeafData=function(e,t){if(!e.allLeafChildren)return null;for(var n=0;n<e.allLeafChildren.length;n++){var r=e.allLeafChildren[n],o=this.valueService.getValue(t,r);if(null!=o)return o}return null},t.prototype.resetColumnState=function(){var e=this,n=this.getAllChartColumns(),r=n.dimensionCols,o=n.valueCols,i=this.getAllColumnsFromRanges(),a=this.valueColState.length<1;this.dimensionColState=[],this.valueColState=[];var s=!1,l=1,c=this.suppliedCellRange.columns[0];r.forEach(function(t){var n="ag-Grid-AutoColumn"===t.getColId(),r=!1;e.crossFiltering&&e.aggFunc?c.getColId()===t.getColId()&&(r=!0):r=!!n||!s&&i.has(t),e.dimensionColState.push({column:t,colId:t.getColId(),displayName:e.getColDisplayName(t),selected:r,order:l++}),r&&(s=!0)});var u={colId:t.DEFAULT_CATEGORY,displayName:this.chartTranslationService.translate("defaultCategory"),selected:!s,order:0};this.dimensionColState.unshift(u);var d=this.referenceCellRange.columns.filter(function(e){return o.has(e)});o.forEach(function(t){a&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(e.referenceCellRange.columns,t)&&(t=d.shift()),e.valueColState.push({column:t,colId:t.getColId(),displayName:e.getColDisplayName(t),selected:i.has(t),order:l++})})},t.prototype.updateColumnState=function(e){var t=function(t){return t.colId===e.colId},n=this.dimensionColState,r=this.valueColState;n.filter(t).length>0?n.forEach(function(e){return e.selected=t(e)}):r.filter(t).forEach(function(t){return t.selected=e.selected});var o=__spread$a(n,r),i=[];o.forEach(function(t,n){n===e.order&&i.push(e.colId),t.colId!==e.colId&&i.push(t.colId)}),o.forEach(function(e){var t=i.indexOf(e.colId);e.order=t>=0?i.indexOf(e.colId):o.length-1}),this.reorderColState()},t.prototype.reorderColState=function(){var e=function(e,t){return e.order-t.order};this.dimensionColState.sort(e),this.valueColState.sort(e)},t.prototype.setDimensionCellRange=function(e,n,r){var o=this;if(this.dimensionCellRange=void 0,r||this.dimensionColState.length){var i=r;if(this.crossFiltering&&this.aggFunc){var a=this.suppliedCellRange.columns[0];i=this.dimensionColState.filter(function(e){return e.colId===a.getColId()})[0]}else i&&e.has(i.column)||(i=this.dimensionColState.filter(function(e){return e.selected})[0]);i&&i.colId!==t.DEFAULT_CATEGORY&&(this.dimensionCellRange=this.createCellRange(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellRangeType.DIMENSION,i.column))}else e.forEach(function(e){!o.dimensionCellRange&&n.has(e)&&(o.dimensionCellRange=o.createCellRange(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellRangeType.DIMENSION,e))})},t.prototype.setValueCellRange=function(e,t,n){this.valueCellRange=void 0;var r=[];if(e.forEach(function(e){n&&n.colId===e.getColId()?n.selected&&r.push(n.column):t.has(e)&&r.push(e)}),r.length>0){var o=[];this.valueColState.length>0?o=this.valueColState.map(function(e){return e.colId}):t.forEach(function(e){return o.push(e.getColId())}),r.sort(function(e,t){return o.indexOf(e.getColId())-o.indexOf(t.getColId())}),this.valueCellRange=this.createCellRange.apply(this,__spread$a([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellRangeType.VALUE],r))}},t.prototype.syncDimensionCellRange=function(){var e=this.getSelectedDimension();e&&e.column&&(this.dimensionCellRange=this.createCellRange(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellRangeType.DIMENSION,e.column))},t.prototype.isComboChart=function(){return["columnLineCombo","areaColumnCombo","customCombo"].includes(this.chartType)},t.DEFAULT_CATEGORY="AG-GRID-DEFAULT-CATEGORY",t.SUPPORTED_COMBO_CHART_TYPES=["line","groupedColumn","stackedColumn","area","stackedArea"],__decorate$1a([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$1a([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueService")],t.prototype,"valueService",void 0),__decorate$1a([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rangeService")],t.prototype,"rangeService",void 0),__decorate$1a([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowRenderer")],t.prototype,"rowRenderer",void 0),__decorate$1a([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$1a([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),VALID_SERIES_TYPES=["area","bar","column","histogram","line","pie","scatter"];function getSeriesType(e){switch(e){case"bar":case"groupedBar":case"stackedBar":case"normalizedBar":return"bar";case"column":case"groupedColumn":case"stackedColumn":case"normalizedColumn":return"column";case"line":return"line";case"area":case"stackedArea":case"normalizedArea":return"area";case"scatter":case"bubble":return"scatter";case"histogram":return"histogram";case"pie":case"doughnut":return"pie";default:return"cartesian"}}var ALL_AXIS_TYPES=["number","category","groupedCategory","log","time"];function getLegacyAxisType(e){switch(e){case"bar":case"stackedBar":case"normalizedBar":return["number","category"];case"groupedBar":return["number","groupedCategory"];case"column":case"stackedColumn":case"normalizedColumn":case"line":case"area":case"stackedArea":case"normalizedArea":case"histogram":return["category","number"];case"groupedColumn":return["groupedCategory","number"];case"scatter":case"bubble":return["number","number"];default:return}}var __assign$k=function(){return __assign$k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$k.apply(this,arguments)};function createAgChartTheme(e,t){var n,r,o=e.chartOptionsToRestore,i=e.chartPaletteToRestore,a=e.chartThemeToRestore,s=getSelectedTheme(e),l=isStockTheme(s),c=l?{baseTheme:s}:null!==(n=lookupCustomChartTheme(e,s))&&void 0!==n?n:{},u=e.getGridOptionsChartThemeOverrides(),d=e.apiChartThemeOverrides,p="pie"===getSeriesType(e.chartType)?"polar":"cartesian",h=e.crossFiltering?createCrossFilterThemeOverrides(t,e,p):void 0,f=__assign$k({},null!=o?o:{}),g=[l?inbuiltStockThemeOverrides(e,(r=function(e){return!!e&&Object.keys(e).some(function(t){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.get(e[t],"title.enabled",!1)})},r(u)||r(d))):void 0,h,u,d,f].filter(function(e){return!!e}).reduce(function(e,t){return{baseTheme:e,overrides:t}},c);return i&&s===a&&(isIdenticalPalette(i,getChartTheme(c).palette)||(g.palette=i)),g}function isIdenticalPalette(e,t){var n=function(e,t){return e.length===t.length&&e.every(function(e,n){return e===t[n]})};return n(e.fills,t.fills)&&n(e.strokes,t.strokes)}function isStockTheme(e){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(Object.keys(themes),e)}function createCrossFilterThemeOverrides(e,t,n){var r,o={listeners:{legendItemClick:function(t){e.getChart().series.forEach(function(e){e.toggleSeriesItem(t.itemId,t.enabled),e.toggleSeriesItem(t.itemId+"-filtered-out",t.enabled)})}}},i={};return"polar"===n&&(i.pie={tooltip:{renderer:function(e){var t=e.angleName,n=e.datum,r=e.calloutLabelKey,o=e.radiusKey,i=e.angleValue;return{title:t,content:n[r]+": "+i*n[o]}}}}),(r={})[n]={tooltip:{delay:500},legend:o,listeners:{click:function(e){return t.crossFilterCallback(e,!0)}},series:i},r}var STATIC_INBUILT_STOCK_THEME_AXES_OVERRIDES=ALL_AXIS_TYPES.reduce(function(e,t){var n;return __assign$k(__assign$k({},e),((n={})[t]={title:{_enabledFromTheme:!0}},n))},{});function inbuiltStockThemeOverrides(e,t){var n=e.getExtraPaddingDirections();return{common:{axes:STATIC_INBUILT_STOCK_THEME_AXES_OVERRIDES,padding:{top:!t&&n.includes("top")?40:20,right:n.includes("right")?30:20,bottom:n.includes("bottom")?40:20,left:n.includes("left")?30:20}},pie:{series:{title:{_enabledFromTheme:!0},calloutLabel:{_enabledFromTheme:!0},sectorLabel:{enabled:!1,_enabledFromTheme:!0}}}}}function getSelectedTheme(e){var t=e.getChartThemeName(),n=e.getChartThemes();return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(n,t)||(t=n[0]),t}function lookupCustomChartTheme(e,t){var n=e.customChartThemes,r=n&&n[t];return r||console.warn("AG Grid: no stock theme exists with the name '"+t+"' and no custom chart theme with that name was supplied to 'customChartThemes'"),r}var __extends$1E=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$19=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},DEFAULT_THEMES=["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"],ChartController=function(e){function t(t){var n=e.call(this)||this;return n.model=t,n}return __extends$1E(t,e),t.prototype.init=function(){var e=this;this.setChartRange(),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_RANGE_SELECTION_CHANGED,function(t){t.id&&t.id===e.model.chartId&&e.updateForRangeChange()}),this.model.unlinked&&this.rangeService&&this.rangeService.setCellRanges([]),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_MOVED,this.updateForGridChange.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PINNED,this.updateForGridChange.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_VISIBLE,this.updateForGridChange.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.updateForGridChange.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_MODEL_UPDATED,this.updateForGridChange.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_CELL_VALUE_CHANGED,this.updateForDataChange.bind(this))},t.prototype.updateForGridChange=function(){this.model.unlinked||(this.model.updateCellRanges(),this.setChartRange())},t.prototype.updateForDataChange=function(){this.model.unlinked||(this.model.updateData(),this.raiseChartModelUpdateEvent())},t.prototype.updateForRangeChange=function(){this.updateForGridChange(),this.raiseChartRangeSelectionChangedEvent()},t.prototype.updateForPanelChange=function(e){this.model.updateCellRanges(e),this.setChartRange(),this.raiseChartRangeSelectionChangedEvent()},t.prototype.getChartUpdateParams=function(){var e=this.getSelectedValueColState().map(function(e){return{colId:e.colId,displayName:e.displayName}}),t=this.getChartData(),n=this.getSelectedDimension();return{data:t,grouping:this.isGrouping(),category:{id:n.colId,name:n.displayName,chartDataType:this.model.getChartDataType(n.colId)},fields:e,chartId:this.getChartId(),getCrossFilteringContext:function(){return{lastSelectedChartId:"xxx"}},seriesChartTypes:this.getSeriesChartTypes()}},t.prototype.getChartModel=function(){var e=this.model.pivotChart?"pivot":"range",t=this.isComboChart()?this.model.seriesChartTypes:void 0;return{modelType:e,chartId:this.model.chartId,chartType:this.model.chartType,chartThemeName:this.getChartThemeName(),chartOptions:this.chartProxy.getChartThemeOverrides(),chartPalette:this.chartProxy.getChartPalette(),cellRange:this.getCellRangeParams(),suppressChartRanges:this.model.suppressChartRanges,aggFunc:this.model.aggFunc,unlinkChart:this.model.unlinked,seriesChartTypes:t}},t.prototype.getChartId=function(){return this.model.chartId},t.prototype.getChartData=function(){return this.model.chartData},t.prototype.getChartType=function(){return this.model.chartType},t.prototype.setChartType=function(e){this.model.chartType=e,this.model.updateSeriesChartTypes(),this.raiseChartModelUpdateEvent(),this.raiseChartOptionsChangedEvent()},t.prototype.setChartThemeName=function(e){this.model.chartThemeName=e,this.raiseChartModelUpdateEvent(),this.raiseChartOptionsChangedEvent()},t.prototype.getChartThemeName=function(){return this.model.chartThemeName},t.prototype.isPivotChart=function(){return this.model.pivotChart},t.prototype.isPivotMode=function(){return this.model.isPivotMode()},t.prototype.isGrouping=function(){return this.model.isGrouping()},t.prototype.getThemes=function(){return this.gridOptionsService.get("chartThemes")||DEFAULT_THEMES},t.prototype.getPalettes=function(){var e=this;return this.getThemes().map(function(t){return getChartTheme(isStockTheme(t)?t:e.chartProxy.lookupCustomChartTheme(t)).palette})},t.prototype.getValueColState=function(){return this.model.valueColState.map(this.displayNameMapper.bind(this))},t.prototype.getSelectedValueColState=function(){return this.getValueColState().filter(function(e){return e.selected})},t.prototype.getDimensionColState=function(){return this.model.dimensionColState},t.prototype.getSelectedDimension=function(){return this.model.getSelectedDimension()},t.prototype.displayNameMapper=function(e){var t=this.model.columnNames[e.colId];return e.displayName=t?t.join(" - "):this.model.getColDisplayName(e.column),e},t.prototype.getColStateForMenu=function(){return{dimensionCols:this.model.dimensionColState,valueCols:this.getValueColState()}},t.prototype.isDefaultCategorySelected=function(){return this.model.getSelectedDimension().colId===ChartDataModel.DEFAULT_CATEGORY},t.prototype.setChartRange=function(e){void 0===e&&(e=!1),!this.rangeService||this.model.suppressChartRanges||this.model.unlinked||this.rangeService.setCellRanges(this.getCellRanges()),e||this.raiseChartModelUpdateEvent()},t.prototype.detachChartRange=function(){this.model.unlinked=!this.model.unlinked,this.model.unlinked?this.rangeService&&this.rangeService.setCellRanges([]):this.updateForGridChange()},t.prototype.setChartProxy=function(e){this.chartProxy=e},t.prototype.getChartProxy=function(){return this.chartProxy},t.prototype.isActiveXYChart=function(){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(["scatter","bubble"],this.getChartType())},t.prototype.isChartLinked=function(){return!this.model.unlinked},t.prototype.customComboExists=function(){return this.model.savedCustomSeriesChartTypes&&this.model.savedCustomSeriesChartTypes.length>0},t.prototype.getSeriesChartTypes=function(){return this.model.seriesChartTypes},t.prototype.isComboChart=function(){return this.model.isComboChart()},t.prototype.updateSeriesChartType=function(e,n,r){var o=this.model.seriesChartTypes.find(function(t){return t.colId===e});if(o){var i="customCombo"!==this.model.chartType;i&&(this.model.chartType="customCombo");var a=o.chartType;null!=n&&(o.chartType=n),null!=r&&(o.secondaryAxis=r),this.model.savedCustomSeriesChartTypes=this.model.seriesChartTypes,this.model.updateSeriesChartTypes(),this.updateForDataChange(),i&&this.dispatchEvent({type:t.EVENT_CHART_TYPE_CHANGED}),a!==n&&this.dispatchEvent({type:t.EVENT_CHART_SERIES_CHART_TYPE_CHANGED}),this.raiseChartOptionsChangedEvent()}},t.prototype.getActiveSeriesChartTypes=function(){var e=this.getSelectedValueColState().map(function(e){return e.colId});return this.getSeriesChartTypes().filter(function(t){return e.includes(t.colId)})},t.prototype.getChartSeriesTypes=function(){return this.isComboChart()?["line","column","area"]:[getSeriesType(this.getChartType())]},t.prototype.getCellRanges=function(){return[this.model.dimensionCellRange,this.model.valueCellRange].filter(function(e){return e})},t.prototype.getCellRangeParams=function(){var e=this.getCellRanges(),t=e[0],n=t&&t.startRow||null,r=t&&t.endRow||null;return{rowStartIndex:n&&n.rowIndex,rowStartPinned:n&&n.rowPinned,rowEndIndex:r&&r.rowIndex,rowEndPinned:r&&r.rowPinned,columns:e.reduce(function(e,t){return e.concat(t.columns.map(function(e){return e.getId()}))},[])}},t.prototype.raiseChartModelUpdateEvent=function(){var e={type:t.EVENT_CHART_MODEL_UPDATE};this.dispatchEvent(e)},t.prototype.raiseChartUpdatedEvent=function(){var e={type:t.EVENT_CHART_UPDATED};this.dispatchEvent(e)},t.prototype.raiseChartOptionsChangedEvent=function(){var e=this.getChartModel(),t=e.chartId,n=e.chartType,r={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_CHART_OPTIONS_CHANGED,chartId:t,chartType:n,chartThemeName:this.getChartThemeName(),chartOptions:this.chartProxy.getChartThemeOverrides()};this.eventService.dispatchEvent(r)},t.prototype.raiseChartRangeSelectionChangedEvent=function(){var e={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_CHART_RANGE_SELECTION_CHANGED,id:this.model.chartId,chartId:this.model.chartId,cellRange:this.getCellRangeParams()};this.eventService.dispatchEvent(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.rangeService&&this.rangeService.setCellRanges([])},t.EVENT_CHART_UPDATED="chartUpdated",t.EVENT_CHART_MODEL_UPDATE="chartModelUpdate",t.EVENT_CHART_TYPE_CHANGED="chartTypeChanged",t.EVENT_CHART_SERIES_CHART_TYPE_CHANGED="chartSeriesChartTypeChanged",__decorate$19([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rangeService")],t.prototype,"rangeService",void 0),__decorate$19([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$1D=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$18=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$k=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$9=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$k(arguments[t]));return e},__values$7=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},DefaultDataPanelDef={groups:[{type:"categories",isOpen:!0},{type:"series",isOpen:!0},{type:"seriesChartType",isOpen:!0}]},ChartDataPanel=function(e){function t(n,r){var o=e.call(this,t.TEMPLATE)||this;return o.chartController=n,o.chartOptionsService=r,o.columnComps=new Map,o}return __extends$1D(t,e),t.prototype.init=function(){this.updatePanels(),this.addManagedListener(this.chartController,ChartController.EVENT_CHART_MODEL_UPDATE,this.updatePanels.bind(this)),this.createAutoScrollService()},t.prototype.destroy=function(){this.clearComponents(),e.prototype.destroy.call(this)},t.prototype.updatePanels=function(){var e,t,n=this,r=this.chartType,o=this.chartController.getColStateForMenu(),i=o.dimensionCols,a=o.valueCols,s=i.map(function(e){return e.colId}).concat(a.map(function(e){return e.colId}));this.chartType=this.chartController.getChartType();var l=this.getGroupExpandedState();if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.areEqual(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.keys(this.columnComps),s)&&this.chartType===r){if(__spread$9(i,a).forEach(function(e){n.columnComps.get(e.colId).setValue(e.selected,!0)}),this.chartController.isActiveXYChart()){var c=this.generateGetSeriesLabel();a.forEach(function(e){n.columnComps.get(e.colId).setLabel(c(e))})}ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromParent(this.getGui().querySelector("#seriesChartTypeGroup")),this.seriesChartTypeGroupComp=this.destroyBean(this.seriesChartTypeGroupComp);var u=null===(e=this.getDataPanelDef().groups)||void 0===e?void 0:e.reduce(function(e,t,n){return"seriesChartType"===t.type?n:e},-1);-1!==u&&this.createSeriesChartTypeGroup(a,u)}else this.clearComponents(),null===(t=this.getDataPanelDef().groups)||void 0===t||t.forEach(function(e){var t=e.type;"categories"===t?n.createCategoriesGroup(i):"series"===t?n.createSeriesGroup(a):"seriesChartType"===t?n.createSeriesChartTypeGroup(a):console.warn("AG Grid: invalid charts data panel group name supplied: '"+t+"'")});this.restoreGroupExpandedState(l)},t.prototype.getGroupExpandedState=function(){var e=this;return[{groupType:"categories",comp:this.categoriesGroupComp},{groupType:"series",comp:this.seriesGroupComp},{groupType:"seriesChartType",comp:this.seriesChartTypeGroupComp}].map(function(t){var n,r,o=t.groupType,i=t.comp,a=Boolean(null===(r=null===(n=e.getDataPanelDef().groups)||void 0===n?void 0:n.find(function(e){return e.type===o}))||void 0===r?void 0:r.isOpen);return i?i.isExpanded():a})},t.prototype.restoreGroupExpandedState=function(e){[this.categoriesGroupComp,this.seriesGroupComp,this.seriesChartTypeGroupComp].forEach(function(t,n){t&&t.toggleGroupExpand(e[n])})},t.prototype.createAutoScrollService=function(){var e=this.getGui();this.autoScrollService=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AutoScrollService({scrollContainer:e,scrollAxis:"y",getVerticalPosition:function(){return e.scrollTop},setVerticalPosition:function(t){return e.scrollTop=t}})},t.prototype.createComponent=function(e,t){var n=document.createElement("div");return n.id=t,n.className="ag-chart-data-section",n.appendChild(e.getGui()),n},t.prototype.addComponent=function(e,t,n){var r=this.createComponent(t,n);e.appendChild(r)},t.prototype.addComponentAtIndex=function(e,t,n,r){var o=this.createComponent(t,n);e.insertBefore(o,e.children[r])},t.prototype.addChangeListener=function(e,t){var n=this;this.addManagedListener(e,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgAbstractField.EVENT_CHANGED,function(){t.selected=e.getValue(),n.chartController.updateForPanelChange(t)})},t.prototype.createCategoriesGroup=function(e){var t=this;this.categoriesGroupComp=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgGroupComponent({title:this.getCategoryGroupTitle(),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data"}));var n="chartDimension"+this.getCompId();e.forEach(function(e){var r=t.categoriesGroupComp.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgRadioButton);r.setLabel(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(e.displayName)),r.setValue(e.selected),r.setInputName(n),t.addChangeListener(r,e),t.categoriesGroupComp.addItem(r),t.columnComps.set(e.colId,r)}),this.addComponent(this.getGui(),this.categoriesGroupComp,"categoriesGroup")},t.prototype.createSeriesGroup=function(e){var t=this;if(this.seriesGroupComp=this.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgGroupComponent({title:this.getSeriesGroupTitle(),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data"})),this.chartController.isActiveXYChart()){var n=this.seriesGroupComp.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgToggleButton);n.setLabel(this.chartTranslationService.translate("paired")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(45).setValue(this.chartOptionsService.getPairedMode()).onValueChange(function(e){t.chartOptionsService.setPairedMode(!!e),t.chartController.updateForGridChange()}),this.seriesGroupComp.addItem(n)}var r=this.generateGetSeriesLabel();e.forEach(function(e){var n=t.seriesGroupComp.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgCheckbox);n.addCssClass("ag-data-select-checkbox");var o=r(e);n.setLabel(o),n.setValue(e.selected),t.addChangeListener(n,e),t.seriesGroupComp.addItem(n),t.columnComps.set(e.colId,n),t.addDragHandle(n,e)});var o=this.getGui(),i=this.seriesGroupComp.getGui();this.addComponent(o,this.seriesGroupComp,"seriesGroup");var a={getIconName:function(){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragAndDropService.ICON_MOVE},getContainer:function(){return i},onDragging:function(e){return t.onDragging(e)},onDragLeave:function(){return t.onDragLeave()},isInterestedIn:this.isInterestedIn.bind(this),targetContainsSource:!0};this.dragAndDropService.addDropTarget(a),this.addDestroyFunc(function(){return t.dragAndDropService.removeDropTarget(a)})},t.prototype.createSeriesChartTypeGroup=function(e,t){var n=this;if(this.chartController.isComboChart()){this.seriesChartTypeGroupComp=this.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgGroupComponent({title:this.chartTranslationService.translate("seriesChartType"),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data"}));var r=this.chartController.getSeriesChartTypes();e.forEach(function(e){if(e.selected){var t=r.filter(function(t){return t.colId===e.colId})[0];if(t){var o=n.seriesChartTypeGroupComp.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgGroupComponent({title:e.displayName,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!0,cssIdentifier:"charts-format-sub-level"})),i=n.seriesChartTypeGroupComp.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgCheckbox).setLabel(n.chartTranslationService.translate("secondaryAxis")).setLabelWidth("flex").setDisabled(["groupedColumn","stackedColumn","stackedArea"].includes(t.chartType)).setValue(!!t.secondaryAxis).onValueChange(function(t){return n.chartController.updateSeriesChartType(e.colId,void 0,t)});o.addItem(i);var a=function(e,t){return n.chartTranslationService.translate(e,t)},s=[{value:"line",text:a("line","Line")},{value:"area",text:a("area","Area")},{value:"stackedArea",text:a("stackedArea","StackedArea")},{value:"groupedColumn",text:a("groupedColumn","Grouped Column")},{value:"stackedColumn",text:a("stackedColumn","Stacked Column")}],l=o.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSelect);l.setLabelAlignment("left").setLabelWidth("flex").addOptions(s).setValue(t.chartType).onValueChange(function(t){return n.chartController.updateSeriesChartType(e.colId,t)}),o.addItem(l),n.seriesChartTypeGroupComp.addItem(o)}}}),void 0===t?this.addComponent(this.getGui(),this.seriesChartTypeGroupComp,"seriesChartTypeGroup"):this.addComponentAtIndex(this.getGui(),this.seriesChartTypeGroupComp,"seriesChartTypeGroup",t)}},t.prototype.addDragHandle=function(e,t){var n=this,r=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columnDrag",this.gridOptionsService);r.classList.add("ag-drag-handle","ag-chart-data-column-drag-handle"),e.getGui().insertAdjacentElement("beforeend",r);var o={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragSourceType.ChartPanel,eElement:r,dragItemName:t.displayName,getDragItem:function(){return{columns:[t.column]}},onDragStopped:function(){return n.onDragStop()}};this.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc(function(){return n.dragAndDropService.removeDragSource(o)})},t.prototype.generateGetSeriesLabel=function(){if(!this.chartController.isActiveXYChart())return function(e){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(e.displayName)};var e="bubble"===this.chartType,t=this.isInPairedMode(),n=0,r=new Map;return r.set(0,"X"),r.set(1,"Y"),r.set(2,"size"),function(o){var i,a=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(o.displayName);return o.selected?(i=t?r.get(n%(e?3:2)):0===n?"X":e&&n%2==0?"size":"Y",n++,a+" ("+i+")"):a}},t.prototype.getCategoryGroupTitle=function(){return this.chartTranslationService.translate(this.chartController.isActiveXYChart()?"labels":"categories")},t.prototype.getSeriesGroupTitle=function(){return this.chartTranslationService.translate(this.chartController.isActiveXYChart()?"xyValues":"series")},t.prototype.getDataPanelDef=function(){var e;return(null===(e=this.gridOptionsService.get("chartToolPanelsDef"))||void 0===e?void 0:e.dataPanel)||DefaultDataPanelDef},t.prototype.isInPairedMode=function(){return this.chartController.isActiveXYChart()&&this.chartOptionsService.getSeriesOption("paired","scatter")},t.prototype.clearComponents=function(){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.getGui()),this.categoriesGroupComp=this.destroyBean(this.categoriesGroupComp),this.seriesGroupComp=this.destroyBean(this.seriesGroupComp),this.seriesChartTypeGroupComp=this.destroyBean(this.seriesChartTypeGroupComp),this.columnComps.clear()},t.prototype.onDragging=function(e){var t=this.checkHoveredItem(e);if(t){this.lastDraggedColumn=e.dragItem.columns[0];var n=t.comp,r=t.position,o=this.lastHoveredItem||{},i=o.comp,a=o.position;n===i&&r===a||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredItem={comp:n,position:r},n.getGui().classList.add("ag-list-item-hovered","ag-item-highlight-"+r))}},t.prototype.checkHoveredItem=function(e){var t,n;if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(e.vDirection))return null;var r=e.event;try{for(var o=__values$7(this.columnComps.values()),i=o.next();!i.done;i=o.next()){var a=i.value,s=a.getGui();if(s.querySelector(".ag-chart-data-column-drag-handle")){var l=s.getBoundingClientRect();if(r.clientY>=l.top&&r.clientY<=l.bottom){var c=s.clientHeight;return{comp:a,position:r.clientY>l.top+c/2?"bottom":"top"}}}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return null},t.prototype.onDragLeave=function(){this.clearHoveredItems()},t.prototype.onDragStop=function(){var e=this;if(this.lastHoveredItem){var t=this.chartController.getColStateForMenu(),n=t.dimensionCols,r=t.valueCols,o=__spread$9(n,r).find(function(t){return t.column===e.lastDraggedColumn});if(o){var i=Array.from(this.columnComps.values()).indexOf(this.lastHoveredItem.comp);"bottom"===this.lastHoveredItem.position&&i++,o.order=i,this.chartController.updateForPanelChange(o)}}this.clearHoveredItems(),this.lastDraggedColumn=void 0,this.autoScrollService.ensureCleared()},t.prototype.clearHoveredItems=function(){this.columnComps.forEach(function(e){e.getGui().classList.remove("ag-list-item-hovered","ag-item-highlight-top","ag-item-highlight-bottom")}),this.lastHoveredItem=void 0},t.prototype.isInterestedIn=function(e){return e===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DragSourceType.ChartPanel},t.TEMPLATE='<div class="ag-chart-data-wrapper ag-scrollable-container"></div>',__decorate$18([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),__decorate$18([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$18([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1C=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$17=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},FontPanel=function(e){function t(t){var n=e.call(this)||this;return n.activeComps=[],n.params=t,n}return __extends$1C(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE,{fontGroup:{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0}}),this.initGroup(),this.initFontFamilySelect(),this.initFontWeightStyleSelect(),this.initFontSizeSelect(),this.initFontColorPicker()},t.prototype.addCompToPanel=function(e){this.fontGroup.addItem(e),this.activeComps.push(e)},t.prototype.setEnabled=function(e){this.fontGroup.setEnabled(e)},t.prototype.initGroup=function(){var e=this;this.fontGroup.setTitle(this.params.name||this.chartTranslationService.translate("font")).setEnabled(this.params.enabled).hideEnabledCheckbox(!!this.params.suppressEnabledCheckbox).hideOpenCloseIcons(!0).onEnableChange(function(t){e.params.setEnabled&&e.params.setEnabled(t)})},t.prototype.initFontFamilySelect=function(){var e=this,t=["Arial, sans-serif","Aria Black, sans-serif","Book Antiqua,  serif","Charcoal, sans-serif","Comic Sans MS, cursive","Courier, monospace","Courier New, monospace","Gadget, sans-serif","Geneva, sans-serif","Helvetica, sans-serif","Impact, sans-serif","Lucida Console, monospace","Lucida Grande, sans-serif","Lucida Sans Unicode,  sans-serif","Monaco, monospace","Palatino Linotype, serif","Palatino, serif","Times New Roman, serif","Times, serif","Verdana, sans-serif"],n=this.params.initialFont.family,r=t[0];if(n){var o=t.map(function(e){return e.toLowerCase()}).indexOf(n.toLowerCase());if(o>=0)r=t[o];else{var i=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.capitalise(n);t.push(i),r=i}}var a=t.sort().map(function(e){return{value:e,text:e}});this.familySelect.addOptions(a).setInputWidth("flex").setValue(""+r).onValueChange(function(t){return e.params.setFont({family:t})})},t.prototype.initFontSizeSelect=function(){var e=this,t=[8,10,12,14,16,18,20,22,24,26,28,30,32,34,36],n=this.params.initialFont.size;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(t,n)||t.push(n);var r=t.sort(function(e,t){return e-t}).map(function(e){return{value:""+e,text:""+e}});this.sizeSelect.addOptions(r).setInputWidth("flex").setValue(""+n).onValueChange(function(t){return e.params.setFont({size:parseInt(t,10)})}),this.sizeSelect.setLabel(this.chartTranslationService.translate("size"))},t.prototype.initFontWeightStyleSelect=function(){var e=this,t=this.params.initialFont,n=t.weight,r=void 0===n?"normal":n,o=t.style,i=void 0===o?"normal":o,a=[{name:"normal",weight:"normal",style:"normal"},{name:"bold",weight:"bold",style:"normal"},{name:"italic",weight:"normal",style:"italic"},{name:"boldItalic",weight:"bold",style:"italic"}],s=a.find(function(e){return e.weight===r&&e.style===i});s||(s={name:"predefined",weight:r,style:i},a.unshift(s));var l=a.map(function(t){return{value:t.name,text:e.chartTranslationService.translate(t.name)}});this.weightStyleSelect.addOptions(l).setInputWidth("flex").setValue(s.name).onValueChange(function(t){var n=a.find(function(e){return e.name===t});e.params.setFont({weight:n.weight,style:n.style})})},t.prototype.initFontColorPicker=function(){var e=this;this.colorPicker.setLabel(this.chartTranslationService.translate("color")).setInputWidth(45).setValue(""+this.params.initialFont.color).onValueChange(function(t){return e.params.setFont({color:t})})},t.prototype.addItemToPanel=function(e){this.fontGroup.addItem(e),this.activeComps.push(e)},t.prototype.destroyActiveComps=function(){var e=this;this.activeComps.forEach(function(t){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromParent(t.getGui()),e.destroyBean(t)})},t.prototype.destroy=function(){this.destroyActiveComps(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-font-panel">\n            <ag-group-component ref="fontGroup">\n                <ag-select ref="familySelect"></ag-select>\n                <ag-select ref="weightStyleSelect"></ag-select>\n                <div class="ag-charts-font-size-color">\n                    <ag-select ref="sizeSelect"></ag-select>\n                    <ag-color-picker ref="colorPicker"></ag-color-picker>\n                </div>\n            </ag-group-component>\n        </div>',__decorate$17([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("fontGroup")],t.prototype,"fontGroup",void 0),__decorate$17([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("familySelect")],t.prototype,"familySelect",void 0),__decorate$17([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("weightStyleSelect")],t.prototype,"weightStyleSelect",void 0),__decorate$17([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("sizeSelect")],t.prototype,"sizeSelect",void 0),__decorate$17([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("colorPicker")],t.prototype,"colorPicker",void 0),__decorate$17([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$17([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1B=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$16=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},LegendPanel=function(e){function t(t){var n=t.chartOptionsService,r=t.isExpandedOnInit,o=void 0!==r&&r,i=e.call(this)||this;return i.activePanels=[],i.chartOptionsService=n,i.isExpandedOnInit=o,i}return __extends$1B(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE,{legendGroup:{cssIdentifier:"charts-format-top-level",direction:"vertical"}}),this.initLegendGroup(),this.initLegendPosition(),this.initLegendPadding(),this.initLegendItems(),this.initLabelPanel()},t.prototype.initLegendGroup=function(){var e=this;this.legendGroup.setTitle(this.chartTranslationService.translate("legend")).hideEnabledCheckbox(!1).setEnabled(this.chartOptionsService.getChartOption("legend.enabled")||!1).toggleGroupExpand(this.isExpandedOnInit).onEnableChange(function(t){e.chartOptionsService.setChartOption("legend.enabled",t),e.legendGroup.toggleGroupExpand(!0)})},t.prototype.initLegendPosition=function(){var e=this;this.legendPositionSelect.setLabel(this.chartTranslationService.translate("position")).setLabelWidth("flex").setInputWidth(80).addOptions(["top","right","bottom","left"].map(function(t){return{value:t,text:e.chartTranslationService.translate(t)}})).setValue(this.chartOptionsService.getChartOption("legend.position")).onValueChange(function(t){return e.chartOptionsService.setChartOption("legend.position",t)})},t.prototype.initLegendPadding=function(){var e=this,t=this.chartOptionsService.getChartOption("legend.spacing");this.legendPaddingSlider.setLabel(this.chartTranslationService.translate("spacing")).setMaxValue(getMaxValue(t,200)).setValue(""+t).setTextFieldWidth(45).onValueChange(function(t){return e.chartOptionsService.setChartOption("legend.spacing",t)})},t.prototype.initLegendItems=function(){var e=this,t=function(t,n,r,o){var i=e.chartOptionsService.getChartOption("legend."+t);r.setLabel(e.chartTranslationService.translate(n)).setMaxValue(getMaxValue(i,o)).setValue(""+i).setTextFieldWidth(45).onValueChange(function(n){e.chartOptionsService.setChartOption("legend."+t,n)})};t("item.marker.size","markerSize",this.markerSizeSlider,40),t("item.marker.strokeWidth","markerStroke",this.markerStrokeSlider,10),t("item.marker.padding","itemSpacing",this.markerPaddingSlider,20),t("item.paddingX","layoutHorizontalSpacing",this.itemPaddingXSlider,50),t("item.paddingY","layoutVerticalSpacing",this.itemPaddingYSlider,50)},t.prototype.initLabelPanel=function(){var e=this,t=this.chartOptionsService,n={enabled:!0,suppressEnabledCheckbox:!0,initialFont:{family:t.getChartOption("legend.item.label.fontFamily"),style:t.getChartOption("legend.item.label.fontStyle"),weight:t.getChartOption("legend.item.label.fontWeight"),size:t.getChartOption("legend.item.label.fontSize"),color:t.getChartOption("legend.item.label.color")},setFont:function(t){var n=e.chartOptionsService;t.family&&n.setChartOption("legend.item.label.fontFamily",t.family),t.weight&&n.setChartOption("legend.item.label.fontWeight",t.weight),t.style&&n.setChartOption("legend.item.label.fontStyle",t.style),t.size&&n.setChartOption("legend.item.label.fontSize",t.size),t.color&&n.setChartOption("legend.item.label.color",t.color)}},r=this.createBean(new FontPanel(n));this.legendGroup.addItem(r),this.activePanels.push(r)},t.prototype.destroyActivePanels=function(){var e=this;this.activePanels.forEach(function(t){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromParent(t.getGui()),e.destroyBean(t)})},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div>\n            <ag-group-component ref="legendGroup">\n                <ag-select ref="legendPositionSelect"></ag-select>\n                <ag-slider ref="legendPaddingSlider"></ag-slider>\n                <ag-slider ref="markerSizeSlider"></ag-slider>\n                <ag-slider ref="markerStrokeSlider"></ag-slider>\n                <ag-slider ref="markerPaddingSlider"></ag-slider>\n                <ag-slider ref="itemPaddingXSlider"></ag-slider>\n                <ag-slider ref="itemPaddingYSlider"></ag-slider>\n            </ag-group-component>\n        </div>',__decorate$16([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("legendGroup")],t.prototype,"legendGroup",void 0),__decorate$16([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("legendPositionSelect")],t.prototype,"legendPositionSelect",void 0),__decorate$16([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("legendPaddingSlider")],t.prototype,"legendPaddingSlider",void 0),__decorate$16([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("markerSizeSlider")],t.prototype,"markerSizeSlider",void 0),__decorate$16([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("markerStrokeSlider")],t.prototype,"markerStrokeSlider",void 0),__decorate$16([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("markerPaddingSlider")],t.prototype,"markerPaddingSlider",void 0),__decorate$16([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("itemPaddingXSlider")],t.prototype,"itemPaddingXSlider",void 0),__decorate$16([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("itemPaddingYSlider")],t.prototype,"itemPaddingYSlider",void 0),__decorate$16([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$16([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1A=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$15=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},AxisTicksPanel=function(e){function t(t){var n=e.call(this)||this;return n.chartOptionsService=t,n}return __extends$1A(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE,{axisTicksGroup:{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0}}),this.initAxisTicks()},t.prototype.initAxisTicks=function(){var e=this;this.axisTicksGroup.setTitle(this.chartTranslationService.translate("ticks")).hideOpenCloseIcons(!0).hideEnabledCheckbox(!0),this.axisTicksColorPicker.setLabel(this.chartTranslationService.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue(this.chartOptionsService.getAxisProperty("tick.color")).onValueChange(function(t){return e.chartOptionsService.setAxisProperty("tick.color",t)});var t=function(t,n,r,o){var i=e.chartOptionsService.getAxisProperty(t);n.setLabel(r).setMaxValue(getMaxValue(i,o)).setValue(""+i).setTextFieldWidth(45).onValueChange(function(n){return e.chartOptionsService.setAxisProperty(t,n)})};t("tick.width",this.axisTicksWidthSlider,this.chartTranslationService.translate("width"),10),t("tick.size",this.axisTicksSizeSlider,this.chartTranslationService.translate("length"),30)},t.TEMPLATE='<div>\n            <ag-group-component ref="axisTicksGroup">\n                <ag-color-picker ref="axisTicksColorPicker"></ag-color-picker>\n                <ag-slider ref="axisTicksWidthSlider"></ag-slider>\n                <ag-slider ref="axisTicksSizeSlider"></ag-slider>\n            </ag-group-component>\n        </div>',__decorate$15([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("axisTicksGroup")],t.prototype,"axisTicksGroup",void 0),__decorate$15([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("axisTicksColorPicker")],t.prototype,"axisTicksColorPicker",void 0),__decorate$15([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("axisTicksWidthSlider")],t.prototype,"axisTicksWidthSlider",void 0),__decorate$15([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("axisTicksSizeSlider")],t.prototype,"axisTicksSizeSlider",void 0),__decorate$15([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$15([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$14=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},AgAngleSelect=function(e){function t(n){var r=e.call(this,n,t.TEMPLATE)||this;return r.radius=0,r.offsetX=0,r.offsetY=0,r}return __extends$1z(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(),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgAbstractField.EVENT_CHANGED,function(){var e=t.gridOptionsService.getDocument();t.eAngleValue.getInputElement().contains(e.activeElement)||t.updateNumberInput()})},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,r=t.width/2,o=t.height/2;n.style.left=r+8*Math.cos(e)+"px",n.style.top=o+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,n=Math.atan2(t,e);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(n)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)},t.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},t.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},t.prototype.calculateAngleDrag=function(e){var t=this.parentCircleRect,n=t.width/2,r=t.height/2,o=e.clientX-t.left-n,i=e.clientY-t.top-r,a=Math.atan2(i,o);this.setValue(a,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e||(this.radius=e,this.calculateCartesian()),this},t.prototype.onValueChange=function(e){var t=this;return this.addManagedListener(this,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgAbstractField.EVENT_CHANGED,function(){e(t.degrees)}),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,t){var 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:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgAbstractField.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setFixedWidth(this.getGui(),e),this},t.prototype.setDisabled=function(t){return e.prototype.setDisabled.call(this,t),this.eAngleValue.setDisabled(t),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>',__decorate$14([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eLabel")],t.prototype,"eLabel",void 0),__decorate$14([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eParentCircle")],t.prototype,"eParentCircle",void 0),__decorate$14([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eChildCircle")],t.prototype,"eChildCircle",void 0),__decorate$14([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eAngleValue")],t.prototype,"eAngleValue",void 0),__decorate$14([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("dragService")],t.prototype,"dragService",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgAbstractLabel),__extends$1y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$13=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},AxisPanel=function(e){function t(t){var n=t.chartController,r=t.chartOptionsService,o=t.isExpandedOnInit,i=void 0!==o&&o,a=e.call(this)||this;return a.activePanels=[],a.axisLabelUpdateFuncs=[],a.prevXRotation=0,a.prevYRotation=0,a.chartController=n,a.chartOptionsService=r,a.isExpandedOnInit=i,a}return __extends$1y(t,e),t.prototype.init=function(){var e=this;this.setTemplate(t.TEMPLATE,{axisGroup:{cssIdentifier:"charts-format-top-level",direction:"vertical"}}),this.initAxis(),this.initAxisTicks(),this.initAxisLabels(),this.addManagedListener(this.chartController,ChartController.EVENT_CHART_UPDATED,function(){return e.axisLabelUpdateFuncs.forEach(function(e){return e()})})},t.prototype.initAxis=function(){var e=this;this.axisGroup.setTitle(this.translate("axis")).toggleGroupExpand(this.isExpandedOnInit).hideEnabledCheckbox(!0),this.axisColorInput.setLabel(this.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue(this.chartOptionsService.getAxisProperty("line.color")).onValueChange(function(t){return e.chartOptionsService.setAxisProperty("line.color",t)});var t=this.chartOptionsService.getAxisProperty("line.width");this.axisLineWidthSlider.setMaxValue(getMaxValue(t,10)).setLabel(this.translate("thickness")).setTextFieldWidth(45).setValue(""+t).onValueChange(function(t){return e.chartOptionsService.setAxisProperty("line.width",t)})},t.prototype.initAxisTicks=function(){var e=this.createBean(new AxisTicksPanel(this.chartOptionsService));this.axisGroup.addItem(e),this.activePanels.push(e)},t.prototype.initAxisLabels=function(){var e=this,t={family:this.chartOptionsService.getAxisProperty("label.fontFamily"),style:this.chartOptionsService.getAxisProperty("label.fontStyle"),weight:this.chartOptionsService.getAxisProperty("label.fontWeight"),size:this.chartOptionsService.getAxisProperty("label.fontSize"),color:this.chartOptionsService.getAxisProperty("label.color")},n={name:this.translate("labels"),enabled:!0,suppressEnabledCheckbox:!0,initialFont:t,setFont:function(t){t.family&&e.chartOptionsService.setAxisProperty("label.fontFamily",t.family),t.weight&&e.chartOptionsService.setAxisProperty("label.fontWeight",t.weight),t.style&&e.chartOptionsService.setAxisProperty("label.fontStyle",t.style),t.size&&e.chartOptionsService.setAxisProperty("label.fontSize",t.size),t.color&&e.chartOptionsService.setAxisProperty("label.color",t.color)}},r=this.createBean(new FontPanel(n));this.axisGroup.addItem(r),this.activePanels.push(r),this.addAdditionalLabelComps(r)},t.prototype.addAdditionalLabelComps=function(e){this.addLabelPadding(e);var t=this.createRotationWidgets(),n=t.xRotationComp,r=t.yRotationComp,o=this.initLabelRotations(n,r);e.addCompToPanel(o),e.addCompToPanel(n),e.addCompToPanel(r)},t.prototype.initLabelRotations=function(e,t){var n,r,o=this,i=function(e){return o.chartOptionsService.getLabelRotation(e)},a=function(e,t){o.chartOptionsService.setLabelRotation(e,t)},s=(n=i("xAxis"),r=i("yAxis"),null==n&&null==r&&o.chartOptionsService.getAxisProperty("label.autoRotate")),l=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgCheckbox).setLabel(this.translate("autoRotate")).setValue(s).onValueChange(function(n){o.chartOptionsService.setAxisProperty("label.autoRotate",n),n?(o.prevXRotation=i("xAxis"),o.prevYRotation=i("yAxis"),a("xAxis",void 0),a("yAxis",void 0)):(a("xAxis",o.prevXRotation),a("yAxis",o.prevYRotation)),e.setDisabled(n),t.setDisabled(n)});return e.setDisabled(s),t.setDisabled(s),l},t.prototype.createRotationWidgets=function(){var e=this,t=String.fromCharCode(176),n=function(n,r){var o=e.chartTranslationService.translate(n)+" "+t,i=e.chartOptionsService.getLabelRotation(r),a=(new AgAngleSelect).setLabel(o).setLabelWidth("flex").setValue(i||0).onValueChange(function(t){return e.chartOptionsService.setLabelRotation(r,t)});return e.axisLabelUpdateFuncs.push(function(){var t=e.chartOptionsService.getLabelRotation(r);a.setValue(t||0)}),e.createBean(a)};return{xRotationComp:n("xRotation","xAxis"),yRotationComp:n("yRotation","yAxis")}},t.prototype.addLabelPadding=function(e){var t=this,n=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSlider),r=this.chartOptionsService.getAxisProperty("label.padding");n.setLabel(this.chartTranslationService.translate("padding")).setMaxValue(getMaxValue(r,30)).setValue(""+r).setTextFieldWidth(45).onValueChange(function(e){return t.chartOptionsService.setAxisProperty("label.padding",e)}),e.addCompToPanel(n)},t.prototype.translate=function(e,t){return this.chartTranslationService.translate(e,t)},t.prototype.destroyActivePanels=function(){var e=this;this.activePanels.forEach(function(t){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromParent(t.getGui()),e.destroyBean(t)})},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div>\n            <ag-group-component ref="axisGroup">\n                <ag-color-picker ref="axisColorInput"></ag-color-picker>\n                <ag-slider ref="axisLineWidthSlider"></ag-slider>\n            </ag-group-component>\n        </div>',__decorate$13([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("axisGroup")],t.prototype,"axisGroup",void 0),__decorate$13([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("axisColorInput")],t.prototype,"axisColorInput",void 0),__decorate$13([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("axisLineWidthSlider")],t.prototype,"axisLineWidthSlider",void 0),__decorate$13([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$13([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$12=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},NavigatorPanel=function(e){function t(t){var n=t.chartOptionsService,r=t.isExpandedOnInit,o=void 0!==r&&r,i=e.call(this)||this;return i.chartOptionsService=n,i.isExpandedOnInit=o,i}return __extends$1x(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE,{navigatorGroup:{cssIdentifier:"charts-format-top-level",direction:"vertical"}}),this.initNavigator()},t.prototype.initNavigator=function(){var e=this,t=this.chartTranslationService;this.navigatorGroup.setTitle(t.translate("navigator")).hideEnabledCheckbox(!1).setEnabled(this.chartOptionsService.getChartOption("navigator.enabled")||!1).onEnableChange(function(t){e.chartOptionsService.setChartOption("navigator.enabled",t),e.navigatorGroup.toggleGroupExpand(!0)}).toggleGroupExpand(this.isExpandedOnInit);var n=this.chartOptionsService.getChartOption("navigator.height");this.navigatorHeightSlider.setLabel(t.translate("height")).setMinValue(10).setMaxValue(getMaxValue(n,60)).setTextFieldWidth(45).setValue(""+(n||30)).onValueChange(function(t){return e.chartOptionsService.setChartOption("navigator.height",t)})},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div>\n            <ag-group-component ref="navigatorGroup">\n                <ag-slider ref="navigatorHeightSlider"></ag-slider>\n            </ag-group-component>\n        </div>',__decorate$12([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("navigatorGroup")],t.prototype,"navigatorGroup",void 0),__decorate$12([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("navigatorHeightSlider")],t.prototype,"navigatorHeightSlider",void 0),__decorate$12([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$12([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1w=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$11=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},PaddingPanel=function(e){function t(t,n){var r=e.call(this)||this;return r.chartOptionsService=t,r.chartController=n,r}return __extends$1w(t,e),t.prototype.init=function(){var e=this;this.setTemplate(t.TEMPLATE,{chartPaddingGroup:{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0}}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_CHART_OPTIONS_CHANGED,function(t){e.updateTopPadding(t.chartOptions)}),this.initGroup(),this.initChartPaddingItems()},t.prototype.initGroup=function(){this.chartPaddingGroup.setTitle(this.chartTranslationService.translate("padding")).hideOpenCloseIcons(!0).hideEnabledCheckbox(!0)},t.prototype.initChartPaddingItems=function(){var e=this,t=function(t,n){var r=e.chartOptionsService.getChartOption("padding."+t);n.setLabel(e.chartTranslationService.translate(t)).setMaxValue(getMaxValue(r,200)).setValue(""+r).setTextFieldWidth(45).onValueChange(function(n){return e.chartOptionsService.setChartOption("padding."+t,n)})};t("top",this.paddingTopSlider),t("right",this.paddingRightSlider),t("bottom",this.paddingBottomSlider),t("left",this.paddingLeftSlider)},t.prototype.updateTopPadding=function(e){var t,n,r=null===(n=null===(t=e[this.chartController.getChartSeriesTypes()[0]])||void 0===t?void 0:t.padding)||void 0===n?void 0:n.top;null!=r&&this.paddingTopSlider.setValue(r)},t.TEMPLATE='<div>\n            <ag-group-component ref="chartPaddingGroup">\n                <ag-slider ref="paddingTopSlider"></ag-slider>\n                <ag-slider ref="paddingRightSlider"></ag-slider>\n                <ag-slider ref="paddingBottomSlider"></ag-slider>\n                <ag-slider ref="paddingLeftSlider"></ag-slider>\n            </ag-group-component>\n        <div>',__decorate$11([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("chartPaddingGroup")],t.prototype,"chartPaddingGroup",void 0),__decorate$11([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("paddingTopSlider")],t.prototype,"paddingTopSlider",void 0),__decorate$11([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("paddingRightSlider")],t.prototype,"paddingRightSlider",void 0),__decorate$11([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("paddingBottomSlider")],t.prototype,"paddingBottomSlider",void 0),__decorate$11([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("paddingLeftSlider")],t.prototype,"paddingLeftSlider",void 0),__decorate$11([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$11([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$10=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},BackgroundPanel=function(e){function t(t){var n=e.call(this)||this;return n.chartOptionsService=t,n}return __extends$1v(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE,{chartBackgroundGroup:{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0}}),this.initGroup(),this.initColorPicker()},t.prototype.initGroup=function(){var e=this;this.group.setTitle(this.chartTranslationService.translate("background")).setEnabled(this.chartOptionsService.getChartOption("background.visible")).hideOpenCloseIcons(!0).hideEnabledCheckbox(!1).onEnableChange(function(t){return e.chartOptionsService.setChartOption("background.visible",t)})},t.prototype.initColorPicker=function(){var e=this;this.colorPicker.setLabel(this.chartTranslationService.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue(this.chartOptionsService.getChartOption("background.fill")).onValueChange(function(t){return e.chartOptionsService.setChartOption("background.fill",t)})},t.TEMPLATE='<div>\n            <ag-group-component ref="chartBackgroundGroup">\n                <ag-color-picker ref="colorPicker"></ag-color-picker>\n            </ag-group-component>\n        <div>',__decorate$10([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("chartBackgroundGroup")],t.prototype,"group",void 0),__decorate$10([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("colorPicker")],t.prototype,"colorPicker",void 0),__decorate$10([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$10([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$$=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},TitlePanel=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.chartOptionsService=n,r.activePanels=[],r}return __extends$1u(t,e),t.prototype.init=function(){this.initFontPanel(),this.titlePlaceholder=this.chartTranslationService.translate("titlePlaceholder")},t.prototype.hasTitle=function(){var e=this.getOption("title");return e&&e.enabled&&e.text&&e.text.length>0},t.prototype.initFontPanel=function(){var e=this,t=this.hasTitle(),n=function(t,n){t.family&&e.setOption("title.fontFamily",t.family,n),t.weight&&e.setOption("title.fontWeight",t.weight,n),t.style&&e.setOption("title.fontStyle",t.style,n),t.size&&e.setOption("title.fontSize",t.size,n),t.color&&e.setOption("title.color",t.color,n)},r={family:this.getOption("title.fontFamily"),style:this.getOption("title.fontStyle"),weight:this.getOption("title.fontWeight"),size:this.getOption("title.fontSize"),color:this.getOption("title.color")};t||n(r,!0);var o={name:this.chartTranslationService.translate("title"),enabled:t,suppressEnabledCheckbox:!1,initialFont:r,setFont:n,setEnabled:function(t){if(e.toolbarExists()){var n=e.getOption("padding.top");e.setOption("padding.top",t?n-20:n+20)}e.setOption("title.enabled",t);var r=e.getOption("title.text"),o="Title"===r||0===(null==r?void 0:r.trim().length);t&&o&&e.setOption("title.text",e.titlePlaceholder)}},i=this.createBean(new FontPanel(o));i.addItemToPanel(this.createSpacingSlicer()),this.getGui().appendChild(i.getGui()),this.activePanels.push(i),this.addManagedListener(this.eventService,"chartTitleEdit",function(){i.setEnabled(e.hasTitle())})},t.prototype.createSpacingSlicer=function(){var e=this,t=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSlider),n=this.chartOptionsService.getChartOption("title.spacing");return t.setLabel(this.chartTranslationService.translate("spacing")).setMaxValue(Math.max(n,100)).setValue(""+n).setTextFieldWidth(45).onValueChange(function(t){return e.chartOptionsService.setChartOption("title.spacing",t)}),t},t.prototype.toolbarExists=function(){var e=this.gridOptionsService.getCallback("getChartToolbarItems");if(!e)return!0;var t={defaultItems:["chartUnlink","chartDownload"]};return["chartLink","chartUnlink","chartDownload"].some(function(n){var r;return null===(r=e&&e(t))||void 0===r?void 0:r.includes(n)})},t.prototype.getOption=function(e){return this.chartOptionsService.getChartOption(e)},t.prototype.setOption=function(e,t,n){this.chartOptionsService.setChartOption(e,t,n)},t.prototype.destroyActivePanels=function(){var e=this;this.activePanels.forEach(function(t){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromParent(t.getGui()),e.destroyBean(t)})},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE="<div></div>",__decorate$$([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$$([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$_=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ChartPanel=function(e){function t(t){var n=t.chartController,r=t.chartOptionsService,o=t.isExpandedOnInit,i=void 0!==o&&o,a=e.call(this)||this;return a.activePanels=[],a.chartController=n,a.chartOptionsService=r,a.isExpandedOnInit=i,a}return __extends$1t(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE,{chartGroup:{cssIdentifier:"charts-format-top-level",direction:"vertical"}}),this.initGroup(),this.initTitles(),this.initPaddingPanel(),this.initBackgroundPanel()},t.prototype.initGroup=function(){this.chartGroup.setTitle(this.chartTranslationService.translate("chart")).toggleGroupExpand(this.isExpandedOnInit).hideEnabledCheckbox(!0)},t.prototype.initTitles=function(){var e=this.createBean(new TitlePanel(this.chartOptionsService));this.chartGroup.addItem(e),this.activePanels.push(e)},t.prototype.initPaddingPanel=function(){var e=this.createBean(new PaddingPanel(this.chartOptionsService,this.chartController));this.chartGroup.addItem(e),this.activePanels.push(e)},t.prototype.initBackgroundPanel=function(){var e=this.createBean(new BackgroundPanel(this.chartOptionsService));this.chartGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){var e=this;this.activePanels.forEach(function(t){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromParent(t.getGui()),e.destroyBean(t)})},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div>\n            <ag-group-component ref="chartGroup"></ag-group-component>\n        </div>',__decorate$_([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("chartGroup")],t.prototype,"chartGroup",void 0),__decorate$_([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$_([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$Z=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ShadowPanel=function(e){function t(t,n){var r=e.call(this)||this;return r.chartOptionsService=t,r.getSelectedSeries=n,r}return __extends$1s(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE,{shadowGroup:{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0}}),this.shadowBlurSlider.setTextFieldWidth(45),this.shadowXOffsetSlider.setTextFieldWidth(45),this.shadowYOffsetSlider.setTextFieldWidth(45),this.initSeriesShadow()},t.prototype.initSeriesShadow=function(){var e=this;this.shadowGroup.setTitle(this.chartTranslationService.translate("shadow")).setEnabled(this.chartOptionsService.getSeriesOption("shadow.enabled",this.getSelectedSeries())).hideOpenCloseIcons(!0).hideEnabledCheckbox(!1).onEnableChange(function(t){return e.chartOptionsService.setSeriesOption("shadow.enabled",t,e.getSelectedSeries())}),this.shadowColorPicker.setLabel(this.chartTranslationService.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue(this.chartOptionsService.getSeriesOption("shadow.color",this.getSelectedSeries())).onValueChange(function(t){return e.chartOptionsService.setSeriesOption("shadow.color",t,e.getSelectedSeries())});var t=function(t,n,r,o){var i=e.chartOptionsService.getSeriesOption("shadow."+n,e.getSelectedSeries());t.setLabel(e.chartTranslationService.translate(n)).setMinValue(r).setMaxValue(getMaxValue(i,o)).setValue(""+i).onValueChange(function(t){return e.chartOptionsService.setSeriesOption("shadow."+n,t,e.getSelectedSeries())})};t(this.shadowBlurSlider,"blur",0,20),t(this.shadowXOffsetSlider,"xOffset",-10,10),t(this.shadowYOffsetSlider,"yOffset",-10,10)},t.TEMPLATE='<div>\n            <ag-group-component ref="shadowGroup">\n                <ag-color-picker ref="shadowColorPicker"></ag-color-picker>\n                <ag-slider ref="shadowBlurSlider"></ag-slider>\n                <ag-slider ref="shadowXOffsetSlider"></ag-slider>\n                <ag-slider ref="shadowYOffsetSlider"></ag-slider>\n            </ag-group-component>\n        </div>',__decorate$Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("shadowGroup")],t.prototype,"shadowGroup",void 0),__decorate$Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("shadowColorPicker")],t.prototype,"shadowColorPicker",void 0),__decorate$Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("shadowBlurSlider")],t.prototype,"shadowBlurSlider",void 0),__decorate$Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("shadowXOffsetSlider")],t.prototype,"shadowXOffsetSlider",void 0),__decorate$Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("shadowYOffsetSlider")],t.prototype,"shadowYOffsetSlider",void 0),__decorate$Z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$Z([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component);function initFontPanelParams(e){var t=e.labelName,n=e.chartOptionsService,r=e.getSelectedSeries,o=e.seriesOptionLabelProperty,i=function(e){return o+"."+e},a=function(e){var t=i(e);return n.getSeriesOption(t,r())},s=function(e,t){var o=i(e);n.setSeriesOption(o,t,r())},l={family:a("fontFamily"),style:a("fontStyle"),weight:a("fontWeight"),size:a("fontSize"),color:a("color")},c={name:t,enabled:a("enabled")||!1,setEnabled:function(e){return s("enabled",e)},suppressEnabledCheckbox:!1,initialFont:l,setFont:function(e){e.family&&s("fontFamily",e.family),e.weight&&s("fontWeight",e.weight),e.style&&s("fontStyle",e.style),e.size&&s("fontSize",e.size),e.color&&s("color",e.color)}};return c}var __extends$1r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$Y=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},MarkersPanel=function(e){function t(t,n){var r=e.call(this)||this;return r.chartOptionsService=t,r.getSelectedSeries=n,r}return __extends$1r(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE,{seriesMarkersGroup:{cssIdentifier:"charts-format-sub-level",direction:"vertical"}}),this.initMarkers()},t.prototype.initMarkers=function(){var e=this;this.seriesMarkerShapeSelect.addOptions([{value:"square",text:"Square"},{value:"circle",text:"Circle"},{value:"cross",text:"Cross"},{value:"diamond",text:"Diamond"},{value:"plus",text:"Plus"},{value:"triangle",text:"Triangle"},{value:"heart",text:"Heart"}]).setLabel(this.chartTranslationService.translate("shape")).setValue(this.getSeriesOption("marker.shape")).onValueChange(function(t){return e.setSeriesOption("marker.shape",t)});var t=this.chartOptionsService.getChartType(),n=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(["scatter","bubble"],t);this.seriesMarkersGroup.setTitle(this.chartTranslationService.translate("markers")).hideEnabledCheckbox(n).setEnabled(this.getSeriesOption("marker.enabled")||!1).hideOpenCloseIcons(!0).onEnableChange(function(t){return e.setSeriesOption("marker.enabled",t)});var r=function(t,n,r,o){var i=e.getSeriesOption(t);n.setLabel(e.chartTranslationService.translate(r)).setMaxValue(getMaxValue(i,o)).setValue(""+i).setTextFieldWidth(45).onValueChange(function(n){return e.setSeriesOption(t,n)})};"bubble"===t?(r("marker.maxSize",this.seriesMarkerMinSizeSlider,"maxSize",60),r("marker.size",this.seriesMarkerSizeSlider,"minSize",60)):(this.seriesMarkerMinSizeSlider.setDisplayed(!1),r("marker.size",this.seriesMarkerSizeSlider,"size",60)),r("marker.strokeWidth",this.seriesMarkerStrokeWidthSlider,"strokeWidth",10)},t.prototype.getSeriesOption=function(e){return this.chartOptionsService.getSeriesOption(e,this.getSelectedSeries())},t.prototype.setSeriesOption=function(e,t){this.chartOptionsService.setSeriesOption(e,t,this.getSelectedSeries())},t.TEMPLATE='<div>\n            <ag-group-component ref="seriesMarkersGroup">\n                <ag-select ref="seriesMarkerShapeSelect"></ag-select>\n                <ag-slider ref="seriesMarkerMinSizeSlider"></ag-slider>\n                <ag-slider ref="seriesMarkerSizeSlider"></ag-slider>\n                <ag-slider ref="seriesMarkerStrokeWidthSlider"></ag-slider>\n            </ag-group-component>\n        </div>',__decorate$Y([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("seriesMarkersGroup")],t.prototype,"seriesMarkersGroup",void 0),__decorate$Y([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("seriesMarkerShapeSelect")],t.prototype,"seriesMarkerShapeSelect",void 0),__decorate$Y([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("seriesMarkerSizeSlider")],t.prototype,"seriesMarkerSizeSlider",void 0),__decorate$Y([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("seriesMarkerMinSizeSlider")],t.prototype,"seriesMarkerMinSizeSlider",void 0),__decorate$Y([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("seriesMarkerStrokeWidthSlider")],t.prototype,"seriesMarkerStrokeWidthSlider",void 0),__decorate$Y([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$Y([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$X=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},CalloutPanel=function(e){function t(t,n){var r=e.call(this)||this;return r.chartOptionsService=t,r.getSelectedSeries=n,r}return __extends$1q(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE,{calloutGroup:{cssIdentifier:"charts-format-sub-level",direction:"vertical"}}),this.initCalloutOptions()},t.prototype.initCalloutOptions=function(){var e=this;this.calloutGroup.setTitle(this.chartTranslationService.translate("callout")).setEnabled(!0).hideOpenCloseIcons(!0).hideEnabledCheckbox(!0);var t=function(t,n,r,o){var i=e.chartOptionsService.getSeriesOption(t,e.getSelectedSeries());n.setLabel(e.chartTranslationService.translate(r)).setMaxValue(getMaxValue(i,o)).setValue(""+i).setTextFieldWidth(45).onValueChange(function(n){return e.chartOptionsService.setSeriesOption(t,n,e.getSelectedSeries())})};t("calloutLine.length",this.calloutLengthSlider,"length",40),t("calloutLine.strokeWidth",this.calloutStrokeWidthSlider,"strokeWidth",10),t("calloutLabel.offset",this.labelOffsetSlider,"offset",30)},t.TEMPLATE='<div>\n            <ag-group-component ref="calloutGroup">\n                <ag-slider ref="calloutLengthSlider"></ag-slider>\n                <ag-slider ref="calloutStrokeWidthSlider"></ag-slider>\n                <ag-slider ref="labelOffsetSlider"></ag-slider>\n            </ag-group-component>\n        </div>',__decorate$X([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("calloutGroup")],t.prototype,"calloutGroup",void 0),__decorate$X([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("calloutLengthSlider")],t.prototype,"calloutLengthSlider",void 0),__decorate$X([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("calloutStrokeWidthSlider")],t.prototype,"calloutStrokeWidthSlider",void 0),__decorate$X([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("labelOffsetSlider")],t.prototype,"labelOffsetSlider",void 0),__decorate$X([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$X([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$W=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SeriesPanel=function(e){function t(t){var n=t.chartController,r=t.chartOptionsService,o=t.seriesType,i=t.isExpandedOnInit,a=void 0!==i&&i,s=e.call(this)||this;return s.activePanels=[],s.widgetFuncs={lineWidth:function(){return s.initLineWidth()},strokeWidth:function(){return s.initStrokeWidth()},lineDash:function(){return s.initLineDash()},lineOpacity:function(){return s.initLineOpacity()},fillOpacity:function(){return s.initFillOpacity()},markers:function(){return s.initMarkers()},labels:function(){return s.initLabels()},shadow:function(){return s.initShadow()},tooltips:function(){return s.initTooltips()},bins:function(){return s.initBins()}},s.seriesWidgetMappings={area:["tooltips","lineWidth","lineDash","lineOpacity","fillOpacity","markers","labels","shadow"],bar:["tooltips","strokeWidth","lineDash","lineOpacity","fillOpacity","labels","shadow"],column:["tooltips","strokeWidth","lineDash","lineOpacity","fillOpacity","labels","shadow"],line:["tooltips","lineWidth","lineDash","lineOpacity","markers","labels"],histogram:["tooltips","bins","strokeWidth","lineDash","lineOpacity","fillOpacity","labels","shadow"],scatter:["tooltips","markers","labels"],pie:["tooltips","strokeWidth","lineOpacity","fillOpacity","labels","shadow"]},s.chartController=n,s.chartOptionsService=r,s.seriesType=o||s.getChartSeriesType(),s.isExpandedOnInit=a,s}return __extends$1p(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE,{seriesGroup:{cssIdentifier:"charts-format-top-level",direction:"vertical"}}),this.seriesGroup.setTitle(this.translate("series")).toggleGroupExpand(this.isExpandedOnInit).hideEnabledCheckbox(!0),this.addManagedListener(this.chartController,ChartController.EVENT_CHART_SERIES_CHART_TYPE_CHANGED,this.refreshWidgets.bind(this)),this.refreshWidgets()},t.prototype.refreshWidgets=function(){var e=this;this.destroyActivePanels(),this.chartController.getChartProxy().getChart().waitForUpdate().then(function(){e.chartController.isComboChart()&&(e.updateSeriesType(),e.initSeriesSelect()),e.seriesWidgetMappings[e.seriesType].forEach(function(t){return e.widgetFuncs[t]()})})},t.prototype.initSeriesSelect=function(){var e=this,t=this.seriesGroup.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSelect);t.setLabel(this.translate("seriesType")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(100).addOptions(this.getSeriesSelectOptions()).setValue(""+this.seriesType).onValueChange(function(t){e.seriesType=t,e.refreshWidgets()}),this.seriesGroup.addItem(t),this.activePanels.push(t)},t.prototype.initTooltips=function(){var e=this,t=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgToggleButton);t.setLabel(this.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(45).setValue(this.getSeriesOption("tooltip.enabled")||!1).onValueChange(function(t){return e.setSeriesOption("tooltip.enabled",t)}),this.addWidget(t)},t.prototype.initStrokeWidth=function(){var e=this,t=this.getSeriesOption("strokeWidth"),n=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSlider);n.setLabel(this.translate("strokeWidth")).setMaxValue(getMaxValue(t,10)).setTextFieldWidth(45).setValue(""+t).onValueChange(function(t){return e.setSeriesOption("strokeWidth",t)}),this.addWidget(n)},t.prototype.initLineWidth=function(){var e=this,t=this.getSeriesOption("strokeWidth"),n=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSlider);n.setLabel(this.translate("lineWidth")).setMaxValue(getMaxValue(t,10)).setTextFieldWidth(45).setValue(""+t).onValueChange(function(t){return e.setSeriesOption("strokeWidth",t)}),this.addWidget(n)},t.prototype.initLineDash=function(){var e=this,t=this.getSeriesOption("lineDash"),n=t?t[0]:0,r=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSlider);r.setLabel(this.translate("lineDash")).setMaxValue(getMaxValue(n,30)).setTextFieldWidth(45).setValue(""+n).onValueChange(function(t){return e.setSeriesOption("lineDash",[t])}),this.addWidget(r)},t.prototype.initLineOpacity=function(){var e=this,t=this.getSeriesOption("strokeOpacity"),n=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSlider);n.setLabel(this.translate("strokeOpacity")).setStep(.05).setMaxValue(getMaxValue(t,1)).setTextFieldWidth(45).setValue(""+t).onValueChange(function(t){return e.setSeriesOption("strokeOpacity",t)}),this.addWidget(n)},t.prototype.initFillOpacity=function(){var e=this,t=this.getSeriesOption("fillOpacity"),n=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSlider);n.setLabel(this.translate("fillOpacity")).setStep(.05).setMaxValue(getMaxValue(t,1)).setTextFieldWidth(45).setValue(""+t).onValueChange(function(t){return e.setSeriesOption("fillOpacity",t)}),this.addWidget(n)},t.prototype.initLabels=function(){var e=this,t="pie"===this.seriesType?"calloutLabel":"label",n=initFontPanelParams({labelName:"pie"===this.seriesType?this.chartTranslationService.translate("calloutLabels"):this.chartTranslationService.translate("labels"),chartOptionsService:this.chartOptionsService,getSelectedSeries:function(){return e.seriesType},seriesOptionLabelProperty:t}),r=this.createBean(new FontPanel(n));if("pie"===this.seriesType){var o=this.createBean(new CalloutPanel(this.chartOptionsService,function(){return e.seriesType}));r.addCompToPanel(o),this.activePanels.push(o)}if(this.addWidget(r),"pie"===this.seriesType){var i=initFontPanelParams({labelName:this.chartTranslationService.translate("sectorLabels"),chartOptionsService:this.chartOptionsService,getSelectedSeries:function(){return e.seriesType},seriesOptionLabelProperty:"sectorLabel"}),a=this.createBean(new FontPanel(i)),s=this.getSectorLabelPositionRatio();a.addCompToPanel(s),this.addWidget(a)}},t.prototype.getSectorLabelPositionRatio=function(){var e=this,t="sectorLabel.positionRatio",n=this.chartOptionsService.getSeriesOption(t,this.seriesType);return this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSlider).setLabel(this.translate("positionRatio")).setStep(.05).setMaxValue(getMaxValue(n,1)).setTextFieldWidth(45).setValue(""+n).onValueChange(function(n){return e.chartOptionsService.setSeriesOption(t,n,e.seriesType)})},t.prototype.initShadow=function(){var e=this,t=this.createBean(new ShadowPanel(this.chartOptionsService,function(){return e.seriesType}));this.addWidget(t)},t.prototype.initMarkers=function(){var e=this,t=this.createBean(new MarkersPanel(this.chartOptionsService,function(){return e.seriesType}));this.addWidget(t)},t.prototype.initBins=function(){var e=this,t=this.getSeriesOption("bins").length,n=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgSlider);n.setLabel(this.translate("histogramBinCount")).setMinValue(0).setMaxValue(getMaxValue(t,20)).setTextFieldWidth(45).setValue(""+t).onValueChange(function(t){return e.setSeriesOption("binCount",t)}),this.addWidget(n)},t.prototype.addWidget=function(e){this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.getSeriesOption=function(e){return this.chartOptionsService.getSeriesOption(e,this.seriesType)},t.prototype.setSeriesOption=function(e,t){this.chartOptionsService.setSeriesOption(e,t,this.seriesType)},t.prototype.getChartSeriesType=function(){if(0===this.chartController.getSeriesChartTypes().length)return"column";var e=this.chartController.getSeriesChartTypes()[0].chartType;return"columnLineCombo"===e?"column":"areaColumnCombo"===e?"area":getSeriesType(e)},t.prototype.getSeriesSelectOptions=function(){var e=this;this.seriesSelectOptions||(this.seriesSelectOptions=new Map([["area",{value:"area",text:this.translate("area","Area")}],["bar",{value:"bar",text:this.translate("bar","Bar")}],["column",{value:"column",text:this.translate("column","Column")}],["line",{value:"line",text:this.translate("line","Line")}],["scatter",{value:"scatter",text:this.translate("scatter","Scatter")}],["histogram",{value:"histogram",text:this.translate("histogram","Histogram")}],["pie",{value:"pie",text:this.translate("pie","Pie")}]]));var t=new Set;return this.chartController.getActiveSeriesChartTypes().forEach(function(n){var r=getSeriesType(n.chartType);t.add(e.seriesSelectOptions.get(r))}),Array.from(t)},t.prototype.updateSeriesType=function(){var e=this.chartController.getActiveSeriesChartTypes().map(function(e){return getSeriesType(e.chartType)});!e.includes(this.seriesType)&&e.length>0&&(this.seriesType=e[0])},t.prototype.translate=function(e,t){return this.chartTranslationService.translate(e,t)},t.prototype.destroyActivePanels=function(){var e=this;this.activePanels.forEach(function(t){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromParent(t.getGui()),e.destroyBean(t)})},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div>\n            <ag-group-component ref="seriesGroup">\n            </ag-group-component>\n        </div>',__decorate$W([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("seriesGroup")],t.prototype,"seriesGroup",void 0),__decorate$W([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$W([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$V=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};function getMaxValue(e,t){return Math.max(e,t)}var DefaultFormatPanelDef={groups:[{type:"chart"},{type:"legend"},{type:"series"},{type:"axis"},{type:"navigator"}]},FormatPanel=function(e){function t(n,r){var o=e.call(this,t.TEMPLATE)||this;return o.chartController=n,o.chartOptionsService=r,o.panels=[],o.isGroupPanelShownInSeries=function(e,t){return!!["chart","legend","series"].includes(e)||!(!["axis","navigator"].includes(e)||!["bar","column","line","area","scatter","histogram","cartesian"].includes(t))},o}return __extends$1o(t,e),t.prototype.init=function(){this.createPanels(),this.addManagedListener(this.chartController,ChartController.EVENT_CHART_UPDATED,this.createPanels.bind(this))},t.prototype.createPanels=function(){var e,t=this,n=this.chartController.getChartType(),r=this.chartController.isGrouping(),o=getSeriesType(n);n===this.chartType&&r===this.isGrouping||(this.destroyPanels(),null===(e=this.getFormatPanelDef().groups)||void 0===e||e.forEach(function(e){var n=e.type;if(t.isGroupPanelShownInSeries(n,o)){var r={chartController:t.chartController,chartOptionsService:t.chartOptionsService,isExpandedOnInit:e.isOpen,seriesType:o};"chart"===n?t.addComponent(new ChartPanel(r)):"legend"===n?t.addComponent(new LegendPanel(r)):"axis"===n?t.addComponent(new AxisPanel(r)):"series"===n?t.addComponent(new SeriesPanel(r)):"navigator"===n?t.addComponent(new NavigatorPanel(r)):console.warn("AG Grid: invalid charts format panel group name supplied: '"+e.type+"'")}}),this.chartType=n,this.isGrouping=r)},t.prototype.getFormatPanelDef=function(){var e;return(null===(e=this.gridOptionsService.get("chartToolPanelsDef"))||void 0===e?void 0:e.formatPanel)||DefaultFormatPanelDef},t.prototype.addComponent=function(e){this.createBean(e),this.panels.push(e),e.addCssClass("ag-chart-format-section"),this.getGui().appendChild(e.getGui())},t.prototype.destroyPanels=function(){var e=this;this.panels.forEach(function(t){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromParent(t.getGui()),e.destroyBean(t)})},t.prototype.destroy=function(){this.destroyPanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-chart-format-wrapper"></div>',__decorate$V([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1n=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$U=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},MiniChart=function(e){function t(t,n){var r=e.call(this)||this;r.size=58,r.padding=5,r.root=new Group;var o=new Scene({document:window.document,width:r.size,height:r.size});return o.canvas.element.classList.add("ag-chart-mini-thumbnail-canvas"),o.root=r.root,o.container=t,r.scene=o,r.tooltipName=n,r}return __extends$1n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslationService.translate(this.tooltipName),this.scene.render()},__decorate$U([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$U([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$1m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$T=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},MiniChartWithAxes=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.stroke="gray",r.axisOvershoot=3,r}return __extends$1m(t,e),t.prototype.addAxes=function(){var e=this.size,t=this.padding,n=new Line;n.x1=t,n.y1=t,n.x2=t,n.y2=e-t+this.axisOvershoot,n.stroke=this.stroke;var r=new Line;r.x1=t-this.axisOvershoot+1,r.y1=e-t,r.x2=e-t+1,r.y2=e-t,r.stroke=this.stroke;var o=this.root;o.append(n),o.append(r)},__decorate$T([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"addAxes",null),t}(MiniChart);function createColumnRects(e){var t=e.stacked,n=e.size,r=e.padding,o=e.xScalePadding,i=e.xScaleDomain,a=e.yScaleDomain,s=new BandScale$5;s.domain=i,s.range=[r,n-r],s.paddingInner=o,s.paddingOuter=o;var l=new LinearScale$1;l.domain=a,l.range=[n-r,r];var c=function(e,t,n){return e.map(function(e,r){var o=n.convert(e),i=new Rect;return i.x=t.convert(r),i.y=o,i.width=t.bandwidth,i.height=n.convert(0)-o,i.strokeWidth=1,i.crisp=!0,i})};return t?e.data.map(function(e){return c(e,s,l)}):c(e.data,s,l)}function createLinePaths(e,t,n,r){var o=new LinearScale$1;o.domain=[0,4],o.range=[r,n-r];var i=new LinearScale$1;i.domain=[0,10],i.range=[n-r,r];var a=t.map(function(e){var t=new Path;return t.strokeWidth=3,t.lineCap="round",t.fill=void 0,e.forEach(function(e,n){t.path[n>0?"lineTo":"moveTo"](o.convert(n),i.convert(e))}),t}),s=new Group;return s.setClipRectInGroupCoordinateSpace(new BBox(r,r,n-2*r,n-2*r)),s.append(a),e.append(s),a}var __extends$1l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniColumn=function(e){function t(t,n,r){var o=e.call(this,t,"groupedColumnTooltip")||this;o.columnData=[2,3,4];var i=o,a=i.root,s=i.columnData,l=i.size,c=i.padding;return o.columns=createColumnRects({stacked:!1,root:a,data:s,size:l,padding:c,xScaleDomain:[0,1,2],yScaleDomain:[0,4],xScalePadding:.3}),a.append(o.columns),o.updateColors(n,r),o}return __extends$1l(t,e),t.prototype.updateColors=function(e,t){this.columns.forEach(function(n,r){n.fill=e[r],n.stroke=t[r]})},t.chartType="groupedColumn",t}(MiniChartWithAxes),__extends$1k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniStackedColumn=function(e){function t(n,r,o,i,a,s){void 0===i&&(i=t.data),void 0===a&&(a=[0,16]),void 0===s&&(s="stackedColumnTooltip");var l=e.call(this,n,s)||this,c=l,u=c.root,d=c.size,p=c.padding;return l.stackedColumns=createColumnRects({stacked:!0,root:u,data:i,size:d,padding:p,xScaleDomain:[0,1,2],yScaleDomain:a,xScalePadding:.3}),u.append([].concat.apply([],l.stackedColumns)),l.updateColors(r,o),l}return __extends$1k(t,e),t.prototype.updateColors=function(e,t){this.stackedColumns.forEach(function(n,r){return n.forEach(function(n){n.fill=e[r],n.stroke=t[r]})})},t.chartType="stackedColumn",t.data=[[8,12,16],[6,9,12],[2,3,4]],t}(MiniChartWithAxes),__extends$1j=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniNormalizedColumn=function(e){function t(n,r,o){return e.call(this,n,r,o,t.data,[0,10],"normalizedColumnTooltip")||this}return __extends$1j(t,e),t.chartType="normalizedColumn",t.data=[[10,10,10],[6,7,8],[2,4,6]],t}(MiniStackedColumn),__extends$1i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniBar=function(e){function t(t,n,r){var o=e.call(this,t,"groupedBarTooltip")||this,i=o.padding,a=o.size,s=new BandScale$5;s.domain=[0,1,2],s.range=[i,a-i],s.paddingInner=.3,s.paddingOuter=.3;var l=new LinearScale$1;l.domain=[0,4],l.range=[a-i,i];var c=l.convert(0),u=s.bandwidth;return o.bars=[2,3,4].map(function(e,t){var n=new Rect;return n.x=i,n.y=s.convert(t),n.width=c-l.convert(e),n.height=u,n.strokeWidth=1,n.crisp=!0,n}),o.updateColors(n,r),o.root.append(o.bars),o}return __extends$1i(t,e),t.prototype.updateColors=function(e,t){this.bars.forEach(function(n,r){n.fill=e[r],n.stroke=t[r]})},t.chartType="groupedBar",t}(MiniChartWithAxes),__extends$1h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniStackedBar=function(e){function t(n,r,o,i,a,s){void 0===i&&(i=t.data),void 0===a&&(a=[0,16]),void 0===s&&(s="stackedBarTooltip");var l=e.call(this,n,s)||this,c=l.size,u=l.padding,d=new BandScale$5;d.domain=[0,1,2],d.range=[u,c-u],d.paddingInner=.3,d.paddingOuter=.3;var p=new LinearScale$1;p.domain=a,p.range=[c-u,u];var h=p.convert(0),f=d.bandwidth;return l.bars=i.map(function(e){return e.map(function(e,t){var n=new Rect;return n.x=u,n.y=d.convert(t),n.width=h-p.convert(e),n.height=f,n.strokeWidth=1,n.crisp=!0,n})}),l.updateColors(r,o),l.root.append([].concat.apply([],l.bars)),l}return __extends$1h(t,e),t.prototype.updateColors=function(e,t){this.bars.forEach(function(n,r){return n.forEach(function(n){n.fill=e[r],n.stroke=t[r]})})},t.chartType="stackedBar",t.data=[[8,12,16],[6,9,12],[2,3,4]],t}(MiniChartWithAxes),__extends$1g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniNormalizedBar=function(e){function t(n,r,o){return e.call(this,n,r,o,t.data,[0,10],"normalizedBarTooltip")||this}return __extends$1g(t,e),t.chartType="normalizedBar",t.data=[[10,10,10],[6,7,8],[2,4,6]],t}(MiniStackedBar),__extends$1f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__read$j=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},toRadians=toRadians$1,MiniDoughnut=function(e){function t(t,n,r,o,i){void 0===o&&(o=.6),void 0===i&&(i="doughnutTooltip");var a=e.call(this,t,i)||this,s=(a.size-2*a.padding)/2,l=s+a.padding,c=[[toRadians(-90),toRadians(30)],[toRadians(30),toRadians(120)],[toRadians(120),toRadians(180)],[toRadians(180),toRadians(210)],[toRadians(210),toRadians(240)],[toRadians(240),toRadians(270)]];return a.sectors=c.map(function(e){var t=__read$j(e,2),n=t[0],r=t[1],i=new Sector;return i.centerX=l,i.centerY=l,i.innerRadius=s*o,i.outerRadius=s,i.startAngle=n,i.endAngle=r,i.stroke=void 0,i.strokeWidth=1,i}),a.updateColors(n,r),a.root.append(a.sectors),a}return __extends$1f(t,e),t.prototype.updateColors=function(e,t){this.sectors.forEach(function(n,r){n.fill=e[r%e.length],n.stroke=t[r%t.length]})},t.chartType="doughnut",t}(MiniChart),__extends$1e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniPie=function(e){function t(t,n,r){return e.call(this,t,n,r,0,"pieTooltip")||this}return __extends$1e(t,e),t.chartType="pie",t}(MiniDoughnut),__extends$1d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniLine=function(e){function t(t,n,r){var o=e.call(this,t,"lineTooltip")||this;return o.data=[[9,7,8,5,6],[5,6,3,4,1],[1,3,4,8,7]],o.lines=createLinePaths(o.root,o.data,o.size,o.padding),o.updateColors(n,r),o}return __extends$1d(t,e),t.prototype.updateColors=function(e,t){this.lines.forEach(function(t,n){t.stroke=e[n]})},t.chartType="line",t}(MiniChartWithAxes),__extends$1c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__read$i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},MiniScatter=function(e){function t(t,n,r){var o=e.call(this,t,"scatterTooltip")||this,i=o.size,a=o.padding,s=new LinearScale$1;s.domain=[-.5,4],s.range=[2*a,i-a];var l=new LinearScale$1;l.domain=[-.5,3.5],l.range=[i-a,a];var c=[];[[[.3,3],[1.1,.9],[2,.4],[3.4,2.4]],[[0,.3],[1,2],[2.4,1.4],[3,0]]].forEach(function(e){e.forEach(function(e){var t=__read$i(e,2),n=t[0],r=t[1],o=new Arc;o.strokeWidth=1,o.centerX=s.convert(n),o.centerY=l.convert(r),o.radius=2.5,c.push(o)})}),o.points=c,o.updateColors(n,r);var u=new Group;return u.setClipRectInGroupCoordinateSpace(new BBox(a,a,i-2*a,i-2*a)),u.append(o.points),o.root.append(u),o}return __extends$1c(t,e),t.prototype.updateColors=function(e,t){this.points.forEach(function(n,r){n.stroke=t[r%t.length],n.fill=e[r%e.length]})},t.chartType="scatter",t}(MiniChartWithAxes),__extends$1b=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__read$h=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},MiniBubble=function(e){function t(t,n,r){var o=e.call(this,t,"bubbleTooltip")||this,i=o.size,a=o.padding,s=new LinearScale$1;s.domain=[0,1],s.range=[2*a,i-a];var l=new LinearScale$1;l.domain=[0,1],l.range=[i-a,a];var c=[];[[[.1,.3,5],[.5,.4,7],[.2,.8,7]],[[.8,.7,5],[.7,.3,9]]].forEach(function(e){e.forEach(function(e){var t=__read$h(e,3),n=t[0],r=t[1],o=t[2],i=new Arc;i.strokeWidth=1,i.centerX=s.convert(n),i.centerY=l.convert(r),i.radius=o,i.fillOpacity=.7,c.push(i)})}),o.points=c,o.updateColors(n,r);var u=new Group;return u.setClipRectInGroupCoordinateSpace(new BBox(a,a,i-2*a,i-2*a)),u.append(o.points),o.root.append(u),o}return __extends$1b(t,e),t.prototype.updateColors=function(e,t){this.points.forEach(function(n,r){n.stroke=t[r%t.length],n.fill=e[r%e.length]})},t.chartType="bubble",t}(MiniChartWithAxes),__extends$1a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniArea=function(e){function t(n,r,o,i){void 0===i&&(i=t.data);var a=e.call(this,n,"groupedAreaTooltip")||this,s=a.size,l=a.padding,c=new BandScale$5;c.domain=[0,1,2],c.paddingInner=1,c.paddingOuter=0,c.range=[l+.5,s-l-.5];var u=new LinearScale$1;u.domain=[0,6],u.range=[s-l+.5,l];var d=2*i.length-1,p=[],h=u.convert(0);return i.forEach(function(e,t){var n=c.convert(t);e.forEach(function(e,r){var o=u.convert(e),i=p[r]||(p[r]=[]);i[t]={x:n,y:o},i[d-t]={x:n,y:h}})}),a.areas=p.reverse().map(function(e){var t=new Path;t.strokeWidth=1,t.fillOpacity=.7;var n=t.path;return n.clear(),e.forEach(function(e,t){return n[t>0?"lineTo":"moveTo"](e.x,e.y)}),n.closePath(),t}),a.updateColors(r,o),a.root.append(a.areas),a}return __extends$1a(t,e),t.prototype.updateColors=function(e,t){this.areas.forEach(function(n,r){n.fill=e[r],n.stroke=t[r]})},t.chartType="area",t.data=[[1,3,5],[2,6,4],[5,3,1]],t}(MiniChartWithAxes),__extends$19=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniStackedArea=function(e){function t(n,r,o,i,a){void 0===i&&(i=t.data),void 0===a&&(a="stackedAreaTooltip");var s=e.call(this,n,a)||this,l=s.size,c=s.padding,u=new BandScale$5;u.domain=[0,1,2],u.paddingInner=1,u.paddingOuter=0,u.range=[c+.5,l-c-.5];var d=new LinearScale$1;d.domain=[0,16],d.range=[l-c+.5,c+.5];var p=2*i.length-1,h=[];return i.forEach(function(e,t){var n=u.convert(t),r=0;e.forEach(function(e,o){var i=d.convert(r+e),a=h[o]||(h[o]=[]);a[t]={x:n,y:i},a[p-t]={x:n,y:d.convert(r)},r+=e})}),s.areas=h.map(function(e){var t=new Path;t.strokeWidth=1;var n=t.path;return n.clear(),e.forEach(function(e,t){return n[t>0?"lineTo":"moveTo"](e.x,e.y)}),n.closePath(),t}),s.updateColors(r,o),s.root.append(s.areas),s}return __extends$19(t,e),t.prototype.updateColors=function(e,t){this.areas.forEach(function(n,r){n.fill=e[r],n.stroke=t[r]})},t.chartType="stackedArea",t.data=[[2,3,2],[3,6,5],[6,2,2]],t}(MiniChartWithAxes),__extends$18=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniNormalizedArea=function(e){function t(n,r,o,i){return void 0===i&&(i=t.data),e.call(this,n,r,o,i,"normalizedAreaTooltip")||this}return __extends$18(t,e),t.chartType="normalizedArea",t.data=MiniStackedArea.data.map(function(e){var t=e.reduce(function(e,t){return e+t},0);return e.map(function(e){return e/t*16})}),t}(MiniStackedArea),__extends$17=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__read$g=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},MiniHistogram=function(e){function t(t,n,r){var o=e.call(this,t,"histogramTooltip")||this,i=o.padding,a=o.size,s=[2,5,11,13,10,6,1],l=new LinearScale$1;l.domain=[0,s.length],l.range=[i,a-i];var c=new LinearScale$1;c.domain=[0,s.reduce(function(e,t){return Math.max(e,t)},0)],c.range=[a-i,i];var u=c.convert(0);return o.bars=s.map(function(e,t){var n=c.convert(e),r=l.convert(t),o=l.convert(t+1),i=new Rect;return i.x=r,i.y=n,i.width=o-r,i.height=u-n,i.strokeWidth=1,i.crisp=!0,i}),o.updateColors(n,r),o.root.append(o.bars),o}return __extends$17(t,e),t.prototype.updateColors=function(e,t){var n=__read$g(e,1)[0],r=__read$g(t,1)[0];this.bars.forEach(function(e){e.fill=n,e.stroke=r})},t.chartType="histogram",t}(MiniChartWithAxes),__extends$16=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniColumnLineCombo=function(e){function t(t,n,r){var o=e.call(this,t,"columnLineComboTooltip")||this;o.columnData=[3,4],o.lineData=[[5,4,6,5,4]];var i=o,a=i.root,s=i.columnData,l=i.lineData,c=i.size,u=i.padding;return o.columns=createColumnRects({stacked:!1,root:a,data:s,size:c,padding:u,xScaleDomain:[0,1],yScaleDomain:[0,4],xScalePadding:.5}),a.append(o.columns),o.lines=createLinePaths(a,l,c,u),o.updateColors(n,r),o}return __extends$16(t,e),t.prototype.updateColors=function(e,t){this.columns.forEach(function(n,r){n.fill=e[r],n.stroke=t[r]}),this.lines.forEach(function(t,n){t.stroke=e[n+2]})},t.chartType="columnLineCombo",t}(MiniChartWithAxes),__extends$15=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniAreaColumnCombo=function(e){function t(t,n,r){var o=e.call(this,t,"areaColumnComboTooltip")||this;o.columnData=[3,4.5],o.areaData=[[5,4,6,5,4]];var i=o,a=i.root,s=i.columnData,l=i.areaData,c=i.size,u=i.padding;o.columns=createColumnRects({stacked:!1,root:a,data:s,size:c,padding:u,xScaleDomain:[0,1],yScaleDomain:[0,6],xScalePadding:.5});var d=new BandScale$5;d.range=[u,c-u],d.domain=[0,1,2,3,4],d.paddingInner=1,d.paddingOuter=0;var p=new LinearScale$1;p.range=[c-u,u],p.domain=[0,6];var h=[],f=p.convert(0),g=d.convert(0);return l.forEach(function(e,t){var n=h[t]||(h[t]=[]);e.forEach(function(e,t){var r=e,o=t,i=d.convert(o),a=p.convert(r);n[t]={x:i,y:a}});var r=d.convert(e.length-1);h[t].push({x:r,y:f},{x:g,y:f})}),o.areas=h.map(function(e){var t=new Path;t.strokeWidth=1,t.fillOpacity=.8;var n=t.path;return e.forEach(function(e,t){return n[t>0?"lineTo":"moveTo"](e.x,e.y)}),t}),a.append(o.areas),a.append([].concat.apply([],o.columns)),o.updateColors(n,r),o}return __extends$15(t,e),t.prototype.updateColors=function(e,t){this.areas.forEach(function(n,r){n.fill=e[r],n.stroke=t[r]}),this.columns.forEach(function(n,r){n.fill=e[r+1],n.stroke=t[r+1]})},t.chartType="areaColumnCombo",t}(MiniChartWithAxes),__extends$14=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MiniCustomCombo=function(e){function t(t,n,r){var o=e.call(this,t,"customComboTooltip")||this;o.columnData=[3,4],o.lineData=[[5,4,6,5,4]];var i=o,a=i.root,s=i.columnData,l=i.lineData,c=i.size,u=i.padding;o.columns=createColumnRects({stacked:!1,root:a,data:s,size:c,padding:u,xScaleDomain:[0,1],yScaleDomain:[0,4],xScalePadding:.5}),a.append(o.columns),o.lines=createLinePaths(a,l,c,u);var d="grey",p=new Line;p.x1=u,p.y1=u,p.x2=u,p.y2=c-u+3,p.stroke=d;var h=new Line;h.x1=u-3+1,h.y1=c-u,h.x2=c-u+1,h.y2=c-u,h.stroke=d;var f=new Path;return o.buildPenIconPath(f),f.fill="whitesmoke",f.stroke="darkslategrey",f.strokeWidth=1,a.append([h,p,f]),o.updateColors(n,r),o}return __extends$14(t,e),t.prototype.updateColors=function(e,t){this.columns.forEach(function(n,r){n.fill=e[r],n.stroke=t[r]}),this.lines.forEach(function(t,n){t.stroke=e[n+2]})},t.prototype.buildPenIconPath=function(e){var t=e.path;t.moveTo(25.76,43.46),t.lineTo(31.27,48.53),t.moveTo(49.86,22),t.lineTo(49.86,22),t.cubicCurveTo(49.01994659053345,21.317514933510974,47.89593834348529,21.09645997825817,46.86,21.41),t.lineTo(46.86,21.41),t.cubicCurveTo(45.55460035985361,21.77260167850787,44.38777081121966,22.517979360321792,43.51,23.55),t.lineTo(25.51,43.8),t.lineTo(25.43,43.89),t.lineTo(23.01,51.89),t.lineTo(22.83,52.46),t.lineTo(31.02,48.86),t.lineTo(49.02,28.52),t.lineTo(49.02,28.52),t.cubicCurveTo(49.940716461596224,27.521914221246085,50.54302631059587,26.2720342455763,50.75,24.93),t.lineTo(50.75,24.93),t.cubicCurveTo(50.95363374988308,23.866379846512814,50.62080640232334,22.77066734274871,49.86,22),t.closePath(),t.moveTo(41.76,25.5),t.lineTo(47.34,30.5),t.moveTo(40.74,26.65),t.lineTo(46.25,31.71)},t.chartType="customCombo",t}(MiniChart),__extends$13=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$j=function(){return __assign$j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$j.apply(this,arguments)},__decorate$S=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},miniChartMapping={columnGroup:{column:MiniColumn,stackedColumn:MiniStackedColumn,normalizedColumn:MiniNormalizedColumn},barGroup:{bar:MiniBar,stackedBar:MiniStackedBar,normalizedBar:MiniNormalizedBar},pieGroup:{pie:MiniPie,doughnut:MiniDoughnut},lineGroup:{line:MiniLine},scatterGroup:{scatter:MiniScatter,bubble:MiniBubble},areaGroup:{area:MiniArea,stackedArea:MiniStackedArea,normalizedArea:MiniNormalizedArea},histogramGroup:{histogram:MiniHistogram},combinationGroup:{columnLineCombo:MiniColumnLineCombo,areaColumnCombo:MiniAreaColumnCombo,customCombo:MiniCustomCombo}},MiniChartsContainer=function(e){function t(n,r,o,i){void 0===i&&(i=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_CHART_GROUPS);var a=e.call(this,t.TEMPLATE)||this;return a.wrappers={},a.chartController=n,a.fills=r,a.strokes=o,a.chartGroups=__assign$j({},i),a}return __extends$13(t,e),t.prototype.init=function(){var e=this;!this.chartController.customComboExists()&&this.chartGroups.combinationGroup&&(this.chartGroups.combinationGroup=this.chartGroups.combinationGroup.filter(function(e){return"customCombo"!==e}));var t=this.getGui();Object.keys(this.chartGroups).forEach(function(n){var r=e.chartGroups[n],o=e.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgGroupComponent({title:e.chartTranslationService.translate(n),suppressEnabledCheckbox:!0,enabled:!0,suppressOpenCloseIcons:!0,cssIdentifier:"charts-settings",direction:"horizontal"}));r.forEach(function(t){var r,i=null===(r=miniChartMapping[n])||void 0===r?void 0:r[t];if(i){var a=document.createElement("div");a.classList.add("ag-chart-mini-thumbnail");var s=i.chartType;e.addManagedListener(a,"click",function(){e.chartController.setChartType(s),e.updateSelectedMiniChart()}),e.wrappers[s]=a,e.createBean(new i(a,e.fills,e.strokes)),o.addItem(a)}else miniChartMapping[n]?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid - invalid chartGroupsDef config '"+n+"."+t+"'")},"invalid_chartGroupsDef"+t+"_"+n):ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid - invalid chartGroupsDef config '"+n+"'")},"invalid_chartGroupsDef"+n)}),t.appendChild(o.getGui())}),this.updateSelectedMiniChart()},t.prototype.updateSelectedMiniChart=function(){var e=this.chartController.getChartType();for(var t in this.wrappers){var n=t===e;this.wrappers[t].classList.toggle("ag-selected",n)}},t.TEMPLATE='<div class="ag-chart-settings-mini-wrapper"></div>',__decorate$S([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$S([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$12=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$R=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ChartSettingsPanel=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.miniChartsContainers=[],r.cardItems=[],r.activePaletteIndex=0,r.palettes=[],r.themes=[],r.chartController=n,r}return __extends$12(t,e),t.prototype.postConstruct=function(){var e=this;this.resetPalettes(),this.ePrevBtn.insertAdjacentElement("afterbegin",ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("previous",this.gridOptionsService)),this.eNextBtn.insertAdjacentElement("afterbegin",ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("next",this.gridOptionsService)),this.addManagedListener(this.ePrevBtn,"click",function(){return e.setActivePalette(e.getPrev(),"left")}),this.addManagedListener(this.eNextBtn,"click",function(){return e.setActivePalette(e.getNext(),"right")}),this.addManagedListener(this.chartController,ChartController.EVENT_CHART_TYPE_CHANGED,function(){return e.resetPalettes(!0)}),this.scrollSelectedIntoView()},t.prototype.scrollSelectedIntoView=function(){var e=this;setTimeout(function(){var t=e.miniChartsContainers.find(function(e){return!e.getGui().classList.contains("ag-hidden")}).getGui().querySelector(".ag-selected");if(t){var n=t.offsetParent;n&&e.eMiniChartsContainer.scrollTo(0,n.offsetTop)}},250)},t.prototype.resetPalettes=function(e){var t,n,r=this,o=this.chartController.getPalettes(),i=null===(n=null===(t=this.gridOptionsService.get("chartToolPanelsDef"))||void 0===t?void 0:t.settingsPanel)||void 0===n?void 0:n.chartGroupsDef;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.shallowCompare(o,this.palettes)&&!e||this.isAnimating||(this.palettes=o,this.themes=this.chartController.getThemes(),this.activePaletteIndex=this.themes.findIndex(function(e){return e===r.chartController.getChartThemeName()}),this.cardItems=[],ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.eCardSelector),this.destroyMiniCharts(),this.palettes.forEach(function(e,t){var n=r.activePaletteIndex===t,o=e.fills,a=e.strokes,s=r.createBean(new MiniChartsContainer(r.chartController,o,a,i));r.miniChartsContainers.push(s),r.eMiniChartsContainer.appendChild(s.getGui()),r.addCardLink(t),n?s.updateSelectedMiniChart():s.setDisplayed(!1)}),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eNavBar,this.palettes.length>1),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.radioCssClass(this.cardItems[this.activePaletteIndex],"ag-selected","ag-not-selected"))},t.prototype.addCardLink=function(e){var t=this,n=document.createElement("div");n.classList.add("ag-chart-settings-card-item"),this.addManagedListener(n,"click",function(){t.setActivePalette(e,e<t.activePaletteIndex?"left":"right")}),this.eCardSelector.appendChild(n),this.cardItems.push(n)},t.prototype.getPrev=function(){var e=this.activePaletteIndex-1;return e<0&&(e=this.palettes.length-1),e},t.prototype.getNext=function(){var e=this.activePaletteIndex+1;return e>=this.palettes.length&&(e=0),e},t.prototype.setActivePalette=function(e,t){var n=this;if(!this.isAnimating&&this.activePaletteIndex!==e){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.radioCssClass(this.cardItems[e],"ag-selected","ag-not-selected");var r=this.miniChartsContainers[this.activePaletteIndex],o=r.getGui(),i=this.miniChartsContainers[e],a=i.getGui();r.updateSelectedMiniChart(),i.updateSelectedMiniChart();var s="left"===t?-1:1,l=a.style.left=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.getAbsoluteWidth(this.getGui())*s+"px";this.activePaletteIndex=e,this.isAnimating=!0;var c="ag-animating";i.setDisplayed(!0),r.addCssClass(c),i.addCssClass(c),this.chartController.setChartThemeName(this.themes[e]),window.setTimeout(function(){o.style.left=-parseFloat(l)+"px",a.style.left="0px"},0),window.setTimeout(function(){n.isAnimating=!1,r.removeCssClass(c),i.removeCssClass(c),r.setDisplayed(!1)},300)}},t.prototype.destroyMiniCharts=function(){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(this.eMiniChartsContainer),this.miniChartsContainers=this.destroyBeans(this.miniChartsContainers)},t.prototype.destroy=function(){this.destroyMiniCharts(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-chart-settings-wrapper">\n            <div ref="eMiniChartsContainer" class="ag-chart-settings-mini-charts-container ag-scrollable-container"></div>\n            <div ref="eNavBar" class="ag-chart-settings-nav-bar">\n                <div ref="ePrevBtn" class="ag-chart-settings-prev">\n                    <button type="button" class="ag-chart-settings-prev-button"></button>\n                </div>\n                <div ref="eCardSelector" class="ag-chart-settings-card-selector"></div>\n                <div ref="eNextBtn" class="ag-chart-settings-next">\n                    <button type="button" class="ag-chart-settings-next-button"></button>\n                </div>\n            </div>\n        </div>',__decorate$R([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("resizeObserverService")],t.prototype,"resizeObserverService",void 0),__decorate$R([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eMiniChartsContainer")],t.prototype,"eMiniChartsContainer",void 0),__decorate$R([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eNavBar")],t.prototype,"eNavBar",void 0),__decorate$R([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eCardSelector")],t.prototype,"eCardSelector",void 0),__decorate$R([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("ePrevBtn")],t.prototype,"ePrevBtn",void 0),__decorate$R([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eNextBtn")],t.prototype,"eNextBtn",void 0),__decorate$R([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$11=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$Q=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},TabbedChartMenu=function(e){function t(t){var n=e.call(this)||this;n.tabs=[];var r=t.controller,o=t.panels,i=t.chartOptionsService;return n.chartController=r,n.chartOptionsService=i,n.panels=o,n}return __extends$11(t,e),t.prototype.init=function(){var e=this;this.panels.forEach(function(t){var n=t.replace("chart","").toLowerCase(),r=e.createTab(t,n,e.getPanelClass(n)),o=r.comp,i=r.tab;e.tabs.push(i),e.addDestroyFunc(function(){return e.destroyBean(o)})}),this.tabbedLayout=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TabbedLayout({items:this.tabs,cssClass:"ag-chart-tabbed-menu",keepScrollPosition:!0}),this.getContext().createBean(this.tabbedLayout)},t.prototype.createTab=function(e,t,n){var r=document.createElement("div");r.classList.add("ag-chart-tab","ag-chart-"+t);var o=new n(this.chartController,this.chartOptionsService);this.getContext().createBean(o),r.appendChild(o.getGui());var i=document.createElement("div"),a=this.chartTranslationService.translate(t);return i.innerText=a,{comp:o,tab:{title:i,titleLabel:a,bodyPromise:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.resolve(r),getScrollableContainer:function(){return r.querySelector(".ag-scrollable-container")||r},name:e}}},t.prototype.showTab=function(e){var t=this.tabs[e];this.tabbedLayout.showItem(t)},t.prototype.getGui=function(){return this.tabbedLayout&&this.tabbedLayout.getGui()},t.prototype.destroy=function(){this.parentComponent&&this.parentComponent.isAlive()&&this.destroyBean(this.parentComponent),e.prototype.destroy.call(this)},t.prototype.getPanelClass=function(e){switch(e){case t.TAB_DATA:return ChartDataPanel;case t.TAB_FORMAT:return FormatPanel;default:return ChartSettingsPanel}},t.TAB_DATA="data",t.TAB_FORMAT="format",__decorate$Q([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$Q([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$10=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$P=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$f=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$8=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$f(arguments[t]));return e},ChartMenu=function(e){function t(n,r,o,i){var a=e.call(this,t.TEMPLATE)||this;return a.eChartContainer=n,a.eMenuPanelContainer=r,a.chartController=o,a.chartOptionsService=i,a.buttons={chartSettings:["menu",function(){return a.showMenu(a.defaultPanel)}],chartData:["menu",function(){return a.showMenu("chartData")}],chartFormat:["menu",function(){return a.showMenu("chartFormat")}],chartLink:["linked",function(e){return a.toggleDetached(e)}],chartUnlink:["unlinked",function(e){return a.toggleDetached(e)}],chartDownload:["save",function(){return a.saveChart()}]},a.panels=[],a.menuVisible=!1,a}return __extends$10(t,e),t.prototype.postConstruct=function(){var e=this;this.createButtons(),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_CHART_CREATED,function(t){var n;t.chartId===e.chartController.getChartId()&&Boolean(null===(n=e.gridOptionsService.get("chartToolPanelsDef"))||void 0===n?void 0:n.defaultToolPanel)&&e.showMenu(e.defaultPanel,!1)}),this.refreshMenuClasses(),!this.gridOptionsService.is("suppressChartToolPanelsButton")&&this.panels.length>0&&(this.getGui().classList.add("ag-chart-tool-panel-button-enable"),this.addManagedListener(this.eHideButton,"click",this.toggleMenu.bind(this)))},t.prototype.isVisible=function(){return this.menuVisible},t.prototype.getExtraPaddingDirections=function(){var e=this,t=[];return["chartLink","chartUnlink","chartDownload"].some(function(t){return e.chartToolbarOptions.includes(t)})&&t.push("top"),["chartSettings","chartData","chartFormat"].some(function(t){return e.chartToolbarOptions.includes(t)})&&t.push(this.gridOptionsService.is("enableRtl")?"left":"right"),t},t.prototype.getToolbarOptions=function(){var e,t,n,r=this;if(Boolean(this.gridOptionsService.get("chartToolPanelsDef"))){var o=[this.chartController.isChartLinked()?"chartLink":"chartUnlink","chartDownload"],i={defaultItems:o},a=(c=this.gridOptionsService.getCallback("getChartToolbarItems"))?c(i).filter(function(e){if(!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CHART_TOOLBAR_ALLOW_LIST.includes(e)){var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CHART_TOOL_PANEL_ALLOW_LIST.includes(e)?"AG Grid: '"+e+"' is a Chart Tool Panel option and will be ignored since 'chartToolPanelsDef' is used. Please use 'chartToolPanelsDef.panels' grid option instead":"AG Grid: '"+e+"' is not a valid Chart Toolbar Option";return console.warn(t),!1}return!0}):o,s=null===(t=null===(e=this.gridOptionsService.get("chartToolPanelsDef"))||void 0===e?void 0:e.panels)||void 0===t?void 0:t.map(function(e){var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CHART_TOOL_PANEL_MENU_OPTIONS[e];return t||console.warn("AG Grid - invalid panel in chartToolPanelsDef.panels: '"+e+"'"),t}).filter(function(e){return Boolean(e)});this.panels=s||Object.values(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CHART_TOOL_PANEL_MENU_OPTIONS),this.chartController.isPivotChart()&&(this.panels=this.panels.filter(function(e){return"chartData"!==e}));var l=null===(n=this.gridOptionsService.get("chartToolPanelsDef"))||void 0===n?void 0:n.defaultToolPanel;return this.defaultPanel=l&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CHART_TOOL_PANEL_MENU_OPTIONS[l]||this.panels[0],this.panels.length>0?__spread$8([this.panels[0]],a):a}var c,u=["chartSettings","chartData","chartFormat",this.chartController.isChartLinked()?"chartLink":"chartUnlink","chartDownload"];if(c=this.gridOptionsService.getCallback("getChartToolbarItems")){var d=this.gridOptionsService.is("suppressChartToolPanelsButton");u=c(i={defaultItems:d?u:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CHART_TOOLBAR_ALLOW_LIST}).filter(function(e){if(!r.buttons[e])return console.warn("AG Grid: '"+e+"' is not a valid Chart Toolbar Option"),!1;if(!d&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CHART_TOOL_PANEL_ALLOW_LIST.includes(e)){var t="AG Grid: '"+e+"' is a Chart Tool Panel option and will be ignored. Please use 'chartToolPanelsDef.panels' grid option instead";return console.warn(t),!1}return!0}),d||(u=u.concat(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CHART_TOOL_PANEL_ALLOW_LIST))}this.chartController.isPivotChart()&&(u=u.filter(function(e){return"chartData"!==e}));var p=["chartUnlink","chartLink","chartDownload"];return this.panels=u.filter(function(e){return-1===p.indexOf(e)}),this.defaultPanel=this.panels[0],u.filter(function(e){return-1!==p.indexOf(e)||r.panels.length&&e===r.panels[0]})},t.prototype.toggleDetached=function(e){var t=e.target,n=t.classList.contains("ag-icon-linked");t.classList.toggle("ag-icon-linked",!n),t.classList.toggle("ag-icon-unlinked",n);var r=n?"chartUnlinkToolbarTooltip":"chartLinkToolbarTooltip",o=this.chartTranslationService.translate(r);o&&(t.title=o),this.chartController.detachChartRange()},t.prototype.createButtons=function(){var e=this;this.chartToolbarOptions=this.getToolbarOptions();var t=this.eMenu;this.chartToolbarOptions.forEach(function(n){var r=e.buttons[n],o=__read$f(r,2),i=o[0],a=o[1],s=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan(i,e.gridOptionsService,void 0,!0);s.classList.add("ag-chart-menu-icon");var l=e.chartTranslationService.translate(n+"ToolbarTooltip");l&&s instanceof HTMLElement&&(s.title=l),e.addManagedListener(s,"click",a),t.appendChild(s)})},t.prototype.saveChart=function(){var e={type:t.EVENT_DOWNLOAD_CHART};this.dispatchEvent(e)},t.prototype.createMenuPanel=function(e){var t=this,n=this.environment.chartMenuPanelWidth(),r=this.menuPanel=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPanel({minWidth:n,width:n,height:"100%",closable:!0,hideTitleBar:!0,cssIdentifier:"chart-menu"}));return r.setParentComponent(this),this.eMenuPanelContainer.appendChild(r.getGui()),this.tabbedMenu=this.createBean(new TabbedChartMenu({controller:this.chartController,type:this.chartController.getChartType(),panels:this.panels,chartOptionsService:this.chartOptionsService})),this.addManagedListener(r,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component.EVENT_DESTROYED,function(){return t.destroyBean(t.tabbedMenu)}),new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise(function(n){window.setTimeout(function(){r.setBodyComponent(t.tabbedMenu),t.tabbedMenu.showTab(e),n(r),t.addManagedListener(t.eChartContainer,"click",function(e){t.getGui().contains(e.target)||t.menuVisible&&t.hideMenu()})},100)})},t.prototype.showContainer=function(){this.menuPanel&&(this.menuVisible=!0,this.showParent(this.menuPanel.getWidth()),this.refreshMenuClasses())},t.prototype.toggleMenu=function(){this.menuVisible?this.hideMenu():this.showMenu()},t.prototype.showMenu=function(e,t){var n=this;if(void 0===t&&(t=!0),t||this.eMenuPanelContainer.classList.add("ag-no-transition"),this.menuPanel&&!e)this.showContainer();else{var r=e||this.defaultPanel,o=this.panels.indexOf(r);o<0&&(console.warn("AG Grid: '"+e+"' is not a valid Chart Tool Panel name"),o=this.panels.indexOf(this.defaultPanel)),this.menuPanel?(this.tabbedMenu.showTab(o),this.showContainer()):this.createMenuPanel(o).then(this.showContainer.bind(this))}t||setTimeout(function(){n.isAlive()&&n.eMenuPanelContainer.classList.remove("ag-no-transition")},500)},t.prototype.hideMenu=function(){var e=this;this.hideParent(),window.setTimeout(function(){e.menuVisible=!1,e.refreshMenuClasses()},500)},t.prototype.refreshMenuClasses=function(){this.eChartContainer.classList.toggle("ag-chart-menu-visible",this.menuVisible),this.eChartContainer.classList.toggle("ag-chart-menu-hidden",!this.menuVisible),this.gridOptionsService.is("suppressChartToolPanelsButton")||(this.eHideButtonIcon.classList.toggle("ag-icon-contracted",this.menuVisible),this.eHideButtonIcon.classList.toggle("ag-icon-expanded",!this.menuVisible))},t.prototype.showParent=function(e){this.eMenuPanelContainer.style.minWidth=e+"px"},t.prototype.hideParent=function(){this.eMenuPanelContainer.style.minWidth="0"},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.menuPanel&&this.menuPanel.isAlive()&&this.destroyBean(this.menuPanel),this.tabbedMenu&&this.tabbedMenu.isAlive()&&this.destroyBean(this.tabbedMenu)},t.EVENT_DOWNLOAD_CHART="downloadChart",t.TEMPLATE='<div>\n        <div class="ag-chart-menu" ref="eMenu"></div>\n        <button class="ag-chart-menu-close" ref="eHideButton">\n            <span class="ag-icon ag-icon-contracted" ref="eHideButtonIcon"></span>\n        </button>\n    </div>',__decorate$P([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$P([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eMenu")],t.prototype,"eMenu",void 0),__decorate$P([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eHideButton")],t.prototype,"eHideButton",void 0),__decorate$P([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eHideButtonIcon")],t.prototype,"eHideButtonIcon",void 0),__decorate$P([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$i=function(){return __assign$i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$i.apply(this,arguments)},__decorate$O=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__values$6=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},TitleEdit=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.chartMenu=n,r.destroyableChartListeners=[],r.editing=!1,r}return __extends$$(t,e),t.prototype.init=function(){var e=this;this.addManagedListener(this.getGui(),"keypress",function(t){e.editing&&"Enter"===t.key&&!t.shiftKey&&(e.handleEndEditing(),t.preventDefault())}),this.addManagedListener(this.getGui(),"input",function(){e.editing&&e.updateHeight()}),this.addManagedListener(this.getGui(),"blur",function(){return e.endEditing()})},t.prototype.refreshTitle=function(e,t){var n,r,o=this;this.chartController=e,this.chartOptionsService=t;try{for(var i=__values$6(this.destroyableChartListeners),a=i.next();!a.done;a=i.next())(0,a.value)()}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}this.destroyableChartListeners=[];var s=this.chartController.getChartProxy().getChart(),l=s.scene.canvas.element,c=this.addManagedListener(l,"dblclick",function(e){var t=s.title;if(t&&t.node.containsPoint(e.offsetX,e.offsetY)){var n=t.node.computeBBox(),r=t.node.inverseTransformPoint(n.x,n.y);o.startEditing(__assign$i(__assign$i({},n),r),l.width)}}),u=!1,d=this.addManagedListener(l,"mousemove",function(e){var t=s.title,n=!!(t&&t.enabled&&t.node.containsPoint(e.offsetX,e.offsetY));u!==n&&(l.style.cursor=n?"pointer":""),u=n});this.destroyableChartListeners=[c,d]},t.prototype.startEditing=function(e,t){if(!(this.chartMenu&&this.chartMenu.isVisible()||this.editing)){this.editing=!0;var n=Math.max(Math.min(e.width+20,t),300),r=this.getGui();r.classList.add("currently-editing");var o=r.style;o.fontFamily=this.chartOptionsService.getChartOption("title.fontFamily"),o.fontWeight=this.chartOptionsService.getChartOption("title.fontWeight"),o.fontStyle=this.chartOptionsService.getChartOption("title.fontStyle"),o.fontSize=this.chartOptionsService.getChartOption("title.fontSize")+"px",o.color=this.chartOptionsService.getChartOption("title.color");var i=this.chartOptionsService.getChartOption("title.text"),a=i===this.chartTranslationService.translate("titlePlaceholder");r.value=a?"":i;var s=i.split(/\r?\n/g).length;o.left=Math.round(e.x+e.width/2-n/2-1)+"px",o.top=Math.round(e.y+e.height/2-s*this.getLineHeight()/2-2)+"px",o.width=Math.round(n)+"px",o.lineHeight=this.getLineHeight()+"px",this.updateHeight(),r.focus()}},t.prototype.updateHeight=function(){var e=this.getGui(),t=this.chartOptionsService.getChartOption("title.text").split(/\r?\n/g).length,n=e.value.split(/\r?\n/g).length;e.style.height=Math.round(Math.max(t,n)*this.getLineHeight())+4+"px"},t.prototype.getLineHeight=function(){var e=this.chartOptionsService.getChartOption("title.lineHeight");return e?parseInt(e):Math.round(1.2*parseInt(this.chartOptionsService.getChartOption("title.fontSize")))},t.prototype.handleEndEditing=function(){var e=this,t=this.chartOptionsService.getChartOption("title.color");this.chartOptionsService.setChartOption("title.color","rgba(0, 0, 0, 0)"),this.chartOptionsService.awaitChartOptionUpdate(function(){return e.endEditing()}),this.chartOptionsService.awaitChartOptionUpdate(function(){e.chartOptionsService.setChartOption("title.color",t)})},t.prototype.endEditing=function(){var e=this;if(this.editing){this.editing=!1;var t=this.getGui().value;t&&""!==t.trim()?(this.chartOptionsService.setChartOption("title.text",t),this.chartOptionsService.setChartOption("title.enabled",!0)):(this.chartOptionsService.setChartOption("title.text",""),this.chartOptionsService.setChartOption("title.enabled",!1)),this.getGui().classList.remove("currently-editing"),this.chartOptionsService.awaitChartOptionUpdate(function(){e.eventService.dispatchEvent({type:"chartTitleEdit"})})}},t.TEMPLATE='<textarea\n             class="ag-chart-title-edit"\n             style="padding:0; border:none; border-radius: 0; min-height: 0; text-align: center; resize: none;" />\n        ',__decorate$O([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$O([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component);function deproxy(e){return null!=e.chart?e.chart:e}var __assign$h=function(){return __assign$h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$h.apply(this,arguments)},ChartProxy=function(){function e(e){this.chartProxyParams=e,this.clearThemeOverrides=!1,this.chart=e.chartInstance,this.chartType=e.chartType,this.crossFiltering=e.crossFiltering,this.crossFilterCallback=e.crossFilterCallback,this.standaloneChartType=getSeriesType(this.chartType),null==this.chart?this.chart=AgChart.create(this.getCommonChartOptions()):this.clearThemeOverrides=!0}return e.prototype.getChart=function(){return deproxy(this.chart)},e.prototype.getChartRef=function(){return this.chart},e.prototype.downloadChart=function(e,t,n){var r=this.chart,o=deproxy(r),i=t||(o.title?o.title.text:"chart"),a=e||{},s=a.width,l=a.height;AgChart.download(r,{width:s,height:l,fileName:i,fileFormat:n})},e.prototype.getChartImageDataURL=function(e){return this.getChart().scene.getDataURL(e)},e.prototype.getChartOptions=function(){return this.chart.getOptions()},e.prototype.getChartThemeOverrides=function(){var e;return null!==(e=this.getChartOptions().theme.overrides)&&void 0!==e?e:{}},e.prototype.getChartPalette=function(){return getChartTheme(this.getChartOptions().theme).palette},e.prototype.setPaired=function(e){var t,n=getSeriesType(this.chartProxyParams.chartType);AgChart.updateDelta(this.chart,{theme:{overrides:(t={},t[n]={paired:e},t)}})},e.prototype.isPaired=function(){var e=getSeriesType(this.chartProxyParams.chartType);return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.get(this.getChartThemeOverrides(),e+".paired",!0)},e.prototype.lookupCustomChartTheme=function(e){return lookupCustomChartTheme(this.chartProxyParams,e)},e.prototype.transformData=function(e,t,n){return n?e.map(function(e,n){var r=e[t],o=r&&r.toString?r.toString():"",i=__assign$h({},e);return i[t]={id:n,value:r,toString:function(){return o}},i}):e},e.prototype.getCommonChartOptions=function(){var e,t,n=this.clearThemeOverrides?{}:null!==(t=null===(e=this.chart)||void 0===e?void 0:e.getOptions())&&void 0!==t?t:{},r=null!=this.chart?{overrides:this.getActiveFormattingPanelOverrides()}:{};return this.clearThemeOverrides=!1,__assign$h(__assign$h({},n),{theme:__assign$h(__assign$h({},createAgChartTheme(this.chartProxyParams,this)),r),container:this.chartProxyParams.parentElement,mode:"integrated"})},e.prototype.getActiveFormattingPanelOverrides=function(){var e,t;if(this.clearThemeOverrides)return{};var n=null===(e=this.chart)||void 0===e?void 0:e.getOptions().theme;return null!==(t=null==n?void 0:n.overrides)&&void 0!==t?t:{}},e.prototype.destroy=function(e){var t=(void 0===e?{}:e).keepChartInstance;if(void 0!==t&&t)return this.chart;this.destroyChart()},e.prototype.destroyChart=function(){this.chart&&(this.chart.destroy(),this.chart=void 0)},e}(),__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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$g=function(){return __assign$g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$g.apply(this,arguments)},CartesianChartProxy=function(e){function t(t){var n=e.call(this,t)||this;return n.crossFilteringAllPoints=new Set,n.crossFilteringSelectedPoints=[],n}return __extends$_(t,e),t.prototype.update=function(e){var t=this.getAxes(e),n=__assign$g(__assign$g({},this.getCommonChartOptions()),{data:this.getData(e,t),axes:t,series:this.getSeries(e)});AgChart.update(this.getChartRef(),n)},t.prototype.getData=function(e,t){var n,r=["area","line"].includes(this.standaloneChartType),o="bar"===this.standaloneChartType?"left":"bottom",i="category"===(null===(n=t.find(function(e){return e.position===o}))||void 0===n?void 0:n.type);return this.crossFiltering&&r?this.getCrossFilterData(e):this.getDataTransformedData(e,i)},t.prototype.getDataTransformedData=function(e,t){return this.transformData(e.data,e.category.id,t)},t.prototype.getXAxisType=function(e){return e.grouping?"groupedCategory":t.isTimeAxis(e)?"time":"category"},t.isTimeAxis=function(e){if(e.category&&e.category.chartDataType)return"time"===e.category.chartDataType;var t=e.data[0];return(t&&t[e.category.id])instanceof Date},t.prototype.crossFilteringReset=function(){this.crossFilteringSelectedPoints=[],this.crossFilteringAllPoints.clear()},t.prototype.crossFilteringPointSelected=function(e){return 0==this.crossFilteringSelectedPoints.length||this.crossFilteringSelectedPoints.includes(e)},t.prototype.crossFilteringDeselectedPoints=function(){return this.crossFilteringSelectedPoints.length>0&&this.crossFilteringAllPoints.size!==this.crossFilteringSelectedPoints.length},t.prototype.extractLineAreaCrossFilterSeries=function(e,t){var n=this;return e.map(function(e){var r;return e.yKey=(r=e.yKey,"area"===n.standaloneChartType?t.getCrossFilteringContext().lastSelectedChartId===t.chartId?r+"-total":r:r+"-total"),e.listeners={nodeClick:function(t){var r=t.datum[e.xKey],o=t.event.metaKey||t.event.ctrlKey;n.crossFilteringAddSelectedPoint(o,r),n.crossFilterCallback(t)}},e.marker={formatter:function(e){var r=e.datum[t.category.id];return{fill:e.highlighted?"yellow":e.fill,size:e.highlighted?14:n.crossFilteringPointSelected(r)?8:0}}},"area"===n.standaloneChartType&&(e.fillOpacity=n.crossFilteringDeselectedPoints()?.3:1),"line"===n.standaloneChartType&&(e.strokeOpacity=n.crossFilteringDeselectedPoints()?.3:1),e})},t.prototype.getCrossFilterData=function(e){var t=this;this.crossFilteringAllPoints.clear();var n=e.fields[0].colId,r=n+"-filtered-out",o=e.getCrossFilteringContext().lastSelectedChartId;return e.data.map(function(i){var a=i[e.category.id];t.crossFilteringAllPoints.add(a);var s=t.crossFilteringPointSelected(a);return"area"===t.standaloneChartType&&o===e.chartId&&(i[n+"-total"]=s?i[n]:i[n]+i[r]),"line"===t.standaloneChartType&&(i[n+"-total"]=s?i[n]:i[n]+i[r]),i})},t.prototype.crossFilteringAddSelectedPoint=function(e,t){e?this.crossFilteringSelectedPoints.push(t):this.crossFilteringSelectedPoints=[t]},t}(ChartProxy);function emptyTarget(e){return Array.isArray(e)?[]:{}}function cloneUnlessOtherwiseSpecified(e,t){return!1!==t.clone&&t.isMergeableObject(e)?deepMerge(emptyTarget(e),e,t):e}function defaultArrayMerge(e,t,n){return e.concat(t).map(function(e){return cloneUnlessOtherwiseSpecified(e,n)})}function getMergeFunction(e,t){if(!t.customMerge)return deepMerge;var n=t.customMerge(e);return"function"==typeof n?n:deepMerge}function getEnumerableOwnPropertySymbols(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}function getKeys(e){return Object.keys(e).concat(getEnumerableOwnPropertySymbols(e))}function propertyIsOnObject(e,t){try{return t in e}catch(e){return!1}}function propertyIsUnsafe(e,t){return propertyIsOnObject(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function mergeObject(e,t,n){void 0===e&&(e={}),void 0===t&&(t={});var r={};return n.isMergeableObject(e)&&getKeys(e).forEach(function(t){r[t]=cloneUnlessOtherwiseSpecified(e[t],n)}),getKeys(t).forEach(function(o){propertyIsUnsafe(e,o)||(propertyIsOnObject(e,o)&&n.isMergeableObject(t[o])?r[o]=getMergeFunction(o,n)(e[o],t[o],n):r[o]=cloneUnlessOtherwiseSpecified(t[o],n))}),r}function defaultIsMergeableObject(e){return isNonNullObject(e)&&!isSpecial(e)}function isNonNullObject(e){return!!e&&"object"==typeof e}function isSpecial(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t}function deepMerge(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||defaultArrayMerge,n.isMergeableObject=n.isMergeableObject||defaultIsMergeableObject,n.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):mergeObject(e,t,n):cloneUnlessOtherwiseSpecified(t,n)}function hexToRGBA(e,t){var n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return t?"rgba("+n+", "+r+", "+o+", "+t+")":"rgba("+n+", "+r+", "+o+")"}function changeOpacity(e,t){return e.map(function(e){var n=Color.fromString(e);return new Color(n.r,n.g,n.b,t).toHexString()})}var __extends$Z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$f=function(){return __assign$f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$f.apply(this,arguments)},BarChartProxy=function(e){function t(t){return e.call(this,t)||this}return __extends$Z(t,e),t.prototype.getAxes=function(e){var t="bar"===this.standaloneChartType,n=[{type:this.getXAxisType(e),position:t?"left":"bottom"},{type:"number",position:t?"bottom":"left"}];if(this.isNormalised()){var r=n[1];r.label=__assign$f(__assign$f({},r.label),{formatter:function(e){return Math.round(e.value)+"%"}})}return n},t.prototype.getSeries=function(e){var t=this,n=!this.crossFiltering&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(["groupedColumn","groupedBar"],this.chartType),r=e.fields.map(function(r){return{type:t.standaloneChartType,grouped:n,normalizedTo:t.isNormalised()?100:void 0,xKey:e.category.id,xName:e.category.name,yKey:r.colId,yName:r.displayName}});return this.crossFiltering?this.extractCrossFilterSeries(r):r},t.prototype.extractCrossFilterSeries=function(e){for(var t=this,n=this.getChartPalette(),r=function(e,r){return __assign$f(__assign$f({},e),{highlightStyle:{item:{fill:void 0}},fill:null==n?void 0:n.fills[r],stroke:null==n?void 0:n.strokes[r],listeners:{nodeClick:t.crossFilterCallback}})},o=function(e){var t=e.yKey+"-filtered-out";return __assign$f(__assign$f({},deepMerge({},e)),{yKey:t,fill:hexToRGBA(e.fill,"0.3"),stroke:hexToRGBA(e.stroke,"0.3"),hideInLegend:[t]})},i=[],a=0;a<e.length;a++){var s=r(e[a],a);i.push(s),i.push(o(s))}return i},t.prototype.isNormalised=function(){return!this.crossFiltering&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(["normalizedColumn","normalizedBar"],this.chartType)},t}(CartesianChartProxy),__extends$Y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$e=function(){return __assign$e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$e.apply(this,arguments)},AreaChartProxy=function(e){function t(t){return e.call(this,t)||this}return __extends$Y(t,e),t.prototype.getAxes=function(e){var t=[{type:this.getXAxisType(e),position:"bottom"},{type:"number",position:"left"}];if(this.isNormalised()){var n=t[1];n.label=__assign$e(__assign$e({},n.label),{formatter:function(e){return Math.round(e.value)+"%"}})}return t},t.prototype.getSeries=function(e){var t=this,n=e.fields.map(function(n){return{type:t.standaloneChartType,xKey:e.category.id,xName:e.category.name,yKey:n.colId,yName:n.displayName,normalizedTo:"normalizedArea"===t.chartType?100:void 0,stacked:["normalizedArea","stackedArea"].includes(t.chartType)}});return this.crossFiltering?this.extractLineAreaCrossFilterSeries(n,e):n},t.prototype.isNormalised=function(){return!this.crossFiltering&&"normalizedArea"===this.chartType},t}(CartesianChartProxy),__extends$X=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LineChartProxy=function(e){function t(t){return e.call(this,t)||this}return __extends$X(t,e),t.prototype.getAxes=function(e){return[{type:this.getXAxisType(e),position:"bottom"},{type:"number",position:"left"}]},t.prototype.getSeries=function(e){var t=this,n=e.fields.map(function(n){return{type:t.standaloneChartType,xKey:e.category.id,xName:e.category.name,yKey:n.colId,yName:n.displayName}});return this.crossFiltering?this.extractLineAreaCrossFilterSeries(n,e):n},t}(CartesianChartProxy),__extends$W=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$d=function(){return __assign$d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$d.apply(this,arguments)},PieChartProxy=function(e){function t(t){return e.call(this,t)||this}return __extends$W(t,e),t.prototype.update=function(e){var t=e.data,n=e.category,r=__assign$d(__assign$d({},this.getCommonChartOptions()),{data:this.crossFiltering?this.getCrossFilterData(e):this.transformData(t,n.id),series:this.getSeries(e)});AgChart.update(this.getChartRef(),r)},t.prototype.getSeries=function(e){var n=this,r=e.fields.length,o={currentOffset:0,offsetAmount:r>1?20:40},i=this.getFields(e).map(function(i){var a,s={type:n.standaloneChartType,angleKey:i.colId,angleName:i.displayName,sectorLabelKey:i.colId,calloutLabelKey:e.category.id,calloutLabelName:e.category.name};if("doughnut"===n.chartType){var l=t.calculateOffsets(o),c=l.outerRadiusOffset,u=l.innerRadiusOffset,d=i.displayName?{title:{text:i.displayName,showInLegend:r>1}}:void 0;return __assign$d(__assign$d(__assign$d(__assign$d({},s),{outerRadiusOffset:c,innerRadiusOffset:u}),d),{calloutLine:{colors:null===(a=n.getChartPalette())||void 0===a?void 0:a.strokes}})}return s});return this.crossFiltering?this.extractCrossFilterSeries(i):i},t.prototype.getCrossFilterData=function(e){var t=e.fields[0].colId,n=t+"-filtered-out";return e.data.map(function(e){var r=e[t]+e[n];return e[t+"-total"]=r,e[n]=1,e[t]=e[t]/r,e})},t.prototype.extractCrossFilterSeries=function(e){var t,n=this.getChartPalette(),r=e[0],o=r.angleKey,i=__assign$d(__assign$d({},t=r),{calloutLabel:{enabled:!1},highlightStyle:{item:{fill:void 0}},radiusKey:t.angleKey,angleKey:t.angleKey+"-total",radiusMin:0,radiusMax:1,listeners:{nodeClick:this.crossFilterCallback}});return[function(e,t){var r,o;return __assign$d(__assign$d({},deepMerge({},i)),{radiusKey:t+"-filtered-out",fills:changeOpacity(null!==(r=e.fills)&&void 0!==r?r:n.fills,.3),strokes:changeOpacity(null!==(o=e.strokes)&&void 0!==o?o:n.strokes,.3),showInLegend:!1})}(r,o),i]},t.calculateOffsets=function(e){var t=e.currentOffset;e.currentOffset-=e.offsetAmount;var n=e.currentOffset;return e.currentOffset-=e.offsetAmount,{outerRadiusOffset:t,innerRadiusOffset:n}},t.prototype.getFields=function(e){return"pie"===this.chartType?e.fields.slice(0,1):e.fields},t.prototype.crossFilteringReset=function(){},t}(ChartProxy),__extends$V=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$c=function(){return __assign$c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$c.apply(this,arguments)},__values$5=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$e=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$7=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$e(arguments[t]));return e},ScatterChartProxy=function(e){function t(t){return e.call(this,t)||this}return __extends$V(t,e),t.prototype.getAxes=function(e){return[{type:"number",position:"bottom"},{type:"number",position:"left"}]},t.prototype.getSeries=function(e){var t=this,n=this.isPaired(),r=this.getSeriesDefinitions(e.fields,n),o=e.category.id===ChartDataModel.DEFAULT_CATEGORY?void 0:e.category,i=r.map(function(e){return{type:t.standaloneChartType,xKey:e.xField.colId,xName:e.xField.displayName,yKey:e.yField.colId,yName:e.yField.displayName,title:e.yField.displayName+" vs "+e.xField.displayName,sizeKey:e.sizeField?e.sizeField.colId:void 0,sizeName:e.sizeField?e.sizeField.displayName:void 0,labelKey:o?o.id:e.yField.colId,labelName:o?o.name:void 0}});return this.crossFiltering?this.extractCrossFilterSeries(i,e):i},t.prototype.extractCrossFilterSeries=function(e,t){var n=this,r=t.data,o=this.getChartPalette(),i=function(e){return e+"-filtered-out"},a=e.map(function(e,t){var a=e.sizeKey,s=null==o?void 0:o.fills[t],l=null==o?void 0:o.strokes[t],c=function(e,t){var n,r,o,a=[1/0,-1/0];if(null!=t)try{for(var s=__values$5(e),l=s.next();!l.done;l=s.next()){var c=l.value,u=null!==(o=c[t])&&void 0!==o?o:c[i(t)];u<a[0]&&(a[0]=u),u>a[1]&&(a[1]=u)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}if(a[0]<=a[1])return a}(r,a),u=__assign$c(__assign$c({},e.marker),{fill:s,stroke:l,domain:c});return __assign$c(__assign$c({},e),{marker:u,highlightStyle:{item:{fill:"yellow"}},listeners:__assign$c(__assign$c({},e.listeners),{nodeClick:n.crossFilterCallback})})});return __spread$7(a,a.map(function(e){var t=e.sizeKey,r=e.yKey,o=e.xKey;return null!=t&&(t=i(t)),__assign$c(__assign$c({},e),{yKey:i(r),xKey:i(o),marker:__assign$c(__assign$c({},e.marker),{fillOpacity:.3,strokeOpacity:.3}),sizeKey:t,showInLegend:!1,listeners:__assign$c(__assign$c({},e.listeners),{nodeClick:function(e){var t,r=e.datum[i(o)],a=__assign$c(__assign$c({},e),{xKey:o,datum:__assign$c(__assign$c({},e.datum),(t={},t[o]=r,t))});n.crossFilterCallback(a)}})})}))},t.prototype.getSeriesDefinitions=function(e,t){if(e.length<2)return[];var n="bubble"===this.chartType;if(t)return n?e.map(function(t,n){return n%3==0?{xField:t,yField:e[n+1],sizeField:e[n+2]}:null}).filter(function(e){return e&&e.yField&&e.sizeField}):e.map(function(t,n){return n%2==0?{xField:t,yField:e[n+1]}:null}).filter(function(e){return e&&e.yField});var r=e[0];return n?e.map(function(t,n){return n%2==1?{xField:r,yField:t,sizeField:e[n+1]}:null}).filter(function(e){return e&&e.sizeField}):e.filter(function(e,t){return t>0}).map(function(e){return{xField:r,yField:e}})},t}(CartesianChartProxy),__extends$U=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),HistogramChartProxy=function(e){function t(t){return e.call(this,t)||this}return __extends$U(t,e),t.prototype.getSeries=function(e){var t=e.fields[0];return[{type:this.standaloneChartType,xKey:t.colId,xName:t.displayName,yName:this.chartProxyParams.translate("histogramFrequency"),areaPlot:!1}]},t.prototype.getAxes=function(e){return[{type:"number",position:"bottom"},{type:"number",position:"left"}]},t}(CartesianChartProxy),__extends$T=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ChartOptionsService=function(e){function t(t){var n=e.call(this)||this;return n.chartController=t,n}return __extends$T(t,e),t.prototype.getChartOption=function(e){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.get(this.getChart(),e,void 0)},t.prototype.setChartOption=function(e,t,n){var r=this,o=this.chartController.getChartSeriesTypes();this.chartController.isComboChart()&&o.push("cartesian");var i={};o.forEach(function(n){i=deepMerge(i,r.createChartOptions({seriesType:n,expression:e,value:t}))}),this.updateChart(i),n||this.raiseChartOptionsChangedEvent()},t.prototype.awaitChartOptionUpdate=function(e){this.chartController.getChartProxy().getChart().waitForUpdate().then(function(){return e()})},t.prototype.getAxisProperty=function(e){var t;return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.get(null===(t=this.getChart().axes)||void 0===t?void 0:t[0],e,void 0)},t.prototype.setAxisProperty=function(e,t){var n,r=this,o=this.getChart(),i={};null===(n=o.axes)||void 0===n||n.forEach(function(n){i=deepMerge(i,r.getUpdateAxisOptions(n,e,t))}),this.updateChart(i),this.raiseChartOptionsChangedEvent()},t.prototype.getLabelRotation=function(e){var t=this.getAxis(e);return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.get(t,"label.rotation",void 0)},t.prototype.setLabelRotation=function(e,t){var n=this.getAxis(e);if(n){var r=this.getUpdateAxisOptions(n,"label.rotation",t);this.updateChart(r),this.raiseChartOptionsChangedEvent()}},t.prototype.getSeriesOption=function(e,n){var r=this.getChart().series.find(function(e){return t.isMatchingSeries(n,e)});return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.get(r,e,void 0)},t.prototype.setSeriesOption=function(e,t,n){var r=this.createChartOptions({seriesType:n,expression:"series."+e,value:t});this.updateChart(r),this.raiseChartOptionsChangedEvent()},t.prototype.getPairedMode=function(){return this.chartController.getChartProxy().isPaired()},t.prototype.setPairedMode=function(e){this.chartController.getChartProxy().setPaired(e)},t.prototype.getAxis=function(e){var t=this.getChart();if(t.axes&&!(t.axes.length<1))return"xAxis"===e?t.axes&&"x"===t.axes[0].direction?t.axes[0]:t.axes[1]:t.axes&&"y"===t.axes[1].direction?t.axes[1]:t.axes[0]},t.prototype.getUpdateAxisOptions=function(e,t,n){var r=getSeriesType(this.getChartType());return["number","category","time","groupedCategory"].includes(e.type)?this.createChartOptions({seriesType:r,expression:"axes."+e.type+"."+t,value:n}):{}},t.prototype.getChartType=function(){return this.chartController.getChartType()},t.prototype.getChart=function(){return this.chartController.getChartProxy().getChart()},t.prototype.updateChart=function(e){var t=this.chartController.getChartProxy().getChartRef();AgChart.updateDelta(t,e)},t.prototype.createChartOptions=function(e){var t=e.seriesType,n=e.expression,r=e.value,o={},i={theme:{overrides:o}};return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.set(o,t+"."+n,r),i},t.prototype.raiseChartOptionsChangedEvent=function(){var e=this.chartController.getChartModel(),t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_CHART_OPTIONS_CHANGED,chartId:e.chartId,chartType:e.chartType,chartThemeName:this.chartController.getChartThemeName(),chartOptions:e.chartOptions};this.eventService.dispatchEvent(t)},t.isMatchingSeries=function(e,t){var n;return VALID_SERIES_TYPES.includes(e)&&t.type===("column"===(n=e)?"bar":n)},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$S=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ComboChartProxy=function(e){function t(t){return e.call(this,t)||this}return __extends$S(t,e),t.prototype.getAxes=function(e){var t=e?e.fields:[],n=new Map(t.map(function(e){return[e.colId,e]})),r=this.getYKeys(t,e.seriesChartTypes),o=r.primaryYKeys,i=r.secondaryYKeys,a=[{type:this.getXAxisType(e),position:"bottom",gridStyle:[{stroke:void 0}]}];return o.length>0&&a.push({type:"number",keys:o,position:"left",title:{text:o.map(function(e){var t=n.get(e);return t?t.displayName:e}).join(" / ")}}),i.length>0&&i.forEach(function(e,t){var r=n.get(e);if(r&&r.colId===e){var s={type:"number",keys:[e],position:"right",title:{text:r?r.displayName:e}},l=o.some(function(e){return!!n.get(e)}),c=t===i.length-1;!l&&c||(s.gridStyle=[{stroke:void 0}]),a.push(s)}}),a},t.prototype.getSeries=function(e){var t=e.fields,n=e.category,r=e.seriesChartTypes;return t.map(function(e){var t=r.find(function(t){return t.colId===e.colId});if(t){var o=t.chartType;return{type:getSeriesType(o),xKey:n.id,yKey:e.colId,yName:e.displayName,grouped:["groupedColumn","groupedBar","groupedArea"].includes(o),stacked:["stackedArea","stackedColumn"].includes(o)}}})},t.prototype.getYKeys=function(e,t){var n=[],r=[];return e.forEach(function(e){var o=e.colId,i=t.find(function(e){return e.colId===o});i&&(i.secondaryAxis?r.push(o):n.push(o))}),{primaryYKeys:n,secondaryYKeys:r}},t}(CartesianChartProxy),__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$N=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},GridChartComp=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.params=n,r}return __extends$R(t,e),t.prototype.init=function(){var e=this,t=this.gridOptionsService.get("chartThemes")||DEFAULT_THEMES;if(t.length<1)throw new Error("Cannot create chart: no chart themes are available to be used.");var n=this.params.chartThemeName;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(t,n)||(n=t[0]);var r={chartId:this.params.chartId,pivotChart:this.params.pivotChart,chartType:this.params.chartType,chartThemeName:n,aggFunc:this.params.aggFunc,cellRange:this.params.cellRange,suppressChartRanges:this.params.suppressChartRanges,unlinkChart:this.params.unlinkChart,crossFiltering:this.params.crossFiltering,seriesChartTypes:this.params.seriesChartTypes},o=this.gridOptionsService.is("enableRtl");this.addCssClass(o?"ag-rtl":"ag-ltr");var i=this.createBean(new ChartDataModel(r));this.chartController=this.createManagedBean(new ChartController(i)),this.validateCustomThemes(),this.createChart(),this.params.insideDialog&&this.addDialog(),this.addMenu(),this.addTitleEditComp(),this.addManagedListener(this.getGui(),"focusin",this.setActiveChartCellRange.bind(this)),this.addManagedListener(this.chartController,ChartController.EVENT_CHART_MODEL_UPDATE,this.update.bind(this)),this.chartMenu&&this.addManagedListener(this.chartMenu,ChartMenu.EVENT_DOWNLOAD_CHART,function(){return e.downloadChart()}),this.update(),this.raiseChartCreatedEvent()},t.prototype.validateCustomThemes=function(){var e=this.getChartThemes(),t=this.gridOptionsService.get("customChartThemes");t&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.getAllKeysInObjects([t]).forEach(function(t){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(e,t)||console.warn("AG Grid: a custom chart theme with the name '"+t+"' has been supplied but not added to the 'chartThemes' list")})},t.prototype.createChart=function(){var e=this,n=void 0;this.chartProxy&&(n=this.chartProxy.destroy({keepChartInstance:!0}));var r=this.chartController.getChartType(),o={chartType:r,chartInstance:n,getChartThemeName:this.getChartThemeName.bind(this),getChartThemes:this.getChartThemes.bind(this),customChartThemes:this.gridOptionsService.get("customChartThemes"),getGridOptionsChartThemeOverrides:function(){return e.getGridOptionsChartThemeOverrides()},getExtraPaddingDirections:function(){var t,n;return null!==(n=null===(t=e.chartMenu)||void 0===t?void 0:t.getExtraPaddingDirections())&&void 0!==n?n:[]},apiChartThemeOverrides:this.params.chartThemeOverrides,crossFiltering:this.params.crossFiltering,crossFilterCallback:function(t,n){e.params.crossFilteringContext.lastSelectedChartId=n?"":e.chartController.getChartId(),n&&e.params.crossFilteringResetCallback(),e.crossFilterService.filter(t,n)},parentElement:this.eChart,grouping:this.chartController.isGrouping(),chartThemeToRestore:this.params.chartThemeName,chartOptionsToRestore:this.params.chartOptionsToRestore,chartPaletteToRestore:this.params.chartPaletteToRestore,seriesChartTypes:this.chartController.getSeriesChartTypes(),translate:function(t,n){return e.chartTranslationService.translate(t,n)}};if(this.params.chartOptionsToRestore=void 0,this.chartType=r,this.chartThemeName=this.chartController.getChartThemeName(),this.chartProxy=t.createChartProxy(o),this.chartProxy){var i=this.eChart.querySelector("canvas");i&&i.classList.add("ag-charts-canvas"),this.chartController.setChartProxy(this.chartProxy),this.chartOptionsService=this.createBean(new ChartOptionsService(this.chartController)),this.titleEdit&&this.titleEdit.refreshTitle(this.chartController,this.chartOptionsService)}else console.warn("AG Grid: invalid chart type supplied: ",o.chartType)},t.prototype.getChartThemeName=function(){return this.chartController.getChartThemeName()},t.prototype.getChartThemes=function(){return this.chartController.getThemes()},t.prototype.getGridOptionsChartThemeOverrides=function(){return this.gridOptionsService.get("chartThemeOverrides")},t.createChartProxy=function(e){switch(e.chartType){case"column":case"bar":case"groupedColumn":case"stackedColumn":case"normalizedColumn":case"groupedBar":case"stackedBar":case"normalizedBar":return new BarChartProxy(e);case"pie":case"doughnut":return new PieChartProxy(e);case"area":case"stackedArea":case"normalizedArea":return new AreaChartProxy(e);case"line":return new LineChartProxy(e);case"scatter":case"bubble":return new ScatterChartProxy(e);case"histogram":return new HistogramChartProxy(e);case"columnLineCombo":case"areaColumnCombo":case"customCombo":return new ComboChartProxy(e);default:throw"AG Grid: Unable to create chart as an invalid chartType = '"+e.chartType+"' was supplied."}},t.prototype.addDialog=function(){var e=this,t=this.chartTranslationService.translate(this.params.pivotChart?"pivotChartTitle":"rangeChartTitle"),n=this.getBestDialogSize(),r=n.width,o=n.height;this.chartDialog=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgDialog({resizable:!0,movable:!0,maximizable:!0,title:t,width:r,height:o,component:this,centered:!0,closable:!0}),this.getContext().createBean(this.chartDialog),this.chartDialog.addEventListener(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgDialog.EVENT_DESTROYED,function(){return e.destroy()})},t.prototype.getBestDialogSize=function(){var e=this.popupService.getPopupParent(),t=.75*ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.getAbsoluteWidth(e),n=.75*ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.getAbsoluteHeight(e),r=this.chartProxy.getChart(),o=this.params.insideDialog?850:r.width,i=this.params.insideDialog?470:r.height;return(o>t||i>n)&&(o=Math.min(o,t),(i=Math.round(.553*o))>n&&(i=n,o=Math.min(o,Math.round(i/.553)))),{width:o,height:i}},t.prototype.addMenu=function(){this.params.crossFiltering||(this.chartMenu=this.createBean(new ChartMenu(this.eChartContainer,this.eMenuContainer,this.chartController,this.chartOptionsService)),this.eChartContainer.appendChild(this.chartMenu.getGui()))},t.prototype.addTitleEditComp=function(){this.titleEdit=this.createBean(new TitleEdit(this.chartMenu)),this.eTitleEditContainer.appendChild(this.titleEdit.getGui()),this.chartProxy&&this.titleEdit.refreshTitle(this.chartController,this.chartOptionsService)},t.prototype.update=function(){this.shouldRecreateChart()&&this.createChart(),this.updateChart()},t.prototype.shouldRecreateChart=function(){return this.chartType!==this.chartController.getChartType()||this.chartThemeName!==this.chartController.getChartThemeName()},t.prototype.getCurrentChartType=function(){return this.chartType},t.prototype.getChartModel=function(){return this.chartController.getChartModel()},t.prototype.getChartImageDataURL=function(e){return this.chartProxy.getChartImageDataURL(e)},t.prototype.updateChart=function(){var e=this,t=this.chartProxy,n=this.chartController.getSelectedValueColState().map(function(e){return{colId:e.colId,displayName:e.displayName}}),r=this.chartController.getChartData();if(!this.handleEmptyChart(r,n)){var o=this.chartController.getChartUpdateParams();t.update(o),this.chartProxy.getChart().waitForUpdate().then(function(){e.chartController.raiseChartUpdatedEvent()}),this.titleEdit.refreshTitle(this.chartController,this.chartOptionsService)}},t.prototype.handleEmptyChart=function(e,t){var n=this.chartController.isPivotChart()&&!this.chartController.isPivotMode(),r=1;this.chartController.isActiveXYChart()&&(r="bubble"===this.chartController.getChartType()?3:2);var o=t.length<r||0===e.length;if(this.eChart){var i=n||o;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eChart,!i),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eEmpty,i)}return n?(this.eEmpty.innerText=this.chartTranslationService.translate("pivotChartRequiresPivotMode"),!0):!!o&&(this.eEmpty.innerText=this.chartTranslationService.translate("noDataToChart"),!0)},t.prototype.downloadChart=function(e,t,n){this.chartProxy.downloadChart(e,t,n)},t.prototype.openChartToolPanel=function(e){var t=e?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CHART_TOOL_PANEL_MENU_OPTIONS[e]:e;this.chartMenu.showMenu(t)},t.prototype.closeChartToolPanel=function(){this.chartMenu.hideMenu()},t.prototype.getChartId=function(){return this.chartController.getChartId()},t.prototype.getUnderlyingChart=function(){return this.chartProxy.getChartRef()},t.prototype.crossFilteringReset=function(){this.chartProxy.crossFilteringReset()},t.prototype.setActiveChartCellRange=function(e){this.getGui().contains(e.relatedTarget)||(this.chartController.setChartRange(!0),this.gridApi.focusService.clearFocusedCell())},t.prototype.raiseChartCreatedEvent=function(){var e=this,t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_CHART_CREATED,chartId:this.chartController.getChartId()};this.chartProxy.getChart().waitForUpdate().then(function(){e.eventService.dispatchEvent(t)})},t.prototype.raiseChartDestroyedEvent=function(){var e={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_CHART_DESTROYED,chartId:this.chartController.getChartId()};this.eventService.dispatchEvent(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.chartProxy&&this.chartProxy.destroy(),this.destroyBean(this.chartMenu),this.destroyBean(this.titleEdit),this.chartDialog&&this.chartDialog.isAlive()&&this.destroyBean(this.chartDialog);var t=this.getGui();ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(t),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromParent(t),this.raiseChartDestroyedEvent()},t.TEMPLATE='<div class="ag-chart" tabindex="-1">\n            <div ref="eChartContainer" tabindex="-1" class="ag-chart-components-wrapper">\n                <div ref="eChart" class="ag-chart-canvas-wrapper"></div>\n                <div ref="eEmpty" class="ag-chart-empty-text ag-unselectable"></div>\n            </div>\n            <div ref="eTitleEditContainer"></div>\n            <div ref="eMenuContainer" class="ag-chart-docked-container"></div>\n        </div>',__decorate$N([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eChart")],t.prototype,"eChart",void 0),__decorate$N([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eChartContainer")],t.prototype,"eChartContainer",void 0),__decorate$N([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eMenuContainer")],t.prototype,"eMenuContainer",void 0),__decorate$N([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eEmpty")],t.prototype,"eEmpty",void 0),__decorate$N([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eTitleEditContainer")],t.prototype,"eTitleEditContainer",void 0),__decorate$N([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartCrossFilterService")],t.prototype,"crossFilterService",void 0),__decorate$N([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartTranslationService")],t.prototype,"chartTranslationService",void 0),__decorate$N([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$N([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("popupService")],t.prototype,"popupService",void 0),__decorate$N([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),VERSION$a="29.3.3",__assign$b=function(){return __assign$b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$b.apply(this,arguments)},__rest=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},__read$d=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__values$4=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function upgradeChartModel(e){return e.version,null==e.version&&(e.version=heuristicVersionDetection(e)),e=migrateIfBefore("23.0.0",e,migrateV23),e=migrateIfBefore("24.0.0",e,migrateV24),e=migrateIfBefore("25.1.0",e,migrateV25_1),e=migrateIfBefore("26.0.0",e,migrateV26),e=migrateIfBefore("26.1.0",e,migrateV26_1),e=migrateIfBefore("26.2.0",e,migrateV26_2),e=migrateIfBefore("28.0.0",e,migrateV28),e=migrateIfBefore("28.2.0",e,migrateV28_2),e=cleanup(e=migrateIfBefore("29.0.0",e,migrateV29)),migrateIfBefore(VERSION$a,e,function(e){return e})}function migrateV23(e){return e=jsonRename("chartOptions.legend.item.marker.type","shape",e),e=jsonRename("chartOptions.seriesDefaults.marker.type","shape",e),jsonRename("chartOptions.legend.padding","spacing",e)}function migrateV24(e){var t,n=e=jsonDelete("chartOptions.seriesDefaults.marker.minSize",e),r=n.chartType,o=n.chartPalette,i=n.chartOptions,a=i.xAxis,s=i.yAxis,l=__rest(i,["xAxis","yAxis"]),c=__rest(n,["chartType","chartPalette","chartOptions"]),u=getLegacyAxisType(r),d=null==u?void 0:u.map(function(e,t){return __assign$b({type:e},0===t?a:s)});return __assign$b({chartType:r,chartThemeName:null!==(t=LEGACY_PALETTES[o])&&void 0!==t?t:"ag-default",chartOptions:__assign$b(__assign$b({},l),{axes:d,xAxis:a,yAxis:s})},c)}function migrateV25_1(e){return jsonRename("chartOptions.seriesDefaults.label.minRequiredAngle","minAngle",e)}function migrateV26(e){return e=jsonDelete("chart",e=jsonMutate("chartOptions.seriesDefaults.highlightStyle",e,function(e){var t=e.dimOpacity,n=__rest(e,["dimOpacity"]);return __assign$b(__assign$b({},n),null!=t?{series:{dimOpacity:t}}:{})})),e=jsonDelete("chartOptions.seriesDefaults.tooltipClass",e),e=jsonDeleteDefault("chartOptions.axes[].label.rotation",0,e=jsonDelete("chartOptions.seriesDefaults.tooltipTracking",e)),jsonDeleteDefault("chartOptions.axes[].label.rotation",335,e)}function migrateV26_1(e){var t=function(e){var t=e.item,n=e.series,r=__rest(e,["item","series"]);return __assign$b({item:__assign$b(__assign$b({},r),t)},n?{series:n}:{})};return e=jsonMutate("chartOptions.seriesDefaults.highlightStyle",e,t),jsonMutate("chartOptions.series[].highlightStyle",e,t)}function migrateV26_2(e){e=jsonMove("chartOptions.seriesDefaults.fill.opacity","chartOptions.seriesDefaults.fillOpacity",e),e=jsonMove("chartOptions.seriesDefaults.stroke.opacity","chartOptions.seriesDefaults.strokeOpacity",e),e=jsonDelete("chartOptions.seriesDefaults.fill",e=jsonMove("chartOptions.seriesDefaults.stroke.width","chartOptions.seriesDefaults.strokeWidth",e)),e=jsonDelete("chartOptions.seriesDefaults.stroke",e),e=jsonDelete("chartOptions.seriesDefaults.callout.colors",e),e=jsonDelete("chartOptions.xAxis",e);var t=e=jsonDelete("chartOptions.yAxis",e),n=t.chartType,r=t.chartOptions,o=r.axes;r.series;var i=r.seriesDefaults,a=__rest(r,["axes","series","seriesDefaults"]),s=__rest(t,["chartType","chartOptions"]),l=[getSeriesType(n)],c={};if(!l.includes("pie")){var u={top:{},bottom:{},left:{},right:{}},d=o.map(function(e){var t,n=e.type,r=__rest(e,["type"]);return(t={})[n]=__assign$b(__assign$b({},u),r),t}).reduce(merge,{});ALL_AXIS_TYPES.filter(function(e){return null==d[e]}).forEach(function(e){d[e]=__assign$b({},u)}),c.axes=d}var p=l.map(function(e){var t;return(t={})[e]=__assign$b(__assign$b(__assign$b({},c),{series:i}),a),t}).reduce(merge,{});return __assign$b(__assign$b({},s),{chartType:n,chartOptions:p})}function migrateV28(e){return e=jsonDelete("chartOptions.*.title.padding",e),e=jsonDelete("chartOptions.*.subtitle.padding",e),jsonBackfill("chartOptions.*.axes.*.title.enabled",!1,e=jsonDelete("chartOptions.*.axes.*.title.padding",e))}function migrateV28_2(e){return e=jsonRename("chartOptions.pie.series.callout","calloutLine",e),jsonRename("chartOptions.pie.series.label","calloutLabel",e)}function migrateV29(e){return e=jsonMoveIfMissing("chartOptions.scatter.series.fill","chartOptions.scatter.series.marker.fill",e),e=jsonMoveIfMissing("chartOptions.scatter.series.fillOpacity","chartOptions.scatter.series.marker.fillOpacity",e),e=jsonMoveIfMissing("chartOptions.scatter.series.stroke","chartOptions.scatter.series.marker.stroke",e),e=jsonMoveIfMissing("chartOptions.scatter.series.strokeOpacity","chartOptions.scatter.series.marker.strokeOpacity",e),jsonMove("chartOptions.scatter.series.paired","chartOptions.scatter.paired",e=jsonMoveIfMissing("chartOptions.scatter.series.strokeWidth","chartOptions.scatter.series.marker.strokeWidth",e))}function cleanup(e){return e=jsonDelete("chartOptions.*.width",e),jsonBackfill("chartOptions.*.axes.category.label.autoRotate",!0,e=jsonDelete("chartOptions.*.height",e))}function heuristicVersionDetection(e){var t,n,r=e;if(null!=e.version)return e.version;var o=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Object.keys(e||{}).some(function(e){return t.includes(e)})},i=r.chartOptions,a=o(i,"seriesDefaults")?null==i?void 0:i.seriesDefaults:null==i?void 0:i[Object.keys(i)[0]],s={"27.0.0":o(r,"seriesChartTypes"),"26.2.0":!o(i,"seriesDefaults"),"26.1.0":o(null==a?void 0:a.highlightStyle,"item"),"26.0.0":o(null==a?void 0:a.highlightStyle,"series"),"25.1.0":o(null==a?void 0:a.label,"minAngle"),"25.0.0":o(r,"modelType","aggFunc","unlinkChart","suppressChartRanges")||o(a,"lineDash","lineDashOffset"),"24.0.0":o(r,"chartThemeName","chart")||o(i,"series"),"23.2.0":o(i,"navigator"),"23.0.0":o(null===(n=null===(t=null==i?void 0:i.legend)||void 0===t?void 0:t.item)||void 0===n?void 0:n.marker,"shape"),"22.1.0":o(r,"chartPalette","chartType")},l=Object.entries(s).filter(function(e){var t=__read$d(e,2);return t[0],t[1]}),c=__read$d(l[0],1)[0];return void 0===c?"27.1.0":c}function migrateIfBefore(e,t,n){if(versionNumber(e)>versionNumber(t.version)){var r=n(t);return r.version=e,r}return t}function versionParts(e){var t="string"==typeof e?e.split(".").map(function(e){return Number(e)}):[];if(3!==t.length||t.some(function(e){return isNaN(e)}))throw new Error("AG Grid - Illegal version string: "+e);return{major:t[0],minor:t[1],patch:t[2]}}function versionNumber(e){var t=versionParts(e);return 1e4*t.major+100*t.minor+t.patch}function jsonDeleteDefault(e,t,n){return jsonMutateProperty(e,!0,n,function(e,n){e[n]===t&&delete e[n]})}function jsonBackfill(e,t,n){return jsonMutateProperty(e,!1,n,function(e,n){null==e[n]&&(e[n]=t)})}function jsonMove(e,t,n){var r=void 0,o=!1;return n=jsonMutateProperty(e,!0,n,function(e,t){o=!0,r=e[t],delete e[t]}),o?jsonMutateProperty(t,!1,n,function(e,t){e[t]=r}):n}function jsonMoveIfMissing(e,t,n){var r=void 0,o=!1;return n=jsonMutateProperty(e,!0,n,function(e,t){o=!0,r=e[t],delete e[t]}),o?jsonMutateProperty(t,!1,n,function(e,t){void 0===e[t]&&(e[t]=r)}):n}function jsonRename(e,t,n){return jsonMutateProperty(e,!0,n,function(e,n){e[t]=e[n],delete e[n]})}function jsonDelete(e,t){return jsonMutateProperty(e,!0,t,function(e,t){return delete e[t]})}function jsonMutateProperty(e,t,n,r){var o=e instanceof Array?e:e.split("."),i=o.slice(0,o.length-1),a=o[o.length-1];return jsonMutate(i,n,function(e){var n=Object.keys(e).includes(a);if(t&&!n)return e;var o=__assign$b({},e);return r(o,a),o})}function jsonMutate(e,t,n){var r,o,i=e instanceof Array?e:e.split(".");if(t=__assign$b({},t),0===i.length)return n(t);if(i[0].startsWith("{")){var a=i[0].substring(1,i[0].lastIndexOf("}")).split(",");try{for(var s=__values$4(a),l=s.next();!l.done;l=s.next()){var c=l.value;null!=t[c]&&(t[c]=jsonMutate(i.slice(1),t[c],n))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}}else if(i[0].endsWith("[]")){var u=i[0].substring(0,e[0].indexOf("["));t[u]instanceof Array&&(t[u]=t[u].map(function(e){return jsonMutate(i.slice(1),e,n)}))}else if("*"===i[0])for(var d in t)t[d]=jsonMutate(i.slice(1),t[d],n);else null!=t[i[0]]&&(t[i[0]]=jsonMutate(i.slice(1),t[i[0]],n));return t}var merge=function(e,t){return __assign$b(__assign$b({},e),t)},LEGACY_PALETTES={borneo:"ag-default",material:"ag-material",pastel:"ag-pastel",bright:"ag-vivid",flat:"ag-solar"},__extends$Q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$a=function(){return __assign$a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$a.apply(this,arguments)},__decorate$M=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ChartService=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeCharts=new Set,t.activeChartComps=new Set,t.crossFilteringContext={lastSelectedChartId:""},t}return __extends$Q(t,e),t.prototype.getChartModels=function(){var e=[];return this.activeChartComps.forEach(function(t){return e.push(function(e){return __assign$a(__assign$a({},e),{version:VERSION$a})}(t.getChartModel()))}),e},t.prototype.getChartRef=function(e){var t;return this.activeCharts.forEach(function(n){n.chartId===e&&(t=n)}),t},t.prototype.getChartImageDataURL=function(e){var t;return this.activeChartComps.forEach(function(n){n.getChartId()===e.chartId&&(t=n.getChartImageDataURL(e.fileFormat))}),t},t.prototype.downloadChart=function(e){var t=Array.from(this.activeChartComps).find(function(t){return t.getChartId()===e.chartId});null==t||t.downloadChart(e.dimensions,e.fileName,e.fileFormat)},t.prototype.openChartToolPanel=function(e){var t=Array.from(this.activeChartComps).find(function(t){return t.getChartId()===e.chartId});null==t||t.openChartToolPanel(e.panel)},t.prototype.closeChartToolPanel=function(e){var t=Array.from(this.activeChartComps).find(function(t){return t.getChartId()===e});null==t||t.closeChartToolPanel()},t.prototype.createChartFromCurrentRange=function(e){void 0===e&&(e="groupedColumn");var t=this.getSelectedRange();return this.createChart(t,e)},t.prototype.restoreChart=function(e,t){var n=this;if(e){e.version!==VERSION$a&&(e=upgradeChartModel(e));var r={cellRange:e.cellRange,chartType:e.chartType,chartThemeName:e.chartThemeName,chartContainer:t,suppressChartRanges:e.suppressChartRanges,aggFunc:e.aggFunc,unlinkChart:e.unlinkChart,seriesChartTypes:e.seriesChartTypes},o=function(e){return n.rangeService?n.rangeService.createCellRangeFromCellRangeParams(e):void 0};if("pivot"===e.modelType){this.columnModel.isPivotMode()||this.columnModel.setPivotMode(!0,"pivotChart");var i=o({rowStartIndex:null,rowStartPinned:void 0,rowEndIndex:null,rowEndPinned:void 0,columns:this.columnModel.getAllDisplayedColumns().map(function(e){return e.getColId()})});return i?this.createChart(i,r.chartType,r.chartThemeName,!0,!0,r.chartContainer,void 0,void 0,r.unlinkChart,!1,e.chartOptions):void console.warn("AG Grid - unable to create chart as there are no columns in the grid.")}var a=o(r.cellRange);if(a)return this.createChart(a,r.chartType,r.chartThemeName,!1,r.suppressChartRanges,r.chartContainer,r.aggFunc,void 0,r.unlinkChart,!1,e.chartOptions,e.chartPalette,r.seriesChartTypes);console.warn("AG Grid - unable to create chart as no range is selected")}else console.warn("AG Grid - unable to restore chart as no chart model is provided")},t.prototype.createRangeChart=function(e){var t=this.rangeService?this.rangeService.createCellRangeFromCellRangeParams(e.cellRange):void 0;if(t)return this.createChart(t,e.chartType,e.chartThemeName,!1,e.suppressChartRanges,e.chartContainer,e.aggFunc,e.chartThemeOverrides,e.unlinkChart,void 0,void 0,void 0,e.seriesChartTypes);console.warn("AG Grid - unable to create chart as no range is selected")},t.prototype.createPivotChart=function(e){this.columnModel.isPivotMode()||this.columnModel.setPivotMode(!0,"pivotChart");var t={rowStartIndex:null,rowStartPinned:void 0,rowEndIndex:null,rowEndPinned:void 0,columns:this.columnModel.getAllDisplayedColumns().map(function(e){return e.getColId()})},n=this.rangeService?this.rangeService.createCellRangeFromCellRangeParams(t):void 0;if(n)return this.createChart(n,e.chartType,e.chartThemeName,!0,!0,e.chartContainer,void 0,e.chartThemeOverrides,e.unlinkChart);console.warn("AG Grid - unable to create chart as there are no columns in the grid.")},t.prototype.createCrossFilterChart=function(e){var t=this.rangeService?this.rangeService.createCellRangeFromCellRangeParams(e.cellRange):void 0;if(t){var n=!(void 0!==e.suppressChartRanges&&null!==e.suppressChartRanges)||e.suppressChartRanges;return this.createChart(t,e.chartType,e.chartThemeName,!1,n,e.chartContainer,e.aggFunc,e.chartThemeOverrides,e.unlinkChart,!0)}console.warn("AG Grid - unable to create chart as no range is selected")},t.prototype.createChart=function(e,t,n,r,o,i,a,s,l,c,u,d,p){var h=this;void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===l&&(l=!1),void 0===c&&(c=!1);var f=this.gridOptionsService.getCallback("createChartContainer"),g={chartId:this.generateId(),pivotChart:r,cellRange:e,chartType:t,chartThemeName:n,insideDialog:!(i||f),suppressChartRanges:o,aggFunc:a,chartThemeOverrides:s,unlinkChart:l,crossFiltering:c,crossFilteringContext:this.crossFilteringContext,chartOptionsToRestore:u,chartPaletteToRestore:d,seriesChartTypes:p,crossFilteringResetCallback:function(){return h.activeChartComps.forEach(function(e){return e.crossFilteringReset()})}},m=new GridChartComp(g);this.context.createBean(m);var v=this.createChartRef(m);if(i){i.appendChild(m.getGui());var y=this.environment.getTheme();y.el&&!y.el.contains(i)&&i.classList.add(y.theme)}else f?f(v):m.addEventListener(GridChartComp.EVENT_DESTROYED,function(){h.activeChartComps.delete(m),h.activeCharts.delete(v)});return v},t.prototype.createChartRef=function(e){var t=this,n={destroyChart:function(){t.activeCharts.has(n)&&(t.context.destroyBean(e),t.activeChartComps.delete(e),t.activeCharts.delete(n))},chartElement:e.getGui(),chart:e.getUnderlyingChart(),chartId:e.getChartModel().chartId};return this.activeCharts.add(n),this.activeChartComps.add(e),n},t.prototype.getSelectedRange=function(){var e=this.rangeService.getCellRanges();return e.length>0?e[0]:{}},t.prototype.generateId=function(){return"id-"+Math.random().toString(36).substr(2,16)},t.prototype.destroyAllActiveCharts=function(){this.activeCharts.forEach(function(e){return e.destroyChart()})},t.CHARTS_VERSION=VERSION$b,__decorate$M([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Optional)("rangeService")],t.prototype,"rangeService",void 0),__decorate$M([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$M([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreDestroy],t.prototype,"destroyAllActiveCharts",null),__decorate$M([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("chartService")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$P=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$L=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ChartTranslationService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return __extends$P(t,e),n=t,t.prototype.translate=function(e,t){return this.localeService.getLocaleTextFunc()(e,n.DEFAULT_TRANSLATIONS[e]||t)},t.DEFAULT_TRANSLATIONS={pivotChartTitle:"Pivot Chart",rangeChartTitle:"Range Chart",settings:"Settings",data:"Data",format:"Format",categories:"Categories",defaultCategory:"(None)",series:"Series",xyValues:"X Y Values",paired:"Paired Mode",axis:"Axis",navigator:"Navigator",color:"Color",thickness:"Thickness",xType:"X Type",automatic:"Automatic",category:"Category",number:"Number",time:"Time",autoRotate:"Auto Rotate",xRotation:"X Rotation",yRotation:"Y Rotation",ticks:"Ticks",width:"Width",height:"Height",length:"Length",padding:"Padding",spacing:"Spacing",chart:"Chart",title:"Title",titlePlaceholder:"Chart title - double click to edit",background:"Background",font:"Font",top:"Top",right:"Right",bottom:"Bottom",left:"Left",labels:"Labels",calloutLabels:"Callout Labels",sectorLabels:"Sector Labels",positionRatio:"Position Ratio",size:"Size",shape:"Shape",minSize:"Minimum Size",maxSize:"Maximum Size",legend:"Legend",position:"Position",markerSize:"Marker Size",markerStroke:"Marker Stroke",markerPadding:"Marker Padding",itemSpacing:"Item Spacing",itemPaddingX:"Item Padding X",itemPaddingY:"Item Padding Y",layoutHorizontalSpacing:"Horizontal Spacing",layoutVerticalSpacing:"Vertical Spacing",strokeWidth:"Stroke Width",offset:"Offset",offsets:"Offsets",tooltips:"Tooltips",callout:"Callout",markers:"Markers",shadow:"Shadow",blur:"Blur",xOffset:"X Offset",yOffset:"Y Offset",lineWidth:"Line Width",lineDash:"Line Dash",normal:"Normal",bold:"Bold",italic:"Italic",boldItalic:"Bold Italic",predefined:"Predefined",fillOpacity:"Fill Opacity",strokeOpacity:"Line Opacity",histogramBinCount:"Bin count",columnGroup:"Column",barGroup:"Bar",pieGroup:"Pie",lineGroup:"Line",scatterGroup:"X Y (Scatter)",areaGroup:"Area",histogramGroup:"Histogram",combinationGroup:"Combination",groupedColumnTooltip:"Grouped",stackedColumnTooltip:"Stacked",normalizedColumnTooltip:"100% Stacked",groupedBarTooltip:"Grouped",stackedBarTooltip:"Stacked",normalizedBarTooltip:"100% Stacked",pieTooltip:"Pie",doughnutTooltip:"Doughnut",lineTooltip:"Line",groupedAreaTooltip:"Area",stackedAreaTooltip:"Stacked",normalizedAreaTooltip:"100% Stacked",scatterTooltip:"Scatter",bubbleTooltip:"Bubble",histogramTooltip:"Histogram",columnLineComboTooltip:"Column & Line",areaColumnComboTooltip:"Area & Column",customComboTooltip:"Custom Combination",noDataToChart:"No data available to be charted.",pivotChartRequiresPivotMode:"Pivot Chart requires Pivot Mode enabled.",chartSettingsToolbarTooltip:"Menu",chartLinkToolbarTooltip:"Linked to Grid",chartUnlinkToolbarTooltip:"Unlinked from Grid",chartDownloadToolbarTooltip:"Download Chart",histogramFrequency:"Frequency",seriesChartType:"Series Chart Type",seriesType:"Series Type",secondaryAxis:"Secondary Axis"},n=__decorate$L([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("chartTranslationService")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$K=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ChartCrossFilterService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return __extends$O(t,e),n=t,t.prototype.filter=function(e,t){void 0===t&&(t=!1);var r=this.gridApi.getFilterModel();if(t)this.resetFilters(r);else{var o=n.extractFilterColId(e);this.isValidColumnFilter(o)?this.updateFilters(r,e,o):console.warn("AG Grid: cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: '"+o+"'")}},t.prototype.resetFilters=function(e){Object.keys(e).length>0&&(this.gridApi.setFilterModel(null),this.gridApi.onFilterChanged())},t.prototype.updateFilters=function(e,t,r){var o,i=n.extractFilterColId(t),a=t.datum[i];if(void 0!==a){var s=a.toString();if(t.event.metaKey||t.event.ctrlKey){var l=this.getCurrentGridValuesForCategory(r),c=void 0;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(l,s)?c=l.filter(function(e){return e!==s}):(c=l).push(s),e[r]=this.getUpdatedFilterModel(r,c)}else c=[s],(o={})[r]=this.getUpdatedFilterModel(r,c),e=o;this.gridApi.setFilterModel(e)}},t.prototype.getUpdatedFilterModel=function(e,t){return"agMultiColumnFilter"===this.getColumnFilterType(e)?{filterType:"multi",filterModels:[null,{filterType:"set",values:t}]}:{filterType:"set",values:t}},t.prototype.getCurrentGridValuesForCategory=function(e){var t=this,n=[],r=this.getColumnById(e);return this.gridApi.forEachNodeAfterFilter(function(e){if(r&&!e.group){var o=t.valueService.getValue(r,e)+"";n.includes(o)||n.push(o)}}),n},t.extractFilterColId=function(e){return e.xKey||e.calloutLabelKey},t.prototype.isValidColumnFilter=function(e){e.indexOf("-filtered-out")&&(e=e.replace("-filtered-out",""));var t=this.getColumnFilterType(e);return"boolean"==typeof t?t:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(["agSetColumnFilter","agMultiColumnFilter"],t)},t.prototype.getColumnFilterType=function(e){var t=this.getColumnById(e);if(t){var n=t.getColDef();return null!=n.filter?n.filter:n.filterFramework}},t.prototype.getColumnById=function(e){return this.columnModel.getGridColumn(e)},__decorate$K([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$K([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$K([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueService")],t.prototype,"valueService",void 0),n=__decorate$K([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("chartCrossFilterService")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$N=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$9=function(){return __assign$9=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$9.apply(this,arguments)},__decorate$J=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$6=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$c(arguments[t]));return e},__values$3=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},RangeService=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellRanges=[],t.bodyScrollListener=t.onBodyScroll.bind(t),t.dragging=!1,t.intersectionRange=!1,t}return __extends$N(t,e),t.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,function(){return e.onColumnsChanged()}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_VISIBLE,this.onColumnsChanged.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_VALUE_CHANGED,this.onColumnsChanged.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return e.removeAllCellRanges()}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.removeAllCellRanges()}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.removeAllCellRanges()}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_GROUP_OPENED,this.refreshLastRangeStart.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_MOVED,this.refreshLastRangeStart.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PINNED,this.refreshLastRangeStart.bind(this)),this.ctrlsService.whenReady(function(){var t=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AutoScrollService({scrollContainer:t.getBodyViewportElement(),scrollAxis:"xy",getVerticalPosition:function(){return t.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(e){return t.getScrollFeature().setVerticalScrollPosition(e)},getHorizontalPosition:function(){return t.getScrollFeature().getHScrollPosition().left},setHorizontalPosition:function(e){return t.getScrollFeature().setHorizontalScrollPosition(e)},shouldSkipVerticalScroll:function(){return!e.gridOptionsService.isDomLayout("normal")},shouldSkipHorizontalScroll:function(){return!t.getScrollFeature().isHorizontalScrollShowing()}})})},t.prototype.onColumnsChanged=function(){var e=this;this.refreshLastRangeStart();var t=this.columnModel.getAllDisplayedColumns();this.cellRanges.forEach(function(n){var r=n.columns;n.columns=n.columns.filter(function(e){return e.isVisible()&&-1!==t.indexOf(e)}),!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.areEqual(r,n.columns)&&e.dispatchChangedEvent(!1,!0,n.id)});var n=this.cellRanges.length;this.cellRanges=this.cellRanges.filter(function(e){return e.columns.length>0}),n>this.cellRanges.length&&this.dispatchChangedEvent(!1,!0)},t.prototype.refreshLastRangeStart=function(){var e=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(this.cellRanges);e&&this.refreshRangeStart(e)},t.prototype.isContiguousRange=function(e){var t=e.columns;if(!t.length)return!1;var n=this.columnModel.getAllDisplayedColumns(),r=t.map(function(e){return n.indexOf(e)}).sort(function(e,t){return e-t});return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(r)-r[0]+1===t.length},t.prototype.getRangeStartRow=function(e){return e.startRow&&e.endRow?this.rowPositionUtils.before(e.startRow,e.endRow)?e.startRow:e.endRow:{rowIndex:0,rowPinned:this.pinnedRowModel.getPinnedTopRowCount()>0?"top":null}},t.prototype.getRangeEndRow=function(e){if(e.startRow&&e.endRow)return this.rowPositionUtils.before(e.startRow,e.endRow)?e.endRow:e.startRow;var t=this.pinnedRowModel.getPinnedBottomRowCount();return t>0?{rowIndex:t-1,rowPinned:"bottom"}:{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}},t.prototype.setRangeToCell=function(e,t){if(void 0===t&&(t=!1),this.gridOptionsService.isEnableRangeSelection()){var n=this.calculateColumnsBetween(e.column,e.column);if(n){(this.gridOptionsService.is("suppressMultiRangeSelection")||!t||ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(this.cellRanges))&&this.removeAllCellRanges(!0);var r={rowIndex:e.rowIndex,rowPinned:e.rowPinned},o={startRow:r,endRow:r,columns:n,startColumn:e.column};this.cellRanges.push(o),this.setNewestRangeStartCell(e),this.onDragStop(),this.dispatchChangedEvent(!0,!0)}}},t.prototype.extendLatestRangeToCell=function(e){if(!this.isEmpty()&&this.newestRangeStartCell){var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(this.cellRanges);this.updateRangeEnd(t,e)}},t.prototype.updateRangeEnd=function(e,t,n){void 0===n&&(n=!1);var r=t.column,o=this.calculateColumnsBetween(e.startColumn,r);o&&!this.isLastCellOfRange(e,t)&&(e.columns=o,e.endRow={rowIndex:t.rowIndex,rowPinned:t.rowPinned},n||this.dispatchChangedEvent(!0,!0,e.id))},t.prototype.refreshRangeStart=function(e){var t=e.startColumn,n=e.columns,r=function(t,n){var r=e.columns.filter(function(e){return e!==t});t?(e.startColumn=t,e.columns=n?__spread$6([t],r):__spread$6(r,[t])):e.columns=r},o=this.getRangeEdgeColumns(e),i=o.left,a=o.right;t===n[0]&&t!==i?r(i,!0):t===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(n)&&t===a&&r(a,!1)},t.prototype.getRangeEdgeColumns=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.columns.map(function(e){return t.indexOf(e)}).filter(function(e){return e>-1}).sort(function(e,t){return e-t});return{left:t[n[0]],right:t[ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(n)]}},t.prototype.extendLatestRangeInDirection=function(e){if(!this.isEmpty()&&this.newestRangeStartCell){var t=e.key,n=e.ctrlKey||e.metaKey,r=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(this.cellRanges),o=this.newestRangeStartCell,i=r.columns[0],a=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(r.columns),s=r.endRow.rowIndex,l=r.endRow.rowPinned,c={column:o.column===i?a:i,rowIndex:s,rowPinned:l},u=this.cellNavigationService.getNextCellToFocus(t,c,n);if(u)return this.setCellRange({rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:u.rowIndex,rowEndPinned:u.rowPinned,columnStart:o.column,columnEnd:u.column}),u}},t.prototype.setCellRange=function(e){this.gridOptionsService.isEnableRangeSelection()&&(this.removeAllCellRanges(!0),this.addCellRange(e))},t.prototype.setCellRanges=function(e){var t=this;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.shallowCompare(this.cellRanges,e)||(this.removeAllCellRanges(!0),e.forEach(function(e){e.columns&&e.startRow&&t.setNewestRangeStartCell({rowIndex:e.startRow.rowIndex,rowPinned:e.startRow.rowPinned,column:e.columns[0]}),t.cellRanges.push(e)}),this.dispatchChangedEvent(!1,!0))},t.prototype.setNewestRangeStartCell=function(e){this.newestRangeStartCell=e},t.prototype.clearCellRangeCellValues=function(e,t){var n=this;void 0===t&&(t="rangeService"),e||(e=this.cellRanges),e.forEach(function(e){n.forEachRowInRange(e,function(r){var o=n.rowPositionUtils.getRowNode(r);if(o)for(var i=0;i<e.columns.length;i++){var a=n.columnModel.getGridColumn(e.columns[i]);if(!a||!a.isCellEditable(o))return;o.setDataValue(a,null,t)}})})},t.prototype.createCellRangeFromCellRangeParams=function(e){var t,n=this,r=!1;if(e.columns)t=e.columns.map(function(e){return n.columnModel.getColumnWithValidation(e)}).filter(function(e){return e});else{var o=this.columnModel.getColumnWithValidation(e.columnStart),i=this.columnModel.getColumnWithValidation(e.columnEnd);if(!o||!i)return;(t=this.calculateColumnsBetween(o,i))&&t.length&&(r=t[0]!==o)}if(t)return{startRow:null!=e.rowStartIndex?{rowIndex:e.rowStartIndex,rowPinned:e.rowStartPinned||null}:void 0,endRow:null!=e.rowEndIndex?{rowIndex:e.rowEndIndex,rowPinned:e.rowEndPinned||null}:void 0,columns:t,startColumn:r?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(t):t[0]}},t.prototype.addCellRange=function(e){if(this.gridOptionsService.isEnableRangeSelection()){var t=this.createCellRangeFromCellRangeParams(e);t&&(t.startRow&&this.setNewestRangeStartCell({rowIndex:t.startRow.rowIndex,rowPinned:t.startRow.rowPinned,column:t.startColumn}),this.cellRanges.push(t),this.dispatchChangedEvent(!1,!0,t.id))}},t.prototype.getCellRanges=function(){return this.cellRanges},t.prototype.isEmpty=function(){return 0===this.cellRanges.length},t.prototype.isMoreThanOneCell=function(){var e=this.cellRanges.length;if(0===e)return!1;if(e>1)return!0;var t=this.cellRanges[0],n=this.getRangeStartRow(t),r=this.getRangeEndRow(t);return n.rowPinned!==r.rowPinned||n.rowIndex!==r.rowIndex||1!==t.columns.length},t.prototype.areAllRangesAbleToMerge=function(){var e,t,n,r=this,o=new Map;if(this.cellRanges.length<=1)return!0;this.cellRanges.forEach(function(e){r.forEachRowInRange(e,function(t){var n=(t.rowPinned||"normal")+"_"+t.rowIndex,r=o.get(n),i=e.columns.map(function(e){return e.getId()});if(r){var a=i.filter(function(e){return-1===r.indexOf(e)});r.push.apply(r,__spread$6(a))}else o.set(n,i)})});try{for(var i=__values$3(o.values()),a=i.next();!a.done;a=i.next()){var s=a.value.sort().join();if(void 0!==n){if(n!==s)return!1}else n=s}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return!0},t.prototype.forEachRowInRange=function(e,t){for(var n=this.getRangeStartRow(e),r=this.getRangeEndRow(e),o=n;o&&(t(o),!this.rowPositionUtils.sameRow(o,r));)o=this.cellNavigationService.getRowBelow(o)},t.prototype.removeAllCellRanges=function(e){this.isEmpty()||(this.onDragStop(),this.cellRanges.length=0,e||this.dispatchChangedEvent(!1,!0))},t.prototype.onBodyScroll=function(){this.dragging&&this.lastMouseEvent&&this.onDragging(this.lastMouseEvent)},t.prototype.isCellInAnyRange=function(e){return this.getCellRangeCount(e)>0},t.prototype.isCellInSpecificRange=function(e,t){var n=null!==t.columns&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(t.columns,e.column),r=this.isRowInRange(e.rowIndex,e.rowPinned,t);return n&&r},t.prototype.isLastCellOfRange=function(e,t){var n=e.startRow,r=e.endRow,o=this.rowPositionUtils.before(n,r)?r:n,i=t.rowIndex===o.rowIndex&&t.rowPinned===o.rowPinned,a=e.columns[0],s=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(e.columns),l=e.startColumn===a?s:a;return t.column===l&&i},t.prototype.isBottomRightCell=function(e,t){var n=this.columnModel.getAllDisplayedColumns(),r=e.columns.map(function(e){return n.indexOf(e)}).sort(function(e,t){return e-t}),o=e.startRow,i=e.endRow,a=this.rowPositionUtils.before(o,i)?i:o,s=n.indexOf(t.column)===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(r),l=t.rowIndex===a.rowIndex&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.makeNull(t.rowPinned)===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.makeNull(a.rowPinned);return s&&l},t.prototype.getCellRangeCount=function(e){var t=this;return this.isEmpty()?0:this.cellRanges.filter(function(n){return t.isCellInSpecificRange(e,n)}).length},t.prototype.isRowInRange=function(e,t,n){var r=this.getRangeStartRow(n),o=this.getRangeEndRow(n),i={rowIndex:e,rowPinned:t||null},a=i.rowIndex===r.rowIndex&&i.rowPinned==r.rowPinned,s=i.rowIndex===o.rowIndex&&i.rowPinned==o.rowPinned;if(a||s)return!0;var l=!this.rowPositionUtils.before(i,r),c=this.rowPositionUtils.before(i,o);return l&&c},t.prototype.getDraggingRange=function(){return this.draggingRange},t.prototype.onDragStart=function(e){if(this.gridOptionsService.isEnableRangeSelection()){var t=e.ctrlKey,n=e.metaKey,r=e.shiftKey,o=t||n,i=!this.gridOptionsService.is("suppressMultiRangeSelection")&&o,a=r&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.existsAndNotEmpty(this.cellRanges);i||a&&!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(this.cellRanges).type)||this.removeAllCellRanges(!0);var s=this.dragService.getStartTarget();if(s&&this.updateValuesOnMove(s),this.lastCellHovered){if(this.dragging=!0,this.lastMouseEvent=e,this.intersectionRange=i&&this.getCellRangeCount(this.lastCellHovered)>1,a||this.setNewestRangeStartCell(this.lastCellHovered),this.cellRanges.length>0)this.draggingRange=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(this.cellRanges);else{var l={rowIndex:this.lastCellHovered.rowIndex,rowPinned:this.lastCellHovered.rowPinned};this.draggingRange={startRow:l,endRow:l,columns:[this.lastCellHovered.column],startColumn:this.newestRangeStartCell.column},this.cellRanges.push(this.draggingRange)}this.ctrlsService.getGridBodyCtrl().addScrollEventListener(this.bodyScrollListener),this.dispatchChangedEvent(!0,!1,this.draggingRange.id)}}},t.prototype.intersectLastRange=function(e){var t=this;if(!(e&&this.dragging||this.gridOptionsService.is("suppressMultiRangeSelection")||this.isEmpty())){var n=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(this.cellRanges),r=this.getRangeStartRow(n),o=this.getRangeEndRow(n),i=[];this.cellRanges.slice(0,-1).forEach(function(e){var a=t.getRangeStartRow(e),s=t.getRangeEndRow(e),l=e.columns,c=l.filter(function(e){return-1===n.columns.indexOf(e)});if(c.length!==l.length)if(t.rowPositionUtils.before(o,a)||t.rowPositionUtils.before(s,r))i.push(e);else{var u=i.length;if(t.rowPositionUtils.before(a,r)){var d={columns:__spread$6(l),startColumn:n.startColumn,startRow:__assign$9({},a),endRow:t.cellNavigationService.getRowAbove(r)};i.push(d)}if(c.length>0){var p={columns:c,startColumn:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.includes(c,n.startColumn)?n.startColumn:c[0],startRow:t.rowPositionUtils.rowMax([__assign$9({},r),__assign$9({},a)]),endRow:t.rowPositionUtils.rowMin([__assign$9({},o),__assign$9({},s)])};i.push(p)}t.rowPositionUtils.before(o,s)&&i.push({columns:__spread$6(l),startColumn:n.startColumn,startRow:t.cellNavigationService.getRowBelow(o),endRow:__assign$9({},s)}),i.length-u===1&&(i[i.length-1].id=e.id)}else i.push(e)}),this.cellRanges=i,e&&this.dispatchChangedEvent(!1,!0)}},t.prototype.updateValuesOnMove=function(e){var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.getCtrlForEventTarget(this.gridOptionsService,e,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellCtrl.DOM_DATA_KEY_CELL_CTRL),n=null==t?void 0:t.getCellPosition();this.cellHasChanged=!1,!n||this.lastCellHovered&&this.cellPositionUtils.equals(n,this.lastCellHovered)||(this.lastCellHovered&&(this.cellHasChanged=!0),this.lastCellHovered=n)},t.prototype.onDragging=function(e){var t=this;if(this.dragging&&e){this.updateValuesOnMove(e.target),this.lastMouseEvent=e;var n=this.lastCellHovered,r=function(e){return n&&n.rowPinned===e&&t.newestRangeStartCell.rowPinned===e},o=r("top")||r("bottom");if(this.autoScrollService.check(e,o),this.cellHasChanged){var i=this.calculateColumnsBetween(this.newestRangeStartCell.column,n.column);i&&(this.draggingRange.endRow={rowIndex:n.rowIndex,rowPinned:n.rowPinned},this.draggingRange.columns=i,this.dispatchChangedEvent(!1,!1,this.draggingRange.id))}}},t.prototype.onDragStop=function(){if(this.dragging){var e=this.draggingRange.id;this.autoScrollService.ensureCleared(),this.ctrlsService.getGridBodyCtrl().removeScrollEventListener(this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.draggingRange=void 0,this.lastCellHovered=void 0,this.intersectionRange&&(this.intersectionRange=!1,this.intersectLastRange()),this.dispatchChangedEvent(!1,!0,e)}},t.prototype.dispatchChangedEvent=function(e,t,n){var r={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_RANGE_SELECTION_CHANGED,started:e,finished:t,id:n};this.eventService.dispatchEvent(r)},t.prototype.calculateColumnsBetween=function(e,t){var n=this.columnModel.getAllDisplayedColumns(),r=e===t,o=n.indexOf(e);if(o<0)console.warn("AG Grid: column "+e.getId()+" is not visible");else{var i=r?o:n.indexOf(t);if(!(i<0)){if(r)return[e];for(var a=Math.min(o,i),s=a===o?i:o,l=[],c=a;c<=s;c++)l.push(n[c]);return l}console.warn("AG Grid: column "+t.getId()+" is not visible")}},__decorate$J([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowModel")],t.prototype,"rowModel",void 0),__decorate$J([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("dragService")],t.prototype,"dragService",void 0),__decorate$J([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$J([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("cellNavigationService")],t.prototype,"cellNavigationService",void 0),__decorate$J([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),__decorate$J([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),__decorate$J([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),__decorate$J([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ctrlsService")],t.prototype,"ctrlsService",void 0),__decorate$J([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),__decorate$J([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("rangeService")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$I=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},AbstractSelectionHandle=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changedCalculatedValues=!1,t.dragging=!1,t.shouldDestroyOnEndDragging=!1,t}return __extends$M(t,e),t.prototype.init=function(){var e=this;this.dragService.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:function(t){e.dragging=!0,e.rangeService.autoScrollService.check(t),e.changedCalculatedValues&&(e.onDrag(t),e.changedCalculatedValues=!1)},onDragStop:function(t){e.dragging=!1,e.onDragEnd(t),e.clearValues(),e.rangeService.autoScrollService.ensureCleared(),document.body.classList.remove(e.getDraggingCssClass()),e.shouldDestroyOnEndDragging&&e.destroy()}}),this.addManagedListener(this.getGui(),"mousedown",this.preventRangeExtension.bind(this))},t.prototype.isDragging=function(){return this.dragging},t.prototype.getCellCtrl=function(){return this.cellCtrl},t.prototype.setCellCtrl=function(e){this.cellCtrl=e},t.prototype.getCellRange=function(){return this.cellRange},t.prototype.setCellRange=function(e){this.cellRange=e},t.prototype.getRangeStartRow=function(){return this.rangeStartRow},t.prototype.setRangeStartRow=function(e){this.rangeStartRow=e},t.prototype.getRangeEndRow=function(){return this.rangeEndRow},t.prototype.setRangeEndRow=function(e){this.rangeEndRow=e},t.prototype.getLastCellHovered=function(){return this.lastCellHovered},t.prototype.preventRangeExtension=function(e){e.stopPropagation()},t.prototype.onDragStart=function(e){this.cellHoverListener=this.addManagedListener(this.ctrlsService.getGridCtrl().getGui(),"mousemove",this.updateValuesOnMove.bind(this)),document.body.classList.add(this.getDraggingCssClass())},t.prototype.getDraggingCssClass=function(){return"ag-dragging-"+(this.type===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.SelectionHandleType.FILL?"fill":"range")+"-handle"},t.prototype.updateValuesOnMove=function(e){var t=this.mouseEventService.getCellPositionForEvent(e);!t||this.lastCellHovered&&this.cellPositionUtils.equals(t,this.lastCellHovered)||(this.lastCellHovered=t,this.changedCalculatedValues=!0)},t.prototype.getType=function(){return this.type},t.prototype.refresh=function(e){var t=this.getCellCtrl(),n=this.getGui(),r=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(this.rangeService.getCellRanges()),o=r.startRow,i=r.endRow;if(o&&i&&(this.rowPositionUtils.before(i,o)?(this.setRangeStartRow(i),this.setRangeEndRow(o)):(this.setRangeStartRow(o),this.setRangeEndRow(i))),t!==e||!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.isVisible(n)){this.setCellCtrl(e);var a=e.getComp().getParentOfValue();a&&a.appendChild(n)}this.setCellRange(r)},t.prototype.clearValues=function(){this.lastCellHovered=void 0,this.removeListeners()},t.prototype.removeListeners=function(){this.cellHoverListener&&(this.cellHoverListener(),this.cellHoverListener=void 0)},t.prototype.destroy=function(){if(!this.shouldDestroyOnEndDragging&&this.isDragging())return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.getGui(),!1),void(this.shouldDestroyOnEndDragging=!0);this.shouldDestroyOnEndDragging=!1,e.prototype.destroy.call(this),this.removeListeners();var t=this.getGui();t.parentElement&&t.parentElement.removeChild(t)},__decorate$I([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowRenderer")],t.prototype,"rowRenderer",void 0),__decorate$I([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("dragService")],t.prototype,"dragService",void 0),__decorate$I([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rangeService")],t.prototype,"rangeService",void 0),__decorate$I([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("mouseEventService")],t.prototype,"mouseEventService",void 0),__decorate$I([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$I([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("cellNavigationService")],t.prototype,"cellNavigationService",void 0),__decorate$I([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("navigationService")],t.prototype,"navigationService",void 0),__decorate$I([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),__decorate$I([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),__decorate$I([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ctrlsService")],t.prototype,"ctrlsService",void 0),__decorate$I([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component);function findLineByLeastSquares(e){var t=e.length,n=0;if(t<=1)return e;for(var r=0;r<e.length;r++){var o=e[r],i=o.toString().split("e-");i.length>1?n=Math.max(n,parseInt(i[1],10)):Math.floor(o)!==o&&(n=Math.max(n,o.toString().split(".")[1].length))}for(var a=0,s=0,l=0,c=0,u=0,d=0;d<t;d++)a+=d,s+=u=e[d],c+=d*d,l+=d*u;var p=(t*l-a*s)/(t*c-a*a),h=s/t-p*a/t,f=[];for(d=0;d<=t;d++)f.push(parseFloat((d*p+h).toFixed(n)));return f}var __extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$8=function(){return __assign$8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$8.apply(this,arguments)},__decorate$H=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$b=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$5=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$b(arguments[t]));return e},FillHandle=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.markedCells=[],n.cellValues=[],n.isUp=!1,n.isLeft=!1,n.isReduce=!1,n.type=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.SelectionHandleType.FILL,n}return __extends$L(t,e),t.prototype.updateValuesOnMove=function(t){e.prototype.updateValuesOnMove.call(this,t),this.initialXY||(this.initialXY=this.mouseEventService.getNormalisedPosition(t));var n,r=this.initialXY,o=r.x,i=r.y,a=this.mouseEventService.getNormalisedPosition(t),s=a.x,l=a.y,c=Math.abs(o-s),u=Math.abs(i-l),d=this.getFillHandleDirection();(n="xy"===d?c>u?"x":"y":d)!==this.dragAxis&&(this.dragAxis=n,this.changedCalculatedValues=!0)},t.prototype.onDrag=function(e){if(!this.initialPosition){var t=this.getCellCtrl();if(!t)return;this.initialPosition=t.getCellPosition()}var n=this.getLastCellHovered();n&&this.markPathFrom(this.initialPosition,n)},t.prototype.onDragEnd=function(e){if(this.initialXY=null,this.markedCells.length){var t,n="x"===this.dragAxis,r=this.getCellRange(),o=r.columns.length,i=this.getRangeStartRow(),a=this.getRangeEndRow();if(this.isUp||this.isLeft){var s=n?i:this.lastCellMarked;t=this.rangeService.createCellRangeFromCellRangeParams({rowStartIndex:s.rowIndex,rowStartPinned:s.rowPinned,columnStart:n?this.lastCellMarked.column:r.columns[0],rowEndIndex:a.rowIndex,rowEndPinned:a.rowPinned,columnEnd:r.columns[o-1]})}else t=this.rangeService.createCellRangeFromCellRangeParams({rowStartIndex:i.rowIndex,rowStartPinned:i.rowPinned,columnStart:r.columns[0],rowEndIndex:n?a.rowIndex:this.lastCellMarked.rowIndex,rowEndPinned:n?a.rowPinned:this.lastCellMarked.rowPinned,columnEnd:n?this.lastCellMarked.column:r.columns[o-1]});t&&(this.raiseFillStartEvent(),this.handleValueChanged(r,t,e),this.rangeService.setCellRanges([t]),this.raiseFillEndEvent(r,t))}},t.prototype.getFillHandleDirection=function(){var e=this.gridOptionsService.get("fillHandleDirection");return e?"x"!==e&&"y"!==e&&"xy"!==e?(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")},"warn invalid fill direction"),"xy"):e:"xy"},t.prototype.raiseFillStartEvent=function(){var e={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_FILL_START};this.eventService.dispatchEvent(e)},t.prototype.raiseFillEndEvent=function(e,t){var n={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_FILL_END,initialRange:e,finalRange:t};this.eventService.dispatchEvent(n)},t.prototype.handleValueChanged=function(e,t,n){var r=this,o=this.rangeService.getRangeEndRow(e),i=this.rangeService.getRangeStartRow(e),a=this.rangeService.getRangeEndRow(t),s=this.rangeService.getRangeStartRow(t),l="y"===this.dragAxis;if(!this.isReduce||this.gridOptionsService.is("suppressClearOnFillReduction")){var c=!0,u=[],d=[],p=0,h=function(){u.length=0,d.length=0,p=0},f=function(t,n){var d=r.isUp?o:i,p=!1;l&&(c=!0,h());for(var f=function(){var f=r.rowPositionUtils.getRowNode(d);if(!f)return"break";l&&t?g(u,t,f,function(){return!r.rowPositionUtils.sameRow(d,r.isUp?i:o)}):n&&(c=!0,h(),n.forEach(function(t){return g(u,t,f,function(){return t!==(r.isLeft?e.columns[0]:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(e.columns))})})),p=r.rowPositionUtils.sameRow(d,r.isUp?s:a),d=r.isUp?r.cellNavigationService.getRowAbove(d):r.cellNavigationService.getRowBelow(d)};!p&&d&&"break"!==f(););},g=function(e,t,o,i){var a,s=!1;if(c)a=r.valueService.getValue(t,o),d.push(a),c=i();else{var l=r.processValues(n,e,d,t,o,p++),u=l.value,h=l.fromUserFunction;if(a=u,t.isCellEditable(o)){var f=r.valueService.getValue(t,o);h&&f===a?s=!0:o.setDataValue(t,a,"rangeService")}}s||e.push(a)};l?e.columns.forEach(function(e){f(e)}):(m=this.isLeft?__spread$5(t.columns).reverse():t.columns,f(void 0,m))}else{var m=l?e.columns:e.columns.filter(function(e){return t.columns.indexOf(e)<0}),v=l?this.cellNavigationService.getRowBelow(a):s;v&&this.clearCellsInRange(v,o,m)}},t.prototype.clearCellsInRange=function(e,t,n){var r={startRow:e,endRow:t,columns:n,startColumn:n[0]};this.rangeService.clearCellRangeCellValues([r])},t.prototype.processValues=function(e,t,n,r,o,i){var a,s=this.gridOptionsService.getCallback("fillOperation");if(a="y"===this.dragAxis?this.isUp?"up":"down":this.isLeft?"left":"right",s){var l=s({event:e,values:t,initialValues:n,currentIndex:i,currentCellValue:this.valueService.getValue(r,o),direction:a,column:r,rowNode:o});if(!1!==l)return{value:l,fromUserFunction:!0}}var c=!t.some(function(e){var t=parseFloat(e);return isNaN(t)||t.toString()!==e.toString()});if(e.altKey||!c){if(c&&1===n.length){var u=this.isUp||this.isLeft?-1:1;return{value:parseFloat(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(t))+1*u,fromUserFunction:!1}}return{value:t[i%t.length],fromUserFunction:!1}}return{value:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(findLineByLeastSquares(t.map(Number))),fromUserFunction:!1}},t.prototype.clearValues=function(){this.clearMarkedPath(),this.clearCellValues(),this.lastCellMarked=void 0,e.prototype.clearValues.call(this)},t.prototype.clearMarkedPath=function(){this.markedCells.forEach(function(e){if(e.isAlive()){var t=e.getComp();t.addOrRemoveCssClass("ag-selection-fill-top",!1),t.addOrRemoveCssClass("ag-selection-fill-right",!1),t.addOrRemoveCssClass("ag-selection-fill-bottom",!1),t.addOrRemoveCssClass("ag-selection-fill-left",!1)}}),this.markedCells.length=0,this.isUp=!1,this.isLeft=!1,this.isReduce=!1},t.prototype.clearCellValues=function(){this.cellValues.length=0},t.prototype.markPathFrom=function(e,t){if(this.clearMarkedPath(),this.clearCellValues(),"y"===this.dragAxis){if(this.rowPositionUtils.sameRow(t,e))return;var n=this.rowPositionUtils.before(t,e),r=this.getRangeStartRow(),o=this.getRangeEndRow();n&&(t.rowPinned==r.rowPinned&&t.rowIndex>=r.rowIndex||r.rowPinned!=o.rowPinned&&t.rowPinned==o.rowPinned&&t.rowIndex<=o.rowIndex)?(this.reduceVertical(e,t),this.isReduce=!0):(this.extendVertical(e,t,n),this.isReduce=!1)}else{var i=e.column,a=t.column;if(i===a)return;var s=this.columnModel.getAllDisplayedColumns(),l=s.indexOf(i),c=s.indexOf(a);c<=l&&c>=s.indexOf(this.getCellRange().columns[0])?(this.reduceHorizontal(e,t),this.isReduce=!0):(this.extendHorizontal(e,t,c<l),this.isReduce=!1)}this.lastCellMarked=t},t.prototype.extendVertical=function(e,t,n){var r=this.navigationService,o=this.rangeService,i=e;do{for(var a=this.getCellRange(),s=a.columns.length,l=0;l<s;l++){var c=a.columns[l],u={rowIndex:i.rowIndex,rowPinned:i.rowPinned},d=__assign$8(__assign$8({},u),{column:c}),p=o.isCellInSpecificRange(d,a),h=this.rowPositionUtils.sameRow(i,e);if(n&&(this.isUp=!0),!h){var f=r.getCellByPosition(d);if(f){this.markedCells.push(f);var g=f.getComp();p||(g.addOrRemoveCssClass("ag-selection-fill-left",0===l),g.addOrRemoveCssClass("ag-selection-fill-right",l===s-1)),g.addOrRemoveCssClass(n?"ag-selection-fill-top":"ag-selection-fill-bottom",this.rowPositionUtils.sameRow(i,t))}}}if(this.rowPositionUtils.sameRow(i,t))break}while(i=n?this.cellNavigationService.getRowAbove(i):this.cellNavigationService.getRowBelow(i))},t.prototype.reduceVertical=function(e,t){var n=e;do{for(var r=this.getCellRange(),o=r.columns.length,i=this.rowPositionUtils.sameRow(n,t),a=0;a<o;a++){var s={rowIndex:n.rowIndex,rowPinned:n.rowPinned},l=__assign$8(__assign$8({},s),{column:r.columns[a]}),c=this.navigationService.getCellByPosition(l);c&&(this.markedCells.push(c),c.getComp().addOrRemoveCssClass("ag-selection-fill-bottom",this.rowPositionUtils.sameRow(n,t)))}if(i)break}while(n=this.cellNavigationService.getRowAbove(n))},t.prototype.extendHorizontal=function(e,t,n){var r=this,o=this.columnModel.getAllDisplayedColumns(),i=o.indexOf(n?t.column:e.column),a=o.indexOf(n?this.getCellRange().columns[0]:t.column),s=n?0:1,l=o.slice(i+s,a+s),c=this.getRangeStartRow(),u=this.getRangeEndRow();l.forEach(function(e){var t=c,o=!1;do{o=r.rowPositionUtils.sameRow(t,u);var i=r.navigationService.getCellByPosition({rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:e});if(i){r.markedCells.push(i);var a=i.getComp();a.addOrRemoveCssClass("ag-selection-fill-top",r.rowPositionUtils.sameRow(t,c)),a.addOrRemoveCssClass("ag-selection-fill-bottom",r.rowPositionUtils.sameRow(t,u)),n?(r.isLeft=!0,a.addOrRemoveCssClass("ag-selection-fill-left",e===l[0])):a.addOrRemoveCssClass("ag-selection-fill-right",e===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(l))}t=r.cellNavigationService.getRowBelow(t)}while(!o)})},t.prototype.reduceHorizontal=function(e,t){var n=this,r=this.columnModel.getAllDisplayedColumns(),o=r.indexOf(t.column),i=r.indexOf(e.column),a=r.slice(o,i),s=this.getRangeStartRow(),l=this.getRangeEndRow();a.forEach(function(e){var t=s,r=!1;do{r=n.rowPositionUtils.sameRow(t,l);var o=n.navigationService.getCellByPosition({rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:e});o&&(n.markedCells.push(o),o.getComp().addOrRemoveCssClass("ag-selection-fill-right",e===a[0])),t=n.cellNavigationService.getRowBelow(t)}while(!r)})},t.prototype.refresh=function(t){var n=this.rangeService.getCellRanges()[0];n.startRow&&n.endRow?e.prototype.refresh.call(this,t):this.destroy()},t.TEMPLATE='<div class="ag-fill-handle"></div>',__decorate$H([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueService")],t.prototype,"valueService",void 0),t}(AbstractSelectionHandle),__extends$K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$7=function(){return __assign$7=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$7.apply(this,arguments)},RangeHandle=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.type=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.SelectionHandleType.RANGE,n.rangeFixed=!1,n}return __extends$K(t,e),t.prototype.onDrag=function(e){var t=this.getLastCellHovered();if(t){var n=this.rangeService.getCellRanges(),r=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(n);this.rangeFixed||(this.fixRangeStartEnd(r),this.rangeFixed=!0),this.endPosition={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column},2===n.length&&n[0].type===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellRangeType.DIMENSION&&r.type===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.CellRangeType.VALUE&&!this.rowPositionUtils.sameRow(this.endPosition,this.rangeService.getRangeEndRow(r))&&this.rangeService.updateRangeEnd(n[0],__assign$7(__assign$7({},this.endPosition),{column:n[0].columns[0]}),!0),this.rangeService.extendLatestRangeToCell(this.endPosition)}},t.prototype.onDragEnd=function(e){var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(this.rangeService.getCellRanges());this.fixRangeStartEnd(t),this.rangeFixed=!1},t.prototype.fixRangeStartEnd=function(e){var t=this.rangeService.getRangeStartRow(e),n=this.rangeService.getRangeEndRow(e),r=e.columns[0];e.startRow=t,e.endRow=n,e.startColumn=r},t.TEMPLATE='<div class="ag-range-handle"></div>',t}(AbstractSelectionHandle),__extends$J=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$G=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SelectionHandleFactory=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$J(t,e),t.prototype.createSelectionHandle=function(e){return this.createBean(e===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.SelectionHandleType.RANGE?new RangeHandle:new FillHandle)},__decorate$G([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("selectionHandleFactory")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),VERSION$9="29.3.3",RangeSelectionModule={version:VERSION$9,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.RangeSelectionModule,beans:[RangeService,SelectionHandleFactory],agStackComponents:[{componentName:"AgFillHandle",componentClass:FillHandle},{componentName:"AgRangeHandle",componentClass:RangeHandle}],dependantModules:[EnterpriseCoreModule]},__extends$I=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$F=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},AgColorPanel=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.H=1,r.S=1,r.B=1,r.A=1,r.isSpectrumDragging=!1,r.isSpectrumHueDragging=!1,r.isSpectrumAlphaDragging=!1,r.colorChanged=!1,r.picker=n.picker,r}return __extends$I(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var n=e.clientX-t.left,r=e.clientY-t.top;n=Math.max(n,0),n=Math.min(n,t.width),r=Math.max(r,0),r=Math.min(r,t.height),this.setSpectrumValue(n/t.width,1-r/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var n=this.spectrumHueSlider,r=n.getBoundingClientRect(),o=e.clientX-t.left;o=Math.max(o,0),o=Math.min(o,t.width),this.H=1-o/t.width,n.style.left=o+r.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var n=this.spectrumAlphaSlider,r=n.getBoundingClientRect(),o=e.clientX-t.left;o=Math.max(o,0),o=Math.min(o,t.width),this.A=o/t.width,n.style.left=o+r.width/2+"px",this.update()}},t.prototype.update=function(){var e=Color.fromHSB(360*this.H,this.S,this.B,this.A),t=Color.fromHSB(360*this.H,1,1),n=e.toRgbaString(),r=this.picker;Color.fromString(r.getValue()).toRgbaString()!==n&&(this.colorChanged=!0),r.setValue(n),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=n},t.prototype.setSpectrumValue=function(e,t){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var r=this.spectrumDragger,o=r.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,r.style.left=e*n.width-o.width/2+"px",r.style.top=(1-t)*n.height-o.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors.map(function(e,t){return'<div class="ag-recent-color" id='+t+' style="background-color: '+e+'; width: 15px; height: 15px;" recent-color="'+e+'"></div>'});this.recentColors.innerHTML=e.join("")},t.prototype.setValue=function(e){var t=Color.fromString(e),n=__read$a(t.toHSB(),3),r=n[0],o=n[1],i=n[2];this.H=(isNaN(r)?0:r)/360,this.A=t.a;var a=this.spectrumHueRect||this.refreshHueRect(),s=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-a.width+"px",this.spectrumAlphaSlider.style.left=this.A*s.width+"px",this.setSpectrumValue(o,i)},t.prototype.onRecentColorClick=function(e){var n=e.target;if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(n.id)){var r=parseInt(n.id,10);this.setValue(t.recentColors[r]),this.destroy()}},t.prototype.addRecentColor=function(){var e=Color.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>',__decorate$F([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("spectrumColor")],t.prototype,"spectrumColor",void 0),__decorate$F([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("spectrumVal")],t.prototype,"spectrumVal",void 0),__decorate$F([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("spectrumDragger")],t.prototype,"spectrumDragger",void 0),__decorate$F([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("spectrumHue")],t.prototype,"spectrumHue",void 0),__decorate$F([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),__decorate$F([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),__decorate$F([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),__decorate$F([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("recentColors")],t.prototype,"recentColors",void 0),__decorate$F([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),AgColorPicker=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 __extends$H(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 ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgDialog({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"),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaExpanded(this.eWrapper,!0);var r=this.createBean(new AgColorPanel({picker:this}));return r.addDestroyFunc(function(){n.isAlive()&&e.destroyBean(n)}),n.setParentComponent(this),n.setBodyComponent(r),r.setValue(this.getValue()),n.addDestroyFunc(function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,r.isAlive()&&e.destroyBean(r)),e.isAlive()&&(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaExpanded(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}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPickerField),__read$9=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},VERSION_CHECKING_FIRST_GRID_MAJOR_VERSION=28,VERSION_CHECKING_FIRST_CHARTS_MAJOR_VERSION=6;function isValidVersion(e){return e&&e.match(/\d+\.\d+\.\d+/)}function isValidMajorVersion(e){var t=e.gridMajorVersion,n=e.chartsMajorVersion,r=parseInt(t,10),o=parseInt(n,10),i=r-VERSION_CHECKING_FIRST_GRID_MAJOR_VERSION;return i===o-VERSION_CHECKING_FIRST_CHARTS_MAJOR_VERSION&&i>=0}function gridChartVersion(e){if(e&&isValidVersion(e)){var t=__read$9(e.split(".")||[],2),n=t[0],r=t[1],o=n+"."+r+".x",i=parseInt(n,10)-VERSION_CHECKING_FIRST_GRID_MAJOR_VERSION+VERSION_CHECKING_FIRST_CHARTS_MAJOR_VERSION;if(!(i<0))return{gridMajorMinor:o,chartsMajorMinor:i+"."+r+".x"}}}function validGridChartsVersionErrorMessage(e){var t=e.type,n=e.gridVersion,r=e.chartsVersion,o="AG Grid: AG Grid version is incompatible. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.";if(!n)return o;var i=gridChartVersion(n);if(!i)return o;var a=i.gridMajorMinor,s=i.chartsMajorMinor;return"incompatible"===t?"AG Grid version "+n+" and AG Charts version "+r+" is not supported. AG Grid version "+a+" should be used with AG Chart "+s+". Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.":"invalidCharts"===t?"AG Grid version "+a+" should be used with AG Chart "+s+". Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.":o}function validGridChartsVersion(e){var t=e.gridVersion,n=e.chartsVersion;if(!isValidVersion(n))return{isValid:!1,message:validGridChartsVersionErrorMessage({type:"invalidCharts",gridVersion:t,chartsVersion:n})};if(!isValidVersion(t))return{isValid:!1,message:validGridChartsVersionErrorMessage({type:"invalidGrid",gridVersion:t,chartsVersion:n})};var r=__read$9(t.split(".")||[],2),o=r[0],i=r[1],a=__read$9(n.split(".")||[],2),s=a[0],l=a[1],c=isValidMajorVersion({gridMajorVersion:o,chartsMajorVersion:s});return c&&i===l?{isValid:!0}:c&&i===l?{isValid:!1,message:validGridChartsVersionErrorMessage({type:"invalid",gridVersion:t,chartsVersion:n})}:{isValid:!1,message:validGridChartsVersionErrorMessage({type:"incompatible",gridVersion:t,chartsVersion:n})}}var GridChartsModule={version:VERSION$a,validate:function(){return validGridChartsVersion({gridVersion:VERSION$a,chartsVersion:ChartService.CHARTS_VERSION})},moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.GridChartsModule,beans:[ChartService,ChartTranslationService,ChartCrossFilterService],agStackComponents:[{componentName:"AgColorPicker",componentClass:AgColorPicker},{componentName:"AgAngleSelect",componentClass:AgAngleSelect}],dependantModules:[RangeSelectionModule,EnterpriseCoreModule]},__FORCE_MODULE_DETECTION_AG_GRID_CORE_EXT=0,agCharts={time,AgChart},__extends$G=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$6=function(){return __assign$6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$6.apply(this,arguments)},__decorate$E=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},DetailCellRendererCtrl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.loadRowDataVersion=0,t.needRefresh=!1,t}return __extends$G(t,e),t.prototype.init=function(e,t){var n=this;this.params=t,this.comp=e,null!=t.pinned||(this.setAutoHeightClasses(),this.setupRefreshStrategy(),this.addThemeToDetailGrid(),this.createDetailGrid(),this.loadRowData(),this.addManagedListener(t.node.parent,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNode.EVENT_DATA_CHANGED,function(){n.needRefresh=!0}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_FULL_WIDTH_ROW_FOCUSED,this.onFullWidthRowFocused.bind(this)))},t.prototype.onFullWidthRowFocused=function(e){var t=this.params,n={rowIndex:t.node.rowIndex,rowPinned:t.node.rowPinned},r={rowIndex:e.rowIndex,rowPinned:e.rowPinned};this.rowPositionUtils.sameRow(n,r)&&this.focusService.focusInto(this.comp.getGui(),e.fromBelow)},t.prototype.setAutoHeightClasses=function(){var e=this.gridOptionsService.is("detailRowAutoHeight"),t=e?"ag-details-row-auto-height":"ag-details-row-fixed-height",n=e?"ag-details-grid-auto-height":"ag-details-grid-fixed-height";this.comp.addOrRemoveCssClass(t,!0),this.comp.addOrRemoveDetailGridCssClass(n,!0)},t.prototype.setupRefreshStrategy=function(){var e=this.params.refreshStrategy;"everything"==e||"nothing"==e||"rows"==e?this.refreshStrategy=e:(null!=e&&console.warn("AG Grid: invalid cellRendererParams.refreshStrategy = '"+e+"' supplied, defaulting to refreshStrategy = 'rows'."),this.refreshStrategy="rows")},t.prototype.addThemeToDetailGrid=function(){var e=this.environment.getTheme().theme;e&&this.comp.addOrRemoveDetailGridCssClass(e,!0)},t.prototype.createDetailGrid=function(){if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(this.params.detailGridOptions))console.warn("AG Grid: could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions");else{var e=this.gridOptionsService.is("detailRowAutoHeight"),t=__assign$6({},this.params.detailGridOptions);e&&(t.domLayout="autoHeight"),this.comp.setDetailGrid(t)}},t.prototype.registerDetailWithMaster=function(e,t){var n=this.params.node.id,r=this.params.api,o={id:n,api:e,columnApi:t},i=this.params.node;r.addDetailGridInfo(n,o),i.detailGridInfo=o,this.addDestroyFunc(function(){i.detailGridInfo===o&&(r.removeDetailGridInfo(n),i.detailGridInfo=null)})},t.prototype.loadRowData=function(){var e=this;this.loadRowDataVersion++;var t=this.loadRowDataVersion,n=this.params.getDetailRowData;n?n({node:this.params.node,data:this.params.node.data,successCallback:function(n){e.loadRowDataVersion===t&&e.comp.setRowData(n)},context:this.gridOptionsService.context}):console.warn("AG Grid: could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData")},t.prototype.refresh=function(){var e=!0;return this.needRefresh&&"nothing"!==this.refreshStrategy?(this.needRefresh=!1,"everything"!==this.refreshStrategy&&(this.loadRowData(),e)):e},__decorate$E([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),__decorate$E([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("focusService")],t.prototype,"focusService",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$D=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},DetailCellRenderer=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$F(t,e),t.prototype.init=function(e){var t=this;this.params=e,this.selectAndSetTemplate();var n={addOrRemoveCssClass:function(e,n){return t.addOrRemoveCssClass(e,n)},addOrRemoveDetailGridCssClass:function(e,n){return t.eDetailGrid.classList.toggle(e,n)},setDetailGrid:function(e){return t.setDetailGrid(e)},setRowData:function(e){return t.setRowData(e)},getGui:function(){return t.eDetailGrid}};this.ctrl=this.createManagedBean(new DetailCellRendererCtrl),this.ctrl.init(n,e)},t.prototype.refresh=function(){return this.ctrl&&this.ctrl.refresh()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.selectAndSetTemplate=function(){var e=this;if(this.params.pinned)this.setTemplate('<div class="ag-details-row"></div>');else{var n=function(){e.setTemplate(t.TEMPLATE)};if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(this.params.template))n();else if("string"==typeof this.params.template)this.setTemplate(this.params.template);else if("function"==typeof this.params.template){var r=(0,this.params.template)(this.params);this.setTemplate(r)}else console.warn("AG Grid: detailCellRendererParams.template should be function or string"),n();null==this.eDetailGrid&&console.warn('AG Grid: reference to eDetailGrid was missing from the details template. Please add ref="eDetailGrid" to the template.')}},t.prototype.setDetailGrid=function(e){if(this.eDetailGrid){var t=this.context.getBean("agGridReact"),n=t?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.cloneObject(t):void 0,r=this.context.getBean("frameworkComponentWrapper"),o=this.getFrameworkOverrides();new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Grid(this.eDetailGrid,e,{frameworkOverrides:o,providedBeanInstances:{agGridReact:n,frameworkComponentWrapper:r}}),this.detailApi=e.api,this.ctrl.registerDetailWithMaster(e.api,e.columnApi),this.addDestroyFunc(function(){e.api&&e.api.destroy()})}},t.prototype.setRowData=function(e){this.detailApi&&this.detailApi.setRowData(e)},t.TEMPLATE='<div class="ag-details-row" role="gridcell">\n            <div ref="eDetailGrid" class="ag-details-grid" role="presentation"></div>\n        </div>',__decorate$D([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eDetailGrid")],t.prototype,"eDetailGrid",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),VERSION$8="29.3.3",MasterDetailModule={version:VERSION$8,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.MasterDetailModule,beans:[],userComponents:[{componentName:"agDetailCellRenderer",componentClass:DetailCellRenderer}],controllers:[{controllerName:"detailCellRenderer",controllerClass:DetailCellRendererCtrl}],dependantModules:[EnterpriseCoreModule]},__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$C=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},EnterpriseMenuFactory=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$E(t,e),t.prototype.hideActiveMenu=function(){this.destroyBean(this.activeMenu)},t.prototype.showMenuAfterMouseEvent=function(e,t,n){var r=this;this.showMenu(e,function(o){var i=o.getGui();r.popupService.positionPopupUnderMouseEvent({type:"columnMenu",column:e,mouseEvent:t,ePopup:i}),n&&o.showTab(n)},"columnMenu",n,void 0,t.target)},t.prototype.showMenuAfterButtonClick=function(e,t,n,r,o){var i=this,a=-1,s="left";this.gridOptionsService.is("enableRtl")&&(a=1,s="right"),this.showMenu(e,function(o){var l=o.getGui();i.popupService.positionPopupByComponent({type:n,column:e,eventSource:t,ePopup:l,alignSide:s,nudgeX:9*a,nudgeY:-23,position:"under",keepWithinBounds:!0}),r&&o.showTab(r)},n,r,o,t)},t.prototype.showMenu=function(e,t,n,r,o,i){var a=this,s=this.getMenuParams(e,o,i),l=s.menu,c=s.eMenuGui,u=s.currentHeaderPosition,d=s.currentColumnIndex,p=s.anchorToElement,h=[];h.push(this.getClosedCallback(e,l,u,d,i));var f=this.localeService.getLocaleTextFunc(),g=this.popupService.addPopup({modal:!0,eChild:c,closeOnEsc:!0,closedCallback:function(e){h.forEach(function(t){return t(e)})},afterGuiAttached:function(e){return l.afterGuiAttached(Object.assign({},{container:n},e))},positionCallback:r?function(){return t(l)}:void 0,anchorToElement:p,ariaLabel:f("ariaLabelColumnMenu","Column Menu")});this.addStopAnchoring(null==g?void 0:g.stopAnchoringPromise,e,h),r||(l.showTabBasedOnPreviousSelection(),t(l)),l.addEventListener(EnterpriseMenu.EVENT_TAB_SELECTED,function(e){a.lastSelectedTab=e.key}),e.setMenuVisible(!0,"contextMenu"),this.activeMenu=l,l.addEventListener(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub.EVENT_DESTROYED,function(){a.activeMenu===l&&(a.activeMenu=null)})},t.prototype.getClosedCallback=function(e,t,n,r,o){var i=this;return function(a){if(i.destroyBean(t),e.setMenuVisible(!1,"contextMenu"),a instanceof KeyboardEvent&&o)if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.isVisible(o)){var s=i.focusService.findTabbableParent(o);s&&(e&&i.headerNavigationService.scrollToColumn(e),s.focus())}else if(n&&-1!==r){var l=i.columnModel.getAllDisplayedColumns(),c=l[r]||ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(l);c&&i.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:n.headerRowIndex,column:c}})}}},t.prototype.addStopAnchoring=function(e,t,n){e&&e.then(function(e){t.addEventListener("leftChanged",e),t.addEventListener("visibleChanged",e),n.push(function(){t.removeEventListener("leftChanged",e),t.removeEventListener("visibleChanged",e)})})},t.prototype.getMenuParams=function(e,t,n){var r=this.createBean(new EnterpriseMenu(e,this.lastSelectedTab,t));return{menu:r,eMenuGui:r.getGui(),currentHeaderPosition:this.focusService.getFocusedHeader(),currentColumnIndex:this.columnModel.getAllDisplayedColumns().indexOf(e),anchorToElement:n||this.ctrlsService.getGridBodyCtrl().getGui()}},t.prototype.isMenuEnabled=function(e){return e.getMenuTabs(EnterpriseMenu.TABS_DEFAULT).length>0},__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("popupService")],t.prototype,"popupService",void 0),__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("focusService")],t.prototype,"focusService",void 0),__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("headerNavigationService")],t.prototype,"headerNavigationService",void 0),__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ctrlsService")],t.prototype,"ctrlsService",void 0),__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("menuFactory")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),EnterpriseMenu=function(e){function t(n,r,o){var i=e.call(this)||this;return i.tabFactories={},i.includeChecks={},i.column=n,i.initialSelection=r,i.tabFactories[t.TAB_GENERAL]=i.createMainPanel.bind(i),i.tabFactories[t.TAB_FILTER]=i.createFilterPanel.bind(i),i.tabFactories[t.TAB_COLUMNS]=i.createColumnsPanel.bind(i),i.includeChecks[t.TAB_GENERAL]=function(){return!0},i.includeChecks[t.TAB_FILTER]=function(){return i.filterManager.isFilterAllowed(n)},i.includeChecks[t.TAB_COLUMNS]=function(){return!0},i.restrictTo=o,i}return __extends$E(t,e),t.prototype.init=function(){var e=this,t=this.getTabsToCreate().map(function(t){return e.createTab(t)});this.tabbedLayout=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TabbedLayout({items:t,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)}),this.createBean(this.tabbedLayout),this.mainMenuList&&this.mainMenuList.setParentComponent(this.tabbedLayout),this.addDestroyFunc(function(){return e.destroyBean(e.tabbedLayout)})},t.prototype.getTabsToCreate=function(){var e=this;return this.restrictTo?this.restrictTo:this.column.getMenuTabs(t.TABS_DEFAULT).filter(function(t){return e.isValidMenuTabItem(t)}).filter(function(t){return e.isNotSuppressed(t)}).filter(function(t){return e.isModuleLoaded(t)})},t.prototype.isModuleLoaded=function(e){return e!==t.TAB_COLUMNS||ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.isRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ColumnsToolPanelModule)},t.prototype.isValidMenuTabItem=function(e){var n=!0,r=t.TABS_DEFAULT;return null!=this.restrictTo&&(n=this.restrictTo.indexOf(e)>-1,r=this.restrictTo),(n=n&&t.TABS_DEFAULT.indexOf(e)>-1)||console.warn("AG Grid: Trying to render an invalid menu item '"+e+"'. Check that your 'menuTabs' contains one of ["+r+"]"),n},t.prototype.isNotSuppressed=function(e){return this.includeChecks[e]()},t.prototype.createTab=function(e){return this.tabFactories[e]()},t.prototype.showTabBasedOnPreviousSelection=function(){this.showTab(this.initialSelection)},t.prototype.showTab=function(e){this.tabItemColumns&&e===t.TAB_COLUMNS?this.tabbedLayout.showItem(this.tabItemColumns):this.tabItemFilter&&e===t.TAB_FILTER?this.tabbedLayout.showItem(this.tabItemFilter):this.tabItemGeneral&&e===t.TAB_GENERAL?this.tabbedLayout.showItem(this.tabItemGeneral):this.tabbedLayout.showFirstItem()},t.prototype.onTabItemClicked=function(e){var n=null;switch(e.item){case this.tabItemColumns:n=t.TAB_COLUMNS;break;case this.tabItemFilter:n=t.TAB_FILTER;break;case this.tabItemGeneral:n=t.TAB_GENERAL}n&&this.activateTab(n)},t.prototype.activateTab=function(e){var n={type:t.EVENT_TAB_SELECTED,key:e};this.dispatchEvent(n)},t.prototype.getMenuItems=function(){var e,n=this.getDefaultMenuOptions(),r=this.gridOptionsService.getCallback("getMainMenuItems");return e=r?r({column:this.column,defaultItems:n}):n,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeRepeatsFromArray(e,t.MENU_ITEM_SEPARATOR),e},t.prototype.getDefaultMenuOptions=function(){var e=[],n=!this.column.getColDef().lockPinned,r=this.columnModel.getRowGroupColumns().length,o=r>0,i=this.columnModel.getRowGroupColumns().indexOf(this.column)>=0,a=this.column.isAllowValue(),s=this.column.isAllowRowGroup(),l=this.column.isPrimary(),c=this.columnModel.isPivotMode(),u="clientSide"===this.rowModel.getType(),d=this.gridOptionsService.isTreeData(),p=l&&o&&a||!l;return n&&e.push("pinSubMenu"),p&&e.push("valueAggSubMenu"),(n||p)&&e.push(t.MENU_ITEM_SEPARATOR),e.push("autoSizeThis"),e.push("autoSizeAll"),e.push(t.MENU_ITEM_SEPARATOR),s&&this.column.isPrimary()&&(i?e.push("rowUnGroup"):e.push("rowGroup")),e.push(t.MENU_ITEM_SEPARATOR),e.push("resetColumns"),u&&(d||r>(c?1:0))&&(e.push("expandAll"),e.push("contractAll")),e},t.prototype.createMainPanel=function(){this.mainMenuList=this.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgMenuList);var e=this.getMenuItems(),n=this.menuItemMapper.mapWithStockItems(e,this.column);return this.mainMenuList.addMenuItems(n),this.mainMenuList.addEventListener(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED,this.onHidePopup.bind(this)),this.tabItemGeneral={title:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("menu",this.gridOptionsService,this.column),titleLabel:t.TAB_GENERAL.replace("MenuTab",""),bodyPromise:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.resolve(this.mainMenuList.getGui()),name:t.TAB_GENERAL},this.tabItemGeneral},t.prototype.onHidePopup=function(e){var t;e&&e.event&&e.event instanceof KeyboardEvent&&(t=e.event),this.hidePopupFunc(t&&{keyboardEvent:t});var n=this.focusService.getFocusedCell(),r=this.gridOptionsService.getDocument();if(r.activeElement===r.body&&n){var o=n.rowIndex,i=n.rowPinned,a=n.column;this.focusService.setFocusedCell({rowIndex:o,column:a,rowPinned:i,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}},t.prototype.createFilterPanel=function(){var e=this.filterManager.getOrCreateFilterWrapper(this.column,"COLUMN_MENU");if(!e)throw new Error("AG Grid - Unable to instantiate filter");return this.tabItemFilter={title:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("filter",this.gridOptionsService,this.column),titleLabel:t.TAB_FILTER.replace("MenuTab",""),bodyPromise:null==e?void 0:e.guiPromise,afterAttachedCallback:function(t){(null==e?void 0:e.filterPromise)&&e.filterPromise.then(function(e){e&&e.afterGuiAttached&&e.afterGuiAttached(t)})},afterDetachedCallback:function(){var t;return null===(t=null==e?void 0:e.filterPromise)||void 0===t?void 0:t.then(function(e){var t;return null===(t=null==e?void 0:e.afterGuiDetached)||void 0===t?void 0:t.call(e)})},name:t.TAB_FILTER},this.tabItemFilter},t.prototype.createColumnsPanel=function(){var e=document.createElement("div");e.classList.add("ag-menu-column-select-wrapper");var n=this.createManagedBean(new PrimaryColsPanel),r=this.column.getColDef().columnsMenuParams;r||(r={});var o=r.contractColumnSelection,i=r.suppressColumnExpandAll,a=r.suppressColumnFilter,s=r.suppressColumnSelectAll,l=r.suppressSyncLayoutWithGrid,c=r.columnLayout;n.init(!1,{suppressColumnMove:!1,suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!!o,suppressColumnExpandAll:!!i,suppressColumnFilter:!!a,suppressColumnSelectAll:!!s,suppressSyncLayoutWithGrid:!!c||!!l,api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context},"columnMenu"),c&&n.setColumnLayout(c);var u=n.getGui();return u.classList.add("ag-menu-column-select"),e.appendChild(u),this.tabItemColumns={title:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("columns",this.gridOptionsService,this.column),titleLabel:t.TAB_COLUMNS.replace("MenuTab",""),bodyPromise:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.resolve(e),name:t.TAB_COLUMNS},this.tabItemColumns},t.prototype.afterGuiAttached=function(e){var t=e.container,n=e.hidePopup;this.tabbedLayout.setAfterAttachedParams({container:t,hidePopup:n}),n&&(this.hidePopupFunc=n,this.addDestroyFunc(n))},t.prototype.getGui=function(){return this.tabbedLayout.getGui()},t.EVENT_TAB_SELECTED="tabSelected",t.TAB_FILTER="filterMenuTab",t.TAB_GENERAL="generalMenuTab",t.TAB_COLUMNS="columnsMenuTab",t.TABS_DEFAULT=[t.TAB_GENERAL,t.TAB_FILTER,t.TAB_COLUMNS],t.MENU_ITEM_SEPARATOR="separator",__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("filterManager")],t.prototype,"filterManager",void 0),__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnApi")],t.prototype,"columnApi",void 0),__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("menuItemMapper")],t.prototype,"menuItemMapper",void 0),__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowModel")],t.prototype,"rowModel",void 0),__decorate$C([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("focusService")],t.prototype,"focusService",void 0),__decorate$C([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$D=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$5=function(){return __assign$5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$5.apply(this,arguments)},__decorate$B=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},CSS_MENU="ag-menu",CSS_CONTEXT_MENU_OPEN="ag-context-menu-open",ContextMenuFactory=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$D(t,e),t.prototype.hideActiveMenu=function(){this.destroyBean(this.activeMenu)},t.prototype.getMenuItems=function(e,t,n){var r=[];if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e)&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.isRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ClipboardModule)&&t&&(this.gridOptionsService.is("suppressCutToClipboard")||r.push("cut"),r.push("copy","copyWithHeaders","copyWithGroupHeaders","paste","separator")),this.gridOptionsService.is("enableCharts")&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.isRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.GridChartsModule)&&(this.columnModel.isPivotMode()&&r.push("pivotChart"),this.rangeService&&!this.rangeService.isEmpty()&&r.push("chartRange")),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e)){var o=!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.isRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.CsvExportModule),i=!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.isRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ExcelExportModule),a=this.gridOptionsService.is("suppressExcelExport")||i,s=this.gridOptionsService.is("suppressCsvExport")||o;!(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.isIOSUserAgent()||a&&s)&&r.push("export")}var l=this.gridOptionsService.getCallback("getContextMenuItems");return l?l({node:e,column:t,value:n,defaultItems:r.length?r:void 0}):r},t.prototype.onContextMenu=function(e,t,n,r,o,i){if((this.gridOptionsService.is("allowContextMenuWithControlKey")||!e||!e.ctrlKey&&!e.metaKey)&&(e&&this.blockMiddleClickScrollsIfNeeded(e),!this.gridOptionsService.is("suppressContextMenu"))){var a=e||t.touches[0];this.showMenu(n,r,o,a,i)&&(e||t).preventDefault()}},t.prototype.blockMiddleClickScrollsIfNeeded=function(e){var t=this.gridOptionsService,n=e.which;t.is("suppressMiddleClickScrolls")&&2===n&&e.preventDefault()},t.prototype.showMenu=function(e,t,n,r,o){var i=this,a=this.getMenuItems(e,t,n),s=this.ctrlsService.getGridBodyCtrl().getGui();if(void 0===a||ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missingOrEmpty(a))return!1;var l=new ContextMenu(a);this.createBean(l);var c=l.getGui(),u={column:t,rowNode:e,type:"contextMenu",mouseEvent:r,ePopup:c,nudgeY:1},d=this.localeService.getLocaleTextFunc(),p=this.popupService.addPopup({modal:!0,eChild:c,closeOnEsc:!0,closedCallback:function(){s.classList.remove(CSS_CONTEXT_MENU_OPEN),i.destroyBean(l)},click:r,positionCallback:function(){var e=i.gridOptionsService.is("enableRtl");i.popupService.positionPopupUnderMouseEvent(__assign$5(__assign$5({},u),{nudgeX:e?-1*(c.offsetWidth+1):1}))},anchorToElement:o,ariaLabel:d("ariaLabelContextMenu","Context Menu")});return p&&(s.classList.add(CSS_CONTEXT_MENU_OPEN),l.afterGuiAttached({container:"contextMenu",hidePopup:p.hideFunc})),this.activeMenu&&this.hideActiveMenu(),this.activeMenu=l,l.addEventListener(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub.EVENT_DESTROYED,function(){i.activeMenu===l&&(i.activeMenu=null)}),p&&l.addEventListener(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED,p.hideFunc),!0},__decorate$B([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("popupService")],t.prototype,"popupService",void 0),__decorate$B([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Optional)("rangeService")],t.prototype,"rangeService",void 0),__decorate$B([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ctrlsService")],t.prototype,"ctrlsService",void 0),__decorate$B([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$B([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("contextMenuFactory")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),ContextMenu=function(e){function t(t){var n=e.call(this,'<div class="'+CSS_MENU+'" role="presentation"></div>')||this;return n.menuList=null,n.focusedCell=null,n.menuItems=t,n}return __extends$D(t,e),t.prototype.addMenuItems=function(){var e=this,t=this.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgMenuList),n=this.menuItemMapper.mapWithStockItems(this.menuItems,null);t.addMenuItems(n),this.appendChild(t),this.menuList=t,t.addEventListener(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED,function(t){return e.dispatchEvent(t)})},t.prototype.afterGuiAttached=function(e){e.hidePopup&&this.addDestroyFunc(e.hidePopup),this.focusedCell=this.focusService.getFocusedCell(),this.menuList&&this.focusService.focusInto(this.menuList.getGui())},t.prototype.restoreFocusedCell=function(){var e=this.focusService.getFocusedCell();if(e&&this.focusedCell&&this.cellPositionUtils.equals(e,this.focusedCell)){var t=this.focusedCell,n=t.rowIndex,r=t.rowPinned,o=t.column,i=this.gridOptionsService.getDocument();i.activeElement===i.body&&this.focusService.setFocusedCell({rowIndex:n,column:o,rowPinned:r,forceBrowserFocus:!0})}},t.prototype.destroy=function(){this.restoreFocusedCell(),e.prototype.destroy.call(this)},__decorate$B([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("menuItemMapper")],t.prototype,"menuItemMapper",void 0),__decorate$B([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("focusService")],t.prototype,"focusService",void 0),__decorate$B([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),__decorate$B([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"addMenuItems",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$4=function(){return __assign$4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$4.apply(this,arguments)},__decorate$A=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},MenuItemMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$C(t,e),t.prototype.mapWithStockItems=function(e,t){var n=this;if(!e)return[];var r=[];return e.forEach(function(e){var o;if(o="string"==typeof e?n.getStockMenuItem(e,t):__assign$4({},e)){var i=o,a=i.subMenu;a&&a instanceof Array&&(i.subMenu=n.mapWithStockItems(a,t)),null!=o&&r.push(o)}}),r},t.prototype.getStockMenuItem=function(e,t){var n,r=this,o=this.localeService.getLocaleTextFunc(),i=this.gridOptionsService.is("skipHeaderOnAutoSize");switch(e){case"pinSubMenu":return{name:o("pinColumn","Pin Column"),icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("menuPin",this.gridOptionsService,null),subMenu:["clearPinned","pinLeft","pinRight"]};case"pinLeft":return{name:o("pinLeft","Pin Left"),action:function(){return r.columnModel.setColumnPinned(t,"left","contextMenu")},checked:!!t&&t.isPinnedLeft()};case"pinRight":return{name:o("pinRight","Pin Right"),action:function(){return r.columnModel.setColumnPinned(t,"right","contextMenu")},checked:!!t&&t.isPinnedRight()};case"clearPinned":return{name:o("noPin","No Pin"),action:function(){return r.columnModel.setColumnPinned(t,null,"contextMenu")},checked:!!t&&!t.isPinned()};case"valueAggSubMenu":return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.assertRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.RowGroupingModule,"Aggregation from Menu")&&((null==t?void 0:t.isPrimary())||(null==t?void 0:t.getColDef().pivotValueColumn))?{name:o("valueAggregation","Value Aggregation"),icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("menuValue",this.gridOptionsService,null),subMenu:this.createAggregationSubMenu(t)}:null;case"autoSizeThis":return{name:o("autosizeThiscolumn","Autosize This Column"),action:function(){return r.columnModel.autoSizeColumn(t,i,"contextMenu")}};case"autoSizeAll":return{name:o("autosizeAllColumns","Autosize All Columns"),action:function(){return r.columnModel.autoSizeAllColumns(i,"contextMenu")}};case"rowGroup":return{name:o("groupBy","Group by")+" "+ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(this.columnModel.getDisplayNameForColumn(t,"header")),action:function(){return r.columnModel.addRowGroupColumn(t,"contextMenu")},icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("menuAddRowGroup",this.gridOptionsService,null)};case"rowUnGroup":return{name:o("ungroupBy","Un-Group by")+" "+ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.escapeString(this.columnModel.getDisplayNameForColumn(t,"header")),action:function(){return r.columnModel.removeRowGroupColumn(t,"contextMenu")},icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("menuRemoveRowGroup",this.gridOptionsService,null)};case"resetColumns":return{name:o("resetColumns","Reset Columns"),action:function(){return r.columnModel.resetColumnState("contextMenu")}};case"expandAll":return{name:o("expandAll","Expand All"),action:function(){return r.gridApi.expandAll()}};case"contractAll":return{name:o("collapseAll","Collapse All"),action:function(){return r.gridApi.collapseAll()}};case"copy":return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.assertRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ClipboardModule,"Copy from Menu")?{name:o("copy","Copy"),shortcut:o("ctrlC","Ctrl+C"),icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("clipboardCopy",this.gridOptionsService,null),action:function(){return r.clipboardService.copyToClipboard()}}:null;case"copyWithHeaders":return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.assertRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ClipboardModule,"Copy with Headers from Menu")?{name:o("copyWithHeaders","Copy with Headers"),icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("clipboardCopy",this.gridOptionsService,null),action:function(){return r.clipboardService.copyToClipboard({includeHeaders:!0})}}:null;case"copyWithGroupHeaders":return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.assertRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ClipboardModule,"Copy with Group Headers from Menu")?{name:o("copyWithGroupHeaders","Copy with Group Headers"),icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("clipboardCopy",this.gridOptionsService,null),action:function(){return r.clipboardService.copyToClipboard({includeHeaders:!0,includeGroupHeaders:!0})}}:null;case"cut":if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.assertRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ClipboardModule,"Cut from Menu")){var a=this.focusService.getFocusedCell(),s=a?this.rowPositionUtils.getRowNode(a):null,l=!!s&&(null==a?void 0:a.column.isCellEditable(s));return{name:o("cut","Cut"),shortcut:o("ctrlX","Ctrl+X"),icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("clipboardCut",this.gridOptionsService,null),disabled:!l||this.gridOptionsService.is("suppressCutToClipboard"),action:function(){return r.clipboardService.cutToClipboard()}}}return null;case"paste":return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.assertRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ClipboardModule,"Paste from Clipboard")?{name:o("paste","Paste"),shortcut:o("ctrlV","Ctrl+V"),disabled:!0,icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("clipboardPaste",this.gridOptionsService,null),action:function(){return r.clipboardService.pasteFromClipboard()}}:null;case"export":var c=[],u=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.isRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.CsvExportModule),d=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.isRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ExcelExportModule);return!this.gridOptionsService.is("suppressCsvExport")&&u&&c.push("csvExport"),!this.gridOptionsService.is("suppressExcelExport")&&d&&c.push("excelExport"),{name:o("export","Export"),subMenu:c,icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("save",this.gridOptionsService,null)};case"csvExport":return{name:o("csvExport","CSV Export"),icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("csvExport",this.gridOptionsService,null),action:function(){return r.gridApi.exportDataAsCsv({})}};case"excelExport":return{name:o("excelExport","Excel Export"),icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("excelExport",this.gridOptionsService,null),action:function(){return r.gridApi.exportDataAsExcel()}};case"separator":return"separator";case"pivotChart":case"chartRange":return null!==(n=this.chartMenuItemMapper.getChartItems(e))&&void 0!==n?n:null;default:return console.warn("AG Grid: unknown menu item type "+e),null}},t.prototype.createAggregationSubMenu=function(e){var t,n=this,r=this.localeService.getLocaleTextFunc();if(e.isPrimary())t=e;else{var o=e.getColDef().pivotValueColumn;t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(o)?o:void 0}var i=[];if(t){var a=t.isValueActive(),s=this.aggFuncService.getFuncNames(t);i.push({name:r("noAggregation","None"),action:function(){n.columnModel.removeValueColumn(t,"contextMenu"),n.columnModel.setColumnAggFunc(t,void 0,"contextMenu")},checked:!a}),s.forEach(function(e){i.push({name:r(e,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.capitalise(e)),action:function(){n.columnModel.setColumnAggFunc(t,e,"contextMenu"),n.columnModel.addValueColumn(t,"contextMenu")},checked:a&&t.getAggFunc()===e})})}return i},__decorate$A([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$A([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$A([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Optional)("clipboardService")],t.prototype,"clipboardService",void 0),__decorate$A([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Optional)("aggFuncService")],t.prototype,"aggFuncService",void 0),__decorate$A([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("focusService")],t.prototype,"focusService",void 0),__decorate$A([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),__decorate$A([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("chartMenuItemMapper")],t.prototype,"chartMenuItemMapper",void 0),__decorate$A([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("menuItemMapper")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),VERSION$7="29.3.3",__extends$B=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$3=function(){return __assign$3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$3.apply(this,arguments)},__decorate$z=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$8=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ChartMenuItemMapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return __extends$B(t,e),n=t,t.prototype.getChartItems=function(e){var t,r;if(this.chartService){var o="pivotChart"===e?new PivotMenuItemMapper(this.gridOptionsService,this.chartService,this.localeService):new RangeMenuItemMapper(this.gridOptionsService,this.chartService,this.localeService),i=o.getMenuItem(),a=null===(r=null===(t=this.gridOptionsService.get("chartToolPanelsDef"))||void 0===t?void 0:t.settingsPanel)||void 0===r?void 0:r.chartGroupsDef;return a&&(i=n.filterAndOrderChartMenu(i,a,o.getConfigLookup())),this.cleanInternals(i)}ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.assertRegistered(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.GridChartsModule,'the Context Menu key "'+e+'"')},t.prototype.cleanInternals=function(e){if(!e)return e;var t=function(e){var n;return null==e||delete e._key,null===(n=null==e?void 0:e.subMenu)||void 0===n||n.forEach(function(e){return t(e)}),e};return t(e)},t.buildLookup=function(e){var t={},n=function(e){t[e._key]=e,e.subMenu&&e.subMenu.forEach(function(e){return n(e)})};return n(e),t},t.filterAndOrderChartMenu=function(e,t,n){var r,o=this.buildLookup(e),i=__assign$3(__assign$3({},e),{subMenu:[]});if(Object.entries(t).forEach(function(e){var t,r,a=__read$8(e,2),s=a[0],l=a[1],c=n[s];if(null!=c){var u=o[c._key];if(u)if(u.subMenu){var d=l.map(function(e){var t=c[e];if(null!=t)return o[t];ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid - invalid chartGroupsDef config '"+s+"."+e+"'")},"invalid_chartGroupsDef"+e+"_"+s)}).filter(function(e){return void 0!==e});d.length>0&&(u.subMenu=d,null===(t=i.subMenu)||void 0===t||t.push(u))}else null===(r=i.subMenu)||void 0===r||r.push(u)}else ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid - invalid chartGroupsDef config '"+s+"'")},"invalid_chartGroupsDef"+s)}),0!=(null===(r=i.subMenu)||void 0===r?void 0:r.length))return i},__decorate$z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Optional)("chartService")],t.prototype,"chartService",void 0),n=__decorate$z([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("chartMenuItemMapper")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),PivotMenuItemMapper=function(){function e(e,t,n){this.gridOptionsService=e,this.chartService=t,this.localeService=n}return e.prototype.getMenuItem=function(){var e=this,t=this.localeService.getLocaleTextFunc(),n=function(n,r,o,i){return{name:t(n,r),action:function(){return e.chartService.createPivotChart({chartType:o})},_key:i}};return{name:t("pivotChart","Pivot Chart"),_key:"pivotChart",subMenu:[{_key:"pivotColumnChart",name:t("columnChart","Column"),subMenu:[n("groupedColumn","Grouped&lrm;","groupedColumn","pivotGroupedColumn"),n("stackedColumn","Stacked&lrm;","stackedColumn","pivotStackedColumn"),n("normalizedColumn","100% Stacked&lrm;","normalizedColumn","pivotNormalizedColumn")]},{_key:"pivotBarChart",name:t("barChart","Bar"),subMenu:[n("groupedBar","Grouped&lrm;","groupedBar","pivotGroupedBar"),n("stackedBar","Stacked&lrm;","stackedBar","pivotStackedBar"),n("normalizedBar","100% Stacked&lrm;","normalizedBar","pivotNormalizedBar")]},{_key:"pivotPieChart",name:t("pieChart","Pie"),subMenu:[n("pie","Pie&lrm;","pie","pivotPie"),n("doughnut","Doughnut&lrm;","doughnut","pivotDoughnut")]},n("line","Line&lrm;","line","pivotLineChart"),{_key:"pivotXYChart",name:t("xyChart","X Y (Scatter)"),subMenu:[n("scatter","Scatter&lrm;","scatter","pivotScatter"),n("bubble","Bubble&lrm;","bubble","pivotBubble")]},{_key:"pivotAreaChart",name:t("areaChart","Area"),subMenu:[n("area","Area&lrm;","area","pivotArea"),n("stackedArea","Stacked&lrm;","stackedArea","pivotStackedArea"),n("normalizedArea","100% Stacked&lrm;","normalizedArea","pivotNormalizedArea")]},n("histogramChart","Histogram&lrm;","histogram","pivotHistogramChart"),{_key:"pivotCombinationChart",name:t("combinationChart","Combination"),subMenu:[n("columnLineCombo","Column & Line&lrm;","columnLineCombo","pivotColumnLineCombo"),n("AreaColumnCombo","Area & Column&lrm;","areaColumnCombo","pivotAreaColumnCombo")]}],icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("chart",this.gridOptionsService,void 0)}},e.prototype.getConfigLookup=function(){return{columnGroup:{_key:"pivotColumnChart",column:"pivotGroupedColumn",stackedColumn:"pivotStackedColumn",normalizedColumn:"pivotNormalizedColumn"},barGroup:{_key:"pivotBarChart",bar:"pivotGroupedBar",stackedBar:"pivotStackedBar",normalizedBar:"pivotNormalizedBar"},pieGroup:{_key:"pivotPieChart",pie:"pivotPie",doughnut:"pivotDoughnut"},lineGroup:{_key:"pivotLineChart",line:"pivotLineChart"},scatterGroup:{_key:"pivotXYChart",bubble:"pivotBubble",scatter:"pivotScatter"},areaGroup:{_key:"pivotAreaChart",area:"pivotArea",stackedArea:"pivotStackedArea",normalizedArea:"pivotNormalizedArea"},histogramGroup:{_key:"pivotHistogramChart",histogram:"pivotHistogramChart"},combinationGroup:{_key:"pivotCombinationChart",columnLineCombo:"pivotColumnLineCombo",areaColumnCombo:"pivotAreaColumnCombo",customCombo:""}}},e}(),RangeMenuItemMapper=function(){function e(e,t,n){this.gridOptionsService=e,this.chartService=t,this.localeService=n}return e.prototype.getMenuItem=function(){var e=this,t=this.localeService.getLocaleTextFunc(),n=function(n,r,o,i){return{name:t(n,r),action:function(){return e.chartService.createChartFromCurrentRange(o)},_key:i}};return{name:t("chartRange","Chart Range"),_key:"chartRange",subMenu:[{name:t("columnChart","Column"),subMenu:[n("groupedColumn","Grouped&lrm;","groupedColumn","rangeGroupedColumn"),n("stackedColumn","Stacked&lrm;","stackedColumn","rangeStackedColumn"),n("normalizedColumn","100% Stacked&lrm;","normalizedColumn","rangeNormalizedColumn")],_key:"rangeColumnChart"},{name:t("barChart","Bar"),subMenu:[n("groupedBar","Grouped&lrm;","groupedBar","rangeGroupedBar"),n("stackedBar","Stacked&lrm;","stackedBar","rangeStackedBar"),n("normalizedBar","100% Stacked&lrm;","normalizedBar","rangeNormalizedBar")],_key:"rangeBarChart"},{name:t("pieChart","Pie"),subMenu:[n("pie","Pie&lrm;","pie","rangePie"),n("doughnut","Doughnut&lrm;","doughnut","rangeDoughnut")],_key:"rangePieChart"},n("line","Line&lrm;","line","rangeLineChart"),{name:t("xyChart","X Y (Scatter)"),subMenu:[n("scatter","Scatter&lrm;","scatter","rangeScatter"),n("bubble","Bubble&lrm;","bubble","rangeBubble")],_key:"rangeXYChart"},{name:t("areaChart","Area"),subMenu:[n("area","Area&lrm;","area","rangeArea"),n("stackedArea","Stacked&lrm;","stackedArea","rangeStackedArea"),n("normalizedArea","100% Stacked&lrm;","normalizedArea","rangeNormalizedArea")],_key:"rangeAreaChart"},n("histogramChart","Histogram&lrm;","histogram","rangeHistogramChart"),{name:t("combinationChart","Combination"),subMenu:[n("columnLineCombo","Column & Line&lrm;","columnLineCombo","rangeColumnLineCombo"),n("AreaColumnCombo","Area & Column&lrm;","areaColumnCombo","rangeAreaColumnCombo")],_key:"rangeCombinationChart"}],icon:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("chart",this.gridOptionsService,void 0)}},e.prototype.getConfigLookup=function(){return{columnGroup:{_key:"rangeColumnChart",column:"rangeGroupedColumn",stackedColumn:"rangeStackedColumn",normalizedColumn:"rangeNormalizedColumn"},barGroup:{_key:"rangeBarChart",bar:"rangeGroupedBar",stackedBar:"rangeStackedBar",normalizedBar:"rangeNormalizedBar"},pieGroup:{_key:"rangePieChart",pie:"rangePie",doughnut:"rangeDoughnut"},lineGroup:{_key:"rangeLineChart",line:"rangeLineChart"},scatterGroup:{_key:"rangeXYChart",bubble:"rangeBubble",scatter:"rangeScatter"},areaGroup:{_key:"rangeAreaChart",area:"rangeArea",stackedArea:"rangeStackedArea",normalizedArea:"rangeNormalizedArea"},histogramGroup:{_key:"rangeHistogramChart",histogram:"rangeHistogramChart"},combinationGroup:{_key:"rangeCombinationChart",columnLineCombo:"rangeColumnLineCombo",areaColumnCombo:"rangeAreaColumnCombo",customCombo:""}}},e}(),MenuModule={version:VERSION$7,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.MenuModule,beans:[EnterpriseMenuFactory,ContextMenuFactory,MenuItemMapper,ChartMenuItemMapper],dependantModules:[EnterpriseCoreModule]},__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$2=function(){return __assign$2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$2.apply(this,arguments)},__decorate$y=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},MultiFilter=function(e){function t(){var t=e.call(this,'<div class="ag-multi-filter ag-menu-list-compact"></div>')||this;return t.filterDefs=[],t.filters=[],t.guiDestroyFuncs=[],t.activeFilterIndices=[],t.lastActivatedMenuItem=null,t.afterFiltersReadyFuncs=[],t}return __extends$A(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onFocusIn:function(t){return e.onFocusIn(t)}})},t.getFilterDefs=function(e){var t=e.filters;return t&&t.length>0?t:[{filter:"agTextColumnFilter"},{filter:"agSetColumnFilter"}]},t.prototype.init=function(e){var n=this;this.params=e,this.filterDefs=t.getFilterDefs(e);var r=e.column,o=e.filterChangedCallback;this.column=r,this.filterChangedCallback=o;var i=[];return this.filterDefs.forEach(function(e,t){var r=n.createFilter(e,t);null!=r&&i.push(r)}),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.all(i).then(function(e){n.filters=e,n.refreshGui("columnMenu"),n.afterFiltersReadyFuncs.forEach(function(e){return e()}),n.afterFiltersReadyFuncs.length=0})},t.prototype.refreshGui=function(e){var t=this;e!==this.lastOpenedInContainer&&(this.removeAllChildrenExceptTabGuards(),this.destroyChildren(),this.filters.forEach(function(n,r){r>0&&t.appendChild(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.loadTemplate('<div class="ag-filter-separator"></div>'));var o,i=t.filterDefs[r],a=t.getFilterTitle(n,i);o="subMenu"===i.display&&"toolPanel"!==e?t.insertFilterMenu(n,a).getGui():"subMenu"===i.display||"accordion"===i.display?t.insertFilterGroup(n,a).getGui():n.getGui(),t.appendChild(o)}),this.lastOpenedInContainer=e)},t.prototype.getFilterTitle=function(e,t){if(null!=t.title)return t.title;var n=e;return"function"==typeof n.getFilterTitle?n.getFilterTitle():"Filter"},t.prototype.destroyChildren=function(){this.guiDestroyFuncs.forEach(function(e){return e()}),this.guiDestroyFuncs.length=0},t.prototype.insertFilterMenu=function(e,t){var n=this,r=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgMenuItemComponent({name:t,subMenu:e,cssClasses:["ag-multi-filter-menu-item"],isCompact:!0,isAnotherSubMenuOpen:function(){return!1}}));return r.setParentComponent(this),this.guiDestroyFuncs.push(function(){return n.destroyBean(r)}),this.addManagedListener(r,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgMenuItemComponent.EVENT_MENU_ITEM_ACTIVATED,function(e){n.lastActivatedMenuItem&&n.lastActivatedMenuItem!==e.menuItem&&n.lastActivatedMenuItem.deactivate(),n.lastActivatedMenuItem=e.menuItem}),r.addGuiEventListener("focusin",function(){return r.activate()}),r.addGuiEventListener("focusout",function(){r.isSubMenuOpen()||r.deactivate()}),r},t.prototype.insertFilterGroup=function(e,t){var n=this,r=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgGroupComponent({title:t,cssIdentifier:"multi-filter"}));if(this.guiDestroyFuncs.push(function(){return n.destroyBean(r)}),r.addItem(e.getGui()),r.toggleGroupExpand(!1),e.afterGuiAttached){var o={container:this.lastOpenedInContainer,suppressFocus:!0};r.addManagedListener(r,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgGroupComponent.EVENT_EXPANDED,function(){return e.afterGuiAttached(o)})}return r},t.prototype.isFilterActive=function(){return this.filters.some(function(e){return e.isFilterActive()})},t.prototype.getLastActiveFilterIndex=function(){return this.activeFilterIndices.length>0?this.activeFilterIndices[this.activeFilterIndices.length-1]:null},t.prototype.doesFilterPass=function(e,t){var n=!0;return this.filters.forEach(function(r){n&&r!==t&&r.isFilterActive()&&(n=r.doesFilterPass(e))}),n},t.prototype.getFilterType=function(){return"multi"},t.prototype.getModelFromUi=function(){return{filterType:this.getFilterType(),filterModels:this.filters.map(function(e){var t=e;return"function"==typeof t.getModelFromUi?t.getModelFromUi():null})}},t.prototype.getModel=function(){return this.isFilterActive()?{filterType:this.getFilterType(),filterModels:this.filters.map(function(e){return e.isFilterActive()?e.getModel():null})}:null},t.prototype.setModel=function(e){var t=this,n=function(e,t){return new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise(function(n){var r=e.setModel(t);r?r.then(function(){return n()}):n()})},r=[];return null==e?r=this.filters.map(function(e,r){return n(e,null).then(function(){t.updateActiveList(r)})}):this.filters.forEach(function(o,i){var a=e.filterModels.length>i?e.filterModels[i]:null,s=n(o,a).then(function(){t.updateActiveList(i)});r.push(s)}),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.all(r).then(function(){})},t.prototype.applyModel=function(e){void 0===e&&(e="api");var t=!1;return this.filters.forEach(function(n){n instanceof ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedFilter&&(t=n.applyModel(e)||t)}),t},t.prototype.getChildFilterInstance=function(e){return this.filters[e]},t.prototype.afterGuiAttached=function(e){e&&this.refreshGui(e.container);var t=this.params.filters,n=t&&t.some(function(e){return e.display&&"inline"!==e.display});this.executeFunctionIfExists("afterGuiAttached",__assign$2(__assign$2({},e||{}),{suppressFocus:n}));var r=this.gridOptionsService.getDocument(),o=r.activeElement;n&&(o===r.body||this.getGui().contains(o))&&this.forceFocusOutOfContainer(!0)},t.prototype.afterGuiDetached=function(){this.executeFunctionIfExists("afterGuiDetached")},t.prototype.onAnyFilterChanged=function(){this.executeFunctionIfExists("onAnyFilterChanged")},t.prototype.onNewRowsLoaded=function(){this.executeFunctionIfExists("onNewRowsLoaded")},t.prototype.destroy=function(){var t=this;this.filters.forEach(function(e){e.setModel(null),t.destroyBean(e)}),this.filters.length=0,this.destroyChildren(),e.prototype.destroy.call(this)},t.prototype.executeFunctionIfExists=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.forEachReverse(this.filters,function(n){var r=n[e];"function"==typeof r&&r.apply(n,t)})},t.prototype.createFilter=function(e,t){var n,r=this,o=this.params,i=o.filterModifiedCallback,a=o.doesRowPassOtherFilter,s=__assign$2(__assign$2({},this.filterManager.createFilterParams(this.column,this.column.getColDef())),{filterModifiedCallback:i,filterChangedCallback:function(e){r.executeWhenAllFiltersReady(function(){return r.filterChanged(t,e)})},doesRowPassOtherFilter:function(e){return a(e)&&r.doesFilterPass({node:e,data:e.data},n)}}),l=this.userComponentFactory.getFilterDetails(e,s,"agTextColumnFilter");if(!l)return null;var c=l.newAgStackInstance();return c&&c.then(function(e){return n=e}),c},t.prototype.executeWhenAllFiltersReady=function(e){this.filters&&this.filters.length>0?e():this.afterFiltersReadyFuncs.push(e)},t.prototype.updateActiveList=function(e){var t=this.filters[e];ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromArray(this.activeFilterIndices,e),t.isFilterActive()&&this.activeFilterIndices.push(e)},t.prototype.filterChanged=function(e,t){this.updateActiveList(e),this.filterChangedCallback(t);var n=this.filters[e];this.filters.forEach(function(e){e!==n&&"function"==typeof e.onAnyFilterChanged&&e.onAnyFilterChanged()})},t.prototype.onFocusIn=function(e){return null==this.lastActivatedMenuItem||this.lastActivatedMenuItem.getGui().contains(e.target)||(this.lastActivatedMenuItem.deactivate(),this.lastActivatedMenuItem=null),!0},t.prototype.getModelAsString=function(e){var t,n,r,o;if(!this.filters||!(null===(t=null==e?void 0:e.filterModels)||void 0===t?void 0:t.length))return"";var i=null!==(n=this.getLastActiveFilterIndex())&&void 0!==n?n:0,a=this.filters[i];return null!==(o=null===(r=a.getModelAsString)||void 0===r?void 0:r.call(a,e.filterModels[i]))&&void 0!==o?o:""},__decorate$y([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("filterManager")],t.prototype,"filterManager",void 0),__decorate$y([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),__decorate$y([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TabGuardComp),__extends$z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign$1=function(){return __assign$1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign$1.apply(this,arguments)},__decorate$x=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},MultiFloatingFilterComp=function(e){function t(){var t=e.call(this,'<div class="ag-multi-floating-filter ag-floating-filter-input"></div>')||this;return t.floatingFilters=[],t}return __extends$z(t,e),t.prototype.init=function(e){var t=this;this.params=e;var n=e.filterParams,r=[];return MultiFilter.getFilterDefs(n).forEach(function(n,o){var i=__assign$1(__assign$1({},e),{parentFilterInstance:function(e){t.parentMultiFilterInstance(function(t){var n=t.getChildFilterInstance(o);null!=n&&e(n)})}});ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.mergeDeep(i.filterParams,n.filterParams);var a=t.createFloatingFilter(n,i);null!=a&&r.push(a)}),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.all(r).then(function(e){e.forEach(function(e,n){t.floatingFilters.push(e);var r=e.getGui();t.appendChild(r),n>0&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(r,!1)})})},t.prototype.onParentModelChanged=function(e,t){var n=this;t&&t.afterFloatingFilter||this.parentMultiFilterInstance(function(r){if(null==e)n.floatingFilters.forEach(function(e,n){e.onParentModelChanged(null,t),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(e.getGui(),0===n)});else{var o=r.getLastActiveFilterIndex();n.floatingFilters.forEach(function(n,r){var i=e.filterModels.length>r?e.filterModels[r]:null;n.onParentModelChanged(i,t);var a=null==o?0===r:r===o;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(n.getGui(),a)})}})},t.prototype.destroy=function(){this.destroyBeans(this.floatingFilters),this.floatingFilters.length=0,e.prototype.destroy.call(this)},t.prototype.createFloatingFilter=function(e,t){var n,r=null!==(n=this.userComponentFactory.getDefaultFloatingFilterType(e))&&void 0!==n?n:"agReadOnlyFloatingFilter",o=this.userComponentFactory.getFloatingFilterCompDetails(e,t,r);return o?o.newAgStackInstance():null},t.prototype.parentMultiFilterInstance=function(e){this.params.parentFilterInstance(function(t){if(!(t instanceof MultiFilter))throw new Error("AG Grid - MultiFloatingFilterComp expects MultiFilter as its parent");e(t)})},__decorate$x([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),VERSION$6="29.3.3",MultiFilterModule={version:VERSION$6,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.MultiFilterModule,beans:[],userComponents:[{componentName:"agMultiColumnFilter",componentClass:MultiFilter},{componentName:"agMultiColumnFloatingFilter",componentClass:MultiFloatingFilterComp}],dependantModules:[EnterpriseCoreModule]};function bindCellRendererToHtmlElement(e,t){e.then(function(e){var n=e.getGui();null!=n&&("object"==typeof n?t.appendChild(n):t.innerHTML=n)})}var __extends$y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$w=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},RichSelectRow=function(e){function t(t){var n=e.call(this,'<div class="ag-rich-select-row" role="presentation"></div>')||this;return n.params=t,n}return __extends$y(t,e),t.prototype.setState=function(e,t,n){this.populateWithRenderer(e,t)||this.populateWithoutRenderer(e,t),this.updateSelected(n)},t.prototype.updateSelected=function(e){this.addOrRemoveCssClass("ag-rich-select-row-selected",e)},t.prototype.populateWithoutRenderer=function(e,t){var n=null!=t?t:e;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(n)&&""!==n?this.getGui().textContent=n.toString():this.getGui().innerHTML="&nbsp;"},t.prototype.populateWithRenderer=function(e,t){var n=this,r={value:e,valueFormatted:t,api:this.gridOptionsService.api},o=this.userComponentFactory.getCellRendererDetails(this.params,r),i=o?o.newAgStackInstance():void 0;return null!=i?bindCellRendererToHtmlElement(i,this.getGui()):this.getGui().innerText=null!=r.valueFormatted?r.valueFormatted:r.value,!!i&&(i.then(function(e){n.addDestroyFunc(function(){n.getContext().destroyBean(e)})}),!0)},__decorate$w([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$v=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},RichSelectCellEditor=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.selectionConfirmed=!1,n.searchString="",n}return __extends$x(t,e),t.prototype.init=function(e){this.params=e,this.selectedValue=e.value,this.originalSelectedValue=e.value,this.focusAfterAttached=e.cellStartedEdit;var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIconNoSpan("smallDown",this.gridOptionsService);if(t.classList.add("ag-rich-select-value-icon"),this.eValue.appendChild(t),this.virtualList=this.createManagedBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.VirtualList("rich-select")),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(this.params.cellHeight)&&this.virtualList.setRowHeight(this.params.cellHeight),this.renderSelectedValue(),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(e.values))console.warn("AG Grid: richSelectCellEditor requires values for it to work");else{var n=e.values;this.virtualList.setModel({getRowCount:function(){return n.length},getRow:function(e){return n[e]}}),this.addGuiEventListener("keydown",this.onKeyDown.bind(this));var r=this.virtualList.getGui();this.addManagedListener(r,"click",this.onClick.bind(this)),this.addManagedListener(r,"mousemove",this.onMouseMove.bind(this));var o=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e.searchDebounceDelay)?e.searchDebounceDelay:300;this.clearSearchString=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.debounce(this.clearSearchString,o),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e.charPress)&&this.searchText(e.charPress)}},t.prototype.onKeyDown=function(e){var t=e.key;switch(e.preventDefault(),t){case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.ENTER:this.onEnterKeyDown();break;case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.TAB:this.confirmSelection();break;case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.DOWN:case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.UP:this.onNavigationKeyPressed(e,t);break;default:this.searchText(e)}},t.prototype.confirmSelection=function(){this.selectionConfirmed=!0},t.prototype.onEnterKeyDown=function(){this.confirmSelection(),this.params.stopEditing()},t.prototype.onNavigationKeyPressed=function(e,t){e.preventDefault();var n=this.params.values.indexOf(this.selectedValue),r=t===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.UP?n-1:n+1;if(r>=0&&r<this.params.values.length){var o=this.params.values[r];this.setSelectedValue(o)}},t.prototype.searchText=function(e){if("string"==typeof e)this.searchString+=e,this.runSearch(),this.clearSearchString();else{var t=e.key;if(t===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.BACKSPACE)this.searchString=this.searchString.slice(0,-1),t="";else if(!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.isEventFromPrintableCharacter(e))return;this.searchText(t)}},t.prototype.runSearch=function(){var e,t=this,n=this.params.values;if("number"!=typeof n[0]&&"string"!=typeof n[0]||(e=n.map(function(e){return t.params.formatValue(e)})),"object"==typeof n[0]&&this.params.colDef.keyCreator&&(e=n.map(function(e){var n={value:e,colDef:t.params.colDef,column:t.params.column,node:t.params.node,data:t.params.data,api:t.gridOptionsService.api,columnApi:t.gridOptionsService.columnApi,context:t.gridOptionsService.context};return t.params.colDef.keyCreator(n)})),e){var r=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.fuzzySuggestions(this.searchString,e,!0)[0];if(r){var o=n[e.indexOf(r)];this.setSelectedValue(o)}}},t.prototype.clearSearchString=function(){this.searchString=""},t.prototype.renderSelectedValue=function(){var e=this,t=this.params.formatValue(this.selectedValue),n=this.eValue,r={value:this.selectedValue,valueFormatted:t,api:this.gridOptionsService.api},o=this.userComponentFactory.getCellRendererDetails(this.params,r),i=o?o.newAgStackInstance():void 0;i?(bindCellRendererToHtmlElement(i,n),i.then(function(t){e.addDestroyFunc(function(){return e.getContext().destroyBean(t)})})):ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(this.selectedValue)?n.innerText=t:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.clearElement(n)},t.prototype.setSelectedValue=function(e){if(this.selectedValue!==e){var t=this.params.values.indexOf(e);-1!==t&&(this.selectedValue=e,this.virtualList.ensureIndexVisible(t),this.virtualList.forEachRenderedRow(function(e,n){e.updateSelected(t===n)}),this.virtualList.focusRow(t))}},t.prototype.createRowComponent=function(e){var t=this.params.formatValue(e),n=new RichSelectRow(this.params);return this.getContext().createBean(n),n.setState(e,t,e===this.selectedValue),n},t.prototype.onMouseMove=function(e){var t=this.virtualList.getGui().getBoundingClientRect(),n=this.virtualList.getScrollTop(),r=e.clientY-t.top+n,o=Math.floor(r/this.virtualList.getRowHeight()),i=this.params.values[o];void 0!==i&&this.setSelectedValue(i)},t.prototype.onClick=function(){this.confirmSelection(),this.params.stopEditing()},t.prototype.afterGuiAttached=function(){var e=this.params.values.indexOf(this.selectedValue);if(this.virtualList.refresh(),e>=0&&this.virtualList.ensureIndexVisible(e),this.virtualList.refresh(),this.focusAfterAttached){var t=-1!==e?e:0;this.params.values.length?this.virtualList.focusRow(t):this.getGui().focus()}},t.prototype.getValue=function(){return this.selectionConfirmed?this.selectedValue:this.originalSelectedValue},t.TEMPLATE='<div class="ag-rich-select" tabindex="-1">\n            <div ref="eValue" class="ag-rich-select-value"></div>\n            <div ref="eList" class="ag-rich-select-list"></div>\n        </div>',__decorate$v([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),__decorate$v([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eValue")],t.prototype,"eValue",void 0),__decorate$v([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eList")],t.prototype,"eList",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PopupComponent),VERSION$5="29.3.3",RichSelectModule={version:VERSION$5,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.RichSelectModule,beans:[],userComponents:[{componentName:"agRichSelect",componentClass:RichSelectCellEditor},{componentName:"agRichSelectCellEditor",componentClass:RichSelectCellEditor}],dependantModules:[EnterpriseCoreModule]},__extends$w=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$u=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},FullStore=function(e){function t(t,n,r){var o=e.call(this,0)||this;return o.nodeIdSequence=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberSequence,o.info={},o.ssrmParams=t,o.parentRowNode=r,o.level=r.level+1,o.groupLevel=t.rowGroupCols?o.level<t.rowGroupCols.length:void 0,o.leafGroup=!!t.rowGroupCols&&o.level===t.rowGroupCols.length-1,o}return __extends$w(t,e),t.prototype.postConstruct=function(){var e=this;if(this.usingTreeData=this.gridOptionsService.isTreeData(),this.nodeIdPrefix=this.blockUtils.createNodeIdPrefix(this.parentRowNode),!this.usingTreeData&&this.groupLevel){var t=this.ssrmParams.rowGroupCols[this.level];this.groupField=t.field,this.rowGroupColumn=this.columnModel.getRowGroupColumns()[this.level]}var n=1,r=-1===this.parentRowNode.level,o=this.storeUtils.getServerSideInitialRowCount();r&&void 0!==o&&(n=o),this.initialiseRowNodes(n),this.rowNodeBlockLoader.addBlock(this),this.addDestroyFunc(function(){return e.rowNodeBlockLoader.removeBlock(e)})},t.prototype.destroyRowNodes=function(){this.blockUtils.destroyRowNodes(this.allRowNodes),this.allRowNodes=[],this.nodesAfterSort=[],this.nodesAfterFilter=[],this.allNodesMap={}},t.prototype.initialiseRowNodes=function(e,t){void 0===t&&(t=!1),this.destroyRowNodes();for(var n=0;n<e;n++){var r=this.blockUtils.createRowNode({field:this.groupField,group:this.groupLevel,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn});t&&(r.failedLoad=!0),this.allRowNodes.push(r),this.nodesAfterFilter.push(r),this.nodesAfterSort.push(r)}},t.prototype.getBlockStateJson=function(){return{id:this.nodeIdPrefix?this.nodeIdPrefix:"",state:this.getState()}},t.prototype.loadFromDatasource=function(){this.storeUtils.loadFromDatasource({startRow:void 0,endRow:void 0,parentBlock:this,parentNode:this.parentRowNode,storeParams:this.ssrmParams,successCallback:this.pageLoaded.bind(this,this.getVersion()),success:this.success.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),fail:this.pageLoadFailed.bind(this,this.getVersion())})},t.prototype.getStartRow=function(){return 0},t.prototype.getEndRow=function(){return this.nodesAfterSort.length},t.prototype.createDataNode=function(e,t){var n=this.blockUtils.createRowNode({field:this.groupField,group:this.groupLevel,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn});null!=t?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.insertIntoArray(this.allRowNodes,n,t):this.allRowNodes.push(n);var r=this.prefixId(this.nodeIdSequence.next());return this.blockUtils.setDataIntoRowNode(n,e,r,void 0),this.nodeManager.addRowNode(n),this.blockUtils.checkOpenByDefault(n),this.allNodesMap[n.id]=n,n},t.prototype.prefixId=function(e){return this.nodeIdPrefix?this.nodeIdPrefix+"-"+e:e.toString()},t.prototype.processServerFail=function(){this.initialiseRowNodes(1,!0),this.fireStoreUpdatedEvent(),this.flushAsyncTransactions()},t.prototype.processServerResult=function(e){if(this.isAlive()){var t=e.storeInfo||e.groupLevelInfo;t&&Object.assign(this.info,t);var n=this.allRowNodes.length>0?this.allNodesMap:void 0;this.allRowNodes=[],this.nodesAfterSort=[],this.nodesAfterFilter=[],this.allNodesMap={},e.rowData||ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn('AG Grid: "params.data" is missing from Server-Side Row Model success() callback. Please use the "data" attribute. If no data is returned, set an empty list.',e)},"FullStore.noData"),this.createOrRecycleNodes(n,e.rowData),n&&this.blockUtils.destroyRowNodes(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.getAllValuesInObject(n)),this.filterAndSortNodes(),this.fireStoreUpdatedEvent(),this.flushAsyncTransactions()}},t.prototype.createOrRecycleNodes=function(e,t){var n=this;t&&t.forEach(function(t){var r=function(t){if(e){var r=n.gridOptionsService.getRowIdFunc();if(r){var o=n.parentRowNode.getGroupKeys(),i=n.level,a=r({data:t,parentKeys:o.length>0?o:void 0,level:i}),s=e[a];if(s)return delete e[a],s}}}(t);r?function(e,t){n.allNodesMap[e.id]=e,n.blockUtils.updateDataIntoRowNode(e,t),n.allRowNodes.push(e)}(r,t):n.createDataNode(t)})},t.prototype.flushAsyncTransactions=function(){var e=this;window.setTimeout(function(){return e.transactionManager.flushAsyncTransactions()},0)},t.prototype.filterAndSortNodes=function(){this.filterRowNodes(),this.sortRowNodes()},t.prototype.sortRowNodes=function(){var e=this.storeUtils.isServerSideSortAllLevels()||this.storeUtils.isServerSideSortOnServer(),t=this.sortController.getSortOptions(),n=!t||0==t.length;this.nodesAfterSort=e||n?this.nodesAfterFilter:this.rowNodeSorter.doFullSort(this.nodesAfterFilter,t)},t.prototype.filterRowNodes=function(){var e=this,t=this.storeUtils.isServerSideFilterAllLevels()||this.storeUtils.isServerSideFilterOnServer(),n=this.groupLevel;this.nodesAfterFilter=t||n?this.allRowNodes:this.allRowNodes.filter(function(t){return e.filterManager.doesRowPassFilter({rowNode:t})})},t.prototype.clearDisplayIndexes=function(){var e=this;this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.allRowNodes.forEach(function(t){return e.blockUtils.clearDisplayIndex(t)})},t.prototype.getDisplayIndexEnd=function(){return this.displayIndexEnd},t.prototype.isDisplayIndexInStore=function(e){return 0!==this.getRowCount()&&e>=this.displayIndexStart&&e<this.displayIndexEnd},t.prototype.setDisplayIndexes=function(e,t){var n=this;this.displayIndexStart=e.peek(),this.topPx=t.value;var r={};this.nodesAfterSort.forEach(function(o){n.blockUtils.setDisplayIndex(o,e,t),r[o.id]=!0}),this.allRowNodes.forEach(function(e){r[e.id]||n.blockUtils.clearDisplayIndex(e)}),this.displayIndexEnd=e.peek(),this.heightPx=t.value-this.topPx},t.prototype.forEachStoreDeep=function(e,t){void 0===t&&(t=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberSequence),e(this,t.next()),this.allRowNodes.forEach(function(n){var r=n.childStore;r&&r.forEachStoreDeep(e,t)})},t.prototype.forEachNodeDeep=function(e,t){void 0===t&&(t=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberSequence),this.allRowNodes.forEach(function(n){e(n,t.next());var r=n.childStore;r&&r.forEachNodeDeep(e,t)})},t.prototype.forEachNodeDeepAfterFilterAndSort=function(e,t){void 0===t&&(t=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberSequence),this.nodesAfterSort.forEach(function(n){e(n,t.next());var r=n.childStore;r&&r.forEachNodeDeepAfterFilterAndSort(e,t)})},t.prototype.getRowUsingDisplayIndex=function(e){if(this.isDisplayIndexInStore(e))return this.blockUtils.binarySearchForDisplayIndex(e,this.nodesAfterSort)},t.prototype.getRowBounds=function(e){for(var t=0;t<this.nodesAfterSort.length;t++){var n=this.nodesAfterSort[t],r=this.blockUtils.extractRowBounds(n,e);if(r)return r}return null},t.prototype.isPixelInRange=function(e){return e>=this.topPx&&e<this.topPx+this.heightPx},t.prototype.getRowIndexAtPixel=function(e){var t=this;if(e<=this.topPx)return this.nodesAfterSort[0].rowIndex;if(e>=this.topPx+this.heightPx){var n=this.nodesAfterSort[this.nodesAfterSort.length-1],r=n.rowTop+n.rowHeight;if(e>=r&&n.expanded){if(n.childStore&&n.childStore.getRowCount()>0)return n.childStore.getRowIndexAtPixel(e);if(n.detailNode)return n.detailNode.rowIndex}return n.rowIndex}var o=null;return this.nodesAfterSort.forEach(function(n){var r=t.blockUtils.getIndexAtPixel(n,e);null!=r&&(o=r)}),null==o?this.displayIndexEnd-1:o},t.prototype.getChildStore=function(e){var t=this;return this.storeUtils.getChildStore(e,this,function(e){return t.allRowNodes.find(function(t){return t.key==e})})},t.prototype.forEachChildStoreShallow=function(e){this.allRowNodes.forEach(function(t){var n=t.childStore;n&&e(n)})},t.prototype.refreshAfterFilter=function(e){var t=this.storeUtils.isServerSideFilterOnServer(),n=this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e);if(this.storeUtils.isServerSideFilterAllLevels()||t&&n)return this.refreshStore(!0),void this.sortRowNodes();this.filterRowNodes(),this.sortRowNodes(),this.forEachChildStoreShallow(function(t){return t.refreshAfterFilter(e)})},t.prototype.refreshAfterSort=function(e){var t=this.storeUtils.isServerSideSortOnServer(),n=this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e);if(this.storeUtils.isServerSideSortAllLevels()||t&&n)return this.refreshStore(!0),void this.filterRowNodes();this.filterRowNodes(),this.sortRowNodes(),this.forEachChildStoreShallow(function(t){return t.refreshAfterSort(e)})},t.prototype.applyTransaction=function(e){switch(this.getState()){case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNodeBlock.STATE_FAILED:return{status:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus.StoreLoadingFailed};case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNodeBlock.STATE_LOADING:return{status:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus.StoreLoading};case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNodeBlock.STATE_WAITING_TO_LOAD:return{status:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus.StoreWaitingToLoad}}var t=this.gridOptionsService.getCallback("isApplyServerSideTransaction");if(t&&!t({transaction:e,parentNode:this.parentRowNode,storeInfo:this.info,groupLevelInfo:this.info}))return{status:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus.Cancelled};var n={status:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus.Applied,remove:[],update:[],add:[]},r=[];return this.executeAdd(e,n),this.executeRemove(e,n,r),this.executeUpdate(e,n,r),this.filterAndSortNodes(),this.updateSelection(r),n},t.prototype.updateSelection=function(e){if(e.length>0){e.forEach(function(e){e.setSelected(!1,!1,!0,"rowDataChanged")});var t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_SELECTION_CHANGED,source:"rowDataChanged"};this.eventService.dispatchEvent(t)}},t.prototype.executeAdd=function(e,t){var n=this,r=e.add,o=e.addIndex;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missingOrEmpty(r)||("number"==typeof o&&o>=0?r.reverse().forEach(function(e){var r=n.createDataNode(e,o);t.add.push(r)}):r.forEach(function(e){var r=n.createDataNode(e);t.add.push(r)}))},t.prototype.executeRemove=function(e,t,n){var r=this,o=e.remove;if(null!=o){var i={};o.forEach(function(e){var o=r.lookupRowNode(e);o&&(o.isSelected()&&n.push(o),o.clearRowTopAndRowIndex(),i[o.id]=!0,delete r.allNodesMap[o.id],t.remove.push(o),r.nodeManager.removeNode(o))}),this.allRowNodes=this.allRowNodes.filter(function(e){return!i[e.id]})}},t.prototype.executeUpdate=function(e,t,n){var r=this,o=e.update;null!=o&&o.forEach(function(e){var o=r.lookupRowNode(e);o&&(r.blockUtils.updateDataIntoRowNode(o,e),!o.selectable&&o.isSelected()&&n.push(o),t.update.push(o))})},t.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsService.getRowIdFunc();if(null!=n){var r=this.level,o=this.parentRowNode.getGroupKeys(),i=n({data:e,parentKeys:o.length>0?o:void 0,level:r});if(!(t=this.allNodesMap[i]))return console.error("AG Grid: could not find row id="+i+", data item was not found for this id"),null}else if(!(t=this.allRowNodes.find(function(t){return t.data===e})))return console.error("AG Grid: could not find data item as object was not found",e),null;return t},t.prototype.addStoreStates=function(e){e.push({suppressInfiniteScroll:!0,route:this.parentRowNode.getGroupKeys(),rowCount:this.allRowNodes.length,info:this.info}),this.forEachChildStoreShallow(function(t){return t.addStoreStates(e)})},t.prototype.refreshStore=function(e){if(e){var t=this.nodesAfterSort?this.nodesAfterSort.length:1;this.initialiseRowNodes(t)}this.scheduleLoad(),this.fireStoreUpdatedEvent()},t.prototype.retryLoads=function(){this.getState()===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNodeBlock.STATE_FAILED&&(this.initialiseRowNodes(1),this.scheduleLoad()),this.forEachChildStoreShallow(function(e){return e.retryLoads()})},t.prototype.scheduleLoad=function(){this.setStateWaitingToLoad(),this.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.fireStoreUpdatedEvent=function(){var e={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)},t.prototype.getRowCount=function(){return this.nodesAfterSort.length},t.prototype.getTopLevelRowDisplayedIndex=function(e){return this.nodesAfterSort[e].rowIndex},t.prototype.isLastRowIndexKnown=function(){return this.getState()==ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNodeBlock.STATE_LOADED},t.prototype.getRowNodesInRange=function(e,t){var n=[],r=!1;return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(e)&&(r=!0),this.nodesAfterSort.forEach(function(o){var i=o===e||o===t;(r||i)&&n.push(o),i&&(r=!r)}),r?[]:n},t.prototype.getStoreBounds=function(){return{topPx:this.topPx,heightPx:this.heightPx}},__decorate$u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmStoreUtils")],t.prototype,"storeUtils",void 0),__decorate$u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmBlockUtils")],t.prototype,"blockUtils",void 0),__decorate$u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),__decorate$u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),__decorate$u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("sortController")],t.prototype,"sortController",void 0),__decorate$u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmNodeManager")],t.prototype,"nodeManager",void 0),__decorate$u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("filterManager")],t.prototype,"filterManager",void 0),__decorate$u([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmTransactionManager")],t.prototype,"transactionManager",void 0),__decorate$u([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),__decorate$u([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreDestroy],t.prototype,"destroyRowNodes",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNodeBlock),__extends$v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$t=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$7=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},LazyBlockLoader=function(e){function t(t,n,r){var o=e.call(this)||this;return o.loadingNodes=new Set,o.checkForLoadQueued=!1,o.loaderTimeout=void 0,o.nextBlockToLoad=void 0,o.parentNode=n,o.cache=t,o.storeParams=r,o}return __extends$v(t,e),t.prototype.init=function(){var e=this;this.addManagedListener(this.rowNodeBlockLoader,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNodeBlockLoader.BLOCK_LOADED_EVENT,function(){return e.queueLoadAction()})},t.prototype.isRowLoading=function(e){return this.loadingNodes.has(e)},t.prototype.getBlockToLoad=function(){for(var e,t=this.api.getFirstDisplayedRow(),n=this.api.getLastDisplayedRow(),r=t;r<=n;r++){var o=this.cache.getNodeCachedByDisplayIndex(r);if(o){var i=this.cache.getNodes().getBy("node",o);if(i&&!this.isRowLoading(i.index)&&(o.__needsRefreshWhenVisible||o.stub&&!o.failedLoad))return this.getBlockStartIndexForIndex(i.index)}}var a=this.cache.getNodesToRefresh(),s=null,l=Number.MAX_SAFE_INTEGER;a.forEach(function(e){if(null!=e.rowIndex){var r=Math.abs(t-e.rowIndex),o=Math.abs(e.rowIndex-n);r<l&&(s=e,l=r),o<l&&(s=e,l=o)}else s=e});var c=null===(e=this.cache.getNodes().getBy("node",s))||void 0===e?void 0:e.index;return null==c?void 0:this.getBlockStartIndexForIndex(c)},t.prototype.reset=function(){this.loadingNodes.clear(),clearTimeout(this.loaderTimeout),this.loaderTimeout=void 0},t.prototype.executeLoad=function(e,t){var n,r=this,o=this.cache.getSsrmParams(),i={startRow:e,endRow:t,rowGroupCols:o.rowGroupCols,valueCols:o.valueCols,pivotCols:o.pivotCols,pivotMode:o.pivotMode,groupKeys:this.parentNode.getGroupKeys(),filterModel:o.filterModel,sortModel:o.sortModel},a=function(){for(var n=0;n<t-e;n++)r.loadingNodes.delete(e+n)},s=function(n){r.rowNodeBlockLoader.loadComplete(),r.cache.onLoadSuccess(e,t-e,n),a(),r.queueLoadAction()},l=function(){r.rowNodeBlockLoader.loadComplete(),r.cache.onLoadFailed(e,t-e),a(),r.queueLoadAction()},c={request:i,successCallback:function(e,t){return s({rowData:e,rowCount:t})},success:s,failCallback:l,fail:l,parentNode:this.parentNode,api:this.api,columnApi:this.columnApi,context:this.gridOptionsService.context};!function(){for(var n=0;n<t-e;n++)r.loadingNodes.add(e+n)}(),null===(n=this.cache.getSsrmParams().datasource)||void 0===n||n.getRows(c)},t.prototype.getNextBlockToLoad=function(){var e=this.getBlockToLoad();return null!=e&&e<0&&this.getBlockToLoad(),null!=e?[String(e),e+this.getBlockSize()]:null},t.prototype.queueLoadCheck=function(){var e=this;this.checkForLoadQueued||(this.checkForLoadQueued=!0,window.queueMicrotask(function(){e.checkForLoadQueued=!1,e.queueLoadAction()}))},t.prototype.queueLoadAction=function(){var e,t=this,n=this.getNextBlockToLoad();if(!n)return window.clearTimeout(this.loaderTimeout),this.loaderTimeout=void 0,void(this.nextBlockToLoad=void 0);if(!this.nextBlockToLoad||this.nextBlockToLoad[0]!==n[0]&&this.nextBlockToLoad[1]!==n[1]){this.nextBlockToLoad=n,window.clearTimeout(this.loaderTimeout);var r=__read$7(this.nextBlockToLoad,2),o=r[0],i=r[1],a=Number(o);this.loaderTimeout=window.setTimeout(function(){t.cache.isAlive()&&(t.loaderTimeout=void 0,t.attemptLoad(a,i),t.nextBlockToLoad=void 0)},null!==(e=this.gridOptionsService.getNum("blockLoadDebounceMillis"))&&void 0!==e?e:0)}},t.prototype.attemptLoad=function(e,t){var n=this.rowNodeBlockLoader.getAvailableLoadingCount();null!=n&&0===n||(this.rowNodeBlockLoader.registerLoads(1),this.executeLoad(e,t),this.queueLoadAction())},t.prototype.getBlockSize=function(){return this.storeParams.cacheBlockSize||t.DEFAULT_BLOCK_SIZE},t.prototype.getBlockStartIndexForIndex=function(e){return e-e%this.getBlockSize()},t.prototype.getBlockBoundsForIndex=function(e){var t=this.getBlockStartIndexForIndex(e);return[t,t+this.getBlockSize()]},t.DEFAULT_BLOCK_SIZE=100,__decorate$t([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"api",void 0),__decorate$t([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnApi")],t.prototype,"columnApi",void 0),__decorate$t([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),__decorate$t([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),MultiIndexMap=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length<1)throw new Error("AG Grid: At least one index must be provided.");this.indexes=e,this.maps=new Map(this.indexes.map(function(e){return[e,new Map]}))}return e.prototype.getBy=function(e,t){var n=this.maps.get(e);if(!n)throw new Error("AG Grid: "+String(e)+" not found");return n.get(t)},e.prototype.set=function(e){var t=this;this.indexes.forEach(function(n){var r=t.maps.get(n);if(!r)throw new Error("AG Grid: "+String(n)+" not found");r.set(e[n],e)})},e.prototype.delete=function(e){var t=this;this.indexes.forEach(function(n){var r=t.maps.get(n);if(!r)throw new Error("AG Grid: "+String(n)+" not found");r.delete(e[n])})},e.prototype.clear=function(){this.maps.forEach(function(e){return e.clear()})},e.prototype.getIterator=function(e){var t=this.maps.get(e);if(!t)throw new Error("AG Grid: "+String(e)+" not found");return t.values()},e.prototype.forEach=function(e){for(var t,n=this.getIterator(this.indexes[0]);(t=n.next())&&!t.done;)e(t.value)},e.prototype.find=function(e){for(var t,n=this.getIterator(this.indexes[0]);(t=n.next())&&!t.done;)if(e(t.value))return t.value},e.prototype.filter=function(e){for(var t,n=this.getIterator(this.indexes[0]),r=[];(t=n.next())&&!t.done;)e(t.value)&&r.push(t.value);return r},e}(),__extends$u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$s=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$6=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$4=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$6(arguments[t]));return e},LazyCache=function(e){function t(t,n,r){var o=e.call(this)||this;return o.live=!0,o.store=t,o.numberOfRows=n,o.isLastRowKnown=!1,o.storeParams=r,o}return __extends$u(t,e),t.prototype.init=function(){this.nodeMap=new MultiIndexMap("index","id","node"),this.nodeDisplayIndexMap=new Map,this.nodesToRefresh=new Set,this.defaultNodeIdPrefix=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),this.rowLoader=this.createManagedBean(new LazyBlockLoader(this,this.store.getParentNode(),this.storeParams)),this.getRowIdFunc=this.gridOptionsService.getRowIdFunc(),this.isMasterDetail=this.gridOptionsService.isMasterDetail()},t.prototype.destroyRowNodes=function(){var e=this;this.numberOfRows=0,this.nodeMap.forEach(function(t){return e.blockUtils.destroyRowNode(t.node)}),this.nodeMap.clear(),this.nodeDisplayIndexMap.clear(),this.nodesToRefresh.clear(),this.live=!1},t.prototype.getRowByDisplayIndex=function(e){var t,n,r,o;if(this.store.isDisplayIndexInStore(e)){var i=this.nodeDisplayIndexMap.get(e);if(i)return(i.stub||i.__needsRefreshWhenVisible)&&this.rowLoader.queueLoadCheck(),i;if(e===this.store.getDisplayIndexStart())return this.createStubNode(0,e);var a=this.nodeDisplayIndexMap.get(e-1);if(a){if(this.isMasterDetail&&a.master&&a.expanded)return a.detailNode;if(a.expanded&&(null===(t=a.childStore)||void 0===t?void 0:t.isDisplayIndexInStore(e)))return null===(n=a.childStore)||void 0===n?void 0:n.getRowUsingDisplayIndex(e);var s=this.nodeMap.getBy("node",a);return this.createStubNode(s.index+1,e)}var l=this.getSurroundingNodesByDisplayIndex(e);if(null==l){var c=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-e);return this.createStubNode(c,e)}var u=l.previousNode,d=l.nextNode;if(u&&u.expanded&&(null===(r=u.childStore)||void 0===r?void 0:r.isDisplayIndexInStore(e)))return null===(o=u.childStore)||void 0===o?void 0:o.getRowUsingDisplayIndex(e);if(d){var p=this.nodeMap.getBy("node",d),h=d.rowIndex-e,f=p.index-h;return this.createStubNode(f,e)}var g=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-e);return this.createStubNode(g,e)}},t.prototype.createStubNode=function(e,t){var n=this,r=this.store.getRowBounds(t),o=this.createRowAtIndex(e,null,function(e){e.setRowIndex(t),e.setRowTop(r.rowTop),n.nodeDisplayIndexMap.set(t,e)});return this.rowLoader.queueLoadCheck(),o},t.prototype.getRowByStoreIndex=function(e){var t;return null===(t=this.nodeMap.getBy("index",e))||void 0===t?void 0:t.node},t.prototype.skipDisplayIndexes=function(e,t,n){if(0!==e){var r=this.gridOptionsService.getRowHeightAsNumber();this.skippedDisplayIndexes.push({from:t.peek(),to:t.peek()+e}),t.skip(e),n.value+=e*r}},t.prototype.setDisplayIndexes=function(e,t){this.nodeDisplayIndexMap.clear(),this.skippedDisplayIndexes=[];var n={};this.nodeMap.forEach(function(e){n[e.index]=e.node});var r=-1;for(var o in n){var i=n[o],a=Number(o),s=a-1-r;this.skipDisplayIndexes(s,e,t),this.blockUtils.setDisplayIndex(i,e,t),this.nodeDisplayIndexMap.set(i.rowIndex,i),e.peek()-i.rowIndex>1&&this.skippedDisplayIndexes.push({from:i.rowIndex+1,to:e.peek()}),r=a}var l=this.numberOfRows-1-r;this.skipDisplayIndexes(l,e,t),this.purgeExcessRows()},t.prototype.getRowCount=function(){return this.numberOfRows},t.prototype.setRowCount=function(e,t){if(e<0)throw new Error("AG Grid: setRowCount can only accept a positive row count.");this.numberOfRows=e,null!=t&&(this.isLastRowKnown=t,!1===t&&(this.numberOfRows+=1)),this.fireStoreUpdatedEvent()},t.prototype.getNodes=function(){return this.nodeMap},t.prototype.getNodeCachedByDisplayIndex=function(e){var t;return null!==(t=this.nodeDisplayIndexMap.get(e))&&void 0!==t?t:null},t.prototype.getNodesToRefresh=function(){return this.nodesToRefresh},t.prototype.getSurroundingNodesByDisplayIndex=function(e){for(var t in this.skippedDisplayIndexes){var n=this.skippedDisplayIndexes[t];if(n.from<=e&&n.to>=e)return{previousNode:this.nodeDisplayIndexMap.get(n.from-1),nextNode:this.nodeDisplayIndexMap.get(n.to+1)}}return null},t.prototype.getDisplayIndexFromStoreIndex=function(e){var t,n=this.nodeMap.filter(function(t){return t.index>e});if(0===n.length)return this.store.getDisplayIndexEnd()-(this.numberOfRows-e);for(var r=0;r<n.length;r++){var o=n[r];(null==t||t.index>o.index)&&(t=o)}return t.node.rowIndex-(t.index-e)},t.prototype.createRowAtIndex=function(e,t,n){var r=this.nodeMap.getBy("index",e);if(r){var o=r.node;if(this.nodesToRefresh.delete(o),o.__needsRefreshWhenVisible=!1,this.doesNodeMatch(t,o))return this.blockUtils.updateDataIntoRowNode(o,t),o;if(null==this.getRowIdFunc&&o.group&&o.expanded)return o;this.destroyRowAtIndex(e)}if(t&&null!=this.getRowIdFunc){var i=this.getRowId(t),a=this.nodeMap.getBy("id",i);if(a){this.nodeMap.delete(a),o=a.node;var s=a.index;return this.blockUtils.updateDataIntoRowNode(o,t),this.nodeMap.set({id:o.id,node:o,index:e}),this.markBlockForVerify(s),o}}var l=this.blockUtils.createRowNode(this.store.getRowDetails());if(null!=t){var c=this.getPrefixedId(this.store.getIdSequence().next());this.blockUtils.setDataIntoRowNode(l,t,c,void 0),this.blockUtils.checkOpenByDefault(l),this.nodeManager.addRowNode(l)}return this.nodeMap.set({id:l.id,node:l,index:e}),n&&n(l),l},t.prototype.getBlockStates=function(){var e=this,t={},n={},r=new Set;this.nodeMap.forEach(function(o){var i,a=o.node,s=o.index,l=e.rowLoader.getBlockStartIndexForIndex(s);a.stub||a.failedLoad||(t[l]=(null!==(i=t[l])&&void 0!==i?i:0)+1);var c="loaded";a.failedLoad?c="failed":e.rowLoader.isRowLoading(l)?c="loading":e.nodesToRefresh.has(a)&&(c="needsLoading"),(a.__needsRefreshWhenVisible||a.stub)&&r.add(l),n[l]||(n[l]=new Set),n[l].add(c)});var o={loading:4,failed:3,needsLoading:2,loaded:1},i=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),a={};return Object.entries(n).forEach(function(n){var r,s=__read$6(n,2),l=s[0],c=s[1],u=__spread$4(c).sort(function(e,t){var n,r;return(null!==(n=o[e])&&void 0!==n?n:0)-(null!==(r=o[t])&&void 0!==r?r:0)}),d=u[0],p=Number(l)/e.rowLoader.getBlockSize(),h=i?i+"-"+p:String(p);a[h]={blockNumber:p,startRow:Number(l),endRow:Number(l)+e.rowLoader.getBlockSize(),pageStatus:d,loadedRowCount:null!==(r=t[l])&&void 0!==r?r:0}}),a},t.prototype.destroyRowAtIndex=function(e){var t=this.nodeMap.getBy("index",e);t&&(this.nodeMap.delete(t),this.nodeDisplayIndexMap.delete(t.node.rowIndex),this.nodesToRefresh.delete(t.node),this.blockUtils.destroyRowNode(t.node))},t.prototype.getSsrmParams=function(){return this.store.getSsrmParams()},t.prototype.getPrefixedId=function(e){return this.defaultNodeIdPrefix?this.defaultNodeIdPrefix+"-"+e:e.toString()},t.prototype.markBlockForVerify=function(e){var t=__read$6(this.rowLoader.getBlockBoundsForIndex(e),2),n=t[0],r=t[1];this.nodeMap.filter(function(e){return e.index>=n&&e.index<r}).forEach(function(e){e.node.__needsRefreshWhenVisible=!0})},t.prototype.doesNodeMatch=function(e,t){if(t.stub)return!1;if(null!=this.getRowIdFunc){var n=this.getRowId(e);return t.id===n}return t.data===e},t.prototype.purgeStubsOutsideOfViewport=function(){var e=this,t=this.api.getFirstDisplayedRow(),n=this.api.getLastDisplayedRow(),r=this.rowLoader.getBlockStartIndexForIndex(t),o=__read$6(this.rowLoader.getBlockBoundsForIndex(n),2);o[0];var i=o[1];this.nodeMap.forEach(function(t){e.rowLoader.isRowLoading(t.index)||t.node.stub&&(t.index<r||t.index>i)&&e.destroyRowAtIndex(t.index)})},t.prototype.getNumberOfRowsToRetain=function(e,t){var n=this.storeParams.maxBlocksInCache;if(null==n)return null;var r=this.rowLoader.getBlockSize(),o=Math.ceil((t-e)/r);return Math.max(n,o)*r},t.prototype.getBlocksDistanceFromRow=function(e,t){var n=this,r={};return e.forEach(function(e){var o=e.node,i=e.index,a=__read$6(n.rowLoader.getBlockBoundsForIndex(i),2),s=a[0],l=a[1];if(!(s in r)){var c,u=Math.abs(o.rowIndex-t),d=n.nodeMap.getBy("index",[l-1]);d&&(c=Math.abs(d.node.rowIndex-t));var p=null==c||u<c?u:c;r[s]=p}}),Object.entries(r)},t.prototype.purgeExcessRows=function(){var e=this;this.purgeStubsOutsideOfViewport();var t=this.api.getFirstDisplayedRow(),n=this.api.getLastDisplayedRow(),r=this.rowLoader.getBlockStartIndexForIndex(t),o=__read$6(this.rowLoader.getBlockBoundsForIndex(n),2);o[0];var i=o[1],a=this.getNumberOfRowsToRetain(r,i);if(null!=this.store.getDisplayIndexEnd()&&null!=a){var s=this.nodeMap.filter(function(t){var n=t.node;return!n.stub&&!e.isNodeCached(n)});if(!(s.length<=a)){var l=s.filter(function(e){var t=e.node.rowIndex;if(null==t||-1===t)return!0;if(r<=t&&t<i)return!1;var n=t+d;return!(r<=n&&n<i||t<r&&n>=i)});if(a-=s.length-l.length,l.length){var c=t+(n-t)/2,u=this.getBlocksDistanceFromRow(l,c),d=this.rowLoader.getBlockSize(),p=Math.ceil(a/d);if(!(u.length<=p)){u.sort(function(e,t){return Math.sign(t[1]-e[1])});for(var h=u.length-Math.max(p,0),f=0;f<h;f++)for(var g=Number(u[f][0]),m=g;m<g+d;m++){var v=this.nodeMap.getBy("index",m);v&&!this.isNodeCached(v.node)&&this.destroyRowAtIndex(m)}}}}}},t.prototype.isNodeFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();return!!t&&null==t.rowPinned&&t.rowIndex===e.rowIndex},t.prototype.isNodeCached=function(e){return!!e.group&&e.expanded||this.isNodeFocused(e)},t.prototype.extractDuplicateIds=function(e){var t=this;if(null==!this.getRowIdFunc)return[];var n=new Set,r=new Set;return e.forEach(function(e){var o=t.getRowId(e);n.has(o)?r.add(o):n.add(o)}),__spread$4(r)},t.prototype.onLoadSuccess=function(e,t,n){var r=this;if(this.live){if(null!=this.getRowIdFunc){var o=this.extractDuplicateIds(n.rowData);if(o.length>0){var i=o.join(", ");return console.warn("AG Grid: Unable to display rows as duplicate row ids ("+i+") were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids."),void this.onLoadFailed(e,t)}}var a=this.nodesToRefresh.size>0;n.rowData.forEach(function(t,n){var o,i=e+n,a=r.nodeMap.getBy("index",i);if(!(null===(o=null==a?void 0:a.node)||void 0===o?void 0:o.stub))return a&&r.doesNodeMatch(t,a.node)?(r.blockUtils.updateDataIntoRowNode(a.node,t),r.nodesToRefresh.delete(a.node),void(a.node.__needsRefreshWhenVisible=!1)):void r.createRowAtIndex(i,t);r.createRowAtIndex(i,t)});var s=0===this.nodesToRefresh.size;if(a&&s&&this.fireRefreshFinishedEvent(),null!=n.rowCount&&-1!==n.rowCount)this.numberOfRows=n.rowCount,this.isLastRowKnown=!0;else if(t>n.rowData.length)this.numberOfRows=e+n.rowData.length,this.isLastRowKnown=!0;else if(!this.isLastRowKnown){var l=e+n.rowData.length+1;l>this.numberOfRows&&(this.numberOfRows=l)}this.isLastRowKnown&&this.nodeMap.filter(function(e){return e.index>=r.numberOfRows}).forEach(function(e){return r.destroyRowAtIndex(e.index)}),this.fireStoreUpdatedEvent()}},t.prototype.fireRefreshFinishedEvent=function(){0===this.nodesToRefresh.size&&this.store.fireRefreshFinishedEvent()},t.prototype.isLastRowIndexKnown=function(){return this.isLastRowKnown},t.prototype.onLoadFailed=function(e,t){this.live&&(this.nodeMap.filter(function(n){return n.index>=e&&n.index<e+t}).forEach(function(e){return e.node.failedLoad=!0}),this.fireStoreUpdatedEvent())},t.prototype.markNodesForRefresh=function(){var e=this;this.nodeMap.forEach(function(t){t.node.stub||e.nodesToRefresh.add(t.node)}),this.rowLoader.queueLoadCheck(),this.isLastRowKnown&&0===this.numberOfRows&&(this.numberOfRows=1,this.isLastRowKnown=!1,this.fireStoreUpdatedEvent())},t.prototype.isNodeInCache=function(e){return!!this.nodeMap.getBy("id",e)},t.prototype.fireStoreUpdatedEvent=function(){this.live&&this.store.fireStoreUpdatedEvent()},t.prototype.getRowId=function(e){if(null==this.getRowIdFunc)return null;var t=this.store.getRowDetails().level,n=this.store.getParentNode().getGroupKeys(),r=this.getRowIdFunc({data:e,parentKeys:n.length>0?n:void 0,level:t});return String(r)},t.prototype.updateRowNodes=function(e){var t=this;if(null==this.getRowIdFunc)throw new Error("AG Grid: Insert transactions can only be applied when row ids are supplied.");var n=[];return e.forEach(function(e){var r=t.getRowId(e),o=t.nodeMap.getBy("id",r);o&&(t.blockUtils.updateDataIntoRowNode(o.node,e),n.push(o.node))}),n},t.prototype.insertRowNodes=function(e,t){var n=this,r=null==t&&this.isLastRowKnown?this.store.getRowCount():t;if(null==r||this.store.getRowCount()<r)return[];if(null==this.getRowIdFunc)throw new Error("AG Grid: Insert transactions can only be applied when row ids are supplied.");var o={};e.forEach(function(e){var t=n.getRowId(e);t&&n.isNodeInCache(t)||(o[t]=e)});var i=Object.values(o),a=i.length;if(0===a)return[];var s=this.nodeMap.filter(function(e){return e.index>=r});return s.forEach(function(e){return n.nodeMap.delete(e)}),s.forEach(function(e){n.nodeMap.set({node:e.node,index:e.index+a,id:e.id})}),this.numberOfRows+=a,i.map(function(e,t){return n.createRowAtIndex(r+t,e)})},t.prototype.getOrderedNodeMap=function(){var e={};return this.nodeMap.forEach(function(t){return e[t.index]=t}),e},t.prototype.clearDisplayIndexes=function(){this.nodeDisplayIndexMap.clear()},t.prototype.removeRowNodes=function(e){if(null==this.getRowIdFunc)throw new Error("AG Grid: Insert transactions can only be applied when row ids are supplied.");var t=[],n=[],r=0,o=__spread$4(e),i=this.getOrderedNodeMap(),a=-1,s=function(e){a+=1;var s=i[e],c=o.findIndex(function(e){return e===s.id});if(-1!==c)return o.splice(c,1),l.destroyRowAtIndex(Number(e)),t.push(s.node),r+=1,"continue";if(0===r)return"continue";var u=Number(e);a!==u&&n.push(s.node),l.nodeMap.delete(i[e]),l.nodeMap.set({id:s.id,node:s.node,index:u-r})},l=this;for(var c in i)s(c);return this.numberOfRows-=this.isLastRowIndexKnown()?e.length:r,o.length>0&&n.length>0&&(n.forEach(function(e){return e.__needsRefreshWhenVisible=!0}),this.rowLoader.queueLoadCheck()),t},__decorate$s([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"api",void 0),__decorate$s([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmBlockUtils")],t.prototype,"blockUtils",void 0),__decorate$s([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("focusService")],t.prototype,"focusService",void 0),__decorate$s([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmNodeManager")],t.prototype,"nodeManager",void 0),__decorate$s([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),__decorate$s([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreDestroy],t.prototype,"destroyRowNodes",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$r=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$5=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$3=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$5(arguments[t]));return e},LazyStore=function(e){function t(t,n,r){var o=e.call(this)||this;return o.idSequence=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberSequence,o.ssrmParams=t,o.parentRowNode=r,o.storeParams=n,o.level=r.level+1,o.group=!!t.rowGroupCols&&o.level<t.rowGroupCols.length,o.leafGroup=!!t.rowGroupCols&&o.level===t.rowGroupCols.length-1,o}return __extends$t(t,e),t.prototype.init=function(){var e=1;if(0===this.level&&(e=this.storeUtils.getServerSideInitialRowCount()),this.cache=this.createManagedBean(new LazyCache(this,e,this.storeParams)),!this.gridOptionsService.isTreeData()&&this.group){var t=this.ssrmParams.rowGroupCols[this.level];this.groupField=t.field,this.rowGroupColumn=this.columnModel.getRowGroupColumns()[this.level]}},t.prototype.destroyRowNodes=function(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.destroyBean(this.cache)},t.prototype.applyTransaction=function(e){var t,n,r,o=this,i=this.gridOptionsService.getRowIdFunc();if(!i)return console.warn("AG Grid: getRowId callback must be implemented for transactions to work. Transaction was ignored."),{status:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus.Cancelled};var a=this.gridOptionsService.getCallback("isApplyServerSideTransaction");if(a&&!a({transaction:e,parentNode:this.parentRowNode,storeInfo:this.info,groupLevelInfo:this.info}))return{status:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus.Cancelled};var s=void 0;(null===(t=e.update)||void 0===t?void 0:t.length)&&(s=this.cache.updateRowNodes(e.update));var l=void 0;if(null===(n=e.add)||void 0===n?void 0:n.length){var c=e.addIndex;null!=c&&c<0&&(c=void 0),l=this.cache.insertRowNodes(e.add,c)}var u=void 0;if(null===(r=e.remove)||void 0===r?void 0:r.length){var d=e.remove.map(function(e){return i({level:o.level,parentKeys:o.parentRowNode.getGroupKeys(),data:e})}),p=__spread$3(new Set(d));u=this.cache.removeRowNodes(p)}return this.updateSelectionAfterTransaction(s,u),{status:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus.Applied,update:s,add:l,remove:u}},t.prototype.updateSelectionAfterTransaction=function(e,t){var n=!1;if(null==e||e.forEach(function(e){e.isSelected()&&!e.selectable&&(e.setSelected(!1,!1,!0,"rowDataChanged"),n=!0)}),null==t||t.forEach(function(e){e.isSelected()&&(e.setSelected(!1,!1,!0,"rowDataChanged"),n=!0)}),n){var r={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_SELECTION_CHANGED,source:"rowDataChanged"};this.eventService.dispatchEvent(r)}},t.prototype.clearDisplayIndexes=function(){var e=this;this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.cache.getNodes().forEach(function(t){return e.blockUtils.clearDisplayIndex(t.node)}),this.cache.clearDisplayIndexes()},t.prototype.getDisplayIndexStart=function(){return this.displayIndexStart},t.prototype.getDisplayIndexEnd=function(){return this.displayIndexEnd},t.prototype.getRowCount=function(){return this.cache.getRowCount()},t.prototype.setRowCount=function(e,t){this.cache.setRowCount(e,t)},t.prototype.isDisplayIndexInStore=function(e){return 0!==this.cache.getRowCount()&&this.displayIndexStart<=e&&e<this.getDisplayIndexEnd()},t.prototype.setDisplayIndexes=function(e,t){this.displayIndexStart=e.peek(),this.topPx=t.value,this.cache.setDisplayIndexes(e,t),this.displayIndexEnd=e.peek(),this.heightPx=t.value-this.topPx},t.prototype.forEachStoreDeep=function(e,t){void 0===t&&(t=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberSequence),e(this,t.next()),this.cache.getNodes().forEach(function(n){var r=n.node.childStore;r&&r.forEachStoreDeep(e,t)})},t.prototype.forEachNodeDeep=function(e,t){void 0===t&&(t=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberSequence),this.cache.getNodes().forEach(function(n){e(n.node,t.next());var r=n.node.childStore;r&&r.forEachNodeDeep(e,t)})},t.prototype.forEachNodeDeepAfterFilterAndSort=function(e,t){void 0===t&&(t=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberSequence);var n=this.cache.getOrderedNodeMap();for(var r in n){var o=n[r];e(o.node,t.next());var i=o.node.childStore;i&&i.forEachNodeDeepAfterFilterAndSort(e,t)}},t.prototype.retryLoads=function(){this.cache.getNodes().forEach(function(e){var t=e.node;t.failedLoad&&(t.failedLoad=!1,t.__needsRefreshWhenVisible=!0,t.stub=!0)}),this.forEachChildStoreShallow(function(e){return e.retryLoads()}),this.fireStoreUpdatedEvent()},t.prototype.getRowUsingDisplayIndex=function(e){return this.cache.getRowByDisplayIndex(e)},t.prototype.getRowBounds=function(e){var t;if(!this.isDisplayIndexInStore(e))return null;var n=this.cache.getNodeCachedByDisplayIndex(e);if(n&&(r=this.blockUtils.extractRowBounds(n,e)))return r;var r,o=null!==(t=this.cache.getSurroundingNodesByDisplayIndex(e))&&void 0!==t?t:{},i=o.previousNode,a=o.nextNode;if(i&&null!=(r=this.blockUtils.extractRowBounds(i,e)))return r;var s=this.gridOptionsService.getRowHeightAsNumber();if(a){var l=Math.floor((a.rowIndex-e)*s);return{rowTop:a.rowTop-l,rowHeight:s}}return{rowTop:this.topPx+this.heightPx-Math.floor((this.getDisplayIndexEnd()-e)*s),rowHeight:s}},t.prototype.isPixelInRange=function(e){return e>=this.topPx&&e<this.topPx+this.heightPx},t.prototype.getRowIndexAtPixel=function(e){if(e<this.topPx)return this.getDisplayIndexStart();if(e>=this.topPx+this.heightPx)return this.getDisplayIndexEnd()-1;var t=Number.MAX_SAFE_INTEGER,n=null,r=Number.MAX_SAFE_INTEGER,o=null;if(this.cache.getNodes().forEach(function(i){var a=i.node,s=Math.abs(e-a.rowTop);a.rowTop<e?s<t&&(t=s,n=a):s<r&&(r=s,o=a)}),n){var i=this.blockUtils.getIndexAtPixel(n,e);if(null!=i)return i}var a=this.gridOptionsService.getRowHeightAsNumber();if(o){var s=o.rowTop,l=Math.ceil((s-e)/a);return o.rowIndex-l}var c=this.topPx+this.heightPx,u=Math.floor((c-e)/a);return this.getDisplayIndexEnd()-u},t.prototype.getChildStore=function(e){var t=this;return this.storeUtils.getChildStore(e,this,function(e){var n=t.cache.getNodes().find(function(t){return t.node.key==e});return n?n.node:null})},t.prototype.forEachChildStoreShallow=function(e){this.cache.getNodes().forEach(function(t){var n=t.node;n.childStore&&e(n.childStore)})},t.prototype.refreshAfterSort=function(e){if(this.storeUtils.isServerSideSortAllLevels()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e)){var t=this.cache.getRowCount();return this.destroyBean(this.cache),this.cache=this.createManagedBean(new LazyCache(this,t,this.storeParams)),void this.fireStoreUpdatedEvent()}this.forEachChildStoreShallow(function(t){return t.refreshAfterSort(e)})},t.prototype.refreshAfterFilter=function(e){this.storeUtils.isServerSideFilterAllLevels()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e)?this.refreshStore(!0):this.forEachChildStoreShallow(function(t){return t.refreshAfterFilter(e)})},t.prototype.refreshStore=function(e){if(e)return this.destroyBean(this.cache),this.cache=this.createManagedBean(new LazyCache(this,1,this.storeParams)),void this.fireStoreUpdatedEvent();this.cache.markNodesForRefresh()},t.prototype.getTopLevelRowDisplayedIndex=function(e){var t=this.cache.getDisplayIndexFromStoreIndex(e);return null!=t?t:e},t.prototype.isLastRowIndexKnown=function(){return this.cache.isLastRowIndexKnown()},t.prototype.getRowNodesInRange=function(e,t){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(e),this.cache.getNodes().filter(function(n){var r=n.node;return r.rowIndex>=e.rowIndex&&r.rowIndex<=t.rowIndex}).map(function(e){return e.node})},t.prototype.addStoreStates=function(e){e.push({suppressInfiniteScroll:!1,route:this.parentRowNode.getGroupKeys(),rowCount:this.getRowCount(),lastRowIndexKnown:this.isLastRowIndexKnown(),info:this.info,maxBlocksInCache:this.storeParams.maxBlocksInCache,cacheBlockSize:this.storeParams.cacheBlockSize}),this.forEachChildStoreShallow(function(t){return t.addStoreStates(e)})},t.prototype.getIdSequence=function(){return this.idSequence},t.prototype.getParentNode=function(){return this.parentRowNode},t.prototype.getRowDetails=function(){return{field:this.groupField,group:this.group,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn}},t.prototype.getSsrmParams=function(){return this.ssrmParams},t.prototype.setStoreInfo=function(e){this.info=e},t.prototype.fireStoreUpdatedEvent=function(){var e={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)},t.prototype.fireRefreshFinishedEvent=function(){var e={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_STORE_REFRESHED,route:this.parentRowNode.getRoute()};this.eventService.dispatchEvent(e)},t.prototype.getBlockStates=function(){return this.cache.getBlockStates()},t.prototype.getStoreBounds=function(){return{topPx:this.topPx,heightPx:this.heightPx}},__decorate$r([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmBlockUtils")],t.prototype,"blockUtils",void 0),__decorate$r([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmStoreUtils")],t.prototype,"storeUtils",void 0),__decorate$r([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$r([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),__decorate$r([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreDestroy],t.prototype,"destroyRowNodes",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$q=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$4=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ServerSideRowModel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onRowHeightChanged_debounced=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.debounce(t.onRowHeightChanged.bind(t),100),t.pauseStoreUpdateListening=!1,t.started=!1,t}return __extends$s(t,e),t.prototype.ensureRowHeightsValid=function(){return!1},t.prototype.start=function(){this.started=!0;var e=this.gridOptionsService.get("serverSideDatasource");e&&this.setDatasource(e)},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=void 0)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_STORE_UPDATED,this.onStoreUpdated.bind(this));var e=this.resetRootStore.bind(this);this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_VALUE_CHANGED,e),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_CHANGED,e),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.verifyProps()},t.prototype.verifyProps=function(){(this.gridOptionsService.exists("initialGroupOrderComparator")||this.gridOptionsService.exists("defaultGroupOrderComparator"))&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: initialGroupOrderComparator cannot be used with Server Side Row Model. If using Full Store, then provide the rows to the grid in the desired sort order. If using Infinite Scroll, then sorting is done on the server side, nothing to do with the client.")},"SSRM.InitialGroupOrderComparator"),this.gridOptionsService.isRowSelection()&&!this.gridOptionsService.exists("getRowId")&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: getRowId callback must be provided for Server Side Row Model selection to work correctly.")},"SSRM.SelectionNeedsRowNodeIdFunc")},t.prototype.setDatasource=function(e){this.started&&(this.destroyDatasource(),this.datasource=e,this.resetRootStore())},t.prototype.isLastRowIndexKnown=function(){var e=this.getRootStore();return!!e&&e.isLastRowIndexKnown()},t.prototype.onColumnEverything=function(){if(this.storeParams){var e=this.columnsToValueObjects(this.columnModel.getRowGroupColumns()),t=this.columnsToValueObjects(this.columnModel.getValueColumns()),n=this.columnsToValueObjects(this.columnModel.getPivotColumns()),r=function(e){var t={};e.oldCols.forEach(function(e){return t[e.id]=e});var n=e.newCols.every(function(e){var n=t[e.id];return n&&delete t[e.id],n&&n.field===e.field&&n.aggFunc===e.aggFunc}),r=!e.allowRemovedColumns&&!!Object.values(t).length;return n&&!r},o=!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.jsonEquals(this.storeParams.sortModel,this.sortListener.extractSortModel()),i=!r({oldCols:this.storeParams.rowGroupCols,newCols:e}),a=!r({oldCols:this.storeParams.pivotCols,newCols:n}),s=!!(null==e?void 0:e.length)&&!r({oldCols:this.storeParams.valueCols,newCols:t,allowRemovedColumns:!0});if(o||i||a||s)this.resetRootStore();else{var l=this.createStoreParams();this.storeParams.rowGroupCols=l.rowGroupCols,this.storeParams.pivotCols=l.pivotCols,this.storeParams.valueCols=l.valueCols}}else this.resetRootStore()},t.prototype.destroyRootStore=function(){this.rootNode&&this.rootNode.childStore&&(this.rootNode.childStore=this.destroyBean(this.rootNode.childStore),this.nodeManager.clear())},t.prototype.refreshAfterSort=function(e,t){this.storeParams&&(this.storeParams.sortModel=e);var n=this.getRootStore();n&&(n.refreshAfterSort(t),this.onStoreUpdated())},t.prototype.resetRootStore=function(){this.destroyRootStore(),this.rootNode=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNode(this.beans),this.rootNode.group=!0,this.rootNode.level=-1,this.datasource&&(this.storeParams=this.createStoreParams(),this.rootNode.childStore=this.createBean(this.storeFactory.createStore(this.storeParams,this.rootNode)),this.updateRowIndexesAndBounds());var e={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(e),this.dispatchModelUpdated(!0)},t.prototype.columnsToValueObjects=function(e){var t=this;return e.map(function(e){return{id:e.getId(),aggFunc:e.getAggFunc(),displayName:t.columnModel.getDisplayNameForColumn(e,"model"),field:e.getColDef().field}})},t.prototype.createStoreParams=function(){var e=this.columnsToValueObjects(this.columnModel.getRowGroupColumns()),t=this.columnsToValueObjects(this.columnModel.getValueColumns()),n=this.columnsToValueObjects(this.columnModel.getPivotColumns()),r=this.gridOptionsService.isGetRowHeightFunction();return{valueCols:t,rowGroupCols:e,pivotCols:n,pivotMode:this.columnModel.isPivotMode(),filterModel:this.filterManager.getFilterModel(),sortModel:this.sortListener.extractSortModel(),datasource:this.datasource,lastAccessedSequence:new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberSequence,dynamicRowHeight:r}},t.prototype.getParams=function(){return this.storeParams},t.prototype.dispatchModelUpdated=function(e){void 0===e&&(e=!1);var t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_MODEL_UPDATED,animate:!e,keepRenderedRows:!e,newPage:!1,newData:!1};this.eventService.dispatchEvent(t)},t.prototype.onStoreUpdated=function(){this.pauseStoreUpdateListening||(this.updateRowIndexesAndBounds(),this.dispatchModelUpdated())},t.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},t.prototype.onRowHeightChanged=function(){this.updateRowIndexesAndBounds(),this.dispatchModelUpdated()},t.prototype.updateRowIndexesAndBounds=function(){var e=this.getRootStore();e&&e.setDisplayIndexes(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.NumberSequence,{value:0})},t.prototype.retryLoads=function(){var e=this.getRootStore();e&&(e.retryLoads(),this.onStoreUpdated())},t.prototype.getRow=function(e){var t=this.getRootStore();if(t)return t.getRowUsingDisplayIndex(e)},t.prototype.expandAll=function(e){this.pauseStoreUpdateListening=!0,this.forEachNode(function(t){t.stub||t.hasChildren()&&t.setExpanded(e)}),this.pauseStoreUpdateListening=!1,this.onStoreUpdated()},t.prototype.refreshAfterFilter=function(e,t){this.storeParams&&(this.storeParams.filterModel=e);var n=this.getRootStore();n&&(n.refreshAfterFilter(t),this.onStoreUpdated())},t.prototype.getRootStore=function(){if(this.rootNode&&this.rootNode.childStore)return this.rootNode.childStore},t.prototype.getRowCount=function(){var e=this.getRootStore();return e?e.getDisplayIndexEnd():0},t.prototype.getTopLevelRowCount=function(){var e=this.getRootStore();return e?e.getRowCount():1},t.prototype.getTopLevelRowDisplayedIndex=function(e){var t=this.getRootStore();return t?t.getTopLevelRowDisplayedIndex(e):e},t.prototype.getRowBounds=function(e){var t=this.getRootStore();return t?t.getRowBounds(e):{rowTop:0,rowHeight:this.gridOptionsService.getRowHeightAsNumber()}},t.prototype.getBlockStates=function(){var e=this.getRootStore();if(e){var t={};return e.forEachStoreDeep(function(e){if(e instanceof FullStore){var n=e.getBlockStateJson(),r=n.id,o=n.state;t[r]=o}else{if(!(e instanceof LazyStore))throw new Error("AG Grid: Unsupported store type");Object.entries(e.getBlockStates()).forEach(function(e){var n=__read$4(e,2),r=n[0],o=n[1];t[r]=o})}}),t}},t.prototype.getRowIndexAtPixel=function(e){var t=this.getRootStore();return e<=0||!t?0:t.getRowIndexAtPixel(e)},t.prototype.isEmpty=function(){return!1},t.prototype.isRowsToRender=function(){return null!=this.getRootStore()&&this.getRowCount()>0},t.prototype.getType=function(){return"serverSide"},t.prototype.forEachNode=function(e){var t=this.getRootStore();t&&t.forEachNodeDeep(e)},t.prototype.forEachNodeAfterFilterAndSort=function(e){var t=this.getRootStore();t&&t.forEachNodeDeepAfterFilterAndSort(e)},t.prototype.executeOnStore=function(e,t){var n=this.getRootStore();if(n){var r=n.getChildStore(e);r&&t(r)}},t.prototype.refreshStore=function(e){void 0===e&&(e={});var t=e.route?e.route:[];this.executeOnStore(t,function(t){return t.refreshStore(1==e.purge)})},t.prototype.getStoreState=function(){var e=[],t=this.getRootStore();return t&&t.addStoreStates(e),e},t.prototype.getNodesInRangeForSelection=function(e,t){if(!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e))return[];if(!t)return[e];var n=e.rowIndex,r=t.rowIndex;if(null===n||null===r)return[e];var o=[],i=__read$4([n,r].sort(function(e,t){return e-t}),2),a=i[0],s=i[1];return this.forEachNode(function(e){var t=e.rowIndex;null==t||e.stub||t>=a&&t<=s&&o.push(e)}),o.every(function(e,t,n){return 0===t?e.rowIndex===a:n[t-1].rowIndex===e.rowIndex-1})&&o.length===s-a+1?o:[e]},t.prototype.getRowNode=function(e){var t;return this.forEachNode(function(n){n.id===e&&(t=n),n.detailNode&&n.detailNode.id===e&&(t=n.detailNode)}),t},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},t.prototype.setRowCount=function(e,t){var n=this.getRootStore();if(n){if(n instanceof LazyStore)return void n.setRowCount(e,t);console.error("AG Grid: Infinite scrolling must be enabled in order to set the row count.")}},__decorate$q([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$q([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("filterManager")],t.prototype,"filterManager",void 0),__decorate$q([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowRenderer")],t.prototype,"rowRenderer",void 0),__decorate$q([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmSortService")],t.prototype,"sortListener",void 0),__decorate$q([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmNodeManager")],t.prototype,"nodeManager",void 0),__decorate$q([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmStoreFactory")],t.prototype,"storeFactory",void 0),__decorate$q([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("beans")],t.prototype,"beans",void 0),__decorate$q([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreDestroy],t.prototype,"destroyDatasource",null),__decorate$q([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"addEventListeners",null),__decorate$q([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreDestroy],t.prototype,"destroyRootStore",null),__decorate$q([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("rowModel")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$p=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},StoreUtils=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$r(t,e),t.prototype.loadFromDatasource=function(e){var t=e.storeParams,n=e.parentBlock,r=e.parentNode.getGroupKeys();if(t.datasource){var o={startRow:e.startRow,endRow:e.endRow,rowGroupCols:t.rowGroupCols,valueCols:t.valueCols,pivotCols:t.pivotCols,pivotMode:t.pivotMode,groupKeys:r,filterModel:t.filterModel,sortModel:t.sortModel},i={successCallback:e.successCallback,success:e.success,failCallback:e.failCallback,fail:e.fail,request:o,parentNode:e.parentNode,api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context};window.setTimeout(function(){t.datasource&&n.isAlive()?t.datasource.getRows(i):e.failCallback()},0)}},t.prototype.getChildStore=function(e,t,n){if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missingOrEmpty(e))return t;var r=n(e[0]);if(r){var o=e.slice(1,e.length),i=r.childStore;return i?i.getChildStore(o):null}return null},t.prototype.isServerRefreshNeeded=function(e,t,n){if(n.valueColChanged||n.secondaryColChanged)return!0;var r=e.level+1;if(!(r<t.length))return!0;var o=t[r].id;if(n.changedColumns.indexOf(o)>-1)return!0;var i=this.columnModel.getAllGridColumns().filter(function(e){return e.getColDef().showRowGroup&&n.changedColumns.includes(e.getId())}).map(function(e){return e.getColDef().showRowGroup}).some(function(e){return!0===e||e===o});return i},t.prototype.getServerSideInitialRowCount=function(){var e=this.gridOptionsService.getNum("serverSideInitialRowCount");return"number"==typeof e&&e>0?e:1},t.prototype.assertRowModelIsServerSide=function(e){return!!this.gridOptionsService.isRowModelType("serverSide")||(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: The '"+e+"' property can only be used with the Server Side Row Model.")},e),!1)},t.prototype.assertNotTreeData=function(e){return!this.gridOptionsService.is("treeData")||(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: The '"+e+"' property cannot be used while using tree data.")},e+"_TreeData"),!1)},t.prototype.isServerSideSortAllLevels=function(){return this.gridOptionsService.is("serverSideSortAllLevels")&&this.assertRowModelIsServerSide("serverSideSortAllLevels")},t.prototype.isServerSideFilterAllLevels=function(){return this.gridOptionsService.is("serverSideFilterAllLevels")&&this.assertRowModelIsServerSide("serverSideFilterAllLevels")},t.prototype.isServerSideSortOnServer=function(){return this.gridOptionsService.is("serverSideSortOnServer")&&this.assertRowModelIsServerSide("serverSideSortOnServer")&&this.assertNotTreeData("serverSideSortOnServer")},t.prototype.isServerSideFilterOnServer=function(){return this.gridOptionsService.is("serverSideFilterOnServer")&&this.assertRowModelIsServerSide("serverSideFilterOnServer")&&this.assertNotTreeData("serverSideFilterOnServer")},__decorate$p([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnApi")],t.prototype,"columnApi",void 0),__decorate$p([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$p([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$p([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("ssrmStoreUtils")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$o=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},GROUP_MISSING_KEY_ID="ag-Grid-MissingKey",BlockUtils=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$q(t,e),t.prototype.postConstruct=function(){this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.usingTreeData=this.gridOptionsService.isTreeData(),this.usingMasterDetail=this.gridOptionsService.isMasterDetail()},t.prototype.createRowNode=function(e){var t=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNode(this.beans),n=null!=e.rowHeight?e.rowHeight:this.rowHeight;return t.setRowHeight(n),t.group=e.group,t.leafGroup=e.leafGroup,t.level=e.level,t.uiLevel=e.level,t.parent=e.parent,t.stub=!0,t.__needsRefreshWhenVisible=!1,t.group&&(t.expanded=!1,t.field=e.field,t.rowGroupColumn=e.rowGroupColumn),t},t.prototype.destroyRowNodes=function(e){var t=this;e&&e.forEach(function(e){return t.destroyRowNode(e)})},t.prototype.destroyRowNode=function(e,t){void 0===t&&(t=!1),e.childStore&&!t&&(this.destroyBean(e.childStore),e.childStore=null),e.clearRowTopAndRowIndex(),null!=e.id&&this.nodeManager.removeNode(e)},t.prototype.setTreeGroupInfo=function(e){e.updateHasChildren();var t=this.gridOptionsService.get("getServerSideGroupKey");e.hasChildren()&&null!=t&&(e.key=t(e.data)),e.hasChildren()||null==e.childStore||(this.destroyBean(e.childStore),e.childStore=null,e.expanded=!1)},t.prototype.setRowGroupInfo=function(e){e.key=this.valueService.getValue(e.rowGroupColumn,e),null!==e.key&&void 0!==e.key||ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){console.warn("AG Grid: null and undefined values are not allowed for server side row model keys"),e.rowGroupColumn&&console.warn("column = "+e.rowGroupColumn.getId()),console.warn("data is ",e.data)},"ServerSideBlock-CannotHaveNullOrUndefinedForKey")},t.prototype.setMasterDetailInfo=function(e){var t=this.gridOptionsService.get("isRowMaster");e.master=null==t||t(e.data)},t.prototype.updateDataIntoRowNode=function(e,t){e.updateData(t),this.usingTreeData?(this.setTreeGroupInfo(e),this.setChildCountIntoRowNode(e)):e.group?this.setChildCountIntoRowNode(e):this.usingMasterDetail},t.prototype.setDataIntoRowNode=function(e,t,n,r){e.stub=!1,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(t)?(e.setDataAndId(t,n),this.usingTreeData?this.setTreeGroupInfo(e):e.group?this.setRowGroupInfo(e):this.usingMasterDetail&&this.setMasterDetailInfo(e)):(e.setDataAndId(void 0,void 0),e.key=null),(this.usingTreeData||e.group)&&(this.setGroupDataIntoRowNode(e),this.setChildCountIntoRowNode(e)),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(t)&&e.setRowHeight(this.gridOptionsService.getRowHeightForNode(e,!1,r).height)},t.prototype.setChildCountIntoRowNode=function(e){var t=this.gridOptionsService.get("getChildCount");t&&e.setAllChildrenCount(t(e.data))},t.prototype.setGroupDataIntoRowNode=function(e){var t=this,n=this.columnModel.getGroupDisplayColumns(),r=this.gridOptionsService.isTreeData();n.forEach(function(n){if(null==e.groupData&&(e.groupData={}),r)e.groupData[n.getColId()]=e.key;else if(n.isRowGroupDisplayed(e.rowGroupColumn.getId())){var o=t.valueService.getValue(e.rowGroupColumn,e);e.groupData[n.getColId()]=o}})},t.prototype.clearDisplayIndex=function(e){e.clearRowTopAndRowIndex(),e.hasChildren()&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e.childStore)&&e.childStore.clearDisplayIndexes(),e.master&&e.detailNode&&e.detailNode.clearRowTopAndRowIndex()},t.prototype.setDisplayIndex=function(e,t,n){if(e.setRowIndex(t.next()),e.setRowTop(n.value),n.value+=e.rowHeight,e.master&&(e.expanded&&e.detailNode?(e.detailNode.setRowIndex(t.next()),e.detailNode.setRowTop(n.value),n.value+=e.detailNode.rowHeight):e.detailNode&&e.detailNode.clearRowTopAndRowIndex()),e.hasChildren()&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e.childStore)){var r=e.childStore;e.expanded?r.setDisplayIndexes(t,n):r.clearDisplayIndexes()}},t.prototype.binarySearchForDisplayIndex=function(e,t){var n=0,r=t.length-1;if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(r)||ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(n))console.warn("AG Grid: error: topPointer = "+r+", bottomPointer = "+n);else for(;;){var o=Math.floor((n+r)/2),i=t[o];if(i.rowIndex===e)return i;var a=i.master&&i.expanded,s=i.detailNode;if(a&&s&&s.rowIndex===e)return i.detailNode;var l=i.childStore;if(i.expanded&&l&&l.isDisplayIndexInStore(e))return l.getRowUsingDisplayIndex(e);if(i.rowIndex<e)n=o+1;else{if(!(i.rowIndex>e))return void console.warn("AG Grid: error: unable to locate rowIndex = "+e+" in cache");r=o-1}}},t.prototype.extractRowBounds=function(e,t){var n=function(e){return{rowHeight:e.rowHeight,rowTop:e.rowTop}};if(e.rowIndex===t)return n(e);if(e.hasChildren()&&e.expanded&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e.childStore)){var r=e.childStore;if(r.isDisplayIndexInStore(t))return r.getRowBounds(t)}else if(e.master&&e.expanded&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e.detailNode)&&e.detailNode.rowIndex===t)return n(e.detailNode)},t.prototype.getIndexAtPixel=function(e,t){if(e.isPixelInRange(t))return e.rowIndex;var n=e.master&&e.expanded,r=e.detailNode;if(n&&r&&r.isPixelInRange(t))return e.detailNode.rowIndex;if(e.hasChildren()&&e.expanded&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e.childStore)){var o=e.childStore;if(o.isPixelInRange(t))return o.getRowIndexAtPixel(t)}return null},t.prototype.createNodeIdPrefix=function(e){for(var t=[],n=e;n&&n.level>=0;)""===n.key?t.push(GROUP_MISSING_KEY_ID):t.push(n.key),n=n.parent;if(t.length>0)return t.reverse().join("-")},t.prototype.checkOpenByDefault=function(e){if(e.isExpandable()){var t=this.gridOptionsService.getCallback("isServerSideGroupOpenByDefault");t&&t({data:e.data,rowNode:e})&&window.setTimeout(function(){return e.setExpanded(!0)},0)}},__decorate$o([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueService")],t.prototype,"valueService",void 0),__decorate$o([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$o([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmNodeManager")],t.prototype,"nodeManager",void 0),__decorate$o([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("beans")],t.prototype,"beans",void 0),__decorate$o([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),__decorate$o([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("ssrmBlockUtils")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__decorate$n=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},NodeManager=function(){function e(){this.rowNodes={}}return e.prototype.addRowNode=function(e){var t=e.id;this.rowNodes[t]&&(console.warn("AG Grid: Duplicate node id "+e.id+". Row ID's are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values."),console.warn("first instance",this.rowNodes[t].data),console.warn("second instance",e.data)),this.rowNodes[t]=e},e.prototype.removeNode=function(e){var t=e.id;this.rowNodes[t]&&(this.rowNodes[t]=void 0)},e.prototype.clear=function(){this.rowNodes={}},__decorate$n([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreDestroy],e.prototype,"clear",null),__decorate$n([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("ssrmNodeManager")],e)}(),__extends$p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$m=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},TransactionManager=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.asyncTransactions=[],t}return __extends$p(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.isRowModelType("serverSide")},t.prototype.applyTransactionAsync=function(e,t){null==this.asyncTransactionsTimeout&&this.scheduleExecuteAsync(),this.asyncTransactions.push({transaction:e,callback:t})},t.prototype.scheduleExecuteAsync=function(){var e=this,t=this.gridOptionsService.getAsyncTransactionWaitMillis();this.asyncTransactionsTimeout=window.setTimeout(function(){e.executeAsyncTransactions()},t)},t.prototype.executeAsyncTransactions=function(){var e=this;if(this.asyncTransactions){var t=[],n=[],r=[],o=!1;if(this.asyncTransactions.forEach(function(i){var a;e.serverSideRowModel.executeOnStore(i.transaction.route,function(e){a=e.applyTransaction(i.transaction)}),null==a&&(a={status:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus.StoreNotFound}),n.push(a),a.status==ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus.StoreLoading?r.push(i):(i.callback&&t.push(function(){return i.callback(a)}),a.status===ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus.Applied&&(o=!0))}),t.length>0&&window.setTimeout(function(){t.forEach(function(e){return e()})},0),this.asyncTransactionsTimeout=void 0,this.asyncTransactions=r,o&&(this.valueCache.onDataChanged(),this.eventService.dispatchEvent({type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_STORE_UPDATED})),n.length>0){var i={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:n};this.eventService.dispatchEvent(i)}}},t.prototype.flushAsyncTransactions=function(){null!=this.asyncTransactionsTimeout&&clearTimeout(this.asyncTransactionsTimeout),this.executeAsyncTransactions()},t.prototype.applyTransaction=function(e){var t;if(this.serverSideRowModel.executeOnStore(e.route,function(n){t=n.applyTransaction(e)}),t){if(this.valueCache.onDataChanged(),t.remove){var n=t.remove.map(function(e){return e.id});this.selectionService.deleteSelectionStateFromParent(e.route||[],n)}return this.eventService.dispatchEvent({type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_STORE_UPDATED}),t}return{status:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ServerSideTransactionResultStatus.StoreNotFound}},__decorate$m([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),__decorate$m([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueCache")],t.prototype,"valueCache",void 0),__decorate$m([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowModel")],t.prototype,"serverSideRowModel",void 0),__decorate$m([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowRenderer")],t.prototype,"rowRenderer",void 0),__decorate$m([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("selectionService")],t.prototype,"selectionService",void 0),__decorate$m([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),__decorate$m([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("ssrmTransactionManager")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$l=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ExpandListener=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$o(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.isRowModelType("serverSide")&&this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this))},t.prototype.onRowGroupOpened=function(e){var t=e.node;if(t.expanded){if(t.master)this.createDetailNode(t);else if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(t.childStore)){var n=this.serverSideRowModel.getParams();t.childStore=this.createBean(this.storeFactory.createStore(n,t))}}else this.gridOptionsService.is("purgeClosedRowNodes")&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(t.childStore)&&(t.childStore=this.destroyBean(t.childStore));var r={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(r)},t.prototype.createDetailNode=function(e){if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e.detailNode))return e.detailNode;var t=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNode(this.beans);t.detail=!0,t.selectable=!1,t.parent=e,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1;var n=this.gridOptionsService.getRowHeightForNode(t).height;return t.rowHeight=n||200,e.detailNode=t,t},__decorate$l([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowModel")],t.prototype,"serverSideRowModel",void 0),__decorate$l([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmStoreFactory")],t.prototype,"storeFactory",void 0),__decorate$l([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("beans")],t.prototype,"beans",void 0),__decorate$l([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),__decorate$l([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("ssrmExpandListener")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$n=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$k=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SortListener=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$n(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.isRowModelType("serverSide")&&this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this))},t.prototype.extractSortModel=function(){var e=this.sortController.getSortModel();return this.gridOptionsService.isTreeData()||(this.replaceAutoGroupColumnWithActualRowGroupColumns(e),this.removeMultiColumnPrefixOnColumnIds(e)),e},t.prototype.removeMultiColumnPrefixOnColumnIds=function(e){if(this.gridOptionsService.isGroupMultiAutoColumn())for(var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GROUP_AUTO_COLUMN_ID+"-",n=0;n<e.length;++n)e[n].colId.indexOf(t)>-1&&(e[n].colId=e[n].colId.substr(t.length))},t.prototype.replaceAutoGroupColumnWithActualRowGroupColumns=function(e){var t=e.find(function(e){return e.colId==ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GROUP_AUTO_COLUMN_ID});if(t){var n=e.indexOf(t);ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.removeFromArray(e,t);var r=this.columnModel.getRowGroupColumns().filter(function(t){return 0==e.filter(function(e){return e.colId===t.getColId()}).length}).map(function(e){return{colId:e.getId(),sort:t.sort}});ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.insertArrayIntoArray(e,r,n)}},t.prototype.onSortChanged=function(){var e=this.serverSideRowModel.getParams();if(e){var t=this.extractSortModel(),n=e.sortModel,r=this.findChangedColumnsInSort(t,n),o={valueColChanged:this.listenerUtils.isSortingWithValueColumn(r),secondaryColChanged:this.listenerUtils.isSortingWithSecondaryColumn(r),changedColumns:r};this.serverSideRowModel.refreshAfterSort(t,o)}},t.prototype.findChangedColumnsInSort=function(e,t){var n=[];return[e,t].forEach(function(e){if(e){var t=e.map(function(e){return e.colId});n=n.concat(t)}}),n.filter(function(n){var r=t.find(function(e){return e.colId===n}),o=e.find(function(e){return e.colId===n});return function(e,t){return(e?e.sort:null)!==(t?t.sort:null)}(r,o)||function(n,r){return(n?t.indexOf(n):-1)!==(r?e.indexOf(r):-1)}(r,o)})},__decorate$k([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("sortController")],t.prototype,"sortController",void 0),__decorate$k([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$k([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowModel")],t.prototype,"serverSideRowModel",void 0),__decorate$k([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmListenerUtils")],t.prototype,"listenerUtils",void 0),__decorate$k([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),__decorate$k([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("ssrmSortService")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$j=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},FilterListener=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$m(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.isRowModelType("serverSide")&&this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this))},t.prototype.onFilterChanged=function(){var e=this.serverSideRowModel.getParams();if(e){var t=this.filterManager.getFilterModel(),n=e?e.filterModel:{},r=this.findChangedColumns(t,n),o={valueColChanged:this.listenerUtils.isSortingWithValueColumn(r),secondaryColChanged:this.listenerUtils.isSortingWithSecondaryColumn(r),changedColumns:r};this.serverSideRowModel.refreshAfterFilter(t,o)}},t.prototype.findChangedColumns=function(e,t){var n={};Object.keys(e).forEach(function(e){return n[e]=!0}),Object.keys(t).forEach(function(e){return n[e]=!0});var r=[];return Object.keys(n).forEach(function(n){JSON.stringify(e[n])!=JSON.stringify(t[n])&&r.push(n)}),r},__decorate$j([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowModel")],t.prototype,"serverSideRowModel",void 0),__decorate$j([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("filterManager")],t.prototype,"filterManager",void 0),__decorate$j([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("ssrmListenerUtils")],t.prototype,"listenerUtils",void 0),__decorate$j([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),__decorate$j([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("ssrmFilterListener")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__decorate$i=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},StoreFactory=function(){function e(){}return e.prototype.createStore=function(e,t){var n=this.getStoreParams(e,t);return new(n.suppressInfiniteScroll?FullStore:LazyStore)(e,n,t)},e.prototype.getStoreParams=function(e,t){var n=this.getLevelSpecificParams(t),r=this.isInfiniteScroll(n);return{suppressInfiniteScroll:!r,cacheBlockSize:this.getBlockSize(r,n),maxBlocksInCache:this.getMaxBlocksInCache(r,e,n)}},e.prototype.getMaxBlocksInCache=function(e,t,n){if(e){var r=n&&null!=n.maxBlocksInCache?n.maxBlocksInCache:this.gridOptionsService.getNum("maxBlocksInCache");if(null!=r&&r>=0)if(t.dynamicRowHeight)ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.")},"storeFactory.maxBlocksInCache.dynamicRowHeight");else{if(!this.columnModel.isAutoRowHeightActive())return r;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.")},"storeFactory.maxBlocksInCache.autoRowHeightActive")}}},e.prototype.getBlockSize=function(e,t){if(e){var n=t&&null!=t.cacheBlockSize?t.cacheBlockSize:this.gridOptionsService.getNum("cacheBlockSize");return null!=n&&n>0?n:100}},e.prototype.getLevelSpecificParams=function(e){var t=this.gridOptionsService.getCallback("getServerSideGroupLevelParams");if(t){var n=t({level:e.level+1,parentRowNode:e.level>=0?e:void 0,rowGroupColumns:this.columnModel.getRowGroupColumns(),pivotColumns:this.columnModel.getPivotColumns(),pivotMode:this.columnModel.isPivotMode()});return null!=n.storeType&&(n.suppressInfiniteScroll="partial"!==n.storeType),n}},e.prototype.isInfiniteScroll=function(e){return!(e&&null!=e.suppressInfiniteScroll?e.suppressInfiniteScroll:this.isSuppressServerSideInfiniteScroll())},e.prototype.isSuppressServerSideInfiniteScroll=function(){return this.gridOptionsService.is("suppressServerSideInfiniteScroll")},__decorate$i([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridOptionsService")],e.prototype,"gridOptionsService",void 0),__decorate$i([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],e.prototype,"columnModel",void 0),__decorate$i([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("ssrmStoreFactory")],e)}(),__decorate$h=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ListenerUtils=function(){function e(){}return e.prototype.isSortingWithValueColumn=function(e){for(var t=this.columnModel.getValueColumns().map(function(e){return e.getColId()}),n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return!0;return!1},e.prototype.isSortingWithSecondaryColumn=function(e){if(!this.columnModel.getSecondaryColumns())return!1;for(var t=this.columnModel.getSecondaryColumns().map(function(e){return e.getColId()}),n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return!0;return!1},__decorate$h([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],e.prototype,"columnModel",void 0),__decorate$h([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("ssrmListenerUtils")],e)}(),__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$g=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$3=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$2=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$3(arguments[t]));return e},DefaultStrategy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selectedState={selectAll:!1,toggledNodes:new Set},t.lastSelected=null,t.selectAllUsed=!1,t.selectedNodes={},t}return __extends$l(t,e),t.prototype.init=function(){var e=this;this.rowSelection=this.gridOptionsService.get("rowSelection"),this.addManagedPropertyListener("rowSelection",function(t){e.rowSelection=t.currentValue})},t.prototype.getSelectedState=function(){return{selectAll:this.selectedState.selectAll,toggledNodes:__spread$2(this.selectedState.toggledNodes)}},t.prototype.setSelectedState=function(e){var t={selectAll:!1,toggledNodes:new Set};"object"==typeof e?"selectAll"in e&&"boolean"==typeof e.selectAll?(t.selectAll=e.selectAll,"toggledNodes"in e&&Array.isArray(e.toggledNodes)?(e.toggledNodes.forEach(function(e){"string"==typeof e?t.toggledNodes.add(e):console.warn("AG Grid: Provided ids must be of string type. Invalid id provided: "+e)}),this.selectedState=t):console.error("AG Grid: `toggledNodes` must be an array of string ids.")):console.error("AG Grid: Select all status should be of boolean type."):console.error("AG Grid: The provided selection state should be an object.")},t.prototype.deleteSelectionStateFromParent=function(e,t){var n=this;if(0===this.selectedState.toggledNodes.size)return!1;var r=!1;return t.forEach(function(e){n.selectedState.toggledNodes.delete(e)&&(r=!0)}),r},t.prototype.setNodeSelected=function(e){var t,n=this,r=e.clearSelection&&e.newValue&&!e.rangeSelect;if("multiple"!==this.rowSelection||r)return e.newValue?(this.selectedNodes=((t={})[e.node.id]=e.node,t),this.selectedState={selectAll:!1,toggledNodes:new Set([e.node.id])}):(this.selectedNodes={},this.selectedState={selectAll:!1,toggledNodes:new Set}),this.lastSelected=e.node.id,1;var o=function(t){e.newValue?n.selectedNodes[t.id]=t:delete n.selectedNodes[t.id],e.newValue===n.selectedState.selectAll?n.selectedState.toggledNodes.delete(t.id):n.selectedState.toggledNodes.add(t.id)};if(e.rangeSelect&&this.lastSelected){var i=this.rowModel.getRowNode(this.lastSelected);return this.rowModel.getNodesInRangeForSelection(e.node,null!=i?i:null).forEach(o),this.lastSelected=e.node.id,1}return o(e.node),this.lastSelected=e.node.id,1},t.prototype.processNewRow=function(e){this.selectedNodes[e.id]&&(this.selectedNodes[e.id]=e)},t.prototype.isNodeSelected=function(e){var t=this.selectedState.toggledNodes.has(e.id);return this.selectedState.selectAll?!t:t},t.prototype.getSelectedNodes=function(){return this.selectAllUsed&&console.warn("AG Grid: getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model.\n                Use `api.getServerSideSelectionState()` instead."),Object.values(this.selectedNodes)},t.prototype.getSelectedRows=function(){return this.getSelectedNodes().map(function(e){return e.data})},t.prototype.getSelectionCount=function(){return this.selectedState.selectAll?-1:this.selectedState.toggledNodes.size},t.prototype.clearOtherNodes=function(e,t){var n=this.selectedState.selectAll?1:this.selectedState.toggledNodes.size-1;this.selectedState={selectAll:!1,toggledNodes:new Set([e.id])},this.rowModel.forEachNode(function(n){n!==e&&n.selectThisNode(!1,void 0,t)});var r={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_SELECTION_CHANGED,source:t};return this.eventService.dispatchEvent(r),n},t.prototype.isEmpty=function(){var e;return!this.selectedState.selectAll&&!(null===(e=this.selectedState.toggledNodes)||void 0===e?void 0:e.size)},t.prototype.selectAllRowNodes=function(e){this.selectedState={selectAll:!0,toggledNodes:new Set},this.selectedNodes={},this.selectAllUsed=!0},t.prototype.deselectAllRowNodes=function(e){this.selectedState={selectAll:!1,toggledNodes:new Set},this.selectedNodes={}},t.prototype.getSelectAllState=function(e,t){return this.selectedState.selectAll?!(this.selectedState.toggledNodes.size>0)||null:this.selectedState.toggledNodes.size>0&&null},__decorate$g([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowModel")],t.prototype,"rowModel",void 0),__decorate$g([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$f=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__read$2=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread$1=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$2(arguments[t]));return e},GroupSelectsChildrenStrategy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selectedState={selectAllChildren:!1,toggledNodes:new Map},t.lastSelected=null,t}return __extends$k(t,e),t.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_MODEL_UPDATED,function(){return e.removeRedundantState()}),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.selectionService.reset()})},t.prototype.getSelectedState=function(){var e=this,t=function(n,r,o){var i={nodeId:o};if(r<=e.columnModel.getRowGroupColumns().length&&(i.selectAllChildren=n.selectAllChildren),n.toggledNodes.size){var a=[];n.toggledNodes.forEach(function(e,n){var o=t(e,r+1,n);a.push(o)}),i.toggledNodes=a}return i};return t(this.selectedState,0)},t.prototype.setSelectedState=function(e){var t=function(e,n){var r,o;if("object"!=typeof e)throw new Error("AG Grid: Each provided state object must be an object.");if("selectAllChildren"in e&&"boolean"!=typeof e.selectAllChildren)throw new Error("AG Grid: `selectAllChildren` must be a boolean value or undefined.");if("toggledNodes"in e){if(!Array.isArray(e.toggledNodes))throw new Error("AG Grid: `toggledNodes` must be an array.");if(!e.toggledNodes.every(function(e){return"object"==typeof e&&"nodeId"in e&&"string"==typeof e.nodeId}))throw new Error("AG Grid: Every `toggledNode` requires an associated string id.")}var i=null!==(r=e.selectAllChildren)&&void 0!==r?r:!n,a=null===(o=e.toggledNodes)||void 0===o?void 0:o.map(function(e){return[e.nodeId,t(e,i)]}),s=null==a?void 0:a.some(function(e){var t=__read$2(e,2);t[0];var n=t[1];return i===n.selectAllChildren&&0===n.toggledNodes.size});if(s)throw new Error("\n                    AG Grid: AG Grid: Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule.\n                    Please rebuild the selection state and reapply it.\n                ");return{selectAllChildren:i,toggledNodes:new Map(a)}};try{this.selectedState=t(e,!!e.selectAllChildren)}catch(e){console.error(e.message)}},t.prototype.deleteSelectionStateFromParent=function(e,t){for(var n=this.selectedState,r=__spread$1(e);n&&r.length;)n=n.toggledNodes.get(r.pop());if(!n)return!1;var o=!1;return t.forEach(function(e){(null==n?void 0:n.toggledNodes.delete(e))&&(o=!0)}),o&&this.removeRedundantState(),o},t.prototype.setNodeSelected=function(e){var t=this;if(e.rangeSelect){var n=this.rowModel.getNodesInRangeForSelection(e.node,this.lastSelected).map(this.getRouteToNode).sort(function(e,t){return t.length-e.length}),r=new Set;return n.forEach(function(n){r.has(n[n.length-1])||(n.forEach(function(e){return r.add(e)}),t.recursivelySelectNode(n,t.selectedState,e))}),this.removeRedundantState(),this.lastSelected=e.node,1}var o=this.getRouteToNode(e.node);return this.recursivelySelectNode(o,this.selectedState,e),this.removeRedundantState(),this.lastSelected=e.node,1},t.prototype.isNodeSelected=function(e){var t=this.getRouteToNode(e);return this.isNodePathSelected(t,this.selectedState)},t.prototype.isNodePathSelected=function(e,t){var n=__read$2(e),r=n[0],o=n.slice(1);if(0===o.length){var i=t.toggledNodes.has(r.id);if(r.hasChildren()){var a=t.toggledNodes.get(r.id);if(a&&a.toggledNodes.size)return}return t.selectAllChildren?!i:i}if(t.toggledNodes.has(r.id)){var s=t.toggledNodes.get(r.id);if(s)return this.isNodePathSelected(o,s)}return!!t.selectAllChildren},t.prototype.getRouteToNode=function(e){for(var t=[],n=e;n.parent;)t.push(n),n=n.parent;return t.reverse()},t.prototype.removeRedundantState=function(){var e=this;if(!this.filterManager.isAnyFilterPresent()){var t=function(n,r,o){void 0===n&&(n=e.selectedState),void 0===r&&(r=e.serverSideRowModel.getRootStore());var i=!0,a=!0;return n.toggledNodes.forEach(function(r,o){var s=e.rowModel.getRowNode(o);s||(i=!1);var l=null==s?void 0:s.childStore;l?(t(r,l,s)&&n.selectAllChildren===r.selectAllChildren&&n.toggledNodes.delete(o),r.toggledNodes.size>0&&(a=!1)):r.toggledNodes.size>0&&(a=!1)}),!(!r||!r.isLastRowIndexKnown()||r.getRowCount()!==n.toggledNodes.size||!a||!i||(n.toggledNodes.clear(),n.selectAllChildren=!n.selectAllChildren,o&&(null==o?void 0:o.isSelected())!==n.selectAllChildren&&o.selectThisNode(n.selectAllChildren,void 0,"api"),0))};t()}},t.prototype.recursivelySelectNode=function(e,t,n){var r=__read$2(e),o=r[0],i=r.slice(1);if(o)if(i.length){var a=t.toggledNodes.has(o.id),s=a?t.toggledNodes.get(o.id):{selectAllChildren:t.selectAllChildren,toggledNodes:new Map};a||t.toggledNodes.set(o.id,s),this.recursivelySelectNode(i,s,n),t.selectAllChildren===s.selectAllChildren&&0===s.toggledNodes.size&&t.toggledNodes.delete(o.id)}else{if(t.selectAllChildren===n.newValue)return void t.toggledNodes.delete(o.id);var l={selectAllChildren:n.newValue,toggledNodes:new Map};t.toggledNodes.set(o.id,l)}},t.prototype.getSelectedNodes=function(){console.warn("AG Grid: `getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model.\n            Use `api.getServerSideSelectionState()` instead.");var e=[];return this.rowModel.forEachNode(function(t){t.isSelected()&&e.push(t)}),e},t.prototype.processNewRow=function(e){},t.prototype.getSelectedRows=function(){return this.getSelectedNodes().map(function(e){return e.data})},t.prototype.getSelectionCount=function(){return-1},t.prototype.isEmpty=function(){var e;return!this.selectedState.selectAllChildren&&!(null===(e=this.selectedState.toggledNodes)||void 0===e?void 0:e.size)},t.prototype.selectAllRowNodes=function(e){this.selectedState={selectAllChildren:!0,toggledNodes:new Map}},t.prototype.deselectAllRowNodes=function(e){this.selectedState={selectAllChildren:!1,toggledNodes:new Map}},t.prototype.getSelectAllState=function(e,t){return this.selectedState.selectAllChildren?!(this.selectedState.toggledNodes.size>0)||null:this.selectedState.toggledNodes.size>0&&null},__decorate$f([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowModel")],t.prototype,"rowModel",void 0),__decorate$f([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$f([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("filterManager")],t.prototype,"filterManager",void 0),__decorate$f([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowModel")],t.prototype,"serverSideRowModel",void 0),__decorate$f([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("selectionService")],t.prototype,"selectionService",void 0),__decorate$f([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$j=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$e=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ServerSideSelectionService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$j(t,e),t.prototype.init=function(){var e=this,t=this.gridOptionsService.is("groupSelectsChildren");this.addManagedPropertyListener("groupSelectsChildren",function(t){e.destroyBean(e.selectionStrategy);var n=t.currentValue?GroupSelectsChildrenStrategy:DefaultStrategy;e.selectionStrategy=e.createManagedBean(new n),e.shotgunResetNodeSelectionState();var r={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_SELECTION_CHANGED,source:"api"};e.eventService.dispatchEvent(r)});var n=t?GroupSelectsChildrenStrategy:DefaultStrategy;this.selectionStrategy=this.createManagedBean(new n)},t.prototype.getServerSideSelectionState=function(){return this.selectionStrategy.getSelectedState()},t.prototype.setServerSideSelectionState=function(e){this.selectionStrategy.setSelectedState(e),this.shotgunResetNodeSelectionState();var t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_SELECTION_CHANGED,source:"api"};this.eventService.dispatchEvent(t)},t.prototype.setNodeSelected=function(e){var t=this.selectionStrategy.setNodeSelected(e);this.shotgunResetNodeSelectionState(e.source);var n={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_SELECTION_CHANGED,source:e.source};return this.eventService.dispatchEvent(n),t},t.prototype.deleteSelectionStateFromParent=function(e,t){if(this.selectionStrategy.deleteSelectionStateFromParent(e,t)){this.shotgunResetNodeSelectionState();var n={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_SELECTION_CHANGED,source:"api"};this.eventService.dispatchEvent(n)}},t.prototype.shotgunResetNodeSelectionState=function(e){var t=this;this.rowModel.forEachNode(function(n){if(!n.stub){var r=t.selectionStrategy.isNodeSelected(n);r!==n.isSelected()&&n.selectThisNode(r,void 0,e)}})},t.prototype.getSelectedNodes=function(){return this.selectionStrategy.getSelectedNodes()},t.prototype.getSelectedRows=function(){return this.selectionStrategy.getSelectedRows()},t.prototype.getSelectionCount=function(){return this.selectionStrategy.getSelectionCount()},t.prototype.syncInRowNode=function(e,t){this.selectionStrategy.processNewRow(e);var n=this.selectionStrategy.isNodeSelected(e);e.setSelectedInitialValue(n)},t.prototype.reset=function(){this.selectionStrategy.deselectAllRowNodes({source:"api"})},t.prototype.isEmpty=function(){return this.selectionStrategy.isEmpty()},t.prototype.selectAllRowNodes=function(e){(e.justCurrentPage||e.justFiltered)&&console.warn("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'"),this.selectionStrategy.selectAllRowNodes(e),this.rowModel.forEachNode(function(t){t.stub||t.selectThisNode(!0,void 0,e.source)});var t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_SELECTION_CHANGED,source:e.source};this.eventService.dispatchEvent(t)},t.prototype.deselectAllRowNodes=function(e){(e.justCurrentPage||e.justFiltered)&&console.warn("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'"),this.selectionStrategy.deselectAllRowNodes(e),this.rowModel.forEachNode(function(t){t.stub||t.selectThisNode(!1,void 0,e.source)});var t={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_SELECTION_CHANGED,source:e.source};this.eventService.dispatchEvent(t)},t.prototype.getSelectAllState=function(e,t){return this.selectionStrategy.getSelectAllState(e,t)},t.prototype.updateGroupsFromChildrenSelections=function(e,t){return!1},t.prototype.getBestCostNodeSelection=function(){console.warn("AG Grid: calling gridApi.getBestCostNodeSelection() is only possible when using rowModelType=`clientSide`.")},t.prototype.filterFromSelection=function(){},__decorate$e([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowModel")],t.prototype,"rowModel",void 0),__decorate$e([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),__decorate$e([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("selectionService")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),VERSION$4="29.3.3",ServerSideRowModelModule={version:VERSION$4,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ServerSideRowModelModule,rowModel:"serverSide",beans:[ServerSideRowModel,ExpandListener,SortListener,StoreUtils,BlockUtils,NodeManager,TransactionManager,FilterListener,StoreFactory,ListenerUtils,ServerSideSelectionService],dependantModules:[EnterpriseCoreModule]},ClientSideValuesExtractor=function(){function e(e,t,n,r,o,i,a,s,l){this.rowModel=e,this.filterParams=t,this.createKey=n,this.caseFormat=r,this.columnModel=o,this.valueService=i,this.treeDataOrGrouping=a,this.treeData=s,this.getDataPath=l}return e.prototype.extractUniqueValues=function(e,t){var n=this,r=new Map,o=this.extractExistingFormattedKeys(t),i=new Set,a=this.treeData&&!!this.getDataPath,s=this.columnModel.getRowGroupColumns(),l=function(e,a){var s=n.caseFormat(e);if(!i.has(s)){i.add(s);var l=e,c=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.makeNull(a),u=null==o?void 0:o.get(s);null!=u&&(l=u,c=t.get(u)),r.set(l,c)}};return this.rowModel.forEachLeafNode(function(t){if(t.data&&e(t))if(n.treeDataOrGrouping)n.addValueForTreeDataOrGrouping(t,a,s,l);else{var r=n.getValue(t);n.filterParams.convertValuesToStrings?n.addValueForConvertValuesToString(t,r,l):null!=r&&Array.isArray(r)?(r.forEach(function(e){l(n.createKey(e,t),e)}),0===r.length&&l(null,null)):l(n.createKey(r,t),r)}}),r},e.prototype.addValueForConvertValuesToString=function(e,t,n){var r=this.createKey(t,e);null!=r&&Array.isArray(r)?(r.forEach(function(e){var t=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.toStringOrNull(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.makeNull(e));n(t,t)}),0===r.length&&n(null,null)):n(r,r)},e.prototype.addValueForTreeDataOrGrouping=function(e,t,n,r){var o,i,a=this;if(t){if(null===(o=e.childrenAfterGroup)||void 0===o?void 0:o.length)return;i=this.getDataPath(e.data)}else(i=n.map(function(t){return a.valueService.getKeyForNode(t,e)})).push(this.getValue(e));i&&(i=i.map(function(e){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.toStringOrNull(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.makeNull(e))})),(null==i?void 0:i.some(function(e){return null==e}))&&(i=null),r(this.createKey(i),i)},e.prototype.getValue=function(e){var t=this.filterParams,n=t.api,r=t.colDef,o=t.column,i=t.columnApi,a=t.context;return this.filterParams.valueGetter({api:n,colDef:r,column:o,columnApi:i,context:a,data:e.data,getValue:function(t){return e.data[t]},node:e})},e.prototype.extractExistingFormattedKeys=function(e){var t=this;if(!e)return null;var n=new Map;return e.forEach(function(e,r){n.set(t.caseFormat(r),r)}),n},e}(),SetFilterDisplayValue=function(){function e(){}return e.SELECT_ALL="__AG_SELECT_ALL__",e}(),__values$2=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},FlatSetDisplayValueModel=function(){function e(e,t,n,r){this.valueFormatterService=e,this.valueFormatter=t,this.formatter=n,this.column=r,this.displayedKeys=[]}return e.prototype.updateDisplayedValuesToAllAvailable=function(e,t,n){this.displayedKeys=Array.from(n)},e.prototype.updateDisplayedValuesToMatchMiniFilter=function(e,t,n,r,o){var i,a;this.displayedKeys=[];try{for(var s=__values$2(n),l=s.next();!l.done;l=s.next()){var c=l.value;if(null==c)o&&this.displayedKeys.push(c);else{var u=e(c),d=this.valueFormatterService.formatValue(this.column,null,u,this.valueFormatter,!1);r(this.formatter(d))&&this.displayedKeys.push(c)}}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}},e.prototype.getDisplayedValueCount=function(){return this.displayedKeys.length},e.prototype.getDisplayedItem=function(e){return this.displayedKeys[e]},e.prototype.getSelectAllItem=function(){return SetFilterDisplayValue.SELECT_ALL},e.prototype.getDisplayedKeys=function(){return this.displayedKeys},e.prototype.forEachDisplayedKey=function(e){this.displayedKeys.forEach(e)},e.prototype.someDisplayedKey=function(e){return this.displayedKeys.some(e)},e.prototype.hasGroups=function(){return!1},e.prototype.refresh=function(){},e}(),__read$1=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},__spread=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read$1(arguments[t]));return e},__values$1=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},TreeSetDisplayValueModel=function(){function e(e,t,n,r){this.formatter=e,this.treeListPathGetter=t,this.treeListFormatter=n,this.treeDataOrGrouping=r,this.allDisplayedItemsTree=[],this.activeDisplayedItemsFlat=[],this.selectAllItem={depth:0,filterPasses:!0,available:!0,treeKey:SetFilterDisplayValue.SELECT_ALL,children:this.allDisplayedItemsTree,expanded:!0,key:SetFilterDisplayValue.SELECT_ALL,parentTreeKeys:[]}}return e.prototype.updateDisplayedValuesToAllAvailable=function(e,t,n,r){"reload"===r?this.generateItemTree(e,t,n):"otherFilter"===r?(this.updateAvailable(n),this.updateExpandAll()):"miniFilter"===r&&(this.resetFilter(),this.updateExpandAll()),this.flattenItems()},e.prototype.updateDisplayedValuesToMatchMiniFilter=function(e,t,n,r,o,i){"reload"===i?this.generateItemTree(e,t,n):"otherFilter"===i&&this.updateAvailable(n),this.updateFilter(r,o),this.updateExpandAll(),this.flattenItems()},e.prototype.generateItemTree=function(e,t,n){var r,o,i;this.allDisplayedItemsTree=[],this.groupsExist=!1;var a=this.getTreeListPathGetter(e,n),s=function(t){var r=e(t),o=null!==(i=a(r))&&void 0!==i?i:[null];o.length>1&&(l.groupsExist=!0);var s,c=n.has(t),u=l.allDisplayedItemsTree,d=[];o.forEach(function(e,n){u||(u=[],s.children=u),s=u.find(function(t){var n;return(null===(n=t.treeKey)||void 0===n?void 0:n.toUpperCase())===(null==e?void 0:e.toUpperCase())}),s||(s={treeKey:e,depth:n,filterPasses:!0,expanded:!1,available:c,parentTreeKeys:d},n===o.length-1&&(s.key=t),u.push(s)),u=s.children,d=__spread(d,[e])})},l=this;try{for(var c=__values$1(t),u=c.next();!u.done;u=c.next())s(u.value)}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}this.updateAvailable(n),this.selectAllItem.children=this.allDisplayedItemsTree,this.selectAllItem.expanded=!1},e.prototype.getTreeListPathGetter=function(t,n){var r,o;if(this.treeListPathGetter)return this.treeListPathGetter;if(this.treeDataOrGrouping)return function(e){return e};var i=!1;try{for(var a=__values$1(n),s=a.next();!s.done;s=a.next()){var l=t(s.value);if(l instanceof Date){i=!0;break}if(null!=l)break}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i?e.DATE_TREE_LIST_PATH_GETTER:(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.")},"getTreeListPathGetter"),function(e){return[String(e)]})},e.prototype.flattenItems=function(){var e=this;this.activeDisplayedItemsFlat=[];var t=function(n){n.forEach(function(n){n.filterPasses&&n.available&&(e.activeDisplayedItemsFlat.push(n),n.children&&n.expanded&&t(n.children))})};t(this.allDisplayedItemsTree)},e.prototype.resetFilter=function(){var e=function(t){t.children&&t.children.forEach(function(t){e(t)}),t.filterPasses=!0};this.allDisplayedItemsTree.forEach(function(t){return e(t)})},e.prototype.updateFilter=function(e,t){var n=this,r=function(r){return!!r.available&&(null==r.treeKey?t:e(n.formatter(n.treeListFormatter?n.treeListFormatter(r.treeKey,r.depth,r.parentTreeKeys):r.treeKey)))};this.allDisplayedItemsTree.forEach(function(e){return n.recursiveItemCheck(e,!1,r,"filterPasses")})},e.prototype.getDisplayedValueCount=function(){return this.activeDisplayedItemsFlat.length},e.prototype.getDisplayedItem=function(e){return this.activeDisplayedItemsFlat[e]},e.prototype.getSelectAllItem=function(){return this.selectAllItem},e.prototype.getDisplayedKeys=function(){var e=[];return this.forEachDisplayedKey(function(t){return e.push(t)}),e},e.prototype.forEachDisplayedKey=function(e){var t=function(n,r){n.children?n.expanded&&r||n.children.forEach(function(e){e.filterPasses&&t(e,!1)}):e(n.key)};this.activeDisplayedItemsFlat.forEach(function(e){return t(e,!0)})},e.prototype.someDisplayedKey=function(e){var t=function(n,r){return n.children?(!n.expanded||!r)&&n.children.some(function(e){return!!e.filterPasses&&t(e,!1)}):e(n.key)};return this.activeDisplayedItemsFlat.some(function(e){return t(e,!0)})},e.prototype.hasGroups=function(){return this.groupsExist},e.prototype.refresh=function(){this.updateExpandAll(),this.flattenItems()},e.prototype.updateExpandAll=function(){var e=function(t,n,r){var o,i;try{for(var a=__values$1(t),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.filterPasses&&l.available&&l.children){if(n=n||!!l.expanded,r=r||!l.expanded,n&&r)return;var c=e(l.children,n,r);if(void 0===c)return;c?n=!0:r=!0}}}catch(e){o={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return n&&r?void 0:n},t=this.getSelectAllItem();t.expanded=e(t.children,!1,!1)},e.prototype.recursiveItemCheck=function(e,t,n,r){var o=this,i=!1;e.children&&e.children.forEach(function(a){var s=o.recursiveItemCheck(a,t||n(e),n,r);i=i||s});var a=t||i||n(e);return e[r]=a,a},e.prototype.updateAvailable=function(e){var t=this,n=function(t){return e.has(t.key)};this.allDisplayedItemsTree.forEach(function(e){return t.recursiveItemCheck(e,!1,n,"available")})},e.DATE_TREE_LIST_PATH_GETTER=function(e){return e?[String(e.getFullYear()),String(e.getMonth()+1),String(e.getDate())]:null},e}(),__read=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},SetFilterModelValuesType;!function(e){e[e.PROVIDED_LIST=0]="PROVIDED_LIST",e[e.PROVIDED_CALLBACK=1]="PROVIDED_CALLBACK",e[e.TAKEN_FROM_GRID_VALUES=2]="TAKEN_FROM_GRID_VALUES"}(SetFilterModelValuesType||(SetFilterModelValuesType={}));var SetValueModel=function(){function e(e){var t,n=this;this.localEventService=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.EventService,this.miniFilterText=null,this.providedValues=null,this.allValues=new Map,this.availableKeys=new Set,this.selectedKeys=new Set,this.initialised=!1;var r=e.usingComplexObjects,o=e.columnModel,i=e.valueService,a=e.treeDataTreeList,s=e.groupingTreeList,l=e.filterParams,c=e.gridOptionsService,u=e.valueFormatterService,d=e.valueFormatter,p=l.column,h=l.colDef,f=l.textFormatter,g=l.doesRowPassOtherFilter,m=l.suppressSorting,v=l.comparator,y=l.rowModel,A=l.values,w=l.caseSensitive,b=l.convertValuesToStrings,_=l.treeList,C=l.treeListPathGetter,E=l.treeListFormatter;this.filterParams=l,this.setIsLoading=e.setIsLoading,this.translate=e.translate,this.caseFormat=e.caseFormat,this.createKey=e.createKey,this.usingComplexObjects=!!e.usingComplexObjects,this.formatter=f||ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.TextFilter.DEFAULT_FORMATTER,this.doesRowPassOtherFilters=g,this.suppressSorting=m||!1,this.convertValuesToStrings=!!b;var S=null!=v?v:h.comparator,O=!!a||!!s;this.compareByValue=!!(r&&S||O||_&&!C),this.entryComparator=O&&!S?this.createTreeDataOrGroupingComparator():!_||C||S?function(e,t){var n=__read(e,2);n[0];var r=n[1],o=__read(t,2);o[0];var i=o[1];return S(r,i)}:function(e,t){var n=__read(e,2);n[0];var r=n[1],o=__read(t,2);o[0];var i=o[1];return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.defaultComparator(r,i)},this.keyComparator=null!==(t=S)&&void 0!==t?t:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.defaultComparator,this.caseSensitive=!!w;var x=c.get("getDataPath");"clientSide"===y.getType()&&(this.clientSideValuesExtractor=new ClientSideValuesExtractor(y,this.filterParams,this.createKey,this.caseFormat,o,i,O,!!a,x)),null==A?this.valuesType=SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES:(this.valuesType=Array.isArray(A)?SetFilterModelValuesType.PROVIDED_LIST:SetFilterModelValuesType.PROVIDED_CALLBACK,this.providedValues=A),this.displayValueModel=_?new TreeSetDisplayValueModel(this.formatter,C,E,a||s):new FlatSetDisplayValueModel(u,d,this.formatter,p),this.updateAllValues().then(function(e){return n.resetSelectionState(e||[])})}return e.prototype.addEventListener=function(e,t,n){this.localEventService.addEventListener(e,t,n)},e.prototype.removeEventListener=function(e,t,n){this.localEventService.removeEventListener(e,t,n)},e.prototype.refreshValues=function(){var e=this.getModel();return this.updateAllValues(),this.setModel(e)},e.prototype.overrideValues=function(e){var t=this;return new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise(function(n){t.allValuesPromise.then(function(){t.valuesType=SetFilterModelValuesType.PROVIDED_LIST,t.providedValues=e,t.refreshValues().then(function(){return n()})})})},e.prototype.refreshAfterAnyFilterChanged=function(){var e=this;return this.showAvailableOnly()?this.allValuesPromise.then(function(t){return e.updateAvailableKeys(null!=t?t:[],"otherFilter"),!0}):ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.resolve(!1)},e.prototype.isInitialised=function(){return this.initialised},e.prototype.updateAllValues=function(){var e=this;return this.allValuesPromise=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise(function(t){switch(e.valuesType){case SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES:case SetFilterModelValuesType.PROVIDED_LIST:t(e.processAllKeys(e.valuesType===SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES,e.providedValues));break;case SetFilterModelValuesType.PROVIDED_CALLBACK:e.setIsLoading(!0);var n=e.providedValues,r=e.filterParams,o=r.columnApi,i=r.api,a=r.context,s=r.column,l={success:function(n){e.setIsLoading(!1),t(e.processAllKeys(!1,n))},colDef:r.colDef,column:s,columnApi:o,api:i,context:a};window.setTimeout(function(){return n(l)},0);break;default:throw new Error("Unrecognised valuesType")}}),this.allValuesPromise.then(function(t){return e.updateAvailableKeys(t||[],"reload")}).then(function(){return e.initialised=!0}),this.allValuesPromise},e.prototype.processAllKeys=function(e,t){var n=e?this.getValuesFromRows(!1):this.uniqueValues(this.validateProvidedValues(t)),r=this.sortKeys(n);return this.allValues=null!=n?n:new Map,r},e.prototype.validateProvidedValues=function(e){if(this.usingComplexObjects&&(null==e?void 0:e.length)){var t=e[0];t&&"object"!=typeof t&&"function"!=typeof t&&(null==this.createKey(t)?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects or set convertValuesToStrings=true in the filterParams. See https://www.ag-grid.com/javascript-data-grid/filter-set-filter-list/#filter-value-types")},"setFilterComplexObjectsProvidedNull"):ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects or enable convertValuesToStrings?")},"setFilterComplexObjectsProvidedPrimitive"))}return e},e.prototype.setValuesType=function(e){this.valuesType=e},e.prototype.getValuesType=function(){return this.valuesType},e.prototype.isKeyAvailable=function(e){return this.availableKeys.has(e)},e.prototype.showAvailableOnly=function(){return this.valuesType===SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES},e.prototype.updateAvailableKeys=function(t,n){var r=this.showAvailableOnly()?this.sortKeys(this.getValuesFromRows(!0)):t;this.availableKeys=new Set(r),this.localEventService.dispatchEvent({type:e.EVENT_AVAILABLE_VALUES_CHANGED}),this.updateDisplayedValues(n,t)},e.prototype.sortKeys=function(e){var t,n=null!=e?e:new Map;return this.suppressSorting?Array.from(n.keys()):(t=this.compareByValue?Array.from(n.entries()).sort(this.entryComparator).map(function(e){return __read(e,1)[0]}):Array.from(n.keys()).sort(this.keyComparator),this.filterParams.excelMode&&n.has(null)&&(t=t.filter(function(e){return null!=e})).push(null),t)},e.prototype.getValuesFromRows=function(e){var t=this;return void 0===e&&(e=!1),this.clientSideValuesExtractor?this.clientSideValuesExtractor.extractUniqueValues(function(n){return!e||t.doesRowPassOtherFilters(n)},e&&!this.caseSensitive?this.allValues:void 0):(console.error("AG Grid: Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values"),null)},e.prototype.setMiniFilter=function(e){return e=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.makeNull(e),this.miniFilterText!==e&&(this.miniFilterText=e,this.updateDisplayedValues("miniFilter"),!0)},e.prototype.getMiniFilter=function(){return this.miniFilterText},e.prototype.updateDisplayedValues=function(e,t){var n=this;if("expansion"!==e)if(null!=this.miniFilterText){var r=this.caseFormat(this.formatter(this.miniFilterText)||""),o=function(e){return null!=e&&n.caseFormat(e).indexOf(r)>=0},i=!!this.filterParams.excelMode&&o(this.translate("blanks"));this.displayValueModel.updateDisplayedValuesToMatchMiniFilter(function(e){return n.getValue(e)},t,this.availableKeys,o,i,e)}else this.displayValueModel.updateDisplayedValuesToAllAvailable(function(e){return n.getValue(e)},t,this.availableKeys,e);else this.displayValueModel.refresh()},e.prototype.getDisplayedValueCount=function(){return this.displayValueModel.getDisplayedValueCount()},e.prototype.getDisplayedItem=function(e){return this.displayValueModel.getDisplayedItem(e)},e.prototype.getSelectAllItem=function(){return this.displayValueModel.getSelectAllItem()},e.prototype.hasSelections=function(){return this.filterParams.defaultToNothingSelected?this.selectedKeys.size>0:this.allValues.size!==this.selectedKeys.size},e.prototype.getKeys=function(){return Array.from(this.allValues.keys())},e.prototype.getValues=function(){return Array.from(this.allValues.values())},e.prototype.getValue=function(e){return this.allValues.get(e)},e.prototype.selectAllMatchingMiniFilter=function(e){var t=this;void 0===e&&(e=!1),null==this.miniFilterText?this.selectedKeys=new Set(this.allValues.keys()):(e&&this.selectedKeys.clear(),this.displayValueModel.forEachDisplayedKey(function(e){return t.selectedKeys.add(e)}))},e.prototype.deselectAllMatchingMiniFilter=function(){var e=this;null==this.miniFilterText?this.selectedKeys.clear():this.displayValueModel.forEachDisplayedKey(function(t){return e.selectedKeys.delete(t)})},e.prototype.selectKey=function(e){this.selectedKeys.add(e)},e.prototype.deselectKey=function(e){this.filterParams.excelMode&&this.isEverythingVisibleSelected()&&this.resetSelectionState(this.displayValueModel.getDisplayedKeys()),this.selectedKeys.delete(e)},e.prototype.isKeySelected=function(e){return this.selectedKeys.has(e)},e.prototype.isEverythingVisibleSelected=function(){var e=this;return!this.displayValueModel.someDisplayedKey(function(t){return!e.isKeySelected(t)})},e.prototype.isNothingVisibleSelected=function(){var e=this;return!this.displayValueModel.someDisplayedKey(function(t){return e.isKeySelected(t)})},e.prototype.getModel=function(){return this.hasSelections()?Array.from(this.selectedKeys):null},e.prototype.setModel=function(e){var t=this;return this.allValuesPromise.then(function(n){if(null==e)t.resetSelectionState(null!=n?n:[]);else{t.selectedKeys.clear();var r=new Map;t.allValues.forEach(function(e,n){r.set(t.caseFormat(n),n)}),e.forEach(function(e){var n=t.caseFormat(e),o=r.get(n);void 0!==o&&t.selectKey(o)})}})},e.prototype.uniqueValues=function(e){var t=this,n=new Map,r=new Set;return(null!=e?e:[]).forEach(function(e){var o=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.makeNull(e),i=t.convertAndGetKey(o),a=t.caseFormat(i);r.has(a)||(r.add(a),n.set(i,o))}),n},e.prototype.convertAndGetKey=function(e){return this.convertValuesToStrings?e:this.createKey(e)},e.prototype.resetSelectionState=function(e){this.filterParams.defaultToNothingSelected?this.selectedKeys.clear():this.selectedKeys=new Set(e)},e.prototype.hasGroups=function(){return this.displayValueModel.hasGroups()},e.prototype.createTreeDataOrGroupingComparator=function(){return function(e,t){var n=__read(e,2);n[0];var r=n[1],o=__read(t,2);o[0];var i=o[1];if(null==r)return null==i?0:-1;if(null==i)return 1;for(var a=0;a<r.length;a++){if(a>=i.length)return 1;var s=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.defaultComparator(r[a],i[a]);if(0!==s)return s}return 0}},e.EVENT_AVAILABLE_VALUES_CHANGED="availableValuesChanged",e}(),__extends$i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$d=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SetFilterListItem=function(e){function t(n){var r,o=e.call(this,n.isGroup?t.GROUP_TEMPLATE:t.TEMPLATE)||this;return o.focusWrapper=n.focusWrapper,o.value=n.value,o.params=n.params,o.translate=n.translate,o.valueFormatter=n.valueFormatter,o.item=n.item,o.isSelected=n.isSelected,o.isTree=n.isTree,o.depth=null!==(r=n.depth)&&void 0!==r?r:0,o.isGroup=n.isGroup,o.groupsExist=n.groupsExist,o.isExpanded=n.isExpanded,o.hasIndeterminateExpandState=n.hasIndeterminateExpandState,o}return __extends$i(t,e),t.prototype.init=function(){var e=this;this.render(),this.eCheckbox.setLabelEllipsis(!0),this.eCheckbox.setValue(this.isSelected,!0),this.eCheckbox.setDisabled(!!this.params.readOnly),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.refreshVariableAriaLabels(),this.isTree&&(this.depth>0&&this.addCssClass("ag-set-filter-indent-"+this.depth),this.isGroup?this.setupExpansion():this.groupsExist&&this.addCssClass("ag-set-filter-add-group-indent"),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaLevel(this.focusWrapper,this.depth+1)),this.params.readOnly||this.eCheckbox.onValueChange(function(t){return e.onCheckboxChanged(!!t)})},t.prototype.setupExpansion=function(){this.eGroupClosedIcon.appendChild(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIcon("setFilterGroupClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIcon("setFilterGroupOpen",this.gridOptionsService,null)),this.addManagedListener(this.eGroupClosedIcon,"click",this.onExpandOrContractClicked.bind(this)),this.addManagedListener(this.eGroupOpenedIcon,"click",this.onExpandOrContractClicked.bind(this)),this.hasIndeterminateExpandState&&(this.eGroupIndeterminateIcon.appendChild(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.createIcon("setFilterGroupIndeterminate",this.gridOptionsService,null)),this.addManagedListener(this.eGroupIndeterminateIcon,"click",this.onExpandOrContractClicked.bind(this))),this.setExpandedIcons(),this.refreshAriaExpanded()},t.prototype.onExpandOrContractClicked=function(){this.setExpanded(!this.isExpanded)},t.prototype.setExpanded=function(e,n){if(this.isGroup&&e!==this.isExpanded){this.isExpanded=e;var r={type:t.EVENT_EXPANDED_CHANGED,isExpanded:!!e,item:this.item};n||this.dispatchEvent(r),this.setExpandedIcons(),this.refreshAriaExpanded()}},t.prototype.refreshAriaExpanded=function(){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaExpanded(this.focusWrapper,!!this.isExpanded)},t.prototype.setExpandedIcons=function(){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eGroupClosedIcon,this.hasIndeterminateExpandState?!1===this.isExpanded:!this.isExpanded),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eGroupOpenedIcon,!0===this.isExpanded),this.hasIndeterminateExpandState&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eGroupIndeterminateIcon,void 0===this.isExpanded)},t.prototype.onCheckboxChanged=function(e){this.isSelected=e;var n={type:t.EVENT_SELECTION_CHANGED,isSelected:e,item:this.item};this.dispatchEvent(n),this.refreshVariableAriaLabels()},t.prototype.toggleSelected=function(){this.params.readOnly||this.setSelected(!this.isSelected)},t.prototype.setSelected=function(e,t){this.isSelected=e,this.eCheckbox.setValue(this.isSelected,t)},t.prototype.refreshVariableAriaLabels=function(){if(this.isTree){var e=this.localeService.getLocaleTextFunc(),t=this.eCheckbox.getValue(),n=void 0===t?e("ariaIndeterminate","indeterminate"):t?e("ariaVisible","visible"):e("ariaHidden","hidden"),r=e("ariaToggleVisibility","Press SPACE to toggle visibility");ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaLabelledBy(this.eCheckbox.getInputElement(),void 0),this.eCheckbox.setInputAriaLabel(r+" ("+n+")")}},t.prototype.setupFixedAriaLabels=function(e){if(this.isTree){var t=this.localeService.getLocaleTextFunc()("ariaFilterValue","Filter Value");ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaLabel(this.focusWrapper,e+" "+t),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setAriaDescribedBy(this.focusWrapper,this.eCheckbox.getInputElement().id)}},t.prototype.refresh=function(e,t,n){var r,o;if(this.item=e,t!==this.isSelected&&this.setSelected(t,!0),this.setExpanded(n,!0),this.valueFunction){var i=this.valueFunction();this.setTooltipAndCellRendererParams(i,i),this.cellRendererComponent||this.renderCellWithoutCellRenderer()}null===(o=null===(r=this.cellRendererComponent)||void 0===r?void 0:r.refresh)||void 0===o||o.call(r,this.cellRendererParams)},t.prototype.render=function(){var e=this.params.column,t=this.value,n=null;"function"==typeof t?(this.valueFunction=t,t=n=this.valueFunction()):n=this.isTree?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.toStringOrNull(t):this.getFormattedValue(e,t),this.setTooltipAndCellRendererParams(t,n),this.renderCell()},t.prototype.setTooltipAndCellRendererParams=function(e,t){if(this.params.showTooltips){var n=null!=t?t:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.toStringOrNull(e);this.setTooltip(n)}this.cellRendererParams={value:e,valueFormatted:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,colDef:this.params.colDef,column:this.params.column}},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="setFilterValue",t.colDef=this.getComponentHolder(),this.isTree&&(t.level=this.depth),t},t.prototype.getFormattedValue=function(e,t){return this.valueFormatterService.formatValue(e,null,t,this.valueFormatter,!1)},t.prototype.renderCell=function(){var e=this,t=this.userComponentFactory.getSetFilterCellRendererDetails(this.params,this.cellRendererParams),n=t?t.newAgStackInstance():void 0;null!=n?n.then(function(t){t&&(e.cellRendererComponent=t,e.eCheckbox.setLabel(t.getGui()),e.addDestroyFunc(function(){return e.destroyBean(t)}))}):this.renderCellWithoutCellRenderer()},t.prototype.renderCellWithoutCellRenderer=function(){var e,t=null!==(e=null==this.cellRendererParams.valueFormatted?this.cellRendererParams.value:this.cellRendererParams.valueFormatted)&&void 0!==e?e:this.translate("blanks");"string"!=typeof t&&(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn("AG Grid: Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects, or set convertValuesToStrings=true in the filterParams. See https://www.ag-grid.com/javascript-data-grid/filter-set-filter-list/#filter-value-types")},"setFilterComplexObjectsValueFormatter"),t=""),this.eCheckbox.setLabel(t),this.setupFixedAriaLabels(t)},t.prototype.getComponentHolder=function(){return this.params.column.getColDef()},t.EVENT_SELECTION_CHANGED="selectionChanged",t.EVENT_EXPANDED_CHANGED="expandedChanged",t.GROUP_TEMPLATE='\n        <div class="ag-set-filter-item" aria-hidden="true">\n            <span class="ag-set-filter-group-icons">\n                <span class="ag-set-filter-group-closed-icon" ref="eGroupClosedIcon"></span>\n                <span class="ag-set-filter-group-opened-icon" ref="eGroupOpenedIcon"></span>\n                <span class="ag-set-filter-group-indeterminate-icon" ref="eGroupIndeterminateIcon"></span>\n            </span>\n            <ag-checkbox ref="eCheckbox" class="ag-set-filter-item-checkbox"></ag-checkbox>\n        </div>',t.TEMPLATE='\n        <div class="ag-set-filter-item">\n            <ag-checkbox ref="eCheckbox" class="ag-set-filter-item-checkbox"></ag-checkbox>\n        </div>',__decorate$d([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueFormatterService")],t.prototype,"valueFormatterService",void 0),__decorate$d([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),__decorate$d([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eCheckbox")],t.prototype,"eCheckbox",void 0),__decorate$d([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),__decorate$d([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),__decorate$d([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eGroupIndeterminateIcon")],t.prototype,"eGroupIndeterminateIcon",void 0),__decorate$d([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),DEFAULT_LOCALE_TEXT={loadingOoo:"Loading...",blanks:"(Blanks)",searchOoo:"Search...",selectAll:"(Select All)",selectAllSearchResults:"(Select All Search Results)",noMatches:"No matches."},SetFilterModelFormatter=function(){function e(){}return e.prototype.getModelAsString=function(e,t){var n=(e||t.getModel()||{}).values,r=t.getValueModel();if(null==n||null==r)return"";var o=n.filter(function(e){return r.isKeyAvailable(e)}),i=o.length;return"("+i+") "+o.slice(0,10).map(function(e){return t.getFormattedValue(e)}).join(",")+(i>10?",...":"")},e}(),__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$c=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SetFilter=function(e){function t(){var t=e.call(this,"setFilter")||this;return t.valueModel=null,t.setFilterParams=null,t.virtualList=null,t.caseSensitive=!1,t.convertValuesToStrings=!1,t.treeDataTreeList=!1,t.groupingTreeList=!1,t.hardRefreshVirtualList=!1,t.noValueFormatterSupplied=!1,t.appliedModelKeys=null,t.noAppliedModelKeys=!1,t.filterModelFormatter=new SetFilterModelFormatter,t}return __extends$h(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this)},t.prototype.updateUiVisibility=function(){},t.prototype.createBodyTemplate=function(){return'\n            <div class="ag-set-filter">\n                <div ref="eFilterLoading" class="ag-filter-loading ag-hidden">'+this.translateForSetFilter("loadingOoo")+'</div>\n                <ag-input-text-field class="ag-mini-filter" ref="eMiniFilter"></ag-input-text-field>\n                <div ref="eFilterNoMatches" class="ag-filter-no-matches ag-hidden">'+this.translateForSetFilter("noMatches")+'</div>\n                <div ref="eSetFilterList" class="ag-set-filter-list" role="presentation"></div>\n            </div>'},t.prototype.handleKeyDown=function(t){if(e.prototype.handleKeyDown.call(this,t),!t.defaultPrevented)switch(t.key){case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.SPACE:this.handleKeySpace(t);break;case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.ENTER:this.handleKeyEnter(t);break;case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.LEFT:this.handleKeyLeft(t);break;case ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.RIGHT:this.handleKeyRight(t)}},t.prototype.handleKeySpace=function(e){var t;null===(t=this.getComponentForKeyEvent(e))||void 0===t||t.toggleSelected()},t.prototype.handleKeyEnter=function(e){if(this.setFilterParams){var t=this.setFilterParams||{},n=t.excelMode,r=t.readOnly;n&&!r&&(e.preventDefault(),this.onBtApply(!1,!1,e),"mac"===this.setFilterParams.excelMode&&this.eMiniFilter.getInputElement().select())}},t.prototype.handleKeyLeft=function(e){var t;null===(t=this.getComponentForKeyEvent(e))||void 0===t||t.setExpanded(!1)},t.prototype.handleKeyRight=function(e){var t;null===(t=this.getComponentForKeyEvent(e))||void 0===t||t.setExpanded(!0)},t.prototype.getComponentForKeyEvent=function(e){var t,n=this.gridOptionsService.getDocument();if(this.eSetFilterList.contains(n.activeElement)&&this.virtualList){var r=this.virtualList.getLastFocusedRow();if(null!=r){var o=this.virtualList.getComponentAt(r);if(null!=o&&(e.preventDefault(),!(null!==(t=this.setFilterParams)&&void 0!==t?t:{}).readOnly))return o}}},t.prototype.getCssIdentifier=function(){return"set-filter"},t.prototype.setModel=function(t){var n;return null==t&&null==(null===(n=this.valueModel)||void 0===n?void 0:n.getModel())?(this.setMiniFilter(null),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.resolve()):e.prototype.setModel.call(this,t)},t.prototype.setModelAndRefresh=function(e){var t=this;return this.valueModel?this.valueModel.setModel(e).then(function(){return t.refresh()}):ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.resolve()},t.prototype.resetUiToDefaults=function(){return this.setMiniFilter(null),this.setModelAndRefresh(null)},t.prototype.setModelIntoUi=function(e){this.setMiniFilter(null);var t=null==e?null:e.values;return this.setModelAndRefresh(t)},t.prototype.getModelFromUi=function(){if(!this.valueModel)throw new Error("Value model has not been created.");var e=this.valueModel.getModel();return e?{values:e,filterType:this.getFilterType()}:null},t.prototype.getFilterType=function(){return"set"},t.prototype.getValueModel=function(){return this.valueModel},t.prototype.areModelsEqual=function(e,t){return null==e&&null==t||null!=e&&null!=t&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.areEqual(e.values,t.values)},t.prototype.setParams=function(t){var n,r=this;this.applyExcelModeOptions(t),e.prototype.setParams.call(this,t),this.setFilterParams=t,this.convertValuesToStrings=!!t.convertValuesToStrings,this.caseSensitive=!!t.caseSensitive;var o=null!==(n=t.keyCreator)&&void 0!==n?n:t.colDef.keyCreator;this.setValueFormatter(t.valueFormatter,o,this.convertValuesToStrings,!!t.treeList,!!t.colDef.refData);var i=t.column.getId().startsWith(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.GROUP_AUTO_COLUMN_ID);this.treeDataTreeList=this.gridOptionsService.is("treeData")&&!!t.treeList&&i,this.getDataPath=this.gridOptionsService.get("getDataPath"),this.groupingTreeList=!!this.columnModel.getRowGroupColumns().length&&!!t.treeList&&i,this.createKey=this.generateCreateKey(o,this.convertValuesToStrings,this.treeDataTreeList||this.groupingTreeList),this.valueModel=new SetValueModel({filterParams:t,setIsLoading:function(e){return r.setIsLoading(e)},valueFormatterService:this.valueFormatterService,translate:function(e){return r.translateForSetFilter(e)},caseFormat:function(e){return r.caseFormat(e)},createKey:this.createKey,valueFormatter:this.valueFormatter,usingComplexObjects:!!o,gridOptionsService:this.gridOptionsService,columnModel:this.columnModel,valueService:this.valueService,treeDataTreeList:this.treeDataTreeList,groupingTreeList:this.groupingTreeList}),this.initialiseFilterBodyUi(),this.addEventListenersForDataChanges()},t.prototype.setValueFormatter=function(e,t,n,r,o){var i=e;if(!i){if(t&&!n&&!r)throw new Error("AG Grid: Must supply a Value Formatter in Set Filter params when using a Key Creator unless convertValuesToStrings is enabled");this.noValueFormatterSupplied=!0,o||(i=function(e){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.toStringOrNull(e.value)})}this.valueFormatter=i},t.prototype.generateCreateKey=function(e,t,n){var r=this;if(n&&!e)throw new Error("AG Grid: Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.");return e?function(t,n){void 0===n&&(n=null);var o=r.getKeyCreatorParams(t,n);return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.makeNull(e(o))}:t?function(e){return Array.isArray(e)?e:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.makeNull(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.toStringOrNull(e))}:function(e){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.makeNull(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.toStringOrNull(e))}},t.prototype.getFormattedValue=function(e){var t,n=this.valueModel.getValue(e);this.noValueFormatterSupplied&&(this.treeDataTreeList||this.groupingTreeList)&&Array.isArray(n)&&(n=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.last(n));var r=this.valueFormatterService.formatValue(this.setFilterParams.column,null,n,this.valueFormatter,!1);return null!==(t=null==r?ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.toStringOrNull(n):r)&&void 0!==t?t:this.translateForSetFilter("blanks")},t.prototype.applyExcelModeOptions=function(e){"windows"===e.excelMode?(e.buttons||(e.buttons=["apply","cancel"]),null==e.closeOnApply&&(e.closeOnApply=!0)):"mac"===e.excelMode&&(e.buttons||(e.buttons=["reset"]),null==e.applyMiniFilterWhileTyping&&(e.applyMiniFilterWhileTyping=!0),null==e.debounceMs&&(e.debounceMs=500)),e.excelMode&&e.defaultToNothingSelected&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.doOnce(function(){return console.warn('AG Grid: The Set Filter Parameter "defaultToNothingSelected" does not work with "excelMode".')},"setFilterExcelModeDefaultToNothingSelect")},t.prototype.addEventListenersForDataChanges=function(){var e=this;this.isValuesTakenFromGrid()&&this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_CELL_VALUE_CHANGED,function(t){e.setFilterParams&&t.column===e.setFilterParams.column&&e.syncAfterDataChange()})},t.prototype.syncAfterDataChange=function(){var e=this;if(!this.valueModel)throw new Error("Value model has not been created.");return this.valueModel.refreshValues().then(function(){e.refresh(),e.onBtApply(!1,!0)})},t.prototype.setIsLoading=function(e){ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eFilterLoading,e),e||(this.hardRefreshVirtualList=!0)},t.prototype.initialiseFilterBodyUi=function(){this.initVirtualList(),this.initMiniFilter()},t.prototype.initVirtualList=function(){var e=this;if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");var t=this.localeService.getLocaleTextFunc()("ariaFilterList","Filter List"),n=!!this.setFilterParams.treeList,r=this.virtualList=this.createBean(new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.VirtualList("filter",n?"tree":"listbox",t)),o=this.getRefElement("eSetFilterList");n&&o.classList.add("ag-set-filter-tree-list"),o&&o.appendChild(r.getGui());var i,a=this.setFilterParams.cellHeight;null!=a&&r.setRowHeight(a),r.setComponentCreator(function(t,r){return e.createSetListItem(t,n,r)}),r.setComponentUpdater(function(t,n){return e.updateSetListItem(t,n)}),i=this.setFilterParams.suppressSelectAll?new ModelWrapper(this.valueModel):new ModelWrapperWithSelectAll(this.valueModel,function(){return e.isSelectAllSelected()}),n&&(i=new TreeModelWrapper(i)),r.setModel(i)},t.prototype.getSelectAllLabel=function(){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");var e=null!=this.valueModel.getMiniFilter()&&this.setFilterParams.excelMode?"selectAllSearchResults":"selectAll";return this.translateForSetFilter(e)},t.prototype.createSetListItem=function(e,t,n){var r,o,i,a,s,l,c=this;if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");var u,d,p,h,f,g,m=this.valueModel.hasGroups();this.isSetFilterModelTreeItem(e)?(d=e.depth,e.key===SetFilterDisplayValue.SELECT_ALL?(u=function(){return c.getSelectAllLabel()},p=m,h=!0,f=function(e){return c.onSelectAll(e.isSelected)},g=function(e){return c.onExpandAll(e.item,e.isExpanded)}):e.children?(u=null!==(i=null===(o=(r=this.setFilterParams).treeListFormatter)||void 0===o?void 0:o.call(r,e.treeKey,e.depth,e.parentTreeKeys))&&void 0!==i?i:e.treeKey,p=!0,f=function(e){return c.onGroupItemSelected(e.item,e.isSelected)},g=function(e){return c.onExpandedChanged(e.item,e.isExpanded)}):(u=null!==(l=null===(s=(a=this.setFilterParams).treeListFormatter)||void 0===s?void 0:s.call(a,e.treeKey,e.depth,e.parentTreeKeys))&&void 0!==l?l:e.treeKey,f=function(e){return c.onItemSelected(e.item.key,e.isSelected)})):e===SetFilterDisplayValue.SELECT_ALL?(u=function(){return c.getSelectAllLabel()},f=function(e){return c.onSelectAll(e.isSelected)}):(u=this.valueModel.getValue(e),f=function(e){return c.onItemSelected(e.item,e.isSelected)});var v=this.isSelectedExpanded(e),y=v.isSelected,A=v.isExpanded,w={focusWrapper:n,value:u,params:this.setFilterParams,translate:function(e){return c.translateForSetFilter(e)},valueFormatter:this.valueFormatter,item:e,isSelected:y,isTree:t,depth:d,groupsExist:m,isGroup:p,isExpanded:A,hasIndeterminateExpandState:h},b=this.createBean(new SetFilterListItem(w));return b.addEventListener(SetFilterListItem.EVENT_SELECTION_CHANGED,f),g&&b.addEventListener(SetFilterListItem.EVENT_EXPANDED_CHANGED,g),b},t.prototype.updateSetListItem=function(e,t){var n=this.isSelectedExpanded(e),r=n.isSelected,o=n.isExpanded;t.refresh(e,r,o)},t.prototype.isSelectedExpanded=function(e){var t,n;return this.isSetFilterModelTreeItem(e)?(n=e.expanded,t=e.key===SetFilterDisplayValue.SELECT_ALL?this.isSelectAllSelected():e.children?this.areAllChildrenSelected(e):this.valueModel.isKeySelected(e.key)):t=e===SetFilterDisplayValue.SELECT_ALL?this.isSelectAllSelected():this.valueModel.isKeySelected(e),{isSelected:t,isExpanded:n}},t.prototype.isSetFilterModelTreeItem=function(e){return void 0!==(null==e?void 0:e.treeKey)},t.prototype.initMiniFilter=function(){var e=this;if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");var t=this.eMiniFilter,n=this.localeService.getLocaleTextFunc();t.setDisplayed(!this.setFilterParams.suppressMiniFilter),t.setValue(this.valueModel.getMiniFilter()),t.onValueChange(function(){return e.onMiniFilterInput()}),t.setInputAriaLabel(n("ariaSearchFilterValues","Search filter values")),this.addManagedListener(t.getInputElement(),"keypress",function(t){return e.onMiniFilterKeyPress(t)})},t.prototype.afterGuiAttached=function(t){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");e.prototype.afterGuiAttached.call(this,t),this.resetExpansion(),this.refreshVirtualList();var n=this.eMiniFilter;n.setInputPlaceholder(this.translateForSetFilter("searchOoo")),t&&t.suppressFocus||n.getFocusableElement().focus()},t.prototype.afterGuiDetached=function(){var t,n;e.prototype.afterGuiDetached.call(this),(null===(t=this.setFilterParams)||void 0===t?void 0:t.excelMode)&&this.resetMiniFilter();var r=this.getModel();!(null===(n=this.setFilterParams)||void 0===n?void 0:n.excelMode)&&this.areModelsEqual(r,this.getModelFromUi())||(this.resetUiToActiveModel(r),this.showOrHideResults())},t.prototype.applyModel=function(t){var n=this;if(void 0===t&&(t="api"),!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");this.setFilterParams.excelMode&&"rowDataUpdated"!==t&&this.valueModel.isEverythingVisibleSelected()&&this.valueModel.selectAllMatchingMiniFilter();var r=e.prototype.applyModel.call(this,t),o=this.getModel();return o?(this.appliedModelKeys=new Set,o.values.forEach(function(e){n.appliedModelKeys.add(n.caseFormat(e))})):this.appliedModelKeys=null,this.noAppliedModelKeys=0===(null==o?void 0:o.values.length),r},t.prototype.isModelValid=function(e){return!this.setFilterParams||!this.setFilterParams.excelMode||null==e||e.values.length>0},t.prototype.doesFilterPass=function(e){var t=this;if(!this.setFilterParams||!this.valueModel||!this.appliedModelKeys)return!0;if(this.noAppliedModelKeys)return!1;var n=e.node,r=e.data;if(this.treeDataTreeList)return this.doesFilterPassForTreeData(n,r);if(this.groupingTreeList)return this.doesFilterPassForGrouping(n,r);var o=this.getValueFromNode(n,r);return this.convertValuesToStrings?this.doesFilterPassForConvertValuesToString(n,o):null!=o&&Array.isArray(o)?0===o.length?this.appliedModelKeys.has(null):o.some(function(e){return t.isInAppliedModel(t.createKey(e,n))}):this.isInAppliedModel(this.createKey(o,n))},t.prototype.doesFilterPassForConvertValuesToString=function(e,t){var n=this,r=this.createKey(t,e);return null!=r&&Array.isArray(r)?0===r.length?this.appliedModelKeys.has(null):r.some(function(e){return n.isInAppliedModel(e)}):this.isInAppliedModel(r)},t.prototype.doesFilterPassForTreeData=function(e,t){var n;return!(null===(n=e.childrenAfterGroup)||void 0===n?void 0:n.length)&&this.isInAppliedModel(this.createKey(this.checkMakeNullDataPath(this.getDataPath(t))))},t.prototype.doesFilterPassForGrouping=function(e,t){var n=this,r=this.columnModel.getRowGroupColumns().map(function(t){return n.valueService.getKeyForNode(t,e)});return r.push(this.getValueFromNode(e,t)),this.isInAppliedModel(this.createKey(this.checkMakeNullDataPath(r)))},t.prototype.checkMakeNullDataPath=function(e){return e&&(e=e.map(function(e){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.toStringOrNull(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.makeNull(e))})),(null==e?void 0:e.some(function(e){return null==e}))?null:e},t.prototype.isInAppliedModel=function(e){return this.appliedModelKeys.has(this.caseFormat(e))},t.prototype.getValueFromNode=function(e,t){var n=this.setFilterParams;return(0,n.valueGetter)({api:n.api,colDef:n.colDef,column:n.column,columnApi:n.columnApi,context:n.context,data:t,getValue:function(e){return t[e]},node:e})},t.prototype.getKeyCreatorParams=function(e,t){return void 0===t&&(t=null),{value:e,colDef:this.setFilterParams.colDef,column:this.setFilterParams.column,node:t,data:null==t?void 0:t.data,api:this.setFilterParams.api,columnApi:this.setFilterParams.columnApi,context:this.setFilterParams.context}},t.prototype.onNewRowsLoaded=function(){this.isValuesTakenFromGrid()&&this.syncAfterDataChange()},t.prototype.isValuesTakenFromGrid=function(){return!!this.valueModel&&this.valueModel.getValuesType()===SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES},t.prototype.setFilterValues=function(e){var t=this;if(!this.valueModel)throw new Error("Value model has not been created.");this.valueModel.overrideValues(e).then(function(){t.refresh(),t.onUiChanged()})},t.prototype.resetFilterValues=function(){if(!this.valueModel)throw new Error("Value model has not been created.");this.valueModel.setValuesType(SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES),this.syncAfterDataChange()},t.prototype.refreshFilterValues=function(){var e=this;if(!this.valueModel)throw new Error("Value model has not been created.");this.valueModel.isInitialised()&&this.valueModel.refreshValues().then(function(){e.refresh(),e.onUiChanged()})},t.prototype.onAnyFilterChanged=function(){var e=this;setTimeout(function(){if(e.isAlive()){if(!e.valueModel)throw new Error("Value model has not been created.");e.valueModel.refreshAfterAnyFilterChanged().then(function(t){t&&(e.refresh(),e.showOrHideResults())})}},0)},t.prototype.onMiniFilterInput=function(){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");if(this.valueModel.setMiniFilter(this.eMiniFilter.getValue())){var e=this.setFilterParams||{},t=e.applyMiniFilterWhileTyping;!e.readOnly&&t?this.filterOnAllVisibleValues(!1):this.updateUiAfterMiniFilterChange()}},t.prototype.updateUiAfterMiniFilterChange=function(){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");var e=this.setFilterParams||{},t=e.excelMode,n=e.readOnly;null==t||n?this.refresh():null==this.valueModel.getMiniFilter()?this.resetUiToActiveModel(this.getModel()):(this.valueModel.selectAllMatchingMiniFilter(!0),this.refresh(),this.onUiChanged()),this.showOrHideResults()},t.prototype.showOrHideResults=function(){if(!this.valueModel)throw new Error("Value model has not been created.");var e=null!=this.valueModel.getMiniFilter()&&this.valueModel.getDisplayedValueCount()<1;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eNoMatches,e),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.setDisplayed(this.eSetFilterList,!e)},t.prototype.resetMiniFilter=function(){var e;this.eMiniFilter.setValue(null,!0),null===(e=this.valueModel)||void 0===e||e.setMiniFilter(null)},t.prototype.resetUiToActiveModel=function(e,t){var n=this;this.setModelAndRefresh(null==e?null:e.values).then(function(){n.onUiChanged(!1,"prevent"),null==t||t()})},t.prototype.handleCancelEnd=function(t){this.setMiniFilter(null),e.prototype.handleCancelEnd.call(this,t)},t.prototype.onMiniFilterKeyPress=function(e){var t=this.setFilterParams||{},n=t.excelMode,r=t.readOnly;e.key!==ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.KeyCode.ENTER||n||r||this.filterOnAllVisibleValues()},t.prototype.filterOnAllVisibleValues=function(e){void 0===e&&(e=!0);var t=(this.setFilterParams||{}).readOnly;if(!this.valueModel)throw new Error("Value model has not been created.");if(t)throw new Error("Unable to filter in readOnly mode.");this.valueModel.selectAllMatchingMiniFilter(!0),this.refresh(),this.onUiChanged(!1,e?"immediately":"debounce"),this.showOrHideResults()},t.prototype.focusRowIfAlive=function(e){var t=this;null!=e&&window.setTimeout(function(){if(!t.virtualList)throw new Error("Virtual list has not been created.");t.isAlive()&&t.virtualList.focusRow(e)},0)},t.prototype.onSelectAll=function(e){if(!this.valueModel)throw new Error("Value model has not been created.");if(!this.virtualList)throw new Error("Virtual list has not been created.");e?this.valueModel.selectAllMatchingMiniFilter():this.valueModel.deselectAllMatchingMiniFilter(),this.refreshAfterSelection()},t.prototype.onGroupItemSelected=function(e,t){var n=this,r=function(e){e.children?e.children.forEach(function(e){return r(e)}):n.selectItem(e.key,t)};r(e),this.refreshAfterSelection()},t.prototype.onItemSelected=function(e,t){if(!this.valueModel)throw new Error("Value model has not been created.");if(!this.virtualList)throw new Error("Virtual list has not been created.");this.selectItem(e,t),this.refreshAfterSelection()},t.prototype.selectItem=function(e,t){t?this.valueModel.selectKey(e):this.valueModel.deselectKey(e)},t.prototype.onExpandAll=function(e,t){var n=function(e){e.filterPasses&&e.available&&e.children&&(e.children.forEach(function(e){return n(e)}),e.expanded=t)};n(e),this.refreshAfterExpansion()},t.prototype.onExpandedChanged=function(e,t){e.expanded=t,this.refreshAfterExpansion()},t.prototype.refreshAfterExpansion=function(){var e=this.virtualList.getLastFocusedRow();this.valueModel.updateDisplayedValues("expansion"),this.refresh(),this.focusRowIfAlive(e)},t.prototype.refreshAfterSelection=function(){var e=this.virtualList.getLastFocusedRow();this.refresh(),this.onUiChanged(),this.focusRowIfAlive(e)},t.prototype.setMiniFilter=function(e){this.eMiniFilter.setValue(e),this.onMiniFilterInput()},t.prototype.getMiniFilter=function(){return this.valueModel?this.valueModel.getMiniFilter():null},t.prototype.refresh=function(){if(!this.virtualList)throw new Error("Virtual list has not been created.");this.virtualList.refresh(!this.hardRefreshVirtualList),this.hardRefreshVirtualList&&(this.hardRefreshVirtualList=!1)},t.prototype.getFilterKeys=function(){return this.valueModel?this.valueModel.getKeys():[]},t.prototype.getFilterValues=function(){return this.valueModel?this.valueModel.getValues():[]},t.prototype.getValues=function(){return this.getFilterKeys()},t.prototype.refreshVirtualList=function(){this.setFilterParams&&this.setFilterParams.refreshValuesOnOpen?this.refreshFilterValues():this.refresh()},t.prototype.translateForSetFilter=function(e){return this.localeService.getLocaleTextFunc()(e,DEFAULT_LOCALE_TEXT[e])},t.prototype.isSelectAllSelected=function(){if(!this.setFilterParams||!this.valueModel)return!1;if(this.setFilterParams.defaultToNothingSelected){if(this.valueModel.hasSelections()&&this.valueModel.isEverythingVisibleSelected())return!0;if(this.valueModel.isNothingVisibleSelected())return!1}else{if(this.valueModel.hasSelections()&&this.valueModel.isNothingVisibleSelected())return!1;if(this.valueModel.isEverythingVisibleSelected())return!0}},t.prototype.areAllChildrenSelected=function(e){var t=this,n=function(e){if(e.children){var r=!1,o=!1;return e.children.some(function(e){if(!e.filterPasses||!e.available)return!1;var t=n(e);return void 0===t||(t?r=!0:o=!0,r&&o)})?void 0:r}return t.valueModel.isKeySelected(e.key)};return this.setFilterParams.defaultToNothingSelected?this.valueModel.hasSelections()&&n(e):n(e)},t.prototype.destroy=function(){null!=this.virtualList&&(this.virtualList.destroy(),this.virtualList=null),e.prototype.destroy.call(this)},t.prototype.caseFormat=function(e){return null==e||"string"!=typeof e||this.caseSensitive?e:e.toUpperCase()},t.prototype.resetExpansion=function(){var e,t;if(null===(e=this.setFilterParams)||void 0===e?void 0:e.treeList){var n=null===(t=this.valueModel)||void 0===t?void 0:t.getSelectAllItem();if(this.isSetFilterModelTreeItem(n)){var r=function(e){e.children&&(e.children.forEach(function(e){return r(e)}),e.expanded=!1)};r(n),this.valueModel.updateDisplayedValues("expansion")}}},t.prototype.getModelAsString=function(e){return this.filterModelFormatter.getModelAsString(e,this)},t.prototype.getPositionableElement=function(){return this.eSetFilterList},__decorate$c([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eMiniFilter")],t.prototype,"eMiniFilter",void 0),__decorate$c([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eFilterLoading")],t.prototype,"eFilterLoading",void 0),__decorate$c([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eSetFilterList")],t.prototype,"eSetFilterList",void 0),__decorate$c([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eFilterNoMatches")],t.prototype,"eNoMatches",void 0),__decorate$c([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueFormatterService")],t.prototype,"valueFormatterService",void 0),__decorate$c([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),__decorate$c([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueService")],t.prototype,"valueService",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ProvidedFilter),ModelWrapper=function(){function e(e){this.model=e}return e.prototype.getRowCount=function(){return this.model.getDisplayedValueCount()},e.prototype.getRow=function(e){return this.model.getDisplayedItem(e)},e.prototype.isRowSelected=function(e){return this.model.isKeySelected(this.getRow(e))},e.prototype.areRowsEqual=function(e,t){return e===t},e}(),ModelWrapperWithSelectAll=function(){function e(e,t){this.model=e,this.isSelectAllSelected=t}return e.prototype.getRowCount=function(){return this.model.getDisplayedValueCount()+1},e.prototype.getRow=function(e){return 0===e?this.model.getSelectAllItem():this.model.getDisplayedItem(e-1)},e.prototype.isRowSelected=function(e){return 0===e?this.isSelectAllSelected():this.model.isKeySelected(this.getRow(e))},e.prototype.areRowsEqual=function(e,t){return e===t},e}(),TreeModelWrapper=function(){function e(e){this.model=e}return e.prototype.getRowCount=function(){return this.model.getRowCount()},e.prototype.getRow=function(e){return this.model.getRow(e)},e.prototype.areRowsEqual=function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.treeKey===t.treeKey&&e.depth===t.depth},e}(),__extends$g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$b=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SetFloatingFilterComp=function(e){function t(){var t=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 t.availableValuesListenerAdded=!1,t.filterModelFormatter=new SetFilterModelFormatter,t}return __extends$g(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),n=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+n("ariaFilterInput","Filter Input")).addGuiEventListener("click",function(){return e.showParentFilter()}),this.params=e},t.prototype.onParentModelChanged=function(e){this.updateFloatingFilterText(e)},t.prototype.parentSetFilterInstance=function(e){this.params.parentFilterInstance(function(t){if(!(t instanceof SetFilter))throw new Error("AG Grid - SetFloatingFilter expects SetFilter as its parent");e(t)})},t.prototype.addAvailableValuesListener=function(){var e=this;this.parentSetFilterInstance(function(t){var n=t.getValueModel();n&&e.addManagedListener(n,SetValueModel.EVENT_AVAILABLE_VALUES_CHANGED,function(){return e.updateFloatingFilterText()})}),this.availableValuesListenerAdded=!0},t.prototype.updateFloatingFilterText=function(e){var t=this;this.availableValuesListenerAdded||this.addAvailableValuesListener(),this.parentSetFilterInstance(function(n){t.eFloatingFilterText.setValue(t.filterModelFormatter.getModelAsString(e,n))})},__decorate$b([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),__decorate$b([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("columnModel")],t.prototype,"columnModel",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),VERSION$3="29.3.3",SetFilterModule={version:VERSION$3,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.SetFilterModule,beans:[],userComponents:[{componentName:"agSetColumnFilter",componentClass:SetFilter},{componentName:"agSetColumnFloatingFilter",componentClass:SetFloatingFilterComp}],dependantModules:[EnterpriseCoreModule]},__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$a=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},StatusBarService=function(e){function t(){var t=e.call(this)||this;return t.allComponents={},t}return __extends$f(t,e),t.prototype.registerStatusPanel=function(e,t){this.allComponents[e]=t},t.prototype.getStatusPanel=function(e){return this.allComponents[e]},__decorate$a([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("statusBarService")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$9=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},StatusBar=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return __extends$e(t,e),t.prototype.postConstruct=function(){var e,t=null===(e=this.gridOptionsService.get("statusBar"))||void 0===e?void 0:e.statusPanels;if(t){var n=t.filter(function(e){return"left"===e.align});this.createAndRenderComponents(n,this.eStatusBarLeft);var r=t.filter(function(e){return"center"===e.align});this.createAndRenderComponents(r,this.eStatusBarCenter);var o=t.filter(function(e){return!e.align||"right"===e.align});this.createAndRenderComponents(o,this.eStatusBarRight)}else this.setDisplayed(!1)},t.prototype.createAndRenderComponents=function(e,t){var n=this,r=[];e.forEach(function(e){var t=n.userComponentFactory.getStatusPanelCompDetails(e,{}).newAgStackInstance();t&&r.push({key:e.key||e.statusPanel,promise:t})}),ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AgPromise.all(r.map(function(e){return e.promise})).then(function(){r.forEach(function(e){e.promise.then(function(r){var o=function(){n.getContext().destroyBean(r)};n.isAlive()?(n.statusBarService.registerStatusPanel(e.key,r),t.appendChild(r.getGui()),n.addDestroyFunc(o)):o()})})})},t.TEMPLATE='<div class="ag-status-bar">\n            <div ref="eStatusBarLeft" class="ag-status-bar-left" role="status"></div>\n            <div ref="eStatusBarCenter" class="ag-status-bar-center" role="status"></div>\n            <div ref="eStatusBarRight" class="ag-status-bar-right" role="status"></div>\n        </div>',__decorate$9([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),__decorate$9([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("statusBarService")],t.prototype,"statusBarService",void 0),__decorate$9([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eStatusBarLeft")],t.prototype,"eStatusBarLeft",void 0),__decorate$9([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eStatusBarCenter")],t.prototype,"eStatusBarCenter",void 0),__decorate$9([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eStatusBarRight")],t.prototype,"eStatusBarRight",void 0),__decorate$9([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$8=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},NameValueComp=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return __extends$d(t,e),t.prototype.setLabel=function(e,t){this.setDisplayed(!1);var n=this.localeService.getLocaleTextFunc();this.eLabel.innerHTML=n(e,t)},t.prototype.setValue=function(e){this.eValue.innerHTML=e},t.TEMPLATE='<div class="ag-status-name-value">\n            <span ref="eLabel"></span>:&nbsp;\n            <span ref="eValue" class="ag-status-name-value-value"></span>\n        </div>',__decorate$8([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eLabel")],t.prototype,"eLabel",void 0),__decorate$8([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eValue")],t.prototype,"eValue",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$7=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},TotalAndFilteredRowsComp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$c(t,e),t.prototype.postConstruct=function(){"clientSide"===this.gridApi.getModel().getType()?(this.setLabel("totalAndFilteredRows","Rows"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-and-filtered-row-count"),this.setDisplayed(!0),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_MODEL_UPDATED,this.onDataChanged.bind(this)),this.onDataChanged()):console.warn("AG Grid: agTotalAndFilteredRowCountComponent should only be used with the client side row model.")},t.prototype.onDataChanged=function(){var e=this.localeService.getLocaleTextFunc(),t=e("thousandSeparator",","),n=e("decimalSeparator","."),r=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.formatNumberCommas(this.getFilteredRowCountValue(),t,n),o=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.formatNumberCommas(this.getTotalRowCount(),t,n);if(r===o)this.setValue(r);else{var i=this.localeService.getLocaleTextFunc();this.setValue(r+" "+i("of","of")+" "+o)}},t.prototype.getFilteredRowCountValue=function(){var e=0;return this.gridApi.forEachNodeAfterFilter(function(t){t.group||e++}),e},t.prototype.getTotalRowCount=function(){var e=0;return this.gridApi.forEachNode(function(t){t.group||e++}),e},t.prototype.init=function(){},t.prototype.destroy=function(){e.prototype.destroy.call(this)},__decorate$7([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$7([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(NameValueComp),__extends$b=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$6=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},FilteredRowsComp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$b(t,e),t.prototype.postConstruct=function(){if(this.setLabel("filteredRows","Filtered"),"clientSide"===this.gridApi.getModel().getType()){this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-filtered-row-count"),this.setDisplayed(!0);var e=this.onDataChanged.bind(this);this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_MODEL_UPDATED,e),e()}else console.warn("AG Grid: agFilteredRowCountComponent should only be used with the client side row model.")},t.prototype.onDataChanged=function(){var e=this.getTotalRowCountValue(),t=this.getFilteredRowCountValue(),n=this.localeService.getLocaleTextFunc(),r=n("thousandSeparator",","),o=n("decimalSeparator",".");this.setValue(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.formatNumberCommas(t,r,o)),this.setDisplayed(e!==t)},t.prototype.getTotalRowCountValue=function(){var e=0;return this.gridApi.forEachNode(function(t){return e+=1}),e},t.prototype.getFilteredRowCountValue=function(){var e=0;return this.gridApi.forEachNodeAfterFilter(function(t){t.group||(e+=1)}),e},t.prototype.init=function(){},t.prototype.destroy=function(){e.prototype.destroy.call(this)},__decorate$6([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$6([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(NameValueComp),__extends$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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$5=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},TotalRowsComp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$a(t,e),t.prototype.postConstruct=function(){this.setLabel("totalRows","Total Rows"),"clientSide"===this.gridApi.getModel().getType()?(this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-row-count"),this.setDisplayed(!0),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_MODEL_UPDATED,this.onDataChanged.bind(this)),this.onDataChanged()):console.warn("AG Grid: agTotalRowCountComponent should only be used with the client side row model.")},t.prototype.onDataChanged=function(){var e=this.localeService.getLocaleTextFunc(),t=e("thousandSeparator",","),n=e("decimalSeparator",".");this.setValue(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.formatNumberCommas(this.getRowCountValue(),t,n))},t.prototype.getRowCountValue=function(){var e=0;return this.gridApi.forEachLeafNode(function(t){return e+=1}),e},t.prototype.init=function(){},t.prototype.destroy=function(){e.prototype.destroy.call(this)},__decorate$5([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$5([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(NameValueComp),__extends$9=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$4=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SelectedRowsComp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$9(t,e),t.prototype.postConstruct=function(){if(this.isValidRowModel()){this.setLabel("selectedRows","Selected"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-selected-row-count"),this.onRowSelectionChanged();var e=this.onRowSelectionChanged.bind(this);this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_MODEL_UPDATED,e),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_SELECTION_CHANGED,e)}else console.warn("AG Grid: agSelectedRowCountComponent should only be used with the client and server side row model.")},t.prototype.isValidRowModel=function(){var e=this.gridApi.getModel().getType();return"clientSide"===e||"serverSide"===e},t.prototype.onRowSelectionChanged=function(){var e=this.selectionService.getSelectionCount();if(e<0)return this.setValue("?"),void this.setDisplayed(!0);var t=this.localeService.getLocaleTextFunc(),n=t("thousandSeparator",","),r=t("decimalSeparator",".");this.setValue(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.formatNumberCommas(e,n,r)),this.setDisplayed(e>0)},t.prototype.init=function(){},t.prototype.destroy=function(){e.prototype.destroy.call(this)},__decorate$4([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$4([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("selectionService")],t.prototype,"selectionService",void 0),__decorate$4([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(NameValueComp),__extends$8=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$3=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},AggregationComp=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return __extends$8(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.postConstruct=function(){this.isValidRowModel()?(this.avgAggregationComp.setLabel("avg","Average"),this.countAggregationComp.setLabel("count","Count"),this.minAggregationComp.setLabel("min","Min"),this.maxAggregationComp.setLabel("max","Max"),this.sumAggregationComp.setLabel("sum","Sum"),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_RANGE_SELECTION_CHANGED,this.onRangeSelectionChanged.bind(this)),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_MODEL_UPDATED,this.onRangeSelectionChanged.bind(this))):console.warn("AG Grid: agAggregationComponent should only be used with the client and server side row model.")},t.prototype.isValidRowModel=function(){var e=this.gridApi.getModel().getType();return"clientSide"===e||"serverSide"===e},t.prototype.init=function(){},t.prototype.setAggregationComponentValue=function(e,t,n){var r=this.getAggregationValueComponent(e);if(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(r)&&r){var o=this.localeService.getLocaleTextFunc(),i=o("thousandSeparator",","),a=o("decimalSeparator",".");r.setValue(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.formatNumberTwoDecimalPlacesAndCommas(t,i,a)),r.setDisplayed(n)}},t.prototype.getAggregationValueComponent=function(e){var t=e+"AggregationComp",n=null,r=this.gridOptionsService.get("statusBar"),o=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(r)&&r?r.statusPanels.find(function(e){return"agAggregationComponent"===e.statusPanel}):null;return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(o)&&o?(!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(o.statusPanelParams)||ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(o.statusPanelParams)&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(o.statusPanelParams.aggFuncs)&&ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.exists(o.statusPanelParams.aggFuncs.find(function(t){return t===e})))&&(n=this[t]):n=this[t],n},t.prototype.onRangeSelectionChanged=function(){var e=this,t=this.rangeService?this.rangeService.getCellRanges():void 0,n=0,r=0,o=0,i=null,a=null,s={};t&&!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missingOrEmpty(t)&&t.forEach(function(t){for(var l=e.rangeService.getRangeStartRow(t),c=e.rangeService.getRangeEndRow(t);!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(l)&&l&&!e.rowPositionUtils.before(c,l)&&l&&t.columns;)t.columns.forEach(function(t){if(null!==l){var c=e.cellPositionUtils.createId({rowPinned:l.rowPinned,column:t,rowIndex:l.rowIndex});if(!s[c]){s[c]=!0;var u=e.rowRenderer.getRowNode(l);if(!ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(u)){var d=e.valueService.getValue(t,u);ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(d)||""===d||("object"==typeof d&&"value"in d&&(d=d.value),"string"==typeof d&&(d=Number(d)),"number"!=typeof d||isNaN(d)||(n+=d,(null===a||d>a)&&(a=d),(null===i||d<i)&&(i=d),o++),r++)}}}}),l=e.cellNavigationService.getRowBelow(l)});var l=r>1,c=o>1;this.setAggregationComponentValue("count",r,l),this.setAggregationComponentValue("sum",n,c),this.setAggregationComponentValue("min",i,c),this.setAggregationComponentValue("max",a,c),this.setAggregationComponentValue("avg",n/o,c)},t.TEMPLATE='<div class="ag-status-panel ag-status-panel-aggregations">\n            <ag-name-value ref="avgAggregationComp"></ag-name-value>\n            <ag-name-value ref="countAggregationComp"></ag-name-value>\n            <ag-name-value ref="minAggregationComp"></ag-name-value>\n            <ag-name-value ref="maxAggregationComp"></ag-name-value>\n            <ag-name-value ref="sumAggregationComp"></ag-name-value>\n        </div>',__decorate$3([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Optional)("rangeService")],t.prototype,"rangeService",void 0),__decorate$3([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("valueService")],t.prototype,"valueService",void 0),__decorate$3([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("cellNavigationService")],t.prototype,"cellNavigationService",void 0),__decorate$3([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowRenderer")],t.prototype,"rowRenderer",void 0),__decorate$3([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("gridApi")],t.prototype,"gridApi",void 0),__decorate$3([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),__decorate$3([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),__decorate$3([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("sumAggregationComp")],t.prototype,"sumAggregationComp",void 0),__decorate$3([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("countAggregationComp")],t.prototype,"countAggregationComp",void 0),__decorate$3([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("minAggregationComp")],t.prototype,"minAggregationComp",void 0),__decorate$3([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("maxAggregationComp")],t.prototype,"maxAggregationComp",void 0),__decorate$3([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("avgAggregationComp")],t.prototype,"avgAggregationComp",void 0),__decorate$3([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),VERSION$2="29.3.3",StatusBarModule={version:VERSION$2,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.StatusBarModule,beans:[StatusBarService],agStackComponents:[{componentName:"AgStatusBar",componentClass:StatusBar},{componentName:"AgNameValue",componentClass:NameValueComp}],userComponents:[{componentName:"agAggregationComponent",componentClass:AggregationComp},{componentName:"agSelectedRowCountComponent",componentClass:SelectedRowsComp},{componentName:"agTotalRowCountComponent",componentClass:TotalRowsComp},{componentName:"agFilteredRowCountComponent",componentClass:FilteredRowsComp},{componentName:"agTotalAndFilteredRowCountComponent",componentClass:TotalAndFilteredRowsComp}],dependantModules:[EnterpriseCoreModule]},VERSION$1="29.3.3",__extends$7=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate$2=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},DEFAULT_VIEWPORT_ROW_MODEL_PAGE_SIZE=5,DEFAULT_VIEWPORT_ROW_MODEL_BUFFER_SIZE=5,ViewportRowModel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.firstRow=-1,t.lastRow=-1,t.rowCount=-1,t.rowNodesByIndex={},t}return __extends$7(t,e),t.prototype.ensureRowHeightsValid=function(e,t,n,r){return!1},t.prototype.init=function(){this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addManagedListener(this.eventService,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_VIEWPORT_CHANGED,this.onViewportChanged.bind(this))},t.prototype.start=function(){this.gridOptionsService.get("viewportDatasource")&&this.setViewportDatasource(this.gridOptionsService.get("viewportDatasource"))},t.prototype.isLastRowIndexKnown=function(){return!0},t.prototype.destroyDatasource=function(){this.viewportDatasource&&(this.viewportDatasource.destroy&&this.viewportDatasource.destroy(),this.rowRenderer.datasourceChanged(),this.firstRow=-1,this.lastRow=-1)},t.prototype.getViewportRowModelPageSize=function(){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.oneOrGreater(this.gridOptionsService.getNum("viewportRowModelPageSize"),DEFAULT_VIEWPORT_ROW_MODEL_PAGE_SIZE)},t.prototype.getViewportRowModelBufferSize=function(){return ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.zeroOrGreater(this.gridOptionsService.getNum("viewportRowModelBufferSize"),DEFAULT_VIEWPORT_ROW_MODEL_BUFFER_SIZE)},t.prototype.calculateFirstRow=function(e){var t=this.getViewportRowModelBufferSize(),n=this.getViewportRowModelPageSize(),r=e-t;return r<0?0:Math.floor(r/n)*n},t.prototype.calculateLastRow=function(e){if(-1===e)return e;var t=this.getViewportRowModelBufferSize(),n=this.getViewportRowModelPageSize(),r=e+t,o=Math.ceil(r/n)*n,i=this.rowCount-1;return Math.min(o,i)},t.prototype.onViewportChanged=function(e){var t=this.calculateFirstRow(e.firstRow),n=this.calculateLastRow(e.lastRow);this.firstRow===t&&this.lastRow===n||(this.firstRow=t,this.lastRow=n,this.purgeRowsNotInViewport(),this.viewportDatasource&&this.viewportDatasource.setViewportRange(this.firstRow,this.lastRow))},t.prototype.purgeRowsNotInViewport=function(){var e=this;Object.keys(this.rowNodesByIndex).forEach(function(t){var n=parseInt(t,10);if(n<e.firstRow||n>e.lastRow){if(e.isRowFocused(n))return;delete e.rowNodesByIndex[n]}})},t.prototype.isRowFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();return!!t&&null==t.rowPinned&&t.rowIndex===e},t.prototype.setViewportDatasource=function(e){this.destroyDatasource(),this.viewportDatasource=e,this.rowCount=-1,e.init?e.init({setRowCount:this.setRowCount.bind(this),setRowData:this.setRowData.bind(this),getRow:this.getRow.bind(this)}):console.warn("AG Grid: viewport is missing init method.")},t.prototype.getType=function(){return"viewport"},t.prototype.getRow=function(e){return this.rowNodesByIndex[e]||(this.rowNodesByIndex[e]=this.createBlankRowNode(e)),this.rowNodesByIndex[e]},t.prototype.getRowNode=function(e){var t;return this.forEachNode(function(n){n.id===e&&(t=n)}),t},t.prototype.getRowCount=function(){return-1===this.rowCount?0:this.rowCount},t.prototype.getRowIndexAtPixel=function(e){return 0!==this.rowHeight?Math.floor(e/this.rowHeight):0},t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.isEmpty=function(){return this.rowCount>0},t.prototype.isRowsToRender=function(){return this.rowCount>0},t.prototype.getNodesInRangeForSelection=function(e,t){var n=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(e)?0:e.rowIndex,r=t.rowIndex,o=n<this.firstRow||n>this.lastRow,i=r<this.firstRow||r>this.lastRow;if(o||i)return[];for(var a=[],s=n<=r?r:n,l=n<=r?n:r;l<=s;l++)a.push(this.rowNodesByIndex[l]);return a},t.prototype.forEachNode=function(e){var t=this,n=0;Object.keys(this.rowNodesByIndex).forEach(function(r){var o=parseInt(r,10),i=t.rowNodesByIndex[o];e(i,n),n++})},t.prototype.setRowData=function(e){var t=this;ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.iterateObject(e,function(e,n){var r=parseInt(e,10);if(r>=t.firstRow&&r<=t.lastRow){var o=t.rowNodesByIndex[r];ag_grid_community__WEBPACK_IMPORTED_MODULE_0__._.missing(o)&&(o=t.createBlankRowNode(r),t.rowNodesByIndex[r]=o),o.setDataAndId(n,r.toString())}})},t.prototype.createBlankRowNode=function(e){var t=new ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RowNode(this.beans);return t.setRowHeight(this.rowHeight),t.setRowTop(this.rowHeight*e),t.setRowIndex(e),t},t.prototype.setRowCount=function(e,t){if(void 0===t&&(t=!1),e!==this.rowCount){this.rowCount=e;var n={type:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Events.EVENT_MODEL_UPDATED,newData:!1,newPage:!1,keepRenderedRows:t,animate:!1};this.eventService.dispatchEvent(n)}},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},__decorate$2([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("rowRenderer")],t.prototype,"rowRenderer",void 0),__decorate$2([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("focusService")],t.prototype,"focusService",void 0),__decorate$2([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("beans")],t.prototype,"beans",void 0),__decorate$2([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"init",null),__decorate$2([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreDestroy],t.prototype,"destroyDatasource",null),__decorate$2([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("rowModel")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),ViewportRowModelModule={version:VERSION$1,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.ViewportRowModelModule,rowModel:"viewport",beans:[ViewportRowModel],dependantModules:[EnterpriseCoreModule]},defaultTooltipCss="\n.ag-sparkline-tooltip-wrapper {\n    position: absolute;\n    user-select: none;\n    pointer-events: none;\n}\n\n.ag-sparkline-tooltip {\n    position: relative;\n    font: 12px arial,sans-serif;\n    border-radius: 2px;\n    box-shadow: 0 1px 3px rgb(0 0 0 / 20%), 0 1px 1px rgb(0 0 0 / 14%);\n    line-height: 1.7em;\n    overflow: hidden;\n    white-space: nowrap;\n    z-index: 99999;\n    background-color: rgb(255, 255, 255);\n    color: rgba(0,0,0, 0.67);\n}\n\n.ag-sparkline-tooltip-content {\n    padding: 0 7px;\n    opacity: 1;\n}\n\n.ag-sparkline-tooltip-title {\n    padding-left: 7px;\n    opacity: 1;\n}\n\n.ag-sparkline-tooltip-wrapper-hidden {\n    top: -10000px !important;\n}\n\n.ag-sparkline-wrapper {\n    box-sizing: border-box;\n    overflow: hidden;\n}\n",__values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},extent$3=extent$4,isNumber$3=isNumber$4,isString=isString$1,isStringObject=isStringObject$1,isDate=isDate$1,createId=createId$1,Padding=Padding$1,LinearScale=LinearScale$1,BandScale$4=BandScale$5,TimeScale=TimeScale$1,ZINDICIES;!function(e){e[e.SERIES_FILL_ZINDEX=50]="SERIES_FILL_ZINDEX",e[e.AXIS_LINE_ZINDEX=500]="AXIS_LINE_ZINDEX",e[e.SERIES_STROKE_ZINDEX=1e3]="SERIES_STROKE_ZINDEX",e[e.SERIES_LABEL_ZINDEX=1500]="SERIES_LABEL_ZINDEX",e[e.CROSSHAIR_ZINDEX=2e3]="CROSSHAIR_ZINDEX",e[e.SERIES_MARKERS_ZINDEX=2500]="SERIES_MARKERS_ZINDEX"}(ZINDICIES||(ZINDICIES={}));var SparklineAxis=function(){this.type="category",this.stroke="rgb(204, 214, 235)",this.strokeWidth=1},Sparkline=function(){function e(){this.id=createId(this),this.seriesRect={x:0,y:0,width:0,height:0},this._context=void 0,this._container=void 0,this._data=void 0,this.padding=new Padding(3),this.xKey="x",this.yKey="y",this.dataType=void 0,this.xData=[],this.yData=[],this.min=void 0,this.max=void 0,this.yScale=new LinearScale,this.axis=new SparklineAxis,this.highlightStyle={size:6,fill:"yellow",stroke:"silver",strokeWidth:1},this._width=100,this._height=100,this.smallestInterval=void 0,this.layoutId=0,this.defaultDateFormatter=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),this._onMouseMove=this.onMouseMove.bind(this),this._onMouseOut=this.onMouseOut.bind(this);var t=new Group;this.rootGroup=t;var n=document.createElement("div");n.setAttribute("class","ag-sparkline-wrapper");var r=new Scene({document});if(this.scene=r,this.canvasElement=r.canvas.element,r.root=t,r.container=n,r.resize(this.width,this.height),this.seriesRect.width=this.width,this.seriesRect.height=this.height,-1===e.tooltipDocuments.indexOf(document)){var o=document.createElement("style");o.innerHTML=defaultTooltipCss,document.head.insertBefore(o,document.head.querySelector("style")),e.tooltipDocuments.push(document)}this.setupDomEventListeners(this.scene.canvas.element)}return Object.defineProperty(e.prototype,"context",{get:function(){return this._context},set:function(e){this._context!==e&&(this._context=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this._container},set:function(e){if(this._container!==e){var t=this.canvasElement.parentNode;null!=t&&t.removeChild(this.canvasElement),e&&e.appendChild(this.canvasElement),this._container=e}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data!==e&&(this._data=e,this.processData(),this.mouseMoveEvent&&this.highlightedDatum&&this.updateHitPoint(this.mouseMoveEvent))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(e){this._width!==e&&(this._width=e,this.scene.resize(e,this.height),this.scheduleLayout())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){this._height!==e&&(this._height=e,this.scene.resize(this.width,e),this.scheduleLayout())},enumerable:!1,configurable:!0}),e.prototype.update=function(){},e.prototype.updateYScale=function(){this.updateYScaleRange(),this.updateYScaleDomain()},e.prototype.updateYScaleDomain=function(){},e.prototype.updateYScaleRange=function(){var e=this.yScale,t=this.seriesRect;e.range=[t.height,0]},e.prototype.updateXScale=function(){var e=this.axis.type;this.xScale=this.getXScale(e),this.updateXScaleRange(),this.updateXScaleDomain()},e.prototype.updateXScaleRange=function(){this.xScale.range=[0,this.seriesRect.width]},e.prototype.updateXScaleDomain=function(){var e,t=this.xData,n=this.xScale;(n instanceof LinearScale||n instanceof TimeScale)&&(e=extent$3(t)),this.xScale.domain=e?e.slice():t},e.prototype.getXScale=function(e){switch(void 0===e&&(e="category"),e){case"number":return new LinearScale;case"time":return new TimeScale;default:return new BandScale$4}},e.prototype.updateAxisLine=function(){},e.prototype.updateAxes=function(){this.updateYScale(),this.updateXScale(),this.updateAxisLine()},e.prototype.updateCrosshairs=function(){this.updateXCrosshairLine(),this.updateYCrosshairLine()},e.prototype.generateNodeData=function(){return[]},e.prototype.getNodeData=function(){return[]},e.prototype.updateNodes=function(){},e.prototype.updateXCrosshairLine=function(){},e.prototype.updateYCrosshairLine=function(){},e.prototype.highlightDatum=function(e){this.updateNodes()},e.prototype.dehighlightDatum=function(){this.highlightedDatum=void 0,this.updateNodes(),this.updateCrosshairs()},e.prototype.onMouseMove=function(e){this.mouseMoveEvent=e,this.updateHitPoint(e)},e.prototype.updateHitPoint=function(e){var t,n,r,o=this.pickClosestSeriesNodeDatum(e.offsetX,e.offsetY);if(o){var i=this.highlightedDatum;this.highlightedDatum=o,(this.highlightedDatum&&!i||this.highlightedDatum&&i&&this.highlightedDatum!==i)&&(this.highlightDatum(o),this.updateCrosshairs(),this.scene.render()),(null===(r=null===(n=null===(t=this.processedOptions)||void 0===t?void 0:t.tooltip)||void 0===n?void 0:n.enabled)||void 0===r||r)&&this.handleTooltip(e,o)}},e.prototype.onMouseOut=function(e){this.dehighlightDatum(),this.tooltip.toggle(!1),this.scene.render()},e.prototype.processData=function(){var e=this,t=this,n=t.data,r=t.yData,o=t.xData;if(n&&!this.invalidData(this.data)){r.length=0,o.length=0;var i=n.length,a=this.getDataType(n);this.dataType=a;var s,l=this.axis.type,c="number"!==l&&"time"!==l?"category":l,u="number"===c||"time"===c,d=function(t,n){null==e.smallestInterval&&(e.smallestInterval={x:1/0,y:1/0});var r=e.smallestInterval.x,o=Math.abs(t-n);o>0&&o<r&&(e.smallestInterval.x=o)};if("number"===a)for(var p=0;p<i;p++){var h=p,f=n[p],g=this.getDatum(h,c),m=this.getDatum(f,"number");u&&d(g,s),o.push(g),r.push(m),s=g}else if("array"===a)for(p=0;p<i;p++){var v=n[p];if(Array.isArray(v)){if(h=v[0],f=v[1],g=this.getDatum(h,c),m=this.getDatum(f,"number"),null==g)continue;u&&d(g,s),o.push(g),r.push(m),s=g}}else if("object"===a){var y=this.yKey,A=this.xKey;for(p=0;p<i;p++)if("object"==typeof(v=n[p])&&!Array.isArray(v)){if(h=v[A],f=v[y],g=this.getDatum(h,c),m=this.getDatum(f,"number"),null==g)continue;u&&d(g,s),o.push(g),r.push(m),s=g}}this.updateAxes(),this.update(),this.scene.render()}},e.prototype.getDataType=function(e){var t,n;try{for(var r=__values(e),o=r.next();!o.done;o=r.next()){var i=o.value;if(null!=i){if(isNumber$3(i))return"number";if(Array.isArray(i))return"array";if("object"==typeof i)return"object"}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.getDatum=function(e,t){if("number"===t&&isNumber$3(e)||"time"===t&&(isNumber$3(e)||isDate(e)))return e;if("category"===t){if(isString(e)||isDate(e)||isNumber$3(e))return{toString:function(){return String(e)}};if(isStringObject(e))return e}},Object.defineProperty(e.prototype,"layoutScheduled",{get:function(){return!!this.layoutId},enumerable:!1,configurable:!0}),e.prototype.scheduleLayout=function(){var e=this;this.layoutId&&cancelAnimationFrame(this.layoutId),this.layoutId=requestAnimationFrame(function(){e.setSparklineDimensions(),e.invalidData(e.data)||(e.updateXScaleRange(),e.updateYScaleRange(),e.updateAxisLine(),e.update(),e.scene.render(),e.layoutId=0)})},e.prototype.setSparklineDimensions=function(){var e=this,t=e.width,n=e.height,r=e.padding,o=e.seriesRect,i=e.rootGroup,a=t-r.left-r.right,s=n-r.top-r.bottom;o.width=a,o.height=s,o.x=r.left,o.y=r.top,i.translationX=o.x,i.translationY=o.y},e.prototype.pickClosestSeriesNodeDatum=function(e,t){for(var n,r=1/0,o=this.rootGroup.transformPoint(e,t),i=this.getNodeData(),a=0;a<i.length;a++){var s=i[a];if(!s.point)return;var l=this.getDistance(o,s.point);l<=r&&(r=l,n=s)}return n},e.prototype.getDistance=function(e,t){return Math.abs(e.x-t.x)},e.prototype.handleTooltip=function(e,t){var n,r,o=t.seriesDatum,i=this.canvasElement,a=e.clientX,s=e.clientY,l=null===(n=this.processedOptions)||void 0===n?void 0:n.tooltip,c={pageX:a,pageY:s,position:{xOffset:null==l?void 0:l.xOffset,yOffset:null==l?void 0:l.yOffset},container:null==l?void 0:l.container};null==c.container&&(c.container=i);var u=o.y,d=o.x,p=null===(r=null==l?void 0:l.enabled)||void 0===r||r,h=null==l?void 0:l.renderer;if(h){var f=h({context:this.context,datum:o,yValue:u,xValue:d});p="string"!=typeof f&&void 0!==f.enabled?f.enabled:p}var g=p&&void 0!==o.y&&this.getTooltipHtml(t);g&&this.tooltip.show(c,g)},e.prototype.formatNumericDatum=function(e){return String(Math.round(10*e)/10)},e.prototype.formatDatum=function(e){var t=this.axis.type||"category";return"number"===t&&"number"==typeof e?this.formatNumericDatum(e):"time"===t&&(e instanceof Date||isNumber$3(e))?this.defaultDateFormatter.format(e):String(e)},e.prototype.setupDomEventListeners=function(e){e.addEventListener("mousemove",this._onMouseMove),e.addEventListener("mouseout",this._onMouseOut)},e.prototype.cleanupDomEventListeners=function(e){e.removeEventListener("mousemove",this._onMouseMove),e.removeEventListener("mouseout",this._onMouseOut)},e.prototype.invalidData=function(e){return!e||!Array.isArray(e)||0===e.length},e.prototype.destroy=function(){this.scene.container=void 0,this.container=void 0,this.cleanupDomEventListeners(this.scene.canvas.element)},e.tooltipDocuments=[],e}();function toTooltipHtml(e,t){if("string"==typeof e)return e;t=t||{};var n,r,o=e.content,i=void 0===o?t.content||"":o,a=e.title,s=void 0===a?t.title||void 0:a,l=e.color,c=void 0===l?t.color:l,u=e.backgroundColor,d=void 0===u?t.backgroundColor:u,p=e.opacity,h=void 0===p?t.opacity||1:p;c?(n=s?'<span class="'+SparklineTooltip.class+'-title"; style="color: '+c+'">'+s+"</span>":"",r='<span class="'+SparklineTooltip.class+'-content" style="color: '+c+'">'+i+"</span>"):(n=s?'<span class="'+SparklineTooltip.class+'-title">'+s+"</span>":"",r='<span class="'+SparklineTooltip.class+'-content">'+i+"</span>");var f="opacity: "+h;return d&&(f+="; background-color: "+d.toLowerCase()),'<div class="'+SparklineTooltip.class+'" style="'+f+'">\n                '+n+"\n                "+r+"\n            </div>"}var SparklineTooltip=function(){function e(){this.element=document.createElement("div"),document.body.appendChild(this.element)}return e.prototype.isVisible=function(){var t=this.element;if(t.classList)return!t.classList.contains(e.class+"-wrapper-hidden");var n=t.getAttribute("class");return!!n&&n.split(" ").indexOf(e.class+"-wrapper-hidden")<0},e.prototype.updateClass=function(t){var n=[e.class+"-wrapper"];!0!==t&&n.push(e.class+"-wrapper-hidden"),this.element.setAttribute("class",n.join(" "))},e.prototype.show=function(e,t){var n,r,o,i;this.toggle(!1);var a=this.element;if(void 0!==t)a.innerHTML=t;else if(!a.innerHTML)return;var s=null!==(r=null===(n=e.position)||void 0===n?void 0:n.xOffset)&&void 0!==r?r:10,l=null!==(i=null===(o=e.position)||void 0===o?void 0:o.yOffset)&&void 0!==i?i:0,c=e.pageX+s,u=e.pageY+l,d=a.getBoundingClientRect(),p=window.innerWidth-d.width;if(e.container){var h=e.container.getBoundingClientRect();p=h.left+(h.width-d.width)}c>p&&(c=e.pageX-a.clientWidth-s),"undefined"!=typeof scrollX&&(c+=scrollX),"undefined"!=typeof scrollY&&(u+=scrollY),a.style.left=Math.round(c)+"px",a.style.top=Math.round(u)+"px",this.toggle(!0)},e.prototype.toggle=function(e){this.updateClass(e)},e.prototype.destroy=function(){var e=this.element.parentNode;e&&e.removeChild(this.element)},e.class="ag-sparkline-tooltip",e}();function getMarker(e){switch(e){case"circle":default:return Circle;case"square":return Square;case"diamond":return Diamond}}function getLineDash(e,t){void 0===t&&(t="solid");var n={solid:[],dash:[4,3],dot:[1,3],dashDot:[4,3,1,3],dashDotDot:[4,3,1,3,1,3],shortDot:[1,1],shortDash:[3,1],shortDashDot:[3,1,1,1],shortDashDotDot:[3,1,1,1,1,1],longDash:[8,3],longDashDot:[8,3,1,3],longDashDotDot:[8,3,1,3,1,3]},r={solid:[],dash:[3,3],dot:[0,3],dashDot:[3,3,0,3],dashDotDot:[3,3,0,3,0,3],shortDot:[0,2],shortDash:[2,2],shortDashDot:[2,2,0,2],shortDashDotDot:[2,2,0,2,0,2],longDash:[7,3],longDashDot:[7,3,0,3],longDashDotDot:[7,3,0,3,0,3]};return"round"===e||"square"===e?null==r[t]?(console.warn("'"+t+"' is not a valid 'lineDash' option."),r.solid):r[t]:null==n[t]?(console.warn("'"+t+"' is not a valid 'lineDash' option."),n.solid):n[t]}var __extends$6=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),extent$2=extent$4,BandScale$3=BandScale$5,SparklineMarker$1=function(){this.enabled=!0,this.shape="circle",this.size=0,this.fill="rgb(124, 181, 236)",this.stroke="rgb(124, 181, 236)",this.strokeWidth=1,this.formatter=void 0},SparklineLine$1=function(){this.stroke="rgb(124, 181, 236)",this.strokeWidth=1},SparklineCrosshairs$1=function(){this.xLine={enabled:!0,stroke:"rgba(0,0,0, 0.54)",strokeWidth:1,lineDash:"solid",lineCap:void 0},this.yLine={enabled:!1,stroke:"rgba(0,0,0, 0.54)",strokeWidth:1,lineDash:"solid",lineCap:void 0}},AreaSparkline=function(e){function t(){var t=e.call(this)||this;return t.fill="rgba(124, 181, 236, 0.25)",t.strokePath=new Path,t.fillPath=new Path,t.xCrosshairLine=new Line,t.yCrosshairLine=new Line,t.areaSparklineGroup=new Group,t.xAxisLine=new Line,t.markers=new Group,t.markerSelection=Selection.select(t.markers,function(){return t.markerFactory()}),t.markerSelectionData=[],t.marker=new SparklineMarker$1,t.line=new SparklineLine$1,t.crosshairs=new SparklineCrosshairs$1,t.rootGroup.append(t.areaSparklineGroup),t.xAxisLine.zIndex=ZINDICIES.AXIS_LINE_ZINDEX,t.fillPath.zIndex=ZINDICIES.SERIES_FILL_ZINDEX,t.strokePath.zIndex=ZINDICIES.SERIES_STROKE_ZINDEX,t.xCrosshairLine.zIndex=ZINDICIES.CROSSHAIR_ZINDEX,t.yCrosshairLine.zIndex=ZINDICIES.CROSSHAIR_ZINDEX,t.markers.zIndex=ZINDICIES.SERIES_MARKERS_ZINDEX,t.areaSparklineGroup.append([t.fillPath,t.xAxisLine,t.strokePath,t.xCrosshairLine,t.yCrosshairLine,t.markers]),t}return __extends$6(t,e),t.prototype.markerFactory=function(){return new(getMarker(this.marker.shape))},t.prototype.getNodeData=function(){return this.markerSelectionData},t.prototype.update=function(){var e=this.generateNodeData();if(e){var t=e.nodeData,n=e.fillData,r=e.strokeData;this.markerSelectionData=t,this.updateSelection(t),this.updateNodes(),this.updateStroke(r),this.updateFill(n)}},t.prototype.updateYScaleDomain=function(){var e=this.yData,t=this.yScale,n=extent$2(e),r=0,o=1;void 0!==n&&(r=this.min=n[0],o=this.max=n[1]),r=r<0?r:0,o=o<0?0:o,t.domain=[r,o]},t.prototype.generateNodeData=function(){var e=this,t=e.data,n=e.yData,r=e.xData,o=e.xScale,i=e.yScale;if(t){for(var a,s,l,c,u=!(o instanceof BandScale$3),d=u?0:o.bandwidth/2,p=n.length,h=[],f=[],g=[],m=i.convert(0),v=0;v<p;v++){var y=n[v],A=r[v],w=o.convert(u?o.toDomain(A):A)+d,b=void 0===y?NaN:i.convert(y);v+1<p&&(c=o.convert(u?o.toDomain(r[v+1]):r[v+1])+d),g.push({seriesDatum:{x:A,y},point:{x:w,y:b}}),void 0===y&&void 0!==l?(f.push({seriesDatum:void 0,point:{x:l,y:m}}),void 0!==c&&f.push({seriesDatum:void 0,point:{x:c,y:m}})):void 0!==y&&(f.push({seriesDatum:{x:A,y},point:{x:w,y:b}}),h.push({seriesDatum:{x:A,y},point:{x:w,y:b}}),a=void 0!==a?a:w,s=w),l=w}return f.push({seriesDatum:void 0,point:{x:s,y:m}},{seriesDatum:void 0,point:{x:a,y:m}}),{nodeData:h,fillData:f,strokeData:g}}},t.prototype.updateAxisLine=function(){var e=this,t=e.xScale,n=e.yScale,r=e.axis,o=e.xAxisLine;o.x1=t.range[0],o.x2=t.range[1],o.y1=o.y2=0,o.stroke=r.stroke,o.strokeWidth=r.strokeWidth;var i=n.convert(0);o.translationY=i},t.prototype.updateSelection=function(e){this.markerSelection.update(e)},t.prototype.updateNodes=function(){var e=this,t=this,n=t.highlightedDatum,r=t.highlightStyle,o=t.marker,i=r.size,a=r.fill,s=r.stroke,l=r.strokeWidth,c=o.formatter;this.markerSelection.each(function(t,r,u){var d=r.point,p=r.seriesDatum;if(d){var h,f=r===n,g=f&&void 0!==a?a:o.fill,m=f&&void 0!==s?s:o.stroke,v=f&&void 0!==l?l:o.strokeWidth,y=f&&void 0!==i?i:o.size;if(c){var A=0===u,w=u===e.markerSelectionData.length-1,b=p.y===e.min,_=p.y===e.max;h=c({datum:r,xValue:p.x,yValue:p.y,min:b,max:_,first:A,last:w,fill:g,stroke:m,strokeWidth:v,size:y,highlighted:f})}t.size=h&&null!=h.size?h.size:y,t.fill=h&&null!=h.fill?h.fill:g,t.stroke=h&&null!=h.stroke?h.stroke:m,t.strokeWidth=h&&null!=h.strokeWidth?h.strokeWidth:v,t.translationX=d.x,t.translationY=d.y,t.visible=h&&null!=h.enabled?h.enabled:o.enabled&&t.size>0}})},t.prototype.updateStroke=function(e){var t=this,n=t.strokePath,r=t.yData,o=t.line;if(!(r.length<2)){var i=n.path,a=e.length,s=!0;i.clear();for(var l=0;l<a;l++){var c=e[l],u=c.point,d=c.seriesDatum,p=u.x,h=u.y;null==d.y?s=!0:s?(i.moveTo(p,h),s=!1):i.lineTo(p,h)}n.lineJoin=n.lineCap="round",n.fill=void 0,n.stroke=o.stroke,n.strokeWidth=o.strokeWidth}},t.prototype.updateFill=function(e){var t=this,n=t.fillPath,r=t.yData,o=t.fill,i=n.path,a=e.length;if(i.clear(),!(r.length<2)){for(var s=0;s<a;s++){var l=e[s].point,c=l.x,u=l.y;s>0?i.lineTo(c,u):i.moveTo(c,u)}i.closePath(),n.lineJoin="round",n.stroke=void 0,n.fill=o}},t.prototype.updateXCrosshairLine=function(){var e=this,t=e.yScale,n=e.xCrosshairLine,r=e.highlightedDatum,o=e.crosshairs.xLine;if(o.enabled&&null!=r){n.y1=t.range[0],n.y2=t.range[1],n.x1=n.x2=0,n.stroke=o.stroke,n.strokeWidth=o.strokeWidth||1,n.lineCap="round"===o.lineCap||"square"===o.lineCap?o.lineCap:void 0;var i=o.lineDash;n.lineDash=Array.isArray(i)?i:getLineDash(n.lineCap,o.lineDash),n.translationX=r.point.x}else n.strokeWidth=0},t.prototype.updateYCrosshairLine=function(){var e=this,t=e.xScale,n=e.yCrosshairLine,r=e.highlightedDatum,o=e.crosshairs.yLine;if(o.enabled&&null!=r){n.x1=t.range[0],n.x2=t.range[1],n.y1=n.y2=0,n.stroke=o.stroke,n.strokeWidth=o.strokeWidth||1,n.lineCap="round"===o.lineCap||"square"===o.lineCap?o.lineCap:void 0;var i=o.lineDash;n.lineDash=Array.isArray(i)?i:getLineDash(n.lineCap,o.lineDash),n.translationY=r.point.y}else n.strokeWidth=0},t.prototype.getTooltipHtml=function(e){var t,n,r=this.dataType,o=e.seriesDatum,i=o.y,a=o.x,s={content:this.formatNumericDatum(i),title:"array"===r||"object"===r?this.formatDatum(a):void 0},l=null===(n=null===(t=this.processedOptions)||void 0===t?void 0:t.tooltip)||void 0===n?void 0:n.renderer;return l?toTooltipHtml(l({context:this.context,datum:o,yValue:i,xValue:a}),s):toTooltipHtml(s)},t.className="AreaSparkline",t}(Sparkline),__extends$5=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),extent$1=extent$4,BandScale$2=BandScale$5,SparklineMarker=function(){this.enabled=!0,this.shape="circle",this.size=0,this.fill="rgb(124, 181, 236)",this.stroke="rgb(124, 181, 236)",this.strokeWidth=1,this.formatter=void 0},SparklineLine=function(){this.stroke="rgb(124, 181, 236)",this.strokeWidth=1},SparklineCrosshairs=function(){this.xLine={enabled:!0,stroke:"rgba(0,0,0, 0.54)",strokeWidth:1,lineDash:"solid",lineCap:void 0},this.yLine={enabled:!1,stroke:"rgba(0,0,0, 0.54)",strokeWidth:1,lineDash:"solid",lineCap:void 0}},LineSparkline=function(e){function t(){var t=e.call(this)||this;return t.linePath=new Path,t.xCrosshairLine=new Line,t.yCrosshairLine=new Line,t.lineSparklineGroup=new Group,t.markers=new Group,t.markerSelection=Selection.select(t.markers,function(){return t.markerFactory()}),t.markerSelectionData=[],t.marker=new SparklineMarker,t.line=new SparklineLine,t.crosshairs=new SparklineCrosshairs,t.rootGroup.append(t.lineSparklineGroup),t.linePath.zIndex=ZINDICIES.SERIES_STROKE_ZINDEX,t.xCrosshairLine.zIndex=ZINDICIES.CROSSHAIR_ZINDEX,t.yCrosshairLine.zIndex=ZINDICIES.CROSSHAIR_ZINDEX,t.markers.zIndex=ZINDICIES.SERIES_MARKERS_ZINDEX,t.lineSparklineGroup.append([t.linePath,t.xCrosshairLine,t.yCrosshairLine,t.markers]),t}return __extends$5(t,e),t.prototype.getNodeData=function(){return this.markerSelectionData},t.prototype.markerFactory=function(){return new(getMarker(this.marker.shape))},t.prototype.onMarkerShapeChange=function(){this.markerSelection=this.markerSelection.clear(),this.scheduleLayout()},t.prototype.update=function(){var e=this.generateNodeData();e&&(this.markerSelectionData=e,this.updateSelection(e),this.updateNodes(),this.updateLine())},t.prototype.updateYScaleDomain=function(){var e=this.yData,t=this.yScale,n=extent$1(e),r=0,o=1;if(void 0!==n&&(r=this.min=n[0],o=this.max=n[1]),r===o){var i=Math.abs(.01*r);r-=i,o+=i}t.domain=[r,o]},t.prototype.generateNodeData=function(){var e=this,t=e.data,n=e.yData,r=e.xData,o=e.xScale,i=e.yScale;if(t){for(var a=!(o instanceof BandScale$2),s=a?0:o.bandwidth/2,l=[],c=0;c<n.length;c++){var u=n[c],d=r[c];if(null!=u){var p=o.convert(a?o.toDomain(d):d)+s,h=void 0===u?NaN:i.convert(u);l.push({seriesDatum:{x:d,y:u},point:{x:p,y:h}})}}return l}},t.prototype.updateSelection=function(e){this.markerSelection.update(e)},t.prototype.updateNodes=function(){var e=this,t=this,n=t.highlightedDatum,r=t.highlightStyle,o=t.marker,i=r.size,a=r.fill,s=r.stroke,l=r.strokeWidth,c=o.formatter;this.markerSelection.each(function(t,r,u){var d,p=r===n,h=p&&void 0!==a?a:o.fill,f=p&&void 0!==s?s:o.stroke,g=p&&void 0!==l?l:o.strokeWidth,m=p&&void 0!==i?i:o.size,v=r.seriesDatum,y=r.point;if(c){var A=0===u,w=u===e.markerSelectionData.length-1,b=v.y===e.min,_=v.y===e.max;d=c({datum:r,xValue:v.x,yValue:v.y,min:b,max:_,first:A,last:w,fill:h,stroke:f,strokeWidth:g,size:m,highlighted:p})}t.size=d&&null!=d.size?d.size:m,t.fill=d&&null!=d.fill?d.fill:h,t.stroke=d&&null!=d.stroke?d.stroke:f,t.strokeWidth=d&&null!=d.strokeWidth?d.strokeWidth:g,t.translationX=y.x,t.translationY=y.y,t.visible=d&&null!=d.enabled?d.enabled:o.enabled&&t.size>0})},t.prototype.updateLine=function(){var e=this,t=e.linePath,n=e.yData,r=e.xData,o=e.xScale,i=e.yScale,a=e.line;if(!(n.length<2)){var s=!(o instanceof BandScale$2),l=t.path,c=n.length,u=s?0:o.bandwidth/2,d=!0;l.clear();for(var p=0;p<c;p++){var h=r[p],f=n[p],g=o.convert(s?o.toDomain(h):h)+u,m=void 0===f?NaN:i.convert(f);null==f?d=!0:d?(l.moveTo(g,m),d=!1):l.lineTo(g,m)}t.fill=void 0,t.stroke=a.stroke,t.strokeWidth=a.strokeWidth}},t.prototype.updateXCrosshairLine=function(){var e=this,t=e.yScale,n=e.xCrosshairLine,r=e.highlightedDatum,o=e.crosshairs.xLine;if(o.enabled&&null!=r){n.y1=t.range[0],n.y2=t.range[1],n.x1=n.x2=0,n.stroke=o.stroke,n.strokeWidth=o.strokeWidth||1,n.lineCap="round"===o.lineCap||"square"===o.lineCap?o.lineCap:void 0;var i=o.lineDash;n.lineDash=Array.isArray(i)?i:getLineDash(n.lineCap,o.lineDash),n.translationX=r.point.x}else n.strokeWidth=0},t.prototype.updateYCrosshairLine=function(){var e=this,t=e.xScale,n=e.yCrosshairLine,r=e.highlightedDatum,o=e.crosshairs.yLine;if(o.enabled&&null!=r){n.x1=t.range[0],n.x2=t.range[1],n.y1=n.y2=0,n.stroke=o.stroke,n.strokeWidth=o.strokeWidth||1,n.lineCap="round"===o.lineCap||"square"===o.lineCap?o.lineCap:void 0;var i=o.lineDash;n.lineDash=Array.isArray(i)?i:getLineDash(n.lineCap,o.lineDash),n.translationY=r.point.y}else n.strokeWidth=0},t.prototype.getTooltipHtml=function(e){var t,n,r=this.dataType,o=e.seriesDatum,i=o.y,a=o.x,s={content:this.formatNumericDatum(i),title:"array"===r||"object"===r?this.formatDatum(a):void 0},l=null===(n=null===(t=this.processedOptions)||void 0===t?void 0:t.tooltip)||void 0===n?void 0:n.renderer;return l?toTooltipHtml(l({context:this.context,datum:o,yValue:i,xValue:a}),s):toTooltipHtml(s)},t.className="LineSparkline",t}(Sparkline),Label=function(){this.enabled=!0,this.fontSize=8,this.fontFamily="Verdana, sans-serif",this.fontStyle=void 0,this.fontWeight=void 0,this.color="rgba(70, 70, 70, 1)"},__extends$4=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),extent=extent$4,BarColumnNodeTag,BarColumnLabelPlacement;!function(e){e[e.Rect=0]="Rect",e[e.Label=1]="Label"}(BarColumnNodeTag||(BarColumnNodeTag={})),function(e){e.InsideBase="insideBase",e.InsideEnd="insideEnd",e.Center="center",e.OutsideEnd="outsideEnd"}(BarColumnLabelPlacement||(BarColumnLabelPlacement={}));var BarColumnLabel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.formatter=void 0,t.placement=BarColumnLabelPlacement.InsideEnd,t}return __extends$4(t,e),t}(Label),BarColumnSparkline=function(e){function t(){var t=e.call(this)||this;return t.fill="rgb(124, 181, 236)",t.stroke="silver",t.strokeWidth=0,t.paddingInner=.1,t.paddingOuter=.2,t.valueAxisDomain=void 0,t.formatter=void 0,t.axisLine=new Line,t.bandWidth=0,t.sparklineGroup=new Group,t.rectGroup=new Group,t.labelGroup=new Group,t.rectSelection=Selection.select(t.rectGroup,Rect),t.labelSelection=Selection.select(t.labelGroup,Text),t.nodeSelectionData=[],t.label=new BarColumnLabel,t.rootGroup.append(t.sparklineGroup),t.rectGroup.zIndex=ZINDICIES.SERIES_FILL_ZINDEX,t.axisLine.zIndex=ZINDICIES.AXIS_LINE_ZINDEX,t.labelGroup.zIndex=ZINDICIES.SERIES_LABEL_ZINDEX,t.sparklineGroup.append([t.rectGroup,t.axisLine,t.labelGroup]),t.axisLine.lineCap="round",t.label.enabled=!1,t}return __extends$4(t,e),t.prototype.getNodeData=function(){return this.nodeSelectionData},t.prototype.update=function(){this.updateSelections(),this.updateNodes()},t.prototype.updateSelections=function(){var e=this.generateNodeData();e&&(this.nodeSelectionData=e,this.updateRectSelection(e),this.updateLabelSelection(e))},t.prototype.updateNodes=function(){this.updateRectNodes(),this.updateLabelNodes()},t.prototype.calculateStep=function(e){var t,n=this,r=n.xScale,o=n.paddingInner,i=n.paddingOuter,a=n.smallestInterval,s=(r.domain[1]-r.domain[0])/(null!==(t=null==a?void 0:a.x)&&void 0!==t?t:1)+1,l=Math.min(s,50),c=l-1;return e/Math.max(1,2*i+c*o+l)},t.prototype.updateYScaleDomain=function(){var e=this,t=e.yScale,n=e.yData,r=e.valueAxisDomain,o=extent(n),i=0,a=1;void 0!==o&&(i=this.min=o[0],a=this.max=o[1]),i=i<0?i:0,a=a<0?0:a,r&&(r[1]<a&&(r[1]=a),r[0]>i&&(r[0]=i)),t.domain=r||[i,a]},t.prototype.updateRectSelection=function(e){this.rectSelection.update(e)},t.prototype.updateRectNodes=function(){var e=this,t=this,n=t.highlightedDatum,r=t.formatter,o=t.fill,i=t.stroke,a=t.strokeWidth,s=this.highlightStyle,l=s.fill,c=s.stroke,u=s.strokeWidth;this.rectSelection.each(function(t,s,d){var p,h=s===n,f=h&&void 0!==l?l:o,g=h&&void 0!==c?c:i,m=h&&void 0!==u?u:a,v=s.x,y=s.y,A=s.width,w=s.height,b=s.seriesDatum;if(r){var _=0===d,C=d===e.nodeSelectionData.length-1,E=b.y===e.min,S=b.y===e.max;p=r({datum:s,xValue:b.x,yValue:b.y,width:A,height:w,min:E,max:S,first:_,last:C,fill:f,stroke:g,strokeWidth:m,highlighted:h})}t.fill=p&&p.fill||f,t.stroke=p&&p.stroke||g,t.strokeWidth=p&&p.strokeWidth||m,t.x=t.y=0,t.width=A,t.height=w,t.visible=t.height>0,t.translationX=v,t.translationY=y})},t.prototype.updateLabelSelection=function(e){this.labelSelection.update(e,function(e){e.tag=BarColumnNodeTag.Label,e.pointerEvents=PointerEvents.None})},t.prototype.updateLabelNodes=function(){var e=this.label,t=e.enabled,n=e.fontStyle,r=e.fontWeight,o=e.fontSize,i=e.fontFamily,a=e.color;this.labelSelection.each(function(e,s){var l=s.label;l&&t?(e.fontStyle=n,e.fontWeight=r,e.fontSize=o,e.fontFamily=i,e.textAlign=l.textAlign,e.textBaseline=l.textBaseline,e.text=l.text,e.x=l.x,e.y=l.y,e.fill=a,e.visible=!0):e.visible=!1})},t.prototype.getTooltipHtml=function(e){var t,n,r=this.dataType,o=e.seriesDatum,i=o.y,a=o.x,s={content:this.formatNumericDatum(i),title:"array"===r||"object"===r?this.formatDatum(a):void 0},l=null===(n=null===(t=this.processedOptions)||void 0===t?void 0:t.tooltip)||void 0===n?void 0:n.renderer;return l?toTooltipHtml(l({context:this.context,datum:o,yValue:i,xValue:a}),s):toTooltipHtml(s)},t.prototype.formatLabelValue=function(e){return e%1!=0?e.toFixed(1):e.toFixed(0)},t}(Sparkline),__extends$3=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),isNumber$2=isNumber$4,BandScale$1=BandScale$5,BarSparkline=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$3(t,e),t.prototype.updateYScaleRange=function(){var e=this.seriesRect;this.yScale.range=[0,e.width]},t.prototype.updateXScaleRange=function(){var e=this,t=e.xScale,n=e.seriesRect,r=e.paddingOuter,o=e.paddingInner;if(t instanceof BandScale$1)t.range=[0,n.height],t.paddingInner=o,t.paddingOuter=r;else{var i=this.calculateStep(n.height),a=i*r;this.bandWidth=i*(1-o),t.range=[a,n.height-a-this.bandWidth]}},t.prototype.updateAxisLine=function(){var e=this,t=e.yScale,n=e.axis,r=e.axisLine,o=e.seriesRect,i=n.strokeWidth;r.x1=0,r.x2=0,r.y1=0,r.y2=o.height,r.stroke=n.stroke,r.strokeWidth=i+(i%2==1?1:0);var a=t.convert(0);r.translationX=a},t.prototype.generateNodeData=function(){var e=this,t=e.data,n=e.yData,r=e.xData,o=e.xScale,i=e.yScale,a=e.fill,s=e.stroke,l=e.strokeWidth,c=e.label;if(t){for(var u=c.fontStyle,d=c.fontWeight,p=c.fontSize,h=c.fontFamily,f=c.color,g=c.formatter,m=c.placement,v=[],y=i.convert(0),A=!(o instanceof BandScale$1),w=0,b=n.length;w<b;w++){var _=n[w],C=r[w],E=void 0===_;E&&(_=0);var S,O=o.convert(A?o.toDomain(C):C),x=Math.min(void 0===_?NaN:i.convert(_),y),D=Math.max(void 0===_?NaN:i.convert(_),y),P=A?this.bandWidth:o.bandwidth,M=D-x,T={x:y,y:O};S=g?g({value:_}):void 0!==_&&isNumber$2(_)?this.formatLabelValue(_):"";var R=O+P/2,I=void 0,F=void 0,k=void 0!==_&&_>=0;if(m===BarColumnLabelPlacement.Center)I=x+M/2,F="center";else if(m===BarColumnLabelPlacement.OutsideEnd)I=x+(k?M+4:-4),F=k?"start":"end";else if(m===BarColumnLabelPlacement.InsideEnd){I=x+(k?M-4:4),F=k?"end":"start";var L=HdpiCanvas.getTextSize(S,h).width||20;(k&&I<y+L||!k&&I>y-L)&&(I=y+4*(k?1:-1),F=k?"start":"end")}else I=y+4*(k?1:-1),F=k?"start":"end";v.push({x,y:O,width:M,height:P,fill:a,stroke:s,strokeWidth:l,seriesDatum:{x:C,y:E?void 0:_},point:T,label:{x:I,y:R,text:S,fontStyle:u,fontWeight:d,fontSize:p,fontFamily:h,textAlign:F,textBaseline:"middle",fill:f}})}return v}},t.prototype.getDistance=function(e,t){return Math.abs(e.y-t.y)},t.className="BarSparkline",t}(BarColumnSparkline),__extends$2=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),isNumber$1=isNumber$4,BandScale=BandScale$5,ColumnSparkline=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2(t,e),t.prototype.updateYScaleRange=function(){var e=this.seriesRect;this.yScale.range=[e.height,0]},t.prototype.updateXScaleRange=function(){var e=this,t=e.xScale,n=e.seriesRect,r=e.paddingOuter,o=e.paddingInner;if(t instanceof BandScale)t.range=[0,n.width],t.paddingInner=o,t.paddingOuter=r;else{var i=this.calculateStep(n.width),a=i*r;this.bandWidth=i*(1-o),t.range=[a,n.width-a-this.bandWidth]}},t.prototype.updateAxisLine=function(){var e=this,t=e.yScale,n=e.axis,r=e.axisLine,o=e.seriesRect,i=n.strokeWidth;r.x1=0,r.x2=o.width,r.y1=0,r.y2=0,r.stroke=n.stroke,r.strokeWidth=i+(i%2==1?1:0);var a=t.convert(0);r.translationY=a},t.prototype.generateNodeData=function(){var e=this,t=e.data,n=e.yData,r=e.xData,o=e.xScale,i=e.yScale,a=e.fill,s=e.stroke,l=e.strokeWidth,c=e.label;if(t){for(var u=c.fontStyle,d=c.fontWeight,p=c.fontSize,h=c.fontFamily,f=c.color,g=c.formatter,m=c.placement,v=[],y=i.convert(0),A=!(o instanceof BandScale),w=0,b=n.length;w<b;w++){var _=n[w],C=r[w],E=void 0===_;E&&(_=0);var S,O=Math.min(void 0===_?NaN:i.convert(_),y),x=o.convert(A?o.toDomain(C):C),D=Math.max(void 0===_?NaN:i.convert(_),y),P=A?this.bandWidth:o.bandwidth,M=D-O,T={x:x+P/2,y};S=g?g({value:_}):void 0!==_&&isNumber$1(_)?this.formatLabelValue(_):"";var R=x+P/2,I=void 0,F=void 0,k=void 0!==_&&_>=0;if(m===BarColumnLabelPlacement.Center)I=O+M/2,F="middle";else if(m===BarColumnLabelPlacement.OutsideEnd)I=O+(k?-2:M+2),F=k?"bottom":"top";else if(m===BarColumnLabelPlacement.InsideEnd){I=O+(k?2:M-2),F=k?"top":"bottom";var L=HdpiCanvas.getTextSize(S,h).height||10;(k&&I>y-L||!k&&I<y+L)&&(I=y+2*(k?-1:1),F=k?"bottom":"top")}else I=y+2*(k?-1:1),F=k?"bottom":"top";v.push({x,y:O,width:P,height:M,fill:a,stroke:s,strokeWidth:l,seriesDatum:{x:C,y:E?void 0:_},point:T,label:{x:R,y:I,text:S,fontStyle:u,fontWeight:d,fontSize:p,fontFamily:h,textAlign:"center",textBaseline:F,fill:f}})}return v}},t.className="ColumnSparkline",t}(BarColumnSparkline),isNumber=isNumber$4,AgSparkline=function(){function e(){}return e.create=function(e,t){var n=getSparklineInstance((e=jsonMerge([e])).type);return t&&(n.tooltip=t),initSparkline(n,e),initSparklineByType(n,e),e.data&&(n.data=e.data),n.processedOptions=e,n},e}();function getSparklineInstance(e){switch(void 0===e&&(e="line"),e){case"column":return new ColumnSparkline;case"bar":return new BarSparkline;case"area":return new AreaSparkline;default:return new LineSparkline}}function initSparklineByType(e,t){switch(t.type){case"bar":case"column":initBarColumnSparkline(e,t);break;case"area":initAreaSparkline(e,t);break;default:initLineSparkline(e,t)}}function initSparkline(e,t){setValueIfPropertyExists(e,"context",t.context,t),setValueIfPropertyExists(e,"width",t.width,t),setValueIfPropertyExists(e,"height",t.height,t),setValueIfPropertyExists(e,"container",t.container,t),setValueIfPropertyExists(e,"xKey",t.xKey,t),setValueIfPropertyExists(e,"yKey",t.yKey,t),t.padding&&initPaddingOptions(e.padding,t.padding),t.axis&&initAxisOptions(e.axis,t.axis),t.highlightStyle&&initHighlightStyleOptions(e.highlightStyle,t.highlightStyle)}function initLineSparkline(e,t){t.marker&&initMarkerOptions(e.marker,t.marker),t.line&&initLineOptions(e.line,t.line),t.crosshairs&&initCrosshairsOptions(e.crosshairs,t.crosshairs)}function initAreaSparkline(e,t){setValueIfPropertyExists(e,"fill",t.fill,t),t.marker&&initMarkerOptions(e.marker,t.marker),t.line&&initLineOptions(e.line,t.line),t.crosshairs&&initCrosshairsOptions(e.crosshairs,t.crosshairs)}function initBarColumnSparkline(e,t){setValueIfPropertyExists(e,"valueAxisDomain",t.valueAxisDomain,t),setValueIfPropertyExists(e,"fill",t.fill,t),setValueIfPropertyExists(e,"stroke",t.stroke,t),setValueIfPropertyExists(e,"strokeWidth",t.strokeWidth,t),setValueIfPropertyExists(e,"paddingInner",t.paddingInner,t),setValueIfPropertyExists(e,"paddingOuter",t.paddingOuter,t),setValueIfPropertyExists(e,"formatter",t.formatter,t),t.label&&initLabelOptions(e.label,t.label)}function initPaddingOptions(e,t){setValueIfPropertyExists(e,"top",t.top,t),setValueIfPropertyExists(e,"right",t.right,t),setValueIfPropertyExists(e,"bottom",t.bottom,t),setValueIfPropertyExists(e,"left",t.left,t)}function initMarkerOptions(e,t){setValueIfPropertyExists(e,"enabled",t.enabled,t),setValueIfPropertyExists(e,"size",t.size,t),setValueIfPropertyExists(e,"shape",t.shape,t),setValueIfPropertyExists(e,"fill",t.fill,t),setValueIfPropertyExists(e,"stroke",t.stroke,t),setValueIfPropertyExists(e,"strokeWidth",t.strokeWidth,t),setValueIfPropertyExists(e,"formatter",t.formatter,t)}function initLabelOptions(e,t){setValueIfPropertyExists(e,"enabled",t.enabled,t),setValueIfPropertyExists(e,"fontStyle",t.fontStyle,t),setValueIfPropertyExists(e,"fontWeight",t.fontWeight,t),setValueIfPropertyExists(e,"fontSize",t.fontSize,t),setValueIfPropertyExists(e,"fontFamily",t.fontFamily,t),setValueIfPropertyExists(e,"textAlign",t.textAlign,t),setValueIfPropertyExists(e,"textBaseline",t.textBaseline,t),setValueIfPropertyExists(e,"color",t.color,t),setValueIfPropertyExists(e,"formatter",t.formatter,t),setValueIfPropertyExists(e,"placement",t.placement,t)}function initLineOptions(e,t){setValueIfPropertyExists(e,"stroke",t.stroke,t),setValueIfPropertyExists(e,"strokeWidth",t.strokeWidth,t)}function initAxisOptions(e,t){setValueIfPropertyExists(e,"type",t.type,t),setValueIfPropertyExists(e,"stroke",t.stroke,t),setValueIfPropertyExists(e,"strokeWidth",t.strokeWidth,t)}function initHighlightStyleOptions(e,t){setValueIfPropertyExists(e,"fill",t.fill,t),setValueIfPropertyExists(e,"size",t.size,t),setValueIfPropertyExists(e,"stroke",t.stroke,t),setValueIfPropertyExists(e,"strokeWidth",t.strokeWidth,t)}function initCrosshairsOptions(e,t){e.xLine&&t.xLine&&initCrosshairLineOptions(e.xLine,t.xLine),e.yLine&&t.yLine&&initCrosshairLineOptions(e.yLine,t.yLine)}function initCrosshairLineOptions(e,t){setValueIfPropertyExists(e,"enabled",t.enabled,t),setValueIfPropertyExists(e,"stroke",t.stroke,t),setValueIfPropertyExists(e,"strokeWidth",t.strokeWidth,t),setValueIfPropertyExists(e,"lineDash",t.lineDash,t),setValueIfPropertyExists(e,"lineCap",t.lineCap,t)}var doOnceFlags={};function doOnce(e,t){doOnceFlags[t]||(e(),doOnceFlags[t]=!0)}var offsetValidator=function(e,t,n){if(isNumber(t))return!0;var r="AG Charts: "+e+" must be a number, the value you provided is not a valid number. Using the default of "+n+"px.";return doOnce(function(){return console.warn(r)},e+" not a number"),!1},validators={xOffset:offsetValidator,yOffset:offsetValidator};function setValueIfPropertyExists(e,t,n,r){if(t in r)if(t in e){var o=validators[t];(!o||o(t,n,e[t]))&&e[t]!==n&&(e[t]=n)}else console.warn("Property "+t+" does not exist on the target object.")}var __extends$1=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)},__decorate$1=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SparklineCellRenderer=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return __extends$1(t,e),t.prototype.init=function(e){var t=this,n=!0,r=this.resizeObserverService.observeResize(this.getGui(),function(){var r=t.getGui(),o=r.clientWidth,i=r.clientHeight;if(0!==o&&0!==i)if(n){var a=__assign({data:e.value,width:o,height:i,context:{data:e.data}},e.sparklineOptions);t.sparkline=AgSparkline.create(a,t.sparklineTooltipSingleton.getSparklineTooltip()),t.eSparkline.appendChild(t.sparkline.canvasElement),n=!1}else t.sparkline.width=o,t.sparkline.height=i});this.addDestroyFunc(function(){return r()})},t.prototype.refresh=function(e){return!!this.sparkline&&(this.sparkline.data=e.value,!0)},t.prototype.destroy=function(){this.sparkline&&this.sparkline.destroy(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-sparkline-wrapper">\n            <span ref="eSparkline"></span>\n        </div>',__decorate$1([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.RefSelector)("eSparkline")],t.prototype,"eSparkline",void 0),__decorate$1([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("resizeObserverService")],t.prototype,"resizeObserverService",void 0),__decorate$1([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Autowired)("sparklineTooltipSingleton")],t.prototype,"sparklineTooltipSingleton",void 0),t}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Component),__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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__decorate=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SparklineTooltipSingleton=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.postConstruct=function(){this.tooltip=new SparklineTooltip},t.prototype.getSparklineTooltip=function(){return this.tooltip},t.prototype.destroyTooltip=function(){this.tooltip&&this.tooltip.destroy()},__decorate([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PostConstruct],t.prototype,"postConstruct",null),__decorate([ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.PreDestroy],t.prototype,"destroyTooltip",null),__decorate([(0,ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.Bean)("sparklineTooltipSingleton")],t)}(ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.BeanStub),VERSION="29.3.3",SparklinesModule={version:VERSION,moduleName:ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleNames.SparklinesModule,beans:[SparklineTooltipSingleton],userComponents:[{componentName:"agSparklineCellRenderer",componentClass:SparklineCellRenderer}],dependantModules:[EnterpriseCoreModule]},AllEnterpriseModules=[ClipboardModule,ColumnsToolPanelModule,ExcelExportModule,FiltersToolPanelModule,GridChartsModule,MasterDetailModule,MenuModule,MultiFilterModule,RangeSelectionModule,RichSelectModule,RowGroupingModule,ServerSideRowModelModule,SetFilterModule,SideBarModule,StatusBarModule,ViewportRowModelModule,SparklinesModule],AllModules=ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.AllCommunityModules.concat(AllEnterpriseModules);ag_grid_community__WEBPACK_IMPORTED_MODULE_0__.ModuleRegistry.registerModules(AllEnterpriseModules)},928(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AgGridReact=void 0;var c=l(n(155)),u=n(59),d=n(332),p=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(){return this.props.suppressReactUi?c.default.createElement(u.AgGridReactLegacy,i({},this.props,{setGridApi:this.setGridApi})):c.default.createElement(d.AgGridReactUi,i({},this.props,{setGridApi:this.setGridApi}))},t}(c.Component);t.AgGridReact=p},59(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AgGridReactLegacy=void 0;var u=n(777),d=c(n(67)),p=l(n(155)),h=n(802),f=n(405),g=n(168),m=n(211),v=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.api=null,n.destroyed=!1,n.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],n.portalManager=new g.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n}return o(t,e),t.prototype.render=function(){var e=this;return p.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(t){e.eGridDiv=t}},this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return i({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this.props.modules||[],t={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new A(this,this.portalManager)},modules:e,frameworkOverrides:new m.ReactFrameworkOverrides(!1)},n=this.props.gridOptions||{};this.gridOptions=u.ComponentUtil.copyAttributesToGridOptions(n,this.props),this.checkForDeprecations(this.props),new u.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.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&u._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},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.processSynchronousChanges(n),this.processAsynchronousChanges(n)},t.prototype.extractGridPropertyChanges=function(e,t,n){var r=!!t.debug;Object.keys(t).forEach(function(o){u.ComponentUtil.ALL_PROPERTIES_SET.has(o)&&e[o]!==t[o]&&(r&&console.log("agGridReact: ["+o+"] property changed"),n[o]={previousValue:e[o],currentValue:t[o]})}),u.ComponentUtil.EVENT_CALLBACKS.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=i({},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&&u.ComponentUtil.processOnChange(n,this.api)}return t},t.prototype.processAsynchronousChanges=function(e){var t=this;Object.keys(e).length>0&&window.setTimeout(function(){t.api&&u.ComponentUtil.processOnChange(e,t.api)})},t.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,t.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:t.MAX_COMPONENT_CREATION_TIME_IN_MS},t}(p.Component);function y(e,t){e.forEach(function(e){v[e]=t})}t.AgGridReactLegacy=v,v.propTypes={gridOptions:d.default.object},y(u.ComponentUtil.EVENT_CALLBACKS,d.default.func),y(u.ComponentUtil.BOOLEAN_PROPERTIES,d.default.bool),y(u.ComponentUtil.STRING_PROPERTIES,d.default.string),y(u.ComponentUtil.OBJECT_PROPERTIES,d.default.object),y(u.ComponentUtil.ARRAY_PROPERTIES,d.default.array),y(u.ComponentUtil.NUMBER_PROPERTIES,d.default.number),y(u.ComponentUtil.FUNCTION_PROPERTIES,d.default.func);var A=function(e){function t(t,n){var r=e.call(this)||this;return r.agGridReact=t,r.portalManager=n,r}return o(t,e),t.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new h.LegacyReactComponent(e,this.agGridReact,this.portalManager,t):new f.NewReactComponent(e,this.portalManager,t)},t}(u.BaseComponentWrapper)},802(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LegacyReactComponent=void 0;var a=n(155),s=n(514),l=n(777),c=n(251),u=n(931),d=i(n(245)),p=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.staticMarkup=null,i.staticRenderTime=0,i.parentComponent=n,i}return o(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.renderStaticMarkup(e),new l.AgPromise(function(n){return t.createReactComponent(e,n)})},t.prototype.createReactComponent=function(e,t){var n=this;this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()});var r=a.createElement(this.reactComponent,e),o=s.createPortal(r,this.eParentElement,d.default());this.portal=o,this.portalManager.mountReactPortal(o,this,function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout(function(){n.removeStaticMarkup()}))})},t.prototype.fallbackMethodAvailable=function(e){return!1},t.prototype.fallbackMethod=function(e,t){},t.prototype.isSlowRenderer=function(){return this.staticRenderTime>=t.SLOW_RENDERING_THRESHOLD},t.prototype.isNullValue=function(){return""===this.staticMarkup},t.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,n=a.createElement(this.reactComponent,e);try{console.error=function(){};var r=Date.now(),o=u.renderToStaticMarkup(n);this.staticRenderTime=Date.now()-r,console.error=t,""===o?this.staticMarkup=o:o&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=o,this.eParentElement.appendChild(this.staticMarkup))}catch(e){}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}(c.ReactComponent);t.LegacyReactComponent=p},332(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AgGridReactUi=void 0;var u=n(777),d=l(n(155)),p=n(405),h=n(168),f=c(n(398)),g=n(211),m=n(840),v=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.destroyFuncs=[],n.eGui=d.default.createRef(),n.whenReadyFuncs=[],n.ready=!1,n.renderedAfterMount=!1,n.mounted=!1,n.state={context:void 0},n.portalManager=new h.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),m.FlushSyncToggle.off(),setTimeout(function(){return m.FlushSyncToggle.on()},0),d.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&d.default.createElement(f.default,{context:this.state.context}),this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return i({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 y(this.portalManager)},modules:t,frameworkOverrides:new g.ReactFrameworkOverrides(!0)};this.gridOptions=this.props.gridOptions||{},this.gridOptions=u.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props),this.checkForDeprecations(this.props),(new u.GridCoreCreator).create(this.eGui.current,this.gridOptions,function(t){e.setState({context:t}),t.getBean(u.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(u.CtrlsService.NAME).whenReady(function(){e.whenReadyFuncs.forEach(function(e){return e()}),e.whenReadyFuncs.length=0,e.ready=!0})},n)}},t.prototype.checkForDeprecations=function(e){e.rowDataChangeDetectionStrategy&&u._.doOnce(function(){return console.warn("AG Grid: Since v29 rowDataChangeDetectionStrategy has been deprecated. Row data property changes will be compared by reference via triple equals ===. See https://ag-grid.com/react-data-grid/react-hooks/")},"rowDataChangeDetectionStrategy_Deprecation")},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.processChanges(n)},t.prototype.extractGridPropertyChanges=function(e,t,n){var r=!!t.debug;Object.keys(t).forEach(function(o){u.ComponentUtil.ALL_PROPERTIES_SET.has(o)&&e[o]!==t[o]&&(r&&console.log("agGridReact: ["+o+"] property changed"),n[o]={previousValue:e[o],currentValue:t[o]})}),u.ComponentUtil.EVENT_CALLBACKS.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 u.ComponentUtil.processOnChange(e,t.api)})},t.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)},t}(d.Component);t.AgGridReactUi=v;var y=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}(u.BaseComponentWrapper)},287(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BeansContext=void 0;var o=r(n(155));t.BeansContext=o.default.createContext({})},163(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(155)),l=n(840),c=n(287),u=n(332),d=n(858);t.default=s.forwardRef(function(e,t){var n=s.useContext(c.BeansContext),o=n.ctrlsFactory,i=n.context,a=n.gridOptionsService,p=n.resizeObserverService,h=n.clientSideRowModel,f=n.serverSideRowModel,g=s.useState(new l.CssClasses),m=g[0],v=g[1],y=s.useState(new l.CssClasses),A=y[0],w=y[1],b=s.useState(),_=b[0],C=b[1],E=s.useState(),S=E[0],O=E[1],x=s.useRef(),D=s.useRef(null),P=s.useMemo(function(){return m.toString()+" ag-details-row"},[m]),M=s.useMemo(function(){return A.toString()+" ag-details-grid"},[A]);t&&s.useImperativeHandle(t,function(){return{refresh:function(){return x.current.refresh()}}}),d.useLayoutEffectOnce(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.")}),d.useLayoutEffectOnce(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 C(e)},setRowData:function(e){return O(e)},getGui:function(){return D.current}},n=o.getInstance("detailCellRenderer");if(n){var r;if(i.createBean(n),n.init(t,e),x.current=n,a.is("detailRowAutoHeight")){var s=function(){if(null!=D.current){var t=D.current.clientHeight;null!=t&&t>0&&setTimeout(function(){e.node.setRowHeight(t),h?h.onRowHeightChanged():f&&f.onRowHeightChanged()},0)}};r=p.observeResize(D.current,s),s()}return function(){i.destroyBean(n),r&&r()}}});var T=s.useCallback(function(e,t){x.current.registerDetailWithMaster(e,t)},[]);return s.default.createElement("div",{className:P,ref:D},_&&s.default.createElement(u.AgGridReactUi,r({className:M},_,{rowData:S,setGridApi:T})))})},869(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var s=n(777),l=a(n(155)),c=n(287),u=n(413),d=n(858),p=n(840),h=l.forwardRef(function(e,t){var n=l.useContext(c.BeansContext).context,o=l.useRef(null),i=l.useRef(null),a=l.useRef(null),f=l.useRef(null),g=l.useRef(null),m=l.useState(),v=m[0],y=m[1],A=l.useState(),w=A[0],b=A[1],_=l.useState(),C=_[0],E=_[1],S=l.useState(new p.CssClasses),O=S[0],x=S[1],D=l.useState(new p.CssClasses("ag-hidden")),P=D[0],M=D[1],T=l.useState(new p.CssClasses("ag-hidden")),R=T[0],I=T[1],F=l.useState(new p.CssClasses("ag-invisible")),k=F[0],L=F[1];l.useImperativeHandle(t,function(){return{refresh:function(){return!1}}}),l.useLayoutEffect(function(){return u.showJsComp(v,n,i.current)},[v]),d.useLayoutEffectOnce(function(){var t={setInnerRenderer:function(e,t){y(e),E(t)},setChildCount:function(e){return b(e)},addOrRemoveCssClass:function(e,t){return x(function(n){return n.setClass(e,t)})},setContractedDisplayed:function(e){return I(function(t){return t.setClass("ag-hidden",!e)})},setExpandedDisplayed:function(e){return M(function(t){return t.setClass("ag-hidden",!e)})},setCheckboxVisible:function(e){return L(function(t){return t.setClass("ag-invisible",!e)})}},r=n.createBean(new s.GroupCellRendererCtrl);return r.init(t,o.current,a.current,f.current,g.current,h,e),function(){n.destroyBean(r)}});var B=l.useMemo(function(){return"ag-cell-wrapper "+O.toString()},[O]),N=l.useMemo(function(){return"ag-group-expanded "+P.toString()},[P]),j=l.useMemo(function(){return"ag-group-contracted "+R.toString()},[R]),U=l.useMemo(function(){return"ag-group-checkbox "+k.toString()},[k]),V=v&&v.componentFromFramework,H=V?v.componentClass:void 0,G=null==v&&null!=C,W=s._.escapeString(C,!0);return l.default.createElement("span",r({className:B,ref:o},e.colDef?{}:{role:"gridcell"}),l.default.createElement("span",{className:N,ref:f}),l.default.createElement("span",{className:j,ref:g}),l.default.createElement("span",{className:U,ref:a}),l.default.createElement("span",{className:"ag-group-value",ref:i},G&&l.default.createElement(l.default.Fragment,null,W),V&&l.default.createElement(H,r({},v.params))),l.default.createElement("span",{className:"ag-group-child-count"},w))});t.default=h},944(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CellCompState=void 0;var l,c=n(777),u=a(n(155)),d=n(840),p=s(n(95)),h=s(n(270)),f=n(287),g=n(413),m=n(858);(l=t.CellCompState||(t.CellCompState={}))[l.ShowValue=0]="ShowValue",l[l.EditValue=1]="EditValue",t.default=u.memo(function(e){var t=u.useContext(f.BeansContext).context,n=e.cellCtrl,o=e.printLayout,i=e.editingRow,a=u.useState(),s=a[0],l=a[1],v=u.useState(),y=v[0],A=v[1],w=u.useState(1),b=w[0],_=w[1],C=u.useState(),E=C[0],S=C[1],O=u.useState(),x=O[0],D=O[1],P=u.useState(),M=P[0],T=P[1],R=u.useState(),I=R[0],F=R[1],k=u.useState(),L=k[0],B=k[1],N=u.useState(!1),j=N[0],U=N[1],V=u.useState(!1),H=V[0],G=V[1],W=u.useState(!1),z=W[0],$=W[1],K=u.useState(),Q=K[0],q=K[1],Y=u.useMemo(function(){return n.isForceWrapper()},[]),X=u.useRef(null),Z=u.useRef(null),J=u.useRef(),ee=u.useRef(),te=u.useRef(),ne=u.useState(0),re=ne[0],oe=ne[1],ie=u.useCallback(function(e){te.current=e,oe(function(e){return e+1})},[]),ae=u.useRef(),se=u.useState(0),le=se[0],ce=se[1],ue=u.useCallback(function(e){ae.current=e,ce(function(e){return e+1})},[]),de=Y||null!=s&&(j||z||H),pe=u.useCallback(function(e,t){ee.current=t,t&&(function(e,t,n){var r=n.getColumn();if(!e&&t.isPopup&&t.isPopup()){var o="AG Grid: Found an issue in column "+r.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.";c._.doOnce(function(){return console.warn(o)},"jsEditorComp-isPopup-"+n.getColumn().getColId())}if(e&&t.getPopupPosition&&null!=t.getPopupPosition()){var i="AG Grid: Found an issue in column "+r.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.";c._.doOnce(function(){return console.warn(i)},"jsEditorComp-getPopupPosition-"+n.getColumn().getColId())}}(e,t,n),t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout(function(){n.stopEditing(!0),n.focusCell(!0)}))},[]),he=u.useCallback(function(e){return pe(!0,e)},[]),fe=u.useCallback(function(e){return pe(!1,e)},[]),ge=u.useMemo(function(){return new c.CssClassManager(function(){return X.current})},[]);h.default(s,de,ae.current,le,J,X);var me=u.useRef();u.useLayoutEffect(function(){var e=me.current,t=s;if(me.current=s,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails){var n=e.compDetails,r=t.compDetails;n.componentClass==r.componentClass&&null!=Z.current&&null!=Z.current.refresh&&1!=Z.current.refresh(r.params)&&_(function(e){return e+1})}},[s]),u.useLayoutEffect(function(){if(y&&!y.compDetails.componentFromFramework){var e=y.compDetails,n=!0===y.popup,r=g.createSyncJsComp(e);if(r){var o=r.getGui();if(pe(n,r),!n){var i=(Y?te:X).current;null==i||i.appendChild(o),r.afterGuiAttached&&r.afterGuiAttached()}return q(r),function(){t.destroyBean(r),pe(n,void 0),q(void 0),o&&o.parentElement&&o.parentElement.removeChild(o)}}}},[y]),u.useLayoutEffect(function(){if(n&&t&&te.current&&de){var e=[],r=function(n){if(n){var r=n.getGui();te.current.insertAdjacentElement("afterbegin",r),e.push(function(){t.destroyBean(n),c._.removeFromParent(r)})}return n};return j&&r(n.createSelectionCheckbox()),z&&r(n.createDndSource()),H&&r(n.createRowDragComp()),function(){return e.forEach(function(e){return e()})}}},[de,z,H,j,re]),m.useLayoutEffectOnce(function(){if(n){var e={addOrRemoveCssClass:function(e,t){return ge.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return S(e)},getFocusableElement:function(){return X.current},setTabIndex:function(e){return D(e)},setRole:function(e){return T(e)},setColId:function(e){return F(e)},setTitle:function(e){return B(e)},setIncludeSelection:function(e){return U(e)},setIncludeRowDrag:function(e){return G(e)},setIncludeDndSource:function(e){return $(e)},getCellEditor:function(){return ee.current||null},getCellRenderer:function(){return Z.current?Z.current:J.current},getParentOfValue:function(){return ae.current?ae.current:te.current?te.current:X.current},setRenderDetails:function(e,t,n){l({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(A({compDetails:e,popup:t,popupPosition:n}),t||l(void 0)):A(void 0)}},t=te.current||void 0;n.setComp(e,X.current,t,o,i)}});var ve=u.useMemo(function(){return!!(s&&s.compDetails&&s.compDetails.componentFromFramework&&d.isComponentStateless(s.compDetails.componentClass))},[s]);u.useEffect(function(){var e;X.current&&(ge.addOrRemoveCssClass("ag-cell-value",!de),ge.addOrRemoveCssClass("ag-cell-inline-editing",!!y&&!y.popup),ge.addOrRemoveCssClass("ag-cell-popup-editing",!!y&&!!y.popup),ge.addOrRemoveCssClass("ag-cell-not-inline-editing",!y||!!y.popup),null===(e=n.getRowCtrl())||void 0===e||e.setInlineEditingCss(!!y))});var ye=u.useMemo(function(){return n.getInstanceId()},[]),Ae=function(){return u.default.createElement(u.default.Fragment,null,null!=s&&function(e,t,n,o,i,a,s){var l=e.compDetails,c=e.value,d=!l,p=l&&l.componentFromFramework,h=l&&l.componentClass,f=(null==c?void 0:c.toString)?c.toString():c,g=function(){return u.default.createElement(u.default.Fragment,null,d&&u.default.createElement(u.default.Fragment,null,f),p&&!a&&u.default.createElement(h,r({},l.params,{key:t,ref:o})),p&&a&&u.default.createElement(h,r({},l.params,{key:t})))};return u.default.createElement(u.default.Fragment,null,i?u.default.createElement("span",{role:"presentation",id:"cell-"+n,className:"ag-cell-value",ref:s},g()):g())}(s,b,ye,Z,de,ve,ue),null!=y&&function(e,t,n,o,i,a){var s=e.compDetails,l=s.componentClass,c=s.componentFromFramework&&!e.popup,d=s.componentFromFramework&&e.popup,h=!s.componentFromFramework&&e.popup;return u.default.createElement(u.default.Fragment,null,c&&u.default.createElement(l,r({},e.compDetails.params,{ref:t})),d&&u.default.createElement(p.default,{editDetails:e,cellCtrl:i,eParentCell:o,wrappedContent:u.default.createElement(l,r({},e.compDetails.params,{ref:n}))}),h&&a&&u.default.createElement(p.default,{editDetails:e,cellCtrl:i,eParentCell:o,jsChildComp:a}))}(y,fe,he,X.current,n,Q))};return u.default.createElement("div",{ref:X,style:E,tabIndex:x,role:M,"col-id":I,title:L},de?u.default.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:ie},Ae()):Ae())})},95(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=n(777),s=i(n(155)),l=n(514),c=n(287),u=n(858);t.default=s.memo(function(e){var t=s.useState(),n=t[0],r=t[1],o=s.useContext(c.BeansContext),i=o.context,d=o.popupService,p=o.localeService,h=o.gridOptionsService;return u.useLayoutEffectOnce(function(){var t=e.editDetails,n=e.cellCtrl,o=e.eParentCell,s=t.compDetails,l=h.is("stopEditingWhenCellsLoseFocus"),c=i.createBean(new a.PopupEditorWrapper(s.params)),u=c.getGui();if(e.jsChildComp){var f=e.jsChildComp.getGui();f&&u.appendChild(f)}var g={column:n.getColumn(),rowNode:n.getRowNode(),type:"popupCellEditor",eventSource:o,ePopup:u,position:t.popupPosition,keepWithinBounds:!0},m=d.positionPopupByComponent.bind(d,g),v=p.getLocaleTextFunc(),y=d.addPopup({modal:l,eChild:u,closeOnEsc:!0,closedCallback:function(){n.onPopupEditorClosed()},anchorToElement:o,positionCallback:m,ariaLabel:v("ariaLabelCellEditor","Cell Editor")}),A=y?y.hideFunc:void 0;return r(c),e.jsChildComp&&e.jsChildComp.afterGuiAttached&&e.jsChildComp.afterGuiAttached(),function(){null!=A&&A(),i.destroyBean(c)}}),s.default.createElement(s.default.Fragment,null,n&&e.wrappedContent&&l.createPortal(e.wrappedContent,n.getGui()))})},270(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(155),o=n(287),i=n(858);t.default=function(e,t,n,a,s,l){var c=r.useContext(o.BeansContext),u=c.context,d=(c.userComponentFactory,r.useCallback(function(){var e=s.current;if(e){var t=e.getGui();t&&t.parentElement&&t.parentElement.removeChild(t),u.destroyBean(e),s.current=void 0}},[]));r.useEffect(function(){var r=null!=e,o=e&&e.compDetails&&!e.compDetails.componentFromFramework;if(!r||!o||t&&null==n)d();else{var i=e.compDetails;if(s.current){var a=s.current,c=!(null==a.refresh||0!=e.force)&&a.refresh(i.params);if(!0===c||void 0===c)return;d()}var u=i.newAgStackInstance();if(u){var p=u.resolveNow(null,function(e){return e});if(p){var h=p.getGui();h&&((t?n:l.current).appendChild(h),s.current=p)}}}},[e,t,a]),i.useEffectOnce(function(){return d})}},122(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(777),l=i(n(155)),c=n(287),u=a(n(821)),d=a(n(517)),p=a(n(440)),h=n(858),f=n(840);t.default=l.memo(function(){var e=l.useContext(c.BeansContext),t=e.context,n=e.agStackComponentsRegistry,r=e.resizeObserverService,o=l.useState(""),i=o[0],a=o[1],g=l.useState(0),m=g[0],v=g[1],y=l.useState(0),A=y[0],w=y[1],b=l.useState("0px"),_=b[0],C=b[1],E=l.useState("0px"),S=E[0],O=E[1],x=l.useState("100%"),D=x[0],P=x[1],M=l.useState(""),T=M[0],R=M[1],I=l.useState(""),F=I[0],k=I[1],L=l.useState(null),B=L[0],N=L[1],j=l.useState(""),U=j[0],V=j[1],H=l.useState(null),G=H[0],W=H[1],z=l.useState("ag-layout-normal"),$=z[0],K=z[1],Q=l.useMemo(function(){return new s.CssClassManager(function(){return q.current})},[]),q=l.useRef(null),Y=l.useRef(null),X=l.useRef(null),Z=l.useRef(null),J=l.useRef(null),ee=l.useRef(null);d.default(" AG Grid Body ",q),d.default(" AG Pinned Top ",Y),d.default(" AG Sticky Top ",X),d.default(" AG Middle ",J),d.default(" AG Pinned Bottom ",ee),h.useLayoutEffectOnce(function(){var e=[],o=[];if(t){var i=function(r){var o=n.getComponentClass(r),i=t.createBean(new o);return e.push(i),i};q.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),q.current.appendChild(i("AG-FAKE-HORIZONTAL-SCROLL").getGui()),q.current.appendChild(document.createComment(" AG Overlay Wrapper ")),q.current.appendChild(i("AG-OVERLAY-WRAPPER").getGui()),Z.current.appendChild(document.createComment(" AG Fake Vertical Scroll ")),Z.current.appendChild(i("AG-FAKE-VERTICAL-SCROLL").getGui());var l={setRowAnimationCssOnBodyViewport:a,setColumnCount:function(e){return s._.setAriaColCount(q.current,e)},setRowCount:function(e){return s._.setAriaRowCount(q.current,e)},setTopHeight:v,setBottomHeight:w,setStickyTopHeight:C,setStickyTopTop:O,setStickyTopWidth:P,setTopDisplay:R,setBottomDisplay:k,setColumnMovingCss:function(e,t){return Q.addOrRemoveCssClass(e,t)},updateLayoutClasses:K,setAlwaysVerticalScrollClass:N,setPinnedTopBottomOverflowY:V,setCellSelectableCss:W,setBodyViewportWidth:function(e){return J.current.style.width=e},registerBodyViewportResizeListener:function(e){var t=r.observeResize(J.current,e);o.push(function(){return t()})}},c=t.createBean(new s.GridBodyCtrl);return e.push(c),c.setComp(l,q.current,J.current,Y.current,ee.current,X.current),function(){t.destroyBeans(e),o.forEach(function(e){return e()})}}});var te=l.useMemo(function(){return f.classesList("ag-root","ag-unselectable",$)},[$]),ne=l.useMemo(function(){return f.classesList("ag-body-viewport",i,$,B,G)},[i,$,B,G]),re=l.useMemo(function(){return f.classesList("ag-body",$)},[$]),oe=l.useMemo(function(){return f.classesList("ag-body-clipper",$)},[$]),ie=l.useMemo(function(){return f.classesList("ag-floating-top",G)},[G]),ae=l.useMemo(function(){return f.classesList("ag-sticky-top",G)},[G]),se=l.useMemo(function(){return f.classesList("ag-floating-bottom",G)},[G]),le=l.useMemo(function(){return{height:m,minHeight:m,display:T,overflowY:U}},[m,T,U]),ce=l.useMemo(function(){return{height:_,top:S,width:D}},[_,S,D]),ue=l.useMemo(function(){return{height:A,minHeight:A,display:F,overflowY:U}},[A,F,U]),de=function(e){return l.default.createElement(p.default,{name:e,key:e+"-container"})},pe=function(e){var t=e.section,n=e.children,r=e.className,o=e.style;return l.default.createElement("div",{ref:t,className:r,role:"presentation",style:o},n.map(de))};return l.default.createElement("div",{ref:q,className:te,role:"treegrid"},l.default.createElement(u.default,null),pe({section:Y,className:ie,style:le,children:[s.RowContainerName.TOP_LEFT,s.RowContainerName.TOP_CENTER,s.RowContainerName.TOP_RIGHT,s.RowContainerName.TOP_FULL_WIDTH]}),l.default.createElement("div",{className:re,ref:Z,role:"presentation"},l.default.createElement("div",{className:oe,role:"presentation"},pe({section:J,className:ne,children:[s.RowContainerName.LEFT,s.RowContainerName.CENTER,s.RowContainerName.RIGHT,s.RowContainerName.FULL_WIDTH]}))),pe({section:X,className:ae,style:ce,children:[s.RowContainerName.STICKY_TOP_LEFT,s.RowContainerName.STICKY_TOP_CENTER,s.RowContainerName.STICKY_TOP_RIGHT,s.RowContainerName.STICKY_TOP_FULL_WIDTH]}),pe({section:ee,className:se,style:ue,children:[s.RowContainerName.BOTTOM_LEFT,s.RowContainerName.BOTTOM_CENTER,s.RowContainerName.BOTTOM_RIGHT,s.RowContainerName.BOTTOM_FULL_WIDTH]}))})},398(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(777),l=i(n(155)),c=n(287),u=a(n(122)),d=a(n(517)),p=a(n(30)),h=n(858),f=n(840);t.default=l.memo(function(e){var t=e.context,n=l.useState(""),r=n[0],o=n[1],i=l.useState(""),a=i[0],g=i[1],m=l.useState(""),v=m[0],y=m[1],A=l.useState(null),w=A[0],b=A[1],_=l.useState(null),C=_[0],E=_[1],S=l.useState(!1),O=S[0],x=S[1],D=l.useState(),P=D[0],M=D[1],T=l.useRef(null),R=l.useRef(null),I=l.useRef(),F=l.useRef(null),k=l.useRef(function(){}),L=l.useCallback(function(){},[]),B=l.useMemo(function(){return t.getBean("beans")},[]);d.default(" AG Grid ",R),h.useLayoutEffectOnce(function(){var e=T.current=t.createBean(new s.GridCtrl);return function(){t.destroyBean(e),T.current=null}}),h.useLayoutEffectOnce(function(){var e=T.current;k.current=e.focusInnerElement.bind(e);var t={destroyGridUi:function(){},setRtlClass:o,addOrRemoveKeyboardFocusClass:function(e){return g(e?s.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){I.current.forceFocusOutOfContainer()},updateLayoutClasses:y,getFocusableContainers:function(){var e=[],t=R.current.querySelector(".ag-root"),n=R.current.querySelector(".ag-side-bar:not(.ag-hidden)");return t&&e.push(t),n&&e.push(n),e},setCursor:b,setUserSelect:E};e.setComp(t,R.current,R.current),x(!0)}),l.useEffect(function(){if(P){var e=T.current,n=[],r=B.agStackComponentsRegistry,o=r.getComponentClass("AG-GRID-HEADER-DROP-ZONES"),i=r.getComponentClass("AG-SIDE-BAR"),a=r.getComponentClass("AG-STATUS-BAR"),s=r.getComponentClass("AG-WATERMARK"),l=r.getComponentClass("AG-PAGINATION"),c=[],u=R.current,d=F.current;if(e.showDropZones()&&o){var p=t.createBean(new o),h=p.getGui();u.insertAdjacentElement("afterbegin",h),c.push(h),n.push(p)}if(e.showSideBar()&&i){var f=t.createBean(new i),g=(h=f.getGui(),d.querySelector(".ag-tab-guard-bottom"));g&&(g.insertAdjacentElement("beforebegin",h),c.push(h)),n.push(f)}if(e.showStatusBar()&&a){var m=t.createBean(new a);h=m.getGui(),u.insertAdjacentElement("beforeend",h),c.push(h),n.push(m)}if(l){var v=t.createBean(new l);h=v.getGui(),u.insertAdjacentElement("beforeend",h),c.push(h),n.push(v)}if(e.showWatermark()&&s){var y=t.createBean(new s);h=y.getGui(),u.insertAdjacentElement("beforeend",h),c.push(h),n.push(y)}return function(){t.destroyBeans(n),c.forEach(function(e){e.parentElement&&e.parentElement.removeChild(e)})}}},[P]);var N=l.useMemo(function(){return f.classesList("ag-root-wrapper",r,a,v)},[r,a,v]),j=l.useMemo(function(){return f.classesList("ag-root-wrapper-body","ag-focus-managed",v)},[v]),U=l.useMemo(function(){return{userSelect:null!=C?C:"",WebkitUserSelect:null!=C?C:"",cursor:null!=w?w:""}},[C,w]),V=F.current,H=l.useCallback(function(e){I.current=e,M(!0)},[]);return l.default.createElement("div",{ref:R,className:N,style:U,role:"presentation"},l.default.createElement("div",{className:j,ref:F,role:"presentation"},O&&V&&l.default.createElement(c.BeansContext.Provider,{value:B},l.default.createElement(p.default,{ref:H,eFocusableElement:V,onTabKeyDown:L,gridCtrl:T.current},l.default.createElement(u.default,null)))))})},821(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(155)),l=n(287),c=n(777),u=n(840),d=a(n(526)),p=n(858);t.default=s.memo(function(){var e=s.useState(new u.CssClasses),t=e[0],n=e[1],r=s.useState(),o=r[0],i=r[1],a=s.useContext(l.BeansContext).context,h=s.useRef(null);p.useLayoutEffectOnce(function(){var e={addOrRemoveCssClass:function(e,t){return n(function(n){return n.setClass(e,t)})},setHeightAndMinHeight:function(e){return i(e)}},t=a.createBean(new c.GridHeaderCtrl);return t.setComp(e,h.current,h.current),function(){a.destroyBean(t)}});var f=s.useMemo(function(){return"ag-header "+t.toString()},[t]),g=s.useMemo(function(){return{height:o,minHeight:o}},[o]);return s.default.createElement("div",{ref:h,className:f,style:g,role:"presentation"},s.default.createElement(d.default,{pinned:"left"}),s.default.createElement(d.default,{pinned:null}),s.default.createElement(d.default,{pinned:"right"}))})},69(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(155)),l=n(287),c=n(777),u=n(840),d=n(413),p=n(858);t.default=s.memo(function(e){var t=s.useContext(l.BeansContext).context,n=s.useState(),o=n[0],i=n[1],a=s.useState(),h=a[0],f=a[1],g=s.useState(),m=g[0],v=g[1],y=s.useState(),A=y[0],w=y[1],b=s.useState(),_=b[0],C=b[1],E=s.useRef(null),S=s.useRef(null),O=s.useRef(null),x=s.useRef(),D=e.ctrl,P=s.useMemo(function(){return new c.CssClassManager(function(){return E.current})},[]);p.useLayoutEffectOnce(function(){var e={setWidth:function(e){return E.current.style.width=e},addOrRemoveCssClass:function(e,t){return P.addOrRemoveCssClass(e,t)},setColId:function(e){return f(e)},setTitle:function(e){return i(e)},setAriaDescription:function(e){return w(e)},setAriaSort:function(e){return v(e)},setUserCompDetails:function(e){return C(e)},getUserCompInstance:function(){return x.current||void 0}};D.setComp(e,E.current,S.current,O.current);var t=D.getSelectAllGui();S.current.insertAdjacentElement("afterend",t)}),s.useLayoutEffect(function(){return d.showJsComp(_,t,O.current,x)},[_]),s.useEffect(function(){D.setDragSource(E.current)},[_]);var M=s.useMemo(function(){return!(!(null==_?void 0:_.componentFromFramework)||!u.isComponentStateless(_.componentClass))},[_]),T=_&&_.componentFromFramework,R=_&&_.componentClass;return s.default.createElement("div",{ref:E,className:"ag-header-cell",title:o,"col-id":h,"aria-sort":m,role:"columnheader",tabIndex:-1,"aria-description":A},s.default.createElement("div",{ref:S,className:"ag-header-cell-resize",role:"presentation"}),s.default.createElement("div",{ref:O,className:"ag-header-cell-comp-wrapper",role:"presentation"},T&&M&&s.default.createElement(R,r({},_.params)),T&&!M&&s.default.createElement(R,r({},_.params,{ref:x}))))})},647(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(155)),l=n(287),c=n(777),u=n(840),d=n(413),p=n(858);t.default=s.memo(function(e){var t=s.useContext(l.BeansContext).context,n=s.useState(new u.CssClasses("ag-header-cell","ag-floating-filter")),o=n[0],i=n[1],a=s.useState(new u.CssClasses),h=a[0],f=a[1],g=s.useState(new u.CssClasses("ag-floating-filter-button","ag-hidden")),m=g[0],v=g[1],y=s.useState("false"),A=y[0],w=y[1],b=s.useState(),_=b[0],C=b[1],E=s.useRef(null),S=s.useRef(null),O=s.useRef(null),x=s.useRef(null),D=s.useRef(!1),P=s.useRef(),M=s.useRef();p.useLayoutEffectOnce(function(){M.current=new c.AgPromise(function(e){P.current=e})});var T=function(e){D.current||null!=e&&(P.current&&P.current(e),D.current=!0)},R=e.ctrl;p.useLayoutEffectOnce(function(){var e={addOrRemoveCssClass:function(e,t){return i(function(n){return n.setClass(e,t)})},addOrRemoveBodyCssClass:function(e,t){return f(function(n){return n.setClass(e,t)})},setButtonWrapperDisplayed:function(e){v(function(t){return t.setClass("ag-hidden",!e)}),w(e?"false":"true")},setWidth:function(e){return E.current.style.width=e},setCompDetails:function(e){return C(e)},getFloatingFilterComp:function(){return M.current?M.current:null},setMenuIcon:function(e){return x.current.appendChild(e)}};R.setComp(e,E.current,x.current,S.current)}),s.useLayoutEffect(function(){return d.showJsComp(_,t,S.current,T)},[_]);var I=s.useMemo(function(){return o.toString()},[o]),F=s.useMemo(function(){return h.toString()},[h]),k=s.useMemo(function(){return m.toString()},[m]),L=s.useMemo(function(){return!!(_&&_.componentFromFramework&&u.isComponentStateless(_.componentClass))},[_]),B=_&&_.componentFromFramework,N=_&&_.componentClass;return s.default.createElement("div",{ref:E,className:I,role:"gridcell",tabIndex:-1},s.default.createElement("div",{ref:S,className:F,role:"presentation"},B&&L&&s.default.createElement(N,r({},_.params)),B&&!L&&s.default.createElement(N,r({},_.params,{ref:T}))),s.default.createElement("div",{ref:O,"aria-hidden":A,className:k,role:"presentation"},s.default.createElement("button",{ref:x,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))})},628(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(155)),l=n(287),c=n(413),u=n(858),d=n(840);t.default=s.memo(function(e){var t=s.useContext(l.BeansContext).context,n=s.useState(new d.CssClasses),o=n[0],i=n[1],a=s.useState(new d.CssClasses),p=a[0],h=a[1],f=s.useState("false"),g=f[0],m=f[1],v=s.useState(),y=v[0],A=v[1],w=s.useState(),b=w[0],_=w[1],C=s.useState(),E=C[0],S=C[1],O=s.useState(),x=O[0],D=O[1],P=s.useRef(null),M=s.useRef(null),T=e.ctrl;u.useLayoutEffectOnce(function(){var e={setWidth:function(e){return P.current.style.width=e},addOrRemoveCssClass:function(e,t){return i(function(n){return n.setClass(e,t)})},setColId:function(e){return _(e)},setTitle:function(e){return A(e)},setUserCompDetails:function(e){return D(e)},setResizableDisplayed:function(e){h(function(t){return t.setClass("ag-hidden",!e)}),m(e?"false":"true")},setAriaExpanded:function(e){return S(e)}};T.setComp(e,P.current,M.current)}),s.useLayoutEffect(function(){return c.showJsComp(x,t,P.current)},[x]),s.useEffect(function(){var e=void 0;P.current.childNodes.forEach(function(t){null!=t&&t!==M.current&&(e=t)}),e&&T.setDragSource(e)},[x]);var R=s.useMemo(function(){return"ag-header-group-cell "+o.toString()},[o]),I=s.useMemo(function(){return"ag-header-cell-resize "+p.toString()},[p]),F=x&&x.componentFromFramework,k=x&&x.componentClass;return s.default.createElement("div",{ref:P,className:R,title:y,"col-id":b,role:"columnheader",tabIndex:-1,"aria-expanded":E},F&&s.default.createElement(k,r({},x.params)),s.default.createElement("div",{ref:M,"aria-hidden":g,className:I}))})},39(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(777),c=i(n(155)),u=n(287),d=s(n(69)),p=s(n(628)),h=s(n(647)),f=n(858);t.default=c.memo(function(e){var t=c.useContext(u.BeansContext).gridOptionsService,n=c.useState(),r=n[0],o=n[1],i=c.useState(),s=i[0],g=i[1],m=c.useState(),v=m[0],y=m[1],A=c.useState(),w=A[0],b=A[1],_=c.useState([]),C=_[0],E=_[1],S=c.useRef(null),O=e.ctrl,x=O.getType()===l.HeaderRowType.COLUMN,D=O.getType()===l.HeaderRowType.COLUMN_GROUP,P=O.getType()===l.HeaderRowType.FLOATING_FILTER,M=c.useCallback(function(e,n){var r=t.is("ensureDomOrder"),o=t.isDomLayout("print");if(r||o)return n;var i=l._.mapById(e,function(e){return e.getInstanceId()}),s=l._.mapById(n,function(e){return e.getInstanceId()}),c=e.filter(function(e){return s.has(e.getInstanceId())}),u=n.filter(function(e){return!i.has(e.getInstanceId())});return a(c,u)},[]);f.useLayoutEffectOnce(function(){var e={setTransform:function(e){return o(e)},setHeight:function(e){return g(e)},setTop:function(e){return y(e)},setHeaderCtrls:function(e){return E(function(t){return M(t,e)})},setWidth:function(e){return S.current.style.width=e},setAriaRowIndex:function(e){return b(e)}};O.setComp(e)});var T=c.useMemo(function(){return{transform:r,height:s,top:v}},[r,s,v]),R=c.useMemo(function(){var e=["ag-header-row"];return x&&e.push("ag-header-row-column"),D&&e.push("ag-header-row-column-group"),P&&e.push("ag-header-row-column-filter"),e.join(" ")},[]),I=c.useCallback(function(e){switch(O.getType()){case l.HeaderRowType.COLUMN_GROUP:return c.default.createElement(p.default,{ctrl:e,key:e.getInstanceId()});case l.HeaderRowType.FLOATING_FILTER:return c.default.createElement(h.default,{ctrl:e,key:e.getInstanceId()});default:return c.default.createElement(d.default,{ctrl:e,key:e.getInstanceId()})}},[]);return c.default.createElement("div",{ref:S,className:R,role:"row",style:T,"aria-rowindex":w},C.map(I))})},526(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(155)),l=n(287),c=n(777),u=n(840),d=a(n(39)),p=n(858);t.default=s.memo(function(e){var t=s.useState(new u.CssClasses),n=t[0],r=t[1],o=s.useState(!1),i=o[0],a=o[1],h=s.useState([]),f=h[0],g=h[1],m=s.useContext(l.BeansContext).context,v=s.useRef(null),y=s.useRef(null),A="left"===e.pinned,w="right"===e.pinned,b=!A&&!w;p.useLayoutEffectOnce(function(){var t={setDisplayed:function(e){r(function(t){return t.setClass("ag-hidden",!e)}),a(!e)},setCtrls:function(e){return g(e)},setCenterWidth:function(e){y.current&&(y.current.style.width=e)},setViewportScrollLeft:function(e){v.current&&(v.current.scrollLeft=e)},setPinnedContainerWidth:function(e){v.current.style.width=e,v.current.style.minWidth=e,v.current.style.maxWidth=e}},n=m.createBean(new c.HeaderRowContainerCtrl(e.pinned));return n.setComp(t,v.current),function(){m.destroyBean(n)}});var _=s.useMemo(function(){return n.toString()},[n]),C=function(){return f.map(function(e){return s.default.createElement(d.default,{ctrl:e,key:e.getInstanceId()})})};return s.default.createElement(s.default.Fragment,null,A&&s.default.createElement("div",{ref:v,className:"ag-pinned-left-header "+_,"aria-hidden":i,role:"presentation"},C()),w&&s.default.createElement("div",{ref:v,className:"ag-pinned-right-header "+_,"aria-hidden":i,role:"presentation"},C()),b&&s.default.createElement("div",{ref:v,className:"ag-header-viewport "+_,role:"presentation"},s.default.createElement("div",{ref:y,className:"ag-header-container",role:"rowgroup"},C())))})},413(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSyncJsComp=t.showJsComp=void 0,t.showJsComp=function(e,t,r,o){if(e&&!e.componentFromFramework){var i=e.newAgStackInstance();if(i){var a,s,l=!1;return i.then(function(e){l?t.destroyBean(e):(s=(a=e).getGui(),r.appendChild(s),n(o,a))}),function(){l=!0,a&&(s&&s.parentElement&&s.parentElement.removeChild(s),t.destroyBean(a),o&&n(o,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})}},517(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(858);t.default=function(e,t){r.useEffectOnce(function(){var n=t.current,r=n.parentElement;if(r){var o=document.createComment(e);return r.insertBefore(o,n),function(){r.removeChild(o)}}})}},204(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=a(n(155)),u=n(777),d=n(413),p=n(840),h=n(287),f=l(n(944)),g=n(858);t.default=c.memo(function(e){var t=c.useContext(h.BeansContext).context,n=e.rowCtrl,o=e.containerType,i=c.useState(),a=i[0],l=i[1],m=c.useState(),v=m[0],y=m[1],A=c.useState(),w=A[0],b=A[1],_=c.useState(),C=_[0],E=_[1],S=c.useState(),O=S[0],x=S[1],D=c.useState(),P=D[0],M=D[1],T=c.useState({list:[],instanceIdMap:new Map}),R=T[0],I=T[1],F=c.useState(),k=F[0],L=F[1],B=c.useState(!1),N=B[0],j=B[1],U=c.useState(n.getInitialRowTop(o)),V=U[0],H=U[1],G=c.useState(n.getInitialTransform(o)),W=G[0],z=G[1],$=c.useRef(null),K=c.useRef(),Q=c.useRef(!1),q=c.useState(0),Y=q[0],X=q[1];c.useEffect(function(){var e;if(!Q.current&&k&&!(Y>10)){var t=null===(e=$.current)||void 0===e?void 0:e.firstChild;t?(n.setupDetailRowAutoHeight(t),Q.current=!0):X(function(e){return e+1})}},[k,Y]);var Z=c.useMemo(function(){return new u.CssClassManager(function(){return $.current})},[]);g.useLayoutEffectOnce(function(){if(n.isAlive()){var e={setTop:function(e){return H(e)},setTransform:function(e){return z(e)},addOrRemoveCssClass:function(e,t){return Z.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return j(e)},setRowIndex:function(e){return l(e)},setRowId:function(e){return y(e)},setRowBusinessKey:function(e){return E(e)},setTabIndex:function(e){return x(e)},setUserStyles:function(e){return M(e)},setRole:function(e){return b(e)},setCellCtrls:function(e){p.agFlushSync(function(){I(function(t){return function(e,t,n){if(n){var r={list:t,instanceIdMap:new Map};return t.forEach(function(e){return r.instanceIdMap.set(e.getInstanceId(),e)}),r}var o=[],i=[],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)&&(o.push(e),a.set(t,e))}),t.forEach(function(t){var n=t.getInstanceId();e.instanceIdMap.has(n)||(i.push(t),a.set(n,t))}),{list:s(o,i),instanceIdMap:a}}(t,e,N)})})},showFullWidth:function(e){return L(e)},getFullWidthCellRenderer:function(){return K.current}};return n.setComp(e,$.current,o),function(){n.unsetComp(o)}}}),c.useLayoutEffect(function(){return d.showJsComp(k,t,$.current,K)},[k]);var J,ee=c.useMemo(function(){var e={top:V,transform:W};return Object.assign(e,P),e},[V,W,P]),te=k&&k.componentFromFramework,ne=null!=R,re=c.useMemo(function(){return!(!(null==k?void 0:k.componentFromFramework)||!p.isComponentStateless(k.componentClass))},[k]);return c.default.createElement("div",{ref:$,role:w,style:ee,"row-index":a,"row-id":v,"row-business-key":C,tabIndex:O},ne&&R.list.map(function(e){return c.default.createElement(f.default,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})}),te&&(J=k.componentClass,c.default.createElement(c.default.Fragment,null,re&&c.default.createElement(J,r({},k.params)),!re&&c.default.createElement(J,r({},k.params,{ref:K})))))})},440(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(777),c=i(n(155)),u=n(840),d=s(n(517)),p=s(n(204)),h=n(287),f=n(858);t.default=c.memo(function(e){var t=c.useContext(h.BeansContext).context,n=c.useState([]),r=n[0],o=n[1],i=e.name,s=c.useMemo(function(){return l.getRowContainerTypeForName(i)},[i]),g=c.useRef(null),m=c.useRef(null),v=c.useRef(null),y=c.useRef([]),A=c.useRef(!1),w=c.useMemo(function(){return l.RowContainerCtrl.getRowContainerCssClasses(i)},[i]),b=c.useMemo(function(){return u.classesList(w.wrapper)},[]),_=c.useMemo(function(){return u.classesList(w.viewport)},[]),C=c.useMemo(function(){return u.classesList(w.container)},[]),E=i===l.RowContainerName.CENTER,S=i===l.RowContainerName.TOP_CENTER||i===l.RowContainerName.BOTTOM_CENTER||i===l.RowContainerName.STICKY_TOP_CENTER,O=!E&&!S,x=E?g:S?m:v;function D(){u.agFlushSync(function(){o(function(e){var t=y.current;if(A.current)return t;var n=e.filter(function(e){return t.indexOf(e)>=0}),r=t.filter(function(e){return n.indexOf(e)<0});return a(n,r)})})}d.default(" AG Row Container "+i+" ",x),f.useLayoutEffectOnce(function(){var e=[],n={setViewportHeight:function(e){return m.current.style.height=e},setRowCtrls:function(e){y.current!==e&&(y.current=e,D())},setDomOrder:function(e){A.current!=e&&(A.current=e,D())},setContainerWidth:function(e){return v.current.style.width=e}},r=t.createBean(new l.RowContainerCtrl(i));return e.push(r),r.setComp(n,v.current,m.current,g.current),function(){t.destroyBeans(e)}});var P=function(){return c.default.createElement("div",{className:C,ref:v,role:r.length?"rowgroup":"presentation"},r.map(function(e){return c.default.createElement(p.default,{rowCtrl:e,containerType:s,key:e.getInstanceId()})}))};return c.default.createElement(c.default.Fragment,null,E&&c.default.createElement("div",{className:b,ref:g,role:"presentation"},c.default.createElement("div",{className:_,ref:m,role:"presentation"},P())),S&&c.default.createElement("div",{className:_,ref:m,role:"presentation"},P()),O&&P())})},30(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(155)),s=n(777),l=n(287),c=n(858),u=a.forwardRef(function(e,t){var n=e.children,r=e.eFocusableElement,o=e.onTabKeyDown,i=e.gridCtrl,u=a.useContext(l.BeansContext).context,d=a.useRef(null),p=a.useRef(null),h=a.useRef(),f=a.useState(),g=f[0],m=f[1];a.useImperativeHandle(t,function(){return{forceFocusOutOfContainer:function(){h.current.forceFocusOutOfContainer()}}}),c.useLayoutEffectOnce(function(){var e=d.current,t=p.current,n={setTabIndex:function(e){return m(null==e?void 0:parseInt(e,10))}},a=h.current=u.createBean(new s.TabGuardCtrl({comp:n,eTopGuard:e,eBottomGuard:t,eFocusableElement:r,onTabKeyDown:o,focusInnerElement:function(e){return i.focusInnerElement(e)}}));return function(){u.destroyBean(a)}});var v=function(e){var t="top"===e?s.TabGuardClassNames.TAB_GUARD_TOP:s.TabGuardClassNames.TAB_GUARD_BOTTOM;return a.default.createElement("div",{className:s.TabGuardClassNames.TAB_GUARD+" "+t,role:"presentation",tabIndex:g,ref:"top"===e?d:p})};return a.default.createElement(a.default.Fragment,null,v("top"),n,v("bottom"))});t.default=a.memo(u)},858(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLayoutEffectOnce=t.useEffectOnce=void 0;var r=n(155);t.useEffectOnce=function(e){var t=r.useRef(e),n=r.useRef(),o=r.useRef(!1),i=r.useRef(!1),a=r.useState(0)[1];o.current&&(i.current=!0),r.useEffect(function(){return o.current||(n.current=t.current(),o.current=!0),a(function(e){return e+1}),function(){i.current&&n.current&&n.current()}},[])},t.useLayoutEffectOnce=function(e){var t=r.useRef(e),n=r.useRef(),o=r.useRef(!1),i=r.useRef(!1),a=r.useState(0)[1];o.current&&(i.current=!0),r.useLayoutEffect(function(){return o.current||(n.current=t.current(),o.current=!0),a(function(e){return e+1}),function(){i.current&&n.current&&n.current()}},[])}},840(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.agFlushSync=t.FlushSyncToggle=t.isComponentStateless=t.CssClasses=t.classesList=void 0;var i=o(n(514));t.classesList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return null!=e&&""!==e}).join(" ")};var a=function(){function e(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.classesMap={},t.forEach(function(t){e.classesMap[t]=!0})}return e.prototype.setClass=function(t,n){if(!!this.classesMap[t]==n)return this;var o=new e;return o.classesMap=r({},this.classesMap),o.classesMap[t]=n,o},e.prototype.toString=function(){var e=this;return Object.keys(this.classesMap).filter(function(t){return e.classesMap[t]}).join(" ")},e}();t.CssClasses=a,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)};var s=null!=i.default.createRoot&&null!=i.default.flushSync,l=!0;t.FlushSyncToggle={on:function(){return l=!0},off:function(){return l=!1}};var c=0;t.agFlushSync=function(e){s&&l&&0===c?(c++,i.default.flushSync(e),c--):e()}},301(e,t){"use strict";var n;t.ChangeDetectionStrategyType=void 0,(n=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={})).IdentityCheck="IdentityCheck",n.DeepValueCheck="DeepValueCheck",n.NoCheck="NoCheck"},245(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=0;t.default=function(){return"agPortalKey_"+ ++n}},405(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NewReactComponent=void 0;var s=n(155),l=n(514),c=n(777),u=n(251),d=n(931),p=a(n(245)),h=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.oldPortal=null,o.key=p.default(),o.portalKey=p.default(),o}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 c.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,i(i({},e),{key:this.key})),this.portal=l.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(){},""===d.renderToStaticMarkup(s.createElement(this.reactComponent,e))}catch(e){}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=h},168(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 r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.PortalManager=void 0;var r=function(){function e(t,n,r){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=n||"div",this.parent=t,this.maxComponentCreationTimeMs=r||e.MAX_COMPONENT_CREATION_TIME_IN_MS}return e.prototype.getPortals=function(){return this.portals},e.prototype.destroy=function(){this.destroyed=!0},e.prototype.destroyPortal=function(e){this.portals=this.portals.filter(function(t){return t!==e}),this.batchUpdate()},e.prototype.getComponentWrappingElement=function(){return this.wrappingElement},e.prototype.mountReactPortal=function(e,t,r){this.portals=n(this.portals,[e]),this.waitForInstance(t,r),this.batchUpdate()},e.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},e.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout(function(){e.destroyed||e.parent.forceUpdate(function(){e.hasPendingPortalUpdate=!1})}),this.hasPendingPortalUpdate=!0)},e.prototype.waitForInstance=function(e,t,n){var r=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout(function(){r.waitForInstance(e,t,n)})}},e.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,e}();t.PortalManager=r},251(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReactComponent=void 0;var o=function(e){function t(t,n,r){var o=e.call(this)||this;return o.portal=null,o.reactComponent=t,o.portalManager=n,o.componentType=r,o.statelessComponent=o.isStateless(o.reactComponent),o}return r(t,e),t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},t.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||"div");return n.classList.add("ag-react-container"),e.reactContainer=n,n},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach(function(t){return e.eParentElement.classList.add(t)}))},t.prototype.statelessComponentRendered=function(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0},t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelessComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},t.prototype.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},t.prototype.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===this.getMemoType()},t.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},t.prototype.callMethod=function(e,t){var n=this,r=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(r){var o=r[e];return o?o.apply(r,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0}setTimeout(function(){return n.callMethod(e,t)})},t.prototype.addMethod=function(e,t){this[e]=t},t}(function(){});t.ReactComponent=o},211(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReactFrameworkOverrides=void 0;var a=n(777),s=i(n(869)),l=i(n(163)),c=function(e){function t(t){var n=e.call(this)||this;return n.frameworkComponents={agGroupCellRenderer:s.default,agGroupRowRenderer:s.default,agDetailCellRenderer:l.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}(a.VanillaFrameworkOverrides);t.ReactFrameworkOverrides=c},22(e,t,n){t.AgGridReact=n(928).AgGridReact,t.ChangeDetectionStrategyType=n(301).ChangeDetectionStrategyType,t.AgGridReactUi=n(332).AgGridReactUi},999(e,t,n){"use strict";var r=n(848);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},67(e,t,n){e.exports=n(999)()},848(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},554(e,t,n){"use strict";var r=n(155);function o(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,a=/^[: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]*$/,s={},l={};function c(e){return!!i.call(l,e)||!i.call(s,e)&&(a.test(e)?l[e]=!0:(s[e]=!0,!1))}function u(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){d[e]=new u(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];d[t]=new u(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){d[e]=new u(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){d[e]=new u(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){d[e]=new u(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){d[e]=new u(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){d[e]=new u(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){d[e]=new u(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){d[e]=new u(e,5,!1,e.toLowerCase(),null,!1,!1)});var p=/[\-:]([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(p,h);d[t]=new u(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(p,h);d[t]=new u(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(p,h);d[t]=new u(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!1,!1)}),d.xlinkHref=new u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){d[e]=new u(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,r="",o=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}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var y=/([A-Z])/g,A=/^ms-/,w=Array.isArray;function b(e,t){return{insertionMode:e,selectedValue:t}}var _=new Map;function C(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(i.call(n,r)){var a=n[r];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===r.indexOf("--")){var s=v(r);a=v((""+a).trim())}else{s=r;var l=_.get(s);void 0!==l||(l=v(s.replace(y,"-$1").toLowerCase().replace(A,"-ms-")),_.set(s,l)),s=l,a="number"==typeof a?0===a||i.call(f,r)?""+a:a+"px":v((""+a).trim())}t?(t=!1,e.push(' style="',s,":",a)):e.push(";",s,":",a)}}t||e.push('"')}function E(e,t,n,r){switch(n){case"style":return void C(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',v(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',v(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',v(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',v(r),'"')}}else if(c(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',v(r),'"')}}function S(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(""+t)}}function O(e,t,n,r){e.push(P(n));var o,a=n=null;for(o in t)if(i.call(t,o)){var s=t[o];if(null!=s)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":a=s;break;default:E(e,r,o,s)}}return e.push(">"),S(e,a,n),"string"==typeof n?(e.push(v(n)),null):n}var x=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,D=new Map;function P(e){var t=D.get(e);if(void 0===t){if(!x.test(e))throw Error(o(65,e));t="<"+e,D.set(e,t)}return t}function M(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(o(395));return e.push(n),e.push('"></template>')}var T=/[<\u2028\u2029]/g;function R(e){return JSON.stringify(e).replace(T,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,r){return n.generateStaticMarkup?(e.push(v(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(v(t)),e=!0),e)}var F=Object.assign,k=Symbol.for("react.element"),L=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),V=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),K=Symbol.for("react.scope"),Q=Symbol.for("react.debug_trace_mode"),q=Symbol.for("react.legacy_hidden"),Y=Symbol.for("react.default_value"),X=Symbol.iterator;function Z(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 B:return"Fragment";case L:return"Portal";case j:return"Profiler";case N:return"StrictMode";case G:return"Suspense";case W:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case V:return(e.displayName||"Context")+".Consumer";case U:return(e._context.displayName||"Context")+".Provider";case H: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:Z(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return Z(e(t))}catch(e){}}return null}var J={};function ee(e,t){if(!(e=e.contextTypes))return J;var n,r={};for(n in e)r[n]=t[n];return r}var te=null;function ne(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(o(401))}else{if(null===n)throw Error(o(401));ne(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function oe(e){var t=e.parent;null!==t&&oe(t),e.context._currentValue2=e.value}function ie(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?ne(e,t):ie(e,t)}function ae(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?ne(e,n):ae(e,n),t.context._currentValue2=t.value}function se(e){var t=te;t!==e&&(null===t?oe(e):null===e?re(t):t.depth===e.depth?ne(t,e):t.depth>e.depth?ie(t,e):ae(t,e),te=e)}var le={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,r){var o=void 0!==e.state?e.state:null;e.updater=le,e.props=n,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var a=t.contextType;if(e.context="object"==typeof a&&null!==a?a._currentValue2:r,"function"==typeof(a=t.getDerivedStateFromProps)&&(o=null==(a=a(n,o))?o:F({},o,a),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&le.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&1===t.length)e.state=t[0];else{for(i=a?t[0]:e.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"==typeof s?s.call(e,i,n,r):s)&&(o?(o=!1,i=F({},i,s)):F(i,s))}e.state=i}else i.queue=null}var ue={id:1,overflow:""};function de(e,t,n){var r=e.id;e=e.overflow;var o=32-pe(r)-1;r&=~(1<<o),n+=1;var i=32-pe(t)+o;if(30<i){var a=o-o%5;return i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,{id:1<<32-pe(t)+o|n<<o|r,overflow:i+e}}return{id:1<<i|n<<o|r,overflow:e}}var pe=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(he(e)/fe|0)|0},he=Math.log,fe=Math.LN2,ge="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},me=null,ve=null,ye=null,Ae=null,we=!1,be=!1,_e=0,Ce=null,Ee=0;function Se(){if(null===me)throw Error(o(321));return me}function Oe(){if(0<Ee)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function xe(){return null===Ae?null===ye?(we=!1,ye=Ae=Oe()):(we=!0,Ae=ye):null===Ae.next?(we=!1,Ae=Ae.next=Oe()):(we=!0,Ae=Ae.next),Ae}function De(){ve=me=null,be=!1,ye=null,Ee=0,Ae=Ce=null}function Pe(e,t){return"function"==typeof t?t(e):t}function Me(e,t,n){if(me=Se(),Ae=xe(),we){var r=Ae.queue;if(t=r.dispatch,null!==Ce&&void 0!==(n=Ce.get(r))){Ce.delete(r),r=Ae.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Ae.memoizedState=r,[r,t]}return[Ae.memoizedState,t]}return e=e===Pe?"function"==typeof t?t():t:void 0!==n?n(t):t,Ae.memoizedState=e,e=(e=Ae.queue={last:null,dispatch:null}).dispatch=Re.bind(null,me,e),[Ae.memoizedState,e]}function Te(e,t){if(me=Se(),t=void 0===t?null:t,null!==(Ae=xe())){var n=Ae.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!ge(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Ae.memoizedState=[e,t],e}function Re(e,t,n){if(25<=Ee)throw Error(o(301));if(e===me)if(be=!0,e={action:n,next:null},null===Ce&&(Ce=new Map),void 0===(n=Ce.get(t)))Ce.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Ie(){throw Error(o(394))}function Fe(){}var ke={readContext:function(e){return e._currentValue2},useContext:function(e){return Se(),e._currentValue2},useMemo:Te,useReducer:Me,useRef:function(e){me=Se();var t=(Ae=xe()).memoizedState;return null===t?(e={current:e},Ae.memoizedState=e):t},useState:function(e){return Me(Pe,e)},useInsertionEffect:Fe,useLayoutEffect:function(){},useCallback:function(e,t){return Te(function(){return e},t)},useImperativeHandle:Fe,useEffect:Fe,useDebugValue:Fe,useDeferredValue:function(e){return Se(),e},useTransition:function(){return Se(),[!1,Ie]},useId:function(){var e=ve.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-pe(e)-1)).toString(32)+t;var n=Le;if(null===n)throw Error(o(404));return t=_e++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Se(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},Le=null,Be=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ne(e){return console.error(e),null}function je(){}function Ue(e,t,n,r,o,i,a,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&tt(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(l),l}function Ve(e,t,n,r,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:i}}function He(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 Ge(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 We(e,t,n,r,o){for(me={},ve=t,_e=0,e=n(r,o);be;)be=!1,_e=0,Ee+=1,Ae=null,e=n(r,o);return De(),e}function ze(e,t,n,r){var i=n.render(),a=r.childContextTypes;if(null!=a){var s=t.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in a))throw Error(o(108,Z(r)||"Unknown",l));r=F({},s,n)}t.legacyContext=r,Qe(e,t,i),t.legacyContext=s}else Qe(e,t,i)}function $e(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ke(e,t,n,a,s){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){s=ee(n,t.legacyContext);var l=n.contextType;ce(l=new n(a,"object"==typeof l&&null!==l?l._currentValue2:s),n,a,s),ze(e,t,l,n)}else{s=We(e,t,n,a,l=ee(n,t.legacyContext));var u=0!==_e;if("object"==typeof s&&null!==s&&"function"==typeof s.render&&void 0===s.$$typeof)ce(s,n,a,l),ze(e,t,s,n);else if(u){a=t.treeContext,t.treeContext=de(a,1,0);try{Qe(e,t,s)}finally{t.treeContext=a}}else Qe(e,t,s)}else{if("string"!=typeof n){switch(n){case q:case Q:case N:case j:case B:case W:return void Qe(e,t,a.children);case K:throw Error(o(343));case G:e:{n=t.blockedBoundary,s=t.blockedSegment,l=a.fallback,a=a.children;var d={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:u=new Set,errorDigest:null},p=Ve(0,s.chunks.length,d,s.formatContext,!1,!1);s.children.push(p),s.lastPushedText=!1;var h=Ve(0,0,null,s.formatContext,!1,!1);h.parentFlushed=!0,t.blockedBoundary=d,t.blockedSegment=h;try{if(Ye(e,t,a),e.responseState.generateStaticMarkup||h.lastPushedText&&h.textEmbedded&&h.chunks.push("\x3c!-- --\x3e"),h.status=1,Je(d,h),0===d.pendingTasks)break e}catch(t){h.status=4,d.forceClientRender=!0,d.errorDigest=He(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=s}t=Ue(e,l,n,p,u,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case H:if(a=We(e,t,n.render,a,s),0!==_e){n=t.treeContext,t.treeContext=de(n,1,0);try{Qe(e,t,a)}finally{t.treeContext=n}}else Qe(e,t,a);return;case z:return void Ke(e,t,n=n.type,a=$e(n,a),s);case U:if(s=a.children,n=n._context,a=a.value,l=n._currentValue2,n._currentValue2=a,te=a={parent:u=te,depth:null===u?0:u.depth+1,context:n,parentValue:l,value:a},t.context=a,Qe(e,t,s),null===(e=te))throw Error(o(403));return a=e.parentValue,e.context._currentValue2=a===Y?e.context._defaultValue:a,e=te=e.parent,void(t.context=e);case V:return void Qe(e,t,a=(a=a.children)(n._currentValue2));case $:return void Ke(e,t,n=(s=n._init)(n._payload),a=$e(n,a),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(l=function(e,t,n,a,s){switch(t){case"select":e.push(P("select"));var l=null,u=null;for(f in n)if(i.call(n,f)){var d=n[f];if(null!=d)switch(f){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"defaultValue":case"value":break;default:E(e,a,f,d)}}return e.push(">"),S(e,u,l),l;case"option":u=s.selectedValue,e.push(P("option"));var p=d=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":d=g;break;case"selected":h=g;break;case"dangerouslySetInnerHTML":f=g;break;case"value":p=g;default:E(e,a,l,g)}}if(null!=u)if(n=null!==p?""+p:function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(d),w(u)){for(a=0;a<u.length;a++)if(""+u[a]===n){e.push(' selected=""');break}}else""+u===n&&e.push(' selected=""');else h&&e.push(' selected=""');return e.push(">"),S(e,f,d),d;case"textarea":for(d in e.push(P("textarea")),f=u=l=null,n)if(i.call(n,d)&&null!=(p=n[d]))switch(d){case"children":f=p;break;case"value":l=p;break;case"defaultValue":u=p;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:E(e,a,d,p)}if(null===l&&null!==u&&(l=u),e.push(">"),null!=f){if(null!=l)throw Error(o(92));if(w(f)&&1<f.length)throw Error(o(93));l=""+f}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(v(""+l)),null;case"input":for(u in e.push(P("input")),p=f=d=l=null,n)if(i.call(n,u)&&null!=(h=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":p=h;break;case"defaultValue":d=h;break;case"checked":f=h;break;case"value":l=h;break;default:E(e,a,u,h)}return null!==f?E(e,a,"checked",f):null!==p&&E(e,a,"checked",p),null!==l?E(e,a,"value",l):null!==d&&E(e,a,"value",d),e.push("/>"),null;case"menuitem":for(var m in e.push(P("menuitem")),n)if(i.call(n,m)&&null!=(l=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:E(e,a,m,l)}return e.push(">"),null;case"title":for(g in e.push(P("title")),l=null,n)if(i.call(n,g)&&null!=(u=n[g]))switch(g){case"children":l=u;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:E(e,a,g,u)}return e.push(">"),l;case"listing":case"pre":for(p in e.push(P(t)),u=l=null,n)if(i.call(n,p)&&null!=(d=n[p]))switch(p){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;default:E(e,a,p,d)}if(e.push(">"),null!=u){if(null!=l)throw Error(o(60));if("object"!=typeof u||!("__html"in u))throw Error(o(61));null!=(n=u.__html)&&("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(P(t)),n)if(i.call(n,y)&&null!=(l=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:E(e,a,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,a);case"html":return 0===s.insertionMode&&e.push("<!DOCTYPE html>"),O(e,n,t,a);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return O(e,n,t,a);for(h in e.push(P(t)),u=l=null,n)if(i.call(n,h)&&null!=(d=n[h]))switch(h){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"style":C(e,a,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:c(h)&&"function"!=typeof d&&"symbol"!=typeof d&&e.push(" ",h,'="',v(d),'"')}return e.push(">"),S(e,u,l),l}}((s=t.blockedSegment).chunks,n,a,e.responseState,s.formatContext),s.lastPushedText=!1,u=s.formatContext,s.formatContext=function(e,t,n){switch(t){case"select":return b(1,null!=n.value?n.value:n.defaultValue);case"svg":return b(2,null);case"math":return b(3,null);case"foreignObject":return b(1,null);case"table":return b(4,null);case"thead":case"tbody":case"tfoot":return b(5,null);case"colgroup":return b(7,null);case"tr":return b(6,null)}return 4<=e.insertionMode||0===e.insertionMode?b(1,null):e}(u,n,a),Ye(e,t,l),s.formatContext=u,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:s.chunks.push("</",n,">")}s.lastPushedText=!1}}function Qe(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case k:return void Ke(e,t,n.type,n.props,n.ref);case L:throw Error(o(257));case $:var r=n._init;return void Qe(e,t,n=r(n._payload))}if(w(n))return void qe(e,t,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=X&&n[X]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var i=[];do{i.push(n.value),n=r.next()}while(!n.done);qe(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function qe(e,t,n){for(var r=n.length,o=0;o<r;o++){var i=t.treeContext;t.treeContext=de(i,r,o);try{Ye(e,t,n[o])}finally{t.treeContext=i}}}function Ye(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return Qe(e,t,n)}catch(l){if(De(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,se(i),l;n=l;var a=t.blockedSegment,s=Ve(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=Ue(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,se(i)}}function Xe(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,et(this,t,e)}function Ze(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return Ze(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Je(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&&Je(e,n)}else e.completedSegments.push(t)}function et(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=je,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Je(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Xe,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Je(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function tt(e){if(2!==e.status){var t=te,n=Be.current;Be.current=ke;var r=Le;Le=e.responseState;try{var o,i=e.pingedTasks;for(o=0;o<i.length;o++){var a=i[o],s=e,l=a.blockedSegment;if(0===l.status){se(a.context);try{Qe(s,a,a.node),s.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),a.abortSet.delete(a),l.status=1,et(s,a.blockedBoundary,l)}catch(e){if(De(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=a.ping;e.then(c,c)}else{a.abortSet.delete(a),l.status=4;var u=a.blockedBoundary,d=e,p=He(s,d);null===u?Ge(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks&&(0,s.onAllReady)()}}}}i.splice(0,o),null!==e.destination&&st(e,e.destination)}catch(t){He(e,t),Ge(e,t)}finally{Le=r,Be.current=n,n===ke&&se(t)}}}function nt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var i=!0;r=n.chunks;var a=0;n=n.children;for(var s=0;s<n.length;s++){for(i=n[s];a<i.index;a++)t.push(r[a]);i=rt(e,t,i)}for(;a<r.length-1;a++)t.push(r[a]);return a<r.length&&(i=t.push(r[a])),i;default:throw Error(o(390))}}function rt(e,t,n){var r=n.boundary;if(null===r)return nt(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=v(r),t.push(r),t.push('"')),t.push("></template>")),nt(e,t,n),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var i=e.responseState,a=i.nextSuspenseID++;return i=i.boundaryPrefix+a.toString(16),r=r.id=i,M(t,e.responseState,r),nt(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),M(t,e.responseState,r.id),nt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(o(391));return rt(e,t,n[0]),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function ot(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(o(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(o(397))}}(t,n.formatContext)}function it(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++)at(e,t,n,r[i]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(o(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function at(e,t,n,r){if(2===r.status)return!0;var i=r.id;if(-1===i){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return ot(e,t,r)}return ot(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),i=i.toString(16),t.push(i),t.push('","'),t.push(e.placeholderPrefix),t.push(i),t.push('")<\/script>')}function st(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var i,a=e.clientRenderedBoundaries;for(i=0;i<a.length;i++){var s=a[i];r=t;var l=e.responseState,c=s.id,u=s.errorDigest,d=s.errorMessage,p=s.errorComponentStack;if(r.push(l.startInlineScript),l.sentClientRenderFunction?r.push('$RX("'):(l.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===c)throw Error(o(395));if(r.push(c),r.push('"'),u||d||p){r.push(",");var h=R(u||"");r.push(h)}if(d||p){r.push(",");var f=R(d||"");r.push(f)}if(p){r.push(",");var g=R(p);r.push(g)}if(!r.push(")<\/script>"))return e.destination=null,i++,void a.splice(0,i)}a.splice(0,i);var m=e.completedBoundaries;for(i=0;i<m.length;i++)if(!it(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:{a=e,s=t;var A=y.completedSegments;for(l=0;l<A.length;l++)if(!at(a,s,y,A[l])){l++,A.splice(0,l);var w=!1;break e}A.splice(0,l),w=!0}if(!w)return e.destination=null,i++,void v.splice(0,i)}v.splice(0,i);var b=e.completedBoundaries;for(i=0;i<b.length;i++)if(!it(e,t,b[i]))return e.destination=null,i++,void b.splice(0,i);b.splice(0,i)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function lt(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Ze(n,e,t)}),n.clear(),null!==e.destination&&st(e,e.destination)}catch(t){He(e,t),Ge(e,t)}}function ct(){}function ut(e,t,n,r){var i=!1,a=null,s="",l={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){i=!0,a=e}},c=!1;if(e=function(e,t,n,r,o,i,a){var s=[],l=new Set;return(n=Ve(t={destination:null,responseState:t,progressiveChunkSize:1/0,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:l,pingedTasks:s,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?Ne:o,onAllReady:je,onShellReady:void 0===a?je:a,onShellError:je,onFatalError:je},0,null,n,!1,!1)).parentFlushed=!0,e=Ue(t,e,null,n,l,J,null,ue),s.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},0,ct,0,function(){c=!0}),tt(e),lt(e,r),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{st(e,l)}catch(t){He(e,t),Ge(e,t)}}if(i)throw a;if(!c)throw Error(o(426));return s}t.renderToNodeStream=function(){throw Error(o(207))},t.renderToStaticMarkup=function(e,t){return ut(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(o(208))},t.renderToString=function(e,t){return ut(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.3.1"},882(e,t,n){"use strict";var r=n(155);function o(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,a=0;function s(e,t){if(0!==t.length)if(512<t.length)0<a&&(e.enqueue(new Uint8Array(i.buffer,0,a)),i=new Uint8Array(512),a=0),e.enqueue(t);else{var n=i.length-a;n<t.length&&(0===n?e.enqueue(i):(i.set(t.subarray(0,n),a),e.enqueue(i),t=t.subarray(n)),i=new Uint8Array(512),a=0),i.set(t,a),a+=t.length}}function l(e,t){return s(e,t),!0}function c(e){i&&0<a&&(e.enqueue(new Uint8Array(i.buffer,0,a)),i=null,a=0)}var u=new TextEncoder;function d(e){return u.encode(e)}function p(e){return u.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 A(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){w[e]=new A(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 A(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){w[e]=new A(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){w[e]=new A(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 A(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){w[e]=new A(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){w[e]=new A(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){w[e]=new A(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){w[e]=new A(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function _(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(b,_);w[t]=new A(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 A(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 A(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){w[e]=new A(e,1,!1,e.toLowerCase(),null,!1,!1)}),w.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){w[e]=new A(e,1,!1,e.toLowerCase(),null,!0,!0)});var C={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},E=["Webkit","ms","Moz","O"];Object.keys(C).forEach(function(e){E.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),C[t]=C[e]})});var S=/["'&<>]/;function O(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=S.exec(e);if(t){var n,r="",o=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}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var x=/([A-Z])/g,D=/^ms-/,P=Array.isArray,M=p("<script>"),T=p("<\/script>"),R=p('<script src="'),I=p('<script type="module" src="'),F=p('" async=""><\/script>'),k=/(<\/|<)(s)(cript)/gi;function L(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function B(e,t){return{insertionMode:e,selectedValue:t}}var N=p("\x3c!-- --\x3e");function j(e,t,n,r){return""===t?r:(r&&e.push(N),e.push(d(O(t))),!0)}var U=new Map,V=p(' style="'),H=p(":"),G=p(";");function W(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(f.call(n,r)){var i=n[r];if(null!=i&&"boolean"!=typeof i&&""!==i){if(0===r.indexOf("--")){var a=d(O(r));i=d(O((""+i).trim()))}else{a=r;var s=U.get(a);void 0!==s||(s=p(O(a.replace(x,"-$1").toLowerCase().replace(D,"-ms-"))),U.set(a,s)),a=s,i="number"==typeof i?0===i||f.call(C,r)?d(""+i):d(i+"px"):d(O((""+i).trim()))}t?(t=!1,e.push(V,a,H,i)):e.push(G,a,H,i)}}t||e.push(K)}var z=p(" "),$=p('="'),K=p('"'),Q=p('=""');function q(e,t,n,r){switch(n){case"style":return void W(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=w.hasOwnProperty(n)?w[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:r&&e.push(z,n,Q);break;case 4:!0===r?e.push(z,n,Q):!1!==r&&e.push(z,n,$,d(O(r)),K);break;case 5:isNaN(r)||e.push(z,n,$,d(O(r)),K);break;case 6:!isNaN(r)&&1<=r&&e.push(z,n,$,d(O(r)),K);break;default:t.sanitizeURL&&(r=""+r),e.push(z,n,$,d(O(r)),K)}}else if(y(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(z,d(n),$,d(O(r)),K)}}var Y=p(">"),X=p("/>");function Z(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(d(""+t))}}var J=p(' selected=""');function ee(e,t,n,r){e.push(oe(n));var o,i=n=null;for(o in t)if(f.call(t,o)){var a=t[o];if(null!=a)switch(o){case"children":n=a;break;case"dangerouslySetInnerHTML":i=a;break;default:q(e,r,o,a)}}return e.push(Y),Z(e,i,n),"string"==typeof n?(e.push(d(O(n))),null):n}var te=p("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,re=new Map;function oe(e){var t=re.get(e);if(void 0===t){if(!ne.test(e))throw Error(o(65,e));t=p("<"+e),re.set(e,t)}return t}var ie=p("<!DOCTYPE html>"),ae=p("</"),se=p(">"),le=p('<template id="'),ce=p('"></template>'),ue=p("\x3c!--$--\x3e"),de=p('\x3c!--$?--\x3e<template id="'),pe=p('"></template>'),he=p("\x3c!--$!--\x3e"),fe=p("\x3c!--/$--\x3e"),ge=p("<template"),me=p('"'),ve=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var ye=p("></template>");function Ae(e,t,n){if(s(e,de),null===n)throw Error(o(395));return s(e,n),l(e,pe)}var we=p('<div hidden id="'),be=p('">'),_e=p("</div>"),Ce=p('<svg aria-hidden="true" style="display:none" id="'),Ee=p('">'),Se=p("</svg>"),Oe=p('<math aria-hidden="true" style="display:none" id="'),xe=p('">'),De=p("</math>"),Pe=p('<table hidden id="'),Me=p('">'),Te=p("</table>"),Re=p('<table hidden><tbody id="'),Ie=p('">'),Fe=p("</tbody></table>"),ke=p('<table hidden><tr id="'),Le=p('">'),Be=p("</tr></table>"),Ne=p('<table hidden><colgroup id="'),je=p('">'),Ue=p("</colgroup></table>"),Ve=p('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("'),He=p('$RS("'),Ge=p('","'),We=p('")<\/script>'),ze=p('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("'),$e=p('$RC("'),Ke=p('","'),Qe=p('")<\/script>'),qe=p('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("'),Ye=p('$RX("'),Xe=p('"'),Ze=p(")<\/script>"),Je=p(","),et=/[<\u2028\u2029]/g;function tt(e){return JSON.stringify(e).replace(et,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 nt=Object.assign,rt=Symbol.for("react.element"),ot=Symbol.for("react.portal"),it=Symbol.for("react.fragment"),at=Symbol.for("react.strict_mode"),st=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),ct=Symbol.for("react.context"),ut=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),pt=Symbol.for("react.suspense_list"),ht=Symbol.for("react.memo"),ft=Symbol.for("react.lazy"),gt=Symbol.for("react.scope"),mt=Symbol.for("react.debug_trace_mode"),vt=Symbol.for("react.legacy_hidden"),yt=Symbol.for("react.default_value"),At=Symbol.iterator;function wt(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 it:return"Fragment";case ot:return"Portal";case st:return"Profiler";case at:return"StrictMode";case dt:return"Suspense";case pt:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ct:return(e.displayName||"Context")+".Consumer";case lt:return(e._context.displayName||"Context")+".Provider";case ut:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ht:return null!==(t=e.displayName||null)?t:wt(e.type)||"Memo";case ft:t=e._payload,e=e._init;try{return wt(e(t))}catch(e){}}return null}var bt={};function _t(e,t){if(!(e=e.contextTypes))return bt;var n,r={};for(n in e)r[n]=t[n];return r}var Ct=null;function Et(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(o(401))}else{if(null===n)throw Error(o(401));Et(e,n)}t.context._currentValue=t.value}}function St(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&St(e)}function Ot(e){var t=e.parent;null!==t&&Ot(t),e.context._currentValue=e.value}function xt(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?Et(e,t):xt(e,t)}function Dt(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?Et(e,n):Dt(e,n),t.context._currentValue=t.value}function Pt(e){var t=Ct;t!==e&&(null===t?Ot(e):null===e?St(t):t.depth===e.depth?Et(t,e):t.depth>e.depth?xt(t,e):Dt(t,e),Ct=e)}var Mt={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 Tt(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=Mt,e.props=n,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var a=t.contextType;if(e.context="object"==typeof a&&null!==a?a._currentValue:r,"function"==typeof(a=t.getDerivedStateFromProps)&&(o=null==(a=a(n,o))?o:nt({},o,a),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Mt.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&1===t.length)e.state=t[0];else{for(i=a?t[0]:e.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"==typeof s?s.call(e,i,n,r):s)&&(o?(o=!1,i=nt({},i,s)):nt(i,s))}e.state=i}else i.queue=null}var Rt={id:1,overflow:""};function It(e,t,n){var r=e.id;e=e.overflow;var o=32-Ft(r)-1;r&=~(1<<o),n+=1;var i=32-Ft(t)+o;if(30<i){var a=o-o%5;return i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,{id:1<<32-Ft(t)+o|n<<o|r,overflow:i+e}}return{id:1<<i|n<<o|r,overflow:e}}var Ft=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(kt(e)/Lt|0)|0},kt=Math.log,Lt=Math.LN2,Bt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Nt=null,jt=null,Ut=null,Vt=null,Ht=!1,Gt=!1,Wt=0,zt=null,$t=0;function Kt(){if(null===Nt)throw Error(o(321));return Nt}function Qt(){if(0<$t)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function qt(){return null===Vt?null===Ut?(Ht=!1,Ut=Vt=Qt()):(Ht=!0,Vt=Ut):null===Vt.next?(Ht=!1,Vt=Vt.next=Qt()):(Ht=!0,Vt=Vt.next),Vt}function Yt(){jt=Nt=null,Gt=!1,Ut=null,$t=0,Vt=zt=null}function Xt(e,t){return"function"==typeof t?t(e):t}function Zt(e,t,n){if(Nt=Kt(),Vt=qt(),Ht){var r=Vt.queue;if(t=r.dispatch,null!==zt&&void 0!==(n=zt.get(r))){zt.delete(r),r=Vt.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Vt.memoizedState=r,[r,t]}return[Vt.memoizedState,t]}return e=e===Xt?"function"==typeof t?t():t:void 0!==n?n(t):t,Vt.memoizedState=e,e=(e=Vt.queue={last:null,dispatch:null}).dispatch=en.bind(null,Nt,e),[Vt.memoizedState,e]}function Jt(e,t){if(Nt=Kt(),t=void 0===t?null:t,null!==(Vt=qt())){var n=Vt.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Bt(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Vt.memoizedState=[e,t],e}function en(e,t,n){if(25<=$t)throw Error(o(301));if(e===Nt)if(Gt=!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 tn(){throw Error(o(394))}function nn(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return Kt(),e._currentValue},useMemo:Jt,useReducer:Zt,useRef:function(e){Nt=Kt();var t=(Vt=qt()).memoizedState;return null===t?(e={current:e},Vt.memoizedState=e):t},useState:function(e){return Zt(Xt,e)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(e,t){return Jt(function(){return e},t)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(e){return Kt(),e},useTransition:function(){return Kt(),[!1,tn]},useId:function(){var e=jt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Ft(e)-1)).toString(32)+t;var n=on;if(null===n)throw Error(o(404));return t=Wt++,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(o(407));return n()}},on=null,an=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function sn(e){return console.error(e),null}function ln(){}function cn(e,t,n,r,o,i,a,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&En(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(l),l}function un(e,t,n,r,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:i}}function 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 pn(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 hn(e,t,n,r,o){for(Nt={},jt=t,Wt=0,e=n(r,o);Gt;)Gt=!1,Wt=0,$t+=1,Vt=null,e=n(r,o);return Yt(),e}function fn(e,t,n,r){var i=n.render(),a=r.childContextTypes;if(null!=a){var s=t.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in a))throw Error(o(108,wt(r)||"Unknown",l));r=nt({},s,n)}t.legacyContext=r,vn(e,t,i),t.legacyContext=s}else vn(e,t,i)}function gn(e,t){if(e&&e.defaultProps){for(var n in t=nt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function mn(e,t,n,i,a){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){a=_t(n,t.legacyContext);var s=n.contextType;Tt(s=new n(i,"object"==typeof s&&null!==s?s._currentValue:a),n,i,a),fn(e,t,s,n)}else{a=hn(e,t,n,i,s=_t(n,t.legacyContext));var l=0!==Wt;if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof)Tt(a,n,i,s),fn(e,t,a,n);else if(l){i=t.treeContext,t.treeContext=It(i,1,0);try{vn(e,t,a)}finally{t.treeContext=i}}else vn(e,t,a)}else{if("string"!=typeof n){switch(n){case vt:case mt:case at:case st:case it:case pt:return void vn(e,t,i.children);case gt:throw Error(o(343));case dt:e:{n=t.blockedBoundary,a=t.blockedSegment,s=i.fallback,i=i.children;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l=new Set,errorDigest:null},u=un(0,a.chunks.length,c,a.formatContext,!1,!1);a.children.push(u),a.lastPushedText=!1;var p=un(0,0,null,a.formatContext,!1,!1);p.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=p;try{if(An(e,t,i),p.lastPushedText&&p.textEmbedded&&p.chunks.push(N),p.status=1,_n(c,p),0===c.pendingTasks)break e}catch(t){p.status=4,c.forceClientRender=!0,c.errorDigest=dn(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=a}t=cn(e,s,n,u,l,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case ut:if(i=hn(e,t,n.render,i,a),0!==Wt){n=t.treeContext,t.treeContext=It(n,1,0);try{vn(e,t,i)}finally{t.treeContext=n}}else vn(e,t,i);return;case ht:return void mn(e,t,n=n.type,i=gn(n,i),a);case lt:if(a=i.children,n=n._context,i=i.value,s=n._currentValue,n._currentValue=i,Ct=i={parent:l=Ct,depth:null===l?0:l.depth+1,context:n,parentValue:s,value:i},t.context=i,vn(e,t,a),null===(e=Ct))throw Error(o(403));return i=e.parentValue,e.context._currentValue=i===yt?e.context._defaultValue:i,e=Ct=e.parent,void(t.context=e);case ct:return void vn(e,t,i=(i=i.children)(n._currentValue));case ft:return void mn(e,t,n=(a=n._init)(n._payload),i=gn(n,i),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(s=function(e,t,n,i,a){switch(t){case"select":e.push(oe("select"));var s=null,l=null;for(h in n)if(f.call(n,h)){var c=n[h];if(null!=c)switch(h){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;case"defaultValue":case"value":break;default:q(e,i,h,c)}}return e.push(Y),Z(e,l,s),s;case"option":l=a.selectedValue,e.push(oe("option"));var u=c=null,p=null,h=null;for(s in n)if(f.call(n,s)){var g=n[s];if(null!=g)switch(s){case"children":c=g;break;case"selected":p=g;break;case"dangerouslySetInnerHTML":h=g;break;case"value":u=g;default:q(e,i,s,g)}}if(null!=l)if(n=null!==u?""+u:function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(c),P(l)){for(i=0;i<l.length;i++)if(""+l[i]===n){e.push(J);break}}else""+l===n&&e.push(J);else p&&e.push(J);return e.push(Y),Z(e,h,c),c;case"textarea":for(c in e.push(oe("textarea")),h=l=s=null,n)if(f.call(n,c)&&null!=(u=n[c]))switch(c){case"children":h=u;break;case"value":s=u;break;case"defaultValue":l=u;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:q(e,i,c,u)}if(null===s&&null!==l&&(s=l),e.push(Y),null!=h){if(null!=s)throw Error(o(92));if(P(h)&&1<h.length)throw Error(o(93));s=""+h}return"string"==typeof s&&"\n"===s[0]&&e.push(te),null!==s&&e.push(d(O(""+s))),null;case"input":for(l in e.push(oe("input")),u=h=c=s=null,n)if(f.call(n,l)&&null!=(p=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":u=p;break;case"defaultValue":c=p;break;case"checked":h=p;break;case"value":s=p;break;default:q(e,i,l,p)}return null!==h?q(e,i,"checked",h):null!==u&&q(e,i,"checked",u),null!==s?q(e,i,"value",s):null!==c&&q(e,i,"value",c),e.push(X),null;case"menuitem":for(var m in e.push(oe("menuitem")),n)if(f.call(n,m)&&null!=(s=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:q(e,i,m,s)}return e.push(Y),null;case"title":for(g in e.push(oe("title")),s=null,n)if(f.call(n,g)&&null!=(l=n[g]))switch(g){case"children":s=l;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:q(e,i,g,l)}return e.push(Y),s;case"listing":case"pre":for(u in e.push(oe(t)),l=s=null,n)if(f.call(n,u)&&null!=(c=n[u]))switch(u){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;default:q(e,i,u,c)}if(e.push(Y),null!=l){if(null!=s)throw Error(o(60));if("object"!=typeof l||!("__html"in l))throw Error(o(61));null!=(n=l.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(te,d(n)):e.push(d(""+n)))}return"string"==typeof s&&"\n"===s[0]&&e.push(te),s;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(oe(t)),n)if(f.call(n,v)&&null!=(s=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:q(e,i,v,s)}return e.push(X),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===a.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(p in e.push(oe(t)),l=s=null,n)if(f.call(n,p)&&null!=(c=n[p]))switch(p){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;case"style":W(e,i,c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(p)&&"function"!=typeof c&&"symbol"!=typeof c&&e.push(z,d(p),$,d(O(c)),K)}return e.push(Y),Z(e,l,s),s}}((a=t.blockedSegment).chunks,n,i,e.responseState,a.formatContext),a.lastPushedText=!1,l=a.formatContext,a.formatContext=function(e,t,n){switch(t){case"select":return B(1,null!=n.value?n.value:n.defaultValue);case"svg":return B(2,null);case"math":return B(3,null);case"foreignObject":return B(1,null);case"table":return B(4,null);case"thead":case"tbody":case"tfoot":return B(5,null);case"colgroup":return B(7,null);case"tr":return B(6,null)}return 4<=e.insertionMode||0===e.insertionMode?B(1,null):e}(l,n,i),An(e,t,s),a.formatContext=l,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:a.chunks.push(ae,d(n),se)}a.lastPushedText=!1}}function vn(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case rt:return void mn(e,t,n.type,n.props,n.ref);case ot:throw Error(o(257));case ft:var r=n._init;return void vn(e,t,n=r(n._payload))}if(P(n))return void yn(e,t,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=At&&n[At]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var i=[];do{i.push(n.value),n=r.next()}while(!n.done);yn(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=j(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=j(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function yn(e,t,n){for(var r=n.length,o=0;o<r;o++){var i=t.treeContext;t.treeContext=It(i,r,o);try{An(e,t,n[o])}finally{t.treeContext=i}}}function An(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return vn(e,t,n)}catch(l){if(Yt(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,Pt(i),l;n=l;var a=t.blockedSegment,s=un(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=cn(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,Pt(i)}}function wn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Cn(this,t,e)}function bn(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return bn(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function _n(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&&_n(e,n)}else e.completedSegments.push(t)}function Cn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ln,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&_n(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(wn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(_n(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function En(e){if(2!==e.status){var t=Ct,n=an.current;an.current=rn;var r=on;on=e.responseState;try{var o,i=e.pingedTasks;for(o=0;o<i.length;o++){var a=i[o],s=e,l=a.blockedSegment;if(0===l.status){Pt(a.context);try{vn(s,a,a.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(N),a.abortSet.delete(a),l.status=1,Cn(s,a.blockedBoundary,l)}catch(e){if(Yt(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=a.ping;e.then(c,c)}else{a.abortSet.delete(a),l.status=4;var u=a.blockedBoundary,d=e,p=dn(s,d);null===u?pn(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks&&(0,s.onAllReady)()}}}}i.splice(0,o),null!==e.destination&&Mn(e,e.destination)}catch(t){dn(e,t),pn(e,t)}finally{on=r,an.current=n,n===rn&&Pt(t)}}}function Sn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,s(t,le),s(t,e.placeholderPrefix),s(t,e=d(r.toString(16))),l(t,ce);case 1:n.status=2;var i=!0;r=n.chunks;var a=0;n=n.children;for(var c=0;c<n.length;c++){for(i=n[c];a<i.index;a++)s(t,r[a]);i=On(e,t,i)}for(;a<r.length-1;a++)s(t,r[a]);return a<r.length&&(i=l(t,r[a])),i;default:throw Error(o(390))}}function On(e,t,n){var r=n.boundary;if(null===r)return Sn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,l(t,he),s(t,ge),r&&(s(t,ve),s(t,d(O(r))),s(t,me)),l(t,ye),Sn(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var i=e.responseState,a=i.nextSuspenseID++;i=p(i.boundaryPrefix+a.toString(16)),r=r.id=i,Ae(t,e.responseState,r),Sn(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),Ae(t,e.responseState,r.id),Sn(e,t,n);else{if(l(t,ue),1!==(n=r.completedSegments).length)throw Error(o(391));On(e,t,n[0])}return l(t,fe)}function xn(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return s(e,we),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,be);case 2:return s(e,Ce),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ee);case 3:return s(e,Oe),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,xe);case 4:return s(e,Pe),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Me);case 5:return s(e,Re),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ie);case 6:return s(e,ke),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Le);case 7:return s(e,Ne),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,je);default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),On(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,_e);case 2:return l(e,Se);case 3:return l(e,De);case 4:return l(e,Te);case 5:return l(e,Fe);case 6:return l(e,Be);case 7:return l(e,Ue);default:throw Error(o(397))}}(t,n.formatContext)}function Dn(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++)Pn(e,t,n,r[i]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,s(t,e.startInlineScript),e.sentCompleteBoundaryFunction?s(t,$e):(e.sentCompleteBoundaryFunction=!0,s(t,ze)),null===r)throw Error(o(395));return n=d(n.toString(16)),s(t,r),s(t,Ke),s(t,e.segmentPrefix),s(t,n),l(t,Qe)}function Pn(e,t,n,r){if(2===r.status)return!0;var i=r.id;if(-1===i){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return xn(e,t,r)}return xn(e,t,r),s(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?s(t,He):(e.sentCompleteSegmentFunction=!0,s(t,Ve)),s(t,e.segmentPrefix),s(t,i=d(i.toString(16))),s(t,Ge),s(t,e.placeholderPrefix),s(t,i),l(t,We)}function Mn(e,t){i=new Uint8Array(512),a=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){On(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)s(t,r[n]);n<r.length&&l(t,r[n])}var u,p=e.clientRenderedBoundaries;for(u=0;u<p.length;u++){var h=p[u];r=t;var f=e.responseState,g=h.id,m=h.errorDigest,v=h.errorMessage,y=h.errorComponentStack;if(s(r,f.startInlineScript),f.sentClientRenderFunction?s(r,Ye):(f.sentClientRenderFunction=!0,s(r,qe)),null===g)throw Error(o(395));if(s(r,g),s(r,Xe),(m||v||y)&&(s(r,Je),s(r,d(tt(m||"")))),(v||y)&&(s(r,Je),s(r,d(tt(v||"")))),y&&(s(r,Je),s(r,d(tt(y)))),!l(r,Ze))return e.destination=null,u++,void p.splice(0,u)}p.splice(0,u);var A=e.completedBoundaries;for(u=0;u<A.length;u++)if(!Dn(e,t,A[u]))return e.destination=null,u++,void A.splice(0,u);A.splice(0,u),c(t),i=new Uint8Array(512),a=0;var w=e.partialBoundaries;for(u=0;u<w.length;u++){var b=w[u];e:{p=e,h=t;var _=b.completedSegments;for(f=0;f<_.length;f++)if(!Pn(p,h,b,_[f])){f++,_.splice(0,f);var C=!1;break e}_.splice(0,f),C=!0}if(!C)return e.destination=null,u++,void w.splice(0,u)}w.splice(0,u);var E=e.completedBoundaries;for(u=0;u<E.length;u++)if(!Dn(e,t,E[u]))return e.destination=null,u++,void E.splice(0,u);E.splice(0,u)}finally{c(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Tn(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return bn(n,e,t)}),n.clear(),null!==e.destination&&Mn(e,e.destination)}catch(t){dn(e,t),pn(e,t)}}t.renderToReadableStream=function(e,t){return new Promise(function(n,r){var o,i,a=new Promise(function(e,t){i=e,o=t}),s=function(e,t,n,r,o,i,a,s,l){var c=[],u=new Set;return(n=un(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?sn:o,onAllReady:void 0===i?ln:i,onShellReady:void 0===a?ln:a,onShellError:void 0===s?ln:s,onFatalError:void 0===l?ln:l},0,null,n,!1,!1)).parentFlushed=!0,e=cn(t,e,null,n,u,bt,null,Rt),c.push(e),t}(e,function(e,t,n,r,o){e=void 0===e?"":e,t=void 0===t?M:p('<script nonce="'+O(t)+'">');var i=[];if(void 0!==n&&i.push(t,d((""+n).replace(k,L)),T),void 0!==r)for(n=0;n<r.length;n++)i.push(R,d(O(r[n])),F);if(void 0!==o)for(r=0;r<o.length;r++)i.push(I,d(O(o[r])),F);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:p(e+"P:"),segmentPrefix:p(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 B("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===s.status)s.status=2,h(e,s.fatalError);else if(2!==s.status&&null===s.destination){s.destination=e;try{Mn(s,e)}catch(e){dn(s,e),pn(s,e)}}},cancel:function(){Tn(s)}},{highWaterMark:0});e.allReady=a,n(e)},function(e){a.catch(function(){}),r(e)},o);if(t&&t.signal){var l=t.signal,c=function(){Tn(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}En(s)})},t.version="18.3.1"},931(e,t,n){"use strict";var r,o;r=n(554),o=n(882),t.version=r.version,t.renderToString=r.renderToString,t.renderToStaticMarkup=r.renderToStaticMarkup,t.renderToNodeStream=r.renderToNodeStream,t.renderToStaticNodeStream=r.renderToStaticNodeStream,t.renderToReadableStream=o.renderToReadableStream},740(e,t,n){"use strict";n.d(t,{N:()=>i});const r=JSON.parse('{"@gv/base":{"version":"19386961","commit":"1938696175f5d5b78141db38a6169e0b52a92d89","branch":"HEAD","package":"4.18.27","name":"@gv/base"},"@gv/ampp":{"version":"19386961","commit":"1938696175f5d5b78141db38a6169e0b52a92d89","branch":"HEAD","package":"6.127.2","name":"@gv/ampp"},"@gv/ui.ampp":{"version":"19386961","commit":"1938696175f5d5b78141db38a6169e0b52a92d89","branch":"HEAD","package":"4.74.0","name":"@gv/ui.ampp"},"@gv/ui.base":{"version":"19386961","commit":"1938696175f5d5b78141db38a6169e0b52a92d89","branch":"HEAD","package":"5.80.2","name":"@gv/ui.base"},"@gv/utils":{"version":"19386961","commit":"1938696175f5d5b78141db38a6169e0b52a92d89","branch":"HEAD","package":"1.9.1","name":"@gv/utils"}}');var o=n.t(r,2);const i=o;"undefined"!=typeof window&&(window.__GVMODULES__=o),void 0!==n.g&&(n.g.__GVMODULES__=o)},143(e,t,n){"use strict";n.r(t),n.d(t,{GVModuleVersions:()=>r.N});var r=n(740),o=n(293),i={};for(const e in o)["default","GVModuleVersions"].indexOf(e)<0&&(i[e]=()=>o[e]);n.d(t,i);var a=n(188);i={};for(const e in a)["default","GVModuleVersions"].indexOf(e)<0&&(i[e]=()=>a[e]);n.d(t,i)},293(e,t,n){var r;r=e=>(()=>{var t={246(e,t,n){var r,o;r=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},s.apply(this,arguments)}var l=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(t,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var o=t[n];try{o.callback.call(this,e)}catch(e){Promise.resolve().then(function(){throw e})}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),c=function(t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(c,t);var n=function(e){var t=function(){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}}();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}(this,n)}}(c);function c(){var t;return e(this,c),(t=n.call(this)).listeners||l.call(a(t)),Object.defineProperty(a(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(t),"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(a(t),"reason",{value:void 0,writable:!0,configurable:!0}),t}return r(c,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),s(o(c.prototype),"dispatchEvent",this).call(this,e)}}]),c}(l),u=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new c,writable:!0,configurable:!0})}return r(t,[{key:"abort",value:function(e){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}var n=e;if(void 0===n)if("undefined"==typeof document)(n=new Error("This operation was aborted")).name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(e){(n=new Error("This operation was aborted")).name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(u.prototype[Symbol.toStringTag]="AbortController",c.prototype[Symbol.toStringTag]="AbortSignal"),function(e){(function(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController})(e)&&(e.AbortController=u,e.AbortSignal=c)}("undefined"!=typeof self?self:n.g)},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},8165(e,t,n){"use strict";var r=n(9138),o=n(6095),i=n(4531),a=n(7196);e.exports=a||r.call(i,o)},6095(e){"use strict";e.exports=Function.prototype.apply},4531(e){"use strict";e.exports=Function.prototype.call},9903(e,t,n){"use strict";var r=n(9138),o=n(3468),i=n(4531),a=n(8165);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(r,i,e)}},7196(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},4607(e,t,n){"use strict";var r=n(528),o=n(9903),i=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o([n]):n}},6423(e,t,n){"use strict";var r,o=n(9903),i=n(9336);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&i&&i(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},4940(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},9110(e){"use strict";e.exports=EvalError},9838(e){"use strict";e.exports=Error},1155(e){"use strict";e.exports=RangeError},4943(e){"use strict";e.exports=ReferenceError},5731(e){"use strict";e.exports=SyntaxError},3468(e){"use strict";e.exports=TypeError},2140(e){"use strict";e.exports=URIError},9629(e){"use strict";e.exports=Object},9902(e,t,n){var r;!function(o){var i=Object.hasOwnProperty,a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},s="object"==typeof process&&"function"==typeof process.nextTick,l="function"==typeof Symbol,c="object"==typeof Reflect,u="function"==typeof setImmediate?setImmediate:setTimeout,d=l?c&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys:function(e){var t=Object.getOwnPropertyNames(e);return t.push.apply(t,Object.getOwnPropertySymbols(e)),t}:Object.keys;function p(){this._events={},this._conf&&h.call(this,this._conf)}function h(e){e&&(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),e.maxListeners!==o&&(this._maxListeners=e.maxListeners),e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),e.ignoreErrors&&(this.ignoreErrors=e.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function f(e,t){var n="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(n+=" Event name: "+t+"."),"undefined"!=typeof process&&process.emitWarning){var r=new Error(n);r.name="MaxListenersExceededWarning",r.emitter=this,r.count=e,process.emitWarning(r)}else console.error(n),console.trace&&console.trace()}var g=function(e,t,n){var r=arguments.length;switch(r){case 0:return[];case 1:return[e];case 2:return[e,t];case 3:return[e,t,n];default:for(var o=new Array(r);r--;)o[r]=arguments[r];return o}};function m(e,t){for(var n={},r=e.length,i=t?t.length:0,a=0;a<r;a++)n[e[a]]=a<i?t[a]:o;return n}function v(e,t,n){var r,o;if(this._emitter=e,this._target=t,this._listeners={},this._listenersCount=0,(n.on||n.off)&&(r=n.on,o=n.off),t.addEventListener?(r=t.addEventListener,o=t.removeEventListener):t.addListener?(r=t.addListener,o=t.removeListener):t.on&&(r=t.on,o=t.off),!r&&!o)throw Error("target does not implement any known event API");if("function"!=typeof r)throw TypeError("on method must be a function");if("function"!=typeof o)throw TypeError("off method must be a function");this._on=r,this._off=o;var i=e._observers;i?i.push(this):e._observers=[this]}function y(e,t,n,r){var a=Object.assign({},t);if(!e)return a;if("object"!=typeof e)throw TypeError("options must be an object");var s,l,c,u=Object.keys(e),d=u.length;function p(e){throw Error('Invalid "'+s+'" option value'+(e?". Reason: "+e:""))}for(var h=0;h<d;h++){if(s=u[h],!r&&!i.call(t,s))throw Error('Unknown "'+s+'" option');(l=e[s])!==o&&(c=n[s],a[s]=c?c(l,p):l)}return a}function A(e,t){return"function"==typeof e&&e.hasOwnProperty("prototype")||t("value must be a constructor"),e}function w(e){var t="value must be type of "+e.join("|"),n=e.length,r=e[0],o=e[1];return 1===n?function(e,n){if(typeof e===r)return e;n(t)}:2===n?function(e,n){var i=typeof e;if(i===r||i===o)return e;n(t)}:function(r,o){for(var i=typeof r,a=n;a-- >0;)if(i===e[a])return r;o(t)}}Object.assign(v.prototype,{subscribe:function(e,t,n){var r=this,o=this._target,i=this._emitter,a=this._listeners,s=function(){var r=g.apply(null,arguments),a={data:r,name:t,original:e};n?!1!==n.call(o,a)&&i.emit.apply(i,[a.name].concat(r)):i.emit.apply(i,[t].concat(r))};if(a[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,i._newListener&&i._removeListener&&!r._onNewListener?(this._onNewListener=function(n){n===t&&null===a[e]&&(a[e]=s,r._on.call(o,e,s))},i.on("newListener",this._onNewListener),this._onRemoveListener=function(n){n===t&&!i.hasListeners(n)&&a[e]&&(a[e]=null,r._off.call(o,e,s))},a[e]=null,i.on("removeListener",this._onRemoveListener)):(a[e]=s,r._on.call(o,e,s))},unsubscribe:function(e){var t,n,r,o=this,i=this._listeners,a=this._emitter,s=this._off,l=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function c(){o._onNewListener&&(a.off("newListener",o._onNewListener),a.off("removeListener",o._onRemoveListener),o._onNewListener=null,o._onRemoveListener=null);var e=E.call(a,o);a._observers.splice(e,1)}if(e){if(!(t=i[e]))return;s.call(l,e,t),delete i[e],--this._listenersCount||c()}else{for(r=(n=d(i)).length;r-- >0;)e=n[r],s.call(l,e,i[e]);this._listeners={},this._listenersCount=0,c()}}});var b=w(["function"]),_=w(["object","function"]);function C(e,t,n){var r,o,i,a=0,s=new e(function(l,c,u){function d(){o&&(o=null),a&&(clearTimeout(a),a=0)}n=y(n,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}}),r=!n.overload&&"function"==typeof e.prototype.cancel&&"function"==typeof u;var p=function(e){d(),l(e)},h=function(e){d(),c(e)};r?t(p,h,u):(o=[function(e){h(e||Error("canceled"))}],t(p,h,function(e){if(i)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");o.push(e)}),i=!0),n.timeout>0&&(a=setTimeout(function(){var e=Error("timeout");e.code="ETIMEDOUT",a=0,s.cancel(e),c(e)},n.timeout))});return r||(s.cancel=function(e){if(o){for(var t=o.length,n=1;n<t;n++)o[n](e);o[0](e),o=null}}),s}function E(e){var t=this._observers;if(!t)return-1;for(var n=t.length,r=0;r<n;r++)if(t[r]._target===e)return r;return-1}function S(e,t,n,r,o){if(!n)return null;if(0===r){var i=typeof t;if("string"===i){var a,s,l=0,c=0,u=this.delimiter,p=u.length;if(-1!==(s=t.indexOf(u))){a=new Array(5);do{a[l++]=t.slice(c,s),c=s+p}while(-1!==(s=t.indexOf(u,c)));a[l++]=t.slice(c),t=a,o=l}else t=[t],o=1}else"object"===i?o=t.length:(t=[t],o=1)}var h,f,g,m,v,y,A,w=null,b=t[r],_=t[r+1];if(r===o)n._listeners&&("function"==typeof n._listeners?(e&&e.push(n._listeners),w=[n]):(e&&e.push.apply(e,n._listeners),w=[n]));else{if("*"===b){for(s=(y=d(n)).length;s-- >0;)"_listeners"!==(h=y[s])&&(A=S(e,t,n[h],r+1,o))&&(w?w.push.apply(w,A):w=A);return w}if("**"===b){for((v=r+1===o||r+2===o&&"*"===_)&&n._listeners&&(w=S(e,t,n,o,o)),s=(y=d(n)).length;s-- >0;)"_listeners"!==(h=y[s])&&("*"===h||"**"===h?(n[h]._listeners&&!v&&(A=S(e,t,n[h],o,o))&&(w?w.push.apply(w,A):w=A),A=S(e,t,n[h],r,o)):A=S(e,t,n[h],h===_?r+2:r,o),A&&(w?w.push.apply(w,A):w=A));return w}n[b]&&(w=S(e,t,n[b],r+1,o))}if((f=n["*"])&&S(e,t,f,r+1,o),g=n["**"])if(r<o)for(g._listeners&&S(e,t,g,o,o),s=(y=d(g)).length;s-- >0;)"_listeners"!==(h=y[s])&&(h===_?S(e,t,g[h],r+2,o):h===b?S(e,t,g[h],r+1,o):((m={})[h]=g[h],S(e,t,{"**":m},r+1,o)));else g._listeners?S(e,t,g,o,o):g["*"]&&g["*"]._listeners&&S(e,t,g["*"],o,o);return w}function O(e,t,n){var r,o,i=0,a=0,s=this.delimiter,l=s.length;if("string"==typeof e)if(-1!==(r=e.indexOf(s))){o=new Array(5);do{o[i++]=e.slice(a,r),a=r+l}while(-1!==(r=e.indexOf(s,a)));o[i++]=e.slice(a)}else o=[e],i=1;else o=e,i=e.length;if(i>1)for(r=0;r+1<i;r++)if("**"===o[r]&&"**"===o[r+1])return;var c,u=this.listenerTree;for(r=0;r<i;r++)if(u=u[c=o[r]]||(u[c]={}),r===i-1)return u._listeners?("function"==typeof u._listeners&&(u._listeners=[u._listeners]),n?u._listeners.unshift(t):u._listeners.push(t),!u._listeners.warned&&this._maxListeners>0&&u._listeners.length>this._maxListeners&&(u._listeners.warned=!0,f.call(this,u._listeners.length,c))):u._listeners=t,!0;return!0}function x(e,t,n,r){for(var o,i,a,s,l=d(e),c=l.length,u=e._listeners;c-- >0;)o=e[i=l[c]],a="_listeners"===i?n:n?n.concat(i):[i],s=r||"symbol"==typeof i,u&&t.push(s?a:a.join(this.delimiter)),"object"==typeof o&&x.call(this,o,t,a,s);return t}function D(e){for(var t,n,r,o=d(e),i=o.length;i-- >0;)(t=e[n=o[i]])&&(r=!0,"_listeners"===n||D(t)||delete e[n]);return r}function P(e,t,n){this.emitter=e,this.event=t,this.listener=n}function M(e,t,n){if(!0===n)i=!0;else if(!1===n)r=!0;else{if(!n||"object"!=typeof n)throw TypeError("options should be an object or true");var r=n.async,i=n.promisify,a=n.nextTick,l=n.objectify}if(r||a||i){var c=t,d=t._origin||t;if(a&&!s)throw Error("process.nextTick is not supported");i===o&&(i="AsyncFunction"===t.constructor.name),t=function(){var e=arguments,t=this,n=this.event;return i?a?Promise.resolve():new Promise(function(e){u(e)}).then(function(){return t.event=n,c.apply(t,e)}):(a?process.nextTick:u)(function(){t.event=n,c.apply(t,e)})},t._async=!0,t._origin=d}return[t,l?new P(this,e,t):this]}function T(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,h.call(this,e)}P.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},T.EventEmitter2=T,T.prototype.listenTo=function(e,t,n){if("object"!=typeof e)throw TypeError("target musts be an object");var r=this;function i(t){if("object"!=typeof t)throw TypeError("events must be an object");var o,i=n.reducers,a=E.call(r,e);o=-1===a?new v(r,e,n):r._observers[a];for(var s,l=d(t),c=l.length,u="function"==typeof i,p=0;p<c;p++)s=l[p],o.subscribe(s,t[s]||s,u?i:i&&i[s])}return n=y(n,{on:o,off:o,reducers:o},{on:b,off:b,reducers:_}),a(t)?i(m(t)):i("string"==typeof t?m(t.split(/\s+/)):t),this},T.prototype.stopListeningTo=function(e,t){var n=this._observers;if(!n)return!1;var r,o=n.length,i=!1;if(e&&"object"!=typeof e)throw TypeError("target should be an object");for(;o-- >0;)r=n[o],e&&r._target!==e||(r.unsubscribe(t),i=!0);return i},T.prototype.delimiter=".",T.prototype.setMaxListeners=function(e){e!==o&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},T.prototype.getMaxListeners=function(){return this._maxListeners},T.prototype.event="",T.prototype.once=function(e,t,n){return this._once(e,t,!1,n)},T.prototype.prependOnceListener=function(e,t,n){return this._once(e,t,!0,n)},T.prototype._once=function(e,t,n,r){return this._many(e,1,t,n,r)},T.prototype.many=function(e,t,n,r){return this._many(e,t,n,!1,r)},T.prototype.prependMany=function(e,t,n,r){return this._many(e,t,n,!0,r)},T.prototype._many=function(e,t,n,r,o){var i=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function a(){return 0===--t&&i.off(e,a),n.apply(this,arguments)}return a._origin=n,this._on(e,a,r,o)},T.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||p.call(this);var e,t,n,r,o,i,a=arguments[0],s=this.wildcard;if("newListener"===a&&!this._newListener&&!this._events.newListener)return!1;if(s&&(e=a,"newListener"!==a&&"removeListener"!==a&&"object"==typeof a)){if(n=a.length,l)for(r=0;r<n;r++)if("symbol"==typeof a[r]){i=!0;break}i||(a=a.join(this.delimiter))}var c,u=arguments.length;if(this._all&&this._all.length)for(r=0,n=(c=this._all.slice()).length;r<n;r++)switch(this.event=a,u){case 1:c[r].call(this,a);break;case 2:c[r].call(this,a,arguments[1]);break;case 3:c[r].call(this,a,arguments[1],arguments[2]);break;default:c[r].apply(this,arguments)}if(s)c=[],S.call(this,c,e,this.listenerTree,0,n);else{if("function"==typeof(c=this._events[a])){switch(this.event=a,u){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:for(t=new Array(u-1),o=1;o<u;o++)t[o-1]=arguments[o];c.apply(this,t)}return!0}c&&(c=c.slice())}if(c&&c.length){if(u>3)for(t=new Array(u-1),o=1;o<u;o++)t[o-1]=arguments[o];for(r=0,n=c.length;r<n;r++)switch(this.event=a,u){case 1:c[r].call(this);break;case 2:c[r].call(this,arguments[1]);break;case 3:c[r].call(this,arguments[1],arguments[2]);break;default:c[r].apply(this,t)}return!0}if(!this.ignoreErrors&&!this._all&&"error"===a)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},T.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||p.call(this);var e,t,n,r,o,i,a=arguments[0],s=this.wildcard;if("newListener"===a&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(s&&(e=a,"newListener"!==a&&"removeListener"!==a&&"object"==typeof a)){if(r=a.length,l)for(o=0;o<r;o++)if("symbol"==typeof a[o]){t=!0;break}t||(a=a.join(this.delimiter))}var c,u=[],d=arguments.length;if(this._all)for(o=0,r=this._all.length;o<r;o++)switch(this.event=a,d){case 1:u.push(this._all[o].call(this,a));break;case 2:u.push(this._all[o].call(this,a,arguments[1]));break;case 3:u.push(this._all[o].call(this,a,arguments[1],arguments[2]));break;default:u.push(this._all[o].apply(this,arguments))}if(s?(c=[],S.call(this,c,e,this.listenerTree,0)):c=this._events[a],"function"==typeof c)switch(this.event=a,d){case 1:u.push(c.call(this));break;case 2:u.push(c.call(this,arguments[1]));break;case 3:u.push(c.call(this,arguments[1],arguments[2]));break;default:for(n=new Array(d-1),i=1;i<d;i++)n[i-1]=arguments[i];u.push(c.apply(this,n))}else if(c&&c.length){if(c=c.slice(),d>3)for(n=new Array(d-1),i=1;i<d;i++)n[i-1]=arguments[i];for(o=0,r=c.length;o<r;o++)switch(this.event=a,d){case 1:u.push(c[o].call(this));break;case 2:u.push(c[o].call(this,arguments[1]));break;case 3:u.push(c[o].call(this,arguments[1],arguments[2]));break;default:u.push(c[o].apply(this,n))}}else if(!this.ignoreErrors&&!this._all&&"error"===a)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(u)},T.prototype.on=function(e,t,n){return this._on(e,t,!1,n)},T.prototype.prependListener=function(e,t,n){return this._on(e,t,!0,n)},T.prototype.onAny=function(e){return this._onAny(e,!1)},T.prototype.prependAny=function(e){return this._onAny(e,!0)},T.prototype.addListener=T.prototype.on,T.prototype._onAny=function(e,t){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},T.prototype._on=function(e,t,n,r){if("function"==typeof e)return this._onAny(e,t),this;if("function"!=typeof t)throw new Error("on only accepts instances of Function");this._events||p.call(this);var i,a=this;return r!==o&&(t=(i=M.call(this,e,t,r))[0],a=i[1]),this._newListener&&this.emit("newListener",e,t),this.wildcard?(O.call(this,e,t,n),a):(this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),n?this._events[e].unshift(t):this._events[e].push(t),!this._events[e].warned&&this._maxListeners>0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,f.call(this,this._events[e].length,e))):this._events[e]=t,a)},T.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,r=[];if(this.wildcard){var o="string"==typeof e?e.split(this.delimiter):e.slice();if(!(r=S.call(this,null,o,this.listenerTree,0)))return this}else{if(!this._events[e])return this;n=this._events[e],r.push({_listeners:n})}for(var i=0;i<r.length;i++){var s=r[i];if(n=s._listeners,a(n)){for(var l=-1,c=0,u=n.length;c<u;c++)if(n[c]===t||n[c].listener&&n[c].listener===t||n[c]._origin&&n[c]._origin===t){l=c;break}if(l<0)continue;return this.wildcard?s._listeners.splice(l,1):this._events[e].splice(l,1),0===n.length&&(this.wildcard?delete s._listeners:delete this._events[e]),this._removeListener&&this.emit("removeListener",e,t),this}(n===t||n.listener&&n.listener===t||n._origin&&n._origin===t)&&(this.wildcard?delete s._listeners:delete this._events[e],this._removeListener&&this.emit("removeListener",e,t))}return this.listenerTree&&D(this.listenerTree),this},T.prototype.offAny=function(e){var t,n=0,r=0;if(e&&this._all&&this._all.length>0){for(n=0,r=(t=this._all).length;n<r;n++)if(e===t[n])return t.splice(n,1),this._removeListener&&this.emit("removeListenerAny",e),this}else{if(t=this._all,this._removeListener)for(n=0,r=t.length;n<r;n++)this.emit("removeListenerAny",t[n]);this._all=[]}return this},T.prototype.removeListener=T.prototype.off,T.prototype.removeAllListeners=function(e){if(e===o)return!this._events||p.call(this),this;if(this.wildcard){var t,n=S.call(this,null,e,this.listenerTree,0);if(!n)return this;for(t=0;t<n.length;t++)n[t]._listeners=null;this.listenerTree&&D(this.listenerTree)}else this._events&&(this._events[e]=null);return this},T.prototype.listeners=function(e){var t,n,r,i,a,s=this._events;if(e===o){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!s)return[];for(i=(t=d(s)).length,r=[];i-- >0;)"function"==typeof(n=s[t[i]])?r.push(n):r.push.apply(r,n);return r}if(this.wildcard){if(!(a=this.listenerTree))return[];var l=[],c="string"==typeof e?e.split(this.delimiter):e.slice();return S.call(this,l,c,a,0),l}return s&&(n=s[e])?"function"==typeof n?[n]:n:[]},T.prototype.eventNames=function(e){var t=this._events;return this.wildcard?x.call(this,this.listenerTree,[],null,e):t?d(t):[]},T.prototype.listenerCount=function(e){return this.listeners(e).length},T.prototype.hasListeners=function(e){if(this.wildcard){var t=[],n="string"==typeof e?e.split(this.delimiter):e.slice();return S.call(this,t,n,this.listenerTree,0),t.length>0}var r=this._events,i=this._all;return!!(i&&i.length||r&&(e===o?d(r).length:r[e]))},T.prototype.listenersAny=function(){return this._all?this._all:[]},T.prototype.waitFor=function(e,t){var n=this,r=typeof t;return"number"===r?t={timeout:t}:"function"===r&&(t={filter:t}),C((t=y(t,{timeout:0,filter:o,handleError:!1,Promise,overload:!1},{filter:b,Promise:A})).Promise,function(r,o,i){function a(){var i=t.filter;if(!i||i.apply(n,arguments))if(n.off(e,a),t.handleError){var s=arguments[0];s?o(s):r(g.apply(null,arguments).slice(1))}else r(g.apply(null,arguments))}i(function(){n.off(e,a)}),n._on(e,a,!1)},{timeout:t.timeout,overload:t.overload})};var R=T.prototype;Object.defineProperties(T,{defaultMaxListeners:{get:function(){return R._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");R._maxListeners=e},enumerable:!0},once:{value:function(e,t,n){return C((n=y(n,{Promise,timeout:0,overload:!1},{Promise:A})).Promise,function(n,r,o){var i;if("function"==typeof e.addEventListener)return i=function(){n(g.apply(null,arguments))},o(function(){e.removeEventListener(t,i)}),void e.addEventListener(t,i,{once:!0});var a,s=function(){a&&e.removeListener("error",a),n(g.apply(null,arguments))};"error"!==t&&(a=function(n){e.removeListener(t,s),r(n)},e.once("error",a)),o(function(){a&&e.removeListener("error",a),e.removeListener(t,s)}),e.once(t,s)},{timeout:n.timeout,overload:n.overload})},writable:!0,configurable:!0}}),Object.defineProperties(R,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),(r=function(){return T}.call(t,n,t,e))===o||(e.exports=r)}()},8794(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=n(0,o.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))}),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},9138(e,t,n){"use strict";var r=n(8794);e.exports=Function.prototype.bind||r},528(e,t,n){"use strict";var r,o=n(9629),i=n(9838),a=n(9110),s=n(1155),l=n(4943),c=n(5731),u=n(3468),d=n(2140),p=n(8479),h=n(8449),f=n(8129),g=n(2387),m=n(5865),v=n(1319),y=n(6882),A=Function,w=function(e){try{return A('"use strict"; return ('+e+").constructor;")()}catch(e){}},b=n(9336),_=n(4940),C=function(){throw new u},E=b?function(){try{return C}catch(e){try{return b(arguments,"callee").get}catch(e){return C}}}():C,S=n(3558)(),O=n(6369),x=n(7345),D=n(7859),P=n(6095),M=n(4531),T={},R="undefined"!=typeof Uint8Array&&O?O(Uint8Array):r,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":S&&O?O([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&O?O(O([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&S&&O?O((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&S&&O?O((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&O?O(""[Symbol.iterator]()):r,"%Symbol%":S?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":E,"%TypedArray%":R,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":M,"%Function.prototype.apply%":P,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":x,"%Math.abs%":p,"%Math.floor%":h,"%Math.max%":f,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":D};if(O)try{null.error}catch(e){var F=O(O(e));I["%Error.prototype%"]=F}var k=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&O&&(n=O(o.prototype))}return I[t]=n,n},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=n(9138),N=n(8554),j=B.call(M,Array.prototype.concat),U=B.call(P,Array.prototype.splice),V=B.call(M,String.prototype.replace),H=B.call(M,String.prototype.slice),G=B.call(M,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,$=function(e,t){var n,r=e;if(N(L,r)&&(r="%"+(n=L[r])[0]+"%"),N(I,r)){var o=I[r];if(o===T&&(o=k(r)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=H(e,0,1),n=H(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return V(e,W,function(e,t,n,o){r[r.length]=n?V(o,z,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=$("%"+r+"%",t),i=o.name,a=o.value,s=!1,l=o.alias;l&&(r=l[0],U(n,j([0,1],l)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],f=H(h,0,1),g=H(h,-1);if(('"'===f||"'"===f||"`"===f||'"'===g||"'"===g||"`"===g)&&f!==g)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&p||(s=!0),N(I,i="%"+(r+="."+h)+"%"))a=I[i];else if(null!=a){if(!(h in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(b&&d+1>=n.length){var m=b(a,h);a=(p=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[h]}else p=N(a,h),a=a[h];p&&!s&&(I[i]=a)}}return a}},7345(e,t,n){"use strict";var r=n(9629);e.exports=r.getPrototypeOf||null},7859(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},6369(e,t,n){"use strict";var r=n(7859),o=n(7345),i=n(6423);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},1292(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},9336(e,t,n){"use strict";var r=n(1292);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},3558(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(2908);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},2908(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},8554(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(9138);e.exports=i.call(r,o)},3103(e,t,n){var r=n(4715)(n(8942),"DataView");e.exports=r},5098(e,t,n){var r=n(3305),o=n(9361),i=n(1112),a=n(5276),s=n(5071);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},1386(e,t,n){var r=n(2393),o=n(2049),i=n(7144),a=n(7452),s=n(3964);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},9770(e,t,n){var r=n(4715)(n(8942),"Map");e.exports=r},8250(e,t,n){var r=n(9753),o=n(5681),i=n(88),a=n(4732),s=n(9068);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},9413(e,t,n){var r=n(4715)(n(8942),"Promise");e.exports=r},4512(e,t,n){var r=n(4715)(n(8942),"Set");e.exports=r},3212(e,t,n){var r=n(8250),o=n(1877),i=n(8006);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},1340(e,t,n){var r=n(1386),o=n(4103),i=n(1779),a=n(4162),s=n(7462),l=n(6638);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},5650(e,t,n){var r=n(8942).Symbol;e.exports=r},1623(e,t,n){var r=n(8942).Uint8Array;e.exports=r},9270(e,t,n){var r=n(4715)(n(8942),"WeakMap");e.exports=r},6912(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},3788(e){e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},9847(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},9756(e,t,n){var r=n(2478);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},935(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},358(e,t,n){var r=n(6137),o=n(3283),i=n(3142),a=n(5853),s=n(9632),l=n(8666),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],g=f.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||d&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}},5111(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},1129(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4187(e){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},6465(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},906(e,t,n){var r=n(2762)("length");e.exports=r},4810(e,t,n){var r=n(7073),o=n(6285);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},3422(e,t,n){var r=n(7073),o=n(6285),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},7034(e,t,n){var r=n(6285);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2226(e,t,n){var r=n(4570);e.exports=function(e,t,n,o){return r(e,function(e,r,i){t(o,e,n(e),i)}),o}},7073(e,t,n){var r=n(2532);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9747(e,t,n){var r=n(1580),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},4570(e,t,n){var r=n(7170),o=n(5770)(r);e.exports=o},7250(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},5636(e,t,n){var r=n(6596)();e.exports=r},7170(e,t,n){var r=n(5636),o=n(1211);e.exports=function(e,t){return e&&r(e,t,o)}},7923(e,t,n){var r=n(3526),o=n(6040);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},8244(e,t,n){var r=n(1129),o=n(3142);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},7379(e,t,n){var r=n(5650),o=n(8870),i=n(9005),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},3636(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},2478(e,t,n){var r=n(7250),o=n(9454),i=n(7706);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},6027(e,t,n){var r=n(7379),o=n(547);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},4687(e,t,n){var r=n(353),o=n(547);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},353(e,t,n){var r=n(1340),o=n(3934),i=n(8861),a=n(1182),s=n(8486),l=n(3142),c=n(5853),u=n(8666),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),A=l(t),w=y?p:s(e),b=A?p:s(t),_=(w=w==d?h:w)==h,C=(b=b==d?h:b)==h,E=w==b;if(E&&c(e)){if(!c(t))return!1;y=!0,_=!1}if(E&&!_)return v||(v=new r),y||u(e)?o(e,t,n,g,m,v):i(e,t,w,n,g,m,v);if(!(1&n)){var S=_&&f.call(e,"__wrapped__"),O=C&&f.call(t,"__wrapped__");if(S||O){var x=S?e.value():e,D=O?t.value():t;return v||(v=new r),m(x,D,n,g,v)}}return!!E&&(v||(v=new r),a(e,t,n,g,m,v))}},8330(e,t,n){var r=n(1340),o=n(4687);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(i)var f=i(d,p,u,e,t,h);if(!(void 0===f?o(p,d,3,i,h):f))return!1}}return!0}},9454(e){e.exports=function(e){return e!=e}},9624(e,t,n){var r=n(3655),o=n(4759),i=n(1580),a=n(4066),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},674(e,t,n){var r=n(7379),o=n(5387),i=n(547),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},3334(e,t,n){var r=n(6526),o=n(2343),i=n(2053),a=n(3142),s=n(3282);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},195(e,t,n){var r=n(4882),o=n(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},7200(e,t,n){var r=n(1580),o=n(4882),i=n(8546),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},1393(e,t,n){var r=n(4570),o=n(6529);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},6526(e,t,n){var r=n(8330),o=n(4367),i=n(3904);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},2343(e,t,n){var r=n(4687),o=n(6123),i=n(7276),a=n(5187),s=n(7267),l=n(3904),c=n(6040);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},91(e,t,n){var r=n(1340),o=n(4810),i=n(5636),a=n(6885),s=n(1580),l=n(5288),c=n(8763);e.exports=function e(t,n,u,d,p){t!==n&&i(n,function(i,l){if(p||(p=new r),s(i))a(t,n,l,u,e,d,p);else{var h=d?d(c(t,l),i,l+"",t,n,p):void 0;void 0===h&&(h=i),o(t,l,h)}},l)}},6885(e,t,n){var r=n(4810),o=n(7099),i=n(2264),a=n(4354),s=n(5964),l=n(3283),c=n(3142),u=n(5406),d=n(5853),p=n(3655),h=n(1580),f=n(8360),g=n(8666),m=n(8763),v=n(4207);e.exports=function(e,t,n,y,A,w,b){var _=m(e,n),C=m(t,n),E=b.get(C);if(E)r(e,n,E);else{var S=w?w(_,C,n+"",e,t,b):void 0,O=void 0===S;if(O){var x=c(C),D=!x&&d(C),P=!x&&!D&&g(C);S=C,x||D||P?c(_)?S=_:u(_)?S=a(_):D?(O=!1,S=o(C,!0)):P?(O=!1,S=i(C,!0)):S=[]:f(C)||l(C)?(S=_,l(_)?S=v(_):h(_)&&!p(_)||(S=s(C))):O=!1}O&&(b.set(C,S),A(S,C,y,w,b),b.delete(C)),r(e,n,S)}}},5031(e,t,n){var r=n(7923),o=n(7655),i=n(3526);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var c=t[a],u=r(e,c);n(u,c)&&o(l,i(c,e),u)}return l}},2762(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},8880(e,t,n){var r=n(7923);e.exports=function(e){return function(t){return r(t,e)}}},1961(e){e.exports=function(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}},3945(e,t,n){var r=n(2053),o=n(5234),i=n(796);e.exports=function(e,t){return i(o(e,t,r),e+"")}},7655(e,t,n){var r=n(3422),o=n(3526),i=n(9632),a=n(1580),s=n(6040);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,p=e;null!=p&&++c<u;){var h=s(t[c]),f=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(c!=d){var g=p[h];void 0===(f=l?l(g,h,p):void 0)&&(f=a(g)?g:i(t[c+1])?[]:{})}r(p,h,f),p=p[h]}return e}},7403(e,t,n){var r=n(2619),o=n(2532),i=n(2053),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},6137(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},2291(e,t,n){var r=n(5650),o=n(5111),i=n(3142),a=n(1187),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},6403(e,t,n){var r=n(2945),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},9460(e){e.exports=function(e){return function(t){return e(t)}}},5630(e,t,n){var r=n(3212),o=n(9756),i=n(935),a=n(5568),s=n(6208),l=n(9828);e.exports=function(e,t,n){var c=-1,u=o,d=e.length,p=!0,h=[],f=h;if(n)p=!1,u=i;else if(d>=200){var g=t?null:s(e);if(g)return l(g);p=!1,u=a,f=new r}else f=t?[]:h;e:for(;++c<d;){var m=e[c],v=t?t(m):m;if(m=n||0!==m?m:0,p&&v==v){for(var y=f.length;y--;)if(f[y]===v)continue e;t&&f.push(v),h.push(m)}else u(f,v,n)||(f!==h&&f.push(v),h.push(m))}return h}},5568(e){e.exports=function(e,t){return e.has(t)}},3526(e,t,n){var r=n(3142),o=n(5187),i=n(6493),a=n(5243);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},8898(e,t,n){var r=n(1623);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},7099(e,t,n){e=n.nmd(e);var r=n(8942),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},2264(e,t,n){var r=n(8898);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},4354(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},9032(e,t,n){var r=n(3422),o=n(7073);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},1950(e,t,n){var r=n(8942)["__core-js_shared__"];e.exports=r},2195(e,t,n){var r=n(3788),o=n(2226),i=n(3334),a=n(3142);e.exports=function(e,t){return function(n,s){var l=a(n)?r:o,c=t?t():{};return l(n,e,i(s,2),c)}}},7848(e,t,n){var r=n(3945),o=n(4535);e.exports=function(e){return r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}},5770(e,t,n){var r=n(6529);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},6596(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},7317(e,t,n){var r=n(3334),o=n(6529),i=n(1211);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!o(t)){var l=r(n,3);t=i(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}},6208(e,t,n){var r=n(4512),o=n(9071),i=n(9828),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},2532(e,t,n){var r=n(4715),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},3934(e,t,n){var r=n(3212),o=n(6465),i=n(5568);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var v=e[f],y=t[f];if(a)var A=c?a(y,v,f,t,e,l):a(v,y,f,e,t,l);if(void 0!==A){if(A)continue;g=!1;break}if(m){if(!o(t,function(e,t){if(!i(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)})){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},8861(e,t,n){var r=n(5650),o=n(1623),i=n(6285),a=n(3934),s=n(5894),l=n(9828),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var g=p.get(e);if(g)return g==t;r|=2,p.set(e,t);var m=a(h(e),h(t),r,c,d,p);return p.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},1182(e,t,n){var r=n(393),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:o.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var v=e[p=c[d]],y=t[p];if(i)var A=l?i(y,v,p,t,e,s):i(v,y,p,e,t,s);if(!(void 0===A?v===y||a(v,y,n,i,s):A)){g=!1;break}m||(m="constructor"==p)}if(g&&!m){var w=e.constructor,b=t.constructor;w==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(g=!1)}return s.delete(e),s.delete(t),g}},4967(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},393(e,t,n){var r=n(8244),o=n(7979),i=n(1211);e.exports=function(e){return r(e,i,o)}},3650(e,t,n){var r=n(8244),o=n(5832),i=n(5288);e.exports=function(e){return r(e,i,o)}},4700(e,t,n){var r=n(9067);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},4367(e,t,n){var r=n(7267),o=n(1211);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},4715(e,t,n){var r=n(9624),o=n(155);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},4784(e,t,n){var r=n(3766)(Object.getPrototypeOf,Object);e.exports=r},8870(e,t,n){var r=n(5650),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},7979(e,t,n){var r=n(9847),o=n(9306),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},5832(e,t,n){var r=n(1129),o=n(4784),i=n(7979),a=n(9306),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},8486(e,t,n){var r=n(3103),o=n(9770),i=n(9413),a=n(4512),s=n(9270),l=n(7379),c=n(4066),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",g=c(r),m=c(o),v=c(i),y=c(a),A=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=f||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=p||s&&w(new s)!=h)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return f;case m:return u;case v:return d;case y:return p;case A:return h}return t}),e.exports=w},155(e){e.exports=function(e,t){return null==e?void 0:e[t]}},5899(e,t,n){var r=n(3526),o=n(3283),i=n(3142),a=n(9632),s=n(5387),l=n(6040);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(p,u)&&(i(e)||o(e))}},3417(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},3305(e,t,n){var r=n(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},9361(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112(e,t,n){var r=n(4497),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},5276(e,t,n){var r=n(4497),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5071(e,t,n){var r=n(4497);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5964(e,t,n){var r=n(9747),o=n(4784),i=n(4882);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},9632(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},4535(e,t,n){var r=n(6285),o=n(6529),i=n(9632),a=n(1580);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5187(e,t,n){var r=n(3142),o=n(1187),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},9067(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759(e,t,n){var r,o=n(1950),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4882(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7267(e,t,n){var r=n(1580);e.exports=function(e){return e==e&&!r(e)}},2393(e){e.exports=function(){this.__data__=[],this.size=0}},2049(e,t,n){var r=n(7034),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},7144(e,t,n){var r=n(7034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7452(e,t,n){var r=n(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964(e,t,n){var r=n(7034);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},9753(e,t,n){var r=n(5098),o=n(1386),i=n(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},5681(e,t,n){var r=n(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},88(e,t,n){var r=n(4700);e.exports=function(e){return r(this,e).get(e)}},4732(e,t,n){var r=n(4700);e.exports=function(e){return r(this,e).has(e)}},9068(e,t,n){var r=n(4700);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},5894(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},3904(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},6853(e,t,n){var r=n(1392);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},4497(e,t,n){var r=n(4715)(Object,"create");e.exports=r},8121(e,t,n){var r=n(3766)(Object.keys,Object);e.exports=r},8546(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},2306(e,t,n){e=n.nmd(e);var r=n(4967),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9005(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766(e){e.exports=function(e,t){return function(n){return e(t(n))}}},5234(e,t,n){var r=n(6912),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},8942(e,t,n){var r=n(4967),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},8763(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1877(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006(e){e.exports=function(e){return this.__data__.has(e)}},9828(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},796(e,t,n){var r=n(7403),o=n(3316)(r);e.exports=o},3316(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},4103(e,t,n){var r=n(1386);e.exports=function(){this.__data__=new r,this.size=0}},1779(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4162(e){e.exports=function(e){return this.__data__.get(e)}},7462(e){e.exports=function(e){return this.__data__.has(e)}},6638(e,t,n){var r=n(1386),o=n(9770),i=n(8250);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},7706(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},1090(e,t,n){var r=n(906),o=n(3417),i=n(4962);e.exports=function(e){return o(e)?i(e):r(e)}},6493(e,t,n){var r=n(6853),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},6040(e,t,n){var r=n(1187);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},4066(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2945(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},4962(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",u=c+l+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*",d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){for(var t=p.lastIndex=0;p.test(e);)++t;return t}},149(e,t,n){var r=n(9032),o=n(7848),i=n(5288),a=o(function(e,t){r(t,i(t),e)});e.exports=a},2619(e){e.exports=function(e){return function(){return e}}},6285(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},4015(e,t,n){e.exports=n(149)},1936(e,t,n){var r=n(7317)(n(2154));e.exports=r},2154(e,t,n){var r=n(7250),o=n(3334),i=n(7642),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},6123(e,t,n){var r=n(7923);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},7809(e,t,n){var r=n(7073),o=n(2195),i=Object.prototype.hasOwnProperty,a=o(function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},7276(e,t,n){var r=n(3636),o=n(5899);e.exports=function(e,t){return null!=e&&o(e,t,r)}},2053(e){e.exports=function(e){return e}},3283(e,t,n){var r=n(6027),o=n(547),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},3142(e){var t=Array.isArray;e.exports=t},6529(e,t,n){var r=n(3655),o=n(5387);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},5406(e,t,n){var r=n(6529),o=n(547);e.exports=function(e){return o(e)&&r(e)}},5853(e,t,n){e=n.nmd(e);var r=n(8942),o=n(4772),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},3514(e,t,n){var r=n(195),o=n(8486),i=n(3283),a=n(3142),s=n(6529),l=n(5853),c=n(4882),u=n(8666),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},6343(e,t,n){var r=n(4687);e.exports=function(e,t){return r(e,t)}},3655(e,t,n){var r=n(7379),o=n(1580);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},1580(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8360(e,t,n){var r=n(7379),o=n(4784),i=n(547),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},8138(e,t,n){var r=n(7379),o=n(3142),i=n(547);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},1187(e,t,n){var r=n(7379),o=n(547);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},8666(e,t,n){var r=n(674),o=n(9460),i=n(2306),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},4789(e,t,n){var r=n(7073),o=n(2195)(function(e,t,n){r(e,n,t)});e.exports=o},1211(e,t,n){var r=n(358),o=n(195),i=n(6529);e.exports=function(e){return i(e)?r(e):o(e)}},5288(e,t,n){var r=n(358),o=n(7200),i=n(6529);e.exports=function(e){return i(e)?r(e,!0):o(e)}},5250(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,c=128,u=1/0,d=9007199254740991,p=NaN,h=4294967295,f=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",y="[object Date]",A="[object Error]",w="[object Function]",b="[object GeneratorFunction]",_="[object Map]",C="[object Number]",E="[object Object]",S="[object Promise]",O="[object RegExp]",x="[object Set]",D="[object String]",P="[object Symbol]",M="[object WeakMap]",T="[object ArrayBuffer]",R="[object DataView]",I="[object Float32Array]",F="[object Float64Array]",k="[object Int8Array]",L="[object Int16Array]",B="[object Int32Array]",N="[object Uint8Array]",j="[object Uint8ClampedArray]",U="[object Uint16Array]",V="[object Uint32Array]",H=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,K=RegExp(z.source),Q=RegExp($.source),q=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ae=/($^)/,we=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="["+be+"]",Pe="["+xe+"]",Me="["+_e+"]",Te="\\d+",Re="["+Ce+"]",Ie="["+Ee+"]",Fe="[^"+be+xe+Te+Ce+Ee+Se+"]",ke="\\ud83c[\\udffb-\\udfff]",Le="[^"+be+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Se+"]",Ue="\\u200d",Ve="(?:"+Ie+"|"+Fe+")",He="(?:"+je+"|"+Fe+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",ze="(?:"+Me+"|"+ke+")?",$e="["+Oe+"]?",Ke=$e+ze+"(?:"+Ue+"(?:"+[Le,Be,Ne].join("|")+")"+$e+ze+")*",Qe="(?:"+[Re,Be,Ne].join("|")+")"+Ke,qe="(?:"+[Le+Me+"?",Me,Be,Ne,De].join("|")+")",Ye=RegExp("['’]","g"),Xe=RegExp(Me,"g"),Ze=RegExp(ke+"(?="+ke+")|"+qe+Ke,"g"),Je=RegExp([je+"?"+Ie+"+"+Ge+"(?="+[Pe,je,"$"].join("|")+")",He+"+"+We+"(?="+[Pe,je+Ve,"$"].join("|")+")",je+"?"+Ve+"+"+Ge,je+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,Qe].join("|"),"g"),et=RegExp("["+Ue+be+_e+Oe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[I]=ot[F]=ot[k]=ot[L]=ot[B]=ot[N]=ot[j]=ot[U]=ot[V]=!0,ot[g]=ot[m]=ot[T]=ot[v]=ot[R]=ot[y]=ot[A]=ot[w]=ot[_]=ot[C]=ot[E]=ot[O]=ot[x]=ot[D]=ot[M]=!1;var it={};it[g]=it[m]=it[T]=it[R]=it[v]=it[y]=it[I]=it[F]=it[k]=it[L]=it[B]=it[_]=it[C]=it[E]=it[O]=it[x]=it[D]=it[P]=it[N]=it[j]=it[U]=it[V]=!0,it[A]=it[w]=it[M]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ut="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||ut||Function("return this")(),pt=t&&!t.nodeType&&t,ht=pt&&e&&!e.nodeType&&e,ft=ht&&ht.exports===pt,gt=ft&&ct.process,mt=function(){try{return ht&&ht.require&&ht.require("util").types||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),vt=mt&&mt.isArrayBuffer,yt=mt&&mt.isDate,At=mt&&mt.isMap,wt=mt&&mt.isRegExp,bt=mt&&mt.isSet,_t=mt&&mt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Pt(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function Mt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Rt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function It(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ft(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Lt=Gt("length");function Bt(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Nt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function jt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Nt(e,Vt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Vt(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:p}function Gt(e){return function(t){return null==t?o:t[e]}}function Wt(e){return function(t){return null==e?o:e[t]}}function zt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function $t(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,dn(e)+1).replace(re,""):e}function qt(e){return function(t){return e(t)}}function Yt(e,t){return Tt(t,function(t){return e[t]})}function Xt(e,t){return e.has(t)}function Zt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var en=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),tn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function ln(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function cn(e){return rn(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):Lt(e)}function un(e){return rn(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var pn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function e(t){var n,r=(t=null==t?dt:hn.defaults(dt.Object(),t,hn.pick(dt,nt))).Array,oe=t.Date,be=t.Error,_e=t.Function,Ce=t.Math,Ee=t.Object,Se=t.RegExp,Oe=t.String,xe=t.TypeError,De=r.prototype,Pe=_e.prototype,Me=Ee.prototype,Te=t["__core-js_shared__"],Re=Pe.toString,Ie=Me.hasOwnProperty,Fe=0,ke=(n=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=Me.toString,Be=Re.call(Ee),Ne=dt._,je=Se("^"+Re.call(Ie).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=ft?t.Buffer:o,Ve=t.Symbol,He=t.Uint8Array,Ge=Ue?Ue.allocUnsafe:o,We=an(Ee.getPrototypeOf,Ee),ze=Ee.create,$e=Me.propertyIsEnumerable,Ke=De.splice,Qe=Ve?Ve.isConcatSpreadable:o,qe=Ve?Ve.iterator:o,Ze=Ve?Ve.toStringTag:o,et=function(){try{var e=li(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==dt.Date.now&&oe.now,ut=t.setTimeout!==dt.setTimeout&&t.setTimeout,pt=Ce.ceil,ht=Ce.floor,gt=Ee.getOwnPropertySymbols,mt=Ue?Ue.isBuffer:o,Lt=t.isFinite,Wt=De.join,fn=an(Ee.keys,Ee),gn=Ce.max,mn=Ce.min,vn=oe.now,yn=t.parseInt,An=Ce.random,wn=De.reverse,bn=li(t,"DataView"),_n=li(t,"Map"),Cn=li(t,"Promise"),En=li(t,"Set"),Sn=li(t,"WeakMap"),On=li(Ee,"create"),xn=Sn&&new Sn,Dn={},Pn=Li(bn),Mn=Li(_n),Tn=Li(Cn),Rn=Li(En),In=Li(Sn),Fn=Ve?Ve.prototype:o,kn=Fn?Fn.valueOf:o,Ln=Fn?Fn.toString:o;function Bn(e){if(Ja(e)&&!Ha(e)&&!(e instanceof Vn)){if(e instanceof Un)return e;if(Ie.call(e,"__wrapped__"))return Bi(e)}return new Un(e)}var Nn=function(){function e(){}return function(t){if(!Za(t))return{};if(ze)return ze(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function jn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Wn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Gn(e);this.size=t.size}function Kn(e,t){var n=Ha(e),r=!n&&Va(e),o=!n&&!r&&$a(e),i=!n&&!r&&!o&&ss(e),a=n||r||o||i,s=a?Kt(e.length,Oe):[],l=s.length;for(var c in e)!t&&!Ie.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||gi(c,l))||s.push(c);return s}function Qn(e){var t=e.length;return t?e[Wr(0,t-1)]:o}function qn(e,t){return Ti(Oo(e),or(t,0,e.length))}function Yn(e){return Ti(Oo(e))}function Xn(e,t,n){(n!==o&&!Na(e[t],n)||n===o&&!(t in e))&&nr(e,t,n)}function Zn(e,t,n){var r=e[t];Ie.call(e,t)&&Na(r,n)&&(n!==o||t in e)||nr(e,t,n)}function Jn(e,t){for(var n=e.length;n--;)if(Na(e[n][0],t))return n;return-1}function er(e,t,n,r){return cr(e,function(e,o,i){t(r,e,n(e),i)}),r}function tr(e,t){return e&&xo(t,Ps(t),e)}function nr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function rr(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Es(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ir(e,t,n,r,i,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Za(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Oo(e,s)}else{var p=di(e),h=p==w||p==b;if($a(e))return wo(e,l);if(p==E||p==g||h&&!i){if(s=c||h?{}:hi(e),!l)return c?function(e,t){return xo(e,ui(e),t)}(e,function(e,t){return e&&xo(t,Ms(t),e)}(s,e)):function(e,t){return xo(e,ci(e),t)}(e,tr(s,e))}else{if(!it[p])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case T:return bo(e);case v:case y:return new o(+e);case R:return function(e,t){var n=t?bo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case F:case k:case L:case B:case N:case j:case U:case V:return _o(e,n);case _:return new o;case C:case D:return new o(e);case O:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case x:return new o;case P:return r=e,kn?Ee(kn.call(r)):{}}}(e,p,l)}}a||(a=new $n);var f=a.get(e);if(f)return f;a.set(e,s),os(e)?e.forEach(function(r){s.add(ir(r,t,n,r,e,a))}):es(e)&&e.forEach(function(r,o){s.set(o,ir(r,t,n,o,e,a))});var m=d?o:(u?c?ti:ei:c?Ms:Ps)(e);return St(m||e,function(r,o){m&&(r=e[o=r]),Zn(s,o,ir(r,t,n,o,e,a))}),s}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function sr(e,t,n){if("function"!=typeof e)throw new xe(i);return xi(function(){e.apply(o,n)},t)}function lr(e,t,n,r){var o=-1,i=Pt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Tt(t,qt(n))),r?(i=Mt,a=!1):t.length>=200&&(i=Xt,a=!1,t=new zn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Bn.templateSettings={escape:q,evaluate:Y,interpolate:X,variable:"",imports:{_:Bn}},Bn.prototype=jn.prototype,Bn.prototype.constructor=Bn,Un.prototype=Nn(jn.prototype),Un.prototype.constructor=Un,Vn.prototype=Nn(jn.prototype),Vn.prototype.constructor=Vn,Hn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===a?o:n}return Ie.call(t,e)?t[e]:o},Hn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==o:Ie.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===o?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=Jn(t,e);return!(n<0||(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,0))},Gn.prototype.get=function(e){var t=this.__data__,n=Jn(t,e);return n<0?o:t[n][1]},Gn.prototype.has=function(e){return Jn(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=Jn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(_n||Gn),string:new Hn}},Wn.prototype.delete=function(e){var t=ai(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return ai(this,e).get(e)},Wn.prototype.has=function(e){return ai(this,e).has(e)},Wn.prototype.set=function(e,t){var n=ai(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},zn.prototype.add=zn.prototype.push=function(e){return this.__data__.set(e,a),this},zn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Gn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!_n||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var cr=Mo(vr),ur=Mo(yr,!0);function dr(e,t){var n=!0;return cr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function pr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s==s&&!as(s):n(s,l)))var l=s,c=a}return c}function hr(e,t){var n=[];return cr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function fr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=fi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?fr(s,t-1,n,r,o):Rt(o,s):r||(o[o.length]=s)}return o}var gr=To(),mr=To(!0);function vr(e,t){return e&&gr(e,t,Ps)}function yr(e,t){return e&&mr(e,t,Ps)}function Ar(e,t){return Dt(t,function(t){return qa(e[t])})}function wr(e,t){for(var n=0,r=(t=mo(t,e)).length;null!=e&&n<r;)e=e[ki(t[n++])];return n&&n==r?e:o}function br(e,t,n){var r=t(e);return Ha(e)?r:Rt(r,n(e))}function _r(e){return null==e?e===o?"[object Undefined]":"[object Null]":Ze&&Ze in Ee(e)?function(e){var t=Ie.call(e,Ze),n=e[Ze];try{e[Ze]=o;var r=!0}catch(e){}var i=Le.call(e);return r&&(t?e[Ze]=n:delete e[Ze]),i}(e):function(e){return Le.call(e)}(e)}function Cr(e,t){return e>t}function Er(e,t){return null!=e&&Ie.call(e,t)}function Sr(e,t){return null!=e&&t in Ee(e)}function Or(e,t,n){for(var i=n?Mt:Pt,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Tt(p,qt(t))),u=mn(p.length,u),c[l]=!n&&(t||a>=120&&p.length>=120)?new zn(l&&p):o}p=e[0];var h=-1,f=c[0];e:for(;++h<a&&d.length<u;){var g=p[h],m=t?t(g):g;if(g=n||0!==g?g:0,!(f?Xt(f,m):i(d,m,n))){for(l=s;--l;){var v=c[l];if(!(v?Xt(v,m):i(e[l],m,n)))continue e}f&&f.push(m),d.push(g)}}return d}function xr(e,t,n){var r=null==(e=Ei(e,t=mo(t,e)))?e:e[ki(Qi(t))];return null==r?o:Ct(r,e,n)}function Dr(e){return Ja(e)&&_r(e)==g}function Pr(e,t,n,r,i){return e===t||(null==e||null==t||!Ja(e)&&!Ja(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Ha(e),l=Ha(t),c=s?m:di(e),u=l?m:di(t),d=(c=c==g?E:c)==E,p=(u=u==g?E:u)==E,h=c==u;if(h&&$a(e)){if(!$a(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new $n),s||ss(e)?Zo(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new He(e),new He(t)));case v:case y:case C:return Na(+e,+t);case A:return e.name==t.name&&e.message==t.message;case O:case D:return e==t+"";case _:var s=on;case x:var l=1&r;if(s||(s=ln),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Zo(s(e),s(t),r,o,i,a);return a.delete(e),u;case P:if(kn)return kn.call(e)==kn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var f=d&&Ie.call(e,"__wrapped__"),w=p&&Ie.call(t,"__wrapped__");if(f||w){var b=f?e.value():e,S=w?t.value():t;return a||(a=new $n),i(b,S,n,r,a)}}return!!h&&(a||(a=new $n),function(e,t,n,r,i,a){var s=1&n,l=ei(e),c=l.length;if(c!=ei(t).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in t:Ie.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var f=!0;a.set(e,t),a.set(t,e);for(var g=s;++u<c;){var m=e[d=l[u]],v=t[d];if(r)var y=s?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(y===o?m===v||i(m,v,n,r,a):y)){f=!1;break}g||(g="constructor"==d)}if(f&&!g){var A=e.constructor,w=t.constructor;A==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof w&&w instanceof w||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,r,i,a))}(e,t,n,r,Pr,i))}function Mr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Ee(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var p=new $n;if(r)var h=r(u,d,c,e,t,p);if(!(h===o?Pr(d,u,3,r,p):h))return!1}}return!0}function Tr(e){return!(!Za(e)||(t=e,ke&&ke in t))&&(qa(e)?je:ge).test(Li(e));var t}function Rr(e){return"function"==typeof e?e:null==e?tl:"object"==typeof e?Ha(e)?Br(e[0],e[1]):Lr(e):ul(e)}function Ir(e){if(!wi(e))return fn(e);var t=[];for(var n in Ee(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Fr(e,t){return e<t}function kr(e,t){var n=-1,o=Wa(e)?r(e.length):[];return cr(e,function(e,r,i){o[++n]=t(e,r,i)}),o}function Lr(e){var t=si(e);return 1==t.length&&t[0][2]?_i(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function Br(e,t){return vi(e)&&bi(t)?_i(ki(e),t):function(n){var r=Es(n,e);return r===o&&r===t?Ss(n,e):Pr(t,r,3)}}function Nr(e,t,n,r,i){e!==t&&gr(t,function(a,s){if(i||(i=new $n),Za(a))!function(e,t,n,r,i,a,s){var l=Si(e,n),c=Si(t,n),u=s.get(c);if(u)Xn(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):o,p=d===o;if(p){var h=Ha(c),f=!h&&$a(c),g=!h&&!f&&ss(c);d=c,h||f||g?Ha(l)?d=l:za(l)?d=Oo(l):f?(p=!1,d=wo(c,!0)):g?(p=!1,d=_o(c,!0)):d=[]:ns(c)||Va(c)?(d=l,Va(l)?d=gs(l):Za(l)&&!qa(l)||(d=hi(c))):p=!1}p&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),Xn(e,n,d)}}(e,t,s,n,Nr,r,i);else{var l=r?r(Si(e,s),a,s+"",e,t,i):o;l===o&&(l=a),Xn(e,s,l)}},Ms)}function jr(e,t){var n=e.length;if(n)return gi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?Tt(t,function(e){return Ha(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e}):[tl];var r=-1;t=Tt(t,qt(ii()));var o=kr(e,function(e,n,o){var i=Tt(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e){var t=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=Co(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});t--;)e[t]=e[t].value;return e}(o)}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=wr(e,a);n(s,a)&&qr(i,mo(a,e),s)}return i}function Hr(e,t,n,r){var o=r?Ut:jt,i=-1,a=t.length,s=e;for(e===t&&(t=Oo(t)),n&&(s=Tt(e,qt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;gi(o)?Ke.call(e,o,1):so(e,o)}}return e}function Wr(e,t){return e+ht(An()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function $r(e,t){return Di(Ci(e,t,tl),e+"")}function Kr(e){return Qn(Ns(e))}function Qr(e,t){var n=Ns(e);return Ti(n,or(t,0,n.length))}function qr(e,t,n,r){if(!Za(e))return e;for(var i=-1,a=(t=mo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=ki(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):o)===o&&(u=Za(d)?d:gi(t[i+1])?[]:{})}Zn(l,c,u),l=l[c]}return e}var Yr=xn?function(e,t){return xn.set(e,t),e}:tl,Xr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Zs(t),writable:!0})}:tl;function Zr(e){return Ti(Ns(e))}function Jr(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function eo(e,t){var n;return cr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function to(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!as(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return no(e,t,tl,n)}function no(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=as(t),u=t===o;i<a;){var d=ht((i+a)/2),p=n(e[d]),h=p!==o,f=null===p,g=p==p,m=as(p);if(s)var v=r||g;else v=u?g&&(r||h):l?g&&h&&(r||!f):c?g&&h&&!f&&(r||!m):!f&&!m&&(r?p<=t:p<t);v?i=d+1:a=d}return mn(a,4294967294)}function ro(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Na(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function oo(e){return"number"==typeof e?e:as(e)?p:+e}function io(e){if("string"==typeof e)return e;if(Ha(e))return Tt(e,io)+"";if(as(e))return Ln?Ln.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ao(e,t,n){var r=-1,o=Pt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Mt;else if(i>=200){var c=t?null:$o(e);if(c)return ln(c);a=!1,o=Xt,l=new zn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function so(e,t){var n=-1,r=(t=mo(t,e)).length;if(!r)return!0;for(;++n<r;){var o=ki(t[n]);if("__proto__"===o&&!Ie.call(e,"__proto__"))return!1;if(("constructor"===o||"prototype"===o)&&n<r-1)return!1}var i=Ei(e,t);return null==i||delete i[ki(Qi(t))]}function lo(e,t,n,r){return qr(e,t,n(wr(e,t)),r)}function co(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Jr(e,r?0:i,r?i+1:o):Jr(e,r?i+1:0,r?o:i)}function uo(e,t){var n=e;return n instanceof Vn&&(n=n.value()),It(t,function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))},n)}function po(e,t,n){var o=e.length;if(o<2)return o?ao(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=lr(a[i]||s,e[l],t,n));return ao(fr(a,1),t,n)}function ho(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function fo(e){return za(e)?e:[]}function go(e){return"function"==typeof e?e:tl}function mo(e,t){return Ha(e)?e:vi(e,t)?[e]:Fi(ms(e))}var vo=$r;function yo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:Jr(e,t,n)}var Ao=at||function(e){return dt.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function bo(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function _o(e,t){var n=t?bo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=as(e),s=t!==o,l=null===t,c=t==t,u=as(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}function Eo(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,c=t.length,u=gn(a-s,0),d=r(c+u),p=!o;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function So(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=gn(a-l,0),p=r(d+u),h=!o;++i<d;)p[i]=e[i];for(var f=i;++c<u;)p[f+c]=t[c];for(;++s<l;)(h||i<a)&&(p[f+n[s]]=e[i++]);return p}function Oo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function xo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?nr(n,l,c):Zn(n,l,c)}return n}function Do(e,t){return function(n,r){var o=Ha(n)?Et:er,i=t?t():{};return o(n,e,ii(r,2),i)}}function Po(e){return $r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&mi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Ee(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}function Mo(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ee(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function To(e){return function(t,n,r){for(var o=-1,i=Ee(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function Ro(e){return function(t){var n=rn(t=ms(t))?un(t):o,r=n?n[0]:t.charAt(0),i=n?yo(n,1).join(""):t.slice(1);return r[e]()+i}}function Io(e){return function(t){return It(qs(Vs(t).replace(Ye,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Nn(e.prototype),r=e.apply(n,t);return Za(r)?r:n}}function ko(e){return function(t,n,r){var i=Ee(t);if(!Wa(t)){var a=ii(n,3);t=Ps(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Lo(e){return Jo(function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new xe(i);if(a&&!l&&"wrapper"==ri(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=ri(s=t[r]),u="wrapper"==c?ni(s):o;l=u&&yi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ri(u[0])].apply(l,u[3]):1==s.length&&yi(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ha(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}function Bo(e,t,n,i,a,s,l,u,d,p){var h=t&c,f=1&t,g=2&t,m=24&t,v=512&t,y=g?o:Fo(e);return function c(){for(var A=arguments.length,w=r(A),b=A;b--;)w[b]=arguments[b];if(m)var _=oi(c),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,_);if(i&&(w=Eo(w,i,a,m)),s&&(w=So(w,s,l,m)),A-=C,m&&A<p){var E=sn(w,_);return Wo(e,t,Bo,c.placeholder,n,w,E,u,d,p-A)}var S=f?n:this,O=g?S[e]:e;return A=w.length,u?w=function(e,t){for(var n=e.length,r=mn(t.length,n),i=Oo(e);r--;){var a=t[r];e[r]=gi(a,n)?i[a]:o}return e}(w,u):v&&A>1&&w.reverse(),h&&d<A&&(w.length=d),this&&this!==dt&&this instanceof c&&(O=y||Fo(O)),O.apply(S,w)}}function No(e,t){return function(n,r){return function(e,t,n,r){return vr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function jo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=io(n),r=io(r)):(n=oo(n),r=oo(r)),i=e(n,r)}return i}}function Uo(e){return Jo(function(t){return t=Tt(t,qt(ii())),$r(function(n){var r=this;return e(t,function(e){return Ct(e,r,n)})})})}function Vo(e,t){var n=(t=t===o?" ":io(t)).length;if(n<2)return n?zr(t,e):t;var r=zr(t,pt(e/cn(t)));return rn(t)?yo(un(r),0,e).join(""):r.slice(0,e)}function Ho(e){return function(t,n,i){return i&&"number"!=typeof i&&mi(t,n,i)&&(n=i=o),t=ds(t),n===o?(n=t,t=0):n=ds(n),function(e,t,n,o){for(var i=-1,a=gn(pt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:ds(i),e)}}function Go(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=fs(t),n=fs(n)),e(t,n)}}function Wo(e,t,n,r,i,a,s,c,u,d){var p=8&t;t|=p?l:64,4&(t&=~(p?64:l))||(t&=-4);var h=[e,t,i,p?a:o,p?s:o,p?o:a,p?o:s,c,u,d],f=n.apply(o,h);return yi(e)&&Oi(f,h),f.placeholder=r,Pi(f,e,t)}function zo(e){var t=Ce[e];return function(e,n){if(e=fs(e),(n=null==n?0:mn(ps(n),292))&&Lt(e)){var r=(ms(e)+"e").split("e");return+((r=(ms(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var $o=En&&1/ln(new En([,-0]))[1]==u?function(e){return new En(e)}:al;function Ko(e){return function(t){var n=di(t);return n==_?on(t):n==x?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return Tt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Qo(e,t,n,a,u,d,p,h){var f=2&t;if(!f&&"function"!=typeof e)throw new xe(i);var g=a?a.length:0;if(g||(t&=-97,a=u=o),p=p===o?p:gn(ps(p),0),h=h===o?h:ps(h),g-=u?u.length:0,64&t){var m=a,v=u;a=u=o}var y=f?o:ni(e),A=[e,t,n,a,u,m,v,d,p,h];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Eo(u,l,t[4]):l,e[4]=u?sn(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?So(u,l,t[6]):l,e[6]=u?sn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&c&&(e[8]=null==e[8]?t[8]:mn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(A,y),e=A[0],t=A[1],n=A[2],a=A[3],u=A[4],!(h=A[9]=A[9]===o?f?0:e.length:gn(A[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=Fo(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=oi(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:sn(l,u);return(s-=d.length)<n?Wo(e,t,Bo,a.placeholder,o,l,d,o,o,n-s):Ct(this&&this!==dt&&this instanceof a?i:e,this,l)}}(e,t,h):t!=l&&33!=t||u.length?Bo.apply(o,A):function(e,t,n,o){var i=1&t,a=Fo(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=r(u+l),p=this&&this!==dt&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return Ct(p,i?n:this,d)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=Fo(e);return function t(){return(this&&this!==dt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Pi((y?Yr:Oi)(w,A),e,t)}function qo(e,t,n,r){return e===o||Na(e,Me[n])&&!Ie.call(r,n)?t:e}function Yo(e,t,n,r,i,a){return Za(e)&&Za(t)&&(a.set(t,e),Nr(e,t,o,Yo,a),a.delete(t)),e}function Xo(e){return ns(e)?o:e}function Zo(e,t,n,r,i,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,f=2&n?new zn:o;for(a.set(e,t),a.set(t,e);++p<l;){var g=e[p],m=t[p];if(r)var v=s?r(m,g,p,t,e,a):r(g,m,p,e,t,a);if(v!==o){if(v)continue;h=!1;break}if(f){if(!kt(t,function(e,t){if(!Xt(f,t)&&(g===e||i(g,e,n,r,a)))return f.push(t)})){h=!1;break}}else if(g!==m&&!i(g,m,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function Jo(e){return Di(Ci(e,o,Gi),e+"")}function ei(e){return br(e,Ps,ci)}function ti(e){return br(e,Ms,ui)}var ni=xn?function(e){return xn.get(e)}:al;function ri(e){for(var t=e.name+"",n=Dn[t],r=Ie.call(Dn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function oi(e){return(Ie.call(Bn,"placeholder")?Bn:e).placeholder}function ii(){var e=Bn.iteratee||nl;return e=e===nl?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function ai(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function si(e){for(var t=Ps(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,bi(o)]}return t}function li(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Tr(n)?n:o}var ci=gt?function(e){return null==e?[]:(e=Ee(e),Dt(gt(e),function(t){return $e.call(e,t)}))}:hl,ui=gt?function(e){for(var t=[];e;)Rt(t,ci(e)),e=We(e);return t}:hl,di=_r;function pi(e,t,n){for(var r=-1,o=(t=mo(t,e)).length,i=!1;++r<o;){var a=ki(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Xa(o)&&gi(a,o)&&(Ha(e)||Va(e))}function hi(e){return"function"!=typeof e.constructor||wi(e)?{}:Nn(We(e))}function fi(e){return Ha(e)||Va(e)||!!(Qe&&e&&e[Qe])}function gi(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function mi(e,t,n){if(!Za(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&gi(t,n.length):"string"==r&&t in n)&&Na(n[t],e)}function vi(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!as(e))||J.test(e)||!Z.test(e)||null!=t&&e in Ee(t)}function yi(e){var t=ri(e),n=Bn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=ni(n);return!!r&&e===r[0]}(bn&&di(new bn(new ArrayBuffer(1)))!=R||_n&&di(new _n)!=_||Cn&&di(Cn.resolve())!=S||En&&di(new En)!=x||Sn&&di(new Sn)!=M)&&(di=function(e){var t=_r(e),n=t==E?e.constructor:o,r=n?Li(n):"";if(r)switch(r){case Pn:return R;case Mn:return _;case Tn:return S;case Rn:return x;case In:return M}return t});var Ai=Te?qa:fl;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function bi(e){return e==e&&!Za(e)}function _i(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Ee(n))}}function Ci(e,t,n){return t=gn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=gn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),Ct(e,this,l)}}function Ei(e,t){return t.length<2?e:wr(e,Jr(t,0,-1))}function Si(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oi=Mi(Yr),xi=ut||function(e,t){return dt.setTimeout(e,t)},Di=Mi(Xr);function Pi(e,t,n){var r=t+"";return Di(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return St(f,function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Mi(e){var t=0,n=0;return function(){var r=vn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ti(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Wr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Ri,Ii,Fi=(Ri=Ra(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,n,r,o){t.push(r?o.replace(ue,"$1"):n||e)}),t},function(e){return 500===Ii.size&&Ii.clear(),e}),Ii=Ri.cache,Ri);function ki(e){if("string"==typeof e||as(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Li(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bi(e){if(e instanceof Vn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ni=$r(function(e,t){return za(e)?lr(e,fr(t,1,za,!0)):[]}),ji=$r(function(e,t){var n=Qi(t);return za(n)&&(n=o),za(e)?lr(e,fr(t,1,za,!0),ii(n,2)):[]}),Ui=$r(function(e,t){var n=Qi(t);return za(n)&&(n=o),za(e)?lr(e,fr(t,1,za,!0),o,n):[]});function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ps(n);return o<0&&(o=gn(r+o,0)),Nt(e,ii(t,3),o)}function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ps(n),i=n<0?gn(r+i,0):mn(i,r-1)),Nt(e,ii(t,3),i,!0)}function Gi(e){return null!=e&&e.length?fr(e,1):[]}function Wi(e){return e&&e.length?e[0]:o}var zi=$r(function(e){var t=Tt(e,fo);return t.length&&t[0]===e[0]?Or(t):[]}),$i=$r(function(e){var t=Qi(e),n=Tt(e,fo);return t===Qi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Or(n,ii(t,2)):[]}),Ki=$r(function(e){var t=Qi(e),n=Tt(e,fo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Or(n,o,t):[]});function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var qi=$r(Yi);function Yi(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var Xi=Jo(function(e,t){var n=null==e?0:e.length,r=rr(e,t);return Gr(e,Tt(t,function(e){return gi(e,n)?+e:e}).sort(Co)),r});function Zi(e){return null==e?e:wn.call(e)}var Ji=$r(function(e){return ao(fr(e,1,za,!0))}),ea=$r(function(e){var t=Qi(e);return za(t)&&(t=o),ao(fr(e,1,za,!0),ii(t,2))}),ta=$r(function(e){var t=Qi(e);return t="function"==typeof t?t:o,ao(fr(e,1,za,!0),o,t)});function na(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,function(e){if(za(e))return t=gn(e.length,t),!0}),Kt(t,function(t){return Tt(e,Gt(t))})}function ra(e,t){if(!e||!e.length)return[];var n=na(e);return null==t?n:Tt(n,function(e){return Ct(t,o,e)})}var oa=$r(function(e,t){return za(e)?lr(e,t):[]}),ia=$r(function(e){return po(Dt(e,za))}),aa=$r(function(e){var t=Qi(e);return za(t)&&(t=o),po(Dt(e,za),ii(t,2))}),sa=$r(function(e){var t=Qi(e);return t="function"==typeof t?t:o,po(Dt(e,za),o,t)}),la=$r(na),ca=$r(function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ra(e,n)});function ua(e){var t=Bn(e);return t.__chain__=!0,t}function da(e,t){return t(e)}var pa=Jo(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return rr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:da,args:[i],thisArg:o}),new Un(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)}),ha=Do(function(e,t,n){Ie.call(e,n)?++e[n]:nr(e,n,1)}),fa=ko(Vi),ga=ko(Hi);function ma(e,t){return(Ha(e)?St:cr)(e,ii(t,3))}function va(e,t){return(Ha(e)?Ot:ur)(e,ii(t,3))}var ya=Do(function(e,t,n){Ie.call(e,n)?e[n].push(t):nr(e,n,[t])}),Aa=$r(function(e,t,n){var o=-1,i="function"==typeof t,a=Wa(e)?r(e.length):[];return cr(e,function(e){a[++o]=i?Ct(t,e,n):xr(e,t,n)}),a}),wa=Do(function(e,t,n){nr(e,n,t)});function ba(e,t){return(Ha(e)?Tt:kr)(e,ii(t,3))}var _a=Do(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ca=$r(function(e,t){if(null==e)return[];var n=t.length;return n>1&&mi(e,t[0],t[1])?t=[]:n>2&&mi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,fr(t,1),[])}),Ea=ct||function(){return dt.Date.now()};function Sa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,c,o,o,o,o,t)}function Oa(e,t){var n;if("function"!=typeof t)throw new xe(i);return e=ps(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var xa=$r(function(e,t,n){var r=1;if(n.length){var o=sn(n,oi(xa));r|=l}return Qo(e,r,t,n,o)}),Da=$r(function(e,t,n){var r=3;if(n.length){var o=sn(n,oi(Da));r|=l}return Qo(t,r,e,n,o)});function Pa(e,t,n){var r,a,s,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new xe(i);function g(t){var n=r,i=a;return r=a=o,d=t,l=e.apply(i,n)}function m(e){var n=e-u;return u===o||n>=t||n<0||h&&e-d>=s}function v(){var e=Ea();if(m(e))return y(e);c=xi(v,function(e){var n=t-(e-u);return h?mn(n,s-(e-d)):n}(e))}function y(e){return c=o,f&&r?g(e):(r=a=o,l)}function A(){var e=Ea(),n=m(e);if(r=arguments,a=this,u=e,n){if(c===o)return function(e){return d=e,c=xi(v,t),p?g(e):l}(u);if(h)return Ao(c),c=xi(v,t),g(u)}return c===o&&(c=xi(v,t)),l}return t=fs(t)||0,Za(n)&&(p=!!n.leading,s=(h="maxWait"in n)?gn(fs(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),A.cancel=function(){c!==o&&Ao(c),d=0,r=u=a=c=o},A.flush=function(){return c===o?l:y(Ea())},A}var Ma=$r(function(e,t){return sr(e,1,t)}),Ta=$r(function(e,t,n){return sr(e,fs(t)||0,n)});function Ra(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xe(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ra.Cache||Wn),n}function Ia(e){if("function"!=typeof e)throw new xe(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ra.Cache=Wn;var Fa=vo(function(e,t){var n=(t=1==t.length&&Ha(t[0])?Tt(t[0],qt(ii())):Tt(fr(t,1),qt(ii()))).length;return $r(function(r){for(var o=-1,i=mn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Ct(e,this,r)})}),ka=$r(function(e,t){var n=sn(t,oi(ka));return Qo(e,l,o,t,n)}),La=$r(function(e,t){var n=sn(t,oi(La));return Qo(e,64,o,t,n)}),Ba=Jo(function(e,t){return Qo(e,256,o,o,o,t)});function Na(e,t){return e===t||e!=e&&t!=t}var ja=Go(Cr),Ua=Go(function(e,t){return e>=t}),Va=Dr(function(){return arguments}())?Dr:function(e){return Ja(e)&&Ie.call(e,"callee")&&!$e.call(e,"callee")},Ha=r.isArray,Ga=vt?qt(vt):function(e){return Ja(e)&&_r(e)==T};function Wa(e){return null!=e&&Xa(e.length)&&!qa(e)}function za(e){return Ja(e)&&Wa(e)}var $a=mt||fl,Ka=yt?qt(yt):function(e){return Ja(e)&&_r(e)==y};function Qa(e){if(!Ja(e))return!1;var t=_r(e);return t==A||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ns(e)}function qa(e){if(!Za(e))return!1;var t=_r(e);return t==w||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ya(e){return"number"==typeof e&&e==ps(e)}function Xa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Za(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ja(e){return null!=e&&"object"==typeof e}var es=At?qt(At):function(e){return Ja(e)&&di(e)==_};function ts(e){return"number"==typeof e||Ja(e)&&_r(e)==C}function ns(e){if(!Ja(e)||_r(e)!=E)return!1;var t=We(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==Be}var rs=wt?qt(wt):function(e){return Ja(e)&&_r(e)==O},os=bt?qt(bt):function(e){return Ja(e)&&di(e)==x};function is(e){return"string"==typeof e||!Ha(e)&&Ja(e)&&_r(e)==D}function as(e){return"symbol"==typeof e||Ja(e)&&_r(e)==P}var ss=_t?qt(_t):function(e){return Ja(e)&&Xa(e.length)&&!!ot[_r(e)]},ls=Go(Fr),cs=Go(function(e,t){return e<=t});function us(e){if(!e)return[];if(Wa(e))return is(e)?un(e):Oo(e);if(qe&&e[qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[qe]());var t=di(e);return(t==_?on:t==x?ln:Ns)(e)}function ds(e){return e?(e=fs(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ps(e){var t=ds(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?or(ps(e),0,h):0}function fs(e){if("number"==typeof e)return e;if(as(e))return p;if(Za(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Za(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=fe.test(e);return n||me.test(e)?lt(e.slice(2),n?2:8):he.test(e)?p:+e}function gs(e){return xo(e,Ms(e))}function ms(e){return null==e?"":io(e)}var vs=Po(function(e,t){if(wi(t)||Wa(t))xo(t,Ps(t),e);else for(var n in t)Ie.call(t,n)&&Zn(e,n,t[n])}),ys=Po(function(e,t){xo(t,Ms(t),e)}),As=Po(function(e,t,n,r){xo(t,Ms(t),e,r)}),ws=Po(function(e,t,n,r){xo(t,Ps(t),e,r)}),bs=Jo(rr),_s=$r(function(e,t){e=Ee(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&mi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ms(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===o||Na(d,Me[u])&&!Ie.call(e,u))&&(e[u]=a[u])}return e}),Cs=$r(function(e){return e.push(o,Yo),Ct(Rs,o,e)});function Es(e,t,n){var r=null==e?o:wr(e,t);return r===o?n:r}function Ss(e,t){return null!=e&&pi(e,t,Sr)}var Os=No(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n},Zs(tl)),xs=No(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]},ii),Ds=$r(xr);function Ps(e){return Wa(e)?Kn(e):Ir(e)}function Ms(e){return Wa(e)?Kn(e,!0):function(e){if(!Za(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}(e)}var Ts=Po(function(e,t,n){Nr(e,t,n)}),Rs=Po(function(e,t,n,r){Nr(e,t,n,r)}),Is=Jo(function(e,t){var n={};if(null==e)return n;var r=!1;t=Tt(t,function(t){return t=mo(t,e),r||(r=t.length>1),t}),xo(e,ti(e),n),r&&(n=ir(n,7,Xo));for(var o=t.length;o--;)so(n,t[o]);return n}),Fs=Jo(function(e,t){return null==e?{}:function(e,t){return Vr(e,t,function(t,n){return Ss(e,n)})}(e,t)});function ks(e,t){if(null==e)return{};var n=Tt(ti(e),function(e){return[e]});return t=ii(t),Vr(e,n,function(e,n){return t(e,n[0])})}var Ls=Ko(Ps),Bs=Ko(Ms);function Ns(e){return null==e?[]:Yt(e,Ps(e))}var js=Io(function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)});function Us(e){return Qs(ms(e).toLowerCase())}function Vs(e){return(e=ms(e))&&e.replace(ye,en).replace(Xe,"")}var Hs=Io(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Gs=Io(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Ws=Ro("toLowerCase"),zs=Io(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),$s=Io(function(e,t,n){return e+(n?" ":"")+Qs(t)}),Ks=Io(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Qs=Ro("toUpperCase");function qs(e,t,n){return e=ms(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Ys=$r(function(e,t){try{return Ct(e,o,t)}catch(e){return Qa(e)?e:new be(e)}}),Xs=Jo(function(e,t){return St(t,function(t){t=ki(t),nr(e,t,xa(e[t],e))}),e});function Zs(e){return function(){return e}}var Js=Lo(),el=Lo(!0);function tl(e){return e}function nl(e){return Rr("function"==typeof e?e:ir(e,1))}var rl=$r(function(e,t){return function(n){return xr(n,e,t)}}),ol=$r(function(e,t){return function(n){return xr(e,n,t)}});function il(e,t,n){var r=Ps(t),o=Ar(t,r);null!=n||Za(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Ar(t,Ps(t)));var i=!(Za(n)&&"chain"in n&&!n.chain),a=qa(e);return St(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Oo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})}),e}function al(){}var sl=Uo(Tt),ll=Uo(xt),cl=Uo(kt);function ul(e){return vi(e)?Gt(ki(e)):function(e){return function(t){return wr(t,e)}}(e)}var dl=Ho(),pl=Ho(!0);function hl(){return[]}function fl(){return!1}var gl,ml=jo(function(e,t){return e+t},0),vl=zo("ceil"),yl=jo(function(e,t){return e/t},1),Al=zo("floor"),wl=jo(function(e,t){return e*t},1),bl=zo("round"),_l=jo(function(e,t){return e-t},0);return Bn.after=function(e,t){if("function"!=typeof t)throw new xe(i);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Sa,Bn.assign=vs,Bn.assignIn=ys,Bn.assignInWith=As,Bn.assignWith=ws,Bn.at=bs,Bn.before=Oa,Bn.bind=xa,Bn.bindAll=Xs,Bn.bindKey=Da,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Bn.chain=ua,Bn.chunk=function(e,t,n){t=(n?mi(e,t,n):t===o)?1:gn(ps(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(pt(i/t));a<i;)l[s++]=Jr(e,a,a+=t);return l},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Rt(Ha(n)?Oo(n):[n],fr(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=ii();return e=t?Tt(e,function(e){if("function"!=typeof e[1])throw new xe(i);return[n(e[0]),e[1]]}):[],$r(function(n){for(var r=-1;++r<t;){var o=e[r];if(Ct(o[0],this,n))return Ct(o[1],this,n)}})},Bn.conforms=function(e){return function(e){var t=Ps(e);return function(n){return ar(n,e,t)}}(ir(e,1))},Bn.constant=Zs,Bn.countBy=ha,Bn.create=function(e,t){var n=Nn(e);return null==t?n:tr(n,t)},Bn.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Qo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Pa,Bn.defaults=_s,Bn.defaultsDeep=Cs,Bn.defer=Ma,Bn.delay=Ta,Bn.difference=Ni,Bn.differenceBy=ji,Bn.differenceWith=Ui,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Jr(e,(t=n||t===o?1:ps(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Jr(e,0,(t=r-(t=n||t===o?1:ps(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?co(e,ii(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?co(e,ii(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&mi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ps(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ps(r))<0&&(r+=i),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Ha(e)?Dt:hr)(e,ii(t,3))},Bn.flatMap=function(e,t){return fr(ba(e,t),1)},Bn.flatMapDeep=function(e,t){return fr(ba(e,t),u)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:ps(n),fr(ba(e,t),n)},Bn.flatten=Gi,Bn.flattenDeep=function(e){return null!=e&&e.length?fr(e,u):[]},Bn.flattenDepth=function(e,t){return null!=e&&e.length?fr(e,t=t===o?1:ps(t)):[]},Bn.flip=function(e){return Qo(e,512)},Bn.flow=Js,Bn.flowRight=el,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];nr(r,o[0],o[1])}return r},Bn.functions=function(e){return null==e?[]:Ar(e,Ps(e))},Bn.functionsIn=function(e){return null==e?[]:Ar(e,Ms(e))},Bn.groupBy=ya,Bn.initial=function(e){return null!=e&&e.length?Jr(e,0,-1):[]},Bn.intersection=zi,Bn.intersectionBy=$i,Bn.intersectionWith=Ki,Bn.invert=Os,Bn.invertBy=xs,Bn.invokeMap=Aa,Bn.iteratee=nl,Bn.keyBy=wa,Bn.keys=Ps,Bn.keysIn=Ms,Bn.map=ba,Bn.mapKeys=function(e,t){var n={};return t=ii(t,3),vr(e,function(e,r,o){nr(n,t(e,r,o),e)}),n},Bn.mapValues=function(e,t){var n={};return t=ii(t,3),vr(e,function(e,r,o){nr(n,r,t(e,r,o))}),n},Bn.matches=function(e){return Lr(ir(e,1))},Bn.matchesProperty=function(e,t){return Br(e,ir(t,1))},Bn.memoize=Ra,Bn.merge=Ts,Bn.mergeWith=Rs,Bn.method=rl,Bn.methodOf=ol,Bn.mixin=il,Bn.negate=Ia,Bn.nthArg=function(e){return e=ps(e),$r(function(t){return jr(t,e)})},Bn.omit=Is,Bn.omitBy=function(e,t){return ks(e,Ia(ii(t)))},Bn.once=function(e){return Oa(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Bn.over=sl,Bn.overArgs=Fa,Bn.overEvery=ll,Bn.overSome=cl,Bn.partial=ka,Bn.partialRight=La,Bn.partition=_a,Bn.pick=Fs,Bn.pickBy=ks,Bn.property=ul,Bn.propertyOf=function(e){return function(t){return null==e?o:wr(e,t)}},Bn.pull=qi,Bn.pullAll=Yi,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,ii(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,o,n):e},Bn.pullAt=Xi,Bn.range=dl,Bn.rangeRight=pl,Bn.rearg=Ba,Bn.reject=function(e,t){return(Ha(e)?Dt:hr)(e,Ia(ii(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ii(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Gr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new xe(i);return $r(e,t=t===o?t:ps(t))},Bn.reverse=Zi,Bn.sampleSize=function(e,t,n){return t=(n?mi(e,t,n):t===o)?1:ps(t),(Ha(e)?qn:Qr)(e,t)},Bn.set=function(e,t,n){return null==e?e:qr(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:qr(e,t,n,r)},Bn.shuffle=function(e){return(Ha(e)?Yn:Zr)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&mi(e,t,n)?(t=0,n=r):(t=null==t?0:ps(t),n=n===o?r:ps(n)),Jr(e,t,n)):[]},Bn.sortBy=Ca,Bn.sortedUniq=function(e){return e&&e.length?ro(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?ro(e,ii(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&mi(e,t,n)&&(t=n=o),(n=n===o?h:n>>>0)?(e=ms(e))&&("string"==typeof t||null!=t&&!rs(t))&&!(t=io(t))&&rn(e)?yo(un(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new xe(i);return t=null==t?0:gn(ps(t),0),$r(function(n){var r=n[t],o=yo(n,0,t);return r&&Rt(o,r),Ct(e,this,o)})},Bn.tail=function(e){var t=null==e?0:e.length;return t?Jr(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?Jr(e,0,(t=n||t===o?1:ps(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Jr(e,(t=r-(t=n||t===o?1:ps(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?co(e,ii(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?co(e,ii(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new xe(i);return Za(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Pa(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=da,Bn.toArray=us,Bn.toPairs=Ls,Bn.toPairsIn=Bs,Bn.toPath=function(e){return Ha(e)?Tt(e,ki):as(e)?[e]:Oo(Fi(ms(e)))},Bn.toPlainObject=gs,Bn.transform=function(e,t,n){var r=Ha(e),o=r||$a(e)||ss(e);if(t=ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Za(e)&&qa(i)?Nn(We(e)):{}}return(o?St:vr)(e,function(e,r,o){return t(n,e,r,o)}),n},Bn.unary=function(e){return Sa(e,1)},Bn.union=Ji,Bn.unionBy=ea,Bn.unionWith=ta,Bn.uniq=function(e){return e&&e.length?ao(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?ao(e,ii(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ao(e,o,t):[]},Bn.unset=function(e,t){return null==e||so(e,t)},Bn.unzip=na,Bn.unzipWith=ra,Bn.update=function(e,t,n){return null==e?e:lo(e,t,go(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:lo(e,t,go(n),r)},Bn.values=Ns,Bn.valuesIn=function(e){return null==e?[]:Yt(e,Ms(e))},Bn.without=oa,Bn.words=qs,Bn.wrap=function(e,t){return ka(go(t),e)},Bn.xor=ia,Bn.xorBy=aa,Bn.xorWith=sa,Bn.zip=la,Bn.zipObject=function(e,t){return ho(e||[],t||[],Zn)},Bn.zipObjectDeep=function(e,t){return ho(e||[],t||[],qr)},Bn.zipWith=ca,Bn.entries=Ls,Bn.entriesIn=Bs,Bn.extend=ys,Bn.extendWith=As,il(Bn,Bn),Bn.add=ml,Bn.attempt=Ys,Bn.camelCase=js,Bn.capitalize=Us,Bn.ceil=vl,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=fs(n))==n?n:0),t!==o&&(t=(t=fs(t))==t?t:0),or(fs(e),t,n)},Bn.clone=function(e){return ir(e,4)},Bn.cloneDeep=function(e){return ir(e,5)},Bn.cloneDeepWith=function(e,t){return ir(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return ir(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||ar(e,t,Ps(t))},Bn.deburr=Vs,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=yl,Bn.endsWith=function(e,t,n){e=ms(e),t=io(t);var r=e.length,i=n=n===o?r:or(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Na,Bn.escape=function(e){return(e=ms(e))&&Q.test(e)?e.replace($,tn):e},Bn.escapeRegExp=function(e){return(e=ms(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Bn.every=function(e,t,n){var r=Ha(e)?xt:dr;return n&&mi(e,t,n)&&(t=o),r(e,ii(t,3))},Bn.find=fa,Bn.findIndex=Vi,Bn.findKey=function(e,t){return Bt(e,ii(t,3),vr)},Bn.findLast=ga,Bn.findLastIndex=Hi,Bn.findLastKey=function(e,t){return Bt(e,ii(t,3),yr)},Bn.floor=Al,Bn.forEach=ma,Bn.forEachRight=va,Bn.forIn=function(e,t){return null==e?e:gr(e,ii(t,3),Ms)},Bn.forInRight=function(e,t){return null==e?e:mr(e,ii(t,3),Ms)},Bn.forOwn=function(e,t){return e&&vr(e,ii(t,3))},Bn.forOwnRight=function(e,t){return e&&yr(e,ii(t,3))},Bn.get=Es,Bn.gt=ja,Bn.gte=Ua,Bn.has=function(e,t){return null!=e&&pi(e,t,Er)},Bn.hasIn=Ss,Bn.head=Wi,Bn.identity=tl,Bn.includes=function(e,t,n,r){e=Wa(e)?e:Ns(e),n=n&&!r?ps(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),is(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&jt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ps(n);return o<0&&(o=gn(r+o,0)),jt(e,t,o)},Bn.inRange=function(e,t,n){return t=ds(t),n===o?(n=t,t=0):n=ds(n),function(e,t,n){return e>=mn(t,n)&&e<gn(t,n)}(e=fs(e),t,n)},Bn.invoke=Ds,Bn.isArguments=Va,Bn.isArray=Ha,Bn.isArrayBuffer=Ga,Bn.isArrayLike=Wa,Bn.isArrayLikeObject=za,Bn.isBoolean=function(e){return!0===e||!1===e||Ja(e)&&_r(e)==v},Bn.isBuffer=$a,Bn.isDate=Ka,Bn.isElement=function(e){return Ja(e)&&1===e.nodeType&&!ns(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||ss(e)||Va(e)))return!e.length;var t=di(e);if(t==_||t==x)return!e.size;if(wi(e))return!Ir(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Pr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Pr(e,t,o,n):!!r},Bn.isError=Qa,Bn.isFinite=function(e){return"number"==typeof e&&Lt(e)},Bn.isFunction=qa,Bn.isInteger=Ya,Bn.isLength=Xa,Bn.isMap=es,Bn.isMatch=function(e,t){return e===t||Mr(e,t,si(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Mr(e,t,si(t),n)},Bn.isNaN=function(e){return ts(e)&&e!=+e},Bn.isNative=function(e){if(Ai(e))throw new be("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Tr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=ts,Bn.isObject=Za,Bn.isObjectLike=Ja,Bn.isPlainObject=ns,Bn.isRegExp=rs,Bn.isSafeInteger=function(e){return Ya(e)&&e>=-9007199254740991&&e<=d},Bn.isSet=os,Bn.isString=is,Bn.isSymbol=as,Bn.isTypedArray=ss,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return Ja(e)&&di(e)==M},Bn.isWeakSet=function(e){return Ja(e)&&"[object WeakSet]"==_r(e)},Bn.join=function(e,t){return null==e?"":Wt.call(e,t)},Bn.kebabCase=Hs,Bn.last=Qi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ps(n))<0?gn(r+i,0):mn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Nt(e,Vt,i,!0)},Bn.lowerCase=Gs,Bn.lowerFirst=Ws,Bn.lt=ls,Bn.lte=cs,Bn.max=function(e){return e&&e.length?pr(e,tl,Cr):o},Bn.maxBy=function(e,t){return e&&e.length?pr(e,ii(t,2),Cr):o},Bn.mean=function(e){return Ht(e,tl)},Bn.meanBy=function(e,t){return Ht(e,ii(t,2))},Bn.min=function(e){return e&&e.length?pr(e,tl,Fr):o},Bn.minBy=function(e,t){return e&&e.length?pr(e,ii(t,2),Fr):o},Bn.stubArray=hl,Bn.stubFalse=fl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=wl,Bn.nth=function(e,t){return e&&e.length?jr(e,ps(t)):o},Bn.noConflict=function(){return dt._===this&&(dt._=Ne),this},Bn.noop=al,Bn.now=Ea,Bn.pad=function(e,t,n){e=ms(e);var r=(t=ps(t))?cn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vo(ht(o),n)+e+Vo(pt(o),n)},Bn.padEnd=function(e,t,n){e=ms(e);var r=(t=ps(t))?cn(e):0;return t&&r<t?e+Vo(t-r,n):e},Bn.padStart=function(e,t,n){e=ms(e);var r=(t=ps(t))?cn(e):0;return t&&r<t?Vo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),yn(ms(e).replace(re,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&mi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ds(e),t===o?(t=e,e=0):t=ds(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=An();return mn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Wr(e,t)},Bn.reduce=function(e,t,n){var r=Ha(e)?It:zt,o=arguments.length<3;return r(e,ii(t,4),n,o,cr)},Bn.reduceRight=function(e,t,n){var r=Ha(e)?Ft:zt,o=arguments.length<3;return r(e,ii(t,4),n,o,ur)},Bn.repeat=function(e,t,n){return t=(n?mi(e,t,n):t===o)?1:ps(t),zr(ms(e),t)},Bn.replace=function(){var e=arguments,t=ms(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=mo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[ki(t[r])];a===o&&(r=i,a=n),e=qa(a)?a.call(e):a}return e},Bn.round=bl,Bn.runInContext=e,Bn.sample=function(e){return(Ha(e)?Qn:Kr)(e)},Bn.size=function(e){if(null==e)return 0;if(Wa(e))return is(e)?cn(e):e.length;var t=di(e);return t==_||t==x?e.size:Ir(e).length},Bn.snakeCase=zs,Bn.some=function(e,t,n){var r=Ha(e)?kt:eo;return n&&mi(e,t,n)&&(t=o),r(e,ii(t,3))},Bn.sortedIndex=function(e,t){return to(e,t)},Bn.sortedIndexBy=function(e,t,n){return no(e,t,ii(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=to(e,t);if(r<n&&Na(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return to(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return no(e,t,ii(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=to(e,t,!0)-1;if(Na(e[n],t))return n}return-1},Bn.startCase=$s,Bn.startsWith=function(e,t,n){return e=ms(e),n=null==n?0:or(ps(n),0,e.length),t=io(t),e.slice(n,n+t.length)==t},Bn.subtract=_l,Bn.sum=function(e){return e&&e.length?$t(e,tl):0},Bn.sumBy=function(e,t){return e&&e.length?$t(e,ii(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&mi(e,t,n)&&(t=o),e=ms(e),t=ws({},t,r,qo);var i=ws({},t.imports,r.imports,qo),a=Ps(i),s=Yt(i,a);St(a,function(e){if(ce.test(e))throw new be("Invalid `imports` option passed into `_.template`")});var l,c,u=0,d=t.interpolate||Ae,p="__p += '",h=Se((t.escape||Ae).source+"|"+d.source+"|"+(d===X?de:Ae).source+"|"+(t.evaluate||Ae).source+"|$","g"),f="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,function(t,n,r,o,i,a){return r||(r=o),p+=e.slice(u,a).replace(we,nn),n&&(l=!0,p+="' +\n__e("+n+") +\n'"),i&&(c=!0,p+="';\n"+i+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=a+t.length,t}),p+="';\n";var g=Ie.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new be("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(c?p.replace(H,""):p).replace(G,"$1").replace(W,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Ys(function(){return _e(a,f+"return "+p).apply(o,s)});if(m.source=p,Qa(m))throw m;return m},Bn.times=function(e,t){if((e=ps(e))<1||e>d)return[];var n=h,r=mn(e,h);t=ii(t),e-=h;for(var o=Kt(r,t);++n<e;)t(n);return o},Bn.toFinite=ds,Bn.toInteger=ps,Bn.toLength=hs,Bn.toLower=function(e){return ms(e).toLowerCase()},Bn.toNumber=fs,Bn.toSafeInteger=function(e){return e?or(ps(e),-9007199254740991,d):0===e?e:0},Bn.toString=ms,Bn.toUpper=function(e){return ms(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=ms(e))&&(n||t===o))return Qt(e);if(!e||!(t=io(t)))return e;var r=un(e),i=un(t);return yo(r,Zt(r,i),Jt(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=ms(e))&&(n||t===o))return e.slice(0,dn(e)+1);if(!e||!(t=io(t)))return e;var r=un(e);return yo(r,0,Jt(r,un(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=ms(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=io(t)))return e;var r=un(e);return yo(r,Zt(r,un(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(Za(t)){var i="separator"in t?t.separator:i;n="length"in t?ps(t.length):n,r="omission"in t?io(t.omission):r}var a=(e=ms(e)).length;if(rn(e)){var s=un(e);a=s.length}if(n>=a)return e;var l=n-cn(r);if(l<1)return r;var c=s?yo(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),rs(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Se(i.source,ms(pe.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===o?l:p)}}else if(e.indexOf(io(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Bn.unescape=function(e){return(e=ms(e))&&K.test(e)?e.replace(z,pn):e},Bn.uniqueId=function(e){var t=++Fe;return ms(e)+t},Bn.upperCase=Ks,Bn.upperFirst=Qs,Bn.each=ma,Bn.eachRight=va,Bn.first=Wi,il(Bn,(gl={},vr(Bn,function(e,t){Ie.call(Bn.prototype,t)||(gl[t]=e)}),gl),{chain:!1}),Bn.VERSION="4.18.1",St(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Bn[e].placeholder=Bn}),St(["drop","take"],function(e,t){Vn.prototype[e]=function(n){n=n===o?1:gn(ps(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=mn(n,r.__takeCount__):r.__views__.push({size:mn(n,h),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),St(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),St(["head","last"],function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}}),St(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}}),Vn.prototype.compact=function(){return this.filter(tl)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=$r(function(e,t){return"function"==typeof e?new Vn(this):this.map(function(n){return xr(n,e,t)})}),Vn.prototype.reject=function(e){return this.filter(Ia(ii(e)))},Vn.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(h)},vr(Vn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Vn,c=s[0],u=l||Ha(t),d=function(e){var t=i.apply(Bn,Rt([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=a&&!p,g=l&&!h;if(!a&&u){t=g?t:new Vn(this);var m=e.apply(t,s);return m.__actions__.push({func:da,args:[d],thisArg:o}),new Un(m,p)}return f&&g?e.apply(this,s):(m=this.thru(d),f?r?m.value()[0]:m.value():m)})}),St(["pop","push","shift","sort","splice","unshift"],function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ha(o)?o:[],e)}return this[n](function(n){return t.apply(Ha(n)?n:[],e)})}}),vr(Vn.prototype,function(e,t){var n=Bn[t];if(n){var r=n.name+"";Ie.call(Dn,r)||(Dn[r]=[]),Dn[r].push({name:t,func:n})}}),Dn[Bo(o,2).name]=[{name:"wrapper",func:o}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=mn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,h=mn(l,this.__takeCount__);if(!n||!r&&o==l&&h==l)return uo(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var g=-1,m=e[c+=t];++g<d;){var v=u[g],y=v.iteratee,A=v.type,w=y(m);if(2==A)m=w;else if(!w){if(1==A)continue e;break e}}f[p++]=m}return f},Bn.prototype.at=pa,Bn.prototype.chain=function(){return ua(this)},Bn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=us(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof jn;){var r=Bi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:da,args:[Zi],thisArg:o}),new Un(t,this.__chain__)}return this.thru(Zi)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return uo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,qe&&(Bn.prototype[qe]=function(){return this}),Bn}();dt._=hn,(r=function(){return hn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},105(e,t,n){var r=n(5111),o=n(3334),i=n(1393),a=n(3142);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},6155(e,t,n){var r=n(7073),o=n(7170),i=n(3334);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},1392(e,t,n){var r=n(8250);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},2451(e,t,n){var r=n(91),o=n(7848)(function(e,t,n){r(e,t,n)});e.exports=o},9071(e){e.exports=function(){}},6735(e,t,n){var r=n(5111),o=n(3334),i=n(5031),a=n(3650);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),function(e){return[e]});return t=o(t),i(e,n,function(e,n){return t(e,n[0])})}},3282(e,t,n){var r=n(2762),o=n(8880),i=n(5187),a=n(6040);e.exports=function(e){return i(e)?r(a(e)):o(e)}},769(e,t,n){var r=n(4187),o=n(4570),i=n(3334),a=n(1961),s=n(3142);e.exports=function(e,t,n){var l=s(e)?r:a,c=arguments.length<3;return l(e,i(t,4),n,c,o)}},1263(e,t,n){var r=n(7655);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},1114(e,t,n){var r=n(195),o=n(8486),i=n(6529),a=n(8138),s=n(1090);e.exports=function(e){if(null==e)return 0;if(i(e))return a(e)?s(e):e.length;var t=o(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},9306(e){e.exports=function(){return[]}},4772(e){e.exports=function(){return!1}},3301(e,t,n){var r=n(6131),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},7642(e,t,n){var r=n(3301);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},6131(e,t,n){var r=n(6403),o=n(1580),i=n(1187),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},4207(e,t,n){var r=n(9032),o=n(5288);e.exports=function(e){return r(e,o(e))}},5243(e,t,n){var r=n(2291);e.exports=function(e){return null==e?"":r(e)}},2438(e,t,n){var r=n(5630);e.exports=function(e){return e&&e.length?r(e):[]}},8479(e){"use strict";e.exports=Math.abs},8449(e){"use strict";e.exports=Math.floor},2422(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},8129(e){"use strict";e.exports=Math.max},2387(e){"use strict";e.exports=Math.min},5865(e){"use strict";e.exports=Math.pow},1319(e){"use strict";e.exports=Math.round},6882(e,t,n){"use strict";var r=n(2422);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},518(e,t){(function(){var e,n,r,o,i,a,s,l;l=function(e){return[(e&255<<24)>>>24,(e&255<<16)>>>16,(65280&e)>>>8,255&e].join(".")},s=function(e){var t,r,o,i,a,s;for(t=[],o=i=0;i<=3&&0!==e.length;o=++i){if(o>0){if("."!==e[0])throw new Error("Invalid IP");e=e.substring(1)}a=(s=n(e))[0],r=s[1],e=e.substring(r),t.push(a)}if(0!==e.length)throw new Error("Invalid IP");switch(t.length){case 1:if(t[0]>4294967295)throw new Error("Invalid IP");return t[0]>>>0;case 2:if(t[0]>255||t[1]>16777215)throw new Error("Invalid IP");return(t[0]<<24|t[1])>>>0;case 3:if(t[0]>255||t[1]>255||t[2]>65535)throw new Error("Invalid IP");return(t[0]<<24|t[1]<<16|t[2])>>>0;case 4:if(t[0]>255||t[1]>255||t[2]>255||t[3]>255)throw new Error("Invalid IP");return(t[0]<<24|t[1]<<16|t[2]<<8|t[3])>>>0;default:throw new Error("Invalid IP")}},o=(r=function(e){return e.charCodeAt(0)})("0"),a=r("a"),i=r("A"),n=function(e){var t,n,s,l,c;for(l=0,t=10,n="9",s=0,e.length>1&&"0"===e[s]&&("x"===e[s+1]||"X"===e[s+1]?(s+=2,t=16):"0"<=e[s+1]&&e[s+1]<="9"&&(s++,t=8,n="7")),c=s;s<e.length;){if("0"<=e[s]&&e[s]<=n)l=l*t+(r(e[s])-o)>>>0;else{if(16!==t)break;if("a"<=e[s]&&e[s]<="f")l=l*t+(10+r(e[s])-a)>>>0;else{if(!("A"<=e[s]&&e[s]<="F"))break;l=l*t+(10+r(e[s])-i)>>>0}}if(l>4294967295)throw new Error("too large");s++}if(s===c)throw new Error("empty octet");return[l,s]},e=function(){function e(e,t){var n,r,o;if("string"!=typeof e)throw new Error("Missing `net' parameter");if(t||(o=e.split("/",2),e=o[0],t=o[1]),t||(t=32),"string"==typeof t&&t.indexOf(".")>-1){try{this.maskLong=s(t)}catch(e){throw new Error("Invalid mask: "+t)}for(n=r=32;r>=0;n=--r)if(this.maskLong===4294967295<<32-n>>>0){this.bitmask=n;break}}else{if(!t&&0!==t)throw new Error("Invalid mask: empty");this.bitmask=parseInt(t,10),this.maskLong=0,this.bitmask>0&&(this.maskLong=4294967295<<32-this.bitmask>>>0)}try{this.netLong=(s(e)&this.maskLong)>>>0}catch(t){throw new Error("Invalid net address: "+e)}if(!(this.bitmask<=32))throw new Error("Invalid mask for ip4: "+t);this.size=Math.pow(2,32-this.bitmask),this.base=l(this.netLong),this.mask=l(this.maskLong),this.hostmask=l(~this.maskLong),this.first=this.bitmask<=30?l(this.netLong+1):this.base,this.last=this.bitmask<=30?l(this.netLong+this.size-2):l(this.netLong+this.size-1),this.broadcast=this.bitmask<=30?l(this.netLong+this.size-1):void 0}return e.prototype.contains=function(t){return"string"==typeof t&&(t.indexOf("/")>0||4!==t.split(".").length)&&(t=new e(t)),t instanceof e?this.contains(t.base)&&this.contains(t.broadcast||t.last):(s(t)&this.maskLong)>>>0==(this.netLong&this.maskLong)>>>0},e.prototype.next=function(t){return null==t&&(t=1),new e(l(this.netLong+this.size*t),this.mask)},e.prototype.forEach=function(e){var t,n,r;for(r=s(this.first),n=s(this.last),t=0;r<=n;)e(l(r),r,t),t++,r++},e.prototype.toString=function(){return this.base+"/"+this.bitmask},e}(),t.ip2long=s,t.long2ip=l,t.Netmask=e}).call(this)},8660(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,A=String.prototype.replace,w=String.prototype.toUpperCase,b=String.prototype.toLowerCase,_=RegExp.prototype.test,C=Array.prototype.concat,E=Array.prototype.join,S=Array.prototype.slice,O=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function F(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return A.call(o,n,"$&_")+"."+A.call(A.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return A.call(t,n,"$&_")}var k=n(6973),L=k.custom,B=z(L)?L:null,N={__proto__:null,double:'"',single:"'"},j={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,n){var r=n.quoteStyle||t,o=N[r];return o+e+o}function V(e){return A.call(String(e),/"/g,"&quot;")}function H(e){return!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function G(e){return"[object Array]"===Q(e)&&H(e)}function W(e){return"[object RegExp]"===Q(e)&&H(e)}function z(e){if(M)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,s){var l=r||{};if(K(l,"quoteStyle")&&!K(N,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(K(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!K(l,"customInspect")||l.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Y(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?F(t,_):_}if("bigint"==typeof t){var O=String(t)+"n";return w?F(t,O):O}var D=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=D&&D>0&&"object"==typeof t)return G(t)?"[Array]":"[Object]";var L,j=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}(l,o);if(void 0===s)s=[];else if(q(s,t)>=0)return"[Circular]";function $(t,n,r){if(n&&(s=S.call(s)).push(n),r){var i={depth:l.depth};return K(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if("function"==typeof t&&!W(t)){var X=function(e){if(e.name)return e.name;var t=v.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),re=ne(t,$);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(re.length>0?" { "+E.call(re,", ")+" }":"")}if(z(t)){var oe=M?A.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||M?oe:Z(oe)}if((L=t)&&"object"==typeof L&&("undefined"!=typeof HTMLElement&&L instanceof HTMLElement||"string"==typeof L.nodeName&&"function"==typeof L.getAttribute)){for(var ie="<"+b.call(String(t.nodeName)),ae=t.attributes||[],se=0;se<ae.length;se++)ie+=" "+ae[se].name+"="+U(V(ae[se].value),"double",l);return ie+=">",t.childNodes&&t.childNodes.length&&(ie+="..."),ie+"</"+b.call(String(t.nodeName))+">"}if(G(t)){if(0===t.length)return"[]";var le=ne(t,$);return j&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(le)?"["+te(le,j)+"]":"[ "+E.call(le,", ")+" ]"}if(function(e){return"[object Error]"===Q(e)&&H(e)}(t)){var ce=ne(t,$);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===ce.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(ce,", ")+" }":"{ ["+String(t)+"] "+E.call(C.call("[cause]: "+$(t.cause),ce),", ")+" }"}if("object"==typeof t&&g){if(B&&"function"==typeof t[B]&&k)return k(t,{depth:D-o});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,function(e,n){ue.push($(n,t,!0)+" => "+$(e,t))}),ee("Map",i.call(t),ue,j)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var de=[];return u&&u.call(t,function(e){de.push($(e,t))}),ee("Set",c.call(t),de,j)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if(function(e){return"[object Number]"===Q(e)&&H(e)}(t))return Z($(Number(t)));if(function(e){if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}(t))return Z($(x.call(t)));if(function(e){return"[object Boolean]"===Q(e)&&H(e)}(t))return Z(f.call(t));if(function(e){return"[object String]"===Q(e)&&H(e)}(t))return Z($(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Q(e)&&H(e)}(t)&&!W(t)){var pe=ne(t,$),he=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",ge=!he&&T&&Object(t)===t&&T in t?y.call(Q(t),8,-1):fe?"Object":"",me=(he||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ge||fe?"["+E.call(C.call([],ge||[],fe||[]),": ")+"] ":"");return 0===pe.length?me+"{}":j?me+"{"+te(pe,j)+"}":me+"{ "+E.call(pe,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function K(e,t){return $.call(e,t)}function Q(e){return g.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(y.call(e,0,t.maxStringLength),t)+r}var o=j[t.quoteStyle||"single"];return o.lastIndex=0,U(A.call(A.call(e,o,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function ee(e,t,n,r){return e+" ("+t+") {"+(r?te(n,r):E.call(n,", "))+"}"}function te(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+E.call(e,","+n)+"\n"+t.prev}function ne(e,t){var n=G(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=K(e,o)?t(e[o],e):""}var i,a="function"==typeof D?D(e):[];if(M){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)K(e,l)&&(n&&String(Number(l))===l&&l<e.length||M&&i["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof D)for(var c=0;c<a.length;c++)R.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},1830(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},5810(e,t,n){"use strict";var r=n(6623),o=n(6193),i=n(1830);e.exports={formats:i,parse:o,stringify:r}},6193(e,t,n){"use strict";var r=n(1539),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},l=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,n,i){if(e){var a=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&o.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var r=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(n),a=i?n.slice(0,i.index):n,s=[];if(a){if(!t.plainObjects&&o.call(Object.prototype,a)&&!t.allowPrototypes)return;s[s.length]=a}for(var l=0;null!==(i=r.exec(n))&&l<t.depth;){l+=1;var c=i[1].slice(1,-1);if(!t.plainObjects&&o.call(Object.prototype,c)&&!t.allowPrototypes)return;s[s.length]=i[1]}if(i){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");s[s.length]="["+n.slice(i.index)+"]"}return s}(e,n);if(a)return function(e,t,n,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=o?t:l(t,n,i),c=e.length-1;c>=0;--c){var u,d=e[c];if("[]"===d&&n.parseArrays)u=r.isOverflow(s)?s:n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s,n.arrayLimit,n.plainObjects);else{u=n.plainObjects?{__proto__:null}:{};var p="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,h=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,f=parseInt(h,10),g=!isNaN(f)&&d!==h&&String(f)===h&&f>=0&&n.parseArrays;if(n.parseArrays||""!==h)if(g&&f<n.arrayLimit)(u=[])[f]=s;else{if(g&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");g?(u[f]=s,r.markOverflow(u,f)):"__proto__"!==h&&(u[h]=s)}else u={0:s}}s=u}return s}(a,t,n,i)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,n=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:a.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var u="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,t.throwOnLimitExceeded?u+1:u);if(t.throwOnLimitExceeded&&d.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var p,h=-1,f=t.charset;if(t.charsetSentinel)for(p=0;p<d.length;++p)0===d[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[p]?f="utf-8":"utf8=%26%2310003%3B"===d[p]&&(f="iso-8859-1"),h=p,p=d.length);for(p=0;p<d.length;++p)if(p!==h){var g,m,v=d[p],y=v.indexOf("]="),A=-1===y?v.indexOf("="):y+1;if(-1===A?(g=t.decoder(v,a.decoder,f,"key"),m=t.strictNullHandling?null:""):null!==(g=t.decoder(v.slice(0,A),a.decoder,f,"key"))&&(m=r.maybeMap(l(v.slice(A+1),t,i(n[g])?n[g].length:0),function(e){return t.decoder(e,a.decoder,f,"value")})),m&&t.interpretNumericEntities&&"iso-8859-1"===f&&(m=s(String(m))),v.indexOf("[]=")>-1&&(m=i(m)?[m]:m),t.comma&&i(m)&&m.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");m=r.combine([],m,t.arrayLimit,t.plainObjects)}if(null!==g){var w=o.call(n,g);w&&("combine"===t.duplicates||v.indexOf("[]=")>-1)?n[g]=r.combine(n[g],m,t.arrayLimit,t.plainObjects):w&&"last"!==t.duplicates||(n[g]=m)}}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},p=Object.keys(u),h=0;h<p.length;++h){var f=p[h],g=c(f,u[f],n,"string"==typeof e);d=r.merge(d,g,n)}return!0===n.allowSparse?d:r.compact(d)}},6623(e,t,n){"use strict";var r=n(7575),o=n(1539),i=n(1830),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,p=i.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f={},g=function e(t,n,i,a,s,c,d,p,g,m,v,y,A,w,b,_,C,E){for(var S,O=t,x=E,D=0,P=!1;void 0!==(x=x.get(f))&&!P;){var M=x.get(t);if(D+=1,void 0!==M){if(M===D)throw new RangeError("Cyclic object value");P=!0}void 0===x.get(f)&&(D=0)}if("function"==typeof m?O=m(n,O):O instanceof Date?O=A(O):"comma"===i&&l(O)&&(O=o.maybeMap(O,function(e){return e instanceof Date?A(e):e})),null===O){if(c)return g&&!_?g(n,h.encoder,C,"key",w):n;O=""}if("string"==typeof(S=O)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||o.isBuffer(O))return g?[b(_?n:g(n,h.encoder,C,"key",w))+"="+b(g(O,h.encoder,C,"value",w))]:[b(n)+"="+b(String(O))];var T,R=[];if(void 0===O)return R;if("comma"===i&&l(O))_&&g&&(O=o.maybeMap(O,g)),T=[{value:O.length>0?O.join(",")||null:void 0}];else if(l(m))T=m;else{var I=Object.keys(O);T=v?I.sort(v):I}var F=p?String(n).replace(/\./g,"%2E"):String(n),k=a&&l(O)&&1===O.length?F+"[]":F;if(s&&l(O)&&0===O.length)return k+"[]";for(var L=0;L<T.length;++L){var B=T[L],N="object"==typeof B&&B&&void 0!==B.value?B.value:O[B];if(!d||null!==N){var j=y&&p?String(B).replace(/\./g,"%2E"):String(B),U=l(O)?"function"==typeof i?i(k,j):k:k+(y?"."+j:"["+j+"]");E.set(t,D);var V=r();V.set(f,E),u(R,e(N,U,i,a,s,c,d,p,"comma"===i&&_&&l(O)?null:g,m,v,y,A,w,b,_,C,V))}}return R};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],c=h.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:c,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var d=[];if("object"!=typeof o||null===o)return"";var p=s[c.arrayFormat],f="comma"===p&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var m=r(),v=0;v<n.length;++v){var y=n[v],A=o[y];c.skipNulls&&null===A||u(d,g(A,y,p,f,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var w=d.join(c.delimiter),b=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),w.length>0?b+w:""}},1539(e,t,n){"use strict";var r=n(1830),o=n(7575),i=Object.prototype.hasOwnProperty,a=Array.isArray,s=o(),l=function(e,t){return s.set(e,t),e},c=function(e){return s.has(e)},u=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},p=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),h=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},f=1024;e.exports={arrayToObject:h,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t,n,r){if(c(e)){var o=u(e)+1;return e[o]=t,d(e,o),e}var i=[].concat(e,t);return i.length>n?l(h(i,{plainObjects:r}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t[t.length]={obj:i,prop:c},n[n.length]=u)}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&(r[r.length]=n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;l+=f){for(var c=a.length>=f?a.slice(l,l+f):a,u=[],d=0;d<c.length;++d){var h=c.charCodeAt(d);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===r.RFC1738&&(40===h||41===h)?u[u.length]=c.charAt(d):h<128?u[u.length]=p[h]:h<2048?u[u.length]=p[192|h>>6]+p[128|63&h]:h<55296||h>=57344?u[u.length]=p[224|h>>12]+p[128|h>>6&63]+p[128|63&h]:(d+=1,h=65536+((1023&h)<<10|1023&c.charCodeAt(d)),u[u.length]=p[240|h>>18]+p[128|h>>12&63]+p[128|h>>6&63]+p[128|63&h])}s+=u.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isOverflow:c,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:l,maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(a(t)){var o=t.length;if(r&&"number"==typeof r.arrayLimit&&o>r.arrayLimit)return l(h(t.concat(n),r),o);t[o]=n}else{if(!t||"object"!=typeof t)return[t,n];if(c(t)){var s=u(t)+1;t[s]=n,d(t,s)}else{if(r&&r.strictMerge)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}}return t}if(!t||"object"!=typeof t){if(c(n)){for(var p=Object.keys(n),f=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},g=0;g<p.length;g++)f[parseInt(p[g],10)+1]=n[p[g]];return l(f,u(n)+1)}var m=[t].concat(n);return r&&"number"==typeof r.arrayLimit&&m.length>r.arrayLimit?l(h(m,r),m.length-1):m}var v=t;return a(t)&&!a(n)&&(v=h(t,r)),a(t)&&a(n)?(n.forEach(function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t[t.length]=n}else t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];if(i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,c(n)&&!c(t)&&l(t,u(n)),c(t)){var s=parseInt(o,10);String(s)===o&&s>=0&&s>u(t)&&d(t,s)}return t},v)}}},3346(e,t,n){"use strict";var r=n(8660),o=n(3468),i=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return i(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=i(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},7004(e,t,n){"use strict";var r=n(528),o=n(4607),i=n(8660),a=n(3468),s=r("%Map%",!0),l=o("Map.prototype.get",!0),c=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),d=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var n=d(e,t);return 0===p(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),c(e,t,n)}};return t}},6348(e,t,n){"use strict";var r=n(528),o=n(4607),i=n(8660),a=n(7004),s=n(3468),l=r("%WeakMap%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),u(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a},7575(e,t,n){"use strict";var r=n(3468),o=n(8660),i=n(3346),a=n(7004),s=n(6348)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},228(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,o);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},9427(t){"use strict";t.exports=e},8701(){},2017(){},2529(){},4157(){},8494(){},7012(){},6973(){},9011(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(8750),o=n(2261);class i extends Error{static from(e,t,n,r,o,a){const s=new i(e.message,t||e.code,n,r,o);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),a&&Object.assign(s,a),s}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&r.A.hasOwnProp(e,"redact")?e.redact:void 0,n=r.A.isArray(t)&&t.length>0?function(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),i=[],a=e=>{if(null===e||"object"!=typeof e)return e;if(r.A.isBuffer(e))return e;if(-1!==i.indexOf(e))return;let t;if(e instanceof o.A&&(e=e.toJSON()),i.push(e),r.A.isArray(e))t=[],e.forEach((e,n)=>{const o=a(e);r.A.isUndefined(o)||(t[n]=o)});else{if(!r.A.isPlainObject(e)&&function(e){if(r.A.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(r.A.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return i.pop(),e;t=Object.create(null);for(const[o,i]of Object.entries(e)){const e=n.has(o.toLowerCase())?"[REDACTED ****]":a(i);r.A.isUndefined(e)||(t[o]=e)}}return i.pop(),t};return a(e)}(e,t):r.A.toJSONObject(e);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:n,code:this.code,status:this.status}}}i.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",i.ERR_BAD_OPTION="ERR_BAD_OPTION",i.ECONNABORTED="ECONNABORTED",i.ETIMEDOUT="ETIMEDOUT",i.ECONNREFUSED="ECONNREFUSED",i.ERR_NETWORK="ERR_NETWORK",i.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",i.ERR_DEPRECATED="ERR_DEPRECATED",i.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",i.ERR_BAD_REQUEST="ERR_BAD_REQUEST",i.ERR_CANCELED="ERR_CANCELED",i.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",i.ERR_INVALID_URL="ERR_INVALID_URL",i.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const a=i},2261(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(8750);const o=r.A.toObjectSet(["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"]),i=Symbol("internals"),a=/[^\x09\x20-\x7E\x80-\xFF]/g;function s(e){return e&&String(e).trim().toLowerCase()}function l(e){return!1===e||null==e?e:r.A.isArray(e)?e.map(l):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(a,""))}function c(e,t,n,o,i){return r.A.isFunction(o)?o.call(this,t,n):(i&&(t=n),r.A.isString(t)?r.A.isString(o)?-1!==t.indexOf(o):r.A.isRegExp(o)?o.test(t):void 0:void 0)}class u{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function a(e,t,n){const o=s(t);if(!o)throw new Error("header name must be a non-empty string");const a=r.A.findKey(i,o);(!a||void 0===i[a]||!0===n||void 0===n&&!1!==i[a])&&(i[a||t]=l(e))}const c=(e,t)=>r.A.forEach(e,(e,n)=>a(e,n,t));if(r.A.isPlainObject(e)||e instanceof this.constructor)c(e,t);else if(r.A.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))c((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&o[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(r.A.isObject(e)&&r.A.isIterable(e)){let n,o,i={};for(const t of e){if(!r.A.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[o=t[0]]=(n=i[o])?r.A.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}c(i,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=s(e)){const n=r.A.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(r.A.isFunction(t))return t.call(this,e,n);if(r.A.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=s(e)){const n=r.A.findKey(this,e);return!(!n||void 0===this[n]||t&&!c(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function i(e){if(e=s(e)){const i=r.A.findKey(n,e);!i||t&&!c(0,n[i],i,t)||(delete n[i],o=!0)}}return r.A.isArray(e)?e.forEach(i):i(e),o}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!c(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return r.A.forEach(this,(o,i)=>{const a=r.A.findKey(n,i);if(a)return t[a]=l(o),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();s!==i&&delete t[i],t[s]=l(o),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return r.A.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&r.A.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[i]=this[i]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=s(e);t[o]||(function(e,t){const n=r.A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[o]=!0)}return r.A.isArray(e)?e.forEach(o):o(e),this}}u.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),r.A.reduceDescriptors(u.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),r.A.freezeMethods(u);const d=u},5720(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2118);function o(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function i(e,t){this._pairs=[],e&&(0,r.A)(e,this,t)}const a=i.prototype;a.append=function(e,t){this._pairs.push([e,t])},a.toString=function(e){const t=e?function(t){return e.call(this,t,o)}:o;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const s=i},490(e,t,n){"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}n.d(t,{A:()=>r})},5986(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(8750);const o=n(4703).A.hasStandardBrowserEnv?{write(e,t,n,o,i,a,s){if("undefined"==typeof document)return;const l=[`${e}=${encodeURIComponent(t)}`];r.A.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),r.A.isString(o)&&l.push(`path=${o}`),r.A.isString(i)&&l.push(`domain=${i}`),!0===a&&l.push("secure"),r.A.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}}},2008(e,t,n){"use strict";n.d(t,{A:()=>r});const r=null},2118(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(8750),o=n(9011),i=n(2008);function a(e){return r.A.isPlainObject(e)||r.A.isArray(e)}function s(e){return r.A.endsWith(e,"[]")?e.slice(0,-2):e}function l(e,t,n){return e?e.concat(t).map(function(e,t){return e=s(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const c=r.A.toFlatObject(r.A,{},null,function(e){return/^is[A-Z]/.test(e)}),u=function(e,t,n){if(!r.A.isObject(e))throw new TypeError("target must be an object");t=t||new(i.A||FormData);const u=(n=r.A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!r.A.isUndefined(t[e])})).metaTokens,d=n.visitor||y,p=n.dots,h=n.indexes,f=n.Blob||"undefined"!=typeof Blob&&Blob,g=void 0===n.maxDepth?100:n.maxDepth,m=f&&r.A.isSpecCompliantForm(t);if(!r.A.isFunction(d))throw new TypeError("visitor must be a function");function v(e){if(null===e)return"";if(r.A.isDate(e))return e.toISOString();if(r.A.isBoolean(e))return e.toString();if(!m&&r.A.isBlob(e))throw new o.A("Blob is not supported. Use a Buffer instead.");return r.A.isArrayBuffer(e)||r.A.isTypedArray(e)?m&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function y(e,n,o){let i=e;if(r.A.isReactNative(t)&&r.A.isReactNativeBlob(e))return t.append(l(o,n,p),v(e)),!1;if(e&&!o&&"object"==typeof e)if(r.A.endsWith(n,"{}"))n=u?n:n.slice(0,-2),e=JSON.stringify(e);else if(r.A.isArray(e)&&function(e){return r.A.isArray(e)&&!e.some(a)}(e)||(r.A.isFileList(e)||r.A.endsWith(n,"[]"))&&(i=r.A.toArray(e)))return n=s(n),i.forEach(function(e,o){!r.A.isUndefined(e)&&null!==e&&t.append(!0===h?l([n],o,p):null===h?n:n+"[]",v(e))}),!1;return!!a(e)||(t.append(l(o,n,p),v(e)),!1)}const A=[],w=Object.assign(c,{defaultVisitor:y,convertValue:v,isVisitable:a});if(!r.A.isObject(e))throw new TypeError("data must be an object");return function e(n,i,a=0){if(!r.A.isUndefined(n)){if(a>g)throw new o.A("Object is too deeply nested ("+a+" levels). Max depth: "+g,o.A.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==A.indexOf(n))throw Error("Circular reference detected in "+i.join("."));A.push(n),r.A.forEach(n,function(n,o){!0===(!(r.A.isUndefined(n)||null===n)&&d.call(t,n,r.A.isString(o)?o.trim():o,i,w))&&e(n,i?i.concat(o):[o],a+1)}),A.pop()}}(e),t}},8600(e,t,n){"use strict";n.r(t),n.d(t,{hasBrowserEnv:()=>r,hasStandardBrowserEnv:()=>i,hasStandardBrowserWebWorkerEnv:()=>a,navigator:()=>o,origin:()=>s});const r="undefined"!=typeof window&&"undefined"!=typeof document,o="object"==typeof navigator&&navigator||void 0,i=r&&(!o||["ReactNative","NativeScript","NS"].indexOf(o.product)<0),a="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,s=r&&window.location.href||"http://localhost"},4703(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5720);const o={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:r.A,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},i={...n(8600),...o}},8750(e,t,n){"use strict";n.d(t,{A:()=>q});var r=n(490);const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:a,toStringTag:s}=Symbol,l=(c=Object.create(null),e=>{const t=o.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const u=e=>(e=e.toLowerCase(),t=>l(t)===e),d=e=>t=>typeof t===e,{isArray:p}=Array,h=d("undefined");function f(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g=u("ArrayBuffer"),m=d("string"),v=d("function"),y=d("number"),A=e=>null!==e&&"object"==typeof e,w=e=>{if("object"!==l(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||s in e||a in e)},b=u("Date"),_=u("File"),C=u("Blob"),E=u("FileList"),S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},O=void 0!==S.FormData?S.FormData:void 0,x=u("URLSearchParams"),[D,P,M,T]=["ReadableStream","Request","Response","Headers"].map(u);function R(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),p(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(f(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function I(e,t){if(f(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,k=e=>!h(e)&&e!==F,L=(B="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>B&&e instanceof B);var B;const N=u("HTMLFormElement"),j=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),U=u("RegExp"),V=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};R(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)},H=u("AsyncFunction"),G=(W="function"==typeof setImmediate,z=v(F.postMessage),W?setImmediate:z?($=`axios@${Math.random()}`,K=[],F.addEventListener("message",({source:e,data:t})=>{e===F&&t===$&&K.length&&K.shift()()},!1),e=>{K.push(e),F.postMessage($,"*")}):e=>setTimeout(e));var W,z,$,K;const Q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(F):"undefined"!=typeof process&&process.nextTick||G,q={isArray:p,isArrayBuffer:g,isBuffer:f,isFormData:e=>{if(!e)return!1;if(O&&e instanceof O)return!0;const t=i(e);if(!t||t===Object.prototype)return!1;if(!v(e.append))return!1;const n=l(e);return"formdata"===n||"object"===n&&v(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:m,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:A,isPlainObject:w,isEmptyObject:e=>{if(!A(e)||f(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:D,isRequest:P,isResponse:M,isHeaders:T,isUndefined:h,isDate:b,isFile:_,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:C,isRegExp:U,isFunction:v,isStream:e=>A(e)&&v(e.pipe),isURLSearchParams:x,isTypedArray:L,isFileList:E,forEach:R,merge:function e(...t){const{caseless:n,skipUndefined:r}=k(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=n&&I(o,i)||i,s=j(o,a)?o[a]:void 0;w(s)&&w(t)?o[a]=e(s,t):w(t)?o[a]=e({},t):p(t)?o[a]=t.slice():r&&h(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++)t[e]&&R(t[e],i);return o},extend:(e,t,n,{allOwnKeys:o}={})=>(R(t,(t,o)=>{n&&v(t)?Object.defineProperty(e,o,{__proto__:null,value:(0,r.A)(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,s;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],r&&!r(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:u,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[a]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:N,hasOwnProperty:j,hasOwnProp:j,reduceDescriptors:V,freezeMethods:e=>{V(e,(t,n)=>{if(v(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:I,global:F,isContextDefined:k,isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[s]&&e[a])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(A(e)){if(t.indexOf(e)>=0)return;if(f(e))return e;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return R(e,(e,t)=>{const i=n(e,r+1);!h(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:H,isThenable:e=>e&&(A(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:G,asap:Q,isIterable:e=>null!=e&&v(e[a])}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var o={};return(()=>{"use strict";r.r(o),r.d(o,{Account:()=>Nu,CloudProviders:()=>to,CreateNetworkModel:()=>ku,Endpoint:()=>Ru,Endpoints:()=>Iu,FabricType:()=>dd,Framelight:()=>qr,GVAMPPColorSpace:()=>io,GVAMPPControl:()=>wo,GVAMPPFrameRate:()=>ro,GVAMPPResolution:()=>no,GVAMPPScanMode:()=>oo,GVAMPPTransferCharacteristic:()=>ao,GVAccountType:()=>uc,GVAppApi:()=>Jt,GVAppBase:()=>Gu,GVAppFiles:()=>zu,GVAppLoggingConfig:()=>Ku,GVAssetManagement:()=>jr,GVAssetManagementModel:()=>Gr,GVAssets:()=>zr,GVAudit:()=>Xr,GVAuth:()=>zl,GVAuthType:()=>Wl,GVBase:()=>td,GVBaseBase:()=>qu,GVBilling:()=>eo,GVClientCredentialsAuth:()=>Kl,GVCluster:()=>bp,GVClusterBase:()=>od,GVClusterControl:()=>ud,GVClusterFabric:()=>ad,GVClusterFabrics:()=>ld,GVClusterGeneric:()=>Ap,GVClusterMatrix:()=>zd,GVClusterMatrixConsumers:()=>Dd,GVClusterMatrixProducers:()=>Rd,GVClusterMatrixRouting:()=>Fd,GVClusterMatrixTielines:()=>Ud,GVClusterNodeManagement:()=>Xd,GVClusterPackages:()=>yd,GVClusterSnapshots:()=>Cp,GVClusterState:()=>_d,GVComputeControl:()=>Fo,GVConfiguration:()=>uo,GVConsumerFlags:()=>Wd,GVCorsModeAppSettings:()=>fd,GVDiscovery:()=>go,GVDotNetGCLatencyMode:()=>gd,GVDotNetProcessPriorityClass:()=>md,GVFabricManager:()=>Ge,GVHub:()=>vp,GVHubManager:()=>Xt,GVHubNode:()=>gp,GVHubRelease:()=>sp,GVHubReleases:()=>hp,GVHubSite:()=>cp,GVHubSites:()=>dp,GVIdentity:()=>pc,GVIdentityAuthType:()=>dc,GVImplicitAuth:()=>lc,GVIncidents:()=>Sp,GVIncidentsNotifications:()=>Pp,GVLocalState:()=>Uu,GVLocalStateManager:()=>ze,GVLogLevel:()=>ic,GVLogMessage:()=>tc,GVLogging:()=>ac,GVMailbox:()=>Tc,GVMailboxes:()=>Nc,GVMatrixManager:()=>Qe,GVNetwork:()=>wc,GVNetworkAccounts:()=>fc,GVNetworkEndpoint:()=>Ec,GVNetworkEndpoints:()=>Oc,GVNetworkNetworks:()=>_c,GVNetworkNode:()=>mc,GVNetworkNodes:()=>yc,GVNetworks:()=>Dc,GVNodeManager:()=>Ye,GVNotifications:()=>Uc,GVPackageManager:()=>at,GVPlatform:()=>Pu,GVPlatformBase:()=>Qr,GVPlatformLoggingWriteToAppSettings:()=>hd,GVPlatformQuery:()=>Vu,GVPreviewManager:()=>It,GVProducerFlags:()=>Hd,GVPushMailbox:()=>Ic,GVSecrets:()=>Ou,GVService:()=>ho,GVServiceManager:()=>kt,GVSubscriptionManager:()=>jt,GVTallyState:()=>Gd,GVVoiceManager:()=>Vt,GVWorkloadManager:()=>qt,IncidentStatus:()=>xp,LiveProducerEngine:()=>Mp,MacroTarget:()=>Ao,MaxLogsAge:()=>Op,MixerEngine:()=>Tp,Network:()=>Mu,Networks:()=>Tu,NextAccountRangeModel:()=>Lu,PackageOperatingSystem:()=>pd,QueryAudits:()=>Zr,Range:()=>Bu,RegisterAccountNetworkModel:()=>Fu,SecretType:()=>xu,fetchAdapter:()=>Pe,getNotificationCodec:()=>$c});var e=r(8750),t=r(490),n=r(5720);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function a(t,r,o){if(!r)return t;const a=o&&o.encode||i,s=e.A.isFunction(o)?{serialize:o}:o,l=s&&s.serialize;let c;if(c=l?l(r,s):e.A.isURLSearchParams(r)?r.toString():new n.A(r,s).toString(a),c){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+c}return t}const s=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){e.A.forEach(this.handlers,function(e){null!==e&&t(e)})}};var l=r(9011);const c={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};var u=r(2118),d=r(4703);const p=function(t){function n(t,r,o,i){let a=t[i++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),l=i>=t.length;return a=!a&&e.A.isArray(o)?o.length:a,l?(e.A.hasOwnProp(o,a)?o[a]=e.A.isArray(o[a])?o[a].concat(r):[o[a],r]:o[a]=r,!s):(o[a]&&e.A.isObject(o[a])||(o[a]=[]),n(t,r,o[a],i)&&e.A.isArray(o[a])&&(o[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(o[a])),!s)}if(e.A.isFormData(t)&&e.A.isFunction(t.entries)){const r={};return e.A.forEachEntry(t,(t,o)=>{n(function(t){return e.A.matchAll(/\w+|\[(\w*)]/g,t).map(e=>"[]"===e[0]?"":e[1]||e[0])}(t),o,r,0)}),r}return null},h=(t,n)=>null!=t&&e.A.hasOwnProp(t,n)?t[n]:void 0,f={transitional:c,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=e.A.isObject(t);if(i&&e.A.isHTMLForm(t)&&(t=new FormData(t)),e.A.isFormData(t))return o?JSON.stringify(p(t)):t;if(e.A.isArrayBuffer(t)||e.A.isBuffer(t)||e.A.isStream(t)||e.A.isFile(t)||e.A.isBlob(t)||e.A.isReadableStream(t))return t;if(e.A.isArrayBufferView(t))return t.buffer;if(e.A.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){const n=h(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,n){return(0,u.A)(t,new d.A.classes.URLSearchParams,{visitor:function(t,n,r,o){return d.A.isNode&&e.A.isBuffer(t)?(this.append(n,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...n})}(t,n).toString();if((a=e.A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=h(this,"env"),r=e&&e.FormData;return(0,u.A)(a?{"files[]":t}:t,r&&new r,n)}}return i||o?(n.setContentType("application/json",!1),function(t){if(e.A.isString(t))try{return(0,JSON.parse)(t),e.A.trim(t)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const n=h(this,"transitional")||f.transitional,r=n&&n.forcedJSONParsing,o=h(this,"responseType"),i="json"===o;if(e.A.isResponse(t)||e.A.isReadableStream(t))return t;if(t&&e.A.isString(t)&&(r&&!o||i)){const e=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,h(this,"parseReviver"))}catch(t){if(e){if("SyntaxError"===t.name)throw l.A.from(t,l.A.ERR_BAD_RESPONSE,this,null,h(this,"response"));throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:d.A.classes.FormData,Blob:d.A.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};e.A.forEach(["delete","get","head","post","put","patch","query"],e=>{f.headers[e]={}});const g=f;var m=r(2261);function v(t,n){const r=this||g,o=n||r,i=m.A.from(o.headers);let a=o.data;return e.A.forEach(t,function(e){a=e.call(r,a,i.normalize(),n?n.status:void 0)}),i.normalize(),a}function y(e){return!(!e||!e.__CANCEL__)}class A extends l.A{constructor(e,t,n){super(null==e?"canceled":e,l.A.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}}const w=A;var b=r(2008);function _(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new l.A("Request failed with status code "+n.status,n.status>=400&&n.status<500?l.A.ERR_BAD_REQUEST:l.A.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const C=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(i,a):i,l=Math.max(0,s-r),c=o(l);r=Math.max(r,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},E=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},S=t=>(...n)=>e.A.asap(()=>t(...n)),O=d.A.hasStandardBrowserEnv?(x=new URL(d.A.origin),D=d.A.navigator&&/(msie|trident)/i.test(d.A.navigator.userAgent),e=>(e=new URL(e,d.A.origin),x.protocol===e.protocol&&x.host===e.host&&(D||x.port===e.port))):()=>!0;var x,D,P=r(5986);function M(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const T=e=>e instanceof m.A?{...e}:e;function R(t,n){n=n||{};const r=Object.create(null);function o(t,n,r,o){return e.A.isPlainObject(t)&&e.A.isPlainObject(n)?e.A.merge.call({caseless:o},t,n):e.A.isPlainObject(n)?e.A.merge({},n):e.A.isArray(n)?n.slice():n}function i(t,n,r,i){return e.A.isUndefined(n)?e.A.isUndefined(t)?void 0:o(void 0,t,0,i):o(t,n,0,i)}function a(t,n){if(!e.A.isUndefined(n))return o(void 0,n)}function s(t,n){return e.A.isUndefined(n)?e.A.isUndefined(t)?void 0:o(void 0,t):o(void 0,n)}function l(r,i,a){return e.A.hasOwnProp(n,a)?o(r,i):e.A.hasOwnProp(t,a)?o(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(e,t,n)=>i(T(e),T(t),0,!0)};return e.A.forEach(Object.keys({...t,...n}),function(o){if("__proto__"===o||"constructor"===o||"prototype"===o)return;const a=e.A.hasOwnProp(c,o)?c[o]:i,s=a(e.A.hasOwnProp(t,o)?t[o]:void 0,e.A.hasOwnProp(n,o)?n[o]:void 0,o);e.A.isUndefined(s)&&a!==l||(r[o]=s)}),r}const I=["content-type","content-length"],F=t=>{const n=R({},t),r=t=>e.A.hasOwnProp(n,t)?n[t]:void 0,o=r("data");let i=r("withXSRFToken");const s=r("xsrfHeaderName"),l=r("xsrfCookieName");let c=r("headers");const u=r("auth"),p=r("baseURL"),h=r("allowAbsoluteUrls"),f=r("url");var g;if(n.headers=c=m.A.from(c),n.url=a(M(p,f,h),t.params,t.paramsSerializer),u&&c.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?(g=u.password,encodeURIComponent(g).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),e.A.isFormData(o)&&(d.A.hasStandardBrowserEnv||d.A.hasStandardBrowserWebWorkerEnv?c.setContentType(void 0):e.A.isFunction(o.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{I.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(c,o.getHeaders(),r("formDataHeaderPolicy"))),d.A.hasStandardBrowserEnv&&(e.A.isFunction(i)&&(i=i(n)),!0===i||null==i&&O(n.url))){const e=s&&l&&P.default.read(l);e&&c.set(s,e)}return n},k="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(n,r){const o=F(t);let i=o.data;const a=m.A.from(o.headers).normalize();let s,u,p,h,f,{responseType:g,onUploadProgress:v,onDownloadProgress:y}=o;function A(){h&&h(),f&&f(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let b=new XMLHttpRequest;function E(){if(!b)return;const e=m.A.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());_(function(e){n(e),A()},function(e){r(e),A()},{data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:e,config:t,request:b}),b=null}b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout,"onloadend"in b?b.onloadend=E:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&b.responseURL.startsWith("file:"))&&setTimeout(E)},b.onabort=function(){b&&(r(new l.A("Request aborted",l.A.ECONNABORTED,t,b)),A(),b=null)},b.onerror=function(e){const n=e&&e.message?e.message:"Network Error",o=new l.A(n,l.A.ERR_NETWORK,t,b);o.event=e||null,r(o),A(),b=null},b.ontimeout=function(){let e=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const n=o.transitional||c;o.timeoutErrorMessage&&(e=o.timeoutErrorMessage),r(new l.A(e,n.clarifyTimeoutError?l.A.ETIMEDOUT:l.A.ECONNABORTED,t,b)),A(),b=null},void 0===i&&a.setContentType(null),"setRequestHeader"in b&&e.A.forEach(a.toJSON(),function(e,t){b.setRequestHeader(t,e)}),e.A.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),g&&"json"!==g&&(b.responseType=o.responseType),y&&([p,f]=C(y,!0),b.addEventListener("progress",p)),v&&b.upload&&([u,h]=C(v),b.upload.addEventListener("progress",u),b.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(s=e=>{b&&(r(!e||e.type?new w(null,t,b):e),b.abort(),A(),b=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const S=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(o.url);!S||d.A.protocols.includes(S)?b.send(i||null):r(new l.A("Unsupported protocol "+S+":",l.A.ERR_BAD_REQUEST,t))})},L=(t,n)=>{const{length:r}=t=t?t.filter(Boolean):[];if(n||r){let r,o=new AbortController;const i=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;o.abort(t instanceof l.A?t:new w(t instanceof Error?t.message:t))}};let a=n&&setTimeout(()=>{a=null,i(new l.A(`timeout of ${n}ms exceeded`,l.A.ETIMEDOUT))},n);const s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),t=null)};t.forEach(e=>e.addEventListener("abort",i));const{signal:c}=o;return c.unsubscribe=()=>e.A.asap(s),c}},B=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},N=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*B(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},j="1.16.0",{isFunction:U}=e.A,V=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},H=t=>{const n=e.A.global??globalThis,{ReadableStream:r,TextEncoder:o}=n;t=e.A.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},t);const{fetch:i,Request:a,Response:s}=t,c=i?U(i):"function"==typeof fetch,u=U(a),p=U(s);if(!c)return!1;const h=c&&U(r),f=c&&("function"==typeof o?(g=new o,e=>g.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer()));var g;const v=u&&h&&V(()=>{let e=!1;const t=new a(d.A.origin,{body:new r,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),y=p&&h&&V(()=>e.A.isReadableStream(new s("").body)),A={stream:y&&(e=>e.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!A[e]&&(A[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new l.A(`Response type '${e}' is not supported`,l.A.ERR_NOT_SUPPORT,n)})});const w=async(t,n)=>{const r=e.A.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(e.A.isBlob(t))return t.size;if(e.A.isSpecCompliantForm(t)){const e=new a(d.A.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return e.A.isArrayBufferView(t)||e.A.isArrayBuffer(t)?t.byteLength:(e.A.isURLSearchParams(t)&&(t+=""),e.A.isString(t)?(await f(t)).byteLength:void 0)})(n):r};return async t=>{let{url:n,method:r,data:c,signal:d,cancelToken:p,timeout:h,onDownloadProgress:f,onUploadProgress:g,responseType:b,headers:O,withCredentials:x="same-origin",fetchOptions:D,maxContentLength:P,maxBodyLength:M}=F(t);const T=e.A.isNumber(P)&&P>-1,R=e.A.isNumber(M)&&M>-1;let I=i||fetch;b=b?(b+"").toLowerCase():"text";let k=L([d,p&&p.toAbortSignal()],h),B=null;const U=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let V;try{if(T&&"string"==typeof n&&n.startsWith("data:")){const e=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let n=0;n<t;n++)if(37===r.charCodeAt(n)&&n+2<t){const t=r.charCodeAt(n+1),o=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const i=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));o>=0&&(61===r.charCodeAt(o)?(n++,o--):i(o)&&(n++,o-=3)),1===n&&o>=0&&(61===r.charCodeAt(o)||i(o))&&n++;const a=3*Math.floor(e/4)-(n||0);return a>0?a:0}if(void 0!==Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");let o=0;for(let e=0,t=r.length;e<t;e++){const n=r.charCodeAt(e);if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=r.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(n);if(e>P)throw new l.A("maxContentLength size of "+P+" exceeded",l.A.ERR_BAD_RESPONSE,t,B)}if(R&&"get"!==r&&"head"!==r){const e=await w(O,c);if("number"==typeof e&&isFinite(e)&&e>M)throw new l.A("Request body larger than maxBodyLength limit",l.A.ERR_BAD_REQUEST,t,B)}if(g&&v&&"get"!==r&&"head"!==r&&0!==(V=await w(O,c))){let t,r=new a(n,{method:"POST",body:c,duplex:"half"});if(e.A.isFormData(c)&&(t=r.headers.get("content-type"))&&O.setContentType(t),r.body){const[e,t]=E(V,C(S(g)));c=N(r.body,65536,e,t)}}e.A.isString(x)||(x=x?"include":"omit");const i=u&&"credentials"in a.prototype;if(e.A.isFormData(c)){const e=O.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&O.delete("content-type")}O.set("User-Agent","axios/"+j,!1);const d={...D,signal:k,method:r.toUpperCase(),headers:O.normalize().toJSON(),body:c,duplex:"half",credentials:i?x:void 0};B=u&&new a(n,d);let p=await(u?I(B,D):I(n,d));if(T){const n=e.A.toFiniteNumber(p.headers.get("content-length"));if(null!=n&&n>P)throw new l.A("maxContentLength size of "+P+" exceeded",l.A.ERR_BAD_RESPONSE,t,B)}const h=y&&("stream"===b||"response"===b);if(y&&p.body&&(f||T||h&&U)){const n={};["status","statusText","headers"].forEach(e=>{n[e]=p[e]});const r=e.A.toFiniteNumber(p.headers.get("content-length")),[o,i]=f&&E(r,C(S(f),!0))||[];let a=0;const c=e=>{if(T&&(a=e,a>P))throw new l.A("maxContentLength size of "+P+" exceeded",l.A.ERR_BAD_RESPONSE,t,B);o&&o(e)};p=new s(N(p.body,65536,c,()=>{i&&i(),U&&U()}),n)}b=b||"text";let F=await A[e.A.findKey(A,b)||"text"](p,t);if(T&&!y&&!h){let e;if(null!=F&&("number"==typeof F.byteLength?e=F.byteLength:"number"==typeof F.size?e=F.size:"string"==typeof F&&(e="function"==typeof o?(new o).encode(F).byteLength:F.length)),"number"==typeof e&&e>P)throw new l.A("maxContentLength size of "+P+" exceeded",l.A.ERR_BAD_RESPONSE,t,B)}return!h&&U&&U(),await new Promise((e,n)=>{_(e,n,{data:F,headers:m.A.from(p.headers),status:p.status,statusText:p.statusText,config:t,request:B})})}catch(e){if(U&&U(),k&&k.aborted&&k.reason instanceof l.A){const n=k.reason;throw n.config=t,B&&(n.request=B),e!==n&&(n.cause=e),n}if(e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new l.A("Network Error",l.A.ERR_NETWORK,t,B,e&&e.response),{cause:e.cause||e});throw l.A.from(e,e&&e.code,t,B,e&&e.response)}}},G=new Map,W=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,c=G;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:H(t)),c=s;return s},z=(W(),{http:b.A,xhr:k,fetch:{get:W}});e.A.forEach(z,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const $=e=>`- ${e}`,K=t=>e.A.isFunction(t)||null===t||!1===t,Q=function(t,n){t=e.A.isArray(t)?t:[t];const{length:r}=t;let o,i;const a={};for(let s=0;s<r;s++){let r;if(o=t[s],i=o,!K(o)&&(i=z[(r=String(o)).toLowerCase()],void 0===i))throw new l.A(`Unknown adapter '${r}'`);if(i&&(e.A.isFunction(i)||(i=i.get(n))))break;a[r||"#"+s]=i}if(!i){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map($).join("\n"):" "+$(e[0]):"as no adapter specified";throw new l.A("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i};function q(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new w(null,e)}function Y(e){return q(e),e.headers=m.A.from(e.headers),e.data=v.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Q(e.adapter||g.adapter,e)(e).then(function(t){q(e),e.response=t;try{t.data=v.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=m.A.from(t.headers),t},function(t){if(!y(t)&&(q(e),t&&t.response)){e.response=t.response;try{t.response.data=v.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=m.A.from(t.response.headers)}return Promise.reject(t)})}const X={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{X[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Z={};X.transitional=function(e,t,n){function r(e,t){return"[Axios v"+j+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new l.A(r(o," has been removed"+(t?" in "+t:"")),l.A.ERR_DEPRECATED);return t&&!Z[o]&&(Z[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},X.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const J={assertOptions:function(e,t,n){if("object"!=typeof e)throw new l.A("options must be an object",l.A.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new l.A("option "+i+" must be "+n,l.A.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new l.A("Unknown option "+i,l.A.ERR_BAD_OPTION)}},validators:X},ee=J.validators;class te{constructor(e){this.defaults=e||{},this.interceptors={request:new s,response:new s}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(t,n){"string"==typeof t?(n=n||{}).url=t:n=t||{},n=R(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;void 0!==r&&J.assertOptions(r,{silentJSONParsing:ee.transitional(ee.boolean),forcedJSONParsing:ee.transitional(ee.boolean),clarifyTimeoutError:ee.transitional(ee.boolean),legacyInterceptorReqResOrdering:ee.transitional(ee.boolean)},!1),null!=o&&(e.A.isFunction(o)?n.paramsSerializer={serialize:o}:J.assertOptions(o,{encode:ee.function,serialize:ee.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),J.assertOptions(n,{baseUrl:ee.spelling("baseURL"),withXsrfToken:ee.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&e.A.merge(i.common,i[n.method]);i&&e.A.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete i[e]}),n.headers=m.A.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(n))return;l=l&&e.synchronous;const t=n.transitional||c;t&&t.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const u=[];let d;this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let p,h=0;if(!l){const e=[Y.bind(this),void 0];for(e.unshift(...s),e.push(...u),p=e.length,d=Promise.resolve(n);h<p;)d=d.then(e[h++],e[h++]);return d}p=s.length;let f=n;for(;h<p;){const e=s[h++],t=s[h++];try{f=e(f)}catch(e){t.call(this,e);break}}try{d=Y.call(this,f)}catch(e){return Promise.reject(e)}for(h=0,p=u.length;h<p;)d=d.then(u[h++],u[h++]);return d}getUri(e){return a(M((e=R(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}e.A.forEach(["delete","get","head","options"],function(e){te.prototype[e]=function(t,n){return this.request(R(n||{},{method:e,url:t,data:(n||{}).data}))}}),e.A.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,o){return this.request(R(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}te.prototype[e]=t(),"query"!==e&&(te.prototype[e+"Form"]=t(!0))});const ne=te;class re{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new w(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new re(function(t){e=t}),cancel:e}}}const oe=re,ie={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ie).forEach(([e,t])=>{ie[t]=e});const ae=ie,se=function n(r){const o=new ne(r),i=(0,t.A)(ne.prototype.request,o);return e.A.extend(i,ne.prototype,o,{allOwnKeys:!0}),e.A.extend(i,o,null,{allOwnKeys:!0}),i.create=function(e){return n(R(r,e))},i}(g);se.Axios=ne,se.CanceledError=w,se.CancelToken=oe,se.isCancel=y,se.VERSION=j,se.toFormData=u.A,se.AxiosError=l.A,se.Cancel=se.CanceledError,se.all=function(e){return Promise.all(e)},se.spread=function(e){return function(t){return e.apply(null,t)}},se.isAxiosError=function(t){return e.A.isObject(t)&&!0===t.isAxiosError},se.mergeConfig=R,se.AxiosHeaders=m.A,se.formToJSON=t=>p(e.A.isHTMLForm(t)?new FormData(t):t),se.getAdapter=Q,se.HttpStatusCode=ae,se.default=se;const le=se;var ce=r(9427);const{Axios:ue,AxiosError:de,CanceledError:pe,isCancel:he,CancelToken:fe,VERSION:ge,all:me,Cancel:ve,isAxiosError:ye,spread:Ae,toFormData:we,AxiosHeaders:be,HttpStatusCode:_e,formToJSON:Ce,getAdapter:Ee,mergeConfig:Se,create:Oe}=le;var xe=r(8600);r(246);const De=async(e,t,n,r,o)=>{let i="";try{i=(await o.json()).message}catch(e){i=o?.message}const a={};return o?.headers?.forEach((e,t)=>{a[t]=e}),new de(e,n,t,r,{status:o?.status,data:{message:i},config:t,statusText:o?.statusText,headers:a})},Pe=t=>new Promise((n,o)=>{const i=t.data||null,s=t.headers||{};if(t.auth){const e=t.auth.username||"",n=t.auth.password||"";s.Authorization="Basic "+window.btoa(e+":"+n)}const l={};e.A.isUndefined(t.withCredentials)||(l.credentials="include");const c=new AbortController;t.cancelToken&&t.cancelToken.promise.then(function(e){c.abort(),o(e)});const u=new Headers;for(const e in s)s.hasOwnProperty(e)&&u.append(e,s[e]);const d=M(t.baseURL,t.url);if(xe.hasStandardBrowserEnv){const e=r(5986),n=(t.withCredentials||O(d))&&t.xsrfCookieName?e.default.read(t.xsrfCookieName):void 0;n&&(s[t.xsrfHeaderName]=n)}const p=new Request(a(d,t.params,t.paramsSerializer)),h={...l,method:t.method.toUpperCase(),body:i,headers:s??{},...t.fetchOptions},f=fetch(p,h);!function(){if(t.timeout){let e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),setTimeout(async function(){c.abort(),o(await De(e,t,"ECONNABORTED",t,null))},t.timeout)}}(),f.then(async function(r){if(r.ok){e.A.isFormData(i)&&delete s["Content-Type"];let a=null;switch(t.responseType){case"text":default:a=r.text();break;case"json":a=r.json();break;case"blob":a=r.blob();break;case"arraybuffer":a=r.arrayBuffer()}const l={};r?.headers?.forEach((e,t)=>{l[t]=e}),a?a.then(function(e){const i={data:e,status:r.status,statusText:r.statusText,headers:l,config:t,request:p,requestHeaders:s};_(n,o,i)},async function(e){o(e||await De("Stream decode error",t,r.statusText,p,r))}):o(De("Failed to resolve response stream.",t,"STREAM_FAILED",p,r))}else if(r.status>=500)o(await De("Server-side error: "+r.status+" / "+r.statusText,t,r?.statusText,p,r));else if(r.status>=400){const e=await De("Client-side error: "+r?.status+" / "+r?.statusText,t,r?.statusText,p,r);o(e)}else o(await De("Unknown response error",t,r.statusText,p,r))},async function(e){e instanceof TypeError?o(await De("Network Error",t,null,p,e)):e instanceof Error?o(e):o(await De("Unknown Error",t,null,p,e))})});var Me=r(228);const Te=Me;var Re=r(3514),Ie=r.n(Re),Fe=r(769),ke=r.n(Fe);const Le={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Be;const Ne=new Uint8Array(16);function je(){if(!Be&&(Be="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Be))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Be(Ne)}const Ue=[];for(let e=0;e<256;++e)Ue.push((e+256).toString(16).slice(1));const Ve=function(e,t,n){if(Le.randomUUID&&!t&&!e)return Le.randomUUID();const r=(e=e||{}).random||(e.rng||je)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return Ue[e[t+0]]+Ue[e[t+1]]+Ue[e[t+2]]+Ue[e[t+3]]+"-"+Ue[e[t+4]]+Ue[e[t+5]]+"-"+Ue[e[t+6]]+Ue[e[t+7]]+"-"+Ue[e[t+8]]+Ue[e[t+9]]+"-"+Ue[e[t+10]]+Ue[e[t+11]]+Ue[e[t+12]]+Ue[e[t+13]]+Ue[e[t+14]]+Ue[e[t+15]]}(r)},He=ce.GVDebug.extend("manager").extend("nodes");class Ge{static instance;static get(e){return this.instance||(this.instance=new Ge,this.instance.init(e)),this.instance}correlationId;platform;fabrics;all;emitter;mailbox;loaded;resolve;constructor(){He.extend("created")("created"),this.fabrics={},this.emitter=new Te,this.all=!1,this.correlationId=Ve(),this.loaded=new Promise(e=>{this.resolve=e}),"undefined"!=typeof window&&(window.__GVFABRICMANAGER__=this)}init=async e=>{He("init"),e||(e=Pu.get()),this.platform=e,this.mailbox=await this.platform.getMailbox(),this.mailbox.getEvents().onAny(this.onNotification),He("init complete"),this.resolve()};loadFabrics=async(e,t)=>{await this.loaded,this.mailbox.subscribe("gv.cluster.fabric.#",this.correlationId,"fabric-manager");const n=await Pu.get().cluster.fabrics.getFabrics(e,t);n&&(this.fabrics=ke()(n,(e,t)=>(e[t.fabric.id]={...t.fabric},e),{}))};onNotification=async(e,t)=>{if(e.startsWith("gv.cluster.fabric")){const[n,r,o,i,...a]=e.split(".");switch(i){case"created":{const e=t.content.fabric;this.fabrics[e.id]=e,this.emitter.emit("all",i,e.id,e),this.emitter.emit(e.id,i,e.id,e),this.emitter.emit(e.name,i,e.id,e);break}case"deleted":{const e=t.content.fabric;delete this.fabrics[e.id],this.emitter.emit("all",i,e.id,e),this.emitter.emit(e.id,i,e.id,e),this.emitter.emit(e.name,i,e.id,e);break}}}};getFabrics=()=>this.fabrics;getFabric=e=>this.fabrics[e];onFabric=async(e,t)=>{if(He("on",e),this.emitter.listeners(e).includes(t)||this.emitter.addListener(e,t),!this.all&&!this.fabrics[e]){await this.loaded;const t=await Pu.get().cluster.fabrics.getFabric(e).getFabric(),n=await Pu.get().cluster.fabrics.getFabric(e).getConfiguration();this.fabrics[e]={...t,config:n}}return await this.loaded,{dispose:()=>this.offFabric(e,t)}};offFabric=async(e,t)=>{He("off",e),this.emitter.removeListener(e,t),this.all||0===this.emitter.listeners(e).length&&delete this.fabrics[e],await this.loaded};onAnyNode=async e=>(He("onAny"),this.emitter.listeners("all").includes(e)||this.emitter.addListener("all",e),this.all||Ie()(this.fabrics)&&(await this.loaded,await this.loadFabrics()),this.all=!0,await this.loaded,{dispose:()=>this.offAnyNode(e)});offAnyNode=async e=>{He("offAny"),this.emitter.removeListener("all",e),0===this.emitter.listeners("all").length&&(this.all=!1),await this.loaded}}const We=ce.GVDebug.extend("manager").extend("localstate");class ze{static instance;static get(){return this.instance||(this.instance=new ze,this.instance.init()),this.instance}emitter;mailbox;correlationId;loaded;resolve;constructor(){We.extend("created")("created"),this.emitter=new Te,this.correlationId=Ve(),this.loaded=new Promise(e=>{this.resolve=e})}init=async()=>{We("init"),this.mailbox=await Pu.get().getMailbox(),this.mailbox.getEvents().onAny(this.onNotification),We("init complete"),this.resolve()};onNotification=async(e,t)=>{e.startsWith("gv.service.local.state")&&this.emitter.emit("all",t.content.localStateModel)};onAnyLocalState=async e=>(We("onAny"),await this.loaded,this.emitter.listeners("all").includes(e)||(this.emitter.addListener("all",e),this.mailbox.subscribe("gv.service.local.state.#",this.correlationId,"localstate-manager-all")),{dispose:()=>this.offAnyLocalState(e)});offAnyLocalState=async e=>{We("offAny"),this.emitter.removeListener("all",e),0===this.emitter.listeners("all").length&&this.mailbox.unsubscribe("gv.service.local.state.#",this.correlationId,"localstate-manager-all"),await this.loaded}}var $e=r(5250);const Ke=ce.GVDebug.extend("manager").extend("matrix");class Qe{fabricId;includeRoutedConsumers;includeFrameAge;static instances;static get(e,t,n=!0,r=!0){if(this.instances||(this.instances={}),!e&&!(e=(t??Pu.get()).getConfig().fabricId))throw new Error("No fabric id set");return this.instances[e]||(this.instances[e]=new Qe(e,n,r),this.instances[e].init(t)),this.instances[e]}correlationId=Ve();producers={};requiredProducerNamesAndIds={};requiredConsumerNamesAndIds={};requiredSourceNamesAndIds={};requiredDestinationNamesAndIds={};consumers={};sources={};destinations={};all=!1;emitter=new Te;mailbox;loaded;resolve;debug;loading;everything=!1;required=!1;isGlobal=!1;requiredFabrics=[];routingTable=new Map;isSubscribed=!1;fabricsToAwait={};fabricsLoaded=[];constructor(e,t=!0,n=!0){this.fabricId=e,this.includeRoutedConsumers=t,this.includeFrameAge=n,this.debug=Ke.extend(e),this.debug.extend("created")("created"),this.loaded=new Promise(e=>{this.resolve=e}),this.everything="everything"===e,this.required="required"===e,this.required&&(this.requiredFabrics=[]),this.isGlobal="Global"===e,"undefined"!=typeof window&&(window.__GVMATRIXMANAGER__||(window.__GVMATRIXMANAGER__={}),window.__GVMATRIXMANAGER__[e]=this)}init=async e=>{this.debug("init"),e||(e=Pu.get()),this.required||(this.mailbox=await e.getMailbox(),this.mailbox.getEvents().onAny(this.onNotification),this.debug("init complete"),this.loadMatrix()),this.resolve()};subscribeToProducersDestinationsMatrix=async()=>{await this.loaded,this.mailbox&&(this.mailbox.subscribe(`gv.cluster.matrix.${this.everything?"*":this.fabricId}.#`,this.correlationId,`matrix-manager-${this.fabricId}`),this.mailbox.subscribe("gv.cluster.matrix.consumer.*",this.correlationId,`matrix-manager-${this.fabricId}-consumer`),this.mailbox.subscribe("gv.cluster.matrix.producer.*",this.correlationId,`matrix-manager-${this.fabricId}-producer`))};loadProducersDestinationsMatrix=async()=>{if(await this.loaded,this.loading)return await this.loading;let e,t,n;if(this.loading=new Promise(t=>e=t),this.everything?await Promise.all([t=await Pu.get().cluster.matrix.routing.getDestinations({type:["Fabric","Ice","NDI","TransportStream","SMPTE2110","TVU"]}),n=await Pu.get().cluster.matrix.producers.getProducers({type:["Fabric","Ice","NDI","TransportStream","SMPTE2110","Orbit","NMOS","TVU"],includeRoutedConsumers:this.includeRoutedConsumers,includeFrameAge:this.includeFrameAge})]):await Promise.all([t=await Pu.get().cluster.matrix.routing.getDestinations({fabric:this.fabricId,type:["Fabric","NDI","TransportStream","SMPTE2110","TVU"]}),n=await Pu.get().cluster.matrix.producers.getProducers({fabric:this.fabricId,type:["Fabric","NDI","TransportStream","SMPTE2110","Orbit","NMOS","TVU"],includeRoutedConsumers:this.includeRoutedConsumers,includeFrameAge:this.includeFrameAge})]),t)for(const e of t)this.routingTable.set(e.id,{sourceId:e.sourceId,locked:e.locked}),this.destinations[e.id]=e;if(n)for(const e of n)this.producers[e.id]=e;t&&n&&this.emit("refresh"),e()};unsubscribeFromProducersDestinationsMatrix=async()=>{this.mailbox.unsubscribe(`gv.cluster.matrix.${this.everything?"*":this.fabricId}.#`,this.correlationId,`matrix-manager-${this.fabricId}`),this.mailbox.unsubscribe("gv.cluster.matrix.consumer.*",this.correlationId,`matrix-manager-${this.fabricId}-consumer`),this.mailbox.unsubscribe("gv.cluster.matrix.producer.*",this.correlationId,`matrix-manager-${this.fabricId}-producer`)};addSubscription=async e=>{if(!this.mailbox){const t=Pu.get();this.mailbox=await t.getMailbox(),this.mailbox.getEvents().onAny(this.onNotification),this.mailbox.subscribe(`gv.cluster.matrix.${"global"==e?"*":e}.#`,this.correlationId,`matrix-manager-${e}`),this.isSubscribed||(this.mailbox.subscribe("gv.cluster.matrix.consumer.*",this.correlationId,`matrix-manager-${e}-consumer`),this.mailbox.subscribe("gv.cluster.matrix.producer.*",this.correlationId,`matrix-manager-${e}-producer`),this.isSubscribed=!0),this.debug("init complete")}this.mailbox&&(this.mailbox.subscribe(`gv.cluster.matrix.${"global"==e?"*":e}.#`,this.correlationId,`matrix-manager-${e}`),this.isSubscribed||(this.mailbox.subscribe("gv.cluster.matrix.consumer.*",this.correlationId,`matrix-manager-${e}-consumer`),this.mailbox.subscribe("gv.cluster.matrix.producer.*",this.correlationId,`matrix-manager-${e}-producer`),this.isSubscribed=!0))};addNewRequiredFabric=e=>{e&&(this.requiredFabrics.includes(e)||(this.requiredFabrics.push(e),this.addSubscription(e)))};removeRequiredFabric=async e=>{if(!e||!this.required)return;this.loadingFabrics.has(e)&&await this.loadingFabrics.get(e);const t=this.requiredFabrics.indexOf(e);t>-1&&this.requiredFabrics.splice(t,1);const n=this.fabricsLoaded.indexOf(e);if(n>-1&&this.fabricsLoaded.splice(n,1),this.mailbox&&this.mailbox.unsubscribe(`gv.cluster.matrix.${"global"===e?"*":e}.#`,this.correlationId,`matrix-manager-${e}`),this.requiredProducerNamesAndIds[e]){for(const t of Object.keys(this.requiredProducerNamesAndIds[e]))delete this.producers[t],delete this.sources[t];delete this.requiredProducerNamesAndIds[e]}if(this.requiredConsumerNamesAndIds[e]){for(const t of Object.keys(this.requiredConsumerNamesAndIds[e]))delete this.consumers[t];delete this.requiredConsumerNamesAndIds[e]}if(this.requiredDestinationNamesAndIds[e]){for(const t of Object.keys(this.requiredDestinationNamesAndIds[e]))delete this.destinations[t],this.routingTable.delete(t);delete this.requiredDestinationNamesAndIds[e]}if(this.requiredSourceNamesAndIds[e]){for(const t of Object.keys(this.requiredSourceNamesAndIds[e]))delete this.sources[t];delete this.requiredSourceNamesAndIds[e]}this.fabricsToAwait[e]&&delete this.fabricsToAwait[e],this.emit("refresh")};loadingFabrics=new Map;loadingCount=0;loadRequiredMatrix=async e=>{if(this.loadingFabrics.has(e))return this.loadingFabrics.get(e);if(this.requiredFabrics.includes(e))return"Loaded";this.loadingCount++;const t=new Promise(async t=>{let n,r,o,i;if("global"===e?await Promise.all([n=await Pu.get().cluster.matrix.producers.getProducers({type:["Ice"],includeRoutedConsumers:this.includeRoutedConsumers,includeFrameAge:this.includeFrameAge}),r=await Pu.get().cluster.matrix.consumers.getConsumers({type:["Ice"]}),o=await Pu.get().cluster.matrix.routing.getDestinations({type:["Ice"]}),i=await Pu.get().cluster.matrix.routing.getSources({type:["Ice"]})]):await Promise.all([n=await Pu.get().cluster.matrix.producers.getProducers({fabric:e,type:["Fabric","NDI","SMPTE2110","TransportStream","Orbit","NMOS","TVU"],includeRoutedConsumers:this.includeRoutedConsumers,includeFrameAge:this.includeFrameAge}),r=await Pu.get().cluster.matrix.consumers.getConsumers({fabric:e,type:["Fabric","NDI","SMPTE2110","TransportStream","Orbit","NMOS","TVU"]}),o=await Pu.get().cluster.matrix.routing.getDestinations({fabric:e,type:["Fabric","NDI","SMPTE2110","TransportStream","Orbit","NMOS","TVU"]}),i=await Pu.get().cluster.matrix.routing.getSources({fabric:e,type:["Fabric","NDI","SMPTE2110","TransportStream","Orbit","NMOS","TVU"]})]),n){this.requiredProducerNamesAndIds[e]||(this.requiredProducerNamesAndIds[e]={});for(const t of n)this.required&&(this.requiredProducerNamesAndIds[e][t.id]={name:t.name,id:t.id}),this.producers[t.id]=t}if(r){this.requiredConsumerNamesAndIds[e]||(this.requiredConsumerNamesAndIds[e]={});for(const t of r)this.requiredConsumerNamesAndIds[e][t.id]={name:t.name,id:t.id},this.consumers[t.id]=t}if(o){this.requiredDestinationNamesAndIds[e]||(this.requiredDestinationNamesAndIds[e]={});for(const t of o)this.routingTable.set(t.id,{sourceId:t.sourceId,locked:t.locked}),this.required&&(this.requiredDestinationNamesAndIds[e][t.id]={name:t.name,id:t.id}),this.destinations[t.id]=t}if(i){this.requiredSourceNamesAndIds[e]||(this.requiredSourceNamesAndIds[e]={});for(const t of i)this.required&&(this.requiredSourceNamesAndIds[e][t.id]={name:t.name,id:t.id}),this.sources[t.id]=t}n&&r&&this.emit("refresh"),this.fabricsLoaded.push(e),this.loadingCount--,0===this.loadingCount?(this.loadingFabrics.delete(e),t("Loaded")):t("Loading")});return this.loadingFabrics.set(e,t),t};addFabricsToAwait=async e=>{for(const t of e)this.fabricsToAwait[t]||(this.fabricsToAwait[t]=!1)};loadMatrix=async()=>{if(await this.loaded,this.loading)return await this.loading;let e,t,n,r,o;if(this.loading=new Promise(t=>e=t),this.required||this.mailbox.subscribe(`gv.cluster.matrix.${this.everything||this.isGlobal?"*":this.fabricId}.#`,this.correlationId,`matrix-manager-${this.fabricId}`),this.mailbox.subscribe("gv.cluster.matrix.consumer.*",this.correlationId,`matrix-manager-${this.fabricId}-consumer`),this.mailbox.subscribe("gv.cluster.matrix.producer.*",this.correlationId,`matrix-manager-${this.fabricId}-producer`),this.isSubscribed=!0,this.everything?await Promise.all([t=await Pu.get().cluster.matrix.producers.getProducers({type:["Fabric","Ice","NDI","SMPTE2110","TransportStream","Orbit","NMOS","TVU"],includeRoutedConsumers:this.includeRoutedConsumers,includeFrameAge:this.includeFrameAge}),n=await Pu.get().cluster.matrix.consumers.getConsumers({type:["Fabric","Ice","NDI","SMPTE2110","TransportStream","Orbit","NMOS","TVU"]}),r=await Pu.get().cluster.matrix.routing.getDestinations({type:["Fabric","Ice","NDI","SMPTE2110","TransportStream","Orbit","NMOS","TVU"]}),o=await Pu.get().cluster.matrix.routing.getSources({type:["Fabric","Ice","NDI","SMPTE2110","TransportStream","Orbit","NMOS","TVU"]})]):this.isGlobal?await Promise.all([t=await Pu.get().cluster.matrix.producers.getProducers({type:["Ice"],includeRoutedConsumers:this.includeRoutedConsumers,includeFrameAge:this.includeFrameAge}),n=await Pu.get().cluster.matrix.consumers.getConsumers({type:["Ice"]}),r=await Pu.get().cluster.matrix.routing.getDestinations({type:["Ice"]}),o=await Pu.get().cluster.matrix.routing.getSources({type:["Ice"]})]):await Promise.all([t=await Pu.get().cluster.matrix.producers.getProducers({fabric:this.fabricId,type:["Fabric","NDI","SMPTE2110","TransportStream","Orbit","NMOS","TVU"],includeRoutedConsumers:this.includeRoutedConsumers,includeFrameAge:this.includeFrameAge}),n=await Pu.get().cluster.matrix.consumers.getConsumers({fabric:this.fabricId,type:["Fabric","NDI","SMPTE2110","TransportStream","Orbit","NMOS","TVU"]}),r=await Pu.get().cluster.matrix.routing.getDestinations({fabric:this.fabricId,type:["Fabric","NDI","SMPTE2110","TransportStream","Orbit","NMOS","TVU"]}),o=await Pu.get().cluster.matrix.routing.getSources({fabric:this.fabricId,type:["Fabric","NDI","SMPTE2110","TransportStream","Orbit","NMOS","TVU"]})]),t)for(const e of t)this.producers[e.id]=e;if(n)for(const e of n)this.consumers[e.id]=e;if(r)for(const e of r)this.routingTable.set(e.id,{sourceId:e.sourceId,locked:e.locked}),this.destinations[e.id]=e;if(o)for(const e of o)this.sources[e.id]=e;t&&n&&this.emit("refresh"),e()};emit=(e,...t)=>{this.debug("emit",e),this.emitter.emit(e,...t)};IsIceOnGlobal(e){return this.isGlobal&&"Ice"===e}onNotification=async(e,t)=>{if(await this.loading,e.startsWith("gv.cluster.matrix"))if(t.topic.match(/^gv\.cluster\.matrix\.[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\./)){const n=this.required&&!this.requiredFabrics.includes(t.topic.split(".")[4]);if(this.everything||this.isGlobal||n||t.topic.includes(this.fabricId)){const n=t.topic.split(".")[4];switch(n){case"routetimeout":break;case"makeroute":{this.debug("makeroute",t.content);const{consumer:e,producer:n,requestId:r}=t.content;this.destinations[e.id]&&(this.destinations[e.id]={...this.destinations[e.id],pendingRequestId:r,pendingSourceId:n.id});break}case"routecleared":{this.debug("routecleared",t.content);const{destinationId:e}=t.content;if(e){const t=this.destinations[e];if(t){const n=this.routingTable.get(e)||{sourceId:"",locked:t.locked??!1};n.sourceId="",this.routingTable.set(e,n),delete t.pendingRequestId,delete t.pendingSourceId,t.sourceId="",t.routedProducerId=null,this.emit("destinations",t),this.emit(`destination-${t.id}`,"route",t),this.emit(`destination-${t.name}`,"route",t),this.emit("routes",t,void 0),this.emit(`route-${t.id}`,t,void 0),this.emit(`route-${t.name}`,t,void 0)}}break}case"flowschanged":{const{producer:n}=t.content;this.producers[n.id]&&(this.producers[n.id].stream=n.stream,this.emit("producers",n),this.emit(`producer-${n.id}`,e,n),this.emit(`producer-${n.name}`,e,n));break}case"routemade":{const{sourceId:e,destinationId:n}=t.content,r=this.destinations[n],o=this.sources[e];this.routingTable.set(n,{sourceId:e,locked:!1}),r&&(r.pendingSourceId&&r.pendingSourceId===e&&(delete this.destinations[n].pendingRequestId,delete this.destinations[n].pendingSourceId),this.destinations[n].sourceId=e,this.emit("destinations",r),this.emit(`destination-${r.id}`,"route",r),this.emit(`destination-${r.name}`,"route",r),this.emit("routes",r,o),this.emit(`route-${r.id}`,r,o),this.emit(`route-${r.name}`,r,o));break}default:this.debug("unknown event for fabric received",n,t.content)}}}else{const e=t.topic.split(".")[4];if("producer"in t.content){const{producer:n,action:r}=t.content;if(!this.everything&&!this.IsIceOnGlobal(n?.type)&&!this.requiredFabrics.includes(n.fabricId)&&(n.fabricId!==this.fabricId||"Fabric"!=n.type&&"NDI"!=n.type&&"SMPTE2110"!=n.type&&"TransportStream"!=n.type&&"Orbit"!=n.type&&"NMOS"!=n.type&&"TVU"!=n.type))return;"created"==e||"added"==e||"updated"==e||"tallychanged"==r?(this.required&&this.requiredProducerNamesAndIds[n.fabricId]&&(this.requiredProducerNamesAndIds[n.fabricId][n.id]={name:n.name,id:n.id}),this.producers[n.id]=n,this.emit("producers",n),this.emit(`producer-${n.id}`,e,n),this.emit(`producer-${n.name}`,e,n),this.sources[n.id]={...this.sources[n.id],...(0,$e.pick)(n,"alias","fabricId","id","name","nodeId","tallyState","type")},this.emit("sources",this.sources[n.id]),this.emit(`source-${n.id}`,e,this.sources[n.id]),this.emit(`source-${n.name}`,e,this.sources[n.id])):"deleted"==e&&(this.producers[n.id]&&delete this.producers[n.id],this.emit(`producer-${n.id}`,e,null),this.emit(`producer-${n.name}`,e,null),this.emit(`source-${n.id}`,e,null),this.emit(`source-${n.name}`,e,null))}else if("consumer"in t.content){const{consumer:n,action:r}=t.content;if(!this.everything&&!this.IsIceOnGlobal(n?.type)&&!this.requiredFabrics.includes(n.fabricId)&&(n.fabricId!==this.fabricId||"Fabric"!=n.type&&"NDI"!=n.type&&"SMPTE2110"!=n.type&&"TransportStream"!=n.type&&"Orbit"!=n.type&&"NMOS"!=n.type&&"TVU"!=n.type))return;if("added"==e||"updated"==e||"tallychanged"==r){this.required&&this.requiredConsumerNamesAndIds[n.fabricId]&&(this.requiredConsumerNamesAndIds[n.fabricId][n.id]={id:n.id,name:n.name}),this.consumers[n.id]=n,this.emit("consumers",n),this.emit(`consumer-${n.id}`,e,n),this.emit(`consumer-${n.name}`,e,n);const t=this.routingTable.get(n.id)||{sourceId:"",locked:!1};t.locked=n.locked,this.routingTable.set(n.id,t),this.emitter.emit("consumerLockedChanged",{id:n.id,locked:n.locked}),this.destinations[n.id]={...this.destinations[n.id],...(0,$e.pick)(n,"alias","fabricId","id","name","locked","nodeId","sourceId","tallyState","type","pendingRequestId","pendingSourceId")},this.emit("destinations",this.destinations[n.id]),this.emit(`destination-${n.id}`,e,this.destinations[n.id]),this.emit(`destination-${n.name}`,e,this.destinations[n.id])}else"deleted"==e&&(this.consumers[n.id]&&delete this.consumers[n.id],this.destinations[n.id]&&delete this.destinations[n.id],this.emit(`consumer-${n.id}`,e,null),this.emit(`consumer-${n.name}`,e,null),this.emit(`destination-${n.id}`,e,null),this.emit(`destination-${n.name}`,e,null))}else console.debug(e,t.content)}};onConsumerLockedChanged(e){this.emitter.on("consumerLockedChanged",e)}offConsumerLockedChanged(e){this.emitter.off("consumerLockedChanged",e)}getProducers=()=>this.producers;getProducersIdAndNameByFabricId=e=>this.requiredProducerNamesAndIds[e]??{};getConsumersIdAndNameByFabricId=e=>this.requiredConsumerNamesAndIds[e]??{};getSourcesIdAndNameByFabricId=e=>this.requiredSourceNamesAndIds[e]??{};getDestinationsIdAndNameByFabricId=e=>this.requiredDestinationNamesAndIds[e]??{};getProducerById=e=>this.producers[e];getProducerByName=e=>(0,$e.find)(this.producers,{name:e});getConsumers=()=>this.consumers;getConsumerById=e=>this.consumers[e];getConsumerByName=e=>(0,$e.find)(this.consumers,{name:e});getRoutingTable=()=>{const e={};for(const[t,n]of this.routingTable.entries())e[t]=n;return e};getDestinations=()=>this.destinations;getDestinationById=e=>this.destinations[e];getDestinationByName=e=>(0,$e.find)(this.destinations,{name:e});getSources=()=>this.sources;getSourceById=e=>this.sources[e];getSourceByName=e=>(0,$e.find)(this.sources,{name:e});onRefresh=async e=>(this.debug("on","refresh"),this.emitter.addListener("refresh",e),await this.loaded,{dispose:()=>this.offRefresh(e)});offRefresh=async e=>{this.debug("off","refresh"),this.emitter.removeListener("refresh",e),await this.loaded};onRoute=async(e,t)=>{if(this.debug("on","route",e),!this.emitter.listeners("route-"+e).includes(t)){this.emitter.addListener("route-"+e,t),await this.loaded;const n=this.destinations[e]||(0,$e.find)(this.destinations,t=>t.name===e||t.id===e);if(n){const e=this.routingTable.get(n.id),r=e?this.sources[e.sourceId]:void 0;t(n,r)}}return{dispose:()=>this.offRoute(e,t)}};offRoute=async(e,t)=>{this.debug("off","route",e),this.emitter.removeListener("route-"+e,t),await this.loaded};onRoutes=async(e,t)=>{this.debug("on","routes",e);for(const n of e)this.emitter.listeners("route-"+n).includes(t)||(this.emitter.addListener("route-"+n,t),await this.loaded);return{dispose:()=>this.offRoutes(e,t)}};offRoutes=async(e,t)=>{for(const n of e)this.debug("off","route",n),this.emitter.removeListener("route-"+n,t);await this.loaded};onAnyRoute=async e=>(this.debug("onAny","route"),this.emitter.listeners("routes").includes(e)||(this.emitter.addListener("routes",e),this.all||(0,$e.isEmpty)(this.routingTable)&&(await this.loaded,this.required||await this.loadMatrix())),await this.loaded,{dispose:()=>this.offAnyRoute(e)});offAnyRoute=async e=>{this.debug("offAny","route"),this.emitter.removeListener("routes",e),this.emitter.listeners("routes").length,await this.loaded};offRequiredProducer=async(e,t,n)=>{this.debug("off","requiredproducer",e,t),this.emitter.removeListener("requiredproducer-"+e,n),await this.loaded};onProducer=async(e,t)=>{if(this.debug("on","producer",e),!this.emitter.listeners("producer-"+e).includes(t)){this.emitter.addListener("producer-"+e,t),await this.loaded;const n=this.producers[e]||(0,$e.find)(this.producers,t=>t.name===e||t.id===e);t("subscribed",n)}return{dispose:()=>this.offProducer(e,t)}};offProducer=async(e,t)=>{this.debug("off","producer",e),this.emitter.removeListener("producer-"+e,t),await this.loaded};onAnyProducer=async e=>(this.debug("onAny","producer"),this.emitter.listeners("producers").includes(e)||(this.emitter.addListener("producers",e),this.all||(0,$e.isEmpty)(this.producers)&&(await this.loaded,this.required||await this.loadMatrix())),await this.loaded,{dispose:()=>this.offAnyProducer(e)});offAnyProducer=async e=>{this.debug("offAny","producer"),this.emitter.removeListener("producers",e),this.emitter.listeners("producers").length,await this.loaded};onConsumer=async(e,t)=>{if(this.debug("on","consumer",e),!this.emitter.listeners("consumer-"+e).includes(t)){this.emitter.addListener("consumer-"+e,t),await this.loaded;const n=this.consumers[e]||(0,$e.find)(this.consumers,t=>t.name===e||t.id===e);t("subscribed",n)}return{dispose:()=>this.offConsumer(e,t)}};offConsumer=async(e,t)=>{this.debug("off","consumer",e),this.emitter.removeListener("consumer-"+e,t),await this.loaded};onAnyConsumer=async e=>(this.debug("onAny","consumer"),this.emitter.addListener("consumers",e),this.all||(0,$e.isEmpty)(this.consumers)&&(await this.loaded,this.required||await this.loadMatrix()),await this.loaded,{dispose:()=>this.offAnyConsumer(e)});getRequiredFabrics=()=>this.requiredFabrics;getLoadedFabrics=()=>this.fabricsLoaded;offAnyConsumer=async e=>{this.debug("offAny","consumer"),this.emitter.removeListener("consumers",e),this.emitter.listeners("consumers").length,await this.loaded};onSource=async(e,t)=>{if(this.debug("on","source",e),!this.emitter.listeners("source-"+e).includes(t)){this.emitter.addListener("source-"+e,t),await this.loaded;const n=this.sources[e]||(0,$e.find)(this.sources,t=>t.name===e||t.id===e);t("subscribed",n)}return{dispose:()=>this.offSource(e,t)}};offSource=async(e,t)=>{this.debug("off","source",e),this.emitter.removeListener("source-"+e,t),await this.loaded};onAnySource=async e=>(this.debug("onAny","sources"),this.emitter.listeners("sources").includes(e)||(this.emitter.addListener("sources",e),this.all||(0,$e.isEmpty)(this.producers)&&(await this.loaded,this.required||await this.loadMatrix())),await this.loaded,{dispose:()=>this.offAnySource(e)});offAnySource=async e=>{this.debug("offAny","sources"),this.emitter.removeListener("sources",e),this.emitter.listeners("sources").length,await this.loaded};onDestination=async(e,t)=>{if(this.debug("on","destination",e),!this.emitter.listeners("destination-"+e).includes(t)){this.emitter.addListener("destination-"+e,t),await this.loaded;const n=this.destinations[e]||(0,$e.find)(this.destinations,t=>t.name===e||t.id===e);t("subscribed",n)}return{dispose:()=>this.offDestination(e,t)}};offDestination=async(e,t)=>{this.debug("off","destination",e),this.emitter.removeListener("destination-"+e,t),await this.loaded};onAnyDestination=async e=>(this.debug("onAny","destinations"),this.emitter.addListener("destinations",e),this.all||(0,$e.isEmpty)(this.destinations)&&(await this.loaded,this.required||await this.loadMatrix()),await this.loaded,{dispose:()=>this.offAnyDestination(e)});offAnyDestination=async e=>{this.debug("offAny","destinations"),this.emitter.removeListener("destinations",e),this.emitter.listeners("destinations").length,await this.loaded}}const qe=ce.GVDebug.extend("manager").extend("nodes");class Ye{static instance;static get(e){return this.instance||(this.instance=new Ye,this.instance.init(e)),this.instance}decoder=new TextDecoder("utf-8");correlationId;platform;nodes;nodeConfigs={};nodeMetrics={};all;emitter;mailbox;pushMailbox;loaded;resolve;constructor(){qe.extend("created")("created"),this.nodes={},this.emitter=new Te,this.all=!1,this.correlationId=Ve(),this.loaded=new Promise(e=>{this.resolve=e}),"undefined"!=typeof window&&(window.__GVNODEMANAGER__=this)}init=async e=>{qe("init"),e||(e=Pu.get()),this.platform=e,this.mailbox=await this.platform.getMailbox(),this.mailbox.getEvents().onAny(this.onNotification),qe("init complete"),this.resolve()};addMetricsSubscription=async e=>(await this.loaded,new Promise((t,n)=>{t(setTimeout(()=>{this.pushMailbox=this.platform.notifications.mailboxes.getMailbox("performance",null,null,"push"),this.pushMailbox.getEvents().onAny(this.onNotification),this.pushMailbox.subscribe(`gv.cluster.node.${e}.performancemetrics`,this.correlationId,"node-manager-performance")},1e3))}));loadNodes=async()=>{await this.loaded,this.mailbox.subscribe("gv.cluster.node.*.created",this.correlationId,"node-manager-created"),this.mailbox.subscribe("gv.cluster.node.*.deleted",this.correlationId,"node-manager-deleted"),this.mailbox.subscribe("gv.cluster.fabric.node.assigned",this.correlationId,"node-manager-fabric-assigned"),this.mailbox.subscribe("gv.cluster.fabric.node.unassigned",this.correlationId,"node-manager-fabric-unassigned"),this.mailbox.subscribe("gv.config.gv.node.*.config",this.correlationId,"node-config-changed");const e=await Pu.get().cluster.nodeManagement.getNodes();e&&(this.nodes=(0,$e.reduce)(e,(e,t)=>(e[t.nodeId]={...t},e),{}))};onNotification=async(e,t)=>{if(e.startsWith("gv.cluster.nodestate")){const{id:e,nodeState:n,action:r}=t.content;"changed"===r&&(this.nodes[e].nodeState=n),this.emitter.emit(e,r,this.nodes[e]),this.emitter.emit("all",r,this.nodes[e])}else if(e.startsWith("gv.cluster.node"))if(e.includes("performancemetrics")){const[,,,n,,r,...o]=e.split(".");if(r)qe("legacy",n,r,o,t.content);else{let e=t?.content;if(null==e&&t?.binaryContent){const n=t.binaryContent instanceof Uint8Array?t.binaryContent:new Uint8Array(t.binaryContent);e=JSON.parse(this.decoder.decode(n))}if(null==e)return;const r="string"==typeof e?JSON.parse(e):e;this.nodeMetrics[n]=r,this.emitter.emit(n,"performancemetrics",this.nodeMetrics[n])}}else{const{id:e,online:n,node:r,action:o}=t.content,i=r;if(e)this.nodes[e].nodeState.online=n,this.emitter.emit(e,o,this.nodes[e]),this.emitter.emit("all",o,this.nodes[e]);else switch(o){case"created":case"changed":this.nodes[i.nodeId]={...i},this.emitter.emit(i.nodeId,o,r),this.emitter.emit("all",o,r);break;case"deleted":delete this.nodes[i.nodeId],this.emitter.emit(i.nodeId,o,r),this.emitter.emit("all",o,r)}}else if(e.startsWith("gv.cluster.fabric.node")){const{fabric:e,node:n,action:r}=t.content,o=n;switch(r){case"assigned":const t=`#${e.id}`;-1===(0,$e.findIndex)(this.nodes[o.id].nodeState.nodeAttributes,e=>e===t)&&this.nodes[o.id].nodeState.nodeAttributes.push(t);break;case"unassigned":{const t=(0,$e.findIndex)(this.nodes[o.id].nodeState.nodeAttributes,t=>t===`#${e.id}`);-1!==t&&this.nodes[o.id].nodeState.nodeAttributes.splice(t,1);break}}this.emitter.emit(o.id,r,this.nodes[o.id]),this.emitter.emit("all",r,this.nodes[o.id])}else if(e.startsWith("gv.config.gv.node")){const e=t.topic.split(".");if(6==e.length&&"config"==e[5]){const t=e[4];await this.refreshNodeConfig(t)}}};refreshNodeConfig=async e=>{let t;try{t=await Pu.get().configuration.getConfiguration(`gv/node/${e}/config`,!0)}catch(e){t=null}this.nodeConfigs[e]=t};getNodes=()=>this.nodes;getMetrics=()=>this.nodeMetrics;getNode=e=>this.nodes[e];getNodeMetrics=e=>this.nodeMetrics[e];onNode=async(e,t)=>{if(qe("on",e),this.emitter.listeners(e).includes(t)||(this.emitter.addListener(e,t),t("subscribed",this.nodes[e])),!this.all){if(!this.nodes[e]){await this.loaded;const t=await Pu.get().cluster.nodeManagement.getNodeById(e);this.nodes[e]=t}this.mailbox.subscribe(`gv.cluster.node.${e}.#`,this.correlationId,`node-manager-${e}`),this.mailbox.subscribe(`gv.cluster.nodestate.${e}.#`,this.correlationId,`nodestate-manager-${e}`)}return await this.loaded,{dispose:()=>this.offNode(e,t)}};offNode=async(e,t)=>{qe("off",e),this.emitter.removeListener(e,t),this.all||(this.mailbox.unsubscribe(`gv.cluster.node.${e}.#`,this.correlationId,`node-manager-${e}`),this.mailbox.unsubscribe(`gv.cluster.nodestate.${e}.#`,this.correlationId,`nodestate-manager-${e}`),0===this.emitter.listeners(e).length&&delete this.nodes[e]),await this.loaded};onAnyNode=async e=>(qe("onAny"),this.emitter.listeners("all").includes(e)||this.emitter.addListener("all",e),this.all||((0,$e.isEmpty)(this.nodes)&&(await this.loaded,await this.loadNodes()),this.mailbox.subscribe("gv.cluster.node.#",this.correlationId,"node-manager-all"),this.mailbox.subscribe("gv.cluster.nodestate.#",this.correlationId,"nodestate-manager-all")),this.all=!0,await this.loaded,{dispose:()=>this.offAnyNode(e)});offAnyNode=async e=>{qe("offAny"),this.emitter.removeListener("all",e),0===this.emitter.listeners("all").length&&(this.all=!1,this.mailbox.unsubscribe("gv.cluster.node.#",this.correlationId,"node-manager-all"),this.mailbox.unsubscribe("gv.cluster.nodestate.#",this.correlationId,"nodestate-manager-all")),await this.loaded};getNodeConfig=async(e,t=!1)=>{let n=this.nodeConfigs[e];return(void 0===n||t)&&(await this.refreshNodeConfig(e),n=this.nodeConfigs[e]),n};startNodePackage=async(e,t,n,r)=>{try{await Pu.get().cluster.nodeManagement.updateNodePackageDesiredState(e,t.packageName,{versionType:t.versionType,desiredVersion:t.desiredVersion,desiredState:"Running"}),n&&n(`Desired State for ${t.packageName} set to Running`)}catch(e){let t=await e.response.json();const n=(0,$e.get)(e,["response","data","message"],t?.message??"An error occurred");r&&r(n)}};stopNodePackage=async(e,t,n,r)=>{try{await Pu.get().cluster.nodeManagement.updateNodePackageDesiredState(e,t.packageName,{versionType:t.versionType,desiredVersion:t.desiredVersion,desiredState:"Stopped"}),n&&n(`Desired State for ${t.packageName} set to Stopped`)}catch(e){let t=await e.response.json();const n=(0,$e.get)(e,["response","data","message"],t?.message??"An error occurred");r&&r(n)}};restartNodePackage=async(e,t,n,r)=>{await this.stopNodePackage(e,t,n,r),await new Promise(n=>{const r=()=>{const o=this.getNode(e)?.packageState.packages,i=(0,$e.find)(o,e=>e.packageName===t.packageName);"Stopped"===i?.state?setTimeout(n,500):setTimeout(r,500)};r()}),await this.startNodePackage(e,t,n,r)}}var Xe=r(4789),Ze=r.n(Xe),Je=r(6155),et=r.n(Je),tt=r(7809),nt=r.n(tt),rt=r(1114),ot=r.n(rt);const it=ce.GVDebug.extend("manager").extend("packages");class at{static instance;static get(e){return this.instance||(this.instance=new at,this.instance.init(e)),this.instance}correlationId;packages;emitter;mailbox;loaded;resolve;constructor(){it.extend("created")("created"),this.packages={},this.emitter=new Te,this.correlationId=Ve(),this.loaded=new Promise(e=>{this.resolve=e}),"undefined"!=typeof window&&(window.__GVPACKAGEMANAGER__=this)}init=async e=>{it("init"),e||(e=Pu.get()),this.mailbox=await e.getMailbox(),this.mailbox.getEvents().onAny(this.onNotification),it("init complete"),this.resolve()};loadPackages=async()=>{const e=await Pu.get().cluster.packages.getPackages(["Windows","LinuxX64","LinuxArm"]);e&&(this.packages=et()(nt()(e,"name"),e=>{const t=e.find(e=>e.isLatest),n=e.find(e=>e.isApproved);return{name:t?.name,title:t?.title,description:t?.description,approved:n?.version,latest:t?.version,versions:Ze()(e,"version")}})),this.mailbox.subscribe("gv.cluster.packages.#",this.correlationId,"package-manager")};onNotification=(e,t)=>{if(e.startsWith("gv.cluster.package")){const{action:e,package:n}=t.content,{name:r}=n;switch(e){case"created":case"updated":this.packages[r]?(n.isLatest&&(this.packages[r].latest=n.version,this.packages[r].name=n.name,this.packages[r].title=n.title,this.packages[r].description=n.description),n.isApproved&&(this.packages[r].approved=n.version),this.packages[r].versions[n.version]=n):this.packages[r]={name:n.name,title:n.title,description:n.description,versions:{[n.version]:n},approved:n.isApproved?n.version:null,latest:n.isLatest?n.version:null};break;case"deleted":delete this.packages[r].versions[n.version],0===ot()(this.packages[r].versions)&&delete this.packages[r]}this.emitter.emit(r,e,n),this.emitter.emit("all",r,e,n)}};getPackages=()=>this.packages;getPackage=(e,t)=>"approved"===t?this.getApprovedPackage(e):"latest"===t?this.getLatestPackage(e):this.packages[e].versions[t];getLatestPackage=e=>{const t=this.packages[e];return t.versions[t.latest]};getApprovedPackage=e=>{const t=this.packages[e];return t.versions[t.approved]};onPackage=async(e,t)=>(it("on",e),this.emitter.listeners(e).includes(t)||(this.emitter.addListener(e,t),await this.loaded),{dispose:()=>this.offPackage(e,t)});offPackage=async(e,t)=>{it("off",e),this.emitter.removeListener(e,t),await this.loaded};onAnyPackage=async e=>(it("onAny"),this.emitter.listeners("all").includes(e)||(this.emitter.addListener("all",e),await this.loaded),{dispose:()=>this.offAnyWorkload(e)});offAnyWorkload=async e=>{it("offAny"),this.emitter.removeListener("all",e),await this.loaded}}const st={},lt="undefined"==typeof globalThis?window:globalThis,ct={status:"created"},ut={};st.debug=e=>{dt="function"==typeof e?e:()=>{}};let dt=()=>{};st.detect=()=>pt();const pt=()=>{const e={};["speechSynthesis","speechSynthesisUtterance","speechSynthesisVoice","speechSynthesisEvent","speechSynthesisErrorEvent"].forEach(t=>{e[t]=wt(t)}),e.onvoiceschanged=ht(e.speechSynthesis,"onvoiceschanged");const t=ht(e.speechSynthesisUtterance,"prototype");return Et.forEach(n=>{const r=`on${n}`;e[r]=t&&ht(e.speechSynthesisUtterance.prototype,r)}),ut.isAndroid=gt(),ut.isFirefox=vt()||mt(),ut.isSafari=yt(),dt(`is android: ${!!ut.isAndroid}`),dt(`is firefox: ${!!ut.isFirefox}`),dt(`is safari: ${!!ut.isSafari}`),e},ht=(e={},t)=>Object.hasOwnProperty.call(e,t)||t in e||!!e[t],ft=()=>(lt.navigator||{}).userAgent||"",gt=()=>/android/i.test(ft()),mt=()=>/kaios/i.test(ft()),vt=()=>void 0!==lt.InstallTrigger||/firefox/i.test(ft()),yt=()=>void 0!==lt.GestureEvent,At=["webKit","moz","ms","o"],wt=e=>{const t=(e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`)(e),n=At.map(e=>`${e}${t}`),r=[e,t].concat(n).find(bt);return lt[r]},bt=e=>lt[e];st.status=()=>({...ct}),st.filterVoices=({name:e,language:t,localService:n,voiceURI:r})=>{const o=ct.voices||[],i=void 0!==e,a=void 0!==r,s=void 0!==n,l=void 0!==t,c=l&&t.split(/[-_]+/g)[0].toLocaleLowerCase();return o.filter(t=>{if(i&&t.name.includes(e)||a&&t.voiceURI.includes(r)||s&&t.localService===n)return!0;if(l){const e=t.lang&&t.lang.toLocaleLowerCase();return e&&(e===c||e.indexOf(`${c}-`)>-1||e.indexOf(`${c}_`)>-1)}return!1})};const _t=e=>{dt(e),ct.status=e};st.init=function({maxTimeout:e=5e3,interval:t=250,quiet:n,maxLengthExceeded:r}={}){return new Promise((o,i)=>{if(ct.initialized)return o(!1);let a,s;st.reset(),_t("init: start");let l=!1;ct.maxLengthExceeded=r||"warn";const c=e=>(_t(`init: failed (${e})`),clearInterval(a),ct.initialized=!1,n?o(!1):i(new Error(`EasySpeech: ${e}`))),u=()=>{if(!l)return _t("init: complete"),l=!0,ct.initialized=!0,clearInterval(a),p.onvoiceschanged=null,s&&p.removeEventListener("voiceschanged",s),o(!0)},d=pt();if(!d.speechSynthesis||!d.speechSynthesisUtterance)return c("browser misses features");Object.keys(d).forEach(e=>{ct[e]=d[e]});const{speechSynthesis:p}=ct,h=()=>{const e=p.getVoices()||[];if(e.length>0){if(ct.voices=e,_t(`voices loaded: ${e.length}`),ct.defaultVoice=e.find(e=>e.default),!ct.defaultVoice){const e=(lt.navigator||{}).language||"",t=st.filterVoices({language:e});t.length>0&&(ct.defaultVoice=t[0])}return ct.defaultVoice||(ct.defaultVoice=e[0]),!0}return!1};if(_t("init: voices"),h())return u();const f=()=>{_t("init: voices (timer)");let n=0;a=setInterval(()=>h()?u():n>e?c("browser has no voices (timeout)"):void(n+=t),t)};d.onvoiceschanged?(_t("init: voices (onvoiceschanged)"),p.onvoiceschanged=()=>h()?u():f(),setTimeout(()=>h()?u():c("browser has no voices (timeout)"),e)):(ht(p,"addEventListener")&&(_t("init: voices (addEventListener)"),s=()=>{if(h())return u()},p.addEventListener("voiceschanged",s)),f())})};const Ct=({force:e}={})=>{if(!e&&!ct.initialized)throw new Error("EasySpeech: not initialized. Run EasySpeech.init() first")};st.voices=()=>(Ct(),ct.voices),st.on=e=>(Ct(),Et.forEach(t=>{const n=e[t];St.handler(n)&&(ct.handlers[t]=n)}),{...ct.handlers});const Et=["boundary","end","error","mark","pause","resume","start"],St={isNumber:e=>"number"==typeof e&&!Number.isNaN(e),pitch:e=>St.isNumber(e)&&e>=0&&e<=2,volume:e=>St.isNumber(e)&&e>=0&&e<=1,rate:e=>St.isNumber(e)&&e>=.1&&e<=10,text:e=>"string"==typeof e,handler:e=>"function"==typeof e,voice:e=>e&&e.lang&&e.name&&e.voiceURI};st.defaults=e=>(Ct(),e&&(ct.defaults=ct.defaults||{},["voice","pitch","rate","volume"].forEach(t=>{const n=e[t];(0,St[t])(n)&&(ct.defaults[t]=n)})),{...ct.defaults}),st.speak=({text:e,voice:t,pitch:n,rate:r,volume:o,force:i,infiniteResume:a,noStop:s,...l})=>{if(Ct({force:i}),!St.text(e))throw new Error("EasySpeech: at least some valid text is required to speak");if((new TextEncoder).encode(e).length>4096){const e="EasySpeech: text exceeds max length of 4096 bytes, which will not work with some voices.";switch(ct.maxLengthExceeded){case"none":break;case"error":throw new Error(e);default:console.warn(e)}}const c=e=>{const[t,n]=Object.entries(e)[0];return St[t](n)?n:ct.defaults?.[t]};return new Promise((i,u)=>{_t("init speak");const d=(e=>new(0,ct.speechSynthesisUtterance)(e))(e),p=(e=>e||ct.defaults?.voice||ct.defaultVoice||ct.voices?.[0])(t);p&&(d.voice=p,d.lang=p.lang,d.voiceURI=p.voiceURI),d.text=e,d.pitch=c({pitch:n}),d.rate=c({rate:r}),d.volume=c({volume:o});const h=d.voice&&d.voice.name&&d.voice.name.toLocaleLowerCase().includes("(natural)");Ot(d,{isMsNatural:h}),Et.forEach(e=>{const t=l[e];St.handler(t)&&d.addEventListener(e,t),ct.handlers?.[e]&&d.addEventListener(e,ct.handlers[e])}),d.addEventListener("start",()=>{ut.paused=!1,ut.speaking=!0;const e=!h&&!ut.isFirefox&&!ut.isSafari&&!0!==ut.isAndroid;("boolean"==typeof a?a:e)&&Dt(d)}),d.addEventListener("end",e=>{_t("speak complete"),ut.paused=!1,ut.speaking=!1,clearTimeout(xt),i(e)}),d.addEventListener("error",(e={})=>{_t(`speak failed: ${e.message}`),ut.paused=!1,ut.speaking=!1,clearTimeout(xt),u(e)}),clearTimeout(xt),!0!==s&&ct.speechSynthesis.cancel(),setTimeout(()=>ct.speechSynthesis.speak(d),10)})};const Ot=({voice:e,pitch:t,rate:n,volume:r},{isMsNatural:o=!1}={})=>{dt(`utterance: voice=${e?.name} volume=${r} rate=${n} pitch=${t} isMsNatural=${o}`)};let xt;function Dt(e){if(!e&&xt)return dt("force-clear timeout"),lt.clearTimeout(xt);const{paused:t,speaking:n}=ct.speechSynthesis,r=n||ut.speaking,o=t||ut.paused;dt(`resumeInfinity isSpeaking=${r} isPaused=${o}`),r&&!o&&(ct.speechSynthesis.pause(),ct.speechSynthesis.resume()),xt=lt.setTimeout(function(){Dt(e)},5e3)}st.cancel=()=>{Ct(),_t("cancelling"),ct.speechSynthesis.cancel(),ut.paused=!1,ut.speaking=!1},st.resume=()=>{Ct(),_t("resuming"),ut.paused=!1,ut.speaking=!0,ct.speechSynthesis.resume()},st.pause=()=>{if(Ct(),_t("pausing"),ut.isAndroid)return dt("patch pause on Android with cancel"),ct.speechSynthesis.cancel();ct.speechSynthesis.pause(),ut.paused=!0,ut.speaking=!1},st.reset=()=>{Object.assign(ct,{status:"reset",initialized:!1,speechSynthesis:null,speechSynthesisUtterance:null,speechSynthesisVoice:null,speechSynthesisEvent:null,speechSynthesisErrorEvent:null,voices:null,defaultVoice:null,defaults:{pitch:1,rate:1,volume:1,voice:null},handlers:{}})};const Pt=ce.GVDebug.extend("utils").extend("previewManager"),Mt=Pt.extend("tick");var Tt;!function(e){e[e.Small=120]="Small",e[e.Medium=240]="Medium",e[e.Large=480]="Large"}(Tt||(Tt={}));const Rt={[Tt.Small]:"small",[Tt.Medium]:"medium",[Tt.Large]:"large"};class It extends Me{static get(){return this.manager||(this.manager=new It,this.manager.init()),this.manager}static manager;timeout;platform;interval;cache={};subscriptions={};sub={};signal;mailbox;loaded;visible=!0;disableLegacy=!0;resolve;constructor(){super(),Pt.extend("created")("created"),this.platform=Pu.get(),this.loaded=new Promise(e=>{this.resolve=e}),"undefined"!=typeof window&&(window.__GVPREVIEWMANAGER__=this),this.interval=1e3,st.init({maxTimeout:5e3,interval:250}).then(()=>{console.debug("Speech synthesis ready")}).catch(e=>{console.error("Speech synthesis error",e)}),this.disableLegacy=!this.platform.nullStorage.storage.getItem("enableLegacyPreviews"),this.tick(),"undefined"!=typeof document&&document.addEventListener("visibilitychange",this.onVisibilityChange)}tryToResubscribe=()=>{for(const e of(0,$e.keys)(this.cache))for(const t of(0,$e.keys)(this.cache[e]))(0,$e.set)(this.cache,[e,t,"running"],!1),this.subscribeTick(e,t,this.cache[e][t].matrixType),this.emit("img",e,t)};onReconnected=async()=>{try{this.tryToResubscribe()}catch(e){setTimeout(async()=>{this.tryToResubscribe()},5e3)}};onClose=async()=>{this.signal.off("reconnected",this.onReconnected),this.signal.off("close",this.onClose),this.signal=null;try{const e=async()=>{this.platform.isHubConnection()&&await this.startSignalRConnectionInPreviewManager(!0)?this.tryToResubscribe():setTimeout(e,5e3)};e()}catch(e){setTimeout(async()=>{this.tryToResubscribe()},5e3)}};startSignalRConnectionInPreviewManager=async e=>{let t=!1;try{this.signal=await this.platform.getHubConnection(e),this.signal.onreconnected(this.onReconnected),this.signal.onclose(this.onClose),t=!0}catch(e){Pt(`Error connecting to SignalR Hub: ${e}`)}return t};onVisibilityChange=()=>{if(this.visible=!document.hidden,this.visible){this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(this.tick,this.interval);for(const e of(0,$e.keys)(this.cache))for(const t of(0,$e.keys)(this.cache[e]))this.subscribeTick(e,t,this.cache[e][t].matrixType),this.emit("img",e,t)}else clearTimeout(this.timeout),this.timeout=null};init=async()=>{Pt("init"),this.mailbox=this.platform.notifications.mailboxes.getMailbox("preview",null,null,"push"),this.mailbox.getEvents().onAny(this.onNotification),await this.startSignalRConnectionInPreviewManager(!0),Pt("init complete"),this.resolve()};uintArrayToBase64(e,t){return new Promise((n,r)=>{const o=new FileReader;o.onloadend=()=>n(o.result),o.readAsDataURL(new Blob([e],{type:t??"image/jpeg"}))})}debounced={};debounceNotification=(e,t,n)=>(this.debounced[`${e}-${t}-${n}`]||(this.debounced[`${e}-${t}-${n}`]=(0,$e.debounce)(async r=>{Pt.extend("notification")(e,t,n);let o=this.getContent(e,t,n,r);if(r.binaryContent){const n=await this.uintArrayToBase64(r.binaryContent,o);(0,$e.set)(this.cache,[e,t,"image"],{img:n}),(0,$e.set)(this.cache,[e,t,"notification"],!0),(0,$e.set)(this.cache,[e,t,"lastNotification"],r.time),this.emit("img",e,t)}else o.includes("removed")&&((0,$e.set)(this.cache,[e,t,"image"],{img:this.getNoSignalImage()}),(0,$e.set)(this.cache,[e,t,"notification"],!1),(0,$e.set)(this.cache,[e,t,"lastNotification"],r.time),this.emit("img",e,t))},500,{maxWait:5e3})),this.debounced[`${e}-${t}-${n}`]);onNotification=async(e,t)=>{if(this.visible&&e.startsWith("gv.ampp.keyframe.")){const n=/^gv\.ampp\.keyframe\.([^\.]+)\.([^\.]+)\.([^\.]+)$/.exec(e);if(n){const[,r,o,i]=n;this.isValid(r)&&this.isValid(o)?this.debounceNotification(r,o,i)(t):Pt.extend("notification").extend("error")("Invalid frameCache or flowId in notification event",{event:e,frameCache:r,flowId:o,size:i})}else Pt.extend("notification").extend("error")("Malformed keyframe notification event",e)}};async addNotificationSubscription(e,t,n,r=null){if(this.isValid(e)&&this.isValid(t)){const o=`${e}.${t}`;if(this.sub[o])return;this.sub[o]=!0,await this.loaded;const i=this.mailbox;if(r)Pt.extend("sub")("topic","any","*",`gv.ampp.keyframe.${o}.*`),await i.exclusiveSubscribe(`previewmanager-${o}`,`gv.ampp.keyframe.${o}.*`),(0,$e.set)(this.cache,[e,t,"matrixType"],r);else{const r=n>=Tt.Medium+(Tt.Large-Tt.Medium)/2?Tt.Large:n>=Tt.Small+(Tt.Medium-Tt.Small)/2?Tt.Medium:Tt.Small,a=Rt[r]?.toLowerCase();if(!a)return void Pt.extend("sub").extend("error")("Invalid preview size",r,"for",e,t);{Pt.extend("sub")("topic",r,Rt[r],`gv.ampp.keyframe.${o}.${Rt[r]?.toLowerCase()}`);const n=`gv.ampp.keyframe.${o}.${Rt[r]?.toLowerCase()}`;await i.exclusiveSubscribe(`previewmanager-${o}`,n),(0,$e.set)(this.cache,[e,t,"maxSize"],r)}}(0,$e.get)(this.cache,[e,t,"timeout"])||this.subscribeTick(e,t,r),this.sub[o]=!1}else Pt.extend("sub").extend("error")("Invalid frameCache or flowId",{frameCache:e,flowId:t})}getContent=(e,t,n,r)=>{let o,i,a,s=!1,l=!1;const c=(0,$e.get)(this.cache,[e,t,n,"isDetectionOn"]),u=(0,$e.get)(this.cache,[e,t,"blackFrameDetectionTime"])??3,d=(0,$e.get)(this.cache,[e,t,"frozenFrameDetectionTime"])??3;"string"==typeof r.content?o=r.content:(o=r.content?.baseContent,s=c&&r.content?.additionalContent.IsBlack,l=c&&r.content?.additionalContent.IsFrozen,i=r.content?.additionalContent.TimeIsBlack,a=r.content?.additionalContent.TimeIsFrozen,(0,$e.set)(this.cache,[e,t,"additionalContent"],r.content?.additionalContent));const p=c&&s&&i>=u,h=c&&l&&a>=d;return(0,$e.set)(this.cache,[e,t,"frameIsBlack"],p),(0,$e.set)(this.cache,[e,t,"frameIsFrozen"],h),o};subscribeTick=async(e,t,n)=>{if(this.isValid(e)&&this.isValid(t))if((0,$e.get)(this.cache,[e,t,"running"]))this.visible&&(0,$e.set)(this.cache,[e,t,"timeout"],setTimeout(this.subscribeTick,1e4,e,t,n));else{if((0,$e.set)(this.cache,[e,t,"running"],!0),this.visible&&(0,$e.set)(this.cache,[e,t,"timeout"],setTimeout(this.subscribeTick,6e4,e,t,n)),await this.loaded,"NDI"!==n){const n=this.mailbox,r=(0,$e.get)(this.cache,[e,t,"maxSize"],Tt.Small),o=Rt[r]?.toLowerCase();o?(Pt.extend("sub").extend("tick")("tick",r,Rt[r],`gv.ampp.keyframe.${e}.${t}.${o}`),await n.raiseNotification(`gv.ampp.keyframe.${e}`,{flowId:t,previewSize:r},null,null,!1)):Pt.extend("sub").extend("tick").extend("error")("Invalid preview size for notification",r,"for",e,t)}(0,$e.set)(this.cache,[e,t,"running"],!1)}else Pt.extend("sub").extend("tick").extend("error")("Invalid frameCache or flowId for subscribeTick",{frameCache:e,flowId:t})};clearSubscription=async(e,t)=>{if(!this.isValid(e)||!this.isValid(t))return void Pt.extend("clear").extend("error")("Invalid frameCache or flowId for clearSubscription",{frameCache:e,flowId:t});await this.loaded;const n=(0,$e.get)(this.cache,[e,t,"timeout"]);n&&clearTimeout(n);const r=await this.mailbox;Pt("clear",{frameCache:e,flowId:t}),await r.exclusiveUnsubscribe(`previewmanager-${e}.${t}`),(0,$e.set)(this.cache,[e,t,"notification"],!1)};addSubscription(e,t,n,r,o=!1,i=null){if(!this.isValid(e)||!this.isValid(t))return Pt.extend("error")("Invalid framecache or flowId for addSubscription",{framecache:e,flowId:t}),null;const a=this.addOrUpdateSubscription(null,e,t,n,r,o,i);return Pt("added",{framecache:e,flowId:t,subId:a,width:n,source:r,alpha:o,matrixType:i}),this.addNotificationSubscription(e,t,n,i),a}addOrUpdateSubscription(e,t,n,r,o,i=!1,a=null,s,l,c){if(e||(e=Ve()),n||t){if(!this.isValid(t)||!this.isValid(n))return Pt.extend("error")("Invalid framecache or flowId for addOrUpdateSubscription",{framecache:t,flowId:n,subscriptionId:e}),e;this.subscriptions[e]={flowId:n,framecache:t,width:r,alpha:i,source:o,subscriptionId:e,matrixType:a},this.cache[t]?.[n]?.image||(0,$e.set)(this.cache,[t,n,"image"],this.getNoSignalImage(i))}else if(this.subscriptions[e]){const t=this.subscriptions[e],n=Object.values(this.subscriptions).find(n=>n.framecache===t.framecache&&n.flowId===t.flowId&&n.subscriptionId!==e);if(n){const e=n.framecache,t=n.flowId,r=n.width,o=n.matrixType;this.addNotificationSubscription(e,t,r,o)}delete this.subscriptions[e]}if(Pt("updated",{framecache:t,flowId:n,subscriptionId:e,width:r,source:o,alpha:i,matrixType:a}),this.isValid(t)&&this.isValid(n)){this.addNotificationSubscription(t,n,r,a),(0,$e.set)(this.cache,[t,n,"notFound"],0),(0,$e.set)(this.cache,[t,n,"attempt"],0),(0,$e.set)(this.cache,[t,n,"matrixType"],a),(0,$e.set)(this.cache,[t,n,"notification"],!1);const e=r>=Tt.Medium+(Tt.Large-Tt.Medium)/2?"large":r>=Tt.Small+(Tt.Medium-Tt.Small)/2?"medium":"small";(0,$e.set)(this.cache,[t,n,e,"isDetectionOn"],s),(0,$e.set)(this.cache,[t,n,"blackFrameDetectionTime"],l),(0,$e.set)(this.cache,[t,n,"frozenFrameDetectionTime"],c)}return e}getNoSignalImage(e){return{img:!e&&"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='192px' style='background-color: %230a121d' height='108px' viewBox='0 0 64 64' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3Eicon/hardware/signal-disabled%3C/title%3E%3Cg id='icon/hardware/signal-disabled' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='icon' transform='translate(16, 16)' fill='%23FFFFFF33'%3E%3Cpath d='M15,22.8246166 C16.9512387,22.8246166 18.539127,24.4125049 18.539127,26.3637436 C18.539127,28.3149823 16.9512387,29.9028706 15,29.9028706 C13.0487613,29.9028706 11.460873,28.3149823 11.460873,26.3637436 C11.460873,24.4125049 13.0487613,22.8246166 15,22.8246166 Z M11.7462823,15.9849024 L14.5120046,18.7499195 C13.1360787,18.8278504 11.8120279,19.2358656 10.6309088,19.9445991 L10.3508678,20.1200378 L9.67254389,20.582034 L7.82088476,17.9717868 L8.21019903,17.6953073 C9.29857661,16.9223736 10.4911596,16.3478138 11.7462823,15.9849024 Z M14.998517,7.76306205 C18.5574148,7.76306205 21.9855028,8.76716681 24.9679005,10.6799253 L25.3383562,10.9237458 L26.0910941,11.4450446 L24.2308098,14.0674505 L23.841098,13.7907486 C21.3044142,11.9896604 18.3298421,11.018761 15.2208372,10.9745724 L12.216181,7.97082465 C13.130564,7.83293456 14.0599527,7.76306205 14.998517,7.76306205 Z M5.90975609,10.1487025 L8.28458387,12.5229759 C7.78902786,12.7660891 7.30512802,13.0369984 6.83470136,13.3351329 L6.48823113,13.5612786 L5.76266455,14.0624327 L3.90916905,11.4495968 L4.29861746,11.17314 C4.8208336,10.8024358 5.35849863,10.4607597 5.90975609,10.1487025 Z M14.9986297,1.68220993e-12 C19.9213632,1.68220993e-12 24.6605368,1.40752807 28.7709114,4.08548233 L29.1938613,4.3670383 L30,4.92697302 L28.1401844,7.54871832 L27.7505059,7.27221304 C24.0047634,4.61433564 19.5959827,3.20993139 14.9986297,3.20993139 C12.7504895,3.20993139 10.5468785,3.5457799 8.44403354,4.19986882 L5.92406279,1.67990369 C8.79605696,0.572306208 11.8595568,1.68220993e-12 14.9986297,1.68220993e-12 Z M0.404,4.643 L2.712,6.951 L2.64090927,6.99877568 L1.85417057,7.54462398 L0,4.93083642 L0.389693235,4.65442126 L0.404,4.643 Z' id='Combined-Shape' fill-opacity='0.4'%3E%3C/path%3E%3Cpath d='M1.44382863,3.56245846 L26.6472695,28.7658993 C27.2331296,29.3517594 28.1894846,29.3547671 28.7734711,28.7707806 C29.3610229,28.1832288 29.3580595,27.2340487 28.7685898,26.6445789 L3.56514897,1.44113812 C2.97928888,0.855278022 2.02293385,0.852270299 1.43894733,1.43625682 C0.851395504,2.02380864 0.854358915,2.97298875 1.44382863,3.56245846 Z' id='Combined-Shape'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E"}}async getWarningOverlay(e,t,n,r,o){const i=(0,$e.get)(this.cache,[e,t,"frameIsBlack"]),a=(0,$e.get)(this.cache,[e,t,"frameIsFrozen"]);if(i){if(!(0,$e.get)(this.cache,[e,t,"speechFired"])&&o){let o={text:n?`Attention, ${n} frame is black`:"Frame is black",voice:st.voices().find(e=>e.name==r),pitch:1,volume:1,rate:1};(0,$e.set)(this.cache,[e,t,"speechFired"],!0),await st.speak(o)}return{img:"data:image/svg+xml;base64, "}}if(a){if(!(0,$e.get)(this.cache,[e,t,"speechFired"])&&o){let o={text:n?`Attention, ${n} frame is frozen`:"Frame is frozen",voice:st.voices().find(e=>e.name==r),pitch:1,volume:1,rate:1};(0,$e.set)(this.cache,[e,t,"speechFired"],!0),await st.speak(o)}return{img:"data:image/svg+xml,%3Csvg%20width%3D'192px'%20style%3D'background-color%3A%20%230a121d'%20height%3D'108px'%20viewBox%3D'0%200%2064%2064'%20version%3D'1.1'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Ctitle%3Eicon%2Fhardware%2Fsignal-disabled%3C%2Ftitle%3E%3Cg%20id%3D'icon%2Fhardware%2Fsignal-disabled'%20stroke%3D'none'%20stroke-width%3D'1'%20fill%3D'none'%20fill-rule%3D'evenodd'%3E%3Cg%20id%3D'icon'%20transform%3D'translate(16%2C%2016)'%20fill%3D'%23FFFFFF33'%3E%3Cpath%20d%3D%22M16%2031C24.2843%2031%2031%2024.2843%2031%2016C31%207.71573%2024.2843%201%2016%201C7.71573%201%201%207.71573%201%2016C1%2024.2843%207.71573%2031%2016%2031Z%22%20fill%3D%22%23FF4452%22%2F%3E%3Cpath%20d%3D%22M16.0031%2021.9676L16.0093%2021.9675C16.0082%2021.9675%2016.0072%2021.9676%2016.0062%2021.9676C16.0051%2021.9676%2016.0041%2021.9676%2016.0031%2021.9676ZM16.0679%2025.2268L16.0305%2025.2269C14.8738%2025.2269%2013.9207%2024.2901%2013.9003%2023.1343C13.89%2022.5662%2014.1034%2022.0257%2014.4985%2021.617C14.8936%2021.2082%2015.4273%2020.9762%2016.0018%2020.9676C17.1816%2020.9676%2018.1401%2021.8989%2018.1607%2023.0605C18.1812%2024.2342%2017.2423%2025.2063%2016.0679%2025.2268ZM14.1283%207.90212C14.1283%206.85179%2014.9801%206%2016.0305%206C17.0808%206%2017.9326%206.85179%2017.9326%207.90212V17.0318C17.9326%2018.0821%2017.0808%2018.9339%2016.0305%2018.9339C14.9801%2018.9339%2014.1283%2018.0821%2014.1283%2017.0318V7.90212Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"}}return(0,$e.get)(this.cache,[e,t,"speechFired"])&&(0,$e.set)(this.cache,[e,t,"speechFired"],!1),{img:""}}removeSubscription(e,t,n,r){let o=!0;const i=this.subscriptions[n];for(const[r,a]of Object.entries(this.subscriptions))if(n!==r&&(a.framecache===e&&a.flowId===t||a.framecache===i?.framecache&&a.flowId===i?.flowId)){o=!1;break}this.addOrUpdateSubscription(n,null,null),Pt("removed",{frameCache:e,flowId:t,subId:n,source:r}),o&&(Pt("clearing",{frameCache:e,flowId:t,subId:n,source:r}),this.clearSubscription(e,t))}getPreview(e,t,n){const r=this.getNoSignalImage(n);return(0,$e.get)(this.cache,[e,t,"image"],r)??r}getTickInterval(){return this.interval}setTickInterval(e){this.interval=e}async getFlowPreview(e,t,n,r){if(null==e||null==t)return;const o=await this.platform.base.framecache.getFrameCache(e),i=await o.getFlowPreview(t,n);if(404===i.status){const n=(0,$e.get)(this.cache,[e,t,"notFound"],0);(0,$e.set)(this.cache,[e,t,"notFound"],n+1)}null!==i.img&&((0,$e.set)(this.cache,[e,t,"notFound"],0),(0,$e.set)(this.cache,[e,t,"attempt"],0),(0,$e.set)(this.cache,[e,t,"image"],i)),null===i.img&&(0,$e.set)(this.cache,[e,t,"image"],this.getNoSignalImage(r)),this.emit("img",e,t)}tick=async()=>{this.timeout&&(clearTimeout(this.timeout),this.timeout=null);try{if(Mt("tick"),!this.disableLegacy){const e=[],t=(0,$e.groupBy)(this.subscriptions,e=>e.framecache);for(const n of Object.keys(this.cache)){const r=(0,$e.groupBy)(t[n],e=>e.flowId);for(const t of Object.keys(this.cache[n]??{})){if((0,$e.get)(this.cache,[n,t,"notification"],!1)||(0,$e.get)(this.cache,[n,t,"ndi"],!1))continue;if(0===(r[t]?.length??0)){let e=(0,$e.get)(this.cache,[n,t,"image"],this.getNoSignalImage());e&&this.getNoSignalImage().img,e=null,(0,$e.set)(this.cache,[n,t,"image"],e);continue}const o=(0,$e.get)(this.cache,[n,t,"notFound"],0);if(o>=10){if(10===o)Pt("Flow not found not requesting again",n,t),(0,$e.set)(this.cache,[n,t,"notFound"],11);else{const e=(0,$e.get)(this.cache,[n,t,"notFoundRetry"],0);e>=10?(Pt("Flow not found for a while initiating retry",n,t),(0,$e.set)(this.cache,[n,t,"notFound"],0),(0,$e.set)(this.cache,[n,t,"notFoundRetry"],0)):(0,$e.set)(this.cache,[n,t,"notFoundRetry"],e+1)}continue}const i=(0,$e.get)(this.cache,[n,t,"attempt"],0);if(i>=10&&(10===i&&(Pt("Flow not accessible after 10 attempts",n,t),(0,$e.set)(this.cache,[n,t,"attempt"],11)),30===i&&(Pt("Flow not accessible after 30 attempts",n,t),(0,$e.set)(this.cache,[n,t,"attempt"],31)),i>30))continue;const a=this.cache[n][t].alpha,s=(0,$e.reduce)(r[t],(e,t)=>t.width>e?t.width:e,0);e.push(this.getFlowPreview(n,t,s,a).catch(e=>{(0,$e.set)(this.cache,[n,t,"attempt"],i+1),Pt("unable to get preview",n,t,s)}))}}await Promise.all(e)}this.emit("tick"),Mt("tick done")}finally{this.visible?(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(this.tick,this.interval)):this.timeout=null}};isValid(e){return null!=e&&""!==e&&"undefined"!==e}}const Ft=ce.GVDebug.extend("manager").extend("service");class kt{static instance;static get(e){return this.instance||(this.instance=new kt,this.instance.init(e)),this.instance}correlationId;platform;services;all;emitter;mailbox;loaded;resolve;constructor(){Ft.extend("created")("created"),this.services={},this.emitter=new Te,this.all=!1,this.correlationId=Ve(),this.loaded=new Promise(e=>{this.resolve=e}),"undefined"!=typeof window&&(window.__GVSERVICEMANAGER__=this)}init=async e=>{Ft("init"),e||(e=Pu.get()),this.platform=e,this.mailbox=await this.platform.getMailbox(),this.mailbox.getEvents().onAny(this.onNotification),Ft("init complete"),this.resolve()};loadServices=async()=>{await this.loaded,this.mailbox.subscribe("gv.platform.service.#",this.correlationId,"service-manager-hash"),this.mailbox.subscribe("gv.platform.service.healthchanged",this.correlationId,"service-manager-healthchanged");const e=await Pu.get().discovery.getServices();e&&(this.services=ke()(e,(e,t)=>(e[t.serviceInstance]={...t},e),{}),this.emit("refresh"))};emit=(e,...t)=>{Ft("emit",e),this.emitter.emit(e,...t)};onNotification=async(e,t)=>{if(e.startsWith("gv.platform.service")){const n=t.content.service;e.endsWith("healthchanged")&&(this.services[n.serviceInstance]=n,this.emitter.emit("all",e,"healthchanged",n),this.emitter.emit(n.serviceInstance,e,"healthchanged",n)),e.endsWith("registered")&&(this.services[n.serviceInstance]=n,this.emitter.emit("all",e,"registered",n),this.emitter.emit(n.serviceInstance,e,"registered",n)),e.endsWith("unregistered")&&(delete this.services[n.serviceInstance],this.emitter.emit("all",e,"unregistered",n),this.emitter.emit(n.serviceInstance,e,"unregistered",n))}};getServices=()=>this.services;getServiceInstance=e=>this.services[e];onService=async(e,t)=>(Ft("on",e),this.emitter.listeners(e).includes(t)||this.emitter.addListener(e,t),this.all||this.services[e]||(await this.loaded,await this.loadServices()),await this.loaded,{dispose:()=>this.offService(e,t)});offService=async(e,t)=>{Ft("off",e),this.emitter.removeListener(e,t),this.all,await this.loaded};onAnyService=async e=>(Ft("onAny"),this.emitter.listeners("all").includes(e)||this.emitter.addListener("all",e),this.all||Ie()(this.services)&&(await this.loaded,await this.loadServices()),this.all=!0,await this.loaded,{dispose:()=>this.offAnyService(e)});offAnyService=async e=>{Ft("offAny"),this.emitter.removeListener("all",e),0===this.emitter.listeners("all").length&&(this.all=!1),await this.loaded}}var Lt=r(6343),Bt=r.n(Lt);const Nt=ce.GVDebug.extend("manager").extend("subscriptions");class jt{static instance;static get(e){return this.instance||(this.instance=new jt,this.instance.init(e)),this.instance}correlationId;groups;hasSubscriptions;emitter;mailbox;loaded;resolve;constructor(){Nt.extend("created")("created"),this.groups=[],this.emitter=new Te,this.correlationId=Ve(),this.loaded=new Promise(e=>{this.resolve=e}),"undefined"!=typeof window&&(window.__GVSUBSCRIPTIONMANAGER__=this)}init=async e=>{Nt("init"),e||(e=Pu.get()),this.mailbox=e.getMailbox(),(await this.mailbox).getEvents().onAny(this.onNotification),await this.refreshGroups(),Nt("init complete"),this.resolve()};refreshGroups=async()=>{const e=await Pu.get().billing.getSubscriptionGroups().catch(e=>null);this.groups=(e||[]).sort((e,t)=>e.localeCompare(t))};ensureSubscriptions=async()=>{await this.loaded,this.hasSubscriptions||((await this.mailbox).subscribe("gv.platform.billing.subscription.created",this.correlationId,"subscription-created"),(await this.mailbox).subscribe("gv.platform.billing.subscription.updated",this.correlationId,"subscription-updated"),this.hasSubscriptions=!0)};onNotification=async(e,t)=>{if(e.startsWith("gv.platform.billing.subscription")){const e=this.groups;await this.refreshGroups(),Bt()(e,this.groups)||this.emitter.emit("groups",this.groups)}};getGroups=async()=>(await this.loaded,this.groups);onSubscriptionGroups=async e=>{Nt("onSubscriptionGroups"),this.emitter.addListener("groups",e),await this.ensureSubscriptions()};offSubscriptionGroups=async e=>{Nt("offSubscriptionGroups"),this.emitter.removeListener("groups",e),await this.loaded}}const Ut=ce.GVDebug.extend("manager").extend("localstate");class Vt{static instance;static get(){return this.instance||(this.instance=new Vt,this.instance.init()),this.instance}voices=[];constructor(){Ut.extend("created")("created"),"undefined"!=typeof window&&(window.__GVVOICEMANAGER_=this)}init=async()=>{Ut("init"),Ut("init complete");const e=window.speechSynthesis.getVoices();e.length&&(this.voices=e),window.speechSynthesis.onvoiceschanged=()=>{let e=window.speechSynthesis.getVoices();this.voices=e}};getVoices(){return this.voices}getVoiceNames(){return this.voices.map(e=>e.name)}getVoiceSelectArray=()=>this.voices.map(e=>({const:e.name,title:e.name}));getVoiceByName(e){return this.voices.find(t=>t.name===e)}}var Ht=r(1936),Gt=r.n(Ht),Wt=r(105),zt=r.n(Wt),$t=r(6735),Kt=r.n($t);const Qt=ce.GVDebug.extend("manager").extend("workloads");class qt{static instance;static get(e){return this.instance||(this.instance=new qt,this.instance.init(e)),this.instance}correlationId=Ve();workloads={};all=!1;child=[];emitter=new Te;mailbox;pushMailbox;loaded;resolve;notify={};status={};constructor(){Qt.extend("created")("created"),this.loaded=new Promise(e=>{this.resolve=e}),"undefined"!=typeof window&&(window.__GVWORKLOADMANAGER__=this)}init=async e=>{Qt("init"),e||(e=Pu.get()),this.mailbox=await e.getMailbox(),this.pushMailbox=e.notifications.mailboxes.getMailbox("workloads",null,null,"push"),this.mailbox.getEvents().onAny(this.onNotification),this.pushMailbox.getEvents().onAny(this.onNotification),Qt("init complete"),this.resolve()};loadWorkloads=async()=>{await this.loaded,this.mailbox.subscribe("gv.cluster.workload.created",this.correlationId,"workload-manager-created"),this.mailbox.subscribe("gv.cluster.workload.*.deleted",this.correlationId,"workload-manager-deleted");const e=await Pu.get().cluster.state.getWorkloads();e&&(this.workloads=ke()(e,(e,t)=>(t.workload.parentId&&(e[t.workload.parentId]?e[t.workload.parentId].children.push(t.workload.id):e[t.workload.parentId]={children:[t.workload.id]}),e[t.workload.id]={...t.workload,children:e[t.workload.id]?.children??[]},this.notify[t.workload.id]??={},this.status[t.workload.id]??={},e),{}),this.emit("refresh"))};emit=(e,...t)=>{Qt("emit",e),this.emitter.emit(e,...t)};onNotification=async(e,t)=>{const n=t.content;if(e.startsWith("gv.cluster.workload")&&"id"in n){const{id:e,action:n,workload:r}=t.content;switch(Qt.extend(n)(e,r),n){case"created":case"updated":r.children=this.workloads[e]?.children??[],this.workloads[e]=r;break;case"deleted":delete this.workloads[e]}if(this.emitter.emit(e,n,r),r.parentId){if(this.workloads[r.parentId]){const t=this.emitter.listeners(`child.${r.parentId}`).length>0;!t||"created"!==n&&"updated"!==n?t&&"deleted"===n&&this.mailbox.unsubscribe(`gv.cluster.workload.${e}.#`,this.correlationId,`workload-manager-child-${r.parentId}`):this.mailbox.subscribe(`gv.cluster.workload.${e}.#`,this.correlationId,`workload-manager-child-${r.parentId}`);const o=this.workloads[r.parentId].children.includes(e);if(o&&"deleted"===n){const t=this.workloads[r.parentId].children.indexOf(e);this.workloads[r.parentId].children.splice(t,1)}else o||this.workloads[r.parentId].children.push(e);this.emitter.emit(r.parentId,n,this.workloads[r.parentId])}this.emitter.emit(`child.${r.parentId}`,n,r)}this.emitter.emit("all",e,n,r)}else if(e.startsWith("gv.ampp.control")&&("key"in n||"Key"in n)){const t=[];if("multimessage"===n.key||"multimessage"==n.Key)for(const e of n.payload)t.push(e);else t.push(n);for(const n of t){const t=e.replace(/^gv\.ampp\.control\./,""),[r,o,i]=t.split(".");let a={};"notify"==i?a=n.Payload??n.payload:"status"==i&&(a={error:n.error,details:n.details}),i&&(this[i][r]=a,this.emitter.emit(`control-${r}`,r,i,o,a,n.Key??n.key),this.emitter.emit("control-any",r,i,o,a,n.Key??n.key))}}};getWorkloads=()=>this.workloads;getWorkload=e=>this.workloads[e];getWorkloadByName=e=>Gt()(this.workloads,t=>t.name===e);getWorkloadChildren=e=>Kt()(this.workloads,t=>this.workloads[e].children.includes(t.id));getControlNotify=e=>this.notify[e];getControlStatus=e=>this.status[e];getControlNotifyByName=e=>{const t=Gt()(this.workloads,t=>t.name===e);return this.notify[t.id]};getControlStatusByName=e=>{const t=Gt()(this.workloads,t=>t.name===e);return this.status[t.id]};onControl=async(e,t)=>{Qt("onControl",e);const n=`control-${e}`;return this.emitter.listeners(n).includes(t)||(this.emitter.addListener(n,t),await this.pushMailbox.subscribe(`gv.ampp.control.${e}.*.*`,this.correlationId,`workload-manager-control-${e}`),await this.loaded),{dispose:()=>this.offControl(e,t)}};offControl=async(e,t)=>{Qt("offControl",e);const n=`control-${e}`;this.emitter.removeListener(n,t),0===this.emitter.listeners(n).length&&this.pushMailbox.unsubscribe(`gv.ampp.control.${e}.*.*`,this.correlationId,`workload-manager-control-${e}`)};onAnyControl=async e=>{Qt("onAnyControl");const t="control-any";return this.emitter.listeners(t).includes(e)||(this.emitter.addListener(t,e),this.pushMailbox.subscribe("gv.ampp.control.*.*.*",this.correlationId,"workload-manager-control-any"),await this.loaded),{dispose:()=>this.offAnyControl(e)}};offAnyControl=async e=>{Qt("offAnyControl");const t="control-any";this.emitter.removeListener(t,e),0===this.emitter.listeners(t).length&&this.pushMailbox.unsubscribe("gv.ampp.control.*.*.*",this.correlationId,"workload-manager-control-any")};onWorkload=async(e,t)=>{if(Qt("on",e),!this.emitter.listeners(e).includes(t)){if(this.emitter.addListener(e,t),!this.workloads[e]){await this.loaded;try{const t=await Pu.get().cluster.state.getWorkload(e),n=await Pu.get().cluster.state.getChildWorkloads(e)??[];t.children=zt()(n,e=>e.workload.id),this.workloads[e]=t}catch(e){Qt("On workload fetch error",e)}}this.mailbox.subscribe(`gv.cluster.workload.${e}.#`,this.correlationId,`workload-manager-${e}`),await this.loaded,t("subscribed",this.workloads[e])}return{dispose:()=>this.offWorkload(e,t)}};offWorkload=async(e,t)=>{Qt("off",e),this.emitter.removeListener(e,t),this.mailbox.unsubscribe(`gv.cluster.workload.${e}.#`,this.correlationId,`workload-manager-${e}`),0===this.emitter.listeners(e).length&&(this.all||delete this.workloads[e]),await this.loaded};onChildWorkload=async(e,t)=>{if(Qt("onChild",e),!this.emitter.listeners(`child.${e}`).includes(t)){if(this.emitter.addListener(`child.${e}`,t),0===this.child.length&&!this.workloads[e]?.children){await this.loaded;try{const t=await Pu.get().cluster.state.getWorkload(e),n=await Pu.get().cluster.state.getChildWorkloads(e)??[];t.children=zt()(n,e=>e.workload.id),this.workloads[e]=t;for(const e of n)this.workloads[e.workload.id]=e.workload}catch(e){Qt("On child workload fetch error",e)}}for(const t of this.workloads[e]?.children??[])this.mailbox.subscribe(`gv.cluster.workload.${t}.#`,this.correlationId,`workload-manager-child-${e}`);-1===this.child.indexOf(e)&&this.child.push(e),await this.loaded,t("subscribed",this.workloads[e]);for(const n of this.workloads[e]?.children??[])t("subscribed",this.workloads[n])}return{dispose:()=>this.offChildWorkload(e,t)}};offChildWorkload=async(e,t)=>{Qt("offChild"),this.emitter.removeListener(`child.${e}`,t);for(const t of this.workloads[e]?.children??[])this.mailbox.unsubscribe(`gv.cluster.workload.${t}.#`,this.correlationId,`workload-manager-child-${e}`);if(0===this.emitter.listeners(`child.${e}`).length){const t=this.child.indexOf(e);t>-1&&this.child.splice(t,1)}await this.loaded};onAnyWorkload=async e=>(Qt("onAny"),this.emitter.listeners("all").includes(e)||(this.emitter.addListener("all",e),this.all||(Ie()(this.workloads)&&(await this.loaded,await this.loadWorkloads()),this.mailbox.subscribe("gv.cluster.workload.#",this.correlationId,"workload-manager-all")),this.all=!0,await this.loaded),{dispose:()=>this.offAnyWorkload(e)});offAnyWorkload=async e=>{Qt("offAny"),this.emitter.removeListener("all",e),0===this.emitter.listeners("all").length&&(this.all=!1,this.mailbox.unsubscribe("gv.cluster.workload.#",this.correlationId,"workload-manager-all")),await this.loaded}}const Yt=ce.GVDebug.extend("manager").extend("sites");class Xt{static instance;static get(e){return this.instance||(this.instance=new Xt,this.instance.init(e)),this.instance}correlationId;platform;sites;all;emitter;mailbox;loaded;resolve;loadingSites;constructor(){Yt.extend("created")("created"),this.sites={},this.emitter=new Te,this.all=!1,this.correlationId=Ve(),this.loaded=new Promise(e=>{this.resolve=e}),this.loadingSites=!1,"undefined"!=typeof window&&(window.__GVHUBMANAGER__=this)}init=async e=>{Yt("init"),e||(e=Pu.get()),this.platform=e,this.mailbox=await this.platform.getMailbox(),this.mailbox.getEvents().onAny(this.onNotification),Yt("init complete"),this.resolve()};loadSites=async()=>{if(await this.loaded,this.loadingSites)return;this.loadingSites=!0;const e=await Pu.get().cluster.hub.getSites().getSites(!0);if(e){const t=e.sites;this.sites=(0,$e.reduce)(t,(e,t)=>(e[t.site.id]={...t.site},e),{})}this.loadingSites=!1};onNotification=async(e,t)=>{if(e.startsWith("gv.platform.site")){let{value:n,action:r}=t.content;e.includes("node")?this.onHubSiteNodeNotification(r,n):this.onHubSiteNotification(r,n)}};onHubSiteNodeNotification=async(e,t)=>{switch(e){case"created":case"updated":this.sites[t.siteId].nodes?.find(e=>e.node.id===t.id)?.node?this.sites[t.siteId].nodes.find(e=>e.node.id===t.id).node=t:this.sites[t.siteId].nodes?this.sites[t.siteId].nodes.push({node:t,eTag:void 0}):this.sites[t.siteId].nodes=[{node:t,eTag:void 0}],this.emitter.emit("node-all",e,t);break;case"deleted":if(this.sites[t.siteId].nodes.find(e=>e.node.id===t.id)?.node){const e=this.sites[t.siteId].nodes.findIndex(e=>e.node.id===t.id);-1!==e&&this.sites[t.siteId].nodes.splice(e,1)}this.emitter.emit("node-all",e,t)}};onHubSiteNotification=async(e,t)=>{switch(e){case"created":case"updated":this.sites[t.id]?this.sites[t.id]={...this.sites[t.id],...t}:this.sites[t.id]={...t},this.emitter.emit("site-all",e,this.sites[t.id]);break;case"deleted":delete this.sites[t.id],this.emitter.emit("site-all",e,t)}};getSites=()=>this.sites;getSite=e=>this.sites[e];onAnySite=async e=>(Yt("onAny"),this.emitter.listeners("site-all").includes(e)||this.emitter.addListener("site-all",e),this.all||((0,$e.isEmpty)(this.sites)&&(await this.loaded,await this.loadSites()),this.mailbox.subscribe("gv.platform.site.#",this.correlationId,"hub-site-manager-all")),this.all=!0,await this.loaded,{dispose:()=>this.offAnySite(e)});offAnySite=async e=>{Yt("offAny"),this.emitter.removeListener("site-all",e),0===this.emitter.listeners("site-all").length&&0===this.emitter.listeners("node-all").length&&(this.all=!1,this.mailbox.unsubscribe("gv.platform.site.#",this.correlationId,"hub-site-manager-all")),await this.loaded};onAnySiteNode=async e=>(Yt("onAny"),this.emitter.listeners("node-all").includes(e)||this.emitter.addListener("node-all",e),this.all||((0,$e.isEmpty)(this.sites)&&(await this.loaded,await this.loadSites()),this.mailbox.subscribe("gv.platform.site.#",this.correlationId,"hub-site-manager-all")),this.all=!0,await this.loaded,{dispose:()=>this.offAnySiteNode(e)});offAnySiteNode=async e=>{Yt("offAny"),this.emitter.removeListener("node-all",e),0===this.emitter.listeners("node-all").length&&0===this.emitter.listeners("site-all").length&&(this.all=!1,this.mailbox.unsubscribe("gv.platform.site.#",this.correlationId,"hub-site-manager-all")),await this.loaded}}const Zt=ce.GVDebug.extend("base");class Jt{impersonateUser;impersonateToken;static impersonations;static impersonate(e,t,n){return this.impersonations||(this.impersonations={}),this.impersonations[e]||(this.impersonations[e]=new Jt(Jt.get().config,Jt.get().auth,e,t,n)),this.impersonations[e].setToken(t),this.impersonations[e]}static get(e,t){if(!this.base){if(!e)throw new Error("GVPlatform has not been created and no config was passed in");Zt("creating new instance"),this.base=new Jt(e,t)}return this.base}static base;auth;client;config;constructor(e,t,n,r,o){this.impersonateUser=n,this.impersonateToken=r,Zt("config",JSON.stringify(e)),o&&o(this.setToken.bind(this)),this.config=e,this.client=le.create({baseURL:e.baseUri,adapter:"function"==typeof fetch&&Pe}),this.auth=t,this.client.interceptors.request.use(e=>(e.headers||(e.headers={}),this.impersonateUser?this.impersonateToken?e.headers.Authorization=`Bearer ${this.impersonateToken}`:e.headers["x-account"]=this.impersonateUser:e.headers?.Authorization||(this.auth.isAuthenticated()?e.headers.Authorization=`Bearer ${this.auth.getToken()}`:e.headers.Authorization=null),e),e=>Promise.reject(e))}getClient(){return this.client}getConfig(){return this.config}setToken(e){this.impersonateToken=e}}var en=r(4015),tn=r.n(en);const nn=[0,2e3,1e4,3e4,null];class rn{constructor(e){this._retryDelays=void 0!==e?[...e,null]:nn}nextRetryDelayInMilliseconds(e){return this._retryDelays[e.previousRetryCount]}}class on{}on.Authorization="Authorization",on.Cookie="Cookie";class an{constructor(e,t,n){this.statusCode=e,this.statusText=t,this.content=n}}class sn{get(e,t){return this.send({...t,method:"GET",url:e})}post(e,t){return this.send({...t,method:"POST",url:e})}delete(e,t){return this.send({...t,method:"DELETE",url:e})}getCookieString(e){return""}}class ln extends sn{constructor(e,t){super(),this._innerClient=e,this._accessTokenFactory=t}async send(e){let t=!0;this._accessTokenFactory&&(!this._accessToken||e.url&&e.url.indexOf("/negotiate?")>0)&&(t=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(e);const n=await this._innerClient.send(e);return t&&401===n.statusCode&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(e),await this._innerClient.send(e)):n}_setAuthorizationHeader(e){e.headers||(e.headers={}),this._accessToken?e.headers[on.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&e.headers[on.Authorization]&&delete e.headers[on.Authorization]}getCookieString(e){return this._innerClient.getCookieString(e)}}class cn extends Error{constructor(e,t){const n=new.target.prototype;super(`${e}: Status code '${t}'`),this.statusCode=t,this.__proto__=n}}class un extends Error{constructor(e="A timeout occurred."){const t=new.target.prototype;super(e),this.__proto__=t}}class dn extends Error{constructor(e="An abort occurred."){const t=new.target.prototype;super(e),this.__proto__=t}}class pn extends Error{constructor(e,t){const n=new.target.prototype;super(e),this.transport=t,this.errorType="UnsupportedTransportError",this.__proto__=n}}class hn extends Error{constructor(e,t){const n=new.target.prototype;super(e),this.transport=t,this.errorType="DisabledTransportError",this.__proto__=n}}class fn extends Error{constructor(e,t){const n=new.target.prototype;super(e),this.transport=t,this.errorType="FailedToStartTransportError",this.__proto__=n}}class gn extends Error{constructor(e){const t=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=t}}class mn extends Error{constructor(e,t){const n=new.target.prototype;super(e),this.innerErrors=t,this.__proto__=n}}var vn,yn,An,wn,bn;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"}(vn||(vn={}));class _n{constructor(){}log(e,t){}}_n.instance=new _n;class Cn{static isRequired(e,t){if(null==e)throw new Error(`The '${t}' argument is required.`)}static isNotEmpty(e,t){if(!e||e.match(/^\s*$/))throw new Error(`The '${t}' argument should not be empty.`)}static isIn(e,t,n){if(!(e in t))throw new Error(`Unknown ${n} value: ${e}.`)}}class En{static get isBrowser(){return!En.isNode&&"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return!En.isNode&&"object"==typeof self&&"importScripts"in self}static get isReactNative(){return!En.isNode&&"object"==typeof window&&void 0===window.document}static get isNode(){return"undefined"!=typeof process&&process.release&&"node"===process.release.name}}function Sn(e,t){let n="";return On(e)?(n=`Binary data of length ${e.byteLength}`,t&&(n+=`. Content: '${function(e){const t=new Uint8Array(e);let n="";return t.forEach(e=>{n+=`0x${e<16?"0":""}${e.toString(16)} `}),n.substr(0,n.length-1)}(e)}'`)):"string"==typeof e&&(n=`String data of length ${e.length}`,t&&(n+=`. Content: '${e}'`)),n}function On(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}async function xn(e,t,n,r,o,i){const a={},[s,l]=Mn();a[s]=l,e.log(vn.Trace,`(${t} transport) sending data. ${Sn(o,i.logMessageContent)}.`);const c=On(o)?"arraybuffer":"text",u=await n.post(r,{content:o,headers:{...a,...i.headers},responseType:c,timeout:i.timeout,withCredentials:i.withCredentials});e.log(vn.Trace,`(${t} transport) request complete. Response status: ${u.statusCode}.`)}class Dn{constructor(e,t){this._subject=e,this._observer=t}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(e=>{})}}class Pn{constructor(e){this._minLevel=e,this.out=console}log(e,t){if(e>=this._minLevel){const n=`[${(new Date).toISOString()}] ${vn[e]}: ${t}`;switch(e){case vn.Critical:case vn.Error:this.out.error(n);break;case vn.Warning:this.out.warn(n);break;case vn.Information:this.out.info(n);break;default:this.out.log(n)}}}}function Mn(){let e="X-SignalR-User-Agent";return En.isNode&&(e="User-Agent"),[e,Tn("8.0.0",Rn(),En.isNode?"NodeJS":"Browser",In())]}function Tn(e,t,n,r){let o="Microsoft SignalR/";const i=e.split(".");return o+=`${i[0]}.${i[1]}`,o+=` (${e}; `,o+=t&&""!==t?`${t}; `:"Unknown OS; ",o+=`${n}`,o+=r?`; ${r}`:"; Unknown Runtime Version",o+=")",o}function Rn(){if(!En.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function In(){if(En.isNode)return process.versions.node}function Fn(e){return e.stack?e.stack:e.message?e.message:`${e}`}class kn extends sn{constructor(e){super(),this._logger=e;const t={_fetchType:void 0,_jar:void 0};var n;n=t,("undefined"==typeof fetch||En.isNode)&&(n._jar=new(r(8494).CookieJar),"undefined"==typeof fetch?n._fetchType=r(4157):n._fetchType=fetch,n._fetchType=r(2529)(n._fetchType,n._jar),1)?(this._fetchType=t._fetchType,this._jar=t._jar):this._fetchType=fetch.bind(function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("could not find global")}()),this._abortControllerType=AbortController;const o={_abortControllerType:this._abortControllerType};(function(e){return"undefined"==typeof AbortController&&(e._abortControllerType=r(8701),!0)})(o)&&(this._abortControllerType=o._abortControllerType)}async send(e){if(e.abortSignal&&e.abortSignal.aborted)throw new dn;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const t=new this._abortControllerType;let n;e.abortSignal&&(e.abortSignal.onabort=()=>{t.abort(),n=new dn});let r,o=null;if(e.timeout){const r=e.timeout;o=setTimeout(()=>{t.abort(),this._logger.log(vn.Warning,"Timeout from HTTP request."),n=new un},r)}""===e.content&&(e.content=void 0),e.content&&(e.headers=e.headers||{},On(e.content)?e.headers["Content-Type"]="application/octet-stream":e.headers["Content-Type"]="text/plain;charset=UTF-8");try{r=await this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:!0===e.withCredentials?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:t.signal})}catch(e){if(n)throw n;throw this._logger.log(vn.Warning,`Error from HTTP request. ${e}.`),e}finally{o&&clearTimeout(o),e.abortSignal&&(e.abortSignal.onabort=null)}if(!r.ok){const e=await Ln(r,"text");throw new cn(e||r.statusText,r.status)}const i=Ln(r,e.responseType),a=await i;return new an(r.status,r.statusText,a)}getCookieString(e){let t="";return En.isNode&&this._jar&&this._jar.getCookies(e,(e,n)=>t=n.join("; ")),t}}function Ln(e,t){let n;switch(t){case"arraybuffer":n=e.arrayBuffer();break;case"text":default:n=e.text();break;case"blob":case"document":case"json":throw new Error(`${t} is not supported.`)}return n}class Bn extends sn{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new dn):e.method?e.url?new Promise((t,n)=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),r.withCredentials=void 0===e.withCredentials||e.withCredentials,r.setRequestHeader("X-Requested-With","XMLHttpRequest"),""===e.content&&(e.content=void 0),e.content&&(On(e.content)?r.setRequestHeader("Content-Type","application/octet-stream"):r.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const o=e.headers;o&&Object.keys(o).forEach(e=>{r.setRequestHeader(e,o[e])}),e.responseType&&(r.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{r.abort(),n(new dn)}),e.timeout&&(r.timeout=e.timeout),r.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),r.status>=200&&r.status<300?t(new an(r.status,r.statusText,r.response||r.responseText)):n(new cn(r.response||r.responseText||r.statusText,r.status))},r.onerror=()=>{this._logger.log(vn.Warning,`Error from HTTP request. ${r.status}: ${r.statusText}.`),n(new cn(r.statusText,r.status))},r.ontimeout=()=>{this._logger.log(vn.Warning,"Timeout from HTTP request."),n(new un)},r.send(e.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Nn extends sn{constructor(e){if(super(),"undefined"!=typeof fetch||En.isNode)this._httpClient=new kn(e);else{if("undefined"==typeof XMLHttpRequest)throw new Error("No usable HttpClient found.");this._httpClient=new Bn(e)}}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new dn):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}!function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"}(yn||(yn={})),function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"}(An||(An={}));class jn{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class Un{get pollAborted(){return this._pollAbort.aborted}constructor(e,t,n){this._httpClient=e,this._logger=t,this._pollAbort=new jn,this._options=n,this._running=!1,this.onreceive=null,this.onclose=null}async connect(e,t){if(Cn.isRequired(e,"url"),Cn.isRequired(t,"transferFormat"),Cn.isIn(t,An,"transferFormat"),this._url=e,this._logger.log(vn.Trace,"(LongPolling transport) Connecting."),t===An.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[n,r]=Mn(),o={[n]:r,...this._options.headers},i={abortSignal:this._pollAbort.signal,headers:o,timeout:1e5,withCredentials:this._options.withCredentials};t===An.Binary&&(i.responseType="arraybuffer");const a=`${e}&_=${Date.now()}`;this._logger.log(vn.Trace,`(LongPolling transport) polling: ${a}.`);const s=await this._httpClient.get(a,i);200!==s.statusCode?(this._logger.log(vn.Error,`(LongPolling transport) Unexpected response code: ${s.statusCode}.`),this._closeError=new cn(s.statusText||"",s.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,i)}async _poll(e,t){try{for(;this._running;)try{const n=`${e}&_=${Date.now()}`;this._logger.log(vn.Trace,`(LongPolling transport) polling: ${n}.`);const r=await this._httpClient.get(n,t);204===r.statusCode?(this._logger.log(vn.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):200!==r.statusCode?(this._logger.log(vn.Error,`(LongPolling transport) Unexpected response code: ${r.statusCode}.`),this._closeError=new cn(r.statusText||"",r.statusCode),this._running=!1):r.content?(this._logger.log(vn.Trace,`(LongPolling transport) data received. ${Sn(r.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(r.content)):this._logger.log(vn.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(e){this._running?e instanceof un?this._logger.log(vn.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=e,this._running=!1):this._logger.log(vn.Trace,`(LongPolling transport) Poll errored after shutdown: ${e.message}`)}}finally{this._logger.log(vn.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(e){return this._running?xn(this._logger,"LongPolling",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(vn.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(vn.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const e={},[t,n]=Mn();e[t]=n;const r={headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let o;try{await this._httpClient.delete(this._url,r)}catch(e){o=e}o?o instanceof cn&&(404===o.statusCode?this._logger.log(vn.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(vn.Trace,`(LongPolling transport) Error sending a DELETE request: ${o}`)):this._logger.log(vn.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(vn.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(vn.Trace,e),this.onclose(this._closeError)}}}class Vn{constructor(e,t,n,r){this._httpClient=e,this._accessToken=t,this._logger=n,this._options=r,this.onreceive=null,this.onclose=null}async connect(e,t){return Cn.isRequired(e,"url"),Cn.isRequired(t,"transferFormat"),Cn.isIn(t,An,"transferFormat"),this._logger.log(vn.Trace,"(SSE transport) Connecting."),this._url=e,this._accessToken&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((n,r)=>{let o,i=!1;if(t===An.Text){if(En.isBrowser||En.isWebWorker)o=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else{const t=this._httpClient.getCookieString(e),n={};n.Cookie=t;const[r,i]=Mn();n[r]=i,o=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:{...n,...this._options.headers}})}try{o.onmessage=e=>{if(this.onreceive)try{this._logger.log(vn.Trace,`(SSE transport) data received. ${Sn(e.data,this._options.logMessageContent)}.`),this.onreceive(e.data)}catch(e){return void this._close(e)}},o.onerror=e=>{i?this._close():r(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},o.onopen=()=>{this._logger.log(vn.Information,`SSE connected to ${this._url}`),this._eventSource=o,i=!0,n()}}catch(e){return void r(e)}}else r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})}async send(e){return this._eventSource?xn(this._logger,"SSE",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class Hn{constructor(e,t,n,r,o,i){this._logger=n,this._accessTokenFactory=t,this._logMessageContent=r,this._webSocketConstructor=o,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=i}async connect(e,t){let n;return Cn.isRequired(e,"url"),Cn.isRequired(t,"transferFormat"),Cn.isIn(t,An,"transferFormat"),this._logger.log(vn.Trace,"(WebSockets transport) Connecting."),this._accessTokenFactory&&(n=await this._accessTokenFactory()),new Promise((r,o)=>{let i;e=e.replace(/^http/,"ws");const a=this._httpClient.getCookieString(e);let s=!1;if(En.isNode||En.isReactNative){const t={},[r,o]=Mn();t[r]=o,n&&(t[on.Authorization]=`Bearer ${n}`),a&&(t[on.Cookie]=a),i=new this._webSocketConstructor(e,void 0,{headers:{...t,...this._headers}})}else n&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(n)}`);i||(i=new this._webSocketConstructor(e)),t===An.Binary&&(i.binaryType="arraybuffer"),i.onopen=t=>{this._logger.log(vn.Information,`WebSocket connected to ${e}.`),this._webSocket=i,s=!0,r()},i.onerror=e=>{let t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:"There was an error with the transport",this._logger.log(vn.Information,`(WebSockets transport) ${t}.`)},i.onmessage=e=>{if(this._logger.log(vn.Trace,`(WebSockets transport) data received. ${Sn(e.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(e.data)}catch(e){return void this._close(e)}},i.onclose=e=>{if(s)this._close(e);else{let t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",o(new Error(t))}}})}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(vn.Trace,`(WebSockets transport) sending data. ${Sn(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(vn.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(e)||!1!==e.wasClean&&1e3===e.code?e instanceof Error?this.onclose(e):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)))}_isCloseEvent(e){return e&&"boolean"==typeof e.wasClean&&"number"==typeof e.code}}class Gn{constructor(e,t={}){var n;if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Cn.isRequired(e,"url"),this._logger=void 0===(n=t.logger)?new Pn(vn.Information):null===n?_n.instance:void 0!==n.log?n:new Pn(n),this.baseUrl=this._resolveUrl(e),(t=t||{}).logMessageContent=void 0!==t.logMessageContent&&t.logMessageContent,"boolean"!=typeof t.withCredentials&&void 0!==t.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");t.withCredentials=void 0===t.withCredentials||t.withCredentials,t.timeout=void 0===t.timeout?1e5:t.timeout;let o=null,i=null;En.isNode&&(o=r(7012),i=r(2017)),En.isNode||"undefined"==typeof WebSocket||t.WebSocket?En.isNode&&!t.WebSocket&&o&&(t.WebSocket=o):t.WebSocket=WebSocket,En.isNode||"undefined"==typeof EventSource||t.EventSource?En.isNode&&!t.EventSource&&void 0!==i&&(t.EventSource=i):t.EventSource=EventSource,this._httpClient=new ln(t.httpClient||new Nn(this._logger),t.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=t,this.onreceive=null,this.onclose=null}async start(e){if(e=e||An.Binary,Cn.isIn(e,An,"transferFormat"),this._logger.log(vn.Debug,`Starting connection with transfer format '${An[e]}'.`),"Disconnected"!==this._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),await this._startInternalPromise,"Disconnecting"===this._connectionState){const e="Failed to start the HttpConnection before stop() was called.";return this._logger.log(vn.Error,e),await this._stopPromise,Promise.reject(new dn(e))}if("Connected"!==this._connectionState){const e="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(vn.Error,e),Promise.reject(new dn(e))}this._connectionStarted=!0}send(e){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new Wn(this.transport)),this._sendQueue.send(e))}async stop(e){return"Disconnected"===this._connectionState?(this._logger.log(vn.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===this._connectionState?(this._logger.log(vn.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState="Disconnecting",this._stopPromise=new Promise(e=>{this._stopPromiseResolver=e}),await this._stopInternal(e),void await this._stopPromise)}async _stopInternal(e){this._stopError=e;try{await this._startInternalPromise}catch(e){}if(this.transport){try{await this.transport.stop()}catch(e){this._logger.log(vn.Error,`HttpConnection.transport.stop() threw error '${e}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(vn.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(e){let t=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation){if(this._options.transport!==yn.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this._constructTransport(yn.WebSockets),await this._startTransport(t,e)}else{let n=null,r=0;do{if(n=await this._getNegotiationResponse(t),"Disconnecting"===this._connectionState||"Disconnected"===this._connectionState)throw new dn("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(n.url&&(t=n.url),n.accessToken){const e=n.accessToken;this._accessTokenFactory=()=>e,this._httpClient._accessToken=e,this._httpClient._accessTokenFactory=void 0}r++}while(n.url&&r<100);if(100===r&&n.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(t,this._options.transport,n,e)}this.transport instanceof Un&&(this.features.inherentKeepAlive=!0),"Connecting"===this._connectionState&&(this._logger.log(vn.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(e){return this._logger.log(vn.Error,"Failed to start the connection: "+e),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(e)}}async _getNegotiationResponse(e){const t={},[n,r]=Mn();t[n]=r;const o=this._resolveNegotiateUrl(e);this._logger.log(vn.Debug,`Sending negotiation request: ${o}.`);try{const e=await this._httpClient.post(o,{content:"",headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(200!==e.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${e.statusCode}'`));const n=JSON.parse(e.content);return(!n.negotiateVersion||n.negotiateVersion<1)&&(n.connectionToken=n.connectionId),n.useStatefulReconnect&&!0!==this._options._useStatefulReconnect?Promise.reject(new gn("Client didn't negotiate Stateful Reconnect but the server did.")):n}catch(e){let t="Failed to complete negotiation with the server: "+e;return e instanceof cn&&404===e.statusCode&&(t+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(vn.Error,t),Promise.reject(new gn(t))}}_createConnectUrl(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+`id=${t}`:e}async _createTransport(e,t,n,r){let o=this._createConnectUrl(e,n.connectionToken);if(this._isITransport(t))return this._logger.log(vn.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,await this._startTransport(o,r),void(this.connectionId=n.connectionId);const i=[],a=n.availableTransports||[];let s=n;for(const n of a){const a=this._resolveTransportOrError(n,t,r,!0===(null==s?void 0:s.useStatefulReconnect));if(a instanceof Error)i.push(`${n.transport} failed:`),i.push(a);else if(this._isITransport(a)){if(this.transport=a,!s){try{s=await this._getNegotiationResponse(e)}catch(e){return Promise.reject(e)}o=this._createConnectUrl(e,s.connectionToken)}try{return await this._startTransport(o,r),void(this.connectionId=s.connectionId)}catch(e){if(this._logger.log(vn.Error,`Failed to start the transport '${n.transport}': ${e}`),s=void 0,i.push(new fn(`${n.transport} failed: ${e}`,yn[n.transport])),"Connecting"!==this._connectionState){const e="Failed to select transport before stop() was called.";return this._logger.log(vn.Debug,e),Promise.reject(new dn(e))}}}}return i.length>0?Promise.reject(new mn(`Unable to connect to the server with any of the available transports. ${i.join(" ")}`,i)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(e){switch(e){case yn.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Hn(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case yn.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Vn(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case yn.LongPolling:return new Un(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,t){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async n=>{let r=!1;if(this.features.reconnect){try{this.features.disconnected(),await this.transport.connect(e,t),await this.features.resend()}catch{r=!0}r&&this._stopConnection(n)}else this._stopConnection(n)}:this.transport.onclose=e=>this._stopConnection(e),this.transport.connect(e,t)}_resolveTransportOrError(e,t,n,r){const o=yn[e.transport];if(null==o)return this._logger.log(vn.Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(!function(e,t){return!e||0!==(t&e)}(t,o))return this._logger.log(vn.Debug,`Skipping transport '${yn[o]}' because it was disabled by the client.`),new hn(`'${yn[o]}' is disabled by the client.`,o);if(!(e.transferFormats.map(e=>An[e]).indexOf(n)>=0))return this._logger.log(vn.Debug,`Skipping transport '${yn[o]}' because it does not support the requested transfer format '${An[n]}'.`),new Error(`'${yn[o]}' does not support ${An[n]}.`);if(o===yn.WebSockets&&!this._options.WebSocket||o===yn.ServerSentEvents&&!this._options.EventSource)return this._logger.log(vn.Debug,`Skipping transport '${yn[o]}' because it is not supported in your environment.'`),new pn(`'${yn[o]}' is not supported in your environment.`,o);this._logger.log(vn.Debug,`Selecting transport '${yn[o]}'.`);try{return this.features.reconnect=o===yn.WebSockets?r:void 0,this._constructTransport(o)}catch(e){return e}}_isITransport(e){return e&&"object"==typeof e&&"connect"in e}_stopConnection(e){if(this._logger.log(vn.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(vn.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),e?this._logger.log(vn.Error,`Connection disconnected with error '${e}'.`):this._logger.log(vn.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(e=>{this._logger.log(vn.Error,`TransportSendQueue.stop() threw error '${e}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this._logger.log(vn.Error,`HttpConnection.onclose(${e}) threw error '${t}'.`)}}}else this._logger.log(vn.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!En.isBrowser)throw new Error(`Cannot resolve '${e}'.`);const t=window.document.createElement("a");return t.href=e,this._logger.log(vn.Information,`Normalizing '${e}' to '${t.href}'.`),t.href}_resolveNegotiateUrl(e){const t=new URL(e);t.pathname.endsWith("/")?t.pathname+="negotiate":t.pathname+="/negotiate";const n=new URLSearchParams(t.searchParams);return n.has("negotiateVersion")||n.append("negotiateVersion",this._negotiateVersion.toString()),n.has("useStatefulReconnect")?"true"===n.get("useStatefulReconnect")&&(this._options._useStatefulReconnect=!0):!0===this._options._useStatefulReconnect&&n.append("useStatefulReconnect","true"),t.search=n.toString(),t.toString()}}class Wn{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new zn,this._transportResult=new zn,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new zn),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new zn;const e=this._transportResult;this._transportResult=void 0;const t="string"==typeof this._buffer[0]?this._buffer.join(""):Wn._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(t),e.resolve()}catch(t){e.reject(t)}}}static _concatBuffers(e){const t=e.map(e=>e.byteLength).reduce((e,t)=>e+t),n=new Uint8Array(t);let r=0;for(const t of e)n.set(new Uint8Array(t),r),r+=t.byteLength;return n.buffer}}class zn{constructor(){this.promise=new Promise((e,t)=>[this._resolver,this._rejecter]=[e,t])}resolve(){this._resolver()}reject(e){this._rejecter(e)}}class $n{static write(e){return`${e}${$n.RecordSeparator}`}static parse(e){if(e[e.length-1]!==$n.RecordSeparator)throw new Error("Message is incomplete.");const t=e.split($n.RecordSeparator);return t.pop(),t}}$n.RecordSeparatorCode=30,$n.RecordSeparator=String.fromCharCode($n.RecordSeparatorCode);class Kn{writeHandshakeRequest(e){return $n.write(JSON.stringify(e))}parseHandshakeResponse(e){let t,n;if(On(e)){const r=new Uint8Array(e),o=r.indexOf($n.RecordSeparatorCode);if(-1===o)throw new Error("Message is incomplete.");const i=o+1;t=String.fromCharCode.apply(null,Array.prototype.slice.call(r.slice(0,i))),n=r.byteLength>i?r.slice(i).buffer:null}else{const r=e,o=r.indexOf($n.RecordSeparator);if(-1===o)throw new Error("Message is incomplete.");const i=o+1;t=r.substring(0,i),n=r.length>i?r.substring(i):null}const r=$n.parse(t),o=JSON.parse(r[0]);if(o.type)throw new Error("Expected a handshake response from the server.");return[n,o]}}!function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close",e[e.Ack=8]="Ack",e[e.Sequence=9]="Sequence"}(wn||(wn={}));class Qn{constructor(){this.observers=[]}next(e){for(const t of this.observers)t.next(e)}error(e){for(const t of this.observers)t.error&&t.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new Dn(this,e)}}class qn{constructor(e,t,n){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=e,this._connection=t,this._bufferSize=n}async _send(e){const t=this._protocol.writeMessage(e);let n=Promise.resolve();if(this._isInvocationMessage(e)){this._totalMessageCount++;let e=()=>{},r=()=>{};On(t)?this._bufferedByteCount+=t.byteLength:this._bufferedByteCount+=t.length,this._bufferedByteCount>=this._bufferSize&&(n=new Promise((t,n)=>{e=t,r=n})),this._messages.push(new Yn(t,this._totalMessageCount,e,r))}try{this._reconnectInProgress||await this._connection.send(t)}catch{this._disconnected()}await n}_ack(e){let t=-1;for(let n=0;n<this._messages.length;n++){const r=this._messages[n];if(r._id<=e.sequenceId)t=n,On(r._message)?this._bufferedByteCount-=r._message.byteLength:this._bufferedByteCount-=r._message.length,r._resolver();else{if(!(this._bufferedByteCount<this._bufferSize))break;r._resolver()}}-1!==t&&(this._messages=this._messages.slice(t+1))}_shouldProcessMessage(e){if(this._waitForSequenceMessage)return e.type===wn.Sequence&&(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(e))return!0;const t=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,t<=this._latestReceivedSequenceId?(t===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=t,this._ackTimer(),!0)}_resetSequence(e){e.sequenceId>this._nextReceivingSequenceId?this._connection.stop(new Error("Sequence ID greater than amount of messages we've received.")):this._nextReceivingSequenceId=e.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const e=0!==this._messages.length?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:wn.Sequence,sequenceId:e}));const t=this._messages;for(const e of t)await this._connection.send(e._message);this._reconnectInProgress=!1}_dispose(e){null!=e||(e=new Error("Unable to reconnect to server."));for(const t of this._messages)t._rejector(e)}_isInvocationMessage(e){switch(e.type){case wn.Invocation:case wn.StreamItem:case wn.Completion:case wn.StreamInvocation:case wn.CancelInvocation:return!0;case wn.Close:case wn.Sequence:case wn.Ping:case wn.Ack:return!1}}_ackTimer(){void 0===this._ackTimerHandle&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:wn.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class Yn{constructor(e,t,n,r){this._message=e,this._id=t,this._resolver=n,this._rejector=r}}!function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"}(bn||(bn={}));class Xn{static create(e,t,n,r,o,i,a){return new Xn(e,t,n,r,o,i,a)}constructor(e,t,n,r,o,i,a){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(vn.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Cn.isRequired(e,"connection"),Cn.isRequired(t,"logger"),Cn.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=null!=o?o:3e4,this.keepAliveIntervalInMilliseconds=null!=i?i:15e3,this._statefulReconnectBufferSize=null!=a?a:1e5,this._logger=t,this._protocol=n,this.connection=e,this._reconnectPolicy=r,this._handshakeProtocol=new Kn,this.connection.onreceive=e=>this._processIncomingData(e),this.connection.onclose=e=>this._connectionClosed(e),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=bn.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:wn.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==bn.Disconnected&&this._connectionState!==bn.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==bn.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=bn.Connecting,this._logger.log(vn.Debug,"Starting HubConnection.");try{await this._startInternal(),En.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=bn.Connected,this._connectionStarted=!0,this._logger.log(vn.Debug,"HubConnection connected successfully.")}catch(e){return this._connectionState=bn.Disconnected,this._logger.log(vn.Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const e=new Promise((e,t)=>{this._handshakeResolver=e,this._handshakeRejecter=t});await this.connection.start(this._protocol.transferFormat);try{let t=this._protocol.version;this.connection.features.reconnect||(t=1);const n={protocol:this._protocol.name,version:t};if(this._logger.log(vn.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(n)),this._logger.log(vn.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await e,this._stopDuringStartError)throw this._stopDuringStartError;!!this.connection.features.reconnect&&(this._messageBuffer=new qn(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(e){throw this._logger.log(vn.Debug,`Hub handshake failed with error '${e}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(e),e}}async stop(){const e=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await e}catch(e){}}_stopInternal(e){if(this._connectionState===bn.Disconnected)return this._logger.log(vn.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===bn.Disconnecting)return this._logger.log(vn.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const t=this._connectionState;return this._connectionState=bn.Disconnecting,this._logger.log(vn.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(vn.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(t===bn.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new dn("The connection was stopped before the hub handshake could complete."),this.connection.stop(e))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(e,...t){const[n,r]=this._replaceStreamingParams(t),o=this._createStreamInvocation(e,t,r);let i;const a=new Qn;return a.cancelCallback=()=>{const e=this._createCancelInvocation(o.invocationId);return delete this._callbacks[o.invocationId],i.then(()=>this._sendWithProtocol(e))},this._callbacks[o.invocationId]=(e,t)=>{t?a.error(t):e&&(e.type===wn.Completion?e.error?a.error(new Error(e.error)):a.complete():a.next(e.item))},i=this._sendWithProtocol(o).catch(e=>{a.error(e),delete this._callbacks[o.invocationId]}),this._launchStreams(n,i),a}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._messageBuffer?this._messageBuffer._send(e):this._sendMessage(this._protocol.writeMessage(e))}send(e,...t){const[n,r]=this._replaceStreamingParams(t),o=this._sendWithProtocol(this._createInvocation(e,t,!0,r));return this._launchStreams(n,o),o}invoke(e,...t){const[n,r]=this._replaceStreamingParams(t),o=this._createInvocation(e,t,!1,r);return new Promise((e,t)=>{this._callbacks[o.invocationId]=(n,r)=>{r?t(r):n&&(n.type===wn.Completion?n.error?t(new Error(n.error)):e(n.result):t(new Error(`Unexpected message type: ${n.type}`)))};const r=this._sendWithProtocol(o).catch(e=>{t(e),delete this._callbacks[o.invocationId]});this._launchStreams(n,r)})}on(e,t){e&&t&&(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),-1===this._methods[e].indexOf(t)&&this._methods[e].push(t))}off(e,t){if(!e)return;e=e.toLowerCase();const n=this._methods[e];if(n)if(t){const r=n.indexOf(t);-1!==r&&(n.splice(r,1),0===n.length&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const t=this._protocol.parseMessages(e,this._logger);for(const n of t)if(!this._messageBuffer||this._messageBuffer._shouldProcessMessage(n))switch(n.type){case wn.Invocation:this._invokeClientMethod(n);break;case wn.StreamItem:case wn.Completion:{const t=this._callbacks[n.invocationId];if(t){n.type===wn.Completion&&delete this._callbacks[n.invocationId];try{t(n)}catch(e){this._logger.log(vn.Error,`Stream callback threw error: ${Fn(e)}`)}}break}case wn.Ping:break;case wn.Close:{this._logger.log(vn.Information,"Close message received from server.");const e=n.error?new Error("Server returned an error on close: "+n.error):void 0;!0===n.allowReconnect?this.connection.stop(e):this._stopPromise=this._stopInternal(e);break}case wn.Ack:this._messageBuffer&&this._messageBuffer._ack(n);break;case wn.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(n);break;default:this._logger.log(vn.Warning,`Invalid message type: ${n.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let t,n;try{[n,t]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(e){const t="Error parsing handshake response: "+e;this._logger.log(vn.Error,t);const n=new Error(t);throw this._handshakeRejecter(n),n}if(t.error){const e="Server returned handshake error: "+t.error;this._logger.log(vn.Error,e);const n=new Error(e);throw this._handshakeRejecter(n),n}return this._logger.log(vn.Debug,"Server handshake complete."),this._handshakeResolver(),n}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let e=this._nextKeepAlive-(new Date).getTime();e<0&&(e=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===bn.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(e){const t=e.target.toLowerCase(),n=this._methods[t];if(!n)return this._logger.log(vn.Warning,`No client method with the name '${t}' found.`),void(e.invocationId&&(this._logger.log(vn.Warning,`No result given for '${t}' method and invocation ID '${e.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null))));const r=n.slice(),o=!!e.invocationId;let i,a,s;for(const n of r)try{const r=i;i=await n.apply(this,e.arguments),o&&i&&r&&(this._logger.log(vn.Error,`Multiple results provided for '${t}'. Sending error to server.`),s=this._createCompletionMessage(e.invocationId,"Client provided multiple results.",null)),a=void 0}catch(e){a=e,this._logger.log(vn.Error,`A callback for the method '${t}' threw error '${e}'.`)}s?await this._sendWithProtocol(s):o?(a?s=this._createCompletionMessage(e.invocationId,`${a}`,null):void 0!==i?s=this._createCompletionMessage(e.invocationId,null,i):(this._logger.log(vn.Warning,`No result given for '${t}' method and invocation ID '${e.invocationId}'.`),s=this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(s)):i&&this._logger.log(vn.Error,`Result given for '${t}' method but server is not expecting a result.`)}_connectionClosed(e){this._logger.log(vn.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new dn("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===bn.Disconnecting?this._completeClose(e):this._connectionState===bn.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===bn.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=bn.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(null!=e?e:new Error("Connection closed.")),this._messageBuffer=void 0),En.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(t=>t.apply(this,[e]))}catch(t){this._logger.log(vn.Error,`An onclose callback called with error '${e}' threw error '${t}'.`)}}}async _reconnect(e){const t=Date.now();let n=0,r=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),o=this._getNextRetryDelay(n++,0,r);if(null===o)return this._logger.log(vn.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this._completeClose(e);if(this._connectionState=bn.Reconnecting,e?this._logger.log(vn.Information,`Connection reconnecting because of error '${e}'.`):this._logger.log(vn.Information,"Connection reconnecting."),0!==this._reconnectingCallbacks.length){try{this._reconnectingCallbacks.forEach(t=>t.apply(this,[e]))}catch(t){this._logger.log(vn.Error,`An onreconnecting callback called with error '${e}' threw error '${t}'.`)}if(this._connectionState!==bn.Reconnecting)return void this._logger.log(vn.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==o;){if(this._logger.log(vn.Information,`Reconnect attempt number ${n} will start in ${o} ms.`),await new Promise(e=>{this._reconnectDelayHandle=setTimeout(e,o)}),this._reconnectDelayHandle=void 0,this._connectionState!==bn.Reconnecting)return void this._logger.log(vn.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(await this._startInternal(),this._connectionState=bn.Connected,this._logger.log(vn.Information,"HubConnection reconnected successfully."),0!==this._reconnectedCallbacks.length)try{this._reconnectedCallbacks.forEach(e=>e.apply(this,[this.connection.connectionId]))}catch(e){this._logger.log(vn.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${e}'.`)}return}catch(e){if(this._logger.log(vn.Information,`Reconnect attempt failed because of error '${e}'.`),this._connectionState!==bn.Reconnecting)return this._logger.log(vn.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this._connectionState===bn.Disconnecting&&this._completeClose());r=e instanceof Error?e:new Error(e.toString()),o=this._getNextRetryDelay(n++,Date.now()-t,r)}}this._logger.log(vn.Information,`Reconnect retries have been exhausted after ${Date.now()-t} ms and ${n} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(e,t,n){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:n})}catch(n){return this._logger.log(vn.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${t}) threw error '${n}'.`),null}}_cancelCallbacksWithError(e){const t=this._callbacks;this._callbacks={},Object.keys(t).forEach(n=>{const r=t[n];try{r(null,e)}catch(t){this._logger.log(vn.Error,`Stream 'error' callback called with '${e}' threw error: ${Fn(t)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,t,n,r){if(n)return 0!==r.length?{arguments:t,streamIds:r,target:e,type:wn.Invocation}:{arguments:t,target:e,type:wn.Invocation};{const n=this._invocationId;return this._invocationId++,0!==r.length?{arguments:t,invocationId:n.toString(),streamIds:r,target:e,type:wn.Invocation}:{arguments:t,invocationId:n.toString(),target:e,type:wn.Invocation}}}_launchStreams(e,t){if(0!==e.length){t||(t=Promise.resolve());for(const n in e)e[n].subscribe({complete:()=>{t=t.then(()=>this._sendWithProtocol(this._createCompletionMessage(n)))},error:e=>{let r;r=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error",t=t.then(()=>this._sendWithProtocol(this._createCompletionMessage(n,r)))},next:e=>{t=t.then(()=>this._sendWithProtocol(this._createStreamItemMessage(n,e)))}})}}_replaceStreamingParams(e){const t=[],n=[];for(let r=0;r<e.length;r++){const o=e[r];if(this._isObservable(o)){const i=this._invocationId;this._invocationId++,t[i]=o,n.push(i.toString()),e.splice(r,1)}}return[t,n]}_isObservable(e){return e&&e.subscribe&&"function"==typeof e.subscribe}_createStreamInvocation(e,t,n){const r=this._invocationId;return this._invocationId++,0!==n.length?{arguments:t,invocationId:r.toString(),streamIds:n,target:e,type:wn.StreamInvocation}:{arguments:t,invocationId:r.toString(),target:e,type:wn.StreamInvocation}}_createCancelInvocation(e){return{invocationId:e,type:wn.CancelInvocation}}_createStreamItemMessage(e,t){return{invocationId:e,item:t,type:wn.StreamItem}}_createCompletionMessage(e,t,n){return t?{error:t,invocationId:e,type:wn.Completion}:{invocationId:e,result:n,type:wn.Completion}}_createCloseMessage(){return{type:wn.Close}}}class Zn{constructor(){this.name="json",this.version=2,this.transferFormat=An.Text}parseMessages(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=_n.instance);const n=$n.parse(e),r=[];for(const e of n){const n=JSON.parse(e);if("number"!=typeof n.type)throw new Error("Invalid payload.");switch(n.type){case wn.Invocation:this._isInvocationMessage(n);break;case wn.StreamItem:this._isStreamItemMessage(n);break;case wn.Completion:this._isCompletionMessage(n);break;case wn.Ping:case wn.Close:break;case wn.Ack:this._isAckMessage(n);break;case wn.Sequence:this._isSequenceMessage(n);break;default:t.log(vn.Information,"Unknown message type '"+n.type+"' ignored.");continue}r.push(n)}return r}writeMessage(e){return $n.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")}_isAckMessage(e){if("number"!=typeof e.sequenceId)throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(e){if("number"!=typeof e.sequenceId)throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(e,t){if("string"!=typeof e||""===e)throw new Error(t)}}const Jn={trace:vn.Trace,debug:vn.Debug,info:vn.Information,information:vn.Information,warn:vn.Warning,warning:vn.Warning,error:vn.Error,critical:vn.Critical,none:vn.None};class er{configureLogging(e){if(Cn.isRequired(e,"logging"),void 0!==e.log)this.logger=e;else if("string"==typeof e){const t=function(e){const t=Jn[e.toLowerCase()];if(void 0!==t)return t;throw new Error(`Unknown log level: ${e}`)}(e);this.logger=new Pn(t)}else this.logger=new Pn(e);return this}withUrl(e,t){return Cn.isRequired(e,"url"),Cn.isNotEmpty(e,"url"),this.url=e,this.httpConnectionOptions="object"==typeof t?{...this.httpConnectionOptions,...t}:{...this.httpConnectionOptions,transport:t},this}withHubProtocol(e){return Cn.isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new rn(e):this.reconnectPolicy=e:this.reconnectPolicy=new rn,this}withServerTimeout(e){return Cn.isRequired(e,"milliseconds"),this._serverTimeoutInMilliseconds=e,this}withKeepAliveInterval(e){return Cn.isRequired(e,"milliseconds"),this._keepAliveIntervalInMilliseconds=e,this}withStatefulReconnect(e){return void 0===this.httpConnectionOptions&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=null==e?void 0:e.bufferSize,this}build(){const e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const t=new Gn(this.url,e);return Xn.create(t,this.logger||_n.instance,this.protocol||new Zn,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}var tr,nr,rr,or=4294967295;function ir(e,t,n){var r=Math.floor(n/4294967296),o=n;e.setUint32(t,r),e.setUint32(t+4,o)}function ar(e,t){return 4294967296*e.getInt32(t)+e.getUint32(t+4)}var sr=("undefined"==typeof process||"never"!==(null===(tr=null===process||void 0===process?void 0:process.env)||void 0===tr?void 0:tr.TEXT_ENCODING))&&"undefined"!=typeof TextEncoder&&"undefined"!=typeof TextDecoder;function lr(e){for(var t=e.length,n=0,r=0;r<t;){var o=e.charCodeAt(r++);if(4294967168&o)if(4294965248&o){if(o>=55296&&o<=56319&&r<t){var i=e.charCodeAt(r);56320==(64512&i)&&(++r,o=((1023&o)<<10)+(1023&i)+65536)}n+=4294901760&o?4:3}else n+=2;else n++}return n}var cr=sr?new TextEncoder:void 0,ur=sr?"undefined"!=typeof process&&"force"!==(null===(nr=null===process||void 0===process?void 0:process.env)||void 0===nr?void 0:nr.TEXT_ENCODING)?200:0:or,dr=(null==cr?void 0:cr.encodeInto)?function(e,t,n){cr.encodeInto(e,t.subarray(n))}:function(e,t,n){t.set(cr.encode(e),n)};function pr(e,t,n){for(var r=t,o=r+n,i=[],a="";r<o;){var s=e[r++];if(128&s)if(192==(224&s)){var l=63&e[r++];i.push((31&s)<<6|l)}else if(224==(240&s)){l=63&e[r++];var c=63&e[r++];i.push((31&s)<<12|l<<6|c)}else if(240==(248&s)){var u=(7&s)<<18|(l=63&e[r++])<<12|(c=63&e[r++])<<6|63&e[r++];u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u)}else i.push(s);else i.push(s);i.length>=4096&&(a+=String.fromCharCode.apply(String,i),i.length=0)}return i.length>0&&(a+=String.fromCharCode.apply(String,i)),a}var hr,fr=sr?new TextDecoder:null,gr=sr?"undefined"!=typeof process&&"force"!==(null===(rr=null===process||void 0===process?void 0:process.env)||void 0===rr?void 0:rr.TEXT_DECODER)?200:0:or,mr=function(e,t){this.type=e,this.data=t},vr=(hr=function(e,t){return hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},hr(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}hr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),yr=function(e){function t(n){var r=e.call(this,n)||this,o=Object.create(t.prototype);return Object.setPrototypeOf(r,o),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:t.name}),r}return vr(t,e),t}(Error),Ar={type:-1,encode:function(e){var t,n,r,o;return e instanceof Date?function(e){var t,n=e.sec,r=e.nsec;if(n>=0&&r>=0&&n<=17179869183){if(0===r&&n<=4294967295){var o=new Uint8Array(4);return(t=new DataView(o.buffer)).setUint32(0,n),o}var i=n/4294967296,a=4294967295&n;return o=new Uint8Array(8),(t=new DataView(o.buffer)).setUint32(0,r<<2|3&i),t.setUint32(4,a),o}return o=new Uint8Array(12),(t=new DataView(o.buffer)).setUint32(0,r),ir(t,4,n),o}((r=1e6*((t=e.getTime())-1e3*(n=Math.floor(t/1e3))),{sec:n+(o=Math.floor(r/1e9)),nsec:r-1e9*o})):null},decode:function(e){var t=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:return{sec:t.getUint32(0),nsec:0};case 8:var n=t.getUint32(0);return{sec:4294967296*(3&n)+t.getUint32(4),nsec:n>>>2};case 12:return{sec:ar(t,4),nsec:t.getUint32(0)};default:throw new yr("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}(e);return new Date(1e3*t.sec+t.nsec/1e6)}},wr=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(Ar)}return e.prototype.register=function(e){var t=e.type,n=e.encode,r=e.decode;if(t>=0)this.encoders[t]=n,this.decoders[t]=r;else{var o=1+t;this.builtInEncoders[o]=n,this.builtInDecoders[o]=r}},e.prototype.tryToEncode=function(e,t){for(var n=0;n<this.builtInEncoders.length;n++)if(null!=(r=this.builtInEncoders[n])&&null!=(o=r(e,t)))return new mr(-1-n,o);for(n=0;n<this.encoders.length;n++){var r,o;if(null!=(r=this.encoders[n])&&null!=(o=r(e,t)))return new mr(n,o)}return e instanceof mr?e:null},e.prototype.decode=function(e,t,n){var r=t<0?this.builtInDecoders[-1-t]:this.decoders[t];return r?r(e,t,n):new mr(t,e)},e.defaultCodec=new e,e}();function br(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}var _r=function(){function e(e,t,n,r,o,i,a,s){void 0===e&&(e=wr.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=100),void 0===r&&(r=2048),void 0===o&&(o=!1),void 0===i&&(i=!1),void 0===a&&(a=!1),void 0===s&&(s=!1),this.extensionCodec=e,this.context=t,this.maxDepth=n,this.initialBufferSize=r,this.sortKeys=o,this.forceFloat32=i,this.ignoreUndefined=a,this.forceIntegerToFloat=s,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encodeSharedRef=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.subarray(0,this.pos)},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.slice(0,this.pos)},e.prototype.doEncode=function(e,t){if(t>this.maxDepth)throw new Error("Too deep objects in depth ".concat(t));null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.encodeNumber(e):"string"==typeof e?this.encodeString(e):this.encodeObject(e,t)},e.prototype.ensureBufferSizeToWrite=function(e){var t=this.pos+e;this.view.byteLength<t&&this.resizeBuffer(2*t)},e.prototype.resizeBuffer=function(e){var t=new ArrayBuffer(e),n=new Uint8Array(t),r=new DataView(t);n.set(this.bytes),this.view=r,this.bytes=n},e.prototype.encodeNil=function(){this.writeU8(192)},e.prototype.encodeBoolean=function(e){!1===e?this.writeU8(194):this.writeU8(195)},e.prototype.encodeNumber=function(e){Number.isSafeInteger(e)&&!this.forceIntegerToFloat?e>=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else{if(!(e<4294967296))throw new Error("Too long string: ".concat(e," bytes in UTF-8"));this.writeU8(219),this.writeU32(e)}},e.prototype.encodeString=function(e){if(e.length>ur){var t=lr(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),dr(e,this.bytes,this.pos),this.pos+=t}else t=lr(e),this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),function(e,t,n){for(var r=e.length,o=n,i=0;i<r;){var a=e.charCodeAt(i++);if(4294967168&a){if(4294965248&a){if(a>=55296&&a<=56319&&i<r){var s=e.charCodeAt(i);56320==(64512&s)&&(++i,a=((1023&a)<<10)+(1023&s)+65536)}4294901760&a?(t[o++]=a>>18&7|240,t[o++]=a>>12&63|128,t[o++]=a>>6&63|128):(t[o++]=a>>12&15|224,t[o++]=a>>6&63|128)}else t[o++]=a>>6&31|192;t[o++]=63&a|128}else t[o++]=a}}(e,this.bytes,this.pos),this.pos+=t},e.prototype.encodeObject=function(e,t){var n=this.extensionCodec.tryToEncode(e,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else{if("object"!=typeof e)throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)));this.encodeMap(e,t)}},e.prototype.encodeBinary=function(e){var t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large binary: ".concat(t));this.writeU8(198),this.writeU32(t)}var n=br(e);this.writeU8a(n)},e.prototype.encodeArray=function(e,t){var n=e.length;if(n<16)this.writeU8(144+n);else if(n<65536)this.writeU8(220),this.writeU16(n);else{if(!(n<4294967296))throw new Error("Too large array: ".concat(n));this.writeU8(221),this.writeU32(n)}for(var r=0,o=e;r<o.length;r++){var i=o[r];this.doEncode(i,t+1)}},e.prototype.countWithoutUndefined=function(e,t){for(var n=0,r=0,o=t;r<o.length;r++)void 0!==e[o[r]]&&n++;return n},e.prototype.encodeMap=function(e,t){var n=Object.keys(e);this.sortKeys&&n.sort();var r=this.ignoreUndefined?this.countWithoutUndefined(e,n):n.length;if(r<16)this.writeU8(128+r);else if(r<65536)this.writeU8(222),this.writeU16(r);else{if(!(r<4294967296))throw new Error("Too large map object: ".concat(r));this.writeU8(223),this.writeU32(r)}for(var o=0,i=n;o<i.length;o++){var a=i[o],s=e[a];this.ignoreUndefined&&void 0===s||(this.encodeString(a),this.doEncode(s,t+1))}},e.prototype.encodeExtension=function(e){var t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large extension object: ".concat(t));this.writeU8(201),this.writeU32(t)}this.writeI8(e.type),this.writeU8a(e.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(e){var t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){this.ensureBufferSizeToWrite(8),function(e,t,n){var r=n/4294967296,o=n;e.setUint32(t,r),e.setUint32(t+4,o)}(this.view,this.pos,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),ir(this.view,this.pos,e),this.pos+=8},e}();function Cr(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var Er=function(){function e(e,t){void 0===e&&(e=16),void 0===t&&(t=16),this.maxKeyLength=e,this.maxLengthPerKey=t,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n<this.maxKeyLength;n++)this.caches.push([])}return e.prototype.canBeCached=function(e){return e>0&&e<=this.maxKeyLength},e.prototype.find=function(e,t,n){e:for(var r=0,o=this.caches[n-1];r<o.length;r++){for(var i=o[r],a=i.bytes,s=0;s<n;s++)if(a[s]!==e[t+s])continue e;return i.str}return null},e.prototype.store=function(e,t){var n=this.caches[e.length-1],r={bytes:e,str:t};n.length>=this.maxLengthPerKey?n[Math.random()*n.length|0]=r:n.push(r)},e.prototype.decode=function(e,t,n){var r=this.find(e,t,n);if(null!=r)return this.hit++,r;this.miss++;var o=pr(e,t,n),i=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(i,o),o},e}(),Sr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Or=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,o,(t=e[n](t)).done,t.value)})}}},xr=function(e){return this instanceof xr?(this.v=e,this):new xr(e)},Dr=function(e){var t=typeof e;return"string"===t||"number"===t},Pr=new DataView(new ArrayBuffer(0)),Mr=new Uint8Array(Pr.buffer),Tr=function(){try{Pr.getInt8(0)}catch(e){return e.constructor}throw new Error("never reached")}(),Rr=new Tr("Insufficient data"),Ir=new Er,Fr=function(){function e(e,t,n,r,o,i,a,s){void 0===e&&(e=wr.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=or),void 0===r&&(r=or),void 0===o&&(o=or),void 0===i&&(i=or),void 0===a&&(a=or),void 0===s&&(s=Ir),this.extensionCodec=e,this.context=t,this.maxStrLength=n,this.maxBinLength=r,this.maxArrayLength=o,this.maxMapLength=i,this.maxExtLength=a,this.keyDecoder=s,this.totalPos=0,this.pos=0,this.view=Pr,this.bytes=Mr,this.headByte=-1,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1,this.stack.length=0},e.prototype.setBuffer=function(e){this.bytes=br(e),this.view=function(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=br(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}(this.bytes),this.pos=0},e.prototype.appendBuffer=function(e){if(-1!==this.headByte||this.hasRemaining(1)){var t=this.bytes.subarray(this.pos),n=br(e),r=new Uint8Array(t.length+n.length);r.set(t),r.set(n,t.length),this.setBuffer(r)}else this.setBuffer(e)},e.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},e.prototype.createExtraByteError=function(e){var t=this.view,n=this.pos;return new RangeError("Extra ".concat(t.byteLength-n," of ").concat(t.byteLength," byte(s) found at buffer[").concat(e,"]"))},e.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var t=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return t},e.prototype.decodeMulti=function(e){return Sr(this,function(t){switch(t.label){case 0:this.reinitializeState(),this.setBuffer(e),t.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return t.sent(),[3,1];case 3:return[2]}})},e.prototype.decodeAsync=function(e){var t,n,r,o,i,a,s;return i=this,s=function(){var i,a,s,l,c,u,d,p;return Sr(this,function(h){switch(h.label){case 0:i=!1,h.label=1;case 1:h.trys.push([1,6,7,12]),t=Or(e),h.label=2;case 2:return[4,t.next()];case 3:if((n=h.sent()).done)return[3,5];if(s=n.value,i)throw this.createExtraByteError(this.totalPos);this.appendBuffer(s);try{a=this.doDecodeSync(),i=!0}catch(e){if(!(e instanceof Tr))throw e}this.totalPos+=this.pos,h.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return l=h.sent(),r={error:l},[3,12];case 7:return h.trys.push([7,,10,11]),n&&!n.done&&(o=t.return)?[4,o.call(t)]:[3,9];case 8:h.sent(),h.label=9;case 9:return[3,11];case 10:if(r)throw r.error;return[7];case 11:return[7];case 12:if(i){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,a]}throw u=(c=this).headByte,d=c.pos,p=c.totalPos,new RangeError("Insufficient data in parsing ".concat(Cr(u)," at ").concat(p," (").concat(d," in the current buffer)"))}})},new((a=void 0)||(a=Promise))(function(e,t){function n(e){try{o(s.next(e))}catch(e){t(e)}}function r(e){try{o(s.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a(function(e){e(o)})).then(n,r)}o((s=s.apply(i,[])).next())})},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=o[e](t)).value instanceof xr?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}(this,arguments,function(){var n,r,o,i,a,s,l,c,u;return Sr(this,function(d){switch(d.label){case 0:n=t,r=-1,d.label=1;case 1:d.trys.push([1,13,14,19]),o=Or(e),d.label=2;case 2:return[4,xr(o.next())];case 3:if((i=d.sent()).done)return[3,12];if(a=i.value,t&&0===r)throw this.createExtraByteError(this.totalPos);this.appendBuffer(a),n&&(r=this.readArraySize(),n=!1,this.complete()),d.label=4;case 4:d.trys.push([4,9,,10]),d.label=5;case 5:return[4,xr(this.doDecodeSync())];case 6:return[4,d.sent()];case 7:return d.sent(),0===--r?[3,8]:[3,5];case 8:return[3,10];case 9:if(!((s=d.sent())instanceof Tr))throw s;return[3,10];case 10:this.totalPos+=this.pos,d.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return l=d.sent(),c={error:l},[3,19];case 14:return d.trys.push([14,,17,18]),i&&!i.done&&(u=o.return)?[4,xr(u.call(o))]:[3,16];case 15:d.sent(),d.label=16;case 16:return[3,18];case 17:if(c)throw c.error;return[7];case 18:return[7];case 19:return[2]}})})},e.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),t=void 0;if(e>=224)t=e-256;else if(e<192)if(e<128)t=e;else if(e<144){if(0!=(r=e-128)){this.pushMapState(r),this.complete();continue e}t={}}else if(e<160){if(0!=(r=e-144)){this.pushArrayState(r),this.complete();continue e}t=[]}else{var n=e-160;t=this.decodeUtf8String(n,0)}else if(192===e)t=null;else if(194===e)t=!1;else if(195===e)t=!0;else if(202===e)t=this.readF32();else if(203===e)t=this.readF64();else if(204===e)t=this.readU8();else if(205===e)t=this.readU16();else if(206===e)t=this.readU32();else if(207===e)t=this.readU64();else if(208===e)t=this.readI8();else if(209===e)t=this.readI16();else if(210===e)t=this.readI32();else if(211===e)t=this.readI64();else if(217===e)n=this.lookU8(),t=this.decodeUtf8String(n,1);else if(218===e)n=this.lookU16(),t=this.decodeUtf8String(n,2);else if(219===e)n=this.lookU32(),t=this.decodeUtf8String(n,4);else if(220===e){if(0!==(r=this.readU16())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(221===e){if(0!==(r=this.readU32())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(222===e){if(0!==(r=this.readU16())){this.pushMapState(r),this.complete();continue e}t={}}else if(223===e){if(0!==(r=this.readU32())){this.pushMapState(r),this.complete();continue e}t={}}else if(196===e){var r=this.lookU8();t=this.decodeBinary(r,1)}else if(197===e)r=this.lookU16(),t=this.decodeBinary(r,2);else if(198===e)r=this.lookU32(),t=this.decodeBinary(r,4);else if(212===e)t=this.decodeExtension(1,0);else if(213===e)t=this.decodeExtension(2,0);else if(214===e)t=this.decodeExtension(4,0);else if(215===e)t=this.decodeExtension(8,0);else if(216===e)t=this.decodeExtension(16,0);else if(199===e)r=this.lookU8(),t=this.decodeExtension(r,1);else if(200===e)r=this.lookU16(),t=this.decodeExtension(r,2);else{if(201!==e)throw new yr("Unrecognized type byte: ".concat(Cr(e)));r=this.lookU32(),t=this.decodeExtension(r,4)}this.complete();for(var o=this.stack;o.length>0;){var i=o[o.length-1];if(0===i.type){if(i.array[i.position]=t,i.position++,i.position!==i.size)continue e;o.pop(),t=i.array}else{if(1===i.type){if(!Dr(t))throw new yr("The type of key must be string or number but "+typeof t);if("__proto__"===t)throw new yr("The key __proto__ is not allowed");i.key=t,i.type=2;continue e}if(i.map[i.key]=t,i.readCount++,i.readCount!==i.size){i.key=null,i.type=1;continue e}o.pop(),t=i.map}}return t}},e.prototype.readHeadByte=function(){return-1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new yr("Unrecognized array type byte: ".concat(Cr(e)))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new yr("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new yr("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:e,array:new Array(e),position:0})},e.prototype.decodeUtf8String=function(e,t){var n;if(e>this.maxStrLength)throw new yr("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+t+e)throw Rr;var r,o=this.pos+t;return r=this.stateIsMapKey()&&(null===(n=this.keyDecoder)||void 0===n?void 0:n.canBeCached(e))?this.keyDecoder.decode(this.bytes,o,e):e>gr?function(e,t,n){var r=e.subarray(t,t+n);return fr.decode(r)}(this.bytes,o,e):pr(this.bytes,o,e),this.pos+=t+e,r},e.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(e,t){if(e>this.maxBinLength)throw new yr("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+t))throw Rr;var n=this.pos+t,r=this.bytes.subarray(n,n+e);return this.pos+=t+e,r},e.prototype.decodeExtension=function(e,t){if(e>this.maxExtLength)throw new yr("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));var n=this.view.getInt8(this.pos+t),r=this.decodeBinary(e,t+1);return this.extensionCodec.decode(r,n,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var e=function(e,t){return 4294967296*e.getUint32(t)+e.getUint32(t+4)}(this.view,this.pos);return this.pos+=8,e},e.prototype.readI64=function(){var e=ar(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}();class kr{static write(e){let t=e.byteLength||e.length;const n=[];do{let e=127&t;t>>=7,t>0&&(e|=128),n.push(e)}while(t>0);t=e.byteLength||e.length;const r=new Uint8Array(n.length+t);return r.set(n,0),r.set(e,n.length),r.buffer}static parse(e){const t=[],n=new Uint8Array(e),r=[0,7,14,21,28];for(let o=0;o<e.byteLength;){let i,a=0,s=0;do{i=n[o+a],s|=(127&i)<<r[a],a++}while(a<Math.min(5,e.byteLength-o)&&128&i);if(128&i&&a<5)throw new Error("Cannot read message size.");if(5===a&&i>7)throw new Error("Messages bigger than 2GB are not supported.");if(!(n.byteLength>=o+a+s))throw new Error("Incomplete message.");t.push(n.slice?n.slice(o+a,o+a+s):n.subarray(o+a,o+a+s)),o=o+a+s}return t}}const Lr=new Uint8Array([145,wn.Ping]);class Br{constructor(e){this.name="messagepack",this.version=2,this.transferFormat=An.Binary,this._errorResult=1,this._voidResult=2,this._nonVoidResult=3,e=e||{},this._encoder=new _r(e.extensionCodec,e.context,e.maxDepth,e.initialBufferSize,e.sortKeys,e.forceFloat32,e.ignoreUndefined,e.forceIntegerToFloat),this._decoder=new Fr(e.extensionCodec,e.context,e.maxStrLength,e.maxBinLength,e.maxArrayLength,e.maxMapLength,e.maxExtLength)}parseMessages(e,t){if(!(n=e)||"undefined"==typeof ArrayBuffer||!(n instanceof ArrayBuffer||n.constructor&&"ArrayBuffer"===n.constructor.name))throw new Error("Invalid input for MessagePack hub protocol. Expected an ArrayBuffer.");var n;null===t&&(t=_n.instance);const r=kr.parse(e),o=[];for(const e of r){const n=this._parseMessage(e,t);n&&o.push(n)}return o}writeMessage(e){switch(e.type){case wn.Invocation:return this._writeInvocation(e);case wn.StreamInvocation:return this._writeStreamInvocation(e);case wn.StreamItem:return this._writeStreamItem(e);case wn.Completion:return this._writeCompletion(e);case wn.Ping:return kr.write(Lr);case wn.CancelInvocation:return this._writeCancelInvocation(e);case wn.Close:return this._writeClose();case wn.Ack:return this._writeAck(e);case wn.Sequence:return this._writeSequence(e);default:throw new Error("Invalid message type.")}}_parseMessage(e,t){if(0===e.length)throw new Error("Invalid payload.");const n=this._decoder.decode(e);if(0===n.length||!(n instanceof Array))throw new Error("Invalid payload.");const r=n[0];switch(r){case wn.Invocation:return this._createInvocationMessage(this._readHeaders(n),n);case wn.StreamItem:return this._createStreamItemMessage(this._readHeaders(n),n);case wn.Completion:return this._createCompletionMessage(this._readHeaders(n),n);case wn.Ping:return this._createPingMessage(n);case wn.Close:return this._createCloseMessage(n);case wn.Ack:return this._createAckMessage(n);case wn.Sequence:return this._createSequenceMessage(n);default:return t.log(vn.Information,"Unknown message type '"+r+"' ignored."),null}}_createCloseMessage(e){if(e.length<2)throw new Error("Invalid payload for Close message.");return{allowReconnect:e.length>=3?e[2]:void 0,error:e[1],type:wn.Close}}_createPingMessage(e){if(e.length<1)throw new Error("Invalid payload for Ping message.");return{type:wn.Ping}}_createInvocationMessage(e,t){if(t.length<5)throw new Error("Invalid payload for Invocation message.");const n=t[2];return n?{arguments:t[4],headers:e,invocationId:n,streamIds:[],target:t[3],type:wn.Invocation}:{arguments:t[4],headers:e,streamIds:[],target:t[3],type:wn.Invocation}}_createStreamItemMessage(e,t){if(t.length<4)throw new Error("Invalid payload for StreamItem message.");return{headers:e,invocationId:t[2],item:t[3],type:wn.StreamItem}}_createCompletionMessage(e,t){if(t.length<4)throw new Error("Invalid payload for Completion message.");const n=t[3];if(n!==this._voidResult&&t.length<5)throw new Error("Invalid payload for Completion message.");let r,o;switch(n){case this._errorResult:r=t[4];break;case this._nonVoidResult:o=t[4]}return{error:r,headers:e,invocationId:t[2],result:o,type:wn.Completion}}_createAckMessage(e){if(e.length<1)throw new Error("Invalid payload for Ack message.");return{sequenceId:e[1],type:wn.Ack}}_createSequenceMessage(e){if(e.length<1)throw new Error("Invalid payload for Sequence message.");return{sequenceId:e[1],type:wn.Sequence}}_writeInvocation(e){let t;return t=e.streamIds?this._encoder.encode([wn.Invocation,e.headers||{},e.invocationId||null,e.target,e.arguments,e.streamIds]):this._encoder.encode([wn.Invocation,e.headers||{},e.invocationId||null,e.target,e.arguments]),kr.write(t.slice())}_writeStreamInvocation(e){let t;return t=e.streamIds?this._encoder.encode([wn.StreamInvocation,e.headers||{},e.invocationId,e.target,e.arguments,e.streamIds]):this._encoder.encode([wn.StreamInvocation,e.headers||{},e.invocationId,e.target,e.arguments]),kr.write(t.slice())}_writeStreamItem(e){const t=this._encoder.encode([wn.StreamItem,e.headers||{},e.invocationId,e.item]);return kr.write(t.slice())}_writeCompletion(e){const t=e.error?this._errorResult:void 0!==e.result?this._nonVoidResult:this._voidResult;let n;switch(t){case this._errorResult:n=this._encoder.encode([wn.Completion,e.headers||{},e.invocationId,t,e.error]);break;case this._voidResult:n=this._encoder.encode([wn.Completion,e.headers||{},e.invocationId,t]);break;case this._nonVoidResult:n=this._encoder.encode([wn.Completion,e.headers||{},e.invocationId,t,e.result])}return kr.write(n.slice())}_writeCancelInvocation(e){const t=this._encoder.encode([wn.CancelInvocation,e.headers||{},e.invocationId]);return kr.write(t.slice())}_writeClose(){const e=this._encoder.encode([wn.Close,null]);return kr.write(e.slice())}_writeAck(e){const t=this._encoder.encode([wn.Ack,e.sequenceId]);return kr.write(t.slice())}_writeSequence(e){const t=this._encoder.encode([wn.Sequence,e.sequenceId]);return kr.write(t.slice())}_readHeaders(e){const t=e[1];if("object"!=typeof t)throw new Error("Invalid headers.");return t}}const Nr=ce.GVDebug.extend("platform").extend("assetManagement");class jr{impersonateUser;impersonateToken;static impersonations;static impersonate(e,t,n,r){return this.impersonations||(this.impersonations={}),this.impersonations[e]||(n||(n=Pu.impersonate(e,t)),this.impersonations[e]=new jr(jr.get().config,n.auth,n,e,t,r)),this.impersonations[e].setToken(t),this.impersonations[e]}static get(e,t,n){if(!this.assetManagement){if(!e||!t)throw new Error("GVCluster has not been created and no config was passed in");Nr("creating new instance"),this.assetManagement=new jr(e,t,n)}return this.assetManagement}static assetManagement;assets;get impersonation(){return!!this.impersonateUser}auth;config;client;constructor(e,t,n,r,o,i){this.impersonateUser=r,this.impersonateToken=o,r||Nr("config",JSON.stringify(e)),i&&i(this.setToken.bind(this)),this.client=le.create({adapter:"function"==typeof fetch&&Pe,baseURL:e.clusterUri}),this.auth=t,this.config=e,this.client.interceptors.request.use(e=>(e.withCredentials=!0,e.headers||(e.headers={}),this.impersonateUser?this.impersonateToken?e.headers.Authorization=`Bearer ${this.impersonateToken}`:e.headers["x-account"]=this.impersonateUser:e.headers?.Authorization||(this.auth.isAuthenticated()?e.headers.Authorization=`Bearer ${this.auth.getToken()}`:e.headers.Authorization=null),e),e=>Promise.reject(e)),this.assets=zr.get(this)}getClient(){return this.client}setToken(e){this.impersonateToken=e}}const Ur=ce.GVDebug.extend("assetManagement").extend("api"),Vr=ce.GVDebug.extend("assetManagement").extend("api").extend("impersonation");class Hr{static instance;static instances;baseUrl;apiUrl;assetManagement;constructor(e,t,n){this.baseUrl=e,this.apiUrl=t,this.assetManagement=n||jr.get()}getLink(){return`${this.assetManagement.getClient().defaults.baseURL}${this.baseUrl}`}getApiLink(){return`${this.assetManagement.getClient().defaults.baseURL}${this.baseUrl}${this.apiUrl}`}get(e,t,n=!1,r=!0){this.assetManagement.impersonation&&(n=!1,r=!1),t||(t={}),t.headers||(t.headers={}),t.headers["x-correlation-id"]||(t.correlationId?t.headers["x-correlation-id"]=t.correlationId:t.headers["x-correlation-id"]=Ve());const o=t.headers["x-correlation-id"].toString(),i=`${this.baseUrl}${this.apiUrl}${e}`;return ac[n?"Debug":"Trace"](`Making GET request to ${i}`,{baseUrl:this.baseUrl,apiUrl:this.apiUrl,url:e,method:"GET",CorrelationId:o},["GET","Cluster"]),this.assetManagement.getClient().get(i,t).catch(this.handleError.bind(this,i,o,r))}request(e,t=!0,n=!0){this.assetManagement.impersonation&&(t=!1,n=!1),e||(e={method:"GET"}),e.headers||(e.headers={}),e.headers["x-correlation-id"]||(e.correlationId?e.headers["x-correlation-id"]=e.correlationId:e.headers["x-correlation-id"]=Ve());const r=e.headers["x-correlation-id"].toString(),o=`${this.baseUrl}${this.apiUrl}${e.url}`;return ac[t?"Debug":"Trace"](`Making ${e.method.toUpperCase()} request to ${o}`,{CorrelationId:r,apiUrl:this.apiUrl,baseUrl:this.baseUrl,method:e.method.toUpperCase(),payload:JSON.stringify(e.data),url:e.url},[e.method.toUpperCase(),"Cluster"]),this.assetManagement.getClient().request(tn()(e,{url:o})).catch(this.handleError.bind(this,o,r,n))}handleError(e,t,n,r,...o){throw r?.response?.status&&(401===r.response.status?(this.assetManagement.impersonation?Vr("unauthorised",e):Ur("unauthorised",e),this.assetManagement.auth.login()):(ac[!0===n?"Error":"Trace"](`Error with url ${e} - Status ${r.response.status} ${r.response.statusText} - Data ${JSON.stringify(r.response.data)}`,{CorrelationId:t,error:r.response.data&&r.response.data.message?r.response.data.message:void 0},["Cluster"]),this.assetManagement.impersonation?Vr("error",e,r.response.status,r.response.statusText):Ur("error",e,r.response.status,r.response.statusText))),r}}var Gr;!function(e){e.defaultQuery=e=>({all:[{all:[{any:[{any:Array.isArray(e)?[e.map(e=>({"asset:locations:tags":{contains:`${e}`}}))]:{"asset:locations:tags":{contains:`${e}`}}}]},{any:[{"asset:type:assetType":{equals:"clip"}}]}]}],orderBy:[{"version:modified:dateTime":"desc"}]})}(Gr||(Gr={}));const Wr=ce.GVDebug.extend("assetManagment").extend("assets");class zr extends Hr{static get(...e){return this.instance||(Wr("creating new instance"),this.instance=new zr(...e)),this.instance}imageCache={};constructor(e){super("","/api/v1",e)}async getAsset(e){const t=await this.get(`/store/asset/Assets/${e}`);return t?.data}async getAssetSchema(){const e=await this.get("/store/asset/Schema");return e?.data}getAssetList(e,t,n){let r={Skip:t,Limit:n,ExplicitTotal:"true"};return this.request({data:e,method:"post",params:r,url:"/search/Query"})}getAssetCount(e){return this.request({data:e,method:"post",url:"/search/Query/count"})}getLocation(e){return this.get("/db/locations/locations/"+e)}async getLocations(e){const t=e?.Limit??1e3;let n=e?.Skip??0;const r=[];for(;;){const o={...e,skip:n,limit:t},i=await this.request({method:"get",params:o,url:"/store/location/locations"});if(!i?.data||!i.data.hits||!Array.isArray(i.data.hits))break;const a=i.data.hits;if(r.push(...a),a.length<t)break;n+=t}return{data:{hits:r}}}async getGenericDefinition(e){const t=await this.get(`/store/generic/generic/${e}`);return t?.data}getAssetRelations(e){return this.get(`/store/relationship/relationships?ObjectId=${e}`)}getSubclipRelations(e){return this.get(`/store/relationship/relationships?SubjectId=${e}`)}getSites(e){return this.get(`/store/preference/system/${e}`)}getFLXSites(){return this.getLocations({Type:"site"})}getFLXStores(e){const t={Type:"store",Parent:e};return this.getLocations(t)}getFLXSitesAndStores(){return this.getLocations()}async getSearchResults(e,t,n){return this.getSearchResultsFromSearch(Gr.defaultQuery(n),e,t)}async getAllSearchResultsFromSearch(e,t){const{data:n}=await this.getAssetCount(e),r=Math.ceil(+n/t);if(0===r)return{hits:[]};const o=[];for(let n=0;n<r;n++)o.push(this.getAssetList(e,n*t,t));const i=await Promise.all(o);return i.some(e=>200!=e.status)?{hits:[]}:i.reduce((e,t)=>(e.hits=[...e.hits,...t.data.hits],e),{hits:[]})}async getSearchResultsFromSearch(e,t,n){let r=(await this.getAssetList(e,t,n)).data;for(const e of r.hits){if(!e?.doc?.version)continue;let t=e.doc.version["clip:id"];t&&(e.doc.thumbnail=this.getApiLink()+"/store/still/stills/"+t+"/poster.jpeg")}return r}async getRelatedSubclips(e,t=200,n){if(0===e.size)return[];const r=(await Promise.all([...e].map(async e=>await this.getAssetRelations(e)))).flatMap(e=>e.data.relationships).map(e=>({mainClipId:e.objectId,subClipId:e.subjectId})).filter(e=>!n?.has(e.subClipId));if(0===r.length)return[];const o={all:[{any:r.map(e=>({"asset:asset:id":{equals:e.subClipId}}))},{"asset:type:type":{equals:"subclip"}}]};return(await this.getSearchResultsFromSearch(o,0,t)).hits}async getSubclipsCreatedFromStore(e,t,n=200){if(0===e.length)return[];const r=new Set(e.map(e=>String(e.doc["asset:id"]))),o=(await Promise.all([...r].map(async e=>await this.getSubclipRelations(e)))).flatMap(e=>e.data.relationships).map(e=>({mainClipId:String(e.objectId),subClipId:String(e.subjectId)}));if(0===o.length)return[];const i={all:[{any:o.map(e=>({"asset:asset:id":{equals:e.mainClipId}}))},t&&t.length>0&&""!==t&&"all"!==t&&"All"!==t&&"ALL"!==t&&"undefined"!==t?{any:[{any:Array.isArray(t)?[t.map(e=>({"asset:locations:tags":{contains:`${e}`}}))]:{"asset:locations:tags":{contains:`${t}`}}}]}:{any:[]}]},a=await this.getSearchResultsFromSearch(i,0,n),s=o.reduce((e,t)=>(e[t.mainClipId]=t.subClipId,e),{}),l=a.hits.map(e=>s[e.doc["asset:id"]]);return e.filter(e=>l.includes(e.doc["asset:id"]))}async getImage(e,t){if(!t&&this.imageCache[e])return this.imageCache[e];const n=this._getImage(e);return this.imageCache[e]=n,n}getSrc(e){return new Promise((t,n)=>{const r=new window.FileReader;r.readAsDataURL(e?.data),r.onload=function(){const{result:e}=r;if("string"==typeof e)return t(e);t(Buffer.from(e).toString("base64"))},r.onerror=n})}async _getImage(e){try{const t=await this.get(`/store/still/stills/${e}/poster.jpeg`,{responseType:"blob",withCredentials:!0},!1,!1);return await this.getSrc(t)}catch(t){return this.imageCache[e]=null,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}}async getLocationPath(e,t){const n=t+":hq",r=(await this.getLocation(e)).data[n];return r?.unc??""}}const $r=ce.GVDebug.extend("platform").extend("base"),Kr=ce.GVDebug.extend("platform").extend("base");class Qr{static instance;static instances;baseUrl;apiUrl;platform;constructor(e,t,n){this.baseUrl=e,this.apiUrl=t,this.platform=n||Pu.get()}getLink(){return`${this.platform.getClient().defaults.baseURL}${this.baseUrl}`}getApiLink(){return`${this.platform.getClient().defaults.baseURL}${this.baseUrl}${this.apiUrl}`}get(e,t,n=!1,r=!0){this.platform.impersonation&&(n=!1,r=!1),t||(t={}),t.headers||(t.headers={}),t.headers["x-correlation-id"]||(t.correlationId?t.headers["x-correlation-id"]=t.correlationId:t.headers["x-correlation-id"]=Ve());const o=t.headers["x-correlation-id"].toString(),i=`${this.baseUrl}${this.apiUrl}${e}`;return this.platform.logging[n?"Debug":"Trace"](`Making GET request to ${i}`,{baseUrl:this.baseUrl,apiUrl:this.apiUrl,url:e,method:"GET",CorrelationId:o},["GET","Platform"]),this.platform.getClient().get(i,t).catch(this.handleError.bind(this,i,o,r))}handleError(e,t,n,r,...o){if(r?.response?.status)if(401===r.response.status)this.platform.impersonation?Kr("unauthorised",e):$r("unauthorised",e),this.platform.auth.validateAuthenticated().validationResult.before||this.platform.auth.login();else{const o=!0===n?"Error":"Trace";this.platform.logging[o](`Error with url ${e} - Status ${r.response.status} ${r.response.statusText} - Body ${JSON.stringify(r.response.data)}`,{CorrelationId:t},["Platform"]),this.platform.impersonation?Kr("error",e,r.response.status,r.response.statusText):$r("error",e,r.response.status,r.response.statusText)}throw r}request(e,t=!0,n=!0){this.platform.impersonation&&(t=!1,n=!1),e||(e={method:"GET"}),e.headers||(e.headers={}),e.headers["x-correlation-id"]||(e.correlationId?e.headers["x-correlation-id"]=e.correlationId:e.headers["x-correlation-id"]=Ve());const r=e.headers["x-correlation-id"].toString(),o=`${this.baseUrl}${this.apiUrl}${e.url}`;return this.platform.logging[t?"Debug":"Trace"](`Making ${e.method.toUpperCase()} request to ${o}`,{CorrelationId:r,apiUrl:this.apiUrl,baseUrl:this.baseUrl,method:e.method.toUpperCase(),payload:JSON.stringify(e.data),url:e.url},[e.method.toUpperCase(),"Platform"]),this.platform.getClient().request(tn()(e,{url:o})).catch(this.handleError.bind(this,o,r,n))}}class qr extends Qr{static get=(...e)=>(this.instance||(this.instance=new qr(...e)),this.instance);constructor(e){super("","/api/v1",e)}getAssetSuggetions=async e=>{const t=await this.platform.getClient().get(`/scs-utils/suggestions/asset/?suggest=${e}`);return 200!=t.status?[]:t.data};getAssets=async e=>{const t=await this.platform.getClient().post("/api/v1/search/query/asset?skip=0&limit=100&explicitTotal=true",{all:[{"all:aggregate:text":{contains:e}}],orderBy:[{"asset:name:text":"desc"}]});return 200!=t.status?{}:t.data.hits.map(e=>({id:e.doc["asset:id"],value:e.doc["name:text"],label:e.doc["name:text"]}))};getAssetsByQuery=async e=>{const t=await this.platform.getClient().post("/api/v1/search/query/asset?skip=0&limit=100&explicitTotal=true",e);return 200!=t.status?{}:t.data.hits.map(e=>({id:e.doc["asset:id"],value:e.doc["name:text"],label:e.doc["name:text"],path:e.doc["keywords:tags"]}))};getGraphicsCompositionList=async(e="")=>{const t=await this.platform.getClient().post("/api/v1/search/query/asset",(n=e,{all:[{"all:aggregate:text":{contains:n}},{all:[{any:[{"asset:type:type":{equals:"graphicscomposition"}}]}]}],orderBy:[{"asset:created:dateTime":"desc"}]}));var n;return 200!=t.status?{}:t.data.hits.reduce((e,t)=>{const n=t.doc["asset:id"],r=t.doc["name:text"],o=t.doc["keywords:tags"],i=t.doc.version["clip:id"],a=new Date(t.doc["modified:dateTime"]).toISOString();let s="";return o&&o.length>0&&(s=this.extractGuidFromTags(o)),n&&r&&i&&(e[n]={id:n,clipId:i,name:r,categoryId:s,dateModified:a}),e},{})};getGraphicsCompositionDetails=async e=>{const t=await this.platform.getClient().get(`api/v1/db/project/projects/${e}/graphics-composition.json`);return 200!=t.status?{}:t};extractGuidFromTags=e=>{const t=/category:(\w{8}-(\w{4}-){3}\w{12})/;for(const n of e){const e=n.match(t);if(e&&e.length>1)return e[1]}return""}}const Yr=ce.GVDebug.extend("platform").extend("network");class Xr extends Qr{static get(...e){return this.instance||(Yr("creating new instance"),this.instance=new Xr(...e)),this.instance}constructor(e){super("/audit","/api/v1/audit",e)}find=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/find",data:e,method:"post",headers:{"x-correlation-id":n}})).data};query=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:"/query",data:e,method:"post",headers:{"x-correlation-id":r},params:t?{entriesSearch:t}:void 0})).data}}class Zr{query}const Jr=ce.GVDebug.extend("platform").extend("billing");class eo extends Qr{static get(...e){return this.instance||(Jr("creating new instance"),this.instance=new eo(...e)),this.instance}constructor(e){super("/management/billing","/api/v1",e)}getSubscriptionGroups=async()=>(await this.get("/subscriptions/groups")).data}var to,no,ro,oo,io,ao,so=r(1263),lo=r.n(so);!function(e){e[e.AWS=0]="AWS",e[e.AZURE=1]="AZURE",e[e.GOOGLECLOUD=2]="GOOGLECLOUD"}(to||(to={})),function(e){e.NTSC="720x480",e.PAL="720x576",e.HD="1280x720",e.FHD="1920x1080",e.UHD="3840x2160"}(no||(no={})),function(e){e.F2397="24000x1001",e.F24="24x1",e.F25="25x1",e.F2997="30000x1001",e.F50="50x1",e.F5994="60000x1001",e.F60="60x1"}(ro||(ro={})),function(e){e.Interlaced="interlaced",e.Progressive="progressive"}(oo||(oo={})),function(e){e.Rec601="601",e.Rec709="709",e.Rec2020="2020"}(io||(io={})),function(e){e.SDR="sdr",e.PQ="pq",e.HLG="hlg"}(ao||(ao={}));const co=ce.GVDebug.extend("platform").extend("configuration");class uo extends Qr{static get(...e){return this.instance||(co("creating new instance"),this.instance=new uo(...e)),this.instance}constructor(e){super("/configuration","/api/v1",e)}async getSystemConfiguration(e){const t={language:"en",stunServers:[{host:"stun.l.google.com",port:19302},{host:"stun1.l.google.com",port:19302},{host:"stun2.l.google.com",port:19302},{host:"stun3.l.google.com",port:19302},{host:"stun4.l.google.com",port:19302}],turnServers:[],systemName:"",globalOffset:0,ndiDiscoveryServiceIP:"",videoStandard:{resolution:no.FHD,colorSpace:io.Rec709,scanMode:oo.Progressive,frameRate:ro.F5994,transferCharacteristic:ao.SDR},latency:0,kantarLicenseServer:{host:"licenseofe.kantarmedia.com",port:443}};let n=null;try{n=await this.getConfiguration("gv/system/configuration",!0)}catch(r){if(le.isAxiosError(r)&&404===r.response.status&&r.response?.headers["x-service-response"]&&e)try{await this.addConfiguration("gv/system/configuration",t),n=t}catch(e){throw co("Add system configuration failed",e),e}}return n}getAllConfigurations(){return this.get("/configurations")}getConfigurationTree=async(e,t=!1)=>{try{const n=await this.request({method:"get",url:`/configurations/startsWith/${e}`});return co(`get tree ${e} Success`,n.data.length),ke()(n.data,(n,r)=>{let o=r.configuration.value;if(!1!==t)try{o=JSON.parse(r.configuration.value)}catch{co("Unable to parse result as JSON",r.configuration.key,r.configuration.value)}return lo()(n,r.configuration.key.replace(e+"/","").split("/"),o),n},{})}catch(t){throw co(`get tree ${e} Failed`,t),t}};getConfigurations=async e=>{try{const t=await this.request({method:"get",url:`/configurations/startsWith/${e}`});return co(`get prefix ${e} Success`,t.data.length),t.data}catch(t){throw co(`get prefix ${e} Failed`,t),t}};getConfiguration=async(e,t)=>{try{const n=await this.get(`/configuration/${e}`);co(`get single ${e} Success`,JSON.stringify(n.data));let r=n.data.value;if(!1!==t)try{r=JSON.parse(n.data.value)}catch{co("Unable to parse result as JSON")}return r}catch(t){throw co(`get single ${e} Failed`,t),t}};addConfiguration=async(e,t,n=[])=>{try{const r=await this.request({data:{roles:n,key:e,value:"string"!=typeof t?JSON.stringify(t):t},headers:{"x-beta-largeobject":"true"},method:"post",url:"/configuration"});return co(`add single ${e} Success`,JSON.stringify(r.data)),r.data}catch(t){throw co(`add single ${e} Failed`,t),t}};updateConfiguration=async(e,t,n)=>{try{const r=await this.request({data:JSON.stringify("string"!=typeof t?JSON.stringify(t):t),headers:{Accept:"application/json","Content-Type":"application/json","x-beta-largeobject":"true","if-match":n||'"*"'},method:"put",url:`/configuration/${e}`});return co(`update ${e} Success`,JSON.stringify(r.data)),!0}catch(t){throw co(`update ${e} Failed`,t),t}};deleteConfiguration=async(e,t)=>{try{const n=await this.request({headers:{"if-match":t||'"*"'},method:"delete",url:`/configuration/${e}`});return co(`delete ${e} Success`,JSON.stringify(n.data)),!0}catch(t){throw co(`delete ${e} Failed`,t),t}};addConfigurations=async e=>{try{const t=await this.request({headers:{"x-beta-largeobject":"true"},data:e,method:"post",url:"/configurations"});return co("add multiple Success",JSON.stringify(t.data)),t.data}catch(e){throw co("add multiple Failed",e),e}};updateConfigurations=async e=>{try{const t=await this.request({headers:{"x-beta-largeobject":"true"},data:e,method:"put",url:"/configurations"});return co("update multiple Success",JSON.stringify(t.data)),!0}catch(e){throw co("update multiple Failed",e),e}};deleteConfigurations=async e=>{try{const t=await this.request({data:e,method:"delete",url:"/configurations"});return co("delete multiple Success",JSON.stringify(t.data)),!0}catch(e){throw co("delete multiple Failed",e),e}}}const po=ce.GVDebug.extend("platform").extend("discovery").extend("service");class ho extends Qr{static get(e,t,...n){this.instances||(this.instances={}),this.instances[e]||(po("creating new instance",e),this.instances[e]=new ho(e,t,...n));const r=this.instances[e];return r.setSecret(t),r}serviceSecret;constructor(e,t,n){super(`/discovery/api/v1/service/${e}`,`/${t}`,n),this.serviceSecret=t}updateHealth=async(e,t)=>{const n=await this.request({data:{health:e,healthText:t},method:"put",url:"/health"},!1);return n.status>=200&&n.status<300};delete=async()=>{const e=await this.request({method:"delete",url:""});return e.status>=200&&e.status<300};setSecret(e){this.serviceSecret=e,this.apiUrl=`/${this.serviceSecret}`}}const fo=ce.GVDebug.extend("platform").extend("discovery");class go extends Qr{static get(...e){return this.instance||(fo("creating new instance"),this.instance=new go(...e)),this.instance}constructor(e){super("/discovery","/api/v1",e)}getServices=async e=>{try{return(await this.request({params:e,method:"get",url:"/services"})).data}catch(t){throw fo("get Failed",e,t),t}};addService=async e=>{e.serviceId||(e.serviceId=Ve()),"object"==typeof e.serviceTags&&(e.serviceTags=zt()(e.serviceTags,(e,t)=>`${t}=${e}`));try{const t=await this.request({data:e,method:"post",url:"/service"});return fo("add Success",t.data),ho.get(t.data.serviceId,t.data.serviceSecret,this.platform)}catch(e){throw fo("add Failed",e.message),e}};getCloudConnectivity=async()=>{try{return(await this.request({method:"get",url:"/cloud/connectivity"})).data}catch(e){throw fo("GetConnectivity Failed",e),e}};getSelf=async()=>{try{return(await this.request({method:"get",url:"/self"})).data}catch(e){throw fo("GetSelf Failed",e),e}}}const mo=ce.GVDebug.extend("platform").extend("configuration");class vo extends Qr{static get(...e){return this.instance||(mo("creating new instance"),this.instance=new vo(...e)),this.instance}constructor(e){super("/globalconfiguration","/api/v1",e)}getAllGlobalConfigurations(){return this.get("/configurations")}getGlobalConfigurationTree=async(e,t=!1)=>{try{const n=await this.request({method:"get",url:`/configurations/startsWith/${e}`});return mo(`get global tree ${e} Success`,n.data.length),ke()(n.data,(n,r)=>{let o=r.configuration.value;if(!1!==t)try{o=JSON.parse(r.configuration.value)}catch{mo("Unable to parse result as JSON",r.configuration.key,r.configuration.value)}return lo()(n,r.configuration.key.replace(e+"/","").split("/"),o),n},{})}catch(t){throw mo(`get global tree ${e} Failed`,t),t}};getGlobalConfigurations=async e=>{try{const t=await this.request({method:"get",url:`/configurations/startsWith/${e}`});return mo(`get global prefix ${e} Success`,t.data.length),t.data}catch(t){throw mo(`get global prefix ${e} Failed`,t),t}};getGlobalConfiguration=async(e,t)=>{try{const n=await this.request({method:"get",url:`/configuration/${e}`},!1);mo(`get global single ${e} Success`,JSON.stringify(n.data));let r=n.data.value;if(!0===t)try{r=JSON.parse(n.data.value)}catch{mo("Unable to parse result as JSON")}return r}catch(t){throw mo(`get global single ${e} Failed`,t),t}};addGlobalConfiguration=async(e,t)=>{try{const n=await this.request({data:{key:e,value:"string"!=typeof t?JSON.stringify(t):t},method:"post",url:"/configuration"});return mo(`add global single ${e} Success`,JSON.stringify(n.data)),n.data}catch(t){throw mo(`add global single ${e} Failed`,t),t}};updateGlobalConfiguration=async(e,t,n)=>{try{const r=await this.request({data:JSON.stringify("string"!=typeof t?JSON.stringify(t):t),headers:{Accept:"application/json","Content-Type":"application/json","if-match":n||'"*"'},method:"put",url:`/configuration/${e}`});return mo(`update global ${e} Success`,JSON.stringify(r.data)),!0}catch(t){throw mo(`update global ${e} Failed`,t),t}};deleteGlobalConfiguration=async(e,t)=>{try{const n=await this.request({headers:{"if-match":t||'"*"'},method:"delete",url:`/configuration/${e}`});return mo(`delete global ${e} Success`,JSON.stringify(n.data)),!0}catch(t){throw mo(`delete global ${e} Failed`,t),t}};addGlobalConfigurations=async e=>{try{const t=await this.request({data:e,method:"post",url:"/configurations"});return mo("add global multiple Success",JSON.stringify(t.data)),t.data}catch(e){throw mo("add global multiple Failed",e),e}};updateGlobalConfigurations=async e=>{try{const t=await this.request({data:e,method:"put",url:"/configurations"});return mo("update global multiple Success",JSON.stringify(t.data)),!0}catch(e){throw mo("update global multiple Failed",e),e}};deleteGlobalConfigurations=async e=>{try{const t=await this.request({data:e,method:"delete",url:"/configurations"});return mo("delete global multiple Success",JSON.stringify(t.data)),!0}catch(e){throw mo("delete global multiple Failed",e),e}}}const yo=ce.GVDebug.extend("platform").extend("computeControl");var Ao;!function(e){e[e.Workload=0]="Workload",e[e.Group=1]="Group"}(Ao||(Ao={}));class wo extends Qr{getStateWorkloadCache;static get(...e){return this.instance||(yo("creating new instance"),this.instance=new wo(...e)),this.instance}constructor(e){super("/ampp/control","/api/v1",e),this.getStateWorkloadCache=new Set}async getMacros(){return this.get("/macro")}async getMacro(e){return this.get(`/macro/${e}`)}async executeMacro(e){return this.request({method:"POST",data:e,url:"/macro/execute"})}async cancelMacro(e){return this.request({method:"POST",data:e,url:"/macro/cancel"})}async executeCommand(e){return this.request({method:"POST",data:e,url:"/control/commit"})}async getApplications(){return(await this.get("/control/application/references")).data}async createMacro(e){return await this.request({method:"post",url:"/macro",data:e})}async updateMacro(e){return await this.request({method:"put",url:"/macro",data:e})}async deleteMacro(e){return await this.request({method:"delete",url:`/macro/${e}`})}async updateMacrosCategories(e){return await this.request({method:"put",url:`/macro/categories/${e.categoryId}`,data:e.uuids})}async getWorkloadIds(e){return(await this.get(`/control/application/${e}/workloads`)).data}async getWorkloadDetailsForApplication(e){return(await this.get(`/control/application/${e}/workloadnames`)).data}async getAllAmppControlWorkloads(){return(await this.get("/control/workloads")).data}async getControlGroups(e){return(await this.get(`/group/application/${e}/groups`)).data}async createControlGroup(e){return await this.request({method:"post",url:"/group",data:e})}async updateControlGroup(e){return await this.request({method:"put",url:"/group",data:e})}async deleteControlGroup(e){return await this.request({method:"delete",url:`/group/${e.applicationType}/${e.id}`})}async getDefunctWorkloadIds(){return(await this.get("/control/workload/references/defunct")).data}async getDeferredConfig(){return(await this.get("/control/offlineconfig")).data}async deleteDefunctWorkloads(){return await this.request({method:"delete",url:"/control/workload/references/defunct"})}async commitSchema(e){return await this.request({method:"post",url:"/control/commit",data:e})}async deferCommitSchema(e){return await this.request({method:"post",url:"/control/defer",data:e})}async deleteApplication(e){return await this.request({method:"delete",url:`/control/application/reference/${e}`})}async deleteSchema(e,t,n){return await this.request({data:{application:e,command:t,version:n},method:"delete",url:"/control/schema"})}async getSchemaVersions(e){return await this.request({method:"get",url:`/control/application/${e}/schemaversions`})}async getPanels(){return(await this.get("/panel/panels")).data}async getTemplates(){return(await this.get("/panel/templates")).data}async createPanel(e){return await this.request({method:"post",url:"/panel",data:e})}async updatePanel(e){return await this.request({method:"put",url:"/panel",data:e})}async deletePanel(e){return await this.request({method:"delete",url:`/panel/${e}`})}async getPanel(e){return this.get(`/panel/${e}`)}async getState(e,t){this.getStateWorkloadCache.has(e)||(this.getStateWorkloadCache.add(e),this.commitSchema({application:"any",command:"getstate",formData:"{}",workload:e,reconKey:t}),setTimeout(()=>this.getStateWorkloadCache.delete(e),1e3))}}const bo=ce.GVDebug.extend("platform").extend("computeControlV1");class _o extends Qr{static get(...e){return this.instance||(bo("creating new instance"),this.instance=new _o(...e)),this.instance}constructor(e){super("/computecontrol","/api/v1",e)}stopNode=(e,t,n,r)=>this.request({headers:{"x-correlation-id":r},method:"PUT",url:`/nodes/${e}/stop`,params:{provider:t,region:n}});startNode=(e,t,n,r)=>this.request({headers:{"x-correlation-id":r},method:"PUT",url:`/nodes/${e}/start`,params:{provider:t,region:n}})}const Co=ce.GVDebug.extend("platform").extend("computeControlV2");class Eo extends Qr{static get(...e){return this.instance||(Co("creating new instance"),this.instance=new Eo(...e)),this.instance}constructor(e){super("/computecontrol","/api/v2",e)}stopNode=(e,t)=>this.request({headers:{"x-correlation-id":t},method:"POST",url:`/node/${e}/stop`});startNode=(e,t)=>this.request({headers:{"x-correlation-id":t},method:"POST",url:`/node/${e}/start`})}const So=ce.GVDebug.extend("platform").extend("computeControlAwsV3");class Oo extends Qr{static get(...e){return this.instance||(So("creating new instance"),this.instance=new Oo(...e)),this.instance}constructor(e){super("/computecontrol","/api/v3/aws",e)}stopAWSNodeV3=async(e,t)=>{try{const n=await this.request({headers:{"x-correlation-id":t},method:"POST",url:"/instance/stop",data:e},!1);return So("stopAwsInstances -> Success",JSON.stringify(n.data)),!0}catch(e){throw So("stopAwsInstances -> Failed",e),e}};startAWSNodeV3=async(e,t)=>{try{const n=await this.request({headers:{"x-correlation-id":t},method:"POST",url:"/instance/start",data:e},!1);return So("startAwsInstances -> Success",JSON.stringify(n.data)),!0}catch(e){throw So("startAwsInstances -> Failed",e),e}};getAwsInstanceDetails=async(e,t)=>{try{const n=await this.request({headers:{"x-correlation-id":t},method:"GET",url:"/instance/details",params:new URLSearchParams({...e})},!1);return So("getAwsInstanceDetails -> Success",JSON.stringify(n.data)),n.data}catch(e){throw So("getAwsInstanceDetails -> Failed",e),e}};getRegions=async e=>{try{const t=await this.request({headers:{"x-correlation-id":e},method:"get",url:"/regions"},!1,!0);if(So("getRegions -> Success",JSON.stringify(t.data)),Array.isArray(t.data.regions))return t.data.regions;throw new Error("Failed to retrieve regions")}catch(e){throw So("getRegions -> Failed",e),e}}}const xo=ce.GVDebug.extend("platform").extend("computeControlGcpV3");class Do extends Qr{static get(...e){return this.instance||(xo("creating new instance"),this.instance=new Do(...e)),this.instance}constructor(e){super("/computecontrol","/api/v3/gcp",e)}startGcpInstance=async(e,t)=>{try{const n=await this.request({headers:{"x-correlation-id":t},method:"post",url:"/instance/start",data:e},!1);return xo("startGcpInstances -> Success",JSON.stringify(n.data)),!0}catch(e){throw xo("startGcpInstances -> Failed",e),e}};stopGcpInstance=async(e,t)=>{try{const n=await this.request({headers:{"x-correlation-id":t},method:"post",url:"/instance/stop",data:e},!1);return xo("stopGcpInstances -> Success",JSON.stringify(n.data)),!0}catch(e){throw xo("stopGcpInstances -> Failed",e),e}};getGcpInstanceDetails=async(e,t)=>{try{const n=await this.request({headers:{"x-correlation-id":t},method:"GET",url:"/instance/details",params:new URLSearchParams({...e})},!1);return xo("getGcpInstanceDetails -> Success",JSON.stringify(n.data)),n.data}catch(e){throw xo("getGcpInstanceDetails -> Failed",e),e}};getZones=async(e,t)=>{try{const n={credentialsAccount:e},r=await this.request({headers:{"x-correlation-id":t},method:"get",url:"/zones/list",params:n},!1,!0);if(xo("getZones -> Success",JSON.stringify(r.data)),Array.isArray(r.data.zones))return r.data.zones;throw new Error("Failed to retrieve zones")}catch(e){throw xo("getZones -> Failed",e),e}}}const Po=ce.GVDebug.extend("platform").extend("computecontrolcredentialsservicev3");class Mo extends Qr{static get(...e){return this.instance||(Po("creating new instance"),this.instance=new Mo(...e)),this.instance}constructor(e){super("/computecontrol","/api/v3",e)}getCloudCredentials=async(e,t)=>{try{const n=await this.request({headers:{"x-correlation-id":t},method:"get",url:"/credentials",params:{cloudProvider:e}},!1);if(Po("getCloudCredentials -> Success",JSON.stringify(n.data)),Array.isArray(n.data.credentials))return n.data.credentials;throw new Error("Failed to list Cloud Credentials")}catch(e){throw Po("getCloudCredentials -> Failed",e),e}};getCloudCredentialsDetails=async(e,t,n)=>{try{const r=await this.request({headers:{"x-correlation-id":n},method:"get",url:"/credentials/details",params:{cloudProvider:e,credentialsName:t}},!1);return Po("getCloudCredentialsDetails -> Success",JSON.stringify(r.data)),r.data}catch(e){throw Po("getCloudCredentialsDetails -> Failed",e),e}}}const To=ce.GVDebug.extend("platform").extend("computeControlNodesV3");class Ro extends Qr{static get(...e){return this.instance||(To("creating new instance"),this.instance=new Ro(...e)),this.instance}constructor(e){super("/computecontrol","/api/v3/nodes",e)}startNode=async(e,t)=>{try{const n=await this.request({headers:{"x-correlation-id":t},method:"post",url:`/${encodeURIComponent(e)}/start`},!1);return To("startNodeInstances -> Success",JSON.stringify(n.data)),!0}catch(e){throw To("startNodeInstances -> Failed",e),e}};stopNode=async(e,t)=>{try{const n=await this.request({headers:{"x-correlation-id":t},method:"post",url:`/${encodeURIComponent(e)}/stop`},!1);return To("stopNodeInstances -> Success",JSON.stringify(n.data)),!0}catch(e){throw To("stopNodeInstances -> Failed",e),e}}}const Io=ce.GVDebug.extend("platform").extend("computeControl");class Fo{static instance;static get(...e){return this.instance||(Io("creating new instance"),this.instance=new Fo(...e)),this.instance}computeControlV1;computeControlV2;awsServiceV3;gcpServiceV3;credentialsServiceV3;nodeServiceV3;constructor(e){this.computeControlV1=new _o(e),this.computeControlV2=new Eo(e),this.awsServiceV3=new Oo(e),this.gcpServiceV3=new Do(e),this.credentialsServiceV3=new Mo(e),this.nodeServiceV3=new Ro(e)}startNode=(e,t,n,r)=>this.computeControlV1.startNode(e,t,n,r);startNodeV2=(e,t)=>this.computeControlV2.startNode(e,t);startNodeV3=(e,t)=>this.nodeServiceV3.startNode(e,t);stopNode=(e,t,n,r)=>this.computeControlV1.stopNode(e,t,n,r);stopNodeV2=(e,t)=>this.computeControlV2.stopNode(e,t);stopNodeV3=(e,t)=>this.nodeServiceV3.stopNode(e,t);startAwsNodeV3=(e,t)=>this.awsServiceV3.startAWSNodeV3(e,t);startGcpNodeV3=(e,t)=>this.gcpServiceV3.startGcpInstance(e,t);stopAwsNodeV3=(e,t)=>this.awsServiceV3.stopAWSNodeV3(e,t);stopGcpNodeV3=(e,t)=>this.gcpServiceV3.stopGcpInstance(e,t);getAwsInstanceDetails=async(e,t)=>await this.awsServiceV3.getAwsInstanceDetails(e,t);getGcpInstanceDetails=async(e,t)=>await this.gcpServiceV3.getGcpInstanceDetails(e,t);getCloudCredentials=async(e,t)=>await this.credentialsServiceV3.getCloudCredentials(e.toString(),t);getCloudCredentialsDetails=async(e,t,n)=>await this.credentialsServiceV3.getCloudCredentialsDetails(e.toString(),t,n);getAwsRegions=async e=>await this.awsServiceV3.getRegions(e);getGoogleCloudZones=async(e,t)=>await this.gcpServiceV3.getZones(e,t)}class ko extends Error{}ko.prototype.name="InvalidTokenError";class Lo extends Error{}class Bo extends Lo{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class No extends Lo{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class jo extends Lo{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Uo extends Lo{}class Vo extends Lo{constructor(e){super(`Invalid unit ${e}`)}}class Ho extends Lo{}class Go extends Lo{constructor(){super("Zone is an abstract class")}}const Wo="numeric",zo="short",$o="long",Ko={year:Wo,month:Wo,day:Wo},Qo={year:Wo,month:zo,day:Wo},qo={year:Wo,month:zo,day:Wo,weekday:zo},Yo={year:Wo,month:$o,day:Wo},Xo={year:Wo,month:$o,day:Wo,weekday:$o},Zo={hour:Wo,minute:Wo},Jo={hour:Wo,minute:Wo,second:Wo},ei={hour:Wo,minute:Wo,second:Wo,timeZoneName:zo},ti={hour:Wo,minute:Wo,second:Wo,timeZoneName:$o},ni={hour:Wo,minute:Wo,hourCycle:"h23"},ri={hour:Wo,minute:Wo,second:Wo,hourCycle:"h23"},oi={hour:Wo,minute:Wo,second:Wo,hourCycle:"h23",timeZoneName:zo},ii={hour:Wo,minute:Wo,second:Wo,hourCycle:"h23",timeZoneName:$o},ai={year:Wo,month:Wo,day:Wo,hour:Wo,minute:Wo},si={year:Wo,month:Wo,day:Wo,hour:Wo,minute:Wo,second:Wo},li={year:Wo,month:zo,day:Wo,hour:Wo,minute:Wo},ci={year:Wo,month:zo,day:Wo,hour:Wo,minute:Wo,second:Wo},ui={year:Wo,month:zo,day:Wo,weekday:zo,hour:Wo,minute:Wo},di={year:Wo,month:$o,day:Wo,hour:Wo,minute:Wo,timeZoneName:zo},pi={year:Wo,month:$o,day:Wo,hour:Wo,minute:Wo,second:Wo,timeZoneName:zo},hi={year:Wo,month:$o,day:Wo,weekday:$o,hour:Wo,minute:Wo,timeZoneName:$o},fi={year:Wo,month:$o,day:Wo,weekday:$o,hour:Wo,minute:Wo,second:Wo,timeZoneName:$o};class gi{get type(){throw new Go}get name(){throw new Go}get ianaName(){return this.name}get isUniversal(){throw new Go}offsetName(e,t){throw new Go}formatOffset(e,t){throw new Go}offset(e){throw new Go}equals(e){throw new Go}get isValid(){throw new Go}}let mi=null;class vi extends gi{static get instance(){return null===mi&&(mi=new vi),mi}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ma(e,t,n)}formatOffset(e,t){return Fa(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let yi={};const Ai={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let wi={};class bi extends gi{static create(e){return wi[e]||(wi[e]=new bi(e)),wi[e]}static resetCache(){wi={},yi={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=bi.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ma(e,t,n,this.name)}formatOffset(e,t){return Fa(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(r=this.name,yi[r]||(yi[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),yi[r]);var r;let[o,i,a,s,l,c,u]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const{type:t,value:o}=n[e],i=Ai[t];"era"===t?r[i]=o:ca(i)||(r[i]=parseInt(o,10))}return r}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,i,a,s,l,c,u]=r;return[a,o,i,s,l,c,u]}(n,t);"BC"===s&&(o=1-Math.abs(o));let d=+t;const p=d%1e3;return d-=p>=0?p:1e3+p,(Oa({year:o,month:i,day:a,hour:24===l?0:l,minute:c,second:u,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let _i={},Ci={};function Ei(e,t={}){const n=JSON.stringify([e,t]);let r=Ci[n];return r||(r=new Intl.DateTimeFormat(e,t),Ci[n]=r),r}let Si={},Oi={},xi=null,Di={};function Pi(e,t,n,r){const o=e.listingMode();return"error"===o?null:"en"===o?n(t):r(t)}class Mi{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:o,...i}=n;if(!t||Object.keys(i).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=Si[n];return r||(r=new Intl.NumberFormat(e,t),Si[n]=r),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ya(this.floor?Math.floor(e):_a(e,3),this.padTo)}}class Ti{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&bi.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||r,this.dtf=Ei(t,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ri{constructor(e,t,n){this.opts={style:"long",...n},!t&&pa()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,o=JSON.stringify([e,r]);let i=Oi[o];return i||(i=new Intl.RelativeTimeFormat(e,t),Oi[o]=i),i}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&i){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${o[e][0]}`;case-1:return n?"yesterday":`last ${o[e][0]}`;case 0:return n?"today":`this ${o[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,c=o[e],u=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return a?`${s} ${u} ago`:`in ${s} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const Ii={firstDay:1,minimalDays:4,weekend:[6,7]};class Fi{static fromOpts(e){return Fi.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,o=!1){const i=e||Ki.defaultLocale,a=i||(o?"en-US":xi||(xi=(new Intl.DateTimeFormat).resolvedOptions().locale,xi)),s=t||Ki.defaultNumberingSystem,l=n||Ki.defaultOutputCalendar,c=ma(r)||Ki.defaultWeekSettings;return new Fi(a,s,l,c,i)}static resetCache(){xi=null,Ci={},Si={},Oi={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return Fi.create(e,t,n,r)}constructor(e,t,n,r,o){const[i,a,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=Ei(e).resolvedOptions(),r=e}catch(o){const i=e.substring(0,n);t=Ei(i).resolvedOptions(),r=i}const{numberingSystem:o,calendar:i}=t;return[r,o,i]}}(e);this.locale=i,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Fi.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,ma(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Pi(this,e,ja,()=>{const n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=Ul.utc(2009,n,1);t.push(e(r))}return t}(e=>this.extract(e,n,"month"))),this.monthsCache[r][e]})}weekdays(e,t=!1){return Pi(this,e,Ga,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=Ul.utc(2016,11,13+n);t.push(e(r))}return t}(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return Pi(this,void 0,()=>Wa,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ul.utc(2016,11,13,9),Ul.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Pi(this,e,Qa,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ul.utc(-40,1,1),Ul.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new Mi(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Ti(e,this.intl,t)}relFormatter(e={}){return new Ri(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=_i[n];return r||(r=new Intl.ListFormat(e,t),_i[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ha()?function(e){let t=Di[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Di[e]=t}return t}(this.locale):Ii}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ki=null;class Li extends gi{static get utcInstance(){return null===ki&&(ki=new Li(0)),ki}static instance(e){return 0===e?Li.utcInstance:new Li(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new Li(Ta(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Fa(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Fa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Fa(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class Bi extends gi{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ni(e,t){if(ca(e)||null===e)return t;if(e instanceof gi)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?vi.instance:"utc"===n||"gmt"===n?Li.utcInstance:Li.parseSpecifier(n)||bi.create(e)}return ua(e)?Li.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new Bi(e)}let ji,Ui=()=>Date.now(),Vi="system",Hi=null,Gi=null,Wi=null,zi=60,$i=null;class Ki{static get now(){return Ui}static set now(e){Ui=e}static set defaultZone(e){Vi=e}static get defaultZone(){return Ni(Vi,vi.instance)}static get defaultLocale(){return Hi}static set defaultLocale(e){Hi=e}static get defaultNumberingSystem(){return Gi}static set defaultNumberingSystem(e){Gi=e}static get defaultOutputCalendar(){return Wi}static set defaultOutputCalendar(e){Wi=e}static get defaultWeekSettings(){return $i}static set defaultWeekSettings(e){$i=ma(e)}static get twoDigitCutoffYear(){return zi}static set twoDigitCutoffYear(e){zi=e%100}static get throwOnInvalid(){return ji}static set throwOnInvalid(e){ji=e}static resetCaches(){Fi.resetCache(),bi.resetCache()}}class Qi{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const qi=[0,31,59,90,120,151,181,212,243,273,304,334],Yi=[0,31,60,91,121,152,182,213,244,274,305,335];function Xi(e,t){return new Qi("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Zi(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return 0===o?7:o}function Ji(e,t,n){return n+(Ca(e)?Yi:qi)[t-1]}function ea(e,t){const n=Ca(e)?Yi:qi,r=n.findIndex(e=>e<t);return{month:r+1,day:t-n[r]}}function ta(e,t){return(e-t+7)%7+1}function na(e,t=4,n=1){const{year:r,month:o,day:i}=e,a=Ji(r,o,i),s=ta(Zi(r,o,i),n);let l,c=Math.floor((a-s+14-t)/7);return c<1?(l=r-1,c=Da(l,t,n)):c>Da(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:s,...ka(e)}}function ra(e,t=4,n=1){const{weekYear:r,weekNumber:o,weekday:i}=e,a=ta(Zi(r,1,t),n),s=Ea(r);let l,c=7*o+i-a-7+t;c<1?(l=r-1,c+=Ea(l)):c>s?(l=r+1,c-=Ea(r)):l=r;const{month:u,day:d}=ea(l,c);return{year:l,month:u,day:d,...ka(e)}}function oa(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:Ji(t,n,r),...ka(e)}}function ia(e){const{year:t,ordinal:n}=e,{month:r,day:o}=ea(t,n);return{year:t,month:r,day:o,...ka(e)}}function aa(e,t){if(!ca(e.localWeekday)||!ca(e.localWeekNumber)||!ca(e.localWeekYear)){if(!ca(e.weekday)||!ca(e.weekNumber)||!ca(e.weekYear))throw new Uo("Cannot mix locale-based week fields with ISO-based week fields");return ca(e.localWeekday)||(e.weekday=e.localWeekday),ca(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),ca(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function sa(e){const t=da(e.year),n=va(e.month,1,12),r=va(e.day,1,Sa(e.year,e.month));return t?n?!r&&Xi("day",e.day):Xi("month",e.month):Xi("year",e.year)}function la(e){const{hour:t,minute:n,second:r,millisecond:o}=e,i=va(t,0,23)||24===t&&0===n&&0===r&&0===o,a=va(n,0,59),s=va(r,0,59),l=va(o,0,999);return i?a?s?!l&&Xi("millisecond",o):Xi("second",r):Xi("minute",n):Xi("hour",t)}function ca(e){return void 0===e}function ua(e){return"number"==typeof e}function da(e){return"number"==typeof e&&e%1==0}function pa(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function ha(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function fa(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{const o=[t(r),r];return e&&n(e[0],o[0])===e[0]?e:o},null)[1]}function ga(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ma(e){if(null==e)return null;if("object"!=typeof e)throw new Ho("Week settings must be an object");if(!va(e.firstDay,1,7)||!va(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!va(e,1,7)))throw new Ho("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function va(e,t,n){return da(e)&&e>=t&&e<=n}function ya(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function Aa(e){return ca(e)||null===e||""===e?void 0:parseInt(e,10)}function wa(e){return ca(e)||null===e||""===e?void 0:parseFloat(e)}function ba(e){if(!ca(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function _a(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function Ca(e){return e%4==0&&(e%100!=0||e%400==0)}function Ea(e){return Ca(e)?366:365}function Sa(e,t){const n=(r=t-1)-12*Math.floor(r/12)+1;var r;return 2===n?Ca(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Oa(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function xa(e,t,n){return-ta(Zi(e,1,t),n)+t-1}function Da(e,t=4,n=1){const r=xa(e,t,n),o=xa(e+1,t,n);return(Ea(e)-r+o)/7}function Pa(e){return e>99?e:e>Ki.twoDigitCutoffYear?1900+e:2e3+e}function Ma(e,t,n,r=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:t,...i},s=new Intl.DateTimeFormat(n,a).formatToParts(o).find(e=>"timezonename"===e.type.toLowerCase());return s?s.value:null}function Ta(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Ra(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new Ho(`Invalid unit value ${e}`);return t}function Ia(e,t){const n={};for(const r in e)if(ga(e,r)){const o=e[r];if(null==o)continue;n[t(r)]=Ra(o)}return n}function Fa(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${ya(n,2)}:${ya(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${ya(n,2)}${ya(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function ka(e){return function(e){return["hour","minute","second","millisecond"].reduce((t,n)=>(t[n]=e[n],t),{})}(e)}const La=["January","February","March","April","May","June","July","August","September","October","November","December"],Ba=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Na=["J","F","M","A","M","J","J","A","S","O","N","D"];function ja(e){switch(e){case"narrow":return[...Na];case"short":return[...Ba];case"long":return[...La];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ua=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Va=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ha=["M","T","W","T","F","S","S"];function Ga(e){switch(e){case"narrow":return[...Ha];case"short":return[...Va];case"long":return[...Ua];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Wa=["AM","PM"],za=["Before Christ","Anno Domini"],$a=["BC","AD"],Ka=["B","A"];function Qa(e){switch(e){case"narrow":return[...Ka];case"short":return[...$a];case"long":return[...za];default:return null}}function qa(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Ya={D:Ko,DD:Qo,DDD:Yo,DDDD:Xo,t:Zo,tt:Jo,ttt:ei,tttt:ti,T:ni,TT:ri,TTT:oi,TTTT:ii,f:ai,ff:li,fff:di,ffff:hi,F:si,FF:ci,FFF:pi,FFFF:fi};class Xa{static create(e,t={}){return new Xa(e,t)}static parseFormat(e){let t=null,n="",r=!1;const o=[];for(let i=0;i<e.length;i++){const a=e.charAt(i);"'"===a?(n.length>0&&o.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&o.push({literal:r||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(e){return Ya[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return ya(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(t,n)=>this.loc.extract(e,t,n),i=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=(t,r)=>n?function(e,t){return ja(t)[e.month-1]}(e,t):o(r?{month:t}:{month:t,day:"numeric"},"month"),s=(t,r)=>n?function(e,t){return Ga(t)[e.weekday-1]}(e,t):o(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=Xa.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?function(e,t){return Qa(t)[e.year<0?0:1]}(e,t):o({era:t},"era");return qa(Xa.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return n?function(e){return Wa[e.hour<12?0:1]}(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?o({day:"numeric"},"day"):this.num(e.day);case"dd":return r?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return s("short",!0);case"cccc":return s("long",!0);case"ccccc":return s("narrow",!0);case"EEE":return s("short",!1);case"EEEE":return s("long",!1);case"EEEEE":return s("narrow",!1);case"L":return r?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return r?o({month:"numeric"},"month"):this.num(e.month);case"MM":return r?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return r?o({year:"numeric"},"year"):this.num(e.year);case"yy":return r?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}})}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=Xa.parseFormat(t),o=r.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]);return qa(r,(e=>t=>{const r=n(t);return r?this.num(e.get(r),t.length):t})(e.shiftTo(...o.map(n).filter(e=>e))))}}const Za=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ja(...e){const t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function es(...e){return t=>e.reduce(([e,n,r],o)=>{const[i,a,s]=o(t,r);return[{...e,...i},a||n,s]},[{},null,1]).slice(0,2)}function ts(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function ns(...e){return(t,n)=>{const r={};let o;for(o=0;o<e.length;o++)r[e[o]]=Aa(t[n+o]);return[r,null,n+o]}}const rs=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,os=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,is=RegExp(`${os.source}(?:${rs.source}?(?:\\[(${Za.source})\\])?)?`),as=RegExp(`(?:T${is.source})?`),ss=ns("weekYear","weekNumber","weekDay"),ls=ns("year","ordinal"),cs=RegExp(`${os.source} ?(?:${rs.source}|(${Za.source}))?`),us=RegExp(`(?: ${cs.source})?`);function ds(e,t,n){const r=e[t];return ca(r)?n:Aa(r)}function ps(e,t){return[{hours:ds(e,t,0),minutes:ds(e,t+1,0),seconds:ds(e,t+2,0),milliseconds:ba(e[t+3])},null,t+4]}function hs(e,t){const n=!e[t]&&!e[t+1],r=Ta(e[t+1],e[t+2]);return[{},n?null:Li.instance(r),t+3]}function fs(e,t){return[{},e[t]?bi.create(e[t]):null,t+1]}const gs=RegExp(`^T?${os.source}$`),ms=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function vs(e){const[t,n,r,o,i,a,s,l,c]=e,u="-"===t[0],d=l&&"-"===l[0],p=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:p(wa(n)),months:p(wa(r)),weeks:p(wa(o)),days:p(wa(i)),hours:p(wa(a)),minutes:p(wa(s)),seconds:p(wa(l),"-0"===l),milliseconds:p(ba(c),d)}]}const ys={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function As(e,t,n,r,o,i,a){const s={year:2===t.length?Pa(Aa(t)):Aa(t),month:Ba.indexOf(n)+1,day:Aa(r),hour:Aa(o),minute:Aa(i)};return a&&(s.second=Aa(a)),e&&(s.weekday=e.length>3?Ua.indexOf(e)+1:Va.indexOf(e)+1),s}const ws=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function bs(e){const[,t,n,r,o,i,a,s,l,c,u,d]=e,p=As(t,o,r,n,i,a,s);let h;return h=l?ys[l]:c?0:Ta(u,d),[p,new Li(h)]}const _s=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Cs=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Es=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ss(e){const[,t,n,r,o,i,a,s]=e;return[As(t,o,r,n,i,a,s),Li.utcInstance]}function Os(e){const[,t,n,r,o,i,a,s]=e;return[As(t,s,n,r,o,i,a),Li.utcInstance]}const xs=Ja(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,as),Ds=Ja(/(\d{4})-?W(\d\d)(?:-?(\d))?/,as),Ps=Ja(/(\d{4})-?(\d{3})/,as),Ms=Ja(is),Ts=es(function(e,t){return[{year:ds(e,t),month:ds(e,t+1,1),day:ds(e,t+2,1)},null,t+3]},ps,hs,fs),Rs=es(ss,ps,hs,fs),Is=es(ls,ps,hs,fs),Fs=es(ps,hs,fs),ks=es(ps),Ls=Ja(/(\d{4})-(\d\d)-(\d\d)/,us),Bs=Ja(cs),Ns=es(ps,hs,fs),js="Invalid Duration",Us={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Vs={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Us},Hs={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Us},Gs=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ws=Gs.slice(0).reverse();function zs(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Qs(r)}function $s(e,t){let n=t.milliseconds??0;for(const r of Ws.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Ks(e,t){const n=$s(e,t)<0?-1:1;Gs.reduceRight((r,o)=>{if(ca(t[o]))return r;if(r){const i=t[r]*n,a=e[o][r],s=Math.floor(i/a);t[o]+=s*n,t[r]-=s*a*n}return o},null),Gs.reduce((n,r)=>{if(ca(t[r]))return n;if(n){const o=t[n]%1;t[n]-=o,t[r]+=o*e[n][r]}return r},null)}class Qs{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?Hs:Vs;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Fi.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Qs.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new Ho("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Qs({values:Ia(e,Qs.normalizeUnit),loc:Fi.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(ua(e))return Qs.fromMillis(e);if(Qs.isDuration(e))return e;if("object"==typeof e)return Qs.fromObject(e);throw new Ho(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return ts(e,[ms,vs])}(e);return n?Qs.fromObject(n,t):Qs.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return ts(e,[gs,ks])}(e);return n?Qs.fromObject(n,t):Qs.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new Ho("need to specify a reason the Duration is invalid");const n=e instanceof Qi?e:new Qi(e,t);if(Ki.throwOnInvalid)throw new jo(n);return new Qs({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new Vo(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Xa.create(this.loc,n).formatDurationFromString(this,e):js}toHuman(e={}){if(!this.isValid)return js;const t=Gs.map(t=>{const n=this.values[t];return ca(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=_a(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Ul.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?$s(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Qs.fromDurationLike(e),n={};for(const e of Gs)(ga(t.values,e)||ga(this.values,e))&&(n[e]=t.get(e)+this.get(e));return zs(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Qs.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Ra(e(this.values[n],n));return zs(this,{values:t},!0)}get(e){return this[Qs.normalizeUnit(e)]}set(e){return this.isValid?zs(this,{values:{...this.values,...Ia(e,Qs.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return zs(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Ks(this.matrix,e),zs(this,{values:e},!0)}rescale(){return this.isValid?zs(this,{values:function(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map(e=>Qs.normalizeUnit(e));const t={},n={},r=this.toObject();let o;for(const i of Gs)if(e.indexOf(i)>=0){o=i;let e=0;for(const t in n)e+=this.matrix[t][i]*n[t],n[t]=0;ua(r[i])&&(e+=r[i]);const a=Math.trunc(e);t[i]=a,n[i]=(1e3*e-1e3*a)/1e3}else ua(r[i])&&(n[i]=r[i]);for(const e in n)0!==n[e]&&(t[o]+=e===o?n[e]:n[e]/this.matrix[o][e]);return Ks(this.matrix,t),zs(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return zs(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(const n of Gs)if(!t(this.values[n],e.values[n]))return!1;return!0}}const qs="Invalid Interval";class Ys{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new Ho("need to specify a reason the Interval is invalid");const n=e instanceof Qi?e:new Qi(e,t);if(Ki.throwOnInvalid)throw new No(n);return new Ys({invalid:n})}static fromDateTimes(e,t){const n=Vl(e),r=Vl(t),o=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?Ys.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Ys.invalid("missing or invalid end"):Ys.invalid("missing or invalid start")}(n,r);return null==o?new Ys({start:n,end:r}):o}static after(e,t){const n=Qs.fromDurationLike(t),r=Vl(e);return Ys.fromDateTimes(r,r.plus(n))}static before(e,t){const n=Qs.fromDurationLike(t),r=Vl(e);return Ys.fromDateTimes(r.minus(n),r)}static fromISO(e,t){const[n,r]=(e||"").split("/",2);if(n&&r){let e,o,i,a;try{e=Ul.fromISO(n,t),o=e.isValid}catch(r){o=!1}try{i=Ul.fromISO(r,t),a=i.isValid}catch(r){a=!1}if(o&&a)return Ys.fromDateTimes(e,i);if(o){const n=Qs.fromISO(r,t);if(n.isValid)return Ys.after(e,n)}else if(a){const e=Qs.fromISO(n,t);if(e.isValid)return Ys.before(i,e)}}return Ys.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?Ys.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Vl).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),n=[];let{s:r}=this,o=0;for(;r<this.e;){const e=t[o]||this.e,i=+e>+this.e?this.e:e;n.push(Ys.fromDateTimes(r,i)),r=i,o+=1}return n}splitBy(e){const t=Qs.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,o=1;const i=[];for(;r<this.e;){const e=this.start.plus(t.mapUnits(e=>e*o));n=+e>+this.e?this.e:e,i.push(Ys.fromDateTimes(r,n)),r=n,o+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e===+e.s}abutsEnd(e){return!!this.isValid&&+e.e===+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:Ys.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Ys.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],o=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),i=Array.prototype.concat(...o).sort((e,t)=>e.time-t.time);for(const e of i)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!==+e.time&&r.push(Ys.fromDateTimes(t,e.time)),t=null);return Ys.merge(r)}difference(...e){return Ys.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:qs}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ko,t={}){return this.isValid?Xa.create(this.s.loc.clone(t),e).formatInterval(this):qs}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:qs}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:qs}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:qs}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:qs}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Qs.invalid(this.invalidReason)}mapEndpoints(e){return Ys.fromDateTimes(e(this.s),e(this.e))}}class Xs{static hasDST(e=Ki.defaultZone){const t=Ul.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return bi.isValidZone(e)}static normalizeZone(e){return Ni(e,Ki.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Fi.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Fi.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Fi.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||Fi.create(t,n,o)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||Fi.create(t,n,o)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Fi.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Fi.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Fi.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Fi.create(t,null,"gregory").eras(e)}static features(){return{relative:pa(),localeWeek:ha()}}}function Zs(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Qs.fromMillis(r).as("days"))}const Js={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},el={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},tl=Js.hanidec.replace(/[\[|\]]/g,"").split("");function nl({numberingSystem:e},t=""){return new RegExp(`${Js[e||"latn"]}${t}`)}function rl(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(-1!==e[n].search(Js.hanidec))t+=tl.indexOf(e[n]);else for(const e in el){const[n,o]=el[e];r>=n&&r<=o&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const ol=`[ ${String.fromCharCode(160)}]`,il=new RegExp(ol,"g");function al(e){return e.replace(/\./g,"\\.?").replace(il,ol)}function sl(e){return e.replace(/\./g,"").replace(il," ").toLowerCase()}function ll(e,t){return null===e?null:{regex:RegExp(e.map(al).join("|")),deser:([n])=>e.findIndex(e=>sl(n)===sl(e))+t}}function cl(e,t){return{regex:e,deser:([,e,t])=>Ta(e,t),groups:t}}function ul(e){return{regex:e,deser:([e])=>e}}const dl={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let pl=null;function hl(e,t){return Array.prototype.concat(...e.map(e=>function(e,t){if(e.literal)return e;const n=gl(Xa.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t)))}function fl(e,t,n){const r=hl(Xa.parseFormat(n),e),o=r.map(t=>function(e,t){const n=nl(t),r=nl(t,"{2}"),o=nl(t,"{3}"),i=nl(t,"{4}"),a=nl(t,"{6}"),s=nl(t,"{1,2}"),l=nl(t,"{1,3}"),c=nl(t,"{1,6}"),u=nl(t,"{1,9}"),d=nl(t,"{2,4}"),p=nl(t,"{4,6}"),h=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},f=(f=>{if(e.literal)return h(f);switch(f.val){case"G":return ll(t.eras("short"),0);case"GG":return ll(t.eras("long"),0);case"y":return rl(c);case"yy":case"kk":return rl(d,Pa);case"yyyy":case"kkkk":return rl(i);case"yyyyy":return rl(p);case"yyyyyy":return rl(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return rl(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return rl(r);case"MMM":return ll(t.months("short",!0),1);case"MMMM":return ll(t.months("long",!0),1);case"LLL":return ll(t.months("short",!1),1);case"LLLL":return ll(t.months("long",!1),1);case"o":case"S":return rl(l);case"ooo":case"SSS":return rl(o);case"u":return ul(u);case"uu":return ul(s);case"uuu":case"E":case"c":return rl(n);case"a":return ll(t.meridiems(),0);case"EEE":return ll(t.weekdays("short",!1),1);case"EEEE":return ll(t.weekdays("long",!1),1);case"ccc":return ll(t.weekdays("short",!0),1);case"cccc":return ll(t.weekdays("long",!0),1);case"Z":case"ZZ":return cl(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return cl(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return ul(/[a-z_+-/]{1,256}?/i);case" ":return ul(/[^\S\n\r]/);default:return h(f)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=e,f}(t,e)),i=o.find(e=>e.invalidReason);if(i)return{input:t,tokens:r,invalidReason:i.invalidReason};{const[e,n]=function(e){return[`^${e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"")}$`,e]}(o),i=RegExp(e,"i"),[a,s]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const o in n)if(ga(n,o)){const i=n[o],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(r.slice(t,t+a))),t+=a}return[r,e]}return[r,{}]}(t,i,n),[l,c,u]=s?function(e){let t,n=null;return ca(e.z)||(n=bi.create(e.z)),ca(e.Z)||(n||(n=new Li(e.Z)),t=e.Z),ca(e.q)||(e.M=3*(e.q-1)+1),ca(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),ca(e.u)||(e.S=ba(e.u)),[Object.keys(e).reduce((t,n)=>{const r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t},{}),n,t]}(s):[null,null,void 0];if(ga(s,"a")&&ga(s,"H"))throw new Uo("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:i,rawMatches:a,matches:s,result:l,zone:c,specificOffset:u}}}function gl(e,t){if(!e)return null;const n=Xa.create(t,e).dtFormatter((pl||(pl=Ul.fromMillis(1555555555555)),pl)),r=n.formatToParts(),o=n.resolvedOptions();return r.map(t=>function(e,t,n){const{type:r,value:o}=e;if("literal"===r){const e=/^\s+$/.test(o);return{literal:!e,val:e?" ":o}}const i=t[r];let a=r;"hour"===r&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=dl[a];if("object"==typeof s&&(s=s[i]),s)return{literal:!1,val:s}}(t,e,o))}const ml="Invalid DateTime",vl=864e13;function yl(e){return new Qi("unsupported zone",`the zone "${e.name}" is not supported`)}function Al(e){return null===e.weekData&&(e.weekData=na(e.c)),e.weekData}function wl(e){return null===e.localWeekData&&(e.localWeekData=na(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function bl(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ul({...n,...t,old:n})}function _l(e,t,n){let r=e-60*t*1e3;const o=n.offset(r);if(t===o)return[r,t];r-=60*(o-t)*1e3;const i=n.offset(r);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}function Cl(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function El(e,t,n){return _l(Oa(e),t,n)}function Sl(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:r,month:o,day:Math.min(e.c.day,Sa(r,o))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=Qs.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Oa(i);let[l,c]=_l(s,n,e.zone);return 0!==a&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function Ol(e,t,n,r,o,i){const{setZone:a,zone:s}=n;if(e&&0!==Object.keys(e).length||t){const r=t||s,o=Ul.fromObject(e,{...n,zone:r,specificOffset:i});return a?o:o.setZone(s)}return Ul.invalid(new Qi("unparsable",`the input "${o}" can't be parsed as ${r}`))}function xl(e,t,n=!0){return e.isValid?Xa.create(Fi.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Dl(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=ya(e.c.year,n?6:4),t?(r+="-",r+=ya(e.c.month),r+="-",r+=ya(e.c.day)):(r+=ya(e.c.month),r+=ya(e.c.day)),r}function Pl(e,t,n,r,o,i){let a=ya(e.c.hour);return t?(a+=":",a+=ya(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=":")):a+=ya(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=ya(e.c.second),0===e.c.millisecond&&r||(a+=".",a+=ya(e.c.millisecond,3))),o&&(e.isOffsetFixed&&0===e.offset&&!i?a+="Z":e.o<0?(a+="-",a+=ya(Math.trunc(-e.o/60)),a+=":",a+=ya(Math.trunc(-e.o%60))):(a+="+",a+=ya(Math.trunc(e.o/60)),a+=":",a+=ya(Math.trunc(e.o%60)))),i&&(a+="["+e.zone.ianaName+"]"),a}const Ml={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Tl={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Rl={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Il=["year","month","day","hour","minute","second","millisecond"],Fl=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],kl=["year","ordinal","hour","minute","second","millisecond"];function Ll(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Vo(e);return t}(e)}}function Bl(e,t){const n=Ni(t.zone,Ki.defaultZone),r=Fi.fromObject(t),o=Ki.now();let i,a;if(ca(e.year))i=o;else{for(const t of Il)ca(e[t])&&(e[t]=Ml[t]);const t=sa(e)||la(e);if(t)return Ul.invalid(t);const r=n.offset(o);[i,a]=El(e,r,n)}return new Ul({ts:i,zone:n,loc:r,o:a})}function Nl(e,t,n){const r=!!ca(n.round)||n.round,o=(e,o)=>(e=_a(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,o)),i=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return o(i(n.unit),n.unit);for(const e of n.units){const t=i(e);if(Math.abs(t)>=1)return o(t,e)}return o(e>t?-0:0,n.units[n.units.length-1])}function jl(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class Ul{constructor(e){const t=e.zone||Ki.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Qi("invalid input"):null)||(t.isValid?null:yl(t));this.ts=ca(e.ts)?Ki.now():e.ts;let r=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,o]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);r=Cl(this.ts,e),n=Number.isNaN(r.year)?new Qi("invalid input"):null,r=n?null:r,o=n?null:e}this._zone=t,this.loc=e.loc||Fi.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}static now(){return new Ul({})}static local(){const[e,t]=jl(arguments),[n,r,o,i,a,s,l]=t;return Bl({year:n,month:r,day:o,hour:i,minute:a,second:s,millisecond:l},e)}static utc(){const[e,t]=jl(arguments),[n,r,o,i,a,s,l]=t;return e.zone=Li.utcInstance,Bl({year:n,month:r,day:o,hour:i,minute:a,second:s,millisecond:l},e)}static fromJSDate(e,t={}){const n=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);var r;if(Number.isNaN(n))return Ul.invalid("invalid input");const o=Ni(t.zone,Ki.defaultZone);return o.isValid?new Ul({ts:n,zone:o,loc:Fi.fromObject(t)}):Ul.invalid(yl(o))}static fromMillis(e,t={}){if(ua(e))return e<-vl||e>vl?Ul.invalid("Timestamp out of range"):new Ul({ts:e,zone:Ni(t.zone,Ki.defaultZone),loc:Fi.fromObject(t)});throw new Ho(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(ua(e))return new Ul({ts:1e3*e,zone:Ni(t.zone,Ki.defaultZone),loc:Fi.fromObject(t)});throw new Ho("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=Ni(t.zone,Ki.defaultZone);if(!n.isValid)return Ul.invalid(yl(n));const r=Fi.fromObject(t),o=Ia(e,Ll),{minDaysInFirstWeek:i,startOfWeek:a}=aa(o,r),s=Ki.now(),l=ca(t.specificOffset)?n.offset(s):t.specificOffset,c=!ca(o.ordinal),u=!ca(o.year),d=!ca(o.month)||!ca(o.day),p=u||d,h=o.weekYear||o.weekNumber;if((p||c)&&h)throw new Uo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new Uo("Can't mix ordinal dates with month/day");const f=h||o.weekday&&!p;let g,m,v=Cl(s,l);f?(g=Fl,m=Tl,v=na(v,i,a)):c?(g=kl,m=Rl,v=oa(v)):(g=Il,m=Ml);let y=!1;for(const e of g)ca(o[e])?o[e]=y?m[e]:v[e]:y=!0;const A=f?function(e,t=4,n=1){const r=da(e.weekYear),o=va(e.weekNumber,1,Da(e.weekYear,t,n)),i=va(e.weekday,1,7);return r?o?!i&&Xi("weekday",e.weekday):Xi("week",e.weekNumber):Xi("weekYear",e.weekYear)}(o,i,a):c?function(e){const t=da(e.year),n=va(e.ordinal,1,Ea(e.year));return t?!n&&Xi("ordinal",e.ordinal):Xi("year",e.year)}(o):sa(o),w=A||la(o);if(w)return Ul.invalid(w);const b=f?ra(o,i,a):c?ia(o):o,[_,C]=El(b,l,n),E=new Ul({ts:_,zone:n,o:C,loc:r});return o.weekday&&p&&e.weekday!==E.weekday?Ul.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${E.toISO()}`):E}static fromISO(e,t={}){const[n,r]=function(e){return ts(e,[xs,Ts],[Ds,Rs],[Ps,Is],[Ms,Fs])}(e);return Ol(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return ts(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[ws,bs])}(e);return Ol(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return ts(e,[_s,Ss],[Cs,Ss],[Es,Os])}(e);return Ol(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(ca(e)||ca(t))throw new Ho("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:o=null}=n,i=Fi.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),[a,s,l,c]=function(e,t,n){const{result:r,zone:o,specificOffset:i,invalidReason:a}=fl(e,t,n);return[r,o,i,a]}(i,e,t);return c?Ul.invalid(c):Ol(a,s,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return Ul.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return ts(e,[Ls,Ts],[Bs,Ns])}(e);return Ol(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new Ho("need to specify a reason the DateTime is invalid");const n=e instanceof Qi?e:new Qi(e,t);if(Ki.throwOnInvalid)throw new Bo(n);return new Ul({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=gl(e,Fi.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return hl(Xa.parseFormat(e),Fi.fromObject(t)).map(e=>e.val).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Al(this).weekYear:NaN}get weekNumber(){return this.isValid?Al(this).weekNumber:NaN}get weekday(){return this.isValid?Al(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?wl(this).weekday:NaN}get localWeekNumber(){return this.isValid?wl(this).weekNumber:NaN}get localWeekYear(){return this.isValid?wl(this).weekYear:NaN}get ordinal(){return this.isValid?oa(this.c).ordinal:NaN}get monthShort(){return this.isValid?Xs.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Xs.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Xs.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Xs.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=Oa(this.c),r=this.zone.offset(n-e),o=this.zone.offset(n+e),i=this.zone.offset(n-r*t),a=this.zone.offset(n-o*t);if(i===a)return[this];const s=n-i*t,l=n-a*t,c=Cl(s,i),u=Cl(l,a);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[bl(this,{ts:s}),bl(this,{ts:l})]:[this]}get isInLeapYear(){return Ca(this.year)}get daysInMonth(){return Sa(this.year,this.month)}get daysInYear(){return this.isValid?Ea(this.year):NaN}get weeksInWeekYear(){return this.isValid?Da(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Da(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=Xa.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(Li.instance(e),t)}toLocal(){return this.setZone(Ki.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=Ni(e,Ki.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=El(n,t,e)}return bl(this,{ts:r,zone:e})}return Ul.invalid(yl(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return bl(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Ia(e,Ll),{minDaysInFirstWeek:n,startOfWeek:r}=aa(t,this.loc),o=!ca(t.weekYear)||!ca(t.weekNumber)||!ca(t.weekday),i=!ca(t.ordinal),a=!ca(t.year),s=!ca(t.month)||!ca(t.day),l=a||s,c=t.weekYear||t.weekNumber;if((l||i)&&c)throw new Uo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new Uo("Can't mix ordinal dates with month/day");let u;o?u=ra({...na(this.c,n,r),...t},n,r):ca(t.ordinal)?(u={...this.toObject(),...t},ca(t.day)&&(u.day=Math.min(Sa(u.year,u.month),u.day))):u=ia({...oa(this.c),...t});const[d,p]=El(u,this.o,this.zone);return bl(this,{ts:d,o:p})}plus(e){return this.isValid?bl(this,Sl(this,Qs.fromDurationLike(e))):this}minus(e){return this.isValid?bl(this,Sl(this,Qs.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},r=Qs.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===r){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?Xa.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):ml}toLocaleString(e=Ko,t={}){return this.isValid?Xa.create(this.loc.clone(t),e).formatDateTime(this):ml}toLocaleParts(e={}){return this.isValid?Xa.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const i="extended"===e;let a=Dl(this,i);return a+="T",a+=Pl(this,i,t,n,r,o),a}toISODate({format:e="extended"}={}){return this.isValid?Dl(this,"extended"===e):null}toISOWeekDate(){return xl(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:o=!1,format:i="extended"}={}){return this.isValid?(r?"T":"")+Pl(this,"extended"===i,t,e,n,o):null}toRFC2822(){return xl(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return xl(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Dl(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),xl(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ml}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Qs.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=(s=t,Array.isArray(s)?s:[s]).map(Qs.normalizeUnit),i=e.valueOf()>this.valueOf(),a=function(e,t,n,r){let[o,i,a,s]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Zs(e,t);return(n-n%7)/7}],["days",Zs]],o={},i=e;let a,s;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,o[l]=c(e,t),s=i.plus(o),s>t?(o[l]--,(e=i.plus(o))>t&&(s=e,o[l]--,e=i.plus(o))):e=s);return[e,o,s,a]}(e,t,n);const l=t-o,c=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===c.length&&(a<t&&(a=o.plus({[s]:1})),a!==o&&(i[s]=(i[s]||0)+l/(a-o)));const u=Qs.fromObject(i,r);return c.length>0?Qs.fromMillis(l,r).shiftTo(...c).plus(u):u}(i?this:e,i?e:this,o,r);var s;return i?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(Ul.now(),e,t)}until(e){return this.isValid?Ys.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const r=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(t,n)<=r&&r<=o.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||Ul.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(r=e.unit,o=void 0),Nl(t,this.plus(n),{...e,numeric:"always",units:r,unit:o})}toRelativeCalendar(e={}){return this.isValid?Nl(e.base||Ul.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Ul.isDateTime))throw new Ho("min requires all arguments be DateTimes");return fa(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(Ul.isDateTime))throw new Ho("max requires all arguments be DateTimes");return fa(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:o=null}=n;return fl(Fi.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return Ul.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return Ko}static get DATE_MED(){return Qo}static get DATE_MED_WITH_WEEKDAY(){return qo}static get DATE_FULL(){return Yo}static get DATE_HUGE(){return Xo}static get TIME_SIMPLE(){return Zo}static get TIME_WITH_SECONDS(){return Jo}static get TIME_WITH_SHORT_OFFSET(){return ei}static get TIME_WITH_LONG_OFFSET(){return ti}static get TIME_24_SIMPLE(){return ni}static get TIME_24_WITH_SECONDS(){return ri}static get TIME_24_WITH_SHORT_OFFSET(){return oi}static get TIME_24_WITH_LONG_OFFSET(){return ii}static get DATETIME_SHORT(){return ai}static get DATETIME_SHORT_WITH_SECONDS(){return si}static get DATETIME_MED(){return li}static get DATETIME_MED_WITH_SECONDS(){return ci}static get DATETIME_MED_WITH_WEEKDAY(){return ui}static get DATETIME_FULL(){return di}static get DATETIME_FULL_WITH_SECONDS(){return pi}static get DATETIME_HUGE(){return hi}static get DATETIME_HUGE_WITH_SECONDS(){return fi}}function Vl(e){if(Ul.isDateTime(e))return e;if(e&&e.valueOf&&ua(e.valueOf()))return Ul.fromJSDate(e);if(e&&"object"==typeof e)return Ul.fromObject(e);throw new Ho(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Hl=ce.GVDebug.extend("platform").extend("auth"),Gl=Hl.extend("token");var Wl;!function(e){e[e.CLIENT_CREDENTIALS=0]="CLIENT_CREDENTIALS",e[e.IMPLICIT=1]="IMPLICIT"}(Wl||(Wl={}));class zl{silentTimeout;config;LogCategories;scope;storage;silentRenewTimer;lastRenewedToken;duplicateTokenCount;renewBackoffTimeout;constructor(e,t){"undefined"!=typeof window&&(window.__GVAUTH__=this),this.storage=t||{data:{},getItem:e=>this.storage.data[e],removeItem:e=>delete this.storage.data[e],setItem:(e,t)=>this.storage.data[e]=t},this.LogCategories=["Auth"],this.config=e,this.scope=this.config.scopes||[],this.scope.includes("platform")||this.scope.includes("platform.readonly")||this.scope.push("platform"),!e.clusterUri||this.scope.includes("cluster")||this.scope.includes("cluster.readonly")||this.scope.push("cluster.readonly"),this.login=this.login.bind(this),this.logout=this.logout.bind(this),this.switchAccount=this.switchAccount.bind(this),this.renew=this.renew.bind(this),this.isAuthenticated=this.isAuthenticated.bind(this),this.validateAuthenticated=this.validateAuthenticated.bind(this),this.getToken=this.getToken.bind(this),this.getTokenExpiry=this.getTokenExpiry.bind(this),this.isTokenValid=this.isTokenValid.bind(this),this.clearSession=this.clearSession.bind(this),this.setupRenew=this.setupRenew.bind(this),this.storeTokenAndScheduleRenew=this.storeTokenAndScheduleRenew.bind(this),this.lastRenewedToken=null,this.duplicateTokenCount=0}constructed(){this.isAuthenticated()&&this.setupRenew()}isAuthenticated(){return this.validateAuthenticated().validationResult.isValid}validateAuthenticated(){const e=this.getToken();return e?this.validateToken(e):{jwtToken:e,token:null,validationResult:{isValid:!1,clientId:null,expired:null,before:null}}}hasRole=e=>{const t=this.getToken();return t?this.decode(t).role.includes(e):0==!!e};getToken(){return this.storage.getItem(`gv_token_${this.config.clientId}`)}getIdToken(){return this.storage.getItem(`gv_id_token_${this.config.clientId}`)}getRedirect(){return this.storage.getItem(`gv_redirect_${this.config.clientId}`)}setupRenew(){const e=this.getTokenExpiry(),t=Ul.fromMillis(e).diffNow().as("milliseconds");if(t<=0)return Hl(this.config.clientId,"performing login as token has expired"),void this.login();if(t<12e4)return Hl(this.config.clientId,"renewing as less than 2 minutes remain"),void this.renew();const n=t*(.35*Math.random()+.6);Hl(this.config.clientId,"renew timeout",Qs.fromMillis(n).toFormat("d hh:mm:ss"),"@",Ul.local().plus({milliseconds:n}).toFormat("yyyy/MM/dd HH:mm:ss"),n),this.silentRenewTimer&&clearTimeout(this.silentRenewTimer),this.silentRenewTimer=setTimeout(this.renew,n)}storeToken(e,t,n){this.storage.setItem(`gv_token_${this.config.clientId}`,e),this.storage.setItem(`gv_id_token_${this.config.clientId}`,t),this.storage.setItem(`gv_token_expiry_${this.config.clientId}`,JSON.stringify(this.getTokenExpiry())),n&&this.storage.setItem(`gv_redirect_${this.config.clientId}`,n)}storeTokenAndScheduleRenew(e,t,n){if(this.storeToken(e,t,n),this.renewBackoffTimeout&&(clearTimeout(this.renewBackoffTimeout),this.renewBackoffTimeout=null),null!==this.lastRenewedToken&&this.lastRenewedToken===e){this.duplicateTokenCount++,Hl(this.config.clientId,`duplicate token detected (count: ${this.duplicateTokenCount}), proxy may be returning cached token`);const t=Math.min(3e4*Math.pow(2,this.duplicateTokenCount-1),3e5);return Hl(this.config.clientId,`backing off renewal for ${t/1e3}s due to duplicate token`),this.renewBackoffTimeout=setTimeout(()=>this.setupRenew(),t),void(this.lastRenewedToken=e)}this.duplicateTokenCount=0,this.lastRenewedToken=e,this.setupRenew()}clearSession(){this.storage.removeItem(`gv_token_${this.config.clientId}`),this.storage.removeItem(`gv_id_token_${this.config.clientId}`),this.storage.removeItem(`gv_token_expiry_${this.config.clientId}`),this.storage.removeItem(`gv_redirect_${this.config.clientId}`)}isTokenValid(e,t){return this.validateToken(e,t).validationResult.isValid}validateToken(e,t){try{const n=this.decode(e),{nbf:r,exp:o,client_id:i}=n,a=Ul.utc().toSeconds(),s=this.config.clientId===i,l=a<r,c=a>o,u={isValid:t?!l&&!c:s&&!l&&!c,clientId:s,expired:c,before:l},d=l&&r-a<2;return d&&(Hl(this.config.clientId,"token is early but less than 2 seconds we'll be ok"),u.before=!d,u.isValid=t?d&&!c:s&&d&&!c),u.isValid||Gl(this.config.clientId,"invalid token",u),{jwtToken:e,token:n,validationResult:u}}catch(t){return{jwtToken:e,token:null,validationResult:{isValid:!1,clientId:null,expired:null,before:null}}}}getTokenExpiry(){const e=this.getToken();return 1e3*this.decode(e).exp}decode(e){return function(e,t){if("string"!=typeof e)throw new ko("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new ko(`Invalid token specified: missing part #${n+1}`);let o;try{o=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return atob(t)}}(r)}catch(e){throw new ko(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new ko(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}(e)}}const $l=ce.GVDebug.extend("platform").extend("auth").extend("clientCredentials");class Kl extends zl{static get(e){return this.instance||(this.instance=new Kl(e||window.__GVCONFIG__)),this.instance}static instance;constructor(e){super(e),this.LogCategories.push("ClientCredentials"),this.constructed()}login(){return Pu.get().getClient().request({data:"grant_type=client_credentials&scope="+this.scope.join(" "),headers:{Authorization:"Basic "+this.config.apiKey,"Content-Type":"application/x-www-form-urlencoded"},method:"POST",url:"/identity/connect/token"}).then(e=>this.handleAuthentication(e.data)).catch(e=>{throw $l(this.config.clientId,"login error",e),new Error("login error"+e)})}logout(){return this.clearSession(),Promise.resolve(!0)}switchAccount(e){throw new Error("Not implemented")}handleAuthentication(e){const t=e.access_token;if(this.isTokenValid(t)){const e=this.decode(t);return $l(this.config.clientId,"decoded",JSON.stringify(e)),this.storeTokenAndScheduleRenew(t,""),!0}return $l(this.config.clientId,"Invalid Token",t),!1}renew(){this.login()}}var Ql=r(1211),ql=r.n(Ql),Yl=r(5810),Xl=r(2451),Zl=r.n(Xl),Jl=r(2438),ec=r.n(Jl);class tc{id;level;message;properties;categories;time;source;constructor(e,t,n,r){this.id=Ve(),this.level=e,this.message=t,this.properties=ke()(n,(e,t,n)=>{try{e[n]="string"!=typeof t?void 0===t?"":JSON.stringify(t)??t.toString?.():t}catch(e){console.error("Log message value not string and failed converting to string",n,t)}return e},{})||{},this.categories=r||[],this.time=Ul.utc()}getId(){return this.id}getLevel(){return this.level}getSource(){return this.source}getTime(){return this.time}getMessage(){return this.message}getCategories(){return this.categories}getProperties(){return this.properties}setSource(e){this.source=e}addCategories(...e){this.categories=ec()(this.categories.concat(e))}addProperties(e){Zl()(this.properties,e)}getAsJson(){return{categories:this.categories,id:this.id,level:this.level,message:this.message,properties:this.properties,source:this.source,time:this.time.toISO()}}}const nc=ce.GVDebug.extend("platform").extend("logging"),rc=ce.GVDebug.extend("logging"),oc={Debug:rc.extend("debug"),Error:rc.extend("error"),Fatal:rc.extend("fatal"),Info:rc.extend("info"),Trace:rc.extend("trace"),Warning:rc.extend("warning")};var ic;!function(e){e.Trace="Trace",e.Debug="Debug",e.Info="Info",e.Warning="Warning",e.Error="Error",e.Fatal="Fatal"}(ic||(ic={}));class ac extends Qr{static get(...e){return this.instance||(nc("creating new instance"),this.instance=new ac(...e)),this.instance}static LogNow(){return this.instance.postLogs()}static Log(e){return this.instance.addLog(e)}static Trace(e,t,n,r){return this.instance.Trace(e,t,n,r)}static Debug(e,t,n,r){return this.instance.Debug(e,t,n,r)}static Info(e,t,n,r){return this.instance.Info(e,t,n,r)}static Warning(e,t,n,r){return this.instance.Warning(e,t,n,r)}static Error(e,t,n,r){return this.instance.Error(e,t,n,r)}static Fatal(e,t,n,r){return this.instance.Fatal(e,t,n,r)}logMessages;properties;source;categories;postLogTimeout;posting;visible=!0;constructor(e){super("/logging","/api/v2",e),this.logMessages=[];let t=e.storage.getItem("instance");t||(t=Ve(),e.storage.setItem("instance",t)),this.properties={TypescriptInstance:t+" "+Ve()},this.categories=["Typescript"];const n=this.platform.getConfig();if(this.source=n.proxyPath||n.applicationId,this.posting=!1,"undefined"!=typeof window){const e=window.__GVVERSIONS__;e&&(this.properties.GitCommit=e.commit,this.properties.GitBranch=e.branch,this.properties.GitVersion=e.version);const t=window.__GVMODULES__;if(t)for(const e of Object.keys(t))this.properties[e]=JSON.stringify(t[e]);document.addEventListener("visibilitychange",this.onVisibilityChange)}n.applicationId&&(this.properties.WorkloadId=n.applicationId),n.proxyPath&&(this.properties.ProxyPath=n.proxyPath),setTimeout(this.postLogs,1e4)}onVisibilityChange=()=>{this.visible=!document.hidden,this.visible?this.postLogs():clearTimeout(this.postLogTimeout)};Trace(e,t,n,r){return this.log(ic.Trace,e,t,n,r)}Debug(e,t,n,r){return this.log(ic.Debug,e,t,n,r)}Info(e,t,n,r){return this.log(ic.Info,e,t,n,r)}Warning(e,t,n,r){return this.log(ic.Warning,e,t,n,r)}Error(e,t,n,r){return this.log(ic.Error,e,t,n,r)}Fatal(e,t,n,r){return this.log(ic.Fatal,e,t,n,r)}setSource(e){this.source=e}addCategory(e){this.hasCategory(e)||this.categories.push(e)}hasCategory(e){return this.categories.includes(e)}removeCategory(e){this.hasCategory(e)||this.categories.splice(this.categories.indexOf(e),1)}addProperty(e,t){this.properties[e]=t}hasProperty(e){return e in this.properties}removeProperty(e){this.hasProperty(e)&&delete this.properties[e]}log(e,t,n,r,o){const i=new tc(e,t,n,r);return this.addLog(i,o)}addLog(e,t){return e.getSource()||e.setSource(t||this.source),e.addCategories(...this.categories),e.addProperties(this.properties),(0,oc[e.getLevel()])(`${e.getTime().toISO()} - ${e.getMessage()}`,e.getProperties(),e.getCategories(),e.getSource()),e.getLevel()!==ic.Trace&&this.logMessages.push(e),this.logMessages.length>=100&&!this.posting&&this.postLogs(),e}postLogs=async()=>{if(this.postLogTimeout&&(clearTimeout(this.postLogTimeout),this.postLogTimeout=null),this.posting=!0,this.logMessages.length>0){const e=this.logMessages.splice(0,100);nc(`Sending ${e.length} log messages`);const t=await this.request({data:e,method:"post",url:"/events"},!1,!1).catch(e=>e);204!==t.status&&(nc("Log Error","Error posting logs",t.status,t.statusText,t.data,t.headers),console.error("Logging Error",t.status,`Status ${t.status} ${t.statusText}`,t.data,t.body,e),this.logMessages.push(...e))}this.posting=!1,this.postLogTimeout=setTimeout(this.postLogs,this.visible?1e4:12e4)};getLogs=async e=>await this.request({params:e,method:"get",url:"/events/search"});getLogFields=async()=>await this.request({method:"get",url:"/events/fields"})}const sc=ce.GVDebug.extend("platform").extend("auth").extend("implicit");class lc extends zl{static get(e){return this.instance||(this.instance=new lc(e||window.__GVCONFIG__)),this.instance}static instance;redirectUrl;state;silentRedirectUrl;redirectBase;silentAuthUrl;authUrl;authFrame;confirmLogout;renewTimeout;renewCount;renewAttempt;correlationId;reload;constructor(e){super(e,sessionStorage),this.LogCategories.push("Implicit"),this.parseHash=this.parseHash.bind(this),this.handleAuthentication=this.handleAuthentication.bind(this),this.validateAuthentication=this.validateAuthentication.bind(this),this.timedOut=this.timedOut.bind(this),this.renewCount=0,this.renewAttempt=0,this.reload=!1,this.state={to:"/"},this.scope.push("openid"),this.redirectBase=window.location.origin;const t=window.location.pathname.includes("embedded");this.redirectUrl=`${this.redirectBase}${this.config.proxyPath}/${t?"embedded/":""}callback`,this.silentRedirectUrl=`${this.redirectBase}${this.config.proxyPath}/refresh`,this.constructed()}handleAuthentication(e){return this.validateAuthentication(e).validationResult.isValid}validateAuthentication(e){e||(e=window.location.hash);const t=this.parseHash(e);return t.validationResult.isValid?(this.renewTimeout&&(clearTimeout(this.renewTimeout),this.renewTimeout=null),this.silentTimeout&&(clearTimeout(this.silentTimeout),this.silentTimeout=null)):(sc(this.config.clientId,"Not Authenticated",t),this.clearSession()),t}setLocation(e){"/callback"!==e&&(this.config.isGVOne?this.state.to=e.replace(this.config.proxyPath,""):this.state.to=e)}login(){this.validateAuthenticated().validationResult.isValid||(window.onbeforeunload=null,this.reload=!0,this.clearSession());const e=new URL(this.redirectUrl+this.state.to);return this.authUrl=encodeURI(`${this.config.platformUri}/identity/connect/authorize?response_type=id_token token&client_id=${this.config.clientId}&scope=${this.scope.join(" ")}&nonce=N${Ve()}`)+`&redirect_uri=${encodeURIComponent(e.toString())}`+`&state=${encodeURIComponent(JSON.stringify(this.state))}`,window.location.assign(this.authUrl),Promise.resolve(!1)}logout(){return new Promise(e=>{this.confirmLogout&&this.isAuthenticated()?this.confirmLogout().then(e):e(!0)}).then(e=>{if(!e)return!1;const t=this.getIdToken(),n=encodeURI(`${this.config.platformUri}/identity/connect/endsession?id_token_hint=${t}&post_logout_redirect_uri=${this.config.baseUri}${this.config.proxyPath}`);return this.clearSession(),window.location.href!==n&&(window.onbeforeunload=null,this.reload=!0,sc(this.config.clientId,window.location.href,n,JSON.stringify(window.location),window.location.toString()),window.location.assign(n)),!0})}switchAccount(e){if(!this.config.isGVOne)throw new Error("Switch Account is not supported in this environment");this.validateAuthenticated().validationResult.isValid||(window.onbeforeunload=null,this.reload=!0,this.clearSession()),this.clearSession();const t=new URL(this.redirectUrl+this.state.to);return this.authUrl=encodeURI(`${this.config.platformUri}/identity/Account/Switch?response_type=id_token token&client_id=${this.config.clientId}&accountId=${e}&scope=${this.scope.join(" ")}&nonce=N${Ve()}`)+`&redirect_uri=${encodeURIComponent(t.toString())}`+`&state=${encodeURIComponent(JSON.stringify(this.state))}`,window.location.assign(this.authUrl),Promise.resolve(!1)}setConfirmLogout(e){this.confirmLogout=e}isAuthenticated(){return this.validateAuthenticated().validationResult.isValid}validateAuthenticated(){const e=super.validateAuthenticated();return this.reload||e.validationResult.isValid||!window.location.hash?e:this.validateAuthentication(window.location.hash)}renew(e=!1){e||(this.renewCount++,this.renewAttempt=0),this.correlationId=Ve(),this.state&&(this.state.CorrelationId=this.correlationId),this.authFrame||(this.authFrame=document.getElementById("authFrame")),this.silentAuthUrl=encodeURI(`${this.config.platformUri}/identity/connect/authorize?response_type=id_token token&client_id=${this.config.clientId}&redirect_uri=${this.silentRedirectUrl}&scope=${this.scope.join(" ")}&state=${JSON.stringify(this.state||{CorrelationId:this.correlationId})}&nonce=N${this.correlationId}&prompt=none`),sc(this.config.clientId,`initiating renewal ${this.renewCount}: ${this.renewAttempt}`),ac.Debug("Performing renewal",{CorrelationId:this.correlationId,clientId:this.config.clientId,renewCount:`${this.renewCount}`,renewAttempt:`${this.renewAttempt}`,url:this.silentAuthUrl,state:this.state},this.LogCategories.concat(["Renewal"])),this.authFrame&&(this.authFrame.src=this.silentAuthUrl),this.silentTimeout=setTimeout(this.timedOut,3e4)}timedOut(){this.renewAttempt++,sc(this.config.clientId,`renewal timedout ${this.renewCount}: ${this.renewAttempt}`),ac.Warning("Timed out getting new token",{CorrelationId:this.correlationId,clientId:this.config.clientId,renewCount:`${this.renewCount}`,renewAttempt:`${this.renewAttempt}`,url:this.silentAuthUrl,state:this.state},this.LogCategories.concat(["Renewal"])),ac.LogNow();const e=this.getTokenExpiry(),t=Ul.fromMillis(e).diffNow().as("milliseconds");t<=0?this.login():this.renewTimeout=t>6e4?setTimeout(this.renew,6e4,!0):setTimeout(this.renew,1e4,!0)}parseHash(e){const t=Yl.parse(e.replace(/^#/,""),{ignoreQueryPrefix:!0});if(!t.access_token)return sc(this.config.clientId,"hash error",t,e),{jwtToken:null,token:null,validationResult:{isValid:!1,clientId:null,expired:null,before:null}};sc(this.config.clientId,"hash keys",ql()(t)),sc(this.config.clientId,"id_token",this.decode(t.id_token));const n=this.validateToken(t.access_token);if(n.validationResult.isValid){if(t.state)try{t.state=JSON.parse(t.state)}catch(e){sc("error",e)}t.state.to&&(t.redirect=t.state.to),ac.Info("Successfully got token",{CorrelationId:this.correlationId,clientId:this.config.clientId,renewCount:`${this.renewCount}`,renewAttempt:`${this.renewAttempt}`,state:this.state},this.LogCategories);const n=this.decode(t.access_token);sc(this.config.clientId,"decoded",n),this.renewCount>0&&sc(this.config.clientId,`renewal complete ${this.renewCount}: ${this.renewAttempt}`),this.storeTokenAndScheduleRenew(t.access_token,t.id_token,t.redirect)}else sc(this.config.clientId,"Invalid Token",t.access_token);return n}}const cc=ce.GVDebug.extend("platform").extend("identity");var uc,dc;!function(e){e.Production="Production",e.Beta="Beta",e.Development="Development",e.Private="Private",e.Partner="Partner"}(uc||(uc={})),function(e){e.OKTA="OKTA"}(dc||(dc={}));class pc extends Qr{static get(...e){return this.instance||(cc("creating new instance"),this.instance=new pc(...e)),this.instance}constructor(e){super("/identity","/api/v1",e)}getUser=async()=>(await this.get("/user")).data;getUserAccesses=async()=>(await this.get("/user/useraccess")).data;getAccount=async()=>(await this.get("/account")).data;getClient=async()=>(await this.get("/client")).data;getRemoteConnectionStatus=async()=>(await this.get("/remoteConnection")).data;getClients=async e=>await this.request({params:e,method:"get",url:"/clients"});getUsers=async e=>await this.request({params:e,method:"get",url:"/users"});getUserGroups=async()=>await this.request({method:"get",url:"/usergroups"});getPermissions=async()=>await this.request({method:"get",url:"/permissions"});getAccounts=async e=>await this.request({params:e,method:"get",url:"/accounts"});getClientById=async e=>await this.get(`/clients/${e}`);getUserById=async e=>await this.get(`/users/${e}`);getAccountById=async e=>await this.get(`/accounts/${e}`);getApplications=async()=>(ac.Info("Getting applications"),await this.get("/applications"));createClient=async e=>(ac.Info(`Creating client ${name}`),await this.request({data:e,method:"post",url:"/clients"}));createUser=async e=>await this.request({data:e,method:"post",url:"/users"});createUserGroup=async e=>await this.request({data:e,method:"post",url:"/usergroups"});createAccount=async e=>await this.request({data:e,method:"post",url:"/accounts"});getClientRoles=async()=>await this.get("/clients/roles");getUserRoles=async()=>await this.get("/users/roles");addLocalLogin=async(e,t,n)=>await this.request({data:{userId:e,userName:t,password:n},method:"post",url:"/users/login/local"});getLocalLogin=async e=>await this.get(`/users/${e}/login/local`);updateUser=async(e,t,n)=>await this.request({headers:{"if-match":`"${t}"`},data:n,method:"put",url:`/users/${e}`});setUsersGroups=async(e,t)=>await this.request({data:t,method:"put",url:`/users/${e}/groups`});setUsersWithRole=(e,t)=>this.request({data:t,method:"put",url:`/users/${e}/role`});updateUserGroup=async(e,t,n)=>await this.request({headers:{"if-match":`"${t}"`},data:n,method:"put",url:`/usergroups/${e}`});updateClient=async(e,t,n)=>await this.request({headers:{"if-match":`"${t}"`},data:n,method:"put",url:`/clients/${e}`});updateApiKey=async e=>await this.request({method:"post",url:`/clients/${e}/apikey`});updateAccount=async(e,t,n)=>await this.request({headers:{"if-match":`"${t}"`},data:n,method:"put",url:`/accounts/${e}`});enableAccountWaterMarking=async(e,t=null)=>await this.request({params:{comment:t},method:"post",url:`/accounts/${e}/watermarking/enable`});disableAccountWaterMarking=async(e,t=null)=>await this.request({params:{comment:t},method:"post",url:`/accounts/${e}/watermarking/disable`});enableAccountBetaMode=async(e,t=null)=>await this.request({params:{comment:t},method:"post",url:`/accounts/${e}/betamode/enable`});disableAccountBetaMode=async(e,t=null)=>await this.request({params:{comment:t},method:"post",url:`/accounts/${e}/betamode/disable`});deleteUser=async(e,t)=>await this.request({headers:{"if-match":`"${t}"`},method:"delete",url:`/users/${e}`});deleteUserGroup=(e,t)=>this.request({headers:{"if-match":`"${t}"`},method:"delete",url:`/usergroups/${e}`});deleteClient=async(e,t)=>await this.request({headers:{"if-match":`"${t}"`},method:"delete",url:`/clients/${e}`});deleteAccount=async(e,t)=>await this.request({headers:{"if-match":`"${t}"`},method:"delete",url:`/accounts/${e}`});updateLocalLoginPassword=async(e,t)=>await this.request({data:t,method:"put",url:`/users/login/local/${e}`});deleteLocalLogin=async(e,t)=>await this.request({headers:{"if-match":`"${t}"`},method:"delete",url:`/users/login/local/${e}`});enableUser=async e=>await this.request({method:"post",url:`/users/${e}/enable`});disableUser=async e=>await this.request({method:"post",url:`/users/${e}/disable`});enableClient=async e=>await this.request({method:"post",url:`/clients/${e}/enable`});disableClient=async e=>await this.request({method:"post",url:`/clients/${e}/disable`});enableAccount=async e=>await this.request({method:"post",url:`/accounts/${e}/enable`});disableAccount=async e=>await this.request({method:"post",url:`/accounts/${e}/disable`});getLocalLoginByUsername=async e=>await this.get(`/users/login/local/${e}`);updateUserPassword=async e=>await this.request({data:e,method:"put",url:"/users/login/local/password"});getAccountQuotaDefinitions=async()=>await this.get("/quotas/definitions");patchAccountQuotas=async(e,t,n)=>await this.request({headers:{"if-match":`"${t}"`},data:n,method:"patch",url:`/quotas/${e}`});getRoute53Report=async()=>await this.get("/route53/report");getRoute53Status=async e=>await this.get(`/route53/${e}`);createRoute53Record=async e=>await this.request({method:"post",url:`/route53/${e}/create`});deleteRoute53Record=async e=>await this.request({method:"delete",url:`/route53/${e}`})}const hc=ce.GVDebug.extend("platform").extend("network").extend("accounts");class fc extends Qr{static get(...e){return this.instance||(hc("creating new instance"),this.instance=new fc(...e)),this.instance}constructor(e){super("/network","/api/v1/accounts",e)}registerAccount=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/registernetwork",data:e,method:"post",headers:{"x-correlation-id":n}})).data};getRegisteredAccounts=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:"/",params:{account:e,ipaddress:t},method:"get",headers:{"x-correlation-id":r}})).data};getRegistered=async e=>{const t=e||Ve();return await this.request({url:"/registered",method:"get",headers:{"x-correlation-id":t}})};getAllocatedNetworks=async e=>{const t=e||Ve();return(await this.request({url:"/allocatednetworks",method:"get",headers:{"x-correlation-id":t}})).data}}const gc=ce.GVDebug.extend("platform").extend("network").extend("node");class mc extends Qr{static get(...e){return this.instance||(gc("creating new instance"),this.instance=new mc(...e)),this.instance}constructor(e){super("/network","/api/v1/node",e)}allocateIPAddress=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}/allocate`,method:"post",headers:{"x-correlation-id":n}})).data}}const vc=ce.GVDebug.extend("platform").extend("network").extend("nodes");class yc extends Qr{static get(...e){return this.instance||(vc("creating new instance"),this.instance=new yc(...e)),this.instance}constructor(e){super("/network","/api/v1/nodes",e)}allocateIPAddress=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:"/allocated",params:{networkid:e,nodeid:t},method:"get",headers:{"x-correlation-id":r}})).data}}const Ac=ce.GVDebug.extend("platform").extend("network");class wc extends Qr{static get(...e){return this.instance||(Ac("creating new instance"),this.instance=new wc(...e)),this.instance}constructor(e){super("/network","/api/v1/network",e)}createNetwork=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/",data:e,method:"post",headers:{"x-correlation-id":n}})).data};getNetwork=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};getNextAccountAddress=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}/nextaccountid`,method:"get",headers:{"x-correlation-id":n}})).data};getAccountRange=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/account/${t}`,method:"get",headers:{"x-correlation-id":r}})).data};deleteNetwork=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"delete",headers:{"x-correlation-id":n}})).data}}const bc=ce.GVDebug.extend("platform").extend("network").extend("networks");class _c extends Qr{static get(...e){return this.instance||(bc("creating new instance"),this.instance=new _c(...e)),this.instance}constructor(e){super("/network","/api/v1/networks",e)}getNetworks=async e=>{const t=e||Ve();return(await this.request({url:"/",method:"get",headers:{"x-correlation-id":t}})).data}}const Cc=ce.GVDebug.extend("platform").extend("network").extend("endpoint");class Ec extends Qr{static get(...e){return this.instance||(Cc("creating new instance"),this.instance=new Ec(...e)),this.instance}constructor(e){super("/network","/api/v1/endpoint",e)}getEndpoint=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};deleteEndpoint=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"delete",headers:{"x-correlation-id":n}})).data}}const Sc=ce.GVDebug.extend("platform").extend("network").extend("endpoint");class Oc extends Qr{static get(...e){return this.instance||(Sc("creating new instance"),this.instance=new Oc(...e)),this.instance}constructor(e){super("/network","/api/v1/endpoints",e)}getEndpoints=async e=>{const t=e||Ve();return(await this.request({url:"/",method:"get",headers:{"x-correlation-id":t}})).data}}const xc=ce.GVDebug.extend("platform").extend("network");class Dc extends Qr{static get(...e){return this.instance||(xc("creating new instance"),this.instance=new Dc(...e)),this.instance}accounts;node;nodes;network;networks;endpoint;endpoints;constructor(e){super("/","/api/v1",e),this.accounts=null,this.node=null,this.nodes=null,this.network=null,this.networks=null,this.endpoint=null,this.endpoints=null}getAccounts(){return this.accounts||(this.accounts=fc.get(this.platform)),this.accounts}getNode(){return this.node||(this.node=mc.get(this.platform)),this.node}getNodes(){return this.nodes||(this.nodes=yc.get(this.platform)),this.nodes}getNetwork(){return this.network||(this.network=wc.get(this.platform)),this.network}getNetworks(){return this.networks||(this.networks=_c.get(this.platform)),this.networks}getEndpoint(){return this.endpoint||(this.endpoint=Ec.get(this.platform)),this.endpoint}getEndpoints(){return this.endpoints||(this.endpoints=Oc.get(this.platform)),this.endpoints}}var Pc=r(9902);const Mc=ce.GVDebug.extend("platform").extend("mailbox");class Tc extends Qr{static instances;stopped;mailboxId;emitter;emitter2;emitter3;debug;pollDebug;msgDebug;msgTimeDebug;socketDebug;correlationId;visible=!0;secret;subscriptions;exclusiveSubscriptions;topics;ports;portEvents;portSubscriptions;processing;onAnyEvents;processTimeout;notifications;LogCategories;LogProperties;constructor(e,t,n,r,o){super("/notifications",`/api/v1/mailbox/${e}`,r),this.debug=Mc.extend(e),o&&(this.debug=this.debug.extend(o)),this.pollDebug=this.debug.extend("poll"),this.msgDebug=this.debug.extend("msg"),this.msgTimeDebug=this.debug.extend("time"),this.socketDebug=this.debug.extend("socket"),this.mailboxId=e,this.secret=t,this.subscriptions={},this.ports={},this.portEvents={},this.portSubscriptions={},this.exclusiveSubscriptions={},this.onAnyEvents=[],this.correlationId=n||Ve(),this.emitter2=new Pc.EventEmitter2({}),this.emitter3=new Te,this.emitter3.onAny=e=>this.onAnyEvents.push(e),this.emitter3.offAny=e=>{const t=this.onAnyEvents.indexOf(e);t>-1&&this.onAnyEvents.splice(t,1)},this.emitter3.__emit=this.emitter3.emit,this.emitter3.emit=(e,...t)=>{for(const n of this.onAnyEvents)try{n(e,t[0])}catch(e){Mc("Error running onAnyEvent",e)}return this.emitter3.__emit(e,t[0])},this.LogProperties={CorrelationId:this.correlationId,MailboxId:e},this.LogCategories=["Mailbox"],this.topics={},this.notifications=[],this.stopped=!1;const i=this.platform.nullStorage.global.getItem("emitter");this.emitter="emitter2"===i?this.emitter2:this.emitter3}addPort=async(e,t)=>{const n=Object.assign({},this.LogProperties,{ChildId:e});ac.Debug(`Adding mailbox port ${e}`,n),this.debug(`Adding mailbox port ${e}`),this.ports[e]&&await this.removePort(e),this.ports[e]=t,this.portSubscriptions[e]=[],t.onmessage=t=>this.onChildMessage(e,t),t.postMessage({type:"added",id:this.getId()}),this.portEvents[e]=this.childEmit.bind(this,e),this.emitter.onAny(this.portEvents[e])};childEmit=(e,t,n)=>{const r=this.ports[e];try{r.postMessage({type:"notification",payload:n})}catch(t){this.debug(`failed to send to child port ${e}`,t)}};removePort=async e=>{const t=Ve(),n=Object.assign({},this.LogProperties,{ChildId:e,CorrelationId:t});if(ac.Debug(`Removing mailbox port ${e}`,n),this.debug(`Removing mailbox port ${e}`),this.ports[e]){if(this.portSubscriptions[e]){const n=[...this.portSubscriptions[e]];for(const r of n)try{await this.childUnsubscribe(e,r,t)}catch(e){}delete this.portSubscriptions[e]}this.emitter.offAny(this.portEvents[e]),delete this.portEvents[e],delete this.ports[e]}};childSubscribe=async(e,t,n)=>{const r=Object.assign({},this.LogProperties,{CorrelationId:n??this.correlationId});ac.Debug(`Adding child subscription for mailbox ${e} to ${t}`,r),this.debug(`Adding child subscription for mailbox ${e} to ${t}`);const o=await this.subscribe(t,n,e);if(o){const n=this.portSubscriptions[e];-1===n.indexOf(t)&&n.push(t)}return o};childUnsubscribe=async(e,t,n)=>{const r=Object.assign({},this.LogProperties,{CorrelationId:n??this.correlationId});return ac.Debug(`Removing child subscription for mailbox ${e} to ${t}`,r),this.debug(`Removing child subscription for mailbox ${e} to ${t}`),await this.unsubscribe(t,n,e)};onChildMessage=async(e,t)=>{const n=Object.assign({},this.LogProperties,{CorrelationId:t.data.correlationId??this.correlationId});switch(n.message=JSON.stringify(t.data),ac.Debug(`Child message for mailbox ${e} [${t.data.type}]`,n),this.debug(`Child message ${e}`,t),t.data.type){case"subscribe":{const n=await this.childSubscribe(e,t.data.subscription,t.data.correlationId);this.ports[e].postMessage({type:"callback",callback:t.data.callback,result:n});break}case"unsubscribe":{const n=await this.childUnsubscribe(e,t.data.subscription,t.data.correlationId);this.ports[e].postMessage({type:"callback",callback:t.data.callback,result:n});break}}};async start(){await this.getNotifications(),this.processNotifications(!0),"undefined"!=typeof document&&document.addEventListener("visibilitychange",this.onVisibilityChange)}onVisibilityChange=()=>{this.visible=!document.hidden,this.visible&&(clearTimeout(this.processTimeout),this.processTimeout=setTimeout(this.processNotifications,0,!0),this.getNotifications())};getId=()=>this.mailboxId;getEvents=()=>this.emitter;getMailbox=()=>this.get("");deleteMailbox=async()=>{if(this.secret){this.debug("deleting mailbox");const e=await this.request({method:"delete",url:`/${this.secret}`});this.debug("deleted mailbox result",e)}};getSubscriptions=async()=>this.get("/subscriptions");exclusiveSubscribe=async(e,t,n)=>{if(!e)return!1;this.exclusiveSubscriptions[e]&&this.exclusiveSubscriptions[e]!=t&&await this.unsubscribe(this.exclusiveSubscriptions[e],n,e);const r=await this.subscribe(t,n,e);return r&&(this.exclusiveSubscriptions[e]=t),r};exclusiveUnsubscribe=async(e,t)=>{if(!e)return!1;if(!this.exclusiveSubscriptions[e])return!0;const n=await this.unsubscribe(this.exclusiveSubscriptions[e],t,e);return delete this.exclusiveSubscriptions[e],n};subscribe=async(e,t,n,r)=>{if(n||(n="global"),this.subscriptions[e]||(this.subscriptions[e]=[]),this.subscriptions[e].indexOf(n)>-1&&!r)return!0;const o=Object.assign({},this.LogProperties,{CorrelationId:t||this.correlationId,subscriberId:n});ac.Trace(`Subscribing to ${e}`,o,this.LogCategories.concat(["Subscription","Subscribe"])),this.debug("subscribing to",e);let i=!1;return!0===await this.doSubscribe(e,t,n,o)&&(ac.Trace(`Subscription added ${e}`,o,this.LogCategories.concat(["Subscription","Subscribe"])),this.debug("subscription added",e),-1===this.subscriptions[e].indexOf(n)&&this.subscriptions[e].push(n),i=!0),i};resubscribe=async()=>{if((0,$e.size)(this.subscriptions)>0){ac.Info(`Resubscribing to ${(0,$e.size)(this.subscriptions)} topics`,this.LogProperties,this.LogCategories.concat(["Subscription","Resubscribe"]));const e=async(e,t)=>{let n=!1;for(;!1===n;)await this.subscribe(e,null,t,!0),n=await new Promise(e=>setTimeout(e,500,!0))};for(const t of Object.keys(this.subscriptions))this.subscriptions[t]?.length>0&&await e(t,this.subscriptions[t][0])}};unsubscribe=async(e,t,n)=>{n||(n="global");const r=Object.assign({},this.LogProperties,{CorrelationId:t||this.correlationId,subscriberId:n});ac.Trace(`Unsubscribing from ${e}`,r,this.LogCategories.concat(["Subscription","Unsubscribe"])),this.debug("Unsubscribing from",e);let o=!1;const i=this.subscriptions?.[e]?.indexOf(n)??-1;return i>-1&&this.subscriptions[e].splice(i,1),(this.subscriptions?.[e]?.length??0)>0?o=!0:await this.doUnsubscribe(e,t,n,r)&&(ac.Trace(`Subscription removed ${e}`,r,this.LogCategories.concat(["Subscription","Unsubscribe"])),this.debug("subscription removed",e),o=!0),o};updateSecret=e=>{this.secret=e,this.resubscribe()};stop(){this.stopped=!0,this.processTimeout&&clearTimeout(this.processTimeout),"undefined"!=typeof document&&document.removeEventListener("visibilitychange",this.onVisibilityChange)}processNotifications=e=>{if(!this.processing){for(this.processing=!0;this.notifications.length>0;){const e=this.notifications.shift();if(e.topic&&e.time){this.topics[e.topic]=(this.topics[e.topic]||0)+1;try{try{e.content="string"==typeof e.content?JSON.parse(e.content):e.content}catch(t){this.debug("Unable to parse notification content string",e.id,e.content)}e.time=Ul.fromISO(e.time),this.msgTimeDebug(e.topic,"received"),this.msgDebug(e.topic,e.content,e.time,e.correlationId,e.id,e),this.emitter.emit(e.topic,e),this.msgTimeDebug(e.topic,"processed",this.notifications.length)}catch(t){const n=Object.assign({},this.LogProperties);n.topic=e.topic,n.content=e.content,n.error=t.name+": "+t.message,ac.Error(`Problem processing message for ${e.topic}`,n,this.LogCategories.concat(["Process"]))}}else this.debug(`Unable to process notification type: ${typeof e} - no topic or time`)}this.processing=!1,e&&this.processPoll()}};getNotifications=async()=>!1;processPoll=async()=>{this.stopped||(this.processTimeout=setTimeout(this.processNotifications,this.visible?0:25e3,!0))}}const Rc=ce.GVDebug.extend("platform").extend("mailbox").extend("push");class Ic extends Tc{static instances;static get(e,t,n){return this.instances||(this.instances={}),this.instances[e]||(Rc("creating new instance"),this.instances[e]=new Ic(e,t,n),this.instances[e].start()),this.instances[e]}signal;starting;ready;resolve;isBinarySupported;subscriptionCache=new Set;constructor(e,t,n){super("push-"+e,null,t,n,"push"),this.LogCategories.push("Push"),this.ready=new Promise(e=>{this.resolve=e})}getMailbox=()=>null;getSubscriptions=async()=>null;doSubscribe=async(e,t,n,r)=>{let o=!1;await this.ready,ac.Debug(`Adding push subscription to ${e}`,r,this.LogCategories.concat(["Subscription","Subscribe"]));const i={Subscriptions:[e],Context:{CorrelationId:t??Ve()}};this.subscriptionCache.add(e);const a=await this.signal.invoke("Subscribe",i);return a.isSuccess?o=!0:(ac.Error(`Failed adding push subscription to ${e} ${a.errorResult?.message}`,r,this.LogCategories.concat(["Subscription","Subscribe"])),this.socketDebug(`Failed adding push subscription to ${e} ${a.errorResult?.message}`,a)),o};doUnsubscribe=async(e,t,n,r)=>{let o=!1;await this.ready,ac.Debug(`Removing push subscription to ${e}`,r,this.LogCategories.concat(["Subscription","Unsubscribe"]));const i={Subscriptions:[e],Context:{CorrelationId:t??Ve()}};this.subscriptionCache.delete(e);const a=await this.signal.invoke("Unsubscribe",i);return a.isSuccess?o=!0:(ac.Error(`Failed removing push subscription to ${e} ${a.errorResult?.message}`,r,this.LogCategories.concat(["Subscription","Unsubscribe"])),this.socketDebug(`Failed removing push subscription to ${e} ${a.errorResult?.message}`,a)),o};doResubscribe=async(e,t)=>{let n=!1;ac.Debug(`Adding push subscription to: ${Array.from(this.subscriptionCache).join(", ")}`,t,this.LogCategories.concat(["Subscription","Subscribe"]));const r={Subscriptions:[...this.subscriptionCache],Context:{CorrelationId:e??Ve()}},o=await this.signal.invoke("Subscribe",r);return o.isSuccess?n=!0:(ac.Error(`Failed adding push subscription to ${Array.from(this.subscriptionCache).join(", ")} ${o.errorResult?.message}`,t,this.LogCategories.concat(["Subscription","Subscribe"])),this.socketDebug(`Failed adding push subscription to  ${Array.from(this.subscriptionCache).join(", ")} ${o.errorResult?.message}`,o)),n};stop(){super.stop(),this.signal&&this.signal.stop()}signalRLogging={debuggers:{},log:(e,t)=>{this.signalRLogging.debuggers[e]||(this.signalRLogging.debuggers[e]=this.socketDebug.extend(vn[e])),this.signalRLogging.debuggers[e](t)}};onNotification=e=>{this.notifications.push(e)};onPong=e=>{this.socketDebug("pong",e)};raiseNotification=async(e,t,n,r,o=!0)=>{let i=!1;e=e.toLowerCase();const a=r||Ve(),s={topic:e,payload:JSON.stringify(t),CorrelationId:a};o&&ac.Info(`Raising notification to topic ${e}`,s),await this.ready,ac.Trace(`Publishing message ${e}`,s,this.LogCategories.concat(["Subscription","Unsubscribe"]));const l={Id:Ve(),Time:Ul.utc().toISO(),Topic:e,Source:n||this.platform.getConfig().proxyPath,TTL:3e4,Content:JSON.stringify(t),ContentType:null,ContentLength:0,BinaryContent:null,Context:{CorrelationId:r??Ve()}},c=await this.signal.invoke("PublishNotification",l);return c.isSuccess?i=!0:(ac.Error(`Failed publishing message ${c.errorResult?.message}`,s,this.LogCategories.concat(["Subscription","Unsubscribe"])),this.socketDebug(`Failed publishing message ${c.errorResult?.message}`,c)),i};raiseBinaryNotification=async(e,t,n="application/octet-stream",r,o,i=!0)=>{let a=!1;const s={topic:e=e.toLowerCase(),contentType:n,CorrelationId:o||Ve()};if(i&&ac.Info(`Raising notification to topic ${e}`,s),await this.ready,!this.isBinarySupported)throw new Error("Binary notifications require MessagePack support on the Push Notification Server Hub (introduced in gv.platform.pushnotificationservice version 1.9.0).");{ac.Trace(`Publishing message ${e}`,s,this.LogCategories.concat(["Subscription","Unsubscribe"]));const i={Id:Ve(),Time:Ul.utc().toISO(),Topic:e,Source:r||this.platform.getConfig().proxyPath,TTL:3e4,Content:null,ContentType:n,ContentLength:t.length,BinaryContent:t,Context:{CorrelationId:o??Ve()}},l=await this.signal.invoke("PublishNotification",i);l.isSuccess?a=!0:(ac.Error(`Failed publishing message ${l.errorResult?.message}`,s,this.LogCategories.concat(["Subscription","Unsubscribe"])),this.socketDebug(`Failed publishing message ${l.errorResult?.message}`,l))}return a};onClose=e=>{ac.Error(`Push Mailbox closed: ${e}`,this.LogProperties,this.LogCategories.concat(["Connection"])),this.socketDebug("Closed",e),this.signal.off("reconnected",this.onReconnected),this.signal.off("close",this.onClose),this.signal.off("reconnecting",this.onReconnecting),this.signal=null;const t=()=>{this.platform.isHubConnection()?this.getNotifications():setTimeout(t,1e3)};t()};onReconnecting=e=>{this.socketDebug("Reconnecting",e),ac.Warning(`Push Mailbox reconnecting ${e}`,this.LogProperties,this.LogCategories.concat(["Connection"]))};onReconnected=e=>{ac.Warning(`Push Mailbox reconnected ${e}`,this.LogProperties,this.LogCategories.concat(["Connection"])),this.socketDebug(e,"Reconnected"),this.resubscribe()};startSignalRConnection=async e=>{let t=!1;const n={UseMessagePack:`${e}`,CorrelationId:this.correlationId,MailboxId:this.mailboxId};try{this.signal=await Pu.get().getHubConnection(e),this.signal.onreconnected(this.onReconnected),this.signal.onclose(this.onClose),this.signal.onreconnecting(this.onReconnecting),this.subscriptionCache.size>0&&(ac.Info(`Resubscribing to ${this.subscriptionCache.size} topics`),await this.doResubscribe()),t=!0}catch(e){ac.Warning(`Error connecting to SignalR Hub: ${e}`,n,this.LogCategories.concat(["Connection"]))}return t};getNotifications=async()=>{let e=!1;if(this.signal)return!0;try{await this.startSignalRConnection(!0)?(ac.Debug("Push Notification Hub supports MessagePack transport protocol.",this.LogProperties,this.LogCategories.concat(["Connection"])),this.isBinarySupported=!0):(ac.Debug("Push Notification Hub does not support MessagePack transport protocol so falling back to standard JSON transport protocol.",this.LogProperties,this.LogCategories.concat(["Connection"])),await this.startSignalRConnection(!1),ac.Debug("Push Notification Hub set up with standard JSON transport protocol.",this.LogProperties,this.LogCategories.concat(["Connection"])),this.isBinarySupported=!1),this.resolve(),null!=this.signal&&(this.signal.on("ReceiveNotification",this.onNotification),this.signal.on("Pong",this.onPong),this.signal.invoke("Ping"),this.processNotifications(!0)),e=!0}catch(e){ac.Error(`Unable to setup push mailbox: ${e}`,this.LogProperties,this.LogCategories.concat(["Connection"])),console.error(e)}return e}}class Fc extends Tc{static instance;static get(e,t,n){return this.instance||(this.instance=new Fc(e,t,n)),this.instance}port;resolve;loadTimeout;loaded;callbacks;constructor(e,t,n){super(e,null,t,n,"child"),this.callbacks={};const r=new MessageChannel;this.port=r.port1,this.port.onmessage=this.onParentMessage,this.processNotifications(!0),this.loaded=new Promise(e=>{this.resolve=e}),this.loadTimeout=setTimeout(this.onLoadTimeout,5e3),window.parent.postMessage({type:"@gv/mailboxport",id:this.getId(),source:this.platform.getConfig().applicationId||this.platform.getConfig().proxyPath},"*",[r.port2])}onLoadTimeout=async()=>{this.resolve(!1)};onParentMessage=e=>{switch(Object.assign({},this.LogProperties).message=JSON.stringify(e.data),this.debug(`Parent message received [${e.data.type}]`),e.data.type){case"added":clearTimeout(this.loadTimeout),this.resolve(!0);break;case"callback":this.callbacks[e.data.callback]?(this.callbacks[e.data.callback](e.data.result),delete this.callbacks[e.data.callback]):this.socketDebug("unknown callback",e.data.callback);break;case"stopped":this.processTimeout&&clearTimeout(this.processTimeout);break;case"notification":this.notifications.push(e.data.payload)}};updateSecret=e=>{};getId=()=>this.mailboxId;doSubscribe=async(e,t,n)=>{const r=Object.assign({},this.LogProperties,{CorrelationId:t,subscriberId:n});return ac.Info(`Subscribing to ${e}`,r,this.LogCategories.concat(["Subscription","Subscribe"])),this.debug(`Subscribing to ${e}`),await new Promise(n=>{const r=Ve();this.callbacks[r]=n,this.port.postMessage({type:"subscribe",subscription:e,callback:r,correlationId:t,id:this.getId()})})};doUnsubscribe=async(e,t,n,r)=>{r=Object.assign({},r),ac.Info(`Unsubscribing from ${e}`,r,this.LogCategories.concat(["Subscription","Unsubscribe"])),this.debug(`Unsubscribing to ${e}`);let o=!1;return o=await new Promise(n=>{const r=Ve();this.callbacks[r]=n,this.port.postMessage({type:"unsubscribe",subscription:e,callback:r,correlationId:t,id:this.getId()})}),o}}const kc=ce.GVDebug.extend("platform").extend("mailbox").extend("platform");class Lc extends Tc{static instances;initialised=!1;pollTimeout;isProcessing=!1;serviceInstance;static get(e,t,n,r){return this.instances||(this.instances={}),this.instances[e]?t&&this.instances[e].updateSecret(t):(kc("creating new instance",e),this.instances[e]=new Lc(e,t,n,r),this.instances[e].start()),this.instances[e]}errors=0;constructor(e,t,n,r){super(e,t,n,r,"platform"),"undefined"!=typeof document&&document.addEventListener("visibilitychange",this.onVisibleChange)}getMailbox=()=>this.get("");deleteMailbox=async()=>{if(this.secret){this.debug("deleting mailbox");const e=await this.request({method:"delete",url:`/${this.secret}`});this.debug("deleted mailbox result",e)}};getSubscriptions=async()=>this.get("/subscriptions");doSubscribe=async(e,t,n,r)=>{let o=!1;try{await this.request({method:"post",url:`/subscribe/${encodeURIComponent(e)}`})&&(o=!0)}catch(t){if(t.isAxiosError){const n=t;r.ErrorMessage=n.message,r.ErrorName=n.name,null!=n.code&&(r.ErrorCode=n.code),500===t.response.status?(ac.Error(`Subscription service internal server error ${e}`,r,this.LogCategories.concat(["Subscription","Subscribe"])),this.debug("subscription internal server error",t.response.data)):(ac.Error(`Subscribe status error ${e}`,r,this.LogCategories.concat(["Subscription","Subscribe"])),this.debug("subscription status error",t))}else r.error=t?.message??JSON.stringify(t??"No Error Message"),ac.Error(`Subscribe error ${e}`,r,this.LogCategories.concat(["Subscription","Subscribe"])),this.debug("subscription error",t)}return o};doUnsubscribe=async(e,t,n,r)=>{let o=!1;try{await this.request({method:"post",url:`/unsubscribe/${encodeURIComponent(e)}`})&&(o=!0)}catch(t){if(t.isAxiosError){const n=t;switch(r.ErrorMessage=n.message,r.ErrorName=n.name,null!=n.code&&(r.ErrorCode=n.code),t.response.status){case 404:ac.Error(`Subscription did not exist ${e}`,r,this.LogCategories.concat(["Subscription","Unsubscribe"])),this.debug("subscription did not exist");break;case 500:ac.Error(`Subscription service internal server error ${e}`,r,this.LogCategories.concat(["Subscription","Unsubscribe"])),this.debug("subscription internal server error",t.response.data);break;default:ac.Error(`Unsubscribe status error ${e}`,r,this.LogCategories.concat(["Subscription","Unsubscribe"])),this.debug("subscription status error",t)}}else r.error=t?.message??JSON.stringify(t??"No Error Message"),ac.Error(`Unsubscribe error ${e}`,r,this.LogCategories.concat(["Subscription","Unsubscribe"])),this.debug("subscription error",t)}return o};updateSecret=e=>{this.secret=e,this.resubscribe()};onVisibleChange=async()=>{this.visible=!document.hidden,this.visible&&await this.retrieveNotifications()};stop(){super.stop(),this.pollTimeout&&clearTimeout(this.pollTimeout),this.deleteMailbox()}getNotifications=async()=>{let e=!1;return this.initialised||(this.initialised=!0,e=await this.retrieveNotifications()),e};retrieveNotifications=async()=>{if(this.pollTimeout&&clearTimeout(this.pollTimeout),this.isProcessing)return!0;let e=0,t=!1;if(!this.platform.auth.isAuthenticated())return this.poll(2e3),!0;try{this.isProcessing=!0;const t=await this.platform.notifications.getNotifications(this.mailboxId,this.correlationId,this.visible?1:10,this.serviceInstance),n=this.visible?1e3:25e3;if(t.headers instanceof be&&t.headers.has("x-service-instance")){const e=t.headers.get("x-service-instance");"string"==typeof e&&(this.serviceInstance=e)}switch(t.status){case 200:e=0,this.errors=0,this.pollDebug("notifications",t.data.length),this.notifications.push(...t.data),this.processNotifications(!1);break;case 204:e=n,this.errors=0,this.pollDebug("no notifications")}return!0}catch(n){const r=Object.assign({},this.LogProperties);if(le.isAxiosError(n)){const o=n;if(r.ErrorMessage=o.message,r.ErrorName=o.name,null!=o.code&&(r.ErrorCode=o.code),o.response&&o.response.status)switch(r.Status=o.response.status.toString(),o.response.status){case 401:return ac.Error(`Mailbox unauthorised, ${this.mailboxId}`,r,this.LogCategories.concat(["MailboxPoll"])),this.debug("Mailbox unauthorised"),!1;case 404:ac.Error(`Mailbox does not exist, ${this.mailboxId}`,r,this.LogCategories.concat(["MailboxPoll"])),this.debug("Mailbox does not exist, recreating"),t=this.platform.notifications.mailboxes.createMailbox(null,this.mailboxId);break;case 500:ac.Error(`Mailbox service error, ${this.mailboxId}`,r,this.LogCategories.concat(["MailboxPoll"])),this.debug("Mailbox internal server error",n.response.data),e=1e3;break;default:ac.Error(`Mailbox status error, ${this.mailboxId}`,r,this.LogCategories.concat(["MailboxPoll"])),this.debug("Mailbox error",n)}else"Network Error"===o.message?(ac.Error(`Network Error when accessing mailbox, ${this.mailboxId}`,r,this.LogCategories.concat(["MailboxPoll"])),this.debug("Network Error when accessing mailbox",this.mailboxId,n),t=new Promise(t=>{const n=async()=>{try{await this.platform.getClient().get("/",{}),t()}catch(r){"Network Error"===r?.message?setTimeout(n,500):le.isAxiosError(r)&&404===r.response?.status?(e=0,t()):setTimeout(n,500)}};n()})):(ac.Error(`Mailbox axios error, with no response, ${this.mailboxId}`,r,this.LogCategories.concat(["MailboxPoll"])),this.debug("Mailbox axios error, with no response",this.mailboxId,n),e=5e3)}else this.errors++,(this.errors<100||this.errors>100&&this.errors%100==0)&&(r.error=n?.message?`${n?.name} - ${n?.message}`:JSON.stringify(n??"No Error Message"),ac.Error(`Mailbox error, ${this.mailboxId}`,r,this.LogCategories.concat(["MailboxPoll"])),this.errors>100&&(e=1e3)),this.debug("Mailbox error",this.mailboxId,n);return!1}finally{t&&await t,this.isProcessing=!1,this.poll(e)}};poll=e=>{this.stopped||(this.pollTimeout=setTimeout(this.retrieveNotifications,e))}}const Bc=ce.GVDebug.extend("platform").extend("notifications").extend("mailboxes");class Nc extends Qr{static get(...e){return this.instance||(Bc("creating new instance"),this.instance=new Nc(...e)),this.instance}CappedMailboxLength=5e3;mailboxes;gettingDefault;gettingDefaultPush;defaultMailbox;defaultPushMailbox;constructor(e){super("/notifications","/api/v1/mailbox",e),this.mailboxes={}}getMailbox(e,t,n,r){if(!e)return"push"===r?this.defaultPushMailbox:this.defaultMailbox;if(!this.mailboxes[e])switch(r){case"child":case!0:this.mailboxes[e]=Fc.get(e,n,this.platform);break;case"platform":case!1:this.mailboxes[e]=Lc.get(e,t,n,this.platform);break;case"push":this.mailboxes[e]=Ic.get(e,n,this.platform)}return t&&this.mailboxes[e].updateSecret(t),this.mailboxes[e]}createMailbox=async(e,t,n,r)=>{if("undefined"!=typeof window)for(;!this.platform.auth.isAuthenticated();)await new Promise(e=>setTimeout(e,100));const o=n||Ve(),i=this.platform.getConfig();switch(t||(t=`ts-${i.applicationId?"app-"+i.applicationId:i.proxyPath?i.proxyPath.substr(1).replace(/\//g,"."):""}--${Ve()}`),r||(r="separate"!==this.platform.nullStorage.global.getItem("mailbox")&&"undefined"!=typeof window&&window?.parent&&window!==window.parent?"child":"platform"),r){case"platform":{ac.Info(`Creating Mailbox ${t}`,{CorrelationId:o},["Notifications"]);let n={durable:!1,id:t,mailboxTTL:i?.notificationOptions?.mailboxTTL||15e5,maximumLength:i?.notificationOptions?.mailboxLength||1e4,subscription:e||"gv"};try{const e=await this.request({data:n,method:"post",url:""});return this.getMailbox(t,e.data.secret,o,"platform")}catch(e){if(e.isAxiosError&&400===e.response.status&&e.response.headers.get("x-service-response")&&n.maximumLength>this.CappedMailboxLength){ac.Info("Max mailbox length capped at 5000 by the Notification Service, reverting to mailbox size of 5000",{CorrelationId:o},["Notifications"]);try{n.maximumLength=this.CappedMailboxLength;const e=await this.request({data:n,method:"post",url:""});return this.getMailbox(t,e.data.secret,o,"platform")}catch(e){return!1}}return!1}}case"child":{ac.Info("Creating Child Mailbox",{CorrelationId:o},["Notifications"]);const r=this.getMailbox(t,null,o,"child");return await r.loaded?r:(ac.Warning("Timed out creating Child Mailbox falling back to private Mailbox",{CorrelationId:o},["Notifications"]),delete this.mailboxes[r.getId()],r.stop(),this.createMailbox(e,t,n,"platform"))}case"push":return ac.Info("Creating Push Mailbox",{CorrelationId:o},["Notifications"]),this.getMailbox(t,null,o,"push")}};getDefault=async()=>{if(!this.defaultMailbox)if(!0===this.gettingDefault)ac.Warning("Multiple requests for default mailbox, waiting till ready"),await new Promise(e=>{const t=()=>{this.defaultMailbox instanceof Tc?e(this.defaultMailbox):setTimeout(t,100)};t()}),ac.Info("Default mailbox ready");else for(this.gettingDefault=!0;this.gettingDefault;){const e=await this.createMailbox();e instanceof Fc?(this.defaultMailbox=e,"undefined"!=typeof window&&(window.__GVMBOX__=e),ac.Info("Default mailbox using parent mailbox"),this.gettingDefault=!1):e instanceof Tc?(this.defaultMailbox=e,"undefined"!=typeof window&&(window.__GVMBOX__=e),ac.Info("Default mailbox created"),this.gettingDefault=!1):(ac.Error("Create default mailbox failed"),await new Promise(e=>setTimeout(e,500)))}return this.defaultMailbox};getDefaultPush=async()=>{if(!this.defaultPushMailbox)if(!0===this.gettingDefaultPush)ac.Warning("Multiple requests for default push mailbox, waiting till ready"),await new Promise(e=>{const t=()=>{this.defaultPushMailbox instanceof Ic?e(this.defaultPushMailbox):setTimeout(t,100)};t()}),ac.Info("Default push mailbox ready");else for(this.gettingDefaultPush=!0;this.gettingDefaultPush;){const e=await this.createMailbox(null,null,null,"push");"boolean"!=typeof e?(this.defaultPushMailbox=e,"undefined"!=typeof window&&(window.__GVPUSHMBOX__=e),ac.Info("Default push mailbox created"),this.gettingDefaultPush=!1):(ac.Error("Create default push mailbox failed"),await new Promise(e=>setTimeout(e,500)))}return this.defaultPushMailbox}}const jc=ce.GVDebug.extend("platform").extend("notifications");class Uc extends Qr{static get(...e){return this.instance||(jc("creating new instance"),this.instance=new Uc(...e)),this.instance}mailboxes;constructor(e){super("/notifications","/api/v1",e),this.mailboxes=Nc.get(this.platform)}getNotifications=async(e,t,n=1,r)=>{const o=t||Ve(),i=this.platform.getConfig(),a={method:"get",headers:{"x-correlation-id":o,"x-service-instance":r},params:{count:(i?.notificationOptions?.readCount||100)*n,timeout:i?.notificationOptions?.readWaitTime||1e4},url:`/notifications/${e}`};return await this.request(a,!1)};raiseNotification=async(e,t,n,r,o=!0)=>{const i=r||Ve();return o&&ac.Info(`Raising notification to topic ${e}`,{topic:e,payload:JSON.stringify(t),CorrelationId:i}),(await this.request({data:{Source:n||this.platform.getConfig().proxyPath,content:JSON.stringify(t),id:Ve(),time:Ul.utc().toFormat("yyyy-MM-dd'T'hh:mm:ss.uZZ"),topic:e},headers:{"x-correlation-id":i},method:"post",url:"/notifications"},o)).data};raisePushNotification=async(e,t,n,r,o=!0)=>{const i=r||Ve();o&&ac.Info(`Raising push notification to topic ${e}`,{topic:e,payload:JSON.stringify(t),CorrelationId:i});const a=await this.mailboxes.getDefaultPush();return await a.raiseNotification(e,t,n,i,o)}}var Vc={};function Hc(e,t){return void 0===t&&(t=Vc),new _r(t.extensionCodec,t.context,t.maxDepth,t.initialBufferSize,t.sortKeys,t.forceFloat32,t.ignoreUndefined,t.forceIntegerToFloat).encodeSharedRef(e)}var Gc={};function Wc(e,t){return void 0===t&&(t=Gc),new Fr(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeMulti(e)}const zc=(...e)=>{let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n},$c=()=>{const e=new wr;return e.register({type:0,encode:e=>{if((e=>void 0!==e.Subscriptions)(e)){const t=e,n=new Uint8Array([147]),r=Hc(t.Subscriptions),o=Hc(t.Context?.CorrelationId),i=Hc(t.Context?.AccountOverride);return zc(n,r,o,i)}return null},decode:e=>null}),e.register({type:1,encode:e=>{if((e=>void 0!==e.Subscriptions)(e)){const t=e,n=new Uint8Array([147]),r=Hc(t.Subscriptions),o=Hc(t.Context?.CorrelationId),i=Hc(t.Context?.AccountOverride);return zc(n,r,o,i)}return null},decode:e=>null}),e.register({type:2,encode:e=>{if((e=>void 0!==e.Topic)(e)){const t=e,n=new Uint8Array([155]),r=Hc(t.Id),o=Hc(t.Time),i=Hc(t.Topic),a=Hc(t.Source),s=Hc(t.TTL),l=Hc(t.Content),c=Hc(t.ContentType),u=Hc(t.ContentLength),d=Hc(t.BinaryContent),p=Hc(t.Context?.CorrelationId),h=Hc(t.Context?.AccountOverride);return zc(n,r,o,i,a,s,l,c,u,d,p,h)}return null},decode:e=>null}),e.register({type:3,encode:e=>null,decode:e=>{e=e.subarray(1);let t=[];for(let n of Wc(e))t.push(n);return{status:t[0],eTag:null,isSuccess:!t[1],isError:t[1],errorResult:{message:t[2],retry:t[3]}}}}),e.register({type:4,encode:e=>null,decode:e=>{e=e.subarray(1);let t=[];for(let n of Wc(e))t.push(n);return{account:t[0],id:t[1],time:Ul.fromISO(t[2]),topic:t[3],source:t[4],ttl:null!==t[5]?Ul.fromISO(t[5]):null,correlationId:t[6],content:t[7],contentType:t[8],contentLength:t[9],binaryContent:t[10]}}}),e};var Kc=r(518);const Qc=ce.GVDebug.extend("hubConnection").extend("socket"),qc={debuggers:{},log:(e,t)=>{qc.debuggers[e]||(qc.debuggers[e]=Qc.extend(vn[e])),qc.debuggers[e](t)}},Yc=(e,t)=>new Kc.Netmask(`${e}/${t}`).base,Xc=(e,t,n)=>`http://${e}:${t}/${n}-pushnotificationshub`;class Zc extends Nn{getToken;constructor(e){super(console),this.getToken=e}async send(e){return e.headers={...e.headers,Authorization:`Bearer ${this.getToken()}`},super.send(e)}}const Jc=ce.GVDebug.extend("platform").extend("orchestration").extend("channel");class eu extends Qr{static get(...e){return this.instance||(Jc("creating new instance"),this.instance=new eu(...e)),this.instance}constructor(e){super(`${e.orchestration.getLink()}/configuration`,"/api/v1/ArcRule",e)}getArcRules=async e=>{const t=e||Ve();return(await this.request({url:"/",method:"get",headers:{"x-correlation-id":t}})).data};createArcRule=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/",data:e,method:"post",headers:{"x-correlation-id":n}})).data};getArcRuleById=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};updateArcRule=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${t}`,data:e,method:"put",headers:{"x-correlation-id":r}})).data};deleteArcRule=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"delete",headers:{"x-correlation-id":n}})).data}}const tu=ce.GVDebug.extend("platform").extend("orchestration").extend("channel");class nu extends Qr{static get(...e){return this.instance||(tu("creating new instance"),this.instance=new nu(...e)),this.instance}constructor(e){super(e.orchestration.getLink(),"/api/v2/channels",e)}getChannels=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`?isUnAssignedToNetwork=${e}&isUnAssignedToChannelGroup=${t}`,method:"get",headers:{"x-correlation-id":r}})).data};getChannelById=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};updateChannelName=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};createChannel=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/",data:e,method:"post",headers:{"x-correlation-id":n}})).data};updateChannel=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteChannel=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"delete",headers:{"x-correlation-id":n}})).data};updateChannelConfig=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};createChannelArcMode=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/arcmode`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateChannelArcMode=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/configuration/arcmode/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteChannelArcMode=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/arcmode/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createContentRestriction=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/contentrestriction`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateContentRestriction=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/contentrestriction/${t.id}`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteContentRestriction=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/contentrestriction/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createChannelDveTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/dvetemplate`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateChannelDveTemplate=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/configuration/dvetemplate/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteChannelDveTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/dvetemplate/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createChannelMacroParams=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/macroDefaultParameters`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateChannelMacroParams=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/macroDefaultParameters`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteMacroParameter=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/macroDefaultParameters/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};getGraphicsByChannelId=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}/configuration/graphic`,method:"get",headers:{"x-correlation-id":n}})).data};createChannelGraphic=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/graphic`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateChannelGraphics=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/graphic`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteChannelGraphic=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/graphic/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createChannelScteTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/sctetemplate`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateChannelScteTemplate=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/configuration/sctetemplate/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteChannelScteTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/sctetemplate/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createSwitcherConfiguration=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/switcher`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateSwitcherConfiguration=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/switcher`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteSwitcherConfiguration=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}/configuration/switcher`,method:"delete",headers:{"x-correlation-id":n}})).data};createGenericVancTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/genericvanctemplate`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateGenericVancTemplate=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/configuration/genericvanctemplate/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteGenericVancTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/genericvanctemplate/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data}}const ru=ce.GVDebug.extend("platform").extend("orchestration").extend("channelgroup");class ou extends Qr{static get(...e){return this.instance||(ru("creating new instance"),this.instance=new ou(...e)),this.instance}constructor(e){super(e.orchestration.getLink(),"/api/v1/channelgroup",e)}getAllChannelGroups=async e=>{const t=e||Ve();return(await this.request({url:"/",method:"get",headers:{"x-correlation-id":t}})).data};getChannelGroupById=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};createChannelGroup=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/",data:e,method:"post",headers:{"x-correlation-id":n}})).data};addOrUpdateChannelGroupById=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`?channelGroupId=${e}`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteChannelGroup=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"delete",headers:{"x-correlation-id":n}})).data};getChannelGroupAssignedToNetwork=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/networks/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};assignChannelGroupToNetwork=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/networks`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};unAssignChannelGroupFromNetwork=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/networks/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};assignChannelsTochannelGroup=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/channels`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};unAssignChannelsFromChannelGroup=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/channels/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};assignChannelsToNetwork=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/assign`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};unAssignChannelFromNetwork=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/unassign/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};updateChannelGroupWithLocation=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/locations`,data:t,method:"put",headers:{"x-correlation-id":r}})).data}}const iu=ce.GVDebug.extend("platform").extend("orchestration").extend("configuration");class au extends Qr{static get(...e){return this.instance||(iu("creating new instance"),this.instance=new au(...e)),this.instance}constructor(e){super(`${e.orchestration.getLink()}`,"/api/v1/Configuration",e)}getConfiguration=async(e,t)=>{const n=t||Ve();return(await this.request({url:`?type=${e}`,method:"get",headers:{"x-correlation-id":n}})).data};getConfigurationById=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};createConfiguration=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/",data:{name:e},method:"post",headers:{"x-correlation-id":n}})).data};updateConfiguration=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteConfiguration=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"delete",headers:{"x-correlation-id":n}})).data};createChannelArcMode=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/arcmode`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateChannelArcMode=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/arcmode/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteChannelArcMode=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/arcmode/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createContentRestriction=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/contentrestriction`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateContentRestriction=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/contentrestriction/${t.id}`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteContentRestriction=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/contentrestriction/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createChannelDveTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/dvetemplate`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateChannelDveTemplate=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/dvetemplate/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteChannelDveTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/dvetemplate/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createChannelMacroParams=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/macroDefaultParameters`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateChannelMacroParams=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/macroDefaultParameters`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteMacroParameter=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/macroDefaultParameters/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};getGraphicsByChannelId=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}/graphic`,method:"get",headers:{"x-correlation-id":n}})).data};createChannelGraphic=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/graphic`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateChannelGraphics=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/graphic`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteChannelGraphic=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/graphic/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createTemplateScteTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/sctetemplate`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateTemplateScteTemplate=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/sctetemplate/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteTemplateScteTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/sctetemplate/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createGenericVancTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/genericvanctemplate`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateGenericVancTemplate=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/genericvanctemplate/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteGenericVancTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/genericvanctemplate/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};getAggregateDataById=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}/aggregate`,method:"get",headers:{"x-correlation-id":n}})).data};updateLutSettings=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/lutsettings`,method:"put",headers:{"x-correlation-id":r},data:t})).data}}const su=ce.GVDebug.extend("platform").extend("orchestration").extend("customeMetadata");class lu extends Qr{static get(...e){return this.instance||(su("creating new instance"),this.instance=new lu(...e)),this.instance}constructor(e){super(`${e.orchestration.getLink()}`,"/api/v1/Custom-Metadata",e)}getAllCustomMetadata=async e=>{const t=e||Ve();return(await this.request({url:"/all",method:"get",headers:{"x-correlation-id":t}})).data};getCustomMetadata=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/${t}`,method:"get",headers:{"x-correlation-id":r}})).data};createCustomMetadata=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/${t}`,data:n,method:"post",headers:{"x-correlation-id":o}})).data};getAllCustomMetadataByType=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};updateCustomMetadata=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteCustomMetadata=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data}}const cu=ce.GVDebug.extend("platform").extend("orchestration").extend("departures");class uu extends Qr{static get(...e){return this.instance||(cu("creating new instance"),this.instance=new uu(...e)),this.instance}constructor(e){super(`${e.orchestration.getLink()}`,"/api/v1/departures",e)}getDeparturesByNetworkId=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};assignChannelToDeparture=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/assign/${t}/${n}`,method:"put",headers:{"x-correlation-id":o}})).data};departureToBeParked=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/${n}/assign/park`,method:"put",headers:{"x-correlation-id":o}})).data};getDeparturesByNetworkIdAndSiteId=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/${t}`,method:"get",headers:{"x-correlation-id":r}})).data};createDeparture=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${t}/${n}`,data:e,method:"post",headers:{"x-correlation-id":o}})).data};updateDeparture=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${t}/${n}`,method:"put",data:e,headers:{"x-correlation-id":o}})).data};deleteDeparture=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data}}const du=ce.GVDebug.extend("platform").extend("orchestration").extend("network");class pu extends Qr{static get(...e){return this.instance||(du("creating new instance"),this.instance=new pu(...e)),this.instance}constructor(e){super(e.orchestration.getLink(),"/api/v1",e)}getMultiRegionSyncConfiguration=async e=>{const t=e||Ve();return(await this.request({url:"/MultiRegionSynchronization/configuration",method:"get",headers:{"x-correlation-id":t}})).data};editMultiRegionSyncConfiguration=async(e,t)=>{const n=t||Ve();return await this.request({url:"/MultiRegionSynchronization/configuration",data:e,method:"post",headers:{"x-correlation-id":n,"Content-Type":"application/json"}})};doAManualSynchronization=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/MultiRegionSynchronization/playlistSynchronization",data:e,method:"post",headers:{"x-correlation-id":n,"Content-Type":"application/json"}})).data}}const hu=ce.GVDebug.extend("platform").extend("orchestration").extend("network");class fu extends Qr{static get(...e){return this.instance||(hu("creating new instance"),this.instance=new fu(...e)),this.instance}constructor(e){super(e.orchestration.getLink(),"/api/v2/networks",e)}getNetworks=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/?withChannelGroup=${e}`,method:"get",headers:{"x-correlation-id":n}})).data};getNetworkById=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${t}?withChannelGroup=${e}`,method:"get",headers:{"x-correlation-id":r}})).data};createNetwork=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/",data:e,method:"post",headers:{"x-correlation-id":n}})).data};updateNetwork=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteNetwork=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"delete",headers:{"x-correlation-id":n}})).data};getViews=async e=>{const t=e||Ve();return(await this.request({url:"/views",method:"get",headers:{"x-correlation-id":t}})).data};getViewById=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/views/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};updateNetworkToView=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/views/${e}/networks`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteNetworkFromView=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/views/${e}/networks/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};getChannelsByNetworkId=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}/channels`,method:"get",headers:{"x-correlation-id":n}})).data};assignViewToNetwork=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/views/${e}`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteViewFromNetwork=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${t}/views/${e}`,method:"delete",headers:{"x-correlation-id":r}})).data};updateChannelConfig=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};createChannelArcMode=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/arcmode`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateChannelArcMode=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/configuration/arcmode/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteChannelArcMode=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/arcmode/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createChannelMacroParams=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/macroDefaultParameters`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateChannelMacroParams=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/macroDefaultParameters`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};deleteMacroParameter=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/macroDefaultParameters/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createNetworkDveTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/dvetemplate`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateNetworkDveTemplate=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/dvetemplate/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteNetworkDveTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/dvetemplate/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};createChannelScteTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/sctetemplate`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateChannelScteTemplate=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/configuration/sctetemplate/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteChannelScteTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/sctetemplate/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data};assignTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/assign/${t}`,method:"post",headers:{"x-correlation-id":r}})).data};unAssignTemplate=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}/unassign`,method:"post",headers:{"x-correlation-id":n}})).data};createGenericVancTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/genericvanctemplate`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};updateGenericVancTemplate=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/configuration/genericvanctemplate/${t}`,data:n,method:"put",headers:{"x-correlation-id":o}})).data};deleteGenericVancTemplate=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/configuration/genericvanctemplate/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data}}const gu=ce.GVDebug.extend("platform").extend("orchestration").extend("network");class mu extends Qr{static get(...e){return this.instance||(gu("creating new instance"),this.instance=new mu(...e)),this.instance}constructor(e){super(e.orchestration.getLink(),"/api/v1",e)}getAllLogos=async e=>{const t=e||Ve();return(await this.request({url:"/logos",method:"get",headers:{"x-correlation-id":t}})).data};getCurrentNetworkLogos=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/network/${e}/logos`,method:"get",headers:{"x-correlation-id":n}})).data};assignExistingLogoToNetwork=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/network/${e}/logo/${t}/${n}/update`,data:{},method:"put",headers:{"x-correlation-id":o}})).data};assignNewLogoToNetwork=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/network/${e}/logo`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};addNewLogoToLibraryd=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/logo",data:e,method:"put",headers:{"x-correlation-id":n}})).data};deleteLogo=async e=>(await this.request({url:`/logo/${e}`,method:"delete"})).data}const vu=ce.GVDebug.extend("platform").extend("orchestration").extend("network");class yu extends Qr{static get(...e){return this.instance||(vu("creating new instance"),this.instance=new yu(...e)),this.instance}constructor(e){super(e.orchestration.getLink(),"/api/v2/resiliencegroups",e)}GetResilienceGroups=async e=>{const t=e||Ve();return(await this.request({url:"/",method:"get",headers:{"x-correlation-id":t}})).data};GetResilienceGroup=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};createResilienceGroup=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e.id}`,method:"post",data:e.networkIds??[],headers:{"x-correlation-id":n,"Content-Type":"application/json"}})).data};updateResilienceGroup=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e.id}`,data:e.networkIds??[],method:"put",headers:{"x-correlation-id":n,"Content-Type":"application/json"}})).data};deleteResilienceGroup=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"delete",headers:{"x-correlation-id":n,"Content-Type":"application/json"}})).data}}class Au extends Qr{static get(...e){return this.instance||(this.instance=new Au(...e)),this.instance}constructor(e){super(e.orchestration.getLink(),"/api/v1/schedules",e)}getNowNext=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}/now`,method:"get",headers:{"x-correlation-id":n}})).data}}const wu=ce.GVDebug.extend("platform").extend("orchestration").extend("network");class bu extends Qr{static get(...e){return this.instance||(wu("creating new instance"),this.instance=new bu(...e)),this.instance}constructor(e){super(e.orchestration.getLink(),"/api/v1",e)}getUIConfiguration=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/uiconfiguration/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};editUIConfiguration=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/uiconfiguration/${e}`,data:t,method:"put",headers:{"x-correlation-id":r,"Content-Type":"application/json"}})).data}}const _u=ce.GVDebug.extend("platform").extend("orchestration").extend("user-rights");class Cu extends Qr{static get(...e){return this.instance||(_u("creating new instance"),this.instance=new Cu(...e)),this.instance}constructor(e){super(e.orchestration.getLink(),"/api/v1/Configuration/user-rights",e)}createOrUpdateUserRights=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/",data:e,method:"put",headers:{"x-correlation-id":n}})).data};getUserRightsGroup=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/network/${t}`,method:"get",headers:{"x-correlation-id":r}})).data};deleteUserRightsGroup=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"delete",headers:{"x-correlation-id":n}})).data};deleteUserRightsGroupFromNetwork=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/network/${t}`,method:"delete",headers:{"x-correlation-id":r}})).data}}ce.GVDebug.extend("platform").extend("orchestration");class Eu extends Qr{network;networkLogo;gvChannel;gvChannelGroup;gvArcRule;gvConfigurationV2;gvCustomMetadata;uiConfiguration;gvDeparture;multiRegionSync;resilienceGroup;schedule;userRights;constructor(e){const t=e.getConfig().namespace;super(t?`/${t}/orchestration`:"/orchestration","/api/v2",e),this.network=null}getNetwork(){return this.network||(this.network=fu.get(this.platform)),this.network}getNetworkLogo(){return this.networkLogo||(this.networkLogo=mu.get(this.platform)),this.networkLogo}getChannels(){return this.gvChannel||(this.gvChannel=nu.get(this.platform)),this.gvChannel}getChannelGroups(){return this.gvChannelGroup||(this.gvChannelGroup=ou.get(this.platform)),this.gvChannelGroup}getArcRules(){return this.gvArcRule||(this.gvArcRule=eu.get(this.platform)),this.gvArcRule}getConfiguration(){return this.gvConfigurationV2||(this.gvConfigurationV2=au.get(this.platform)),this.gvConfigurationV2}getCustomMetadata(){return this.gvCustomMetadata||(this.gvCustomMetadata=lu.get(this.platform)),this.gvCustomMetadata}getUIConfiguration(){return this.uiConfiguration||(this.uiConfiguration=bu.get(this.platform)),this.uiConfiguration}getDeparture(){return this.gvDeparture||(this.gvDeparture=uu.get(this.platform)),this.gvDeparture}getMultiRegionSync(){return this.multiRegionSync||(this.multiRegionSync=pu.get(this.platform)),this.multiRegionSync}getResilienceGrpup(){return this.resilienceGroup||(this.resilienceGroup=yu.get(this.platform)),this.resilienceGroup}getSchedule(){return this.schedule||(this.schedule=Au.get(this.platform)),this.schedule}getUserRights(){return this.userRights||(this.userRights=Cu.get(this.platform)),this.userRights}}const Su=ce.GVDebug.extend("platform").extend("secret");class Ou extends Qr{static get(...e){return this.instance||(Su("creating new instance"),this.instance=new Ou(...e)),this.instance}constructor(e){super("/secret","/api/v1",e)}getCategories=async e=>{try{const t=await this.request({method:"get",url:`/categories/${e}`});return Su("get categories Success",t.data.length),t.data}catch(e){throw Su("get categories Failed",e),e}};getNamespaces=async()=>{try{const e=await this.request({method:"get",url:"/namespaces"});return Su("get namespaces Success",e.data.length),e.data}catch(e){throw Su("get namespaces Failed",e),e}};getSecrets=async(e,t,n=null,r=!1)=>{try{let o=new URLSearchParams;e&&o.append("namespace",e),t&&o.append("type",t),n?.forEach(e=>{o.append("category",e)}),o.append("includeDeprecated",r?"true":"false");const i=await this.request({method:"get",url:"/secrets",params:o});return Su("get secrets Success",i.data.secrets.length),i.data}catch(e){throw Su("get secrets Failed",e),e}};createSecret=async e=>{try{const t=await this.request({method:"post",url:"/secret",data:e});return Su("create secret Success",t.data),t.data}catch(e){throw Su("create secret Failed",e),e}};getSecret=async(e,t,n=!1)=>{try{const r=await this.request({method:"get",url:`/secret/${e}/${t}`,params:{includeHistory:n}});return Su("get secret Success",r.data),r.data}catch(e){throw Su("get secret Failed",e),e}};getSecretValue=async(e,t)=>{try{const n=await this.request({method:"get",url:`/secret/${e}/${t}/value`});return Su("get secret value Success",n.data),n.data}catch(e){throw Su("get secret value Failed",e),e}};updateSecret=async(e,t,n,r)=>{try{const o=await this.request({method:"patch",url:`/secret/${e}/${t}`,headers:{"if-match":n||'"*"'},data:r});return Su("update secret Success",o.data),o.data}catch(e){throw Su("update secret Failed",e),e}};deleteSecret=async(e,t,n)=>{try{const r=await this.request({method:"delete",url:`/secret/${e}/${t}`,headers:{"if-match":n||'"*"'}});return Su("delete secret Success",JSON.stringify(r.data)),!0}catch(e){throw Su("delete secret Failed",e),e}};allowSecretApproval=async e=>{try{const t=await this.request({method:"post",url:`/secret/approvals/${e}/allow`});return Su(`Secret approval '${e}' allowed`),t.status>=200&&t.status<300}catch(t){throw Su(`Allow secret approval '${e}' Failed`,t),t}};denySecretApproval=async e=>{try{const t=await this.request({method:"post",url:`/secret/approvals/${e}/deny`});return Su(`Secret approval '${e}' denied`),t.status>=200&&t.status<300}catch(t){throw Su(`Deny secret approval '${e}' Failed`,t),t}};getSecretApprovals=async e=>{try{const t=await this.request({method:"get",url:`/secret/approvals/${e}`});return Su("get secret approvals Success",t.data.approvals.length),t.data}catch(e){throw Su("get secret approvals Failed",e),e}}}var xu;!function(e){e.UserPassword="UserPassword",e.ClientSecret="Client",e.Secret="Secret"}(xu||(xu={}));const Du=ce.GVDebug.extend("platform");class Pu{impersonateUser;impersonateToken;static impersonations;static impersonate(e,t){return this.impersonations||(this.impersonations={}),this.impersonations[e]||(this.impersonations[e]=new Pu(Pu.get().config,Pu.get().storage,Pu.get().sessionStorage,e,t)),this.impersonations[e].setToken(t),this.impersonations[e]}static get(e){if(!this.platform){if(!e)throw new Error("GVPlatform has not been created and no config was passed in");Du("creating new instance"),this.platform=new Pu(e)}return this.platform}static platform;get impersonation(){return!!this.impersonateUser}appApi;_cluster;discovery;identity;notifications;logging;auth;base;assetManagement;configuration;globalconfiguration;storage;sessionStorage;computeControl;localState;billing;amppControl;networks;orchestration;audit;secrets;nullStorage;client;config;pushNotificationsHub;socketDebug;hubSemaphore;localPushCheckInterval=null;awaitingLocalPushConnection=null;get cluster(){if(!this._cluster)throw new Error("Tried to access cluster but it is not enabled, set the `clusterUri` option in the config.");return this._cluster}constructor(e,t,n,r,o){this.impersonateUser=r,this.impersonateToken=o,r||Du("config",JSON.stringify(e)),this.config=e,this.client=le.create({adapter:"function"==typeof fetch&&Pe,baseURL:e.platformUri}),this.nullStorage=ce.GVStorage.get(null),ce.GVStorage.setBase(this.config.proxyPath);const i=ce.GVStorage.get("platform",t,n);switch(this.storage=i.storage,this.sessionStorage=i.session,this.logging=ac.get(this),this.logging.setSource(this.config.proxyPath||this.config.applicationId),e.auth){case Wl.IMPLICIT:this.auth=lc.get(e);break;case Wl.CLIENT_CREDENTIALS:this.auth=Kl.get(e);break;default:throw new Error("Authentication type not set")}this.client.interceptors.request.use(e=>(e.headers||(e.headers={}),this.impersonateUser?this.impersonateToken?e.headers.Authorization=`Bearer ${this.impersonateToken}`:e.headers["x-account"]=this.impersonateUser:e.headers?.Authorization||(this.auth.isAuthenticated()?e.headers.Authorization=`Bearer ${this.auth.getToken()}`:e.headers.Authorization=null),e),e=>Promise.reject(e)),this.discovery=new go(this),this.identity=new pc(this),this.notifications=new Uc(this),this.configuration=new uo(this),this.globalconfiguration=new vo(this),this.computeControl=new Fo(this),this.billing=new eo(this),this.amppControl=new wo(this),this.networks=new Dc(this),this.orchestration=new Eu(this),this.audit=new Xr(this),this.secrets=new Ou(this),this.socketDebug=Du.extend("socket"),this.config.applicationId&&this.logging.addProperty("ApplicationId",this.config.applicationId),this.assetManagement=this.impersonateUser?jr.impersonate(this.impersonateUser,this.impersonateToken,this,this.amCallback):jr.get(this.config,this.auth),this.base=this.impersonateUser?td.impersonate(this.impersonateUser,this.impersonateToken,this.baseCallback):td.get(this.config,this.auth),this.appApi=this.impersonateUser?Jt.impersonate(this.impersonateUser,this.impersonateToken,this.appApiCallback):Jt.get(this.config,this.auth),this.config.clusterUri&&(this._cluster=this.impersonateUser?bp.impersonate(this.impersonateUser,this.impersonateToken,this,this.clusterCallback):bp.get(this.config,this.auth,this))}async getHubConnection(e){if(this.hubSemaphore)return new Promise((t,n)=>{setTimeout(()=>{t(this.getHubConnection(e))},100)});if(this.pushNotificationsHub)return this.pushNotificationsHub;this.hubSemaphore=!0;try{let t=null,n=null;if(this.awaitingLocalPushConnection)n=!0,t=this.awaitingLocalPushConnection,this.awaitingLocalPushConnection=null;else{const r=await this.createHubConnection(e);t=r.connection,n=r.isLocalPush}this.pushNotificationsHub=t,this.config.siteId&&!n?this.startCheckingForLocalPushHub(e):this.stopCheckingForLocalPushHub()}catch(e){throw e}finally{this.hubSemaphore=!1}return this.pushNotificationsHub}async getMailbox(){return await this.notifications.mailboxes.getDefault()}async getPushMailbox(){return await this.notifications.mailboxes.getDefaultPush()}getClient(){return this.client}getConfig(){return this.config}isHubConnection=()=>this.pushNotificationsHub&&"Connected"===this.pushNotificationsHub.state;setToken=e=>{this.impersonateToken=e,this.setClusterToken&&this.setClusterToken(e),this.setBaseToken&&this.setBaseToken(e),this.setAppApiToken&&this.setAppApiToken(e),this.setAssetManagementToken&&this.setAssetManagementToken(e)};setClusterToken;clusterCallback=e=>{this.setClusterToken=e};setBaseToken;baseCallback=e=>{this.setBaseToken=e};setAppApiToken;appApiCallback=e=>{this.setAppApiToken=e};setAssetManagementToken;amCallback=e=>{this.setAssetManagementToken=e};async createHubConnection(e,t=!1){const n=await(async(e,t,n,r,o=!1)=>{const i=[],a=await(async(e,t,n)=>{if(e){ac.Info(`Searching for LocalPushNotificationRelay with SiteId: ${e}`);try{const r=Pu.get();return(await(async(e,t)=>{const n={type:"LocalPushNotificationRelay-Hub",tag:`SiteId=${t}`};return(await e.discovery.getServices(n)).sort((e,t)=>new Date(t.registeredTimeUtc).getTime()-new Date(e.registeredTimeUtc).getTime())})(r,e)).flatMap(e=>((e,t,n)=>{const r=e.serviceMetadata?.localAddresses?.split(", ");if(t&&n){const o=Yc(t,n),i=r.find(e=>Yc(e,n)===o);return i?[Xc(i,e.servicePort.toString(),e.serviceId)]:[]}return r.map(t=>Xc(t,e.servicePort.toString(),e.serviceId))})(e,t,n))}catch(e){ac.Error(`Error Finding LocalPushNotificationRelay: ${e}`)}}return[]})(t,n,r);return i.push(...a.map(e=>({serviceUri:e,isLocalPushHub:!0}))),o||i.push({serviceUri:`${e}/pushnotificationshub`,isLocalPushHub:!1}),i})(this.config.platformUri,this.config.siteId,this.config.localIpAddress,this.config.localSubnetMask,t);let r=null;for(const t of n){ac.Info(`Connecting to pushNotificationsHub at: ${t.serviceUri}`);const n=(new er).withUrl(t.serviceUri,{accessTokenFactory:this.auth.getToken,httpClient:new Zc(this.auth.getToken),skipNegotiation:!0,transport:yn.WebSockets}).withAutomaticReconnect({nextRetryDelayInMilliseconds:e=>{if(this.config.siteId){const t=this.config.notificationOptions?.maxRetryCountAfterLostConnection??3;if(e.previousRetryCount>t-1)return null}return this.config.notificationOptions?.retryIntervalAfterLostConnectionMs??3e4}}).configureLogging(vn.Trace).configureLogging(qc);try{return e?n.withHubProtocol(new Br({extensionCodec:$c()})):n.withHubProtocol(new Zn),r=n.build(),r.onclose(async()=>{if(this.config.siteId){this.stopCheckingForLocalPushHub(),await r.stop(),this.pushNotificationsHub=null;const t=async()=>{for(;;)try{await this.getHubConnection(e);break}catch(e){await new Promise(e=>setTimeout(e,5e3))}};await t()}else{const e=async()=>{try{await r.start()}catch(t){setTimeout(e,5e3)}};await e()}}),await r.start(),ac.Info(`Connected to pushNotificationsHub at: ${t.serviceUri}`),{connection:r,isLocalPush:t.isLocalPushHub}}catch(e){await(r?.stop()),r=null,ac.Error(`Error connecting to pushNotificationsHub at: ${t.serviceUri}`)}}throw new Error("Could not establish any pushNotification connection")}startCheckingForLocalPushHub(e){this.localPushCheckInterval=window.setInterval(async()=>{try{const t=await this.createHubConnection(e,!0);return this.awaitingLocalPushConnection=t.connection,void await this.pushNotificationsHub.stop()}catch(e){}},this.config.notificationOptions?.searchForLocalpushIntervalMs??1e4)}stopCheckingForLocalPushHub(){this.localPushCheckInterval&&(clearInterval(this.localPushCheckInterval),this.localPushCheckInterval=null)}}class Mu{id;type;cidr;accountBitRange;maxAccount;nodeBitRange;maxNode;endpoints}class Tu{networks}class Ru{privateAddress;certificateAuthority;id;publicHost;publicPort}class Iu{endpoints;networks}class Fu{account;networkId;accountAddress}class ku{type;cidr;accountBitRange;nodeBitRange;Endpoint}class Lu{networkId;maxAccount;next;previousAvailable}class Bu{accountAddress;subnetMask;rangeStart;rangeEnd}class Nu{account;accountAddress;accountNetworkId;maxAccount;networkId;rangeEnd;rangeStart}const ju=ce.GVDebug.extend("platform").extend("localstate");class Uu extends Qr{static get(...e){return this.instance||(ju("creating new instance"),this.instance=new Uu(...e)),this.instance}constructor(e){super("/local-state","/api/v1/state",e)}getDeploymentsStates=async()=>{try{const e=await this.request({method:"get",url:"/locals-states"},!1);if(ju("getDeploymentsStates -> Success",JSON.stringify(e.data)),Array.isArray(e.data))return e.data;throw new Error("Failed to load AMPP Local deployments states")}catch(e){throw ju("getDeploymentsStates -> Failed",e),e}}}class Vu{filter;select;offset;limit}const Hu=ce.GVDebug.extend("base").extend("base");class Gu{static instance;static instances;baseUrl;apiUrl;appApiUrl;base;constructor(e,t,n,r=!1){this.appApiUrl="/app/api/v1",this.baseUrl=e+(r?this.appApiUrl:""),this.apiUrl=t,this.base=n||Jt.get()}getLink(){return`${this.baseUrl.startsWith("http")?"":this.base.getClient().defaults.baseURL}${this.baseUrl}`}getApiLink(){return`${this.baseUrl.startsWith("http")?"":this.base.getClient().defaults.baseURL}${this.baseUrl}${this.apiUrl}`}get(e,t,n=!1,r=!0){t||(t={}),t.headers||(t.headers={}),t.headers["x-correlation-id"]||(t.correlationId?t.headers["x-correlation-id"]=t.correlationId:t.headers["x-correlation-id"]=Ve());const o=t.headers["x-correlation-id"].toString(),i=`${this.baseUrl}${this.apiUrl}${e}`;return ac[n?"Debug":"Trace"](`Making GET request to ${i}`,{baseUrl:this.baseUrl,apiUrl:this.apiUrl,url:e,method:"GET",CorrelationId:o},["GET","AppApi"]),this.base.getClient().get(i,t).catch(this.handleError.bind(this,i,o,r))}request(e,t=!0,n=!0){e||(e={method:"GET"}),e.headers||(e.headers={}),e.headers["x-correlation-id"]||(e.correlationId?e.headers["x-correlation-id"]=e.correlationId:e.headers["x-correlation-id"]=Ve());const r=e.headers["x-correlation-id"].toString(),o=`${this.baseUrl}${this.apiUrl}${e.url}`;return ac[t?"Debug":"Trace"](`Making ${e.method.toUpperCase()} request to ${o}`,{CorrelationId:r,apiUrl:this.apiUrl,baseUrl:this.baseUrl,method:e.method.toUpperCase(),payload:JSON.stringify(e.data),url:e.url},[e.method.toUpperCase(),"AppApi"]),this.base.getClient().request(tn()(e,{url:o})).catch(this.handleError.bind(this,o,r,n))}handleError(e,t,n,r){throw r?.response?.status&&(401===r.response.status?Hu("unauthorised",e):(Hu("ERROR",r),ac[!0===n?"Error":"Trace"](`Error with url ${e} - Status ${r.response.status} ${r.response.statusText} - Body ${JSON.stringify(r.response.data)}`,{CorrelationId:t},["AppApi"]),Hu("error",e,r.response.status,r.response.statusText))),r}}const Wu=ce.GVDebug.extend("app").extend("api").extend("files");class zu extends Gu{static get(e,t){return this.instance||(Wu("creating new instance",e),this.instance=new zu(e,t)),this.instance}constructor(e,t){super(e,"/files",t)}getFiles(e,t){return this.request({url:"/",data:{location:e,options:t},method:"POST"})}}const $u=ce.GVDebug.extend("app").extend("api").extend("logging");class Ku extends Gu{static get(e){return this.instance||($u("creating new instance"),this.instance=new Ku(e)),this.instance}constructor(e){e||(e=Jt.get()),super(window.location.origin+e.getConfig().proxyPath,"/logging",e,!0),window.__GVAPPLOGGINGCONFIG__=this}getConfig(){return this.get("")}updateConfig(e){return this.request({url:"",method:"POST",data:e})}}const Qu=ce.GVDebug.extend("base").extend("base");class qu{static instance;static instances;baseUrl;apiUrl;base;constructor(e,t,n){this.baseUrl=e,this.apiUrl=t,this.base=n||td.get()}getLink(){return`${this.baseUrl.startsWith("http")?"":this.base.getClient().defaults.baseURL}${this.baseUrl}`}getApiLink(){return`${this.baseUrl.startsWith("http")?"":this.base.getClient().defaults.baseURL}${this.baseUrl}${this.apiUrl}`}get(e,t,n=!1,r=!0){t||(t={}),t.headers||(t.headers={}),t.headers["x-correlation-id"]||(t.correlationId?t.headers["x-correlation-id"]=t.correlationId:t.headers["x-correlation-id"]=Ve());const o=t.headers["x-correlation-id"].toString(),i=`${this.baseUrl}${this.apiUrl}${e}`;return ac[n?"Debug":"Trace"](`Making GET request to ${i}`,{baseUrl:this.baseUrl,apiUrl:this.apiUrl,url:e,method:"GET",CorrelationId:o},["GET","Base"]),this.base.getClient().get(i,t).catch(this.handleError.bind(this,i,o,r))}request(e,t=!0,n=!0){e||(e={method:"GET"}),e.headers||(e.headers={}),e.headers["x-correlation-id"]||(e.correlationId?e.headers["x-correlation-id"]=e.correlationId:e.headers["x-correlation-id"]=Ve());const r=e.headers["x-correlation-id"].toString(),o=`${this.baseUrl}${this.apiUrl}${e.url}`;return ac[t?"Debug":"Trace"](`Making ${e.method.toUpperCase()} request to ${o}`,{CorrelationId:r,apiUrl:this.apiUrl,baseUrl:this.baseUrl,method:e.method.toUpperCase(),payload:JSON.stringify(e.data),url:e.url},[e.method.toUpperCase(),"Base"]),this.base.getClient().request(tn()(e,{url:o})).catch(this.handleError.bind(this,o,r,n))}handleError(e,t,n,r){throw r?.response?.status&&(401===r.response.status?Qu("unauthorised",e):(Qu("ERROR",r),ac[!0===n?"Error":"Trace"](`Error with url ${e} - Status ${r.response.status} ${r.response.statusText} - Body ${JSON.stringify(r.response.data)}`,{CorrelationId:t},["Base"]),Qu("error",e,r.response.status,r.response.statusText))),r}}const Yu=ce.GVDebug.extend("base").extend("framecache");class Xu extends qu{static get(e,t){return this.instances||(this.instances={}),this.instances[e]||(Yu("creating new instance",e),this.instances[e]=new Xu(e,t)),this.instances[e]}constructor(e,t){super(e.startsWith("http")?e:`/framecache/${e}`,"/api/v1",t)}async getFlowPreview(e,t){try{const n=await this.get(`/flows/${e}/preview?width=${t}`,{responseType:"arraybuffer"},!1,!1),r=btoa(new Uint8Array(n.data).reduce((e,t)=>e+String.fromCharCode(t),""));return{img:`data:${String(n.headers["content-type"]).toLowerCase()};base64,${r}`,status:200}}catch(e){return{img:null,status:e&&e.response&&e.response.status}}}getFlows=async e=>{try{return(await this.get(`/flows/${e}`)).data}catch(e){return[]}}}const Zu=ce.GVDebug.extend("base").extend("framecaches");class Ju extends qu{static get(...e){return this.instance||(Zu("creating new instance"),this.instance=new Ju(...e)),this.instance}frameCaches;loading;constructor(e){super("/framecache","",e),this.frameCaches={},this.loading={}}getFrameCache=async e=>{if(!this.frameCaches[e]){this.loading[e]||(this.loading[e]=Pu.get().discovery.getServices({instance:e}));let t=e;const n=(await this.loading[e]).find(e=>"framecache"===e.serviceType);n&&(t=n.serviceUrl),this.frameCaches[e]=Xu.get(t,this.base),delete this.loading[e]}return this.frameCaches[e]}}const ed=ce.GVDebug.extend("base");class td{impersonateUser;impersonateToken;static impersonations;static impersonate(e,t,n){return this.impersonations||(this.impersonations={}),this.impersonations[e]||(this.impersonations[e]=new td(td.get().config,td.get().auth,e,t,n)),this.impersonations[e].setToken(t),this.impersonations[e]}static get(e,t){if(!this.base){if(!e)throw new Error("GVPlatform has not been created and no config was passed in");ed("creating new instance"),this.base=new td(e,t)}return this.base}static base;auth;framecache;client;config;constructor(e,t,n,r,o){this.impersonateUser=n,this.impersonateToken=r,ed("config",JSON.stringify(e)),o&&o(this.setToken.bind(this)),this.config=e,this.client=le.create({baseURL:e.baseUri,adapter:"function"==typeof fetch&&Pe}),this.auth=t,this.client.interceptors.request.use(e=>(e.headers||(e.headers={}),this.impersonateUser?this.impersonateToken?e.headers.Authorization=`Bearer ${this.impersonateToken}`:e.headers["x-account"]=this.impersonateUser:e.headers?.Authorization||(this.auth.isAuthenticated()?e.headers.Authorization=`Bearer ${this.auth.getToken()}`:e.headers.Authorization=null),e),e=>Promise.reject(e)),this.framecache=new Ju(this)}getClient(){return this.client}getConfig(){return this.config}setToken(e){this.impersonateToken=e}}const nd=ce.GVDebug.extend("cluster").extend("api"),rd=ce.GVDebug.extend("cluster").extend("api").extend("impersonation");class od{static instance;static instances;baseUrl;apiUrl;cluster;constructor(e,t,n){this.baseUrl=e,this.apiUrl=t,this.cluster=n||bp.get()}getLink(){return`${this.cluster.getClient().defaults.baseURL}${this.baseUrl}`}getApiLink(){return`${this.cluster.getClient().defaults.baseURL}${this.baseUrl}${this.apiUrl}`}get(e,t,n=!1,r=!0){this.cluster.impersonation&&(n=!1,r=!1),t||(t={}),t.headers||(t.headers={}),t.headers["x-correlation-id"]||(t.correlationId?t.headers["x-correlation-id"]=t.correlationId:t.headers["x-correlation-id"]=Ve());const o=t.headers["x-correlation-id"].toString(),i=`${this.baseUrl}${this.apiUrl}${e}`;return ac[n?"Debug":"Trace"](`Making GET request to ${i}`,{baseUrl:this.baseUrl,apiUrl:this.apiUrl,url:e,method:"GET",CorrelationId:o},["GET","Cluster"]),this.cluster.getClient().get(i,t).catch(this.handleError.bind(this,i,o,r))}delete(e,t,n=!1,r=!0){this.cluster.impersonation&&(n=!1,r=!1),t||(t={}),t.headers||(t.headers={}),t.headers["x-correlation-id"]||(t.correlationId?t.headers["x-correlation-id"]=t.correlationId:t.headers["x-correlation-id"]=Ve());const o=t.headers["x-correlation-id"].toString(),i=`${this.baseUrl}${this.apiUrl}${e}`;return ac[n?"Debug":"Trace"](`Making DELETE request to ${i}`,{baseUrl:this.baseUrl,apiUrl:this.apiUrl,url:e,method:"DELETE",CorrelationId:o},["DELETE","Cluster"]),this.cluster.getClient().delete(i,t).catch(this.handleError.bind(this,i,o,r))}post(e,t=null,n,r=!1,o=!0){this.cluster.impersonation&&(r=!1,o=!1),n||(n={}),n.headers||(n.headers={}),n.headers["x-correlation-id"]||(n.correlationId?n.headers["x-correlation-id"]=n.correlationId:n.headers["x-correlation-id"]=Ve()),n.headers.Accept="application/json, text/plain",n.headers["Content-Type"]="application/json;charset=UTF-8";const i=n.headers["x-correlation-id"].toString(),a=`${this.baseUrl}${this.apiUrl}${e}`;ac[r?"Debug":"Trace"](`Making POST request to ${a}`,{baseUrl:this.baseUrl,apiUrl:this.apiUrl,url:e,method:"POST",CorrelationId:i},["POST","Cluster"]);let s=JSON.stringify(t);return this.cluster.getClient().post(a,s,n).catch(this.handleError.bind(this,a,i,o))}put(e,t=null,n,r=!1,o=!0){this.cluster.impersonation&&(r=!1,o=!1),n||(n={}),n.headers||(n.headers={}),n.headers["x-correlation-id"]||(n.correlationId?n.headers["x-correlation-id"]=n.correlationId:n.headers["x-correlation-id"]=Ve()),n.headers.Accept="application/json, text/plain",n.headers["Content-Type"]="application/json;charset=UTF-8";const i=n.headers["x-correlation-id"].toString(),a=`${this.baseUrl}${this.apiUrl}${e}`;ac[r?"Debug":"Trace"](`Making POST request to ${a}`,{baseUrl:this.baseUrl,apiUrl:this.apiUrl,url:e,method:"POST",CorrelationId:i},["POST","Cluster"]);let s=JSON.stringify(t);return this.cluster.getClient().put(a,s,n).catch(this.handleError.bind(this,a,i,o))}request(e,t=!0,n=!0){this.cluster.impersonation&&(t=!1,n=!1),e||(e={method:"GET"}),e.headers||(e.headers={}),e.headers["x-correlation-id"]||(e.correlationId?e.headers["x-correlation-id"]=e.correlationId:e.headers["x-correlation-id"]=Ve());const r=e.headers["x-correlation-id"].toString(),o=`${this.baseUrl}${this.apiUrl}${e.url}`;return ac[t?"Debug":"Trace"](`Making ${e.method.toUpperCase()} request to ${o}`,{CorrelationId:r,apiUrl:this.apiUrl,baseUrl:this.baseUrl,method:e.method.toUpperCase(),payload:JSON.stringify(e.data),url:e.url},[e.method.toUpperCase(),"Cluster"]),this.cluster.getClient().request(tn()(e,{url:o})).catch(this.handleError.bind(this,o,r,n))}handleError(e,t,n,r,...o){throw r?.response?.status&&(401===r.response.status?(this.cluster.impersonation?rd("unauthorised",e):nd("unauthorised",e),this.cluster.auth.validateAuthenticated().validationResult.before||this.cluster.auth.login()):(ac[!0===n?"Error":"Trace"](`Error with url ${e} - Status ${r.response.status} ${r.response.statusText} - Data ${JSON.stringify(r.response.data)}`,{CorrelationId:t,error:r.response.data&&r.response.data.message?r.response.data.message:void 0},["Cluster"]),this.cluster.impersonation?rd("error",e,r.response.status,r.response.statusText):nd("error",e,r.response.status,r.response.statusText))),r}}const id=ce.GVDebug.extend("cluster").extend("fabrics").extend("fabric");class ad extends od{fabricId;static get(e,...t){return this.instances||(this.instances={}),this.instances[e]||(id("creating new instance",e),this.instances[e]=new ad(e,...t)),this.instances[e]}constructor(e,t){super("/cluster/fabric",`/api/v1/fabric/${e}`,t),this.fabricId=e}getFabric=async()=>(await this.get("/fabric")).data;getNodes=async()=>(await this.get("/nodes")).data.nodes;assignNode=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/assign",data:{nodeId:e},method:"post",headers:{"x-correlation-id":n}})).data};unassignNode=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/unassign",data:{nodeId:e},method:"post",headers:{"x-correlation-id":n}})).data};deleteFabric=async(e='"*"',t)=>{const n=t||Ve();return(await this.request({url:"/",method:"delete",headers:{"if-match":e,"x-correlation-id":n}})).data};update=async(e,t='"*"',n,r)=>{const o=r||Ve();return(await this.request({url:"/",data:{name:e,categories:n},method:"put",headers:{"if-match":t,"x-correlation-id":o}})).data};enableFabricWatermarking=async(e,t=null)=>(await this.request({url:"/watermarking/enable",params:{comment:t},method:"post",headers:{"x-account-id":e}})).data;disableFabricWatermarking=async(e,t=null)=>(await this.request({url:"/watermarking/disable",params:{comment:t},method:"post",headers:{"x-account-id":e}})).data;getConfiguration=async()=>await Pu.get().configuration.getConfiguration(`gv/fabric/${this.fabricId}/config`,!0)}const sd=ce.GVDebug.extend("cluster").extend("fabrics");class ld extends od{static get(...e){return this.instance||(sd("creating new instance"),this.instance=new ld(...e)),this.instance}fabrics;constructor(e){super("/cluster/fabric","/api/v1",e),this.fabrics={}}getFabric(e){return this.fabrics[e]||(this.fabrics[e]=ad.get(e,this.cluster)),this.fabrics[e]}getFabrics=async(e,t)=>(await this.get("/fabrics",{params:{includeNodes:e,fabricType:t}})).data.fabrics;getFabricsByAccount=async(e,t)=>(await this.get(`/fabrics/${e}`,{params:{includeNodes:t}})).data.fabrics;addFabric=async(e,t,n)=>{const r=t||Ve();return(await this.request({url:"/fabric",data:{name:e,categories:n},method:"post",headers:{"x-correlation-id":r}})).data};updateFabric=async(e,t,n,r,o)=>this.getFabric(e).update(t,n,o,r);deleteFabric=async(e,t,n)=>this.getFabric(e).deleteFabric(t,n)}const cd=ce.GVDebug.extend("cluster").extend("control");class ud extends od{static get(...e){return this.instance||(cd("creating new instance"),this.instance=new ud(...e)),this.instance}constructor(e){super("/cluster/control","/api/v1",e)}startWorkload=async(e,t,n)=>{const r=t||Ve();return ac.Info(`Starting Workload ${e}`,{CorrelationId:r,WorkloadId:e},["Start","Control"]),(await this.request({data:{properties:n},headers:{"x-correlation-id":r},method:"post",url:`/workload/${e}/start`})).data};stopWorkload=async(e,t)=>{const n=t||Ve();return ac.Info(`Stopping Workload ${e}`,{CorrelationId:n,WorkloadId:e},["Stop","Control"]),(await this.request({method:"post",url:`/workload/${e}/stop`})).data}}var dd,pd,hd,fd,gd,md;!function(e){e.Node="Node",e.Ice="Ice",e.Web="Web",e.NDI="NDI",e.SDI="SDI",e.SMPTE2110="SMPTE2110",e.TransportStream="TransportStream",e.Orbit="Orbit",e.NMOS="NMOS",e.TVU="TVU"}(dd||(dd={})),function(e){e[e.Windows=0]="Windows",e[e.LinuxX64=1]="LinuxX64",e[e.LinuxArm=2]="LinuxArm"}(pd||(pd={})),function(e){e.Platform="Platform",e.Console="Console"}(hd||(hd={})),function(e){e.Disabled="Disabled",e.Whitelist="Whitelist",e.AllowAny="AllowAny"}(fd||(fd={})),function(e){e.Batch="Batch",e.Interactive="Interactive",e.LowLatency="LowLatency",e.SustainedLowLatency="SustainedLowLatency",e.NoGCRegion="NoGCRegion"}(gd||(gd={})),function(e){e.Normal="Normal",e.Idle="Idle",e.High="High",e.RealTime="RealTime",e.BelowNormal="BelowNormal",e.AboveNormal="AboveNormal"}(md||(md={}));const vd=ce.GVDebug.extend("cluster").extend("packages");class yd extends od{static get(...e){return this.instance||(vd("creating new instance"),this.instance=new yd(...e)),this.instance}constructor(e){super("/cluster/packages","/api/v1",e)}validOS=e=>Object.values(pd).indexOf(e)>=0;getPackages=async e=>{let t=new URLSearchParams;return e.forEach(e=>{this.validOS(e)&&t.append("packageOS",e)}),(await this.request({method:"get",params:t,url:"/packages"})).data.packages};getTitles=async e=>{let t=new URLSearchParams;return e.forEach(e=>{this.validOS(e)&&t.append("packageOS",e)}),(await this.request({method:"get",params:t,url:"/packages/titles"})).data};getNames=async(e=null,t=null)=>{let n=new URLSearchParams;return e?.forEach(e=>{this.validOS(e)&&n.append("packageOS",e)}),t&&n.append("packageType",t),(await this.request({method:"get",params:n,url:"/packages/names"})).data};getPackage=async(e,t)=>{let n=new URLSearchParams;return t.forEach(e=>{this.validOS(e)&&n.append("packageOS",e)}),(await this.request({method:"get",params:n,url:`/package/${encodeURIComponent(e)}`})).data};getVersion=async(e,t,n)=>{let r=new URLSearchParams;return this.validOS(n)&&r.append("packageOS",n),(await this.request({method:"get",params:r,url:`/package/${encodeURIComponent(e)}/${t}`})).data};getVersions=async(e,t)=>{let n=new URLSearchParams;return t.forEach(e=>{this.validOS(e)&&n.append("packageOS",e)}),(await this.request({method:"get",params:n,url:`/package/${encodeURIComponent(e)}/versions`})).data};getApproved=async e=>(await this.get(`/package/${encodeURIComponent(e)}/approved`)).data;getLatest=async(e,t)=>{let n=new URLSearchParams;return this.validOS(t)&&n.append("packageOS",t),(await this.request({method:"get",params:n,url:`/package/${encodeURIComponent(e)}/latest`})).data};getFile=async e=>(await this.get(`/file/${e}/latest`)).data;approveVersion=async(e,t,n)=>{const r=n||Ve();ac.Info(`Approving Package ${e} Version ${t}`,{CorrelationId:r,packageName:e,packageVersion:t},["Approve","Packages"]);const o=await this.request({headers:{"x-correlation-id":r},method:"post",url:`/package/${encodeURIComponent(e)}/${t}/approve`});return o.status>=200&&o.status<300};unapproveVersion=async(e,t,n)=>{const r=n||Ve();ac.Info(`Unapproving Package ${e} Version ${t}`,{CorrelationId:r,packageName:e,packageVersion:t},["Unapprove","Packages"]);const o=await this.request({headers:{"x-correlation-id":r},method:"post",url:`/package/${encodeURIComponent(e)}/${t}/unapprove`});return o.status>=200&&o.status<300};deleteVersion=async(e,t,n)=>{const r=n||Ve();ac.Info(`Deleting Package ${e} Version ${t}`,{CorrelationId:r,packageName:e,packageVersion:t},["Delete","Packages"]);const o=await this.request({headers:{"x-correlation-id":r},method:"delete",url:`/package/${encodeURIComponent(e)}/${t}`});return o.status>=200&&o.status<300};getPackageVersion=async(e,t,n)=>this.getVersion(e,t,n);getPackageVersions=async(e,t)=>this.getVersions(e,t);getApprovedPackage=async e=>this.getApproved(e);getLatestPackage=async(e,t)=>this.getLatest(e,t);approvePackageVersion=async(e,t,n)=>this.approveVersion(e,t,n);unapprovePackageVersion=(e,t,n)=>this.unapproveVersion(e,t,n);deletePackageVersion=async(e,t,n)=>this.deleteVersion(e,t,n);getApplication=async(e,t,n)=>this.cluster.applications.getVersion(e,t,n);getLatestApplication=async(e,t)=>this.cluster.applications.getLatest(e,t);getApprovedApplication=async(e,t)=>this.cluster.applications.getApproved(e,t);getApplications=async()=>this.cluster.applications.getApplications();getPackageNames=async e=>this.getNames(e)}const Ad=ce.GVDebug.extend("cluster").extend("state"),wd=Ad.extend("workload"),bd=Ad.extend("node");class _d extends od{static get(...e){return this.instance||(Ad("creating new instance"),this.instance=new _d(...e)),this.instance}constructor(e){super("/cluster/state","/api/v1",e)}getNodes=async()=>(await this.get("/nodes")).data.nodes;getNodeCount=async()=>(await this.get("/usage/nodecount")).data;unregisterNode=async(e,t)=>{const n=t||Ve();ac.Info(`Unregistering Node ${e}`,{CorrelationId:n,nodeId:e},["Unregister","Node"]);try{const t=await this.request({headers:{"x-correlation-id":n},method:"delete",url:`/node/${e}`});return bd("unregister Success",t.data),t.status>=200&&t.status<300}catch(e){throw bd("unregister Failed",e),e}};getWorkloads=async()=>(await this.get("/workloads")).data.workloads;getWorkloadCount=async()=>(await this.get("/usage/workloadcount")).data;getWorkloadsByFabric=async e=>(await this.request({method:"get",params:{fabricId:e},url:"/workloads"})).data.workloads;getWorkloadsByPackageAndFabric=async(e,t)=>(await this.request({method:"get",params:{fabricId:e,packageName:t},url:"/workloads"})).data.workloads;getWorkload=async e=>(await this.get(`/workload/${e}`)).data;getPackageWorkloads=async e=>(await this.request({method:"get",params:{packageName:e},url:"/workloads"})).data.workloads;getFabricWorkloads=async e=>(await this.request({method:"get",params:{fabricId:e},url:"/workloads"})).data.workloads;getChildWorkloads=async e=>(await this.request({method:"get",params:{parentId:e},url:"/workloads"})).data.workloads;addWorkload=async(e,t)=>{const{fabricId:n,name:r,packageName:o,packageVersion:i,packageVersionType:a,alias:s}=e,l=t||Ve();ac.Info(`Adding Workload ${r} Package ${o} - ${a} Version [${i}]`,{CorrelationId:l,fabricId:n,name:r,packageName:o,packageVersion:i,packageVersionType:a,alias:s},["Add","Workloads"]);try{const t=await this.request({data:"Specific"===e.packageVersionType?e:(0,$e.omit)(e,["packageVersion"]),headers:{"x-correlation-id":l},method:"post",url:"/workload"});return wd("add Success",t.data),t.data}catch(e){throw wd("add Failed",e),e}};addWorkloadWithApp=async(e,t)=>{const{fabricId:n,name:r,productCode:o,applicationName:i,applicationVersion:a,applicationVersionType:s,subscriptionGroup:l,alias:c}=e,u=t||Ve();ac.Info(`Adding Workload ${r} Application ${i} - ${s} Version [${a}]`,{CorrelationId:u,fabricId:n,name:r,productCode:o,applicationName:i,applicationVersion:a,applicationVersionType:s,subscriptionGroup:l,alias:c},["Add","Workloads"]);try{const t=await this.request({data:(0,$e.omit)(e,["Specific"===e.applicationVersionType?"packageVersionType":"packageVersion"]),headers:{"x-correlation-id":u},method:"post",url:"/workload/app"});return wd("add Success",t.data),t.data}catch(e){throw wd("add Failed",e),e}};changeVersion=async(e,t,n,r,o)=>{const i=o||Ve();ac.Info(`Changing Version Type of ${e} to ${t}`,{CorrelationId:i,workloadId:e,versionType:t,version:n},["ChangeVersionType","Workloads"]);try{const o=await this.request({data:{versionType:t,version:"Specific"===t?n:void 0},headers:{"if-match":r,"x-correlation-id":i},method:"put",url:`/workload/${e}/version`});return wd("change version type Success",o.data),o.data}catch(e){throw wd("change version type Failed",e),e}};updatePackage=async(e,t,n,r,o,i)=>{const a=i||Ve();ac.Info(`Updating package of ${e} to ${t}`,{CorrelationId:a,workloadId:e,packageName:t,packageVersionType:n,packageVersion:r},["UpdatingPackage","Workloads"]);try{const o=await this.request({data:{packageName:t,packageVersionType:n,packageVersion:"Specific"===n?r:void 0},headers:{"x-correlation-id":a},method:"put",url:`/workload/${e}/package`});return wd("update package Success",o.data),o.data}catch(e){throw wd("update pacakge Failed",e),e}};changeAppVersion=async(e,t,n,r,o)=>{const i=o||Ve();ac.Info(`Changing Version Type of ${e} to ${t}`,{CorrelationId:i,workloadId:e,versionType:t,applicationVersion:n},["ChangeVersionType","Workloads"]);try{const o=await this.request({data:{versionType:t,version:"Specific"===t?n:void 0},headers:{"if-match":r,"x-correlation-id":i},method:"put",url:`/workload/${e}/app/version`});return wd("change version type Success",o.data),o.data}catch(e){throw wd("change version type Failed",e),e}};changeDesiredState=async(e,t,n,r)=>{const o=r||Ve();ac.Info(`Changing Desired State ${e} to ${t.desiredState||t}`,{CorrelationId:o,workloadId:e,desiredState:t},["ChangeState","Workloads"]);try{const r=await this.request({data:t,headers:{"if-match":n,"x-correlation-id":o},method:"put",url:`/workload/${e}/state/desired`});return wd("change state Success",r.data),r.status>=200&&r.status<300}catch(e){throw wd("change state Failed",e),e}};updateAppWorkload=async(e,t,n,r,o,i,a,s,l,c)=>{const u=l||Ve();ac.Info(`Updating Workload ${e} (${t})`,{CorrelationId:u,workloadId:e,workloadName:t,applicationVersion:n,applicationVersionType:r,tags:c},["Update","Workloads"]);const d={fabricId:(0,$e.isEmpty)(i)?void 0:i,name:t,applicationVersionType:r,placementConstraints:o,properties:a,tags:c};"Specific"===r&&(d.applicationVersion=n);try{const t=await this.request({data:d,headers:{"if-match":s,"x-correlation-id":u},method:"put",url:`/workload/${e}`});return wd("update Success",t.data),t.data}catch(e){throw wd("update Failed",e),e}};updateWorkload=async(e,t,n,r,o,i,a,s,l,c,u)=>{const d=l||Ve();ac.Info(`Updating Workload ${e} (${t})`,{CorrelationId:d,workloadId:e,workloadName:t,packageVersion:n,packageVersionType:r,tags:c,subscriptionGroup:u},["Update","Workloads"]);let p=null;"Specific"===r&&(p=n);const h={name:t,packageVersion:p,placementConstraints:o,properties:a,tags:c,subscriptionGroup:u};try{const t=await this.request({data:h,headers:{"if-match":s,"x-correlation-id":d},method:"put",url:`/workload/${e}`});return wd("update Success",t.data),t.data}catch(e){throw wd("update Failed",e),e}};updateWorkloadAlias=async(e,t,n,r,o)=>{const i=o||Ve();ac.Info(`Updating Workload Alias ${e} (${t})`,{CorrelationId:i,workloadId:e,workloadName:t,alias:n},["Update Alias","Workload"]);const a={alias:n};try{const t=await this.request({data:a,headers:{"if-match":r,"x-correlation-id":i},method:"patch",url:`/workload/${e}`});return wd("update alias Success",t.data),t.data}catch(e){throw wd("update alias Failed",e),e}};deleteWorkload=async(e,t,n)=>{const r=n||Ve();ac.Info(`Deleting Workload ${e}`,{CorrelationId:r,workloadId:e},["Delete","Workloads"]);try{const n=await this.request({headers:{"if-match":t,"x-correlation-id":r},method:"delete",url:`/workload/${e}`});return wd("delete Success",n.data),n.status>=200&&n.status<300}catch(e){throw wd("delete Failed",e),e}};convertToApplication=async(e,t,n,r,o,i,a)=>{const s=a||Ve();ac.Info(`Converting Workload ${e} to ${n}`,{CorrelationId:s,workloadId:e,applicationName:n,applicationVersion:r,applicationVersionType:o},["Convert","Workload","Application"]);const l={productCode:t,applicationName:n,applicationVersion:r,applicationVersionType:o};try{const t=await this.request({data:l,headers:{"if-match":i,"x-correlation-id":s},method:"put",url:`/workload/${e}/app`});return wd("Conversion Success",t.data),t.data}catch(e){throw wd("Conversion Failed",e),e}};updateWorkloadData=async(e,t,n,r)=>{const o=r||Ve();"Specific"!==t.packageVersionType&&(t.packageVersion=null);try{const r=await this.request({data:t,headers:{"if-match":n,"x-correlation-id":o},method:"put",url:`/workload/${e}`});return wd("update Success",r.data),r.data}catch(e){throw wd("update Failed",e),e}};patchWorkload=async(e,t,n,r)=>{const o=r||Ve();try{const r=await this.request({data:t,headers:{"if-match":n,"x-correlation-id":o},method:"patch",url:`/workload/${e}`});return wd("patch workload Success",r.data),r.data}catch(e){throw wd("patch workload Failed",e),e}};patchDeployment=async(e,t,n,r)=>{const o=r||Ve();try{const r=await this.request({data:t,headers:{"if-match":n,"x-correlation-id":o},method:"patch",url:`/${e}/deployment`});return wd("patch deployment Success",r.data),r.data}catch(e){throw wd("patch deployment Failed",e),e}}}var Cd=r(3142),Ed=r.n(Cd);const Sd=ce.GVDebug.extend("cluster").extend("matrix").extend("consumers").extend("consumer");class Od extends od{static get(e,...t){return this.instances||(this.instances={}),this.instances[e]||(Sd("creating new instance",e),this.instances[e]=new Od(e,...t)),this.instances[e]}constructor(e,t){super("/cluster/matrix",`/api/v1/consumer/${e}`,t)}async load(){return(await this.get("")).data}async updateAlias(e,t='"*"'){return(await this.request({data:{alias:e},headers:{"if-match":t},method:"put",url:""})).data}}const xd=ce.GVDebug.extend("cluster").extend("matrix").extend("consumers");class Dd extends od{static get(e){return this.instance||(xd("creating new instance"),this.instance=new Dd(e)),this.instance}consumers;constructor(e){super("/cluster/matrix","/api/v1",e),this.consumers={}}async getConsumers({fabric:e,type:t="Fabric"}){const n=Ed()(t)?t.map(e=>`type=${e}`).join("&"):`type=${t}`,r=await this.get(`/consumers?${e?`fabricId=${e}&`:""}${n}`);return zt()(r.data.consumers,e=>e.consumer)}getInstance(e){return this.consumers[e]||(this.consumers[e]=Od.get(e,this.cluster)),this.consumers[e]}getConsumer(e){return this.consumers[e]||(this.consumers[e]=Od.get(e,this.cluster)),this.consumers[e].load()}async deleteConsumer(e){await this.delete("/consumer/"+e)}async deleteConsumers(e){e.forEach(async e=>{await this.delete("/consumer/"+e)})}}const Pd=ce.GVDebug.extend("cluster").extend("matrix").extend("producers").extend("producer");class Md extends od{static get(e,...t){return this.instances||(this.instances={}),this.instances[e]||(Pd("creating new instance",e),this.instances[e]=new Md(e,...t)),this.instances[e]}constructor(e,t){super("/cluster/matrix",`/api/v1/producer/${e}`,t)}async load(){return(await this.get("")).data}async updateAlias(e,t='"*"'){return(await this.request({data:{alias:e},headers:{"if-match":t},method:"put",url:""})).data}async updateTallyGroup(e,t='"*"'){return(await this.request({data:{tallyGroup:e},headers:{"if-match":t},method:"patch",url:""})).data}}const Td=ce.GVDebug.extend("cluster").extend("matrix").extend("producers");class Rd extends od{static get(e){return this.instance||(Td("creating new instance"),this.instance=new Rd(e)),this.instance}producers;constructor(e){super("/cluster/matrix","/api/v1",e),this.producers={}}async getProducers({fabric:e,type:t="Fabric",includeRoutedConsumers:n=!0,includeFrameAge:r=!0}){const o=Ed()(t)?t.map(e=>`type=${e}`).join("&"):`type=${t}`,i=await this.get(`/producers?${e?`fabricId=${e}&`:""}${o}&includeFrameAge=${r}&includeRoutedConsumers=${n}`);return zt()(i.data.producers,e=>e.producer)}async deleteProducer(e){await this.delete("/producer/"+e)}async deleteProducers(e){e.forEach(async e=>{await this.delete("/producer/"+e)})}getInstance(e){return this.producers[e]||(this.producers[e]=Md.get(e,this.cluster)),this.producers[e]}async getProducer(e){return this.producers[e]||(this.producers[e]=Md.get(e,this.cluster)),this.producers[e].load()}}const Id=ce.GVDebug.extend("cluster").extend("matrix").extend("routing");class Fd extends od{static get(e){return this.instance||(Id("creating new instance"),this.instance=new Fd(e)),this.instance}constructor(e){super("/cluster/matrix","/api/v1/routing",e)}async getDestinations({fabric:e,type:t="Fabric"}={}){const n=`/destinations?${e?`fabricId=${e}&`:""}${Ed()(t)?t.map(e=>`type=${e}`).join("&"):`type=${t}`}`;return(await this.request({method:"get",url:n},!1)).data.destinations}async getDestination(e){return(await this.get(`/destination/${e}`)).data}async lockDestination(e){return(await this.request({method:"post",url:`/destination/${e}/lock`})).data}async unlockDestination(e){return(await this.request({method:"post",url:`/destination/${e}/unlock`})).data}async getSources({fabric:e,type:t="Fabric"}={}){const n=`/sources?${e?`fabricId=${e}&`:""}${Ed()(t)?t.map(e=>`type=${e}`).join("&"):`type=${t}`}`;return(await this.request({method:"get",url:n},!1)).data.sources}async getSource(e){return(await this.get(`/source/${e}`)).data}async makeRoute(e,t,n){const r=n||Ve();return"string"!=typeof e&&(e=e.id),"string"!=typeof t&&(t=t.id),ac.Info(`Requesting route from ${e} to ${t}`,{CorrelationId:r,source:e,destination:t},["MakeRoute","Routing","Matrix"]),(await this.request({data:{destinationId:t,sourceId:e},headers:{"x-correlation-id":r},method:"post",url:"/requestroute"})).data}async clearRoute(e,t){const n=t||Ve();return ac.Info(`Clearing route from destination ${e}`,{CorrelationId:n,destinationId:e},["ClearRoute","Routing","Matrix"]),(await this.request({data:{destinationId:e},headers:{"x-correlation-id":n},method:"post",url:"/clearroute"})).data}async getRouteStatus(e,t){const n=t||Ve();return(await this.get(`/routestatus/${e}`,{headers:{"x-correlation-id":n}})).data}}const kd=ce.GVDebug.extend("cluster").extend("matrix").extend("salvos").extend("salvo");class Ld extends od{static get(e,...t){return this.instances||(this.instances={}),this.instances[e]||(kd("creating new instance",e),this.instances[e]=new Ld(e,...t)),this.instances[e]}constructor(e,t){super("/cluster/matrix",`/api/v1/salvo/${e}`,t)}async load(){return(await this.get("")).data}async updateAlias(e,t='"*"'){return(await this.request({data:{alias:e},headers:{"if-match":t},method:"put",url:""})).data}async updateName(e,t='"*"'){return(await this.request({data:{name:e},headers:{"if-match":t},method:"put",url:"/name"})).data}}const Bd=ce.GVDebug.extend("cluster").extend("matrix").extend("salvos");class Nd extends od{static get(e){return this.instance||(Bd("creating new instance"),this.instance=new Nd(e)),this.instance}salvos;constructor(e){super("/cluster/matrix","/api/v1",e),this.salvos={}}async getSalvos(e=!1){return(await this.get(`/salvos?includeMappings=${e}`)).data}getInstance(e){return this.salvos[e]||(this.salvos[e]=Ld.get(e,this.cluster)),this.salvos[e]}async getSalvo(e){return this.salvos[e]||(this.salvos[e]=Ld.get(e,this.cluster)),this.salvos[e].load()}async deleteSalvos(e){e.forEach(async e=>{await this.delete("/salvo/"+e)})}async deleteSalvo(e){await this.delete("/salvo/"+e)}async createSalvo(e){await this.post("/salvo",e)}async startSalvo(e){await this.post(`/salvo/${e}/execute`)}async cancelSalvo(e){await this.post(`/salvo/${e}/cancel`)}async editSalvo(e){await this.put(`/salvo/${e.id}`,{mappings:e.mappings})}async editSalvoName(e,t){await this.put(`/salvo/${e}/name`,{name:t})}}const jd=ce.GVDebug.extend("cluster").extend("matrix").extend("tielines");class Ud extends od{static get(e){return this.instance||(jd("creating new instance"),this.instance=new Ud(e)),this.instance}constructor(e){super("/cluster/matrix","/api/v1/tielines",e)}getTielines=async({fabricId:e,nodeId:t})=>(await this.get("/",{params:{fabricId:e,nodeId:t}})).data;getAllocatedTielines=async e=>(await this.get(`/allocated/${e}`)).data}const Vd=ce.GVDebug.extend("cluster").extend("matrix");var Hd,Gd,Wd;!function(e){e[e.None=0]="None",e[e.Internal=1]="Internal"}(Hd||(Hd={})),function(e){e.Off="Off",e.Low="Low",e.High="High",e.Unknown="Unknown"}(Gd||(Gd={})),function(e){e[e.None=0]="None",e[e.Internal=1]="Internal"}(Wd||(Wd={}));class zd extends od{static get(e){return this.instance||(Vd("creating new instance"),this.instance=new zd(e)),this.instance}routing;producers;consumers;salvos;tielines;constructor(e){super("/cluster/matrix","/api/v1",e),this.routing=Fd.get(this.cluster),this.producers=Rd.get(this.cluster),this.consumers=Dd.get(this.cluster),this.salvos=Nd.get(this.cluster),this.tielines=Ud.get(this.cluster)}getProducer(e){return this.producers.getProducer(e)}deleteProducer(e){return this.producers.deleteProducer(e)}deleteProducers(e){return this.producers.deleteProducers(e)}getConsumer(e){return this.consumers.getConsumer(e)}deleteConsumer(e){return this.consumers.deleteConsumer(e)}deleteConsumers(e){return this.consumers.deleteConsumers(e)}getSalvo(e){return this.salvos.getSalvo(e)}getSalvos(e){return this.salvos.getSalvos(e)}async deleteSalvos(e){await this.salvos.deleteSalvos(e)}async deleteSalvo(e){await this.salvos.deleteSalvo(e)}async createSalvo(e){await this.salvos.createSalvo(e)}async editSalvo(e){await this.salvos.editSalvo(e)}async editSalvoName(e,t){await this.salvos.editSalvoName(e,t)}async startSalvo(e){await this.salvos.startSalvo(e)}async cancelSalvo(e){await this.salvos.cancelSalvo(e)}async getTielines({fabricId:e,nodeId:t}){return this.tielines.getTielines({fabricId:e,nodeId:t})}async getAllocatedTielines(e){return this.tielines.getAllocatedTielines(e)}}const $d=ce.GVDebug.extend("cluster").extend("node");class Kd extends od{static get(e,...t){return this.instances||(this.instances={}),this.instances[e]||($d("creating new instance",e),this.instances[e]=new Kd(e,...t)),this.instances[e]}constructor(e,t){super(`/cluster/nodes/${e}`,"/api/v1/node",t)}getWorkloads=async()=>(await this.get("/workloads")).data;getHealth(){return this.get("/health")}getNode(){return this.get("/node")}}const Qd=ce.GVDebug.extend("cluster").extend("node");class qd extends od{static get(...e){return this.instance||(Qd("creating new instance"),this.instance=new qd(...e)),this.instance}nodes;constructor(e){super("/cluster/nodes","/api/v1",e),this.nodes={}}getNode(e){return this.nodes[e]||(this.nodes[e]=Kd.get(e,this.cluster)),this.nodes[e]}}const Yd=ce.GVDebug.extend("cluster").extend("nodeManagement");class Xd extends od{static get(...e){return this.instance||(Yd("creating new instance"),this.instance=new Xd(...e)),this.instance}constructor(e){super("/cluster/state","/api/v2",e)}createNode=async e=>(ac.Info(`Creating node ${e.nodeName}`),await this.request({data:e,method:"post",url:"/node"}));getNodes=async()=>(await this.get("/nodes")).data.nodes;getNodeById=async e=>{const t=await this.get(`/node/${e}`);let n=t.data;const r=t.headers.etag;return n.eTag=r??null,n};updateNode=async(e,t,n)=>await this.request({headers:{"if-match":n||'"*"'},data:t,method:"put",url:`/node/${e}`});patchNode=async(e,t,n)=>await this.request({headers:{"if-match":n||'"*"'},data:t,method:"patch",url:`/node/${e}`});migrateNode=async(e,t,n)=>await this.request({headers:{"if-match":n||'"*"'},data:t,method:"post",url:`/node/${e}/migrate`});deleteNode=async e=>await this.request({headers:{"if-match":'"*"'},method:"delete",url:`/node/${e}`});getNodePackages=async e=>(await this.get(`/node/${e}/packages`)).data;addNodePackage=async(e,t)=>(ac.Info(`Adding node package ${t.packageName} for node with id ${e}`),await this.request({data:t,method:"post",url:`/node/${e}/package`}));updateNodePackageDesiredState=async(e,t,n,r)=>await this.request({headers:{"if-match":r||'"*"'},data:n,method:"put",url:`/node/${e}/package/${t}/desiredState`});updateMaintenanceMode=async(e,t,n)=>await this.request({headers:{"if-match":n||'"*"'},data:t,method:"put",url:`/node/${e}/maintenance`})}const Zd=ce.GVDebug.extend("cluster").extend("testApp");class Jd extends od{static get(e,...t){return this.instances||(this.instances={}),this.instances[e]||(Zd("creating new instance",e),this.instances[e]=new Jd(e,...t)),this.instances[e]}constructor(e,t){super(`/cluster/test/${e}`,"/api/v1",t)}getArguments(){return this.get("/environment/arguments")}getFile(e){return this.get(`/file/${e}`)}getVariables(){return this.get("/environment/variables")}exit(){return this.request({method:"post",url:"/environment/exit"})}}const ep=ce.GVDebug.extend("cluster").extend("testApps");class tp extends od{static get(...e){return this.instance||(ep("creating new instance"),this.instance=new tp(...e)),this.instance}apps;constructor(e){super("/cluster/test","",e),this.apps={}}getApp(e){return this.apps[e]||(this.apps[e]=Jd.get(e,this.cluster)),this.apps[e]}}const np=ce.GVDebug.extend("cluster").extend("applications");class rp extends od{static get(...e){return this.instance||(np("creating new instance"),this.instance=new rp(...e)),this.instance}constructor(e){super("/cluster/packages","/api/v1",e)}getApplications=async e=>(await this.request({method:"get",params:{packageName:e},url:"/apps"})).data.applications;getApplicationsVersions=async()=>(await this.request({method:"get",url:"/apps/versions"})).data;getNames=async()=>(await this.get("/apps/names")).data;getLatest=async(e,t)=>(await this.request({method:"get",params:{includePackage:t},url:`/app/${encodeURIComponent(e)}/latest`})).data;getApproved=async(e,t)=>(await this.request({method:"get",params:{includePackage:t},url:`/app/${encodeURIComponent(e)}/approved`})).data;getVersion=async(e,t,n)=>(await this.request({method:"get",params:{includePackage:n},url:`/app/${encodeURIComponent(e)}/${t}`})).data;getVersions=async e=>(await this.get(`/app/${encodeURIComponent(e)}/versions`)).data;addVersion=async(e,t)=>{const n=t||Ve();ac.Info(`Adding Application ${e.applicationName} Version ${e.applicationVersion}`,{CorrelationId:n,appName:e.applicationName,appVersion:e.applicationVersion},["Add","Applications"]);const r=await this.request({headers:{"x-correlation-id":n},data:e,method:"post",url:"/app"});return r.status>=200&&r.status<300};approveVersion=async(e,t,n)=>{const r=n||Ve();ac.Info(`Approving Application ${e} Version ${t}`,{CorrelationId:r,appName:e,appVersion:t},["Approve","Applications"]);const o=await this.request({headers:{"x-correlation-id":r},method:"post",url:`/app/${encodeURIComponent(e)}/${t}/approve`});return o.status>=200&&o.status<300};unapproveVersion=async(e,t,n)=>{const r=n||Ve();ac.Info(`Unapproving Application ${e} Version ${t}`,{CorrelationId:r,appName:e,appVersion:t},["Unapprove","Applications"]);const o=await this.request({headers:{"x-correlation-id":r},method:"post",url:`/app/${encodeURIComponent(e)}/${t}/unapprove`});return o.status>=200&&o.status<300};deleteVersion=async(e,t,n)=>{const r=n||Ve();ac.Info(`Deleting Application ${e} Version ${t}`,{CorrelationId:r,appName:e,appVersion:t},["Delete","Applications"]);const o=await this.request({headers:{"x-correlation-id":r},method:"delete",url:`/app/${encodeURIComponent(e)}/${t}`});return o.status>=200&&o.status<300}}const op=ce.GVDebug.extend("management").extend("billing").extend("billinggroups");class ip extends od{static get(...e){return this.instance||(op("creating new instance"),this.instance=new ip(...e)),this.instance}constructor(e){super("/management/billing","/api/v1",e)}getBillingGroups=async e=>(await this.request({method:"get",params:new URLSearchParams,url:e?`/accounts/${e}/billinggroups`:"/billinggroups"})).data;getBillingGroup=async(e,t)=>(await this.request({method:"get",params:new URLSearchParams,url:t?`/accounts/${t}/billinggroups/${e}`:`/billinggroups/${e}`})).data}const ap=ce.GVDebug.extend("hubmanager").extend("release");class sp extends od{static get(...e){return this.instance||(ap("creating new instance"),this.instance=new sp(...e)),this.instance}constructor(e){super("/hubmanager","/api/v1/release",e)}getLatestRelease=async e=>{const t=e||Ve();return(await this.request({url:"/latest",method:"get",headers:{"x-correlation-id":t}})).data};getRelease=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};getReleaseVersions=async e=>{const t=e||Ve();return(await this.request({url:"/versions",method:"get",headers:{"x-correlation-id":t}})).data}}const lp=ce.GVDebug.extend("hubmanager").extend("site");class cp extends od{api;auth;static get(...e){return this.instance||(lp("creating new instance"),this.instance=new cp(...e)),this.instance}constructor(e){super("/hubmanager","/api/v1/site",e);const t=e||bp.get();this.api=le.create({baseURL:t.config.clusterUri}),this.auth=t.auth,this.api.interceptors.request.use(e=>(this.auth.isAuthenticated()&&(e.headers.Authorization=`Bearer ${this.auth.getToken()}`),e),e=>Promise.reject(e))}createSite=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/",data:e,method:"post",headers:{"x-correlation-id":n}})).data};getSite=async(e,t=!1,n=!1,r)=>{const o=r||Ve();return(await this.request({url:`/${e}`,params:{includeNodes:t,includeHistory:n},method:"get",headers:{"x-correlation-id":o}})).data};patchSite=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}`,data:t,method:"patch",headers:{"if-match":`"${n}"`,"x-correlation-id":o}})).data};deleteSite=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}`,method:"delete",headers:{"if-match":`"${t}"`,"x-correlation-id":r}})).data};addSiteNode=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/node`,data:t,method:"post",headers:{"x-correlation-id":r}})).data};getSiteNodeByName=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/node/${t}`,method:"patch",headers:{"x-correlation-id":r}})).data};patchSiteNodeByName=async(e,t,n,r,o)=>{const i=o||Ve();return(await this.request({url:`/${e}/node/${t}`,method:"patch",data:n,headers:{"if-match":`"${r}"`,"x-correlation-id":i}})).data};deleteSiteNodeByName=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}/node/${t}`,method:"delete",headers:{"if-match":`"${n}"`,"x-correlation-id":o}})).data};getSiteNodeOnboardingKeyByName=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/node/${t}/onboardingkey`,method:"get",headers:{"x-correlation-id":r}})).data};onboardSiteNodeByName=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/node/${t}/onboard`,method:"post",headers:{"x-correlation-id":r}})).data};setSiteDesiredState=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/desired/state`,data:t,method:"put",headers:{"x-correlation-id":r}})).data};addSiteCertificate=async(e,t,n,r)=>{const o=r||Ve(),i=new FormData;i.append("certificateFile",t),i.append("keyFile",n);const a=`${this.getApiLink()}/${e}/add/certificate`;return(await this.api.put(a,i,{headers:{"x-correlation-id":o}})).data};updateSiteMasterNode=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/master-node`,data:t,method:"patch",headers:{"x-correlation-id":r}})).data}}const up=ce.GVDebug.extend("hubmanager").extend("sites");class dp extends od{static get(...e){return this.instance||(up("creating new instance"),this.instance=new dp(...e)),this.instance}constructor(e){super("/hubmanager","/api/v1/sites",e)}getSites=async(e=!1,t=!1,n)=>{const r=n||Ve();return(await this.request({url:"/",params:{includeNodes:e,includeHistory:t},method:"get",headers:{"x-correlation-id":r}})).data}}const pp=ce.GVDebug.extend("hubmanager").extend("releases");class hp extends od{static get(...e){return this.instance||(pp("creating new instance"),this.instance=new hp(...e)),this.instance}constructor(e){super("/hubmanager","/api/v1/releases",e)}getReleases=async e=>{const t=e||Ve();return(await this.request({url:"/",method:"get",headers:{"x-correlation-id":t}})).data}}const fp=ce.GVDebug.extend("hubmanager").extend("node");class gp extends od{static get(...e){return this.instance||(fp("creating new instance"),this.instance=new gp(...e)),this.instance}constructor(e){super("/hubmanager","/api/v1/node",e)}createNode=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/",data:e,method:"post",headers:{"x-correlation-id":n}})).data};getNode=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}`,method:"get",headers:{"x-correlation-id":n}})).data};patchNode=async(e,t,n,r)=>{const o=r||Ve();return(await this.request({url:`/${e}`,data:t,method:"patch",headers:{"if-match":`"${n}"`,"x-correlation-id":o}})).data};removeNode=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}`,method:"delete",headers:{"if-match":`"${t}"`,"x-correlation-id":r}})).data};getNodeOnboardingKey=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}/onboardingkey`,method:"get",headers:{"x-correlation-id":n}})).data};patchNodeHaState=async(e,t,n)=>{const r=n||Ve();return(await this.request({url:`/${e}/ha/state`,method:"patch",headers:{"x-correlation-id":r},data:t})).data};onboardNode=async(e,t)=>{const n=t||Ve();return(await this.request({url:`/${e}/onboard`,method:"post",headers:{"x-correlation-id":n}})).data}}const mp=ce.GVDebug.extend("platform").extend("network");class vp extends od{static get(...e){return this.instance||(mp("creating new instance"),this.instance=new vp(...e)),this.instance}release;releases;site;sites;node;constructor(e){super("/","/api/v1",e),this.release=null,this.releases=null,this.site=null,this.sites=null,this.node=null}getRelease(){return this.release||(this.release=sp.get(this.cluster)),this.release}getReleases(){return this.releases||(this.releases=hp.get(this.cluster)),this.releases}getSite(){return this.site||(this.site=cp.get(this.cluster)),this.site}getSites(){return this.sites||(this.sites=dp.get(this.cluster)),this.sites}getNode(){return this.node||(this.node=gp.get(this.cluster)),this.node}}const yp=ce.GVDebug.extend("cluster").extend("generic");class Ap extends od{static get(...e){return this.instance||(yp("creating new instance"),this.instance=new Ap(...e)),this.instance}constructor(e){super("","",e)}getByUrl=async e=>(await this.get(e)).data}const wp=ce.GVDebug.extend("cluster");class bp{impersonateUser;impersonateToken;static impersonations;static impersonate(e,t,n,r){return this.impersonations||(this.impersonations={}),this.impersonations[e]||(n||(n=Pu.impersonate(e,t)),this.impersonations[e]=new bp(bp.get().config,n.auth,n,e,t,r)),this.impersonations[e].setToken(t),this.impersonations[e]}static get(e,t,n){if(!this.cluster){if(!e||!t)throw new Error("GVCluster has not been created and no config was passed in");wp("creating new instance"),this.cluster=new bp(e,t,n)}return this.cluster}static cluster;platform;get impersonation(){return!!this.impersonateUser}auth;config;state;control;nodes;nodeManagement;testApps;packages;applications;fabrics;matrix;snapshots;packageManager;workloadManager;nodeManager;billingGroups;hub;generic;client;constructor(e,t,n,r,o,i){this.impersonateUser=r,this.impersonateToken=o,r||wp("config",JSON.stringify(e)),i&&i(this.setToken.bind(this)),this.client=le.create({adapter:"function"==typeof fetch&&Pe,baseURL:e.clusterUri}),this.auth=t,this.config=e,this.client.interceptors.request.use(e=>(e.headers||(e.headers={}),this.impersonateUser?this.impersonateToken?e.headers.Authorization=`Bearer ${this.impersonateToken}`:e.headers["x-account"]=this.impersonateUser:e.headers?.Authorization||(this.auth.isAuthenticated()?e.headers.Authorization=`Bearer ${this.auth.getToken()}`:e.headers.Authorization=null),e),e=>Promise.reject(e)),this.platform=n,this.state=new _d(this),this.control=new ud(this),this.nodes=new qd(this),this.nodeManagement=new Xd(this),this.testApps=new tp(this),this.packages=new yd(this),this.fabrics=new ld(this),this.matrix=new zd(this),this.snapshots=new Cp(this),this.applications=new rp(this),this.billingGroups=new ip(this),this.hub=new vp(this),this.generic=Ap.get(this),r||(this.workloadManager=qt.get(this.platform),this.packageManager=at.get(this.platform),this.nodeManager=Ye.get(this.platform))}getClient(){return this.client}setToken(e){this.impersonateToken=e}}const _p=ce.GVDebug.extend("cluster").extend("pacakges");class Cp extends od{static get(...e){return this.instance||(_p("creating new instance"),this.instance=new Cp(...e)),this.instance}constructor(e){super("/cluster/snapshot","/api/v1",e)}getSnapshots=async()=>(await this.get("/snapshots")).data.snapshots;getSnapshot=async e=>(await this.get(`/snapshot/${e}`)).data;importSnapshot=async(e,t,n)=>{const r=n||Ve();return(await this.request({headers:{"x-correlation-id":r},method:"post",data:e,url:`/snapshot/import/${t}`})).data};exportSnapshot=async(e,t)=>{const n=t||Ve();return(await this.request({headers:{"x-correlation-id":n},method:"get",url:`/snapshot/${e}/export`})).data};copySnapshot=async(e,t,n,r,o)=>{const i=o||Ve();return ac.Info(`Copying snapshot ${e} to fabric ${r}`,{CorrelationId:i,snapshotId:e,snapshotName:t,snapshotDescription:n,fabricId:r},["Copy","Snapshots"]),(await this.request({headers:{"x-correlation-id":i},data:{name:t,description:n,fabricId:r},method:"post",url:`/snapshot/${e}/copy`})).data};startSnapshot=async(e,t)=>{const n=t||Ve();ac.Info(`Starting snapshot ${e}`,{CorrelationId:n,snapshotId:e},["Start","Snapshots"]);const r=await this.request({headers:{"x-correlation-id":n},method:"post",url:`/snapshot/${e}/start`});return r.status>=200&&r.status<300};stopSnapshot=async(e,t)=>{const n=t||Ve();ac.Info(`Stopping snapshot ${e}`,{CorrelationId:n,snapshotId:e},["Stop","Snapshots"]);const r=await this.request({headers:{"x-correlation-id":n},method:"post",url:`/snapshot/${e}/stop`});return r.status>=200&&r.status<300};revertSnapshot=async(e,t)=>{const n=t||Ve();return ac.Info(`Reverting snapshot ${e}`,{CorrelationId:n,snapshotId:e},["Revert","Snapshots"]),(await this.request({headers:{"x-correlation-id":n},method:"post",url:`/snapshot/${e}/revert`})).data};createSnapshot=async(e,t,n,r)=>{const o=r||Ve();return ac.Info(`Creating snapshot ${e}`,{CorrelationId:o,workloadIds:n.join(", "),snapshotName:e,snapshotDescription:t},["Create","Snapshots"]),(await this.request({headers:{"x-correlation-id":o},data:{name:e,description:t,workloadIds:n},method:"post",url:"/snapshot"})).data};updateSnapshot=async(e,t,n,r,o,i)=>{const a=i||Ve();return ac.Info(`Updating snapshot ${e}`,{CorrelationId:a,snapshotId:e,snapshotName:t,snapshotDescription:n,workloadNames:r.join(", ")},["Update","Snapshots"]),(await this.request({headers:{"x-correlation-id":a,"if-match":`"${o}"`},data:{name:t,description:n,workloadNames:r},method:"put",url:`/snapshot/${e}`})).data};deleteSnapshot=async(e,t,n)=>{const r=n||Ve();ac.Info(`Deleting snapshot ${e}`,{CorrelationId:r,snapshotId:e},["Delete","Snapshots"]);const o=await this.request({headers:{"x-correlation-id":r,"if-match":`"${t}"`},method:"delete",url:`/snapshot/${e}`});return o.status>=200&&o.status<300}}const Ep=ce.GVDebug.extend("incident");class Sp extends od{static instance;static get(...e){return this.instance||(Ep("creating new instance"),this.instance=new Sp(...e)),this.instance}constructor(e){super("/incident","/api/v1",e)}getIncidents=async e=>(await this.request({url:`/incidents/${e}`,method:"get"})).data;getIncident=async(e,t=!1)=>(await this.request({url:`/incident/${e}`,method:"get",params:{includeAdditionalData:t}})).data;addIncident=async(e,t)=>{const n=t||Ve();return(await this.request({url:"/incident",data:e,method:"post",headers:{"x-correlation-id":n}})).data}}var Op,xp;!function(e){e.Day="Day",e.Week="Week",e.TwoWeeks="TwoWeeks",e.Month="Month",e.Year="Year",e.MaxTimeSpan="MaxTimeSpan"}(Op||(Op={})),function(e){e.Abandoned="Abandoned",e.InProgress="InProgress",e.New="New",e.Completed="Completed"}(xp||(xp={}));const Dp=ce.GVDebug.extend("incident");class Pp{static instance;static get(){return this.instance||(Dp("creating new instance"),this.instance=new Pp,this.instance.init()),this.instance}emitter;mailbox;correlationId;loaded;resolve;constructor(){this.emitter=new Te,this.correlationId=Ve(),this.loaded=new Promise(e=>{this.resolve=e})}init=async()=>{this.mailbox=await Pu.get().getMailbox(),this.mailbox.getEvents().onAny(this.onNotification),this.resolve()};onAnyIncident=async(e,t)=>(Dp("onAnyForNode",e),await this.loaded,this.emitter.listeners(e).includes(t)||(this.emitter.addListener(e,t),this.mailbox.subscribe(`gv.cluster.incident.node.${e}.created`,this.correlationId,"incident-created"),this.mailbox.subscribe(`gv.cluster.incident.node.${e}.deleted`,this.correlationId,"incident-deleted"),this.mailbox.subscribe(`gv.cluster.incident.node.${e}.updated`,this.correlationId,"incident-updated")),{dispose:()=>this.offAnyIncident(e,t)});offAnyIncident=async(e,t)=>{Dp("off",e),this.emitter.removeListener(e,t),0===this.emitter.listeners(e).length&&(this.mailbox.unsubscribe(`gv.cluster.incident.node.${e}.created`,this.correlationId,"incident-created"),this.mailbox.unsubscribe(`gv.cluster.incident.node.${e}.deleted`,this.correlationId,"incident-deleted"),this.mailbox.unsubscribe(`gv.cluster.incident.node.${e}.updated`,this.correlationId,"incident-updated")),await this.loaded};onNotification=async(e,t)=>{if(e.startsWith("gv.cluster.incident.node")){const{incidentModel:n,action:r}=t.content,o=await Sp.get().getIncident(n.incidentId);(e.endsWith("created")||e.endsWith("updated")||e.endsWith("deleted"))&&(this.emitter.emit(o.nodeId,r,o),this.emitter.emit("all",r,o))}}}var Mp,Tp;!function(e){let t,n;!function(e){e[e.Generic=0]="Generic",e[e.Singular=1]="Singular",e[e.Flowics=2]="Flowics",e[e.GV=3]="GV"}(t=e.GraphicType||(e.GraphicType={})),function(e){e.Command="command",e.Macro="macro"}(n=e.AMPPControlType||(e.AMPPControlType={}))}(Mp||(Mp={})),function(e){let t;!function(e){e.None="none",e.FromParams="fromParams",e.FromCoordinates="fromCoordinates"}(t=e.GeometricTransformType||(e.GeometricTransformType={}))}(Tp||(Tp={}))})(),o})(),e.exports=r(n(188))},513(e,t,n){var r;self,r=(e,t,n,r,o)=>(()=>{var i,a,s={1613(e,t,n){"use strict";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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o,i;function a(e){void 0===e&&(e={});let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:i=!1}=e;t=n.map((e,t)=>g(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let a=h(null==r?t.length-1:r),s=o.Pop,p=null;function h(e){return Math.min(Math.max(e,0),t.length-1)}function f(){return t[a]}function g(e,n,r){void 0===n&&(n=null);let o=c(t?f().pathname:"/",e,n,r);return l("/"===o.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),o}function m(e){return"string"==typeof e?e:u(e)}return{get index(){return a},get action(){return s},get location(){return f()},createHref:m,createURL:e=>new URL(m(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?d(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){s=o.Push;let r=g(e,n);a+=1,t.splice(a,t.length,r),i&&p&&p({action:s,location:r,delta:1})},replace(e,n){s=o.Replace;let r=g(e,n);t[a]=r,i&&p&&p({action:s,location:r,delta:0})},go(e){s=o.Pop;let n=h(a+e),r=t[n];a=n,p&&p({action:s,location:r,delta:e})},listen:e=>(p=e,()=>{p=null})}}function s(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function c(e,t,n,o){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?d(t):t,{state:n,key:t&&t.key||o||Math.random().toString(36).substr(2,8)})}function u(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function d(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}n.d(t,{AO:()=>u,B6:()=>E,G3:()=>ne,Gh:()=>I,HC:()=>z,HS:()=>F,Oi:()=>s,Pq:()=>N,RO:()=>S,Rr:()=>d,Sk:()=>W,V2:()=>G,aE:()=>ae,o1:()=>D,pX:()=>K,pb:()=>O,rc:()=>o,ro:()=>m,sC:()=>a,tH:()=>j,tW:()=>C,ue:()=>f,v6:()=>H,yD:()=>R}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(i||(i={}));const p=new Set(["lazy","caseSensitive","path","id","index","children"]);function h(e,t,n,o){return void 0===n&&(n=[]),void 0===o&&(o={}),e.map((e,i)=>{let a=[...n,String(i)],l="string"==typeof e.id?e.id:a.join("-");if(s(!0!==e.index||!e.children,"Cannot specify children on an index route"),s(!o[l],'Found a route id collision on id "'+l+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=r({},e,t(e),{id:l});return o[l]=n,n}{let n=r({},e,t(e),{id:l,children:void 0});return o[l]=n,e.children&&(n.children=h(e.children,t,a,o)),n}})}function f(e,t,n){return void 0===n&&(n="/"),g(e,t,n,!1)}function g(e,t,n,r){let o=O(("string"==typeof t?d(t):t).pathname||"/",n);if(null==o)return null;let i=v(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=S(o);a=_(i[e],t,r)}return a}function m(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function v(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(s(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let l=F([r,a.relativePath]),c=n.concat(a);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),v(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:b(l,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of y(e.path))o(e,t,n);else o(e,t)}),t}function y(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=y(r.join("/")),s=[];return s.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}const A=/^:[\w-]+$/,w=e=>"*"===e;function b(e,t){let n=e.split("/"),r=n.length;return n.some(w)&&(r+=-2),t&&(r+=2),n.filter(e=>!w(e)).reduce((e,t)=>e+(A.test(t)?3:""===t?1:10),r)}function _(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,c="/"===i?t:t.slice(i.length)||"/",u=E({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=E({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:F([i,u.pathname]),pathnameBase:k(F([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=F([i,u.pathnameBase]))}return a}function C(e,t){void 0===t&&(t={});let n=e;n.endsWith("*")&&"*"!==n&&!n.endsWith("/*")&&(l(!1,'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),n=n.replace(/\*$/,"/*"));const r=n.startsWith("/")?"/":"",o=e=>null==e?"":"string"==typeof e?e:String(e);return r+n.split(/\/+/).map((e,n,r)=>{if(n===r.length-1&&"*"===e)return o(t["*"]);const i=e.match(/^:([\w-]+)(\??)$/);if(i){const[,e,n]=i;let r=t[e];return s("?"===n||null!=r,'Missing ":'+e+'" param'),o(r)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function E(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:a,pattern:e}}function S(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function O(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const x=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function D(e,t){void 0===t&&(t="/");let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?d(e):e;if(r)if(a=r,x.test(a))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),l(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+r)}n=r.startsWith("/")?P(r.substring(1),"/"):P(r,t)}else n=t;var a;return{pathname:n,search:L(o),hash:B(i)}}function P(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function M(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function T(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function R(e,t){let n=T(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function I(e,t,n,o){let i;void 0===o&&(o=!1),"string"==typeof e?i=d(e):(i=r({},e),s(!i.pathname||!i.pathname.includes("?"),M("?","pathname","search",i)),s(!i.pathname||!i.pathname.includes("#"),M("#","pathname","hash",i)),s(!i.search||!i.search.includes("#"),M("#","search","hash",i)));let a,l=""===e||""===i.pathname,c=l?"/":i.pathname;if(null==c)a=n;else{let e=t.length-1;if(!o&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let u=D(i,a),p=c&&"/"!==c&&c.endsWith("/"),h=(l||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!p&&!h||(u.pathname+="/"),u}const F=e=>e.join("/").replace(/\/\/+/g,"/"),k=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),L=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",B=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",N=function(e,t){void 0===t&&(t={});let n="number"==typeof t?{status:t}:t,o=new Headers(n.headers);return o.has("Content-Type")||o.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),r({},n,{headers:o}))};class j extends Error{}class U{constructor(e,t){let n;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],s(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>n=t),this.controller=new AbortController;let r=()=>n(new j("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",r),this.controller.signal.addEventListener("abort",r),this.data=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:this.trackPromise(n,r)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let n=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(n,e,void 0,t),t=>this.onSettle(n,e,t));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,t,n,r){if(this.controller.signal.aborted&&n instanceof j)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===n&&void 0===r){let n=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)}return void 0===r?(Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>r}),this.emit(!1,t),r)}emit(e,t){this.subscribers.forEach(n=>n(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n),t=await new Promise(t=>{this.subscribe(r=>{e.removeEventListener("abort",n),(r||this.done)&&t(r)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return s(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:V(r)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function V(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const H=function(e,t){return void 0===t&&(t={}),new U(e,"number"==typeof t?{status:t}:t)},G=function(e,t){void 0===t&&(t=302);let n=t;"number"==typeof n?n={status:n}:void 0===n.status&&(n.status=302);let o=new Headers(n.headers);return o.set("Location",e),new Response(null,r({},n,{headers:o}))},W=(e,t)=>{let n=G(e,t);return n.headers.set("X-Remix-Reload-Document","true"),n},z=(e,t)=>{let n=G(e,t);return n.headers.set("X-Remix-Replace","true"),n};class ${constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function K(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Q=["post","put","patch","delete"],q=new Set(Q),Y=["get",...Q],X=new Set(Y),Z=new Set([301,302,303,307,308]),J=new Set([307,308]),ee={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},te={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ne={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},re=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ie="remix-router-transitions";function ae(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,a=!n;let u;if(s(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)u=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;u=e=>({hasErrorBoundary:t(e)})}else u=oe;let d,v,y,A={},w=h(e.routes,u,void 0,A),b=e.basename||"/",_=e.dataStrategy||me,C=e.patchRoutesOnNavigation,E=r({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,x=new Set,D=null,P=null,M=null,T=null!=e.hydrationData,R=f(w,e.history.location,b),I=!1,F=null;if(null==R&&!C){let t=De(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=xe(w);R=n,F={[r.id]:t}}if(R&&!e.hydrationData&&ut(R,w,e.history.location.pathname).active&&(R=null),R)if(R.some(e=>e.route.lazy))v=!1;else if(R.some(e=>e.route.loader))if(E.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=R.findIndex(e=>void 0!==n[e.route.id]);v=R.slice(0,e+1).every(e=>!de(e.route,t,n))}else v=R.every(e=>!de(e.route,t,n))}else v=null!=e.hydrationData;else v=!0;else if(v=!1,R=[],E.v7_partialHydration){let t=ut(null,w,e.history.location.pathname);t.active&&t.matches&&(I=!0,R=t.matches)}let k,L,B={historyAction:e.history.action,location:e.history.location,matches:R,initialized:v,navigation:ee,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||F,fetchers:new Map,blockers:new Map},N=o.Pop,j=!1,U=!1,V=new Map,H=null,G=!1,W=!1,z=[],$=new Set,Q=new Map,q=0,Y=-1,X=new Map,Z=new Set,ae=new Map,ce=new Map,pe=new Set,he=new Map,ge=new Map;function be(e,t){void 0===t&&(t={}),B=r({},B,e);let n=[],o=[];E.v7_fetcherPersist&&B.fetchers.forEach((e,t)=>{"idle"===e.state&&(pe.has(t)?o.push(t):n.push(t))}),pe.forEach(e=>{B.fetchers.has(e)||Q.has(e)||o.push(e)}),[...x].forEach(e=>e(B,{deletedFetchers:o,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),E.v7_fetcherPersist?(n.forEach(e=>B.fetchers.delete(e)),o.forEach(e=>Ze(e))):o.forEach(e=>pe.delete(e))}function _e(t,n,i){var a,s;let l,{flushSync:c}=void 0===i?{}:i,u=null!=B.actionData&&null!=B.navigation.formMethod&&Be(B.navigation.formMethod)&&"loading"===B.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:u?B.actionData:null;let p=n.loaderData?Ee(B.loaderData,n.loaderData,n.matches||[],n.errors):B.loaderData,h=B.blockers;h.size>0&&(h=new Map(h),h.forEach((e,t)=>h.set(t,ne)));let f,g=!0===j||null!=B.navigation.formMethod&&Be(B.navigation.formMethod)&&!0!==(null==(s=t.state)?void 0:s._isRedirect);if(d&&(w=d,d=void 0),G||N===o.Pop||(N===o.Push?e.history.push(t,t.state):N===o.Replace&&e.history.replace(t,t.state)),N===o.Pop){let e=V.get(B.location.pathname);e&&e.has(t.pathname)?f={currentLocation:B.location,nextLocation:t}:V.has(t.pathname)&&(f={currentLocation:t,nextLocation:B.location})}else if(U){let e=V.get(B.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),V.set(B.location.pathname,e)),f={currentLocation:B.location,nextLocation:t}}be(r({},n,{actionData:l,loaderData:p,historyAction:N,location:t,initialized:!0,navigation:ee,revalidation:"idle",restoreScrollPosition:ct(t,n.matches||B.matches),preventScrollReset:g,blockers:h}),{viewTransitionOpts:f,flushSync:!0===c}),N=o.Pop,j=!1,U=!1,G=!1,W=!1,z=[]}async function Me(t,n,a){k&&k.abort(),k=null,N=t,G=!0===(a&&a.startUninterruptedRevalidation),function(e,t){if(D&&M){let n=lt(e,t);D[n]=M()}}(B.location,B.matches),j=!0===(a&&a.preventScrollReset),U=!0===(a&&a.enableViewTransition);let s=d||w,l=a&&a.overrideNavigation,c=null!=a&&a.initialHydration&&B.matches&&B.matches.length>0&&!I?B.matches:f(s,n,b),u=!0===(a&&a.flushSync);if(c&&B.initialized&&!W&&(h=n,(p=B.location).pathname===h.pathname&&p.search===h.search&&(""===p.hash?""!==h.hash:p.hash===h.hash||""!==h.hash))&&!(a&&a.submission&&Be(a.submission.formMethod)))return void _e(n,{matches:c},{flushSync:u});var p,h;let g=ut(c,s,n.pathname);if(g.active&&g.matches&&(c=g.matches),!c){let{error:e,notFoundMatches:t,route:r}=at(n.pathname);return void _e(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:u})}k=new AbortController;let m,v=we(e.history,n,k.signal,a&&a.submission);if(a&&a.pendingError)m=[Oe(c).route.id,{type:i.error,error:a.pendingError}];else if(a&&a.submission&&Be(a.submission.formMethod)){let t=await async function(t,n,r,a,s,l){void 0===l&&(l={}),Qe();let c,u=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(n,r);if(be({navigation:u},{flushSync:!0===l.flushSync}),s){let e=await dt(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Oe(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:i.error,error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=at(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:i.error,error:t}]}}a=e.matches}let d=He(a,n);if(d.route.action||d.route.lazy){if(c=(await Ve("action",0,t,[d],a,null))[d.route.id],t.signal.aborted)return{shortCircuited:!0}}else c={type:i.error,error:De(405,{method:t.method,pathname:n.pathname,routeId:d.route.id})};if(Fe(c)){let n;return n=l&&null!=l.replace?l.replace:Ae(c.response.headers.get("Location"),new URL(t.url),b,e.history)===B.location.pathname+B.location.search,await Le(t,c,!0,{submission:r,replace:n}),{shortCircuited:!0}}if(Re(c))throw De(400,{type:"defer-action"});if(Ie(c)){let e=Oe(a,d.route.id);return!0!==(l&&l.replace)&&(N=o.Push),{matches:a,pendingActionResult:[e.route.id,c]}}return{matches:a,pendingActionResult:[d.route.id,c]}}(v,n,a.submission,c,g.active,{replace:a.replace,flushSync:u});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ie(r)&&K(r.error)&&404===r.error.status)return k=null,void _e(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}c=t.matches||c,m=t.pendingActionResult,l=We(n,a.submission),u=!1,g.active=!1,v=we(e.history,v.url,v.signal)}let{shortCircuited:y,matches:A,loaderData:_,errors:C}=await async function(t,n,o,i,a,s,l,c,u,p,h){let f=a||We(n,s),g=s||l||Ge(f),m=!(G||E.v7_partialHydration&&u);if(i){if(m){let e=ke(h);be(r({navigation:f},void 0!==e?{actionData:e}:{}),{flushSync:p})}let e=await dt(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Oe(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=at(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let v=d||w,[y,A]=ue(e.history,B,o,g,n,E.v7_partialHydration&&!0===u,E.v7_skipActionErrorRevalidation,W,z,$,pe,ae,Z,v,b,h);if(st(e=>!(o&&o.some(t=>t.route.id===e))||y&&y.some(t=>t.route.id===e)),Y=++q,0===y.length&&0===A.length){let e=tt();return _e(n,r({matches:o,loaderData:{},errors:h&&Ie(h[1])?{[h[0]]:h[1].error}:null},Se(h),e?{fetchers:new Map(B.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(m){let e={};if(!i){e.navigation=f;let t=ke(h);void 0!==t&&(e.actionData=t)}A.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=B.fetchers.get(e.key),n=ze(void 0,t?t.data:void 0);B.fetchers.set(e.key,n)}),new Map(B.fetchers)}(A)),be(e,{flushSync:p})}A.forEach(e=>{Je(e.key),e.controller&&Q.set(e.key,e.controller)});let _=()=>A.forEach(e=>Je(e.key));k&&k.signal.addEventListener("abort",_);let{loaderResults:C,fetcherResults:S}=await Ke(B,o,y,A,t);if(t.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",_),A.forEach(e=>Q.delete(e.key));let O=Pe(C);if(O)return await Le(t,O.result,!0,{replace:c}),{shortCircuited:!0};if(O=Pe(S),O)return Z.add(O.key),await Le(t,O.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:x,errors:D}=Ce(B,o,C,h,A,S,he);he.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&he.delete(t)})}),E.v7_partialHydration&&u&&B.errors&&(D=r({},B.errors,D));let P=tt(),M=nt(Y),T=P||M||A.length>0;return r({matches:o,loaderData:x,errors:D},T?{fetchers:new Map(B.fetchers)}:{})}(v,n,c,g.active,l,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,u,m);y||(k=null,_e(n,r({matches:A||c},Se(m),{loaderData:_,errors:C})))}function ke(e){return e&&!Ie(e[1])?{[e[0]]:e[1].data}:B.actionData?0===Object.keys(B.actionData).length?null:B.actionData:void 0}async function Le(i,a,l,u){let{submission:d,fetcherSubmission:p,preventScrollReset:h,replace:f}=void 0===u?{}:u;a.response.headers.has("X-Remix-Revalidate")&&(W=!0);let g=a.response.headers.get("Location");s(g,"Expected a Location header on the redirect Response"),g=Ae(g,new URL(i.url),b,e.history);let m=c(B.location,g,{_isRedirect:!0});if(n){let n=!1;if(a.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(re.test(g)){const r=e.history.createURL(g);n=r.origin!==t.location.origin||null==O(r.pathname,b)}if(n)return void(f?t.location.replace(g):t.location.assign(g))}k=null;let v=!0===f||a.response.headers.has("X-Remix-Replace")?o.Replace:o.Push,{formMethod:y,formAction:A,formEncType:w}=B.navigation;!d&&!p&&y&&A&&w&&(d=Ge(B.navigation));let _=d||p;if(J.has(a.response.status)&&_&&Be(_.formMethod))await Me(v,m,{submission:r({},_,{formAction:g}),preventScrollReset:h||j,enableViewTransition:l?U:void 0});else{let e=We(m,d);await Me(v,m,{overrideNavigation:e,fetcherSubmission:p,preventScrollReset:h||j,enableViewTransition:l?U:void 0})}}async function Ve(e,t,n,o,a,c){let d,h={};try{d=await async function(e,t,n,o,a,c,u,d,h,f){let g=c.map(e=>e.route.lazy?async function(e,t,n){if(!e.lazy)return;let o=await e.lazy();if(!e.lazy)return;let i=n[e.id];s(i,"No route found in manifest");let a={};for(let e in o){let t=void 0!==i[e]&&"hasErrorBoundary"!==e;l(!t,'Route "'+i.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||p.has(e)||(a[e]=o[e])}Object.assign(i,a),Object.assign(i,r({},t(i),{lazy:void 0}))}(e.route,h,d):void 0),m=c.map((e,n)=>{let l=g[n],c=a.some(t=>t.route.id===e.route.id);return r({},e,{shouldLoad:c,resolve:async n=>(n&&"GET"===o.method&&(e.route.lazy||e.route.loader)&&(c=!0),c?async function(e,t,n,r,o,a){let l,c,u=r=>{let i,s=new Promise((e,t)=>i=t);c=()=>i(),t.signal.addEventListener("abort",c);let l=o=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+n.route.id+"]")):r({request:t,params:n.params,context:a},...void 0!==o?[o]:[]),u=(async()=>{try{return{type:"data",result:await(o?o(e=>l(e)):l())}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,s])};try{let o=n.route[e];if(r)if(o){let e,[t]=await Promise.all([u(o).catch(t=>{e=t}),r]);if(void 0!==e)throw e;l=t}else{if(await r,o=n.route[e],!o){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw De(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:i.data,result:void 0}}l=await u(o)}else{if(!o){let e=new URL(t.url);throw De(404,{pathname:e.pathname+e.search})}l=await u(o)}s(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:i.error,result:e}}finally{c&&t.signal.removeEventListener("abort",c)}return l}(t,o,e,l,n,f):Promise.resolve({type:i.data,result:void 0}))})}),v=await e({matches:m,request:o,params:c[0].params,fetcherKey:u,context:f});try{await Promise.all(g)}catch(e){}return v}(_,e,0,n,o,a,c,A,u)}catch(e){return o.forEach(t=>{h[t.route.id]={type:i.error,error:e}}),h}for(let[e,t]of Object.entries(d))if(Te(t)){let r=t.result;h[e]={type:i.redirect,response:ye(r,n,e,a,b,E.v7_relativeSplatPath)}}else h[e]=await ve(t);return h}async function Ke(t,n,r,o,a){let s=t.matches,l=Ve("loader",0,a,r,n,null),c=Promise.all(o.map(async t=>{if(t.matches&&t.match&&t.controller){let n=(await Ve("loader",0,we(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:n}}return Promise.resolve({[t.key]:{type:i.error,error:De(404,{pathname:t.path})}})})),u=await l,d=(await c).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([Ne(n,u,a.signal,s,t.loaderData),je(n,d,o)]),{loaderResults:u,fetcherResults:d}}function Qe(){W=!0,z.push(...st()),ae.forEach((e,t)=>{Q.has(t)&&$.add(t),Je(t)})}function qe(e,t,n){void 0===n&&(n={}),B.fetchers.set(e,t),be({fetchers:new Map(B.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Ye(e,t,n,r){void 0===r&&(r={});let o=Oe(B.matches,t);Ze(e),be({errors:{[o.route.id]:n},fetchers:new Map(B.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Xe(e){return ce.set(e,(ce.get(e)||0)+1),pe.has(e)&&pe.delete(e),B.fetchers.get(e)||te}function Ze(e){let t=B.fetchers.get(e);!Q.has(e)||t&&"loading"===t.state&&X.has(e)||Je(e),ae.delete(e),X.delete(e),Z.delete(e),E.v7_fetcherPersist&&pe.delete(e),$.delete(e),B.fetchers.delete(e)}function Je(e){let t=Q.get(e);t&&(t.abort(),Q.delete(e))}function et(e){for(let t of e){let e=$e(Xe(t).data);B.fetchers.set(t,e)}}function tt(){let e=[],t=!1;for(let n of Z){let r=B.fetchers.get(n);s(r,"Expected fetcher: "+n),"loading"===r.state&&(Z.delete(n),e.push(n),t=!0)}return et(e),t}function nt(e){let t=[];for(let[n,r]of X)if(r<e){let e=B.fetchers.get(n);s(e,"Expected fetcher: "+n),"loading"===e.state&&(Je(n),X.delete(n),t.push(n))}return et(t),t.length>0}function rt(e){B.blockers.delete(e),ge.delete(e)}function ot(e,t){let n=B.blockers.get(e)||ne;s("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(B.blockers);r.set(e,t),be({blockers:r})}function it(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===ge.size)return;ge.size>1&&l(!1,"A router only supports one blocker at a time");let o=Array.from(ge.entries()),[i,a]=o[o.length-1],s=B.blockers.get(i);return s&&"proceeding"===s.state?void 0:a({currentLocation:t,nextLocation:n,historyAction:r})?i:void 0}function at(e){let t=De(404,{pathname:e}),n=d||w,{matches:r,route:o}=xe(n);return st(),{notFoundMatches:r,route:o,error:t}}function st(e){let t=[];return he.forEach((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),he.delete(r))}),t}function lt(e,t){return P&&P(e,t.map(e=>m(e,B.loaderData)))||e.key}function ct(e,t){if(D){let n=lt(e,t),r=D[n];if("number"==typeof r)return r}return null}function ut(e,t,n){if(C){if(!e)return{active:!0,matches:g(t,n,b,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:g(t,n,b,!0)}}return{active:!1,matches:null}}async function dt(e,t,n,r){if(!C)return{type:"success",matches:e};let o=e;for(;;){let i=null==d,a=d||w,s=A;try{await C({signal:n,path:t,matches:o,fetcherKey:r,patch:(e,t)=>{n.aborted||fe(e,t,a,s,u)}})}catch(e){return{type:"error",error:e,partialMatches:o}}finally{i&&!n.aborted&&(w=[...w])}if(n.aborted)return{type:"aborted"};let l=f(a,t,b);if(l)return{type:"success",matches:l};let c=g(a,t,b,!0);if(!c||o.length===c.length&&o.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};o=c}}return y={get basename(){return b},get future(){return E},get state(){return B},get routes(){return w},get window(){return t},initialize:function(){if(S=e.history.listen(t=>{let{action:n,location:r,delta:o}=t;if(L)return L(),void(L=void 0);l(0===ge.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=it({currentLocation:B.location,nextLocation:r,historyAction:n});if(i&&null!=o){let t=new Promise(e=>{L=e});return e.history.go(-1*o),void ot(i,{state:"blocked",location:r,proceed(){ot(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(o))},reset(){let e=new Map(B.blockers);e.set(i,ne),be({blockers:e})}})}return Me(n,r)}),n){!function(e,t){try{let n=e.sessionStorage.getItem(ie);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,V);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ie,JSON.stringify(n))}catch(e){l(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,V);t.addEventListener("pagehide",e),H=()=>t.removeEventListener("pagehide",e)}return B.initialized||Me(o.Pop,B.location,{initialHydration:!0}),y},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,n){if(D=e,M=t,P=n||null,!T&&B.navigation===ee){T=!0;let e=ct(B.location,B.matches);null!=e&&be({restoreScrollPosition:e})}return()=>{D=null,M=null,P=null}},navigate:async function t(n,i){if("number"==typeof n)return void e.history.go(n);let a=se(B.location,B.matches,b,E.v7_prependBasename,n,E.v7_relativeSplatPath,null==i?void 0:i.fromRouteId,null==i?void 0:i.relative),{path:s,submission:l,error:u}=le(E.v7_normalizeFormMethod,!1,a,i),d=B.location,p=c(B.location,s,i&&i.state);p=r({},p,e.history.encodeLocation(p));let h=i&&null!=i.replace?i.replace:void 0,f=o.Push;!0===h?f=o.Replace:!1===h||null!=l&&Be(l.formMethod)&&l.formAction===B.location.pathname+B.location.search&&(f=o.Replace);let g=i&&"preventScrollReset"in i?!0===i.preventScrollReset:void 0,m=!0===(i&&i.flushSync),v=it({currentLocation:d,nextLocation:p,historyAction:f});if(!v)return await Me(f,p,{submission:l,pendingError:u,preventScrollReset:g,replace:i&&i.replace,enableViewTransition:i&&i.viewTransition,flushSync:m});ot(v,{state:"blocked",location:p,proceed(){ot(v,{state:"proceeding",proceed:void 0,reset:void 0,location:p}),t(n,i)},reset(){let e=new Map(B.blockers);e.set(v,ne),be({blockers:e})}})},fetch:function(t,n,r,o){if(a)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Je(t);let i=!0===(o&&o.flushSync),l=d||w,c=se(B.location,B.matches,b,E.v7_prependBasename,r,E.v7_relativeSplatPath,n,null==o?void 0:o.relative),u=f(l,c,b),p=ut(u,l,c);if(p.active&&p.matches&&(u=p.matches),!u)return void Ye(t,n,De(404,{pathname:c}),{flushSync:i});let{path:h,submission:g,error:m}=le(E.v7_normalizeFormMethod,!0,c,o);if(m)return void Ye(t,n,m,{flushSync:i});let v=He(u,h),y=!0===(o&&o.preventScrollReset);g&&Be(g.formMethod)?async function(t,n,r,o,i,a,l,c,u){function p(e){if(!e.route.action&&!e.route.lazy){let e=De(405,{method:u.formMethod,pathname:r,routeId:n});return Ye(t,n,e,{flushSync:l}),!0}return!1}if(Qe(),ae.delete(t),!a&&p(o))return;let h=B.fetchers.get(t);qe(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(u,h),{flushSync:l});let g=new AbortController,m=we(e.history,r,g.signal,u);if(a){let e=await dt(i,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ye(t,n,e.error,{flushSync:l});if(!e.matches)return void Ye(t,n,De(404,{pathname:r}),{flushSync:l});if(p(o=He(i=e.matches,r)))return}Q.set(t,g);let v=q,y=(await Ve("action",0,m,[o],i,t))[o.route.id];if(m.signal.aborted)return void(Q.get(t)===g&&Q.delete(t));if(E.v7_fetcherPersist&&pe.has(t)){if(Fe(y)||Ie(y))return void qe(t,$e(void 0))}else{if(Fe(y))return Q.delete(t),Y>v?void qe(t,$e(void 0)):(Z.add(t),qe(t,ze(u)),Le(m,y,!1,{fetcherSubmission:u,preventScrollReset:c}));if(Ie(y))return void Ye(t,n,y.error)}if(Re(y))throw De(400,{type:"defer-action"});let A=B.navigation.location||B.location,_=we(e.history,A,g.signal),C=d||w,S="idle"!==B.navigation.state?f(C,B.navigation.location,b):B.matches;s(S,"Didn't find any matches after fetcher action");let O=++q;X.set(t,O);let x=ze(u,y.data);B.fetchers.set(t,x);let[D,P]=ue(e.history,B,S,u,A,!1,E.v7_skipActionErrorRevalidation,W,z,$,pe,ae,Z,C,b,[o.route.id,y]);P.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=B.fetchers.get(t),r=ze(void 0,n?n.data:void 0);B.fetchers.set(t,r),Je(t),e.controller&&Q.set(t,e.controller)}),be({fetchers:new Map(B.fetchers)});let M=()=>P.forEach(e=>Je(e.key));g.signal.addEventListener("abort",M);let{loaderResults:T,fetcherResults:R}=await Ke(B,S,D,P,_);if(g.signal.aborted)return;g.signal.removeEventListener("abort",M),X.delete(t),Q.delete(t),P.forEach(e=>Q.delete(e.key));let I=Pe(T);if(I)return Le(_,I.result,!1,{preventScrollReset:c});if(I=Pe(R),I)return Z.add(I.key),Le(_,I.result,!1,{preventScrollReset:c});let{loaderData:F,errors:L}=Ce(B,S,T,void 0,P,R,he);if(B.fetchers.has(t)){let e=$e(y.data);B.fetchers.set(t,e)}nt(O),"loading"===B.navigation.state&&O>Y?(s(N,"Expected pending action"),k&&k.abort(),_e(B.navigation.location,{matches:S,loaderData:F,errors:L,fetchers:new Map(B.fetchers)})):(be({errors:L,loaderData:Ee(B.loaderData,F,S,L),fetchers:new Map(B.fetchers)}),W=!1)}(t,n,h,v,u,p.active,i,y,g):(ae.set(t,{routeId:n,path:h}),async function(t,n,r,o,i,a,l,c,u){let d=B.fetchers.get(t);qe(t,ze(u,d?d.data:void 0),{flushSync:l});let p=new AbortController,h=we(e.history,r,p.signal);if(a){let e=await dt(i,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ye(t,n,e.error,{flushSync:l});if(!e.matches)return void Ye(t,n,De(404,{pathname:r}),{flushSync:l});o=He(i=e.matches,r)}Q.set(t,p);let f=q,g=(await Ve("loader",0,h,[o],i,t))[o.route.id];if(Re(g)&&(g=await Ue(g,h.signal,!0)||g),Q.get(t)===p&&Q.delete(t),!h.signal.aborted){if(!pe.has(t))return Fe(g)?Y>f?void qe(t,$e(void 0)):(Z.add(t),void await Le(h,g,!1,{preventScrollReset:c})):void(Ie(g)?Ye(t,n,g.error):(s(!Re(g),"Unhandled fetcher deferred data"),qe(t,$e(g.data))));qe(t,$e(void 0))}}(t,n,h,v,u,p.active,i,y,g))},revalidate:function(){Qe(),be({revalidation:"loading"}),"submitting"!==B.navigation.state&&("idle"!==B.navigation.state?Me(N||B.historyAction,B.navigation.location,{overrideNavigation:B.navigation,enableViewTransition:!0===U}):Me(B.historyAction,B.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Xe,deleteFetcher:function(e){let t=(ce.get(e)||0)-1;t<=0?(ce.delete(e),pe.add(e),E.v7_fetcherPersist||Ze(e)):ce.set(e,t),be({fetchers:new Map(B.fetchers)})},dispose:function(){S&&S(),H&&H(),x.clear(),k&&k.abort(),B.fetchers.forEach((e,t)=>Ze(t)),B.blockers.forEach((e,t)=>rt(t))},getBlocker:function(e,t){let n=B.blockers.get(e)||ne;return ge.get(e)!==t&&ge.set(e,t),n},deleteBlocker:rt,patchRoutes:function(e,t){let n=null==d;fe(e,t,d||w,A,u),n&&(w=[...w],be({}))},_internalFetchControllers:Q,_internalActiveDeferreds:he,_internalSetRoutes:function(e){A={},d=h(e,u,void 0,A)}},y}function se(e,t,n,r,o,i,a,s){let l,c;if(a){l=[];for(let e of t)if(l.push(e),e.route.id===a){c=e;break}}else l=t,c=t[t.length-1];let d=I(o||".",R(l,i),O(e.pathname,n)||e.pathname,"path"===s);if(null==o&&(d.search=e.search,d.hash=e.hash),(null==o||""===o||"."===o)&&c){let e=Ve(d.search);if(c.route.index&&!e)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(d.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();d.search=n?"?"+n:""}}return r&&"/"!==n&&(d.pathname="/"===d.pathname?n:F([n,d.pathname])),u(d)}function le(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&(o=r.formMethod,!X.has(o.toLowerCase())))return{path:n,error:De(405,{method:r.formMethod})};var o;let i,a,l=()=>({path:n,error:De(400,{type:"invalid-body"})}),c=r.formMethod||"get",p=e?c.toUpperCase():c.toLowerCase(),h=Me(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!Be(p))return l();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"},""):String(r.body);return{path:n,submission:{formMethod:p,formAction:h,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!Be(p))return l();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:p,formAction:h,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(s("function"==typeof FormData,"FormData is not available in this environment"),r.formData)i=be(r.formData),a=r.formData;else if(r.body instanceof FormData)i=be(r.body),a=r.body;else if(r.body instanceof URLSearchParams)i=r.body,a=_e(i);else if(null==r.body)i=new URLSearchParams,a=new FormData;else try{i=new URLSearchParams(r.body),a=_e(i)}catch(e){return l()}let f={formMethod:p,formAction:h,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:a,json:void 0,text:void 0};if(Be(f.formMethod))return{path:n,submission:f};let g=d(n);return t&&g.search&&Ve(g.search)&&i.append("index",""),g.search="?"+i,{path:u(g),submission:f}}function ce(e,t,n){void 0===n&&(n=!1);let r=e.findIndex(e=>e.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function ue(e,t,n,o,i,a,s,l,c,u,d,p,h,g,m,v){let y=v?Ie(v[1])?v[1].error:v[1].data:void 0,A=e.createURL(t.location),w=e.createURL(i),b=n;a&&t.errors?b=ce(n,Object.keys(t.errors)[0],!0):v&&Ie(v[1])&&(b=ce(n,v[0]));let _=v?v[1].statusCode:void 0,C=s&&_&&_>=400,E=b.filter((e,n)=>{let{route:i}=e;if(i.lazy)return!0;if(null==i.loader)return!1;if(a)return de(i,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=void 0===e[n.route.id];return r||o}(t.loaderData,t.matches[n],e)||c.some(t=>t===e.route.id))return!0;let s=t.matches[n],u=e;return he(e,r({currentUrl:A,currentParams:s.params,nextUrl:w,nextParams:u.params},o,{actionResult:y,actionStatus:_,defaultShouldRevalidate:!C&&(l||A.pathname+A.search===w.pathname+w.search||A.search!==w.search||pe(s,u))}))}),S=[];return p.forEach((e,i)=>{if(a||!n.some(t=>t.route.id===e.routeId)||d.has(i))return;let s=f(g,e.path,m);if(!s)return void S.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let c=t.fetchers.get(i),p=He(s,e.path),v=!1;h.has(i)?v=!1:u.has(i)?(u.delete(i),v=!0):v=c&&"idle"!==c.state&&void 0===c.data?l:he(p,r({currentUrl:A,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},o,{actionResult:y,actionStatus:_,defaultShouldRevalidate:!C&&l})),v&&S.push({key:i,routeId:e.routeId,path:e.path,matches:s,match:p,controller:new AbortController})}),[E,S]}function de(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function pe(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function he(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function fe(e,t,n,r,o){var i;let a;if(e){let t=r[e];s(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),a=t.children}else a=n;let l=h(t.filter(e=>!a.some(t=>ge(e,t))),o,[e||"_","patch",String((null==(i=a)?void 0:i.length)||"0")],r);a.push(...l)}function ge(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((e,n)=>{var r;return null==(r=t.children)?void 0:r.some(t=>ge(e,t))}))}async function me(e){let{matches:t}=e,n=t.filter(e=>e.shouldLoad);return(await Promise.all(n.map(e=>e.resolve()))).reduce((e,t,r)=>Object.assign(e,{[n[r].route.id]:t}),{})}async function ve(e){let{result:t,type:n}=e;if(Le(t)){let r;try{let e=t.headers.get("Content-Type");r=e&&/\bapplication\/json\b/.test(e)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:i.error,error:e}}return n===i.error?{type:i.error,error:new $(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:i.data,data:r,statusCode:t.status,headers:t.headers}}var r,o,a,s,l,c,u,d;return n===i.error?ke(t)?t.data instanceof Error?{type:i.error,error:t.data,statusCode:null==(a=t.init)?void 0:a.status,headers:null!=(s=t.init)&&s.headers?new Headers(t.init.headers):void 0}:{type:i.error,error:new $((null==(r=t.init)?void 0:r.status)||500,void 0,t.data),statusCode:K(t)?t.status:void 0,headers:null!=(o=t.init)&&o.headers?new Headers(t.init.headers):void 0}:{type:i.error,error:t,statusCode:K(t)?t.status:void 0}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:i.deferred,deferredData:t,statusCode:null==(l=t.init)?void 0:l.status,headers:(null==(c=t.init)?void 0:c.headers)&&new Headers(t.init.headers)}:ke(t)?{type:i.data,data:t.data,statusCode:null==(u=t.init)?void 0:u.status,headers:null!=(d=t.init)&&d.headers?new Headers(t.init.headers):void 0}:{type:i.data,data:t}}function ye(e,t,n,r,o,i){let a=e.headers.get("Location");if(s(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!re.test(a)){let s=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=se(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function Ae(e,t,n,r){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(re.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(o.includes(i.protocol))throw new Error("Invalid redirect location");let a=null!=O(i.pathname,n);if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}try{let t=r.createURL(e);if(o.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function we(e,t,n,r){let o=e.createURL(Me(t)).toString(),i={signal:n};if(r&&Be(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=be(r.formData):i.body=r.formData}return new Request(o,i)}function be(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function _e(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ce(e,t,n,o,i,a,l){let{loaderData:c,errors:u}=function(e,t,n,r){let o,i={},a=null,l=!1,c={},u=n&&Ie(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,p=t[d];if(s(!Fe(p),"Cannot handle redirect results in processLoaderData"),Ie(p)){let t=p.error;void 0!==u&&(t=u,u=void 0),a=a||{};{let n=Oe(e,d);null==a[n.route.id]&&(a[n.route.id]=t)}i[d]=void 0,l||(l=!0,o=K(p.error)?p.error.status:500),p.headers&&(c[d]=p.headers)}else Re(p)?(r.set(d,p.deferredData),i[d]=p.deferredData.data,null==p.statusCode||200===p.statusCode||l||(o=p.statusCode),p.headers&&(c[d]=p.headers)):(i[d]=p.data,p.statusCode&&200!==p.statusCode&&!l&&(o=p.statusCode),p.headers&&(c[d]=p.headers))}),void 0!==u&&n&&(a={[n[0]]:u},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:o||200,loaderHeaders:c}}(t,n,o,l);return i.forEach(t=>{let{key:n,match:o,controller:i}=t,l=a[n];if(s(l,"Did not find corresponding fetcher result"),!i||!i.signal.aborted)if(Ie(l)){let t=Oe(e.matches,null==o?void 0:o.route.id);u&&u[t.route.id]||(u=r({},u,{[t.route.id]:l.error})),e.fetchers.delete(n)}else if(Fe(l))s(!1,"Unhandled fetcher revalidation redirect");else if(Re(l))s(!1,"Unhandled fetcher deferred data");else{let t=$e(l.data);e.fetchers.set(n,t)}}),{loaderData:c,errors:u}}function Ee(e,t,n,o){let i=r({},t);for(let r of n){let n=r.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(i[n]=t[n]):void 0!==e[n]&&r.route.loader&&(i[n]=e[n]),o&&o.hasOwnProperty(n))break}return i}function Se(e){return e?Ie(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Oe(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function xe(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function De(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===i?l="defer() is not supported in actions":"invalid-body"===i&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(s="Not Found",l='No route matches URL "'+n+'"'):405===e&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new $(e||500,s,new Error(l),!0)}function Pe(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Fe(r))return{key:n,result:r}}}function Me(e){return u(r({},"string"==typeof e?d(e):e,{hash:""}))}function Te(e){return Le(e.result)&&Z.has(e.result.status)}function Re(e){return e.type===i.deferred}function Ie(e){return e.type===i.error}function Fe(e){return(e&&e.type)===i.redirect}function ke(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Le(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Be(e){return q.has(e.toLowerCase())}async function Ne(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a<i.length;a++){let[s,l]=i[a],c=e.find(e=>(null==e?void 0:e.route.id)===s);if(!c)continue;let u=r.find(e=>e.route.id===c.route.id),d=null!=u&&!pe(u,c)&&void 0!==(o&&o[c.route.id]);Re(l)&&d&&await Ue(l,n,!1).then(e=>{e&&(t[s]=e)})}}async function je(e,t,n){for(let r=0;r<n.length;r++){let{key:o,routeId:i,controller:a}=n[r],l=t[o];e.find(e=>(null==e?void 0:e.route.id)===i)&&Re(l)&&(s(a,"Expected an AbortController for revalidating fetcher deferred result"),await Ue(l,a.signal,!0).then(e=>{e&&(t[o]=e)}))}}async function Ue(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:i.data,data:e.deferredData.unwrappedData}}catch(e){return{type:i.error,error:e}}return{type:i.data,data:e.deferredData.data}}}function Ve(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function He(e,t){let n="string"==typeof t?d(t).search:t.search;if(e[e.length-1].route.index&&Ve(n||""))return e[e.length-1];let r=T(e);return r[r.length-1]}function Ge(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function We(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ze(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function $e(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},8479(e){"use strict";e.exports=function(e){return"[object String]"=={}.toString.call(e)?e.replace(t,".$1").replace(n,""):""};var t=/\[([^\[\]]+)\]/g,n=/^[.]*|[.]*$/g},2688(e,t,n){n(8959),e.exports=n(163).Array.isArray},6725(e,t,n){n(615),e.exports=n(163).Object.assign},9397(e,t,n){n(5833),e.exports=n(163).Object.getOwnPropertySymbols},8608(e,t,n){n(8386),e.exports=n(163).Object.keys},8201(e,t,n){n(6045),n(9066),n(3377),n(3996),n(1350),n(3600),e.exports=n(163).Promise},930(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},4909(e){e.exports=function(){}},5647(e){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},2991(e,t,n){var r=n(9978);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},5497(e,t,n){var r=n(592),o=n(934),i=n(7906);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},2979(e,t,n){var r=n(1830),o=n(2657)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},1830(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},163(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},7343(e,t,n){var r=n(930);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},183(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},7908(e,t,n){e.exports=!n(3607)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},2579(e,t,n){var r=n(9978),o=n(6259).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},5519(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3818(e,t,n){var r=n(8952),o=n(7031),i=n(8252);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),l=i.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},302(e,t,n){var r=n(6259),o=n(163),i=n(7343),a=n(8036),s=n(5758),l="prototype",c=function(e,t,n){var u,d,p,h=e&c.F,f=e&c.G,g=e&c.S,m=e&c.P,v=e&c.B,y=e&c.W,A=f?o:o[t]||(o[t]={}),w=A[l],b=f?r:g?r[t]:(r[t]||{})[l];for(u in f&&(n=t),n)(d=!h&&b&&void 0!==b[u])&&s(A,u)||(p=d?b[u]:n[u],A[u]=f&&"function"!=typeof b[u]?n[u]:v&&d?i(p,r):y&&b[u]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(p):m&&"function"==typeof p?i(Function.call,p):p,m&&((A.virtual||(A.virtual={}))[u]=p,e&c.R&&w&&!w[u]&&a(w,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},3607(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},9415(e,t,n){var r=n(7343),o=n(4415),i=n(1723),a=n(2991),s=n(934),l=n(6513),c={},u={},d=e.exports=function(e,t,n,d,p){var h,f,g,m,v=p?function(){return e}:l(e),y=r(n,d,t?2:1),A=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(h=s(e.length);h>A;A++)if((m=t?y(a(f=e[A])[0],f[1]):y(e[A]))===c||m===u)return m}else for(g=v.call(e);!(f=g.next()).done;)if((m=o(g,y,f.value,t))===c||m===u)return m};d.BREAK=c,d.RETURN=u},6259(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},5758(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},8036(e,t,n){var r=n(3988),o=n(9579);e.exports=n(7908)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},1813(e,t,n){var r=n(6259).document;e.exports=r&&r.documentElement},8501(e,t,n){e.exports=!n(7908)&&!n(3607)(function(){return 7!=Object.defineProperty(n(2579)("div"),"a",{get:function(){return 7}}).a})},5476(e){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},1530(e,t,n){var r=n(1830);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},1723(e,t,n){var r=n(3045),o=n(2657)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},5104(e,t,n){var r=n(1830);e.exports=Array.isArray||function(e){return"Array"==r(e)}},9978(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},4415(e,t,n){var r=n(2991);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},3155(e,t,n){"use strict";var r=n(1728),o=n(9579),i=n(9751),a={};n(8036)(a,n(2657)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},4920(e,t,n){"use strict";var r=n(829),o=n(302),i=n(826),a=n(8036),s=n(3045),l=n(3155),c=n(9751),u=n(5346),d=n(2657)("iterator"),p=!([].keys&&"next"in[].keys()),h="keys",f="values",g=function(){return this};e.exports=function(e,t,n,m,v,y,A){l(n,t,m);var w,b,_,C=function(e){if(!p&&e in x)return x[e];switch(e){case h:case f:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",S=v==f,O=!1,x=e.prototype,D=x[d]||x["@@iterator"]||v&&x[v],P=D||C(v),M=v?S?C("entries"):P:void 0,T="Array"==t&&x.entries||D;if(T&&(_=u(T.call(new e)))!==Object.prototype&&_.next&&(c(_,E,!0),r||"function"==typeof _[d]||a(_,d,g)),S&&D&&D.name!==f&&(O=!0,P=function(){return D.call(this)}),r&&!A||!p&&!O&&x[d]||a(x,d,P),s[t]=P,s[E]=g,v)if(w={values:S?P:C(f),keys:y?P:C(h),entries:M},A)for(b in w)b in x||i(x,b,w[b]);else o(o.P+o.F*(p||O),t,w);return w}},7476(e,t,n){var r=n(2657)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},3893(e){e.exports=function(e,t){return{value:t,done:!!e}}},3045(e){e.exports={}},829(e){e.exports=!0},3205(e,t,n){var r=n(3112)("meta"),o=n(9978),i=n(5758),a=n(3988).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(3607)(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!i(e,r)&&u(e),e}}},3979(e,t,n){var r=n(6259),o=n(17).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n(1830)(a);e.exports=function(){var e,t,n,c=function(){var r,o;for(l&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){o.call(r,c)};else{var d=!0,p=document.createTextNode("");new i(c).observe(p,{characterData:!0}),n=function(){p.data=d=!d}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},5699(e,t,n){"use strict";var r=n(930);function o(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new o(e)}},7261(e,t,n){"use strict";var r=n(7908),o=n(8952),i=n(7031),a=n(8252),s=n(4445),l=n(1530),c=Object.assign;e.exports=!c||n(3607)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=i.f,p=a.f;c>u;)for(var h,f=l(arguments[u++]),g=d?o(f).concat(d(f)):o(f),m=g.length,v=0;m>v;)h=g[v++],r&&!p.call(f,h)||(n[h]=f[h]);return n}:c},1728(e,t,n){var r=n(2991),o=n(2587),i=n(5519),a=n(5567)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n(2579)("iframe"),r=i.length;for(t.style.display="none",n(1813).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c[l][i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},3988(e,t,n){var r=n(2991),o=n(8501),i=n(3905),a=Object.defineProperty;t.f=n(7908)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},2587(e,t,n){var r=n(3988),o=n(2991),i=n(8952);e.exports=n(7908)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},1062(e,t,n){var r=n(8252),o=n(9579),i=n(592),a=n(3905),s=n(5758),l=n(8501),c=Object.getOwnPropertyDescriptor;t.f=n(7908)?c:function(e,t){if(e=i(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},4342(e,t,n){var r=n(592),o=n(1220).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},1220(e,t,n){var r=n(6876),o=n(5519).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},7031(e,t){t.f=Object.getOwnPropertySymbols},5346(e,t,n){var r=n(5758),o=n(4445),i=n(5567)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},6876(e,t,n){var r=n(5758),o=n(592),i=n(5497)(!1),a=n(5567)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},8952(e,t,n){var r=n(6876),o=n(5519);e.exports=Object.keys||function(e){return r(e,o)}},8252(e,t){t.f={}.propertyIsEnumerable},2189(e,t,n){var r=n(302),o=n(163),i=n(3607);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},8295(e){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},3670(e,t,n){var r=n(2991),o=n(9978),i=n(5699);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},9579(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5780(e,t,n){var r=n(8036);e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},826(e,t,n){e.exports=n(8036)},2121(e,t,n){"use strict";var r=n(6259),o=n(163),i=n(3988),a=n(7908),s=n(2657)("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},9751(e,t,n){var r=n(3988).f,o=n(5758),i=n(2657)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},5567(e,t,n){var r=n(3865)("keys"),o=n(3112);e.exports=function(e){return r[e]||(r[e]=o(e))}},3865(e,t,n){var r=n(163),o=n(6259),i="__core-js_shared__",a=o[i]||(o[i]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(829)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},413(e,t,n){var r=n(2991),o=n(930),i=n(2657)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},2559(e,t,n){var r=n(1438),o=n(183);e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},17(e,t,n){var r,o,i,a=n(7343),s=n(5476),l=n(1813),c=n(2579),u=n(6259),d=u.process,p=u.setImmediate,h=u.clearImmediate,f=u.MessageChannel,g=u.Dispatch,m=0,v={},y="onreadystatechange",A=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},w=function(e){A.call(e.data)};p&&h||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},h=function(e){delete v[e]},"process"==n(1830)(d)?r=function(e){d.nextTick(a(A,e,1))}:g&&g.now?r=function(e){g.now(a(A,e,1))}:f?(i=(o=new f).port2,o.port1.onmessage=w,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",w,!1)):r=y in c("script")?function(e){l.appendChild(c("script"))[y]=function(){l.removeChild(this),A.call(e)}}:function(e){setTimeout(a(A,e,1),0)}),e.exports={set:p,clear:h}},7906(e,t,n){var r=n(1438),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},1438(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},592(e,t,n){var r=n(1530),o=n(183);e.exports=function(e){return r(o(e))}},934(e,t,n){var r=n(1438),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},4445(e,t,n){var r=n(183);e.exports=function(e){return Object(r(e))}},3905(e,t,n){var r=n(9978);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},3112(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},6463(e,t,n){var r=n(6259).navigator;e.exports=r&&r.userAgent||""},41(e,t,n){var r=n(6259),o=n(163),i=n(829),a=n(1535),s=n(3988).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},1535(e,t,n){t.f=n(2657)},2657(e,t,n){var r=n(3865)("wks"),o=n(3112),i=n(6259).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},6513(e,t,n){var r=n(2979),o=n(2657)("iterator"),i=n(3045);e.exports=n(163).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},8959(e,t,n){var r=n(302);r(r.S,"Array",{isArray:n(5104)})},578(e,t,n){"use strict";var r=n(4909),o=n(3893),i=n(3045),a=n(592);e.exports=n(4920)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},615(e,t,n){var r=n(302);r(r.S+r.F,"Object",{assign:n(7261)})},8386(e,t,n){var r=n(4445),o=n(8952);n(2189)("keys",function(){return function(e){return o(r(e))}})},6045(){},3996(e,t,n){"use strict";var r,o,i,a,s=n(829),l=n(6259),c=n(7343),u=n(2979),d=n(302),p=n(9978),h=n(930),f=n(5647),g=n(9415),m=n(413),v=n(17).set,y=n(3979)(),A=n(5699),w=n(8295),b=n(6463),_=n(3670),C="Promise",E=l.TypeError,S=l.process,O=S&&S.versions,x=O&&O.v8||"",D=l[C],P="process"==u(S),M=function(){},T=o=A.f,R=!!function(){try{var e=D.resolve(1),t=(e.constructor={})[n(2657)("species")]=function(e){e(M,M)};return(P||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof t&&0!==x.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(e){}}(),I=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},F=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,s=o?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(o||(2==e._h&&B(e),e._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),a=!0)),n===t.promise?c(E("Promise-chain cycle")):(i=I(n))?i.call(n,l,c):l(n)):c(r)}catch(e){u&&!a&&u.exit(),c(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&k(e)})}},k=function(e){v.call(l,function(){var t,n,r,o=e._v,i=L(e);if(i&&(t=w(function(){P?S.emit("unhandledRejection",o,e):(n=l.onunhandledrejection)?n({promise:e,reason:o}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=P||L(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},L=function(e){return 1!==e._h&&0===(e._a||e._c).length},B=function(e){v.call(l,function(){var t;P?S.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},N=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),F(t,!0))},j=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw E("Promise can't be resolved itself");(t=I(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,c(j,r,1),c(N,r,1))}catch(e){N.call(r,e)}}):(n._v=e,n._s=1,F(n,!1))}catch(e){N.call({_w:n,_d:!1},e)}}};R||(D=function(e){f(this,D,C,"_h"),h(e),r.call(this);try{e(c(j,this,1),c(N,this,1))}catch(e){N.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(5780)(D.prototype,{then:function(e,t){var n=T(m(this,D));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=P?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=c(j,e,1),this.reject=c(N,e,1)},A.f=T=function(e){return e===D||e===a?new i(e):o(e)}),d(d.G+d.W+d.F*!R,{Promise:D}),n(9751)(D,C),n(2121)(C),a=n(163)[C],d(d.S+d.F*!R,C,{reject:function(e){var t=T(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!R),C,{resolve:function(e){return _(s&&this===a?D:this,e)}}),d(d.S+d.F*!(R&&n(7476)(function(e){D.all(e).catch(M)})),C,{all:function(e){var t=this,n=T(t),r=n.resolve,o=n.reject,i=w(function(){var n=[],i=0,a=1;g(e,!1,function(e){var s=i++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=T(t),r=n.reject,o=w(function(){g(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},9066(e,t,n){"use strict";var r=n(2559)(!0);n(4920)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},5833(e,t,n){"use strict";var r=n(6259),o=n(5758),i=n(7908),a=n(302),s=n(826),l=n(3205).KEY,c=n(3607),u=n(3865),d=n(9751),p=n(3112),h=n(2657),f=n(1535),g=n(41),m=n(3818),v=n(5104),y=n(2991),A=n(9978),w=n(4445),b=n(592),_=n(3905),C=n(9579),E=n(1728),S=n(4342),O=n(1062),x=n(7031),D=n(3988),P=n(8952),M=O.f,T=D.f,R=S.f,I=r.Symbol,F=r.JSON,k=F&&F.stringify,L="prototype",B=h("_hidden"),N=h("toPrimitive"),j={}.propertyIsEnumerable,U=u("symbol-registry"),V=u("symbols"),H=u("op-symbols"),G=Object[L],W="function"==typeof I&&!!x.f,z=r.QObject,$=!z||!z[L]||!z[L].findChild,K=i&&c(function(){return 7!=E(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=M(G,t);r&&delete G[t],T(e,t,n),r&&e!==G&&T(G,t,r)}:T,Q=function(e){var t=V[e]=E(I[L]);return t._k=e,t},q=W&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},Y=function(e,t,n){return e===G&&Y(H,t,n),y(e),t=_(t,!0),y(n),o(V,t)?(n.enumerable?(o(e,B)&&e[B][t]&&(e[B][t]=!1),n=E(n,{enumerable:C(0,!1)})):(o(e,B)||T(e,B,C(1,{})),e[B][t]=!0),K(e,t,n)):T(e,t,n)},X=function(e,t){y(e);for(var n,r=m(t=b(t)),o=0,i=r.length;i>o;)Y(e,n=r[o++],t[n]);return e},Z=function(e){var t=j.call(this,e=_(e,!0));return!(this===G&&o(V,e)&&!o(H,e))&&(!(t||!o(this,e)||!o(V,e)||o(this,B)&&this[B][e])||t)},J=function(e,t){if(e=b(e),t=_(t,!0),e!==G||!o(V,t)||o(H,t)){var n=M(e,t);return!n||!o(V,t)||o(e,B)&&e[B][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=R(b(e)),r=[],i=0;n.length>i;)o(V,t=n[i++])||t==B||t==l||r.push(t);return r},te=function(e){for(var t,n=e===G,r=R(n?H:b(e)),i=[],a=0;r.length>a;)!o(V,t=r[a++])||n&&!o(G,t)||i.push(V[t]);return i};W||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===G&&t.call(H,n),o(this,B)&&o(this[B],e)&&(this[B][e]=!1),K(this,e,C(1,n))};return i&&$&&K(G,e,{configurable:!0,set:t}),Q(e)},s(I[L],"toString",function(){return this._k}),O.f=J,D.f=Y,n(1220).f=S.f=ee,n(8252).f=Z,x.f=te,i&&!n(829)&&s(G,"propertyIsEnumerable",Z,!0),f.f=function(e){return Q(h(e))}),a(a.G+a.W+a.F*!W,{Symbol:I});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)h(ne[re++]);for(var oe=P(h.store),ie=0;oe.length>ie;)g(oe[ie++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return o(U,e+="")?U[e]:U[e]=I(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!W,"Object",{create:function(e,t){return void 0===t?E(e):X(E(e),t)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=c(function(){x.f(1)});a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return x.f(w(e))}}),F&&a(a.S+a.F*(!W||c(function(){var e=I();return"[null]"!=k([e])||"{}"!=k({a:e})||"{}"!=k(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(A(t)||void 0!==e)&&!q(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),r[1]=t,k.apply(F,r)}}),I[L][N]||n(8036)(I[L],N,I[L].valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},1350(e,t,n){"use strict";var r=n(302),o=n(163),i=n(6259),a=n(413),s=n(3670);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},3600(e,t,n){"use strict";var r=n(302),o=n(5699),i=n(8295);r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},3377(e,t,n){n(578);for(var r=n(6259),o=n(8036),i=n(3045),a=n(2657)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=r[c],d=u&&u.prototype;d&&!d[a]&&o(d,a,c),i[c]=i.Array}},5337(e,t,n){"use strict";var r=Function.prototype.bind||n(4480);e.exports=function(e,t){var n=function(){return 0===arguments.length?n:arguments.length>1?e.apply(t,arguments):r.call(e,t,arguments[0])};return n.uncurry=function(){return e},n}},1973(e,t,n){e.exports=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},t=function(e,t){return e(t={exports:{}}),t.exports}(function(t,n){t.exports=function(){var t="function"==typeof Promise,n="object"==typeof self?self:e,r="undefined"!=typeof Symbol,o="undefined"!=typeof Map,i="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,l="undefined"!=typeof DataView,c=r&&void 0!==Symbol.iterator,u=r&&void 0!==Symbol.toStringTag,d=i&&"function"==typeof Set.prototype.entries,p=o&&"function"==typeof Map.prototype.entries,h=d&&Object.getPrototypeOf((new Set).entries()),f=p&&Object.getPrototypeOf((new Map).entries()),g=c&&"function"==typeof Array.prototype[Symbol.iterator],m=g&&Object.getPrototypeOf([][Symbol.iterator]()),v=c&&"function"==typeof String.prototype[Symbol.iterator],y=v&&Object.getPrototypeOf(""[Symbol.iterator]());return function(e){var r=typeof e;if("object"!==r)return r;if(null===e)return"null";if(e===n)return"global";if(Array.isArray(e)&&(!1===u||!(Symbol.toStringTag in e)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&e===window.location)return"Location";if("object"==typeof window.document&&e===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&e===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&e===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&e instanceof window.HTMLElement){if("BLOCKQUOTE"===e.tagName)return"HTMLQuoteElement";if("TD"===e.tagName)return"HTMLTableDataCellElement";if("TH"===e.tagName)return"HTMLTableHeaderCellElement"}}var c=u&&e[Symbol.toStringTag];if("string"==typeof c)return c;var d=Object.getPrototypeOf(e);return d===RegExp.prototype?"RegExp":d===Date.prototype?"Date":t&&d===Promise.prototype?"Promise":i&&d===Set.prototype?"Set":o&&d===Map.prototype?"Map":s&&d===WeakSet.prototype?"WeakSet":a&&d===WeakMap.prototype?"WeakMap":l&&d===DataView.prototype?"DataView":o&&d===f?"Map Iterator":i&&d===h?"Set Iterator":g&&d===m?"Array Iterator":v&&d===y?"String Iterator":null===d?"Object":Object.prototype.toString.call(e).slice(8,-1)}}()});const r=void 0!==Buffer,o=r&&void 0!==Buffer.from,i=r?function(e){return Buffer.isBuffer(e)}:function(){return!1},a=o?function(e){return Buffer.from(e)}:r?function(e){return new Buffer(e)}:function(e){return e};function s(e){return i(e)?"Buffer":t(e)}const l=new Set(["Arguments","Array","Map","Object","Set"]);function c(e,t,n=null){switch(n||s(e)){case"Arguments":case"Array":case"Object":return e[t];case"Map":return e.get(t);case"Set":return t}}function u(e){return l.has(e)}function d(e,t,n,r=null){switch(r||s(e)){case"Arguments":case"Array":case"Object":e[t]=n;break;case"Map":e.set(t,n);break;case"Set":e.add(n)}return e}const p="undefined"!=typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis,h=void 0!==n.g&&null!==n.g&&n.g.Object===Object&&n.g,f="undefined"!=typeof self&&null!==self&&self.Object===Object&&self,g=p||h||f||Function("return this")();function m(e,t){return g[t].from?g[t].from(e):new g[t](e)}function v(e){return e}function y(){return[]}var A=new Map([["ArrayBuffer",function(e){return e.slice(0)}],["Boolean",function(e){return new Boolean(e.valueOf())}],["Buffer",function(e){return a(e)}],["DataView",function(e){return new DataView(e.buffer)}],["Date",function(e){return new Date(e.getTime())}],["Number",function(e){return new Number(e)}],["RegExp",function(e){return new RegExp(e.source,e.flags)}],["String",function(e){return new String(e)}],["Float32Array",m],["Float64Array",m],["Int16Array",m],["Int32Array",m],["Int8Array",m],["Uint16Array",m],["Uint32Array",m],["Uint8Array",m],["Uint8ClampedArray",m],["Array Iterator",v],["Map Iterator",v],["Promise",v],["Set Iterator",v],["String Iterator",v],["function",v],["global",v],["WeakMap",v],["WeakSet",v],["boolean",v],["null",v],["number",v],["string",v],["symbol",v],["undefined",v],["Arguments",y],["Array",y],["Map",function(){return new Map}],["Object",function(){return{}}],["Set",function(){return new Set}]]);function w(){}function b(e,t=null,n=w){2===arguments.length&&"function"==typeof t&&(n=t,t=null);const r=t||s(e),o=A.get(r);if("Object"===r){const t=n(e,r);if(void 0!==t)return t}return o?o(e,r):e}function _(e,t,n,r,o){const i=s(e),a=b(e,i);if(!u(i))return a;let l;switch(i){case"Arguments":case"Array":l=Object.keys(e);break;case"Object":l=Object.keys(e),l.push(...Object.getOwnPropertySymbols(e));break;case"Map":case"Set":l=e.keys()}for(let o of l){const a=c(e,o,i);if(r.has(a))d(t,o,n.get(a),i);else{const e=s(a),l=b(a,e);u(e)&&(n.set(a,l),r.add(a)),d(t,o,_(a,l,n,r),i)}}return t}return function(e,t={}){"function"==typeof t&&(t={customizer:t});const{customizer:n}=t,r=s(e);if(!u(r))return _(e,null,null,null);const o=b(e,r,n);return _(e,o,new WeakMap([[e,o]]),new WeakSet([e]))}}()},5932(e){"use strict";var t=Object.prototype.toString;function n(e){return e.replace(/\uffff/g,".")}e.exports=function(e){for(var r=-1,o=function(e){for(var t=-1,n=e.length,r=[];++t<n;)e[t]&&r.push(e[t]);return r}(function(e){return("[object String]"===t.call(e)?e:"").replace(/\\\./g,"")}(e).split(".")),i=o.length,a=[];++r<i;)a.push(n(o[r]));return a}},3842(e,t,n){var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},4480(e){"use strict";e.exports=function(e){var t,n=this;if(arguments.length<2)t=function(){if(this instanceof t){var r=n.apply(this,arguments);return Object(r)===r?r:this}return n.apply(e,arguments)};else{for(var r=new Array(arguments.length-1),o=1;o<arguments.length;o++)r[o-1]=arguments[o];t=function(){var o,i=r.length,a=new Array(i+arguments.length);for(o=0;o<i;o++)a[o]=r[o];for(o=0;o<arguments.length;o++)a[i+o]=arguments[o];if(this instanceof t){var s=n.apply(this,a);return Object(s)===s?s:this}return n.apply(e,a)}}return t.prototype=n.prototype,t}},8317(e){e.exports=function(){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function o(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function i(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}for(var a=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,o){return new e(this.left+t,this.top+n,this.width+r,this.height+o)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=Array.from(n).find(function(e){return 0!==e.width});return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),s=function(e,t){return a.fromClientRect(e,t.getBoundingClientRect())},l=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],o=-1,i="";++o<n;){var a=e[o];a<=65535?r.push(a):(a-=65536,r.push(55296+(a>>10),a%1024+56320)),(o+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d<64;d++)u["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(d)]=d;for(var p="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h<64;h++)p["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(h)]=h;for(var f=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},g=function(){function e(e,t,n,r,o,i){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=o,this.data=i}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),m="undefined"==typeof Uint8Array?[]:new Uint8Array(256),v=0;v<64;v++)m["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(v)]=v;var y=10,A=13,w=15,b=17,_=18,C=19,E=20,S=21,O=22,x=24,D=25,P=26,M=27,T=28,R=30,I=32,F=33,k=34,L=35,B=37,N=38,j=39,U=40,V=42,H=[9001,65288],G="×",W="÷",z=function(){var e,t,n,r=function(e){var t,n,r,o,i,a=39666,s=0;"="===e[52887]&&(a--,"="===e[52886]&&a--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<52888;t+=4)n=p[e.charCodeAt(t)],r=p[e.charCodeAt(t+1)],o=p[e.charCodeAt(t+2)],i=p[e.charCodeAt(t+3)],c[s++]=n<<2|r>>4,c[s++]=(15&r)<<4|o>>2,c[s++]=(3&o)<<6|63&i;return l}(" "),o=Array.isArray(r)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(r):new Uint32Array(r),i=Array.isArray(r)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(r):new Uint16Array(r),a=f(i,12,o[4]/2),s=2===o[5]?f(i,(24+o[4])/2):(e=o,t=Math.ceil((24+o[4])/4),e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n)));return new g(o[0],o[1],o[2],o[3],a,s)}(),$=[R,36],K=[1,2,3,5],Q=[y,8],q=[M,P],Y=K.concat(Q),X=[N,j,U,k,L],Z=[w,A],J=function(e,t,n,r){var o=r[n];if(Array.isArray(e)?-1!==e.indexOf(o):e===o)for(var i=n;i<=r.length;){if((l=r[++i])===t)return!0;if(l!==y)break}if(o===y)for(i=n;i>0;){var a=r[--i];if(Array.isArray(e)?-1!==e.indexOf(a):e===a)for(var s=n;s<=r.length;){var l;if((l=r[++s])===t)return!0;if(l!==y)break}if(a!==y)break}return!1},ee=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==y)return r;n--}return 0},te=function(e,t,n,r,o){if(0===n[r])return G;var i=r-1;if(Array.isArray(o)&&!0===o[i])return G;var a=i-1,s=i+1,l=t[i],c=a>=0?t[a]:0,u=t[s];if(2===l&&3===u)return G;if(-1!==K.indexOf(l))return"!";if(-1!==K.indexOf(u))return G;if(-1!==Q.indexOf(u))return G;if(8===ee(i,t))return W;if(11===z.get(e[i]))return G;if((l===I||l===F)&&11===z.get(e[s]))return G;if(7===l||7===u)return G;if(9===l)return G;if(-1===[y,A,w].indexOf(l)&&9===u)return G;if(-1!==[b,_,C,x,T].indexOf(u))return G;if(ee(i,t)===O)return G;if(J(23,O,i,t))return G;if(J([b,_],S,i,t))return G;if(J(12,12,i,t))return G;if(l===y)return W;if(23===l||23===u)return G;if(16===u||16===l)return W;if(-1!==[A,w,S].indexOf(u)||14===l)return G;if(36===c&&-1!==Z.indexOf(l))return G;if(l===T&&36===u)return G;if(u===E)return G;if(-1!==$.indexOf(u)&&l===D||-1!==$.indexOf(l)&&u===D)return G;if(l===M&&-1!==[B,I,F].indexOf(u)||-1!==[B,I,F].indexOf(l)&&u===P)return G;if(-1!==$.indexOf(l)&&-1!==q.indexOf(u)||-1!==q.indexOf(l)&&-1!==$.indexOf(u))return G;if(-1!==[M,P].indexOf(l)&&(u===D||-1!==[O,w].indexOf(u)&&t[s+1]===D)||-1!==[O,w].indexOf(l)&&u===D||l===D&&-1!==[D,T,x].indexOf(u))return G;if(-1!==[D,T,x,b,_].indexOf(u))for(var d=i;d>=0;){if((p=t[d])===D)return G;if(-1===[T,x].indexOf(p))break;d--}if(-1!==[M,P].indexOf(u))for(d=-1!==[b,_].indexOf(l)?a:i;d>=0;){var p;if((p=t[d])===D)return G;if(-1===[T,x].indexOf(p))break;d--}if(N===l&&-1!==[N,j,k,L].indexOf(u)||-1!==[j,k].indexOf(l)&&-1!==[j,U].indexOf(u)||-1!==[U,L].indexOf(l)&&u===U)return G;if(-1!==X.indexOf(l)&&-1!==[E,P].indexOf(u)||-1!==X.indexOf(u)&&l===M)return G;if(-1!==$.indexOf(l)&&-1!==$.indexOf(u))return G;if(l===x&&-1!==$.indexOf(u))return G;if(-1!==$.concat(D).indexOf(l)&&u===O&&-1===H.indexOf(e[s])||-1!==$.concat(D).indexOf(u)&&l===_)return G;if(41===l&&41===u){for(var h=n[i],f=1;h>0&&41===t[--h];)f++;if(f%2!=0)return G}return l===I&&u===F?G:W},ne=function(){function e(e,t,n,r){this.codePoints=e,this.required="!"===t,this.start=n,this.end=r}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),re=45,oe=43,ie=-1,ae=function(e){return e>=48&&e<=57},se=function(e){return ae(e)||e>=65&&e<=70||e>=97&&e<=102},le=function(e){return 10===e||9===e||32===e},ce=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},ue=function(e){return ce(e)||ae(e)||e===re},de=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},pe=function(e,t){return 92===e&&10!==t},he=function(e,t,n){return e===re?ce(t)||pe(t,n):!!ce(e)||!(92!==e||!pe(e,t))},fe=function(e,t,n){return e===oe||e===re?!!ae(t)||46===t&&ae(n):ae(46===e?t:e)},ge=function(e){var t=0,n=1;e[t]!==oe&&e[t]!==re||(e[t]===re&&(n=-1),t++);for(var r=[];ae(e[t]);)r.push(e[t++]);var o=r.length?parseInt(c.apply(void 0,r),10):0;46===e[t]&&t++;for(var i=[];ae(e[t]);)i.push(e[t++]);var a=i.length,s=a?parseInt(c.apply(void 0,i),10):0;69!==e[t]&&101!==e[t]||t++;var l=1;e[t]!==oe&&e[t]!==re||(e[t]===re&&(l=-1),t++);for(var u=[];ae(e[t]);)u.push(e[t++]);var d=u.length?parseInt(c.apply(void 0,u),10):0;return n*(o+s*Math.pow(10,-a))*Math.pow(10,l*d)},me={type:2},ve={type:3},ye={type:4},Ae={type:13},we={type:8},be={type:21},_e={type:9},Ce={type:10},Ee={type:11},Se={type:12},Oe={type:14},xe={type:23},De={type:1},Pe={type:25},Me={type:24},Te={type:26},Re={type:27},Ie={type:28},Fe={type:29},ke={type:31},Le={type:32},Be=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Le;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ue(t)||pe(n,r)){var o=he(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:o}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ae;break;case 39:return this.consumeStringToken(39);case 40:return me;case 41:return ve;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Oe;break;case oe:if(fe(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return ye;case re:var i=e,a=this.peekCodePoint(0),s=this.peekCodePoint(1);if(fe(i,a,s))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(he(i,a,s))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===re&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),Me;break;case 46:if(fe(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(42===l&&47===(l=this.consumeCodePoint()))return this.consumeToken();if(l===ie)return this.consumeToken()}break;case 58:return Te;case 59:return Re;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===re&&this.peekCodePoint(2)===re)return this.consumeCodePoint(),this.consumeCodePoint(),Pe;break;case 64:var u=this.peekCodePoint(0),d=this.peekCodePoint(1),p=this.peekCodePoint(2);if(he(u,d,p))return{type:7,value:this.consumeName()};break;case 91:return Ie;case 92:if(pe(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Fe;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),we;break;case 123:return Ee;case 125:return Se;case 117:case 85:var h=this.peekCodePoint(0),f=this.peekCodePoint(1);return h!==oe||!se(f)&&63!==f||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_e;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),be;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ce;break;case ie:return Le}return le(e)?(this.consumeWhiteSpace(),ke):ae(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):ce(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();se(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(c.apply(void 0,e.map(function(e){return 63===e?48:e})),16),end:parseInt(c.apply(void 0,e.map(function(e){return 63===e?70:e})),16)};var r=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===re&&se(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var o=[];se(t)&&o.length<6;)o.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(c.apply(void 0,o),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ie)return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ie||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),xe)}for(;;){var r=this.consumeCodePoint();if(r===ie||41===r)return{type:22,value:c.apply(void 0,e)};if(le(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ie||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),xe);if(34===r||39===r||40===r||de(r))return this.consumeBadUrlRemnants(),xe;if(92===r){if(!pe(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),xe;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;le(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||e===ie)return;pe(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(5e4,e);t+=c.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===ie||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(10===r)return this._value.splice(0,n),De;if(92===r){var o=this._value[n+1];o!==ie&&void 0!==o&&(10===o?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):pe(r,o)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(n!==oe&&n!==re||e.push(this.consumeCodePoint());ae(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&ae(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ae(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((69===n||101===n)&&((r===oe||r===re)&&ae(o)||ae(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ae(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[ge(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),o=this.peekCodePoint(1),i=this.peekCodePoint(2);return he(r,o,i)?{type:15,number:t,flags:n,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(se(e)){for(var t=c(e);se(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());le(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return e===ie?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(ue(t))e+=c(t);else{if(!pe(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Ne=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Be;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||Ke(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Le:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),je=function(e){return 15===e.type},Ue=function(e){return 17===e.type},Ve=function(e){return 20===e.type},He=function(e){return 0===e.type},Ge=function(e,t){return Ve(e)&&e.value===t},We=function(e){return 31!==e.type},ze=function(e){return 31!==e.type&&4!==e.type},$e=function(e){var t=[],n=[];return e.forEach(function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)}),n.length&&t.push(n),t},Ke=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},Qe=function(e){return 17===e.type||15===e.type},qe=function(e){return 16===e.type||Qe(e)},Ye=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Xe={type:17,number:0,flags:4},Ze={type:16,number:50,flags:4},Je={type:16,number:100,flags:4},et=function(e,t,n){var r=e[0],o=e[1];return[tt(r,t),tt(void 0!==o?o:r,n)]},tt=function(e,t){if(16===e.type)return e.number/100*t;if(je(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},nt="grad",rt="turn",ot=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case nt:return Math.PI/200*t.number;case"rad":return t.number;case rt:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},it=function(e){return 15===e.type&&("deg"===e.unit||e.unit===nt||"rad"===e.unit||e.unit===rt)},at=function(e){switch(e.filter(Ve).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xe,Xe];case"to top":case"bottom":return st(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xe,Je];case"to right":case"left":return st(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Je,Je];case"to bottom":case"top":return st(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Je,Xe];case"to left":case"right":return st(270)}return 0},st=function(e){return Math.PI*e/180},lt=function(e,t){if(18===t.type){var n=vt[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),o=t.value.substring(1,2),i=t.value.substring(2,3);return dt(parseInt(r+r,16),parseInt(o+o,16),parseInt(i+i,16),1)}if(4===t.value.length){r=t.value.substring(0,1),o=t.value.substring(1,2),i=t.value.substring(2,3);var a=t.value.substring(3,4);return dt(parseInt(r+r,16),parseInt(o+o,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),o=t.value.substring(2,4),i=t.value.substring(4,6),dt(parseInt(r,16),parseInt(o,16),parseInt(i,16),1);if(8===t.value.length)return r=t.value.substring(0,2),o=t.value.substring(2,4),i=t.value.substring(4,6),a=t.value.substring(6,8),dt(parseInt(r,16),parseInt(o,16),parseInt(i,16),parseInt(a,16)/255)}if(20===t.type){var s=At[t.value.toUpperCase()];if(void 0!==s)return s}return At.TRANSPARENT},ct=function(e){return!(255&e)},ut=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,o=255&e>>24;return t<255?"rgba("+o+","+r+","+n+","+t/255+")":"rgb("+o+","+r+","+n+")"},dt=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r))>>>0},pt=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},ht=function(e,t){var n=t.filter(ze);if(3===n.length){var r=n.map(pt),o=r[0],i=r[1],a=r[2];return dt(o,i,a,1)}if(4===n.length){var s=n.map(pt),l=(o=s[0],i=s[1],a=s[2],s[3]);return dt(o,i,a,l)}return 0};function ft(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var gt,mt=function(e,t){var n=t.filter(ze),r=n[0],o=n[1],i=n[2],a=n[3],s=(17===r.type?st(r.number):ot(0,r))/(2*Math.PI),l=qe(o)?o.number/100:0,c=qe(i)?i.number/100:0,u=void 0!==a&&qe(a)?tt(a,1):1;if(0===l)return dt(255*c,255*c,255*c,1);var d=c<=.5?c*(l+1):c+l-c*l,p=2*c-d,h=ft(p,d,s+1/3),f=ft(p,d,s),g=ft(p,d,s-1/3);return dt(255*h,255*f,255*g,u)},vt={hsl:mt,hsla:mt,rgb:ht,rgba:ht},yt=function(e,t){return lt(e,Ne.create(t).parseComponentValue())},At={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},wt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Ve(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},bt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_t=function(e,t){var n=lt(e,t[0]),r=t[1];return r&&qe(r)?{color:n,stop:r}:{color:n,stop:null}},Ct=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=Xe),null===r.stop&&(r.stop=Je);for(var o=[],i=0,a=0;a<e.length;a++){var s=e[a].stop;if(null!==s){var l=tt(s,t);l>i?o.push(l):o.push(i),i=l}else o.push(null)}var c=null;for(a=0;a<o.length;a++){var u=o[a];if(null===u)null===c&&(c=a);else if(null!==c){for(var d=a-c,p=(u-o[c-1])/(d+1),h=1;h<=d;h++)o[c+h-1]=p*h;c=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,o[n]/t),0)}})},Et=function(e,t){return Math.sqrt(e*e+t*t)},St=function(e,t,n,r,o){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var i=t[0],a=t[1],s=Et(n-i,r-a);return(o?s<e.optimumDistance:s>e.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e},{optimumDistance:o?1/0:-1/0,optimumCorner:null}).optimumCorner},Ot=function(e,t){var n=st(180),r=[];return $e(t).forEach(function(t,o){if(0===o){var i=t[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(n=at(t));if(it(i))return void(n=(ot(0,i)+st(270))%st(360))}var a=_t(e,t);r.push(a)}),{angle:n,stops:r,type:1}},xt="closest-side",Dt="farthest-side",Pt="closest-corner",Mt="farthest-corner",Tt="circle",Rt="ellipse",It="cover",Ft="contain",kt=function(e,t){var n=0,r=3,o=[],i=[];return $e(t).forEach(function(t,a){var s=!0;if(0===a?s=t.reduce(function(e,t){if(Ve(t))switch(t.value){case"center":return i.push(Ze),!1;case"top":case"left":return i.push(Xe),!1;case"right":case"bottom":return i.push(Je),!1}else if(qe(t)||Qe(t))return i.push(t),!1;return e},s):1===a&&(s=t.reduce(function(e,t){if(Ve(t))switch(t.value){case Tt:return n=0,!1;case Rt:return n=1,!1;case Ft:case xt:return r=0,!1;case Dt:return r=1,!1;case Pt:return r=2,!1;case It:case Mt:return r=3,!1}else if(Qe(t)||qe(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},s)),s){var l=_t(e,t);o.push(l)}}),{size:r,shape:n,stops:o,position:i,type:2}},Lt=function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var r=Bt[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)},Bt={"linear-gradient":function(e,t){var n=st(180),r=[];return $e(t).forEach(function(t,o){if(0===o){var i=t[0];if(20===i.type&&"to"===i.value)return void(n=at(t));if(it(i))return void(n=ot(0,i))}var a=_t(e,t);r.push(a)}),{angle:n,stops:r,type:1}},"-moz-linear-gradient":Ot,"-ms-linear-gradient":Ot,"-o-linear-gradient":Ot,"-webkit-linear-gradient":Ot,"radial-gradient":function(e,t){var n=0,r=3,o=[],i=[];return $e(t).forEach(function(t,a){var s=!0;if(0===a){var l=!1;s=t.reduce(function(e,t){if(l)if(Ve(t))switch(t.value){case"center":return i.push(Ze),e;case"top":case"left":return i.push(Xe),e;case"right":case"bottom":return i.push(Je),e}else(qe(t)||Qe(t))&&i.push(t);else if(Ve(t))switch(t.value){case Tt:return n=0,!1;case Rt:return n=1,!1;case"at":return l=!0,!1;case xt:return r=0,!1;case It:case Dt:return r=1,!1;case Ft:case Pt:return r=2,!1;case Mt:return r=3,!1}else if(Qe(t)||qe(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},s)}if(s){var c=_t(e,t);o.push(c)}}),{size:r,shape:n,stops:o,position:i,type:2}},"-moz-radial-gradient":kt,"-ms-radial-gradient":kt,"-o-radial-gradient":kt,"-webkit-radial-gradient":kt,"-webkit-gradient":function(e,t){var n=st(180),r=[],o=1;return $e(t).forEach(function(t,n){var i=t[0];if(0===n){if(Ve(i)&&"linear"===i.value)return void(o=1);if(Ve(i)&&"radial"===i.value)return void(o=2)}if(18===i.type)if("from"===i.name){var a=lt(e,i.values[0]);r.push({stop:Xe,color:a})}else if("to"===i.name)a=lt(e,i.values[0]),r.push({stop:Je,color:a});else if("color-stop"===i.name){var s=i.values.filter(ze);if(2===s.length){a=lt(e,s[1]);var l=s[0];Ue(l)&&r.push({stop:{type:16,number:100*l.number,flags:l.flags},color:a})}}}),1===o?{angle:(n+st(180))%st(360),stops:r,type:o}:{size:3,shape:0,stops:r,position:[],type:o}}},Nt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter(function(e){return ze(e)&&function(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Bt[e.name])}(e)}).map(function(t){return Lt(e,t)})}},jt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Ve(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ut={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return $e(t).map(function(e){return e.filter(qe)}).map(Ye)}},Vt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return $e(t).map(function(e){return e.filter(Ve).map(function(e){return e.value}).join(" ")}).map(Ht)}},Ht=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(gt||(gt={}));var Gt,Wt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return $e(t).map(function(e){return e.filter(zt)})}},zt=function(e){return Ve(e)||qe(e)},$t=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Kt=$t("top"),Qt=$t("right"),qt=$t("bottom"),Yt=$t("left"),Xt=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Ye(t.filter(qe))}}},Zt=Xt("top-left"),Jt=Xt("top-right"),en=Xt("bottom-right"),tn=Xt("bottom-left"),nn=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},rn=nn("top"),on=nn("right"),an=nn("bottom"),sn=nn("left"),ln=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return je(t)?t.number:0}}},cn=ln("top"),un=ln("right"),dn=ln("bottom"),pn=ln("left"),hn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},gn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Ve).reduce(function(e,t){return e|mn(t.value)},0)}},mn=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},yn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Gt||(Gt={}));var An,wn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?Gt.STRICT:Gt.NORMAL}},bn={name:"line-height",initialValue:"normal",prefix:!1,type:4},_n=function(e,t){return Ve(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:qe(e)?tt(e,t):t},Cn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Lt(e,t)}},En={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},Sn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},On=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},xn=On("top"),Dn=On("right"),Pn=On("bottom"),Mn=On("left"),Tn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Ve).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Rn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},In=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Fn=In("top"),kn=In("right"),Ln=In("bottom"),Bn=In("left"),Nn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},jn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Un={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Ge(t[0],"none")?[]:$e(t).map(function(t){for(var n={color:At.TRANSPARENT,offsetX:Xe,offsetY:Xe,blur:Xe},r=0,o=0;o<t.length;o++){var i=t[o];Qe(i)?(0===r?n.offsetX=i:1===r?n.offsetY=i:n.blur=i,r++):n.color=lt(e,i)}return n})}},Vn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Hn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=Gn[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},Gn={matrix:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number}),n=t[0],r=t[1];t[2],t[3];var o=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var a=t[12],s=t[13];return t[14],t[15],16===t.length?[n,r,o,i,a,s]:null}},Wn={type:16,number:50,flags:4},zn=[Wn,Wn],$n={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(qe);return 2!==n.length?zn:[n[0],n[1]]}},Kn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(An||(An={}));for(var Qn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return An.BREAK_ALL;case"keep-all":return An.KEEP_ALL;default:return An.NORMAL}}},qn={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(Ue(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Yn={name:"time",parse:function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},Xn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Ue(t)?t.number:1}},Zn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Jn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Ve).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},er={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],r=[];return t.forEach(function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}}),n.length&&r.push(n.join(" ")),r.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},tr={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},nr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){return Ue(t)?t.number:Ve(t)&&"bold"===t.value?700:400}},rr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Ve).map(function(e){return e.value})}},or={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},ir=function(e,t){return 0!==(e&t)},ar={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t}},sr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],o=t.filter(We),i=0;i<o.length;i++){var a=o[i],s=o[i+1];if(20===a.type){var l=s&&Ue(s)?s.number:1;r.push({counter:a.value,increment:l})}}return r}},lr={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],r=t.filter(We),o=0;o<r.length;o++){var i=r[o],a=r[o+1];if(Ve(i)&&"none"!==i.value){var s=a&&Ue(a)?a.number:0;n.push({counter:i.value,reset:s})}}return n}},cr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(je).map(function(t){return Yn.parse(e,t)})}},ur={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var r=[],o=t.filter(He);if(o.length%2!=0)return null;for(var i=0;i<o.length;i+=2){var a=o[i].value,s=o[i+1].value;r.push({open:a,close:s})}return r}},dr=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},pr={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Ge(t[0],"none")?[]:$e(t).map(function(t){for(var n={color:255,offsetX:Xe,offsetY:Xe,blur:Xe,spread:Xe,inset:!1},r=0,o=0;o<t.length;o++){var i=t[o];Ge(i,"inset")?n.inset=!0:Qe(i)?(0===r?n.offsetX=i:1===r?n.offsetY=i:2===r?n.blur=i:n.spread=i,r++):n.color=lt(e,i)}return n})}},hr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[];return t.filter(Ve).forEach(function(e){switch(e.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2)}}),[0,1,2].forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n}},fr={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},gr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return je(t)?t.number:0}},mr=function(){function e(e,t){var n,r;this.animationDuration=Ar(e,cr,t.animationDuration),this.backgroundClip=Ar(e,wt,t.backgroundClip),this.backgroundColor=Ar(e,bt,t.backgroundColor),this.backgroundImage=Ar(e,Nt,t.backgroundImage),this.backgroundOrigin=Ar(e,jt,t.backgroundOrigin),this.backgroundPosition=Ar(e,Ut,t.backgroundPosition),this.backgroundRepeat=Ar(e,Vt,t.backgroundRepeat),this.backgroundSize=Ar(e,Wt,t.backgroundSize),this.borderTopColor=Ar(e,Kt,t.borderTopColor),this.borderRightColor=Ar(e,Qt,t.borderRightColor),this.borderBottomColor=Ar(e,qt,t.borderBottomColor),this.borderLeftColor=Ar(e,Yt,t.borderLeftColor),this.borderTopLeftRadius=Ar(e,Zt,t.borderTopLeftRadius),this.borderTopRightRadius=Ar(e,Jt,t.borderTopRightRadius),this.borderBottomRightRadius=Ar(e,en,t.borderBottomRightRadius),this.borderBottomLeftRadius=Ar(e,tn,t.borderBottomLeftRadius),this.borderTopStyle=Ar(e,rn,t.borderTopStyle),this.borderRightStyle=Ar(e,on,t.borderRightStyle),this.borderBottomStyle=Ar(e,an,t.borderBottomStyle),this.borderLeftStyle=Ar(e,sn,t.borderLeftStyle),this.borderTopWidth=Ar(e,cn,t.borderTopWidth),this.borderRightWidth=Ar(e,un,t.borderRightWidth),this.borderBottomWidth=Ar(e,dn,t.borderBottomWidth),this.borderLeftWidth=Ar(e,pn,t.borderLeftWidth),this.boxShadow=Ar(e,pr,t.boxShadow),this.color=Ar(e,hn,t.color),this.direction=Ar(e,fn,t.direction),this.display=Ar(e,gn,t.display),this.float=Ar(e,vn,t.cssFloat),this.fontFamily=Ar(e,er,t.fontFamily),this.fontSize=Ar(e,tr,t.fontSize),this.fontStyle=Ar(e,or,t.fontStyle),this.fontVariant=Ar(e,rr,t.fontVariant),this.fontWeight=Ar(e,nr,t.fontWeight),this.letterSpacing=Ar(e,yn,t.letterSpacing),this.lineBreak=Ar(e,wn,t.lineBreak),this.lineHeight=Ar(e,bn,t.lineHeight),this.listStyleImage=Ar(e,Cn,t.listStyleImage),this.listStylePosition=Ar(e,En,t.listStylePosition),this.listStyleType=Ar(e,Sn,t.listStyleType),this.marginTop=Ar(e,xn,t.marginTop),this.marginRight=Ar(e,Dn,t.marginRight),this.marginBottom=Ar(e,Pn,t.marginBottom),this.marginLeft=Ar(e,Mn,t.marginLeft),this.opacity=Ar(e,Xn,t.opacity);var o=Ar(e,Tn,t.overflow);this.overflowX=o[0],this.overflowY=o[o.length>1?1:0],this.overflowWrap=Ar(e,Rn,t.overflowWrap),this.paddingTop=Ar(e,Fn,t.paddingTop),this.paddingRight=Ar(e,kn,t.paddingRight),this.paddingBottom=Ar(e,Ln,t.paddingBottom),this.paddingLeft=Ar(e,Bn,t.paddingLeft),this.paintOrder=Ar(e,hr,t.paintOrder),this.position=Ar(e,jn,t.position),this.textAlign=Ar(e,Nn,t.textAlign),this.textDecorationColor=Ar(e,Zn,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=Ar(e,Jn,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=Ar(e,Un,t.textShadow),this.textTransform=Ar(e,Vn,t.textTransform),this.transform=Ar(e,Hn,t.transform),this.transformOrigin=Ar(e,$n,t.transformOrigin),this.visibility=Ar(e,Kn,t.visibility),this.webkitTextStrokeColor=Ar(e,fr,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ar(e,gr,t.webkitTextStrokeWidth),this.wordBreak=Ar(e,Qn,t.wordBreak),this.zIndex=Ar(e,qn,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return ct(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return ir(this.display,4)||ir(this.display,33554432)||ir(this.display,268435456)||ir(this.display,536870912)||ir(this.display,67108864)||ir(this.display,134217728)},e}(),vr=function(e,t){this.content=Ar(e,ar,t.content),this.quotes=Ar(e,ur,t.quotes)},yr=function(e,t){this.counterIncrement=Ar(e,sr,t.counterIncrement),this.counterReset=Ar(e,lr,t.counterReset)},Ar=function(e,t,n){var r=new Be,o=null!=n?n.toString():t.initialValue;r.write(o);var i=new Ne(r.read());switch(t.type){case 2:var a=i.parseComponentValue();return t.parse(e,Ve(a)?a.value:t.initialValue);case 0:return t.parse(e,i.parseComponentValue());case 1:return t.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return ot(0,i.parseComponentValue());case"color":return lt(e,i.parseComponentValue());case"image":return Lt(e,i.parseComponentValue());case"length":var s=i.parseComponentValue();return Qe(s)?s:Xe;case"length-percentage":var l=i.parseComponentValue();return qe(l)?l:Xe;case"time":return Yn.parse(e,i.parseComponentValue())}}},wr=function(e,t){var n=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===n||t===n},br=function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,wr(t,3),this.styles=new mr(e,window.getComputedStyle(t,null)),bo(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=s(this.context,t),wr(t,4)&&(this.flags|=16)},_r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Cr=0;Cr<64;Cr++)_r["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(Cr)]=Cr;for(var Er=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},Sr=function(){function e(e,t,n,r,o,i){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=o,this.data=i}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Or="undefined"==typeof Uint8Array?[]:new Uint8Array(256),xr=0;xr<64;xr++)Or["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(xr)]=xr;var Dr,Pr=8,Mr=9,Tr=11,Rr=12,Ir=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],o=-1,i="";++o<n;){var a=e[o];a<=65535?r.push(a):(a-=65536,r.push(55296+(a>>10),a%1024+56320)),(o+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},Fr=function(){var e,t,n,r=function(e){var t,n,r,o,i,a=19617,s=0;"="===e[26155]&&(a--,"="===e[26154]&&a--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<26156;t+=4)n=_r[e.charCodeAt(t)],r=_r[e.charCodeAt(t+1)],o=_r[e.charCodeAt(t+2)],i=_r[e.charCodeAt(t+3)],c[s++]=n<<2|r>>4,c[s++]=(15&r)<<4|o>>2,c[s++]=(3&o)<<6|63&i;return l}(" "),o=Array.isArray(r)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(r):new Uint32Array(r),i=Array.isArray(r)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(r):new Uint16Array(r),a=Er(i,12,o[4]/2),s=2===o[5]?Er(i,(24+o[4])/2):(e=o,t=Math.ceil((24+o[4])/4),e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n)));return new Sr(o[0],o[1],o[2],o[3],a,s)}(),kr="×",Lr=function(e){return Fr.get(e)},Br=function(e,t,n){var r=n-2,o=t[r],i=t[n-1],a=t[n];if(2===i&&3===a)return kr;if(2===i||3===i||4===i)return"÷";if(2===a||3===a||4===a)return"÷";if(i===Pr&&-1!==[Pr,Mr,Tr,Rr].indexOf(a))return kr;if(!(i!==Tr&&i!==Mr||a!==Mr&&10!==a))return kr;if((i===Rr||10===i)&&10===a)return kr;if(13===a||5===a)return kr;if(7===a)return kr;if(1===i)return kr;if(13===i&&14===a){for(;5===o;)o=t[--r];if(14===o)return kr}if(15===i&&15===a){for(var s=0;15===o;)s++,o=t[--r];if(s%2==0)return kr}return"÷"},Nr=function(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e),n=t.length,r=0,o=0,i=t.map(Lr);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e=kr;r<n&&(e=Br(0,i,++r))===kr;);if(e!==kr||r===n){var a=Ir.apply(null,t.slice(o,r));return o=r,{value:a,done:!1}}return{done:!0,value:null}}}},jr=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Ur=function(e,t,n,r,o){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(o),a},Vr=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},Hr={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),o=Math.round(r.height);if(e.body.removeChild(n),123===o)return!0}}return!1}(document);return Object.defineProperty(Hr,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Hr.SUPPORT_RANGE_BOUNDS&&function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=t.firstChild,o=l(r.data).map(function(e){return c(e)}),i=0,a={},s=o.every(function(e,t){n.setStart(r,i),n.setEnd(r,i+e.length);var o=n.getBoundingClientRect();i+=e.length;var s=o.x>a.x||o.y>a.y;return a=o,0===t||s});return e.body.removeChild(t),s}(document);return Object.defineProperty(Hr,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0}(document);return Object.defineProperty(Hr,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var o=new Image,i=t.toDataURL();o.src=i;var a=Ur(n,n,0,0,o);return r.fillStyle="red",r.fillRect(0,0,n,n),Vr(a).then(function(t){r.drawImage(t,0,0);var o=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var a=e.createElement("div");return a.style.backgroundImage="url("+i+")",a.style.height=n+"px",jr(o)?Vr(Ur(n,n,0,0,a)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),jr(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Hr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(Hr,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Hr,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Hr,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Hr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Gr=function(e,t){this.text=e,this.bounds=t},Wr=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var o=t.parentNode;if(o){o.replaceChild(r,t);var i=s(e,r);return r.firstChild&&o.replaceChild(r.firstChild,r),i}}return a.EMPTY},zr=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var o=r.createRange();return o.setStart(e,t),o.setEnd(e,t+n),o},$r=function(e){if(Hr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(e){return e.segment})}return function(e){for(var t,n=Nr(e),r=[];!(t=n.next()).done;)t.value&&r.push(t.value.slice());return r}(e)},Kr=[32,160,4961,65792,65793,4153,4241],Qr=function(e,t,n){this.text=qr(t.data,n.textTransform),this.textBounds=function(e,t,n,r){var o=function(e,t){return 0!==t.letterSpacing?$r(e):function(e,t){if(Hr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map(function(e){return e.segment})}return function(e,t){for(var n,r=function(e,t){var n=l(e),r=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],r=[],o=[];return e.forEach(function(e,i){var a=z.get(e);if(a>50?(o.push(!0),a-=50):o.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(i),n.push(16);if(4===a||11===a){if(0===i)return r.push(i),n.push(R);var s=n[i-1];return-1===Y.indexOf(s)?(r.push(r[i-1]),n.push(s)):(r.push(i),n.push(R))}return r.push(i),31===a?n.push("strict"===t?S:B):a===V||29===a?n.push(R):43===a?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(B):n.push(R):void n.push(a)}),[r,n,o]}(e,t.lineBreak),r=n[0],o=n[1],i=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(o=o.map(function(e){return-1!==[D,R,V].indexOf(e)?B:e}));var a="keep-all"===t.wordBreak?i.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0;return[r,o,a]}(n,t),o=r[0],i=r[1],a=r[2],s=n.length,c=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var e=G;u<s&&(e=te(n,i,o,++u,a))===G;);if(e!==G||u===s){var t=new ne(n,e,c,u);return c=u,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),o=[],i=function(){if(n.value){var e=n.value.slice(),t=l(e),r="";t.forEach(function(e){-1===Kr.indexOf(e)?r+=c(e):(r.length&&o.push(r),o.push(c(e)),r="")}),r.length&&o.push(r)}};!(n=r.next()).done;)i();return o}(e,t)}(e,t)}(t,n),i=[],s=0;return o.forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Hr.SUPPORT_RANGE_BOUNDS){var o=zr(r,s,t.length).getClientRects();if(o.length>1){var l=$r(t),c=0;l.forEach(function(t){i.push(new Gr(t,a.fromDOMRectList(e,zr(r,c+s,t.length).getClientRects()))),c+=t.length})}else i.push(new Gr(t,a.fromDOMRectList(e,o)))}else{var u=r.splitText(t.length);i.push(new Gr(t,Wr(e,r))),r=u}else Hr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));s+=t.length}),i}(e,this.text,n,t)},qr=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Yr,Xr);case 2:return e.toUpperCase();default:return e}},Yr=/(^|\s|:|-|\(|\))([a-z])/g,Xr=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Zr=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(br),Jr=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(br),eo=function(e){function n(t,n){var r=e.call(this,t,n)||this,o=new XMLSerializer,i=s(t,n);return n.setAttribute("width",i.width+"px"),n.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(o.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(br),to=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(br),no=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(br),ro=[{type:15,flags:0,unit:"px",number:3}],oo=[{type:16,flags:0,number:50}],io="checkbox",ao="radio",so=707406591,lo=function(e){function n(t,n){var r,o,i,s=e.call(this,t,n)||this;switch(s.type=n.type.toLowerCase(),s.checked=n.checked,s.value=0===(i="password"===(o=n).type?new Array(o.value.length+1).join("•"):o.value).length?o.placeholder||"":i,s.type!==io&&s.type!==ao||(s.styles.backgroundColor=3739148031,s.styles.borderTopColor=s.styles.borderRightColor=s.styles.borderBottomColor=s.styles.borderLeftColor=2779096575,s.styles.borderTopWidth=s.styles.borderRightWidth=s.styles.borderBottomWidth=s.styles.borderLeftWidth=1,s.styles.borderTopStyle=s.styles.borderRightStyle=s.styles.borderBottomStyle=s.styles.borderLeftStyle=1,s.styles.backgroundClip=[0],s.styles.backgroundOrigin=[0],s.bounds=(r=s.bounds).width>r.height?new a(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new a(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r),s.type){case io:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=ro;break;case ao:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=oo}return s}return t(n,e),n}(br),co=function(e){function n(t,n){var r=e.call(this,t,n)||this,o=n.options[n.selectedIndex||0];return r.value=o&&o.text||"",r}return t(n,e),n}(br),uo=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(br),po=function(e){function n(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=mo(t,n.contentWindow.document.documentElement);var o=n.contentWindow.document.documentElement?yt(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):At.TRANSPARENT,i=n.contentWindow.document.body?yt(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):At.TRANSPARENT;r.backgroundColor=ct(o)?ct(i)?r.styles.backgroundColor:i:o}}catch(e){}return r}return t(n,e),n}(br),ho=["OL","UL","MENU"],fo=function(e,t,n,r){for(var o=t.firstChild,i=void 0;o;o=i)if(i=o.nextSibling,Ao(o)&&o.data.trim().length>0)n.textNodes.push(new Qr(e,o,n.styles));else if(wo(o))if(ko(o)&&o.assignedNodes)o.assignedNodes().forEach(function(t){return fo(e,t,n,r)});else{var a=go(e,o);a.styles.isVisible()&&(vo(o,a,r)?a.flags|=4:yo(a.styles)&&(a.flags|=2),-1!==ho.indexOf(o.tagName)&&(a.flags|=8),n.elements.push(a),o.slot,o.shadowRoot?fo(e,o.shadowRoot,a,r):Io(o)||Oo(o)||Fo(o)||fo(e,o,a,r))}},go=function(e,t){return Mo(t)?new Zr(e,t):Do(t)?new Jr(e,t):Oo(t)?new eo(e,t):Co(t)?new to(e,t):Eo(t)?new no(e,t):So(t)?new lo(e,t):Fo(t)?new co(e,t):Io(t)?new uo(e,t):To(t)?new po(e,t):new br(e,t)},mo=function(e,t){var n=go(e,t);return n.flags|=4,fo(e,t,n,n),n},vo=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||xo(e)&&n.styles.isTransparent()},yo=function(e){return e.isPositioned()||e.isFloating()},Ao=function(e){return e.nodeType===Node.TEXT_NODE},wo=function(e){return e.nodeType===Node.ELEMENT_NODE},bo=function(e){return wo(e)&&void 0!==e.style&&!_o(e)},_o=function(e){return"object"==typeof e.className},Co=function(e){return"LI"===e.tagName},Eo=function(e){return"OL"===e.tagName},So=function(e){return"INPUT"===e.tagName},Oo=function(e){return"svg"===e.tagName},xo=function(e){return"BODY"===e.tagName},Do=function(e){return"CANVAS"===e.tagName},Po=function(e){return"VIDEO"===e.tagName},Mo=function(e){return"IMG"===e.tagName},To=function(e){return"IFRAME"===e.tagName},Ro=function(e){return"STYLE"===e.tagName},Io=function(e){return"TEXTAREA"===e.tagName},Fo=function(e){return"SELECT"===e.tagName},ko=function(e){return"SLOT"===e.tagName},Lo=function(e){return e.tagName.indexOf("-")>0},Bo=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,o=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(o=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)});var i=[];return o&&r.forEach(function(e){var n=t.counters[e.counter];i.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),i},e}(),No={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},jo={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Uo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Vo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ho=function(e,t,n,r,o,i){return e<t||e>n?Xo(e,o,i.length>0):r.integers.reduce(function(t,n,o){for(;e>=n;)e-=n,t+=r.values[o];return t},"")+i},Go=function(e,t,n,r){var o="";do{n||e--,o=r(e)+o,e/=t}while(e*t>=t);return o},Wo=function(e,t,n,r,o){var i=n-t+1;return(e<0?"-":"")+(Go(Math.abs(e),i,r,function(e){return c(Math.floor(e%i)+t)})+o)},zo=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return Go(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},$o=function(e,t,n,r,o,i){if(e<-9999||e>9999)return Xo(e,4,o.length>0);var a=Math.abs(e),s=o;if(0===a)return t[0]+s;for(var l=0;a>0&&l<=4;l++){var c=a%10;0===c&&ir(i,1)&&""!==s?s=t[c]+s:c>1||1===c&&0===l||1===c&&1===l&&ir(i,2)||1===c&&1===l&&ir(i,4)&&e>100||1===c&&l>1&&ir(i,8)?s=t[c]+(l>0?n[l-1]:"")+s:1===c&&l>0&&(s=n[l-1]+s),a=Math.floor(a/10)}return(e<0?r:"")+s},Ko="十百千萬",Qo="拾佰仟萬",qo="マイナス",Yo="마이너스",Xo=function(e,t,n){var r=n?". ":"",o=n?"、":"",i=n?", ":"",a=n?" ":"";switch(t){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=Wo(e,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return zo(e,"〇一二三四五六七八九",o);case 6:return Ho(e,1,3999,No,3,r).toLowerCase();case 7:return Ho(e,1,3999,No,3,r);case 8:return Wo(e,945,969,!1,r);case 9:return Wo(e,97,122,!1,r);case 10:return Wo(e,65,90,!1,r);case 11:return Wo(e,1632,1641,!0,r);case 12:case 49:return Ho(e,1,9999,jo,3,r);case 35:return Ho(e,1,9999,jo,3,r).toLowerCase();case 13:return Wo(e,2534,2543,!0,r);case 14:case 30:return Wo(e,6112,6121,!0,r);case 15:return zo(e,"子丑寅卯辰巳午未申酉戌亥",o);case 16:return zo(e,"甲乙丙丁戊己庚辛壬癸",o);case 17:case 48:return $o(e,"零一二三四五六七八九",Ko,"負",o,14);case 47:return $o(e,"零壹貳參肆伍陸柒捌玖",Qo,"負",o,15);case 42:return $o(e,"零一二三四五六七八九",Ko,"负",o,14);case 41:return $o(e,"零壹贰叁肆伍陆柒捌玖",Qo,"负",o,15);case 26:return $o(e,"〇一二三四五六七八九","十百千万",qo,o,0);case 25:return $o(e,"零壱弐参四伍六七八九","拾百千万",qo,o,7);case 31:return $o(e,"영일이삼사오육칠팔구","십백천만",Yo,i,7);case 33:return $o(e,"零一二三四五六七八九","十百千萬",Yo,i,0);case 32:return $o(e,"零壹貳參四五六七八九","拾百千",Yo,i,7);case 18:return Wo(e,2406,2415,!0,r);case 20:return Ho(e,1,19999,Vo,3,r);case 21:return Wo(e,2790,2799,!0,r);case 22:return Wo(e,2662,2671,!0,r);case 22:return Ho(e,1,10999,Uo,3,r);case 23:return zo(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return zo(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Wo(e,3302,3311,!0,r);case 28:return zo(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",o);case 29:return zo(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",o);case 34:return Wo(e,3792,3801,!0,r);case 37:return Wo(e,6160,6169,!0,r);case 38:return Wo(e,4160,4169,!0,r);case 39:return Wo(e,2918,2927,!0,r);case 40:return Wo(e,1776,1785,!0,r);case 43:return Wo(e,3046,3055,!0,r);case 44:return Wo(e,3174,3183,!0,r);case 45:return Wo(e,3664,3673,!0,r);case 46:return Wo(e,3872,3881,!0,r);default:return Wo(e,48,57,!0,r)}},Zo="data-html2canvas-ignore",Jo=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Bo,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,i=ti(e,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,l=i.contentWindow,c=l.document,u=oi(i).then(function(){return r(n,void 0,void 0,function(){var e,n;return o(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(ci),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ri(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(c,n)}).then(function(){return i})]:[2,i]}})})});return c.open(),c.write(si(document.doctype)+"<html></html>"),li(this.referenceElement.ownerDocument,a,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},e.prototype.createElementClone=function(e){if(wr(e,2),Do(e))return this.createCanvasClone(e);if(Po(e))return this.createVideoClone(e);if(Ro(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Mo(t)&&(Mo(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Lo(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return ai(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var o=e.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&o)i.putImageData(o.getImageData(0,0,e.width,e.height),0,0);else{var a=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(a){var s=a.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}return r}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){wo(t)&&("SCRIPT"===t.tagName||t.hasAttribute(Zo)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&wo(t)&&Ro(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,o=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;o;o=o.nextSibling)if(wo(o)&&ko(o)&&"function"==typeof o.assignedNodes){var i=o.assignedNodes();i.length&&i.forEach(function(e){return r.appendChildNode(t,e,n)})}else this.appendChildNode(t,o,n)},e.prototype.cloneNode=function(e,t){if(Ao(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&wo(e)&&(bo(e)||_o(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var o=n.getComputedStyle(e),i=n.getComputedStyle(e,":before"),a=n.getComputedStyle(e,":after");this.referenceElement===e&&bo(r)&&(this.clonedReferenceElement=r),xo(r)&&hi(r);var s=this.counters.parse(new yr(this.context,o)),l=this.resolvePseudoContent(e,r,i,Dr.BEFORE);Lo(e)&&(t=!0),Po(e)||this.cloneChildNodes(e,r,t),l&&r.insertBefore(l,r.firstChild);var c=this.resolvePseudoContent(e,r,a,Dr.AFTER);return c&&r.appendChild(c),this.counters.pop(s),(o&&(this.options.copyStyles||_o(e))&&!To(e)||t)&&ai(o,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Io(e)||Fo(e))&&(Io(r)||Fo(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var o=this;if(n){var i=n.content,a=t.ownerDocument;if(a&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==n.display){this.counters.parse(new yr(this.context,n));var s=new vr(this.context,n),l=a.createElement("html2canvaspseudoelement");ai(n,l),s.content.forEach(function(t){if(0===t.type)l.appendChild(a.createTextNode(t.value));else if(22===t.type){var n=a.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Ve);r.length&&l.appendChild(a.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var i=t.values.filter(ze),c=i[0],u=i[1];if(c&&Ve(c)){var d=o.counters.getCounterValue(c.value),p=u&&Ve(u)?Sn.parse(o.context,u.value):3;l.appendChild(a.createTextNode(Xo(d,p,!1)))}}else if("counters"===t.name){var h=t.values.filter(ze),f=(c=h[0],h[1]);if(u=h[2],c&&Ve(c)){var g=o.counters.getCounterValues(c.value),m=u&&Ve(u)?Sn.parse(o.context,u.value):3,v=f&&0===f.type?f.value:"",y=g.map(function(e){return Xo(e,m,!1)}).join(v);l.appendChild(a.createTextNode(y))}}}else if(20===t.type)switch(t.value){case"open-quote":l.appendChild(a.createTextNode(dr(s.quotes,o.quoteDepth++,!0)));break;case"close-quote":l.appendChild(a.createTextNode(dr(s.quotes,--o.quoteDepth,!1)));break;default:l.appendChild(a.createTextNode(t.value))}}),l.className=ui+" "+di;var c=r===Dr.BEFORE?" "+ui:" "+di;return _o(t)?t.className.baseValue+=c:t.className+=c,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Dr||(Dr={}));var ei,ti=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(Zo,"true"),e.body.appendChild(n),n},ni=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},ri=function(e){return Promise.all([].slice.call(e.images,0).map(ni))},oi=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var o=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){o.body.childNodes.length>0&&"complete"===o.readyState&&(clearInterval(n),t(e))},50)}})},ii=["all","d","content"],ai=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===ii.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},si=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},li=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},ci=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},ui="___html2canvas___pseudoelement_before",di="___html2canvas___pseudoelement_after",pi='{\n    content: "" !important;\n    display: none !important;\n}',hi=function(e){fi(e,"."+ui+":before"+pi+"\n         ."+di+":after"+pi)},fi=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},gi=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),mi=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Ci(e)||wi(e)?((this._cache[e]=this.loadImage(e)).catch(function(){}),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,i,a=this;return o(this,function(o){switch(o.label){case 0:return t=gi.isSameOrigin(e),n=!bi(e)&&!0===this._options.useCORS&&Hr.SUPPORT_CORS_IMAGES&&!t,r=!bi(e)&&!t&&!Ci(e)&&"string"==typeof this._options.proxy&&Hr.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||bi(e)||Ci(e)||r||n?(i=e,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(_i(i)||n)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout(function(){return e(r)},500),a._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(o,i){var a=Hr.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===a)o(s.response);else{var e=new FileReader;e.addEventListener("load",function(){return o(e.result)},!1),e.addEventListener("error",function(e){return i(e)},!1),e.readAsDataURL(s.response)}else i("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=i;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+a),"text"!==a&&s instanceof XMLHttpRequest&&(s.responseType=a),t._options.imageTimeout){var c=t._options.imageTimeout;s.timeout=c,s.ontimeout=function(){return i("Timed out ("+c+"ms) proxying "+r)}}s.send()})},e}(),vi=/^data:image\/svg\+xml/i,yi=/^data:image\/.*;base64,/i,Ai=/^data:image\/.*/i,wi=function(e){return Hr.SUPPORT_SVG_DRAWING||!Ei(e)},bi=function(e){return Ai.test(e)},_i=function(e){return yi.test(e)},Ci=function(e){return"blob"===e.substr(0,4)},Ei=function(e){return"svg"===e.substr(-3).toLowerCase()||vi.test(e)},Si=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Oi=function(e,t,n){return new Si(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},xi=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=Oi(this.start,this.startControl,t),o=Oi(this.startControl,this.endControl,t),i=Oi(this.endControl,this.end,t),a=Oi(r,o,t),s=Oi(o,i,t),l=Oi(a,s,t);return n?new e(this.start,r,a,l):new e(l,s,i,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Di=function(e){return 1===e.type},Pi=function(e){var t=e.styles,n=e.bounds,r=et(t.borderTopLeftRadius,n.width,n.height),o=r[0],i=r[1],a=et(t.borderTopRightRadius,n.width,n.height),s=a[0],l=a[1],c=et(t.borderBottomRightRadius,n.width,n.height),u=c[0],d=c[1],p=et(t.borderBottomLeftRadius,n.width,n.height),h=p[0],f=p[1],g=[];g.push((o+s)/n.width),g.push((h+u)/n.width),g.push((i+f)/n.height),g.push((l+d)/n.height);var m=Math.max.apply(Math,g);m>1&&(o/=m,i/=m,s/=m,l/=m,u/=m,d/=m,h/=m,f/=m);var v=n.width-s,y=n.height-d,A=n.width-u,w=n.height-f,b=t.borderTopWidth,_=t.borderRightWidth,C=t.borderBottomWidth,E=t.borderLeftWidth,S=tt(t.paddingTop,e.bounds.width),O=tt(t.paddingRight,e.bounds.width),x=tt(t.paddingBottom,e.bounds.width),D=tt(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||i>0?Mi(n.left+E/3,n.top+b/3,o-E/3,i-b/3,ei.TOP_LEFT):new Si(n.left+E/3,n.top+b/3),this.topRightBorderDoubleOuterBox=o>0||i>0?Mi(n.left+v,n.top+b/3,s-_/3,l-b/3,ei.TOP_RIGHT):new Si(n.left+n.width-_/3,n.top+b/3),this.bottomRightBorderDoubleOuterBox=u>0||d>0?Mi(n.left+A,n.top+y,u-_/3,d-C/3,ei.BOTTOM_RIGHT):new Si(n.left+n.width-_/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=h>0||f>0?Mi(n.left+E/3,n.top+w,h-E/3,f-C/3,ei.BOTTOM_LEFT):new Si(n.left+E/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=o>0||i>0?Mi(n.left+2*E/3,n.top+2*b/3,o-2*E/3,i-2*b/3,ei.TOP_LEFT):new Si(n.left+2*E/3,n.top+2*b/3),this.topRightBorderDoubleInnerBox=o>0||i>0?Mi(n.left+v,n.top+2*b/3,s-2*_/3,l-2*b/3,ei.TOP_RIGHT):new Si(n.left+n.width-2*_/3,n.top+2*b/3),this.bottomRightBorderDoubleInnerBox=u>0||d>0?Mi(n.left+A,n.top+y,u-2*_/3,d-2*C/3,ei.BOTTOM_RIGHT):new Si(n.left+n.width-2*_/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=h>0||f>0?Mi(n.left+2*E/3,n.top+w,h-2*E/3,f-2*C/3,ei.BOTTOM_LEFT):new Si(n.left+2*E/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=o>0||i>0?Mi(n.left+E/2,n.top+b/2,o-E/2,i-b/2,ei.TOP_LEFT):new Si(n.left+E/2,n.top+b/2),this.topRightBorderStroke=o>0||i>0?Mi(n.left+v,n.top+b/2,s-_/2,l-b/2,ei.TOP_RIGHT):new Si(n.left+n.width-_/2,n.top+b/2),this.bottomRightBorderStroke=u>0||d>0?Mi(n.left+A,n.top+y,u-_/2,d-C/2,ei.BOTTOM_RIGHT):new Si(n.left+n.width-_/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=h>0||f>0?Mi(n.left+E/2,n.top+w,h-E/2,f-C/2,ei.BOTTOM_LEFT):new Si(n.left+E/2,n.top+n.height-C/2),this.topLeftBorderBox=o>0||i>0?Mi(n.left,n.top,o,i,ei.TOP_LEFT):new Si(n.left,n.top),this.topRightBorderBox=s>0||l>0?Mi(n.left+v,n.top,s,l,ei.TOP_RIGHT):new Si(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||d>0?Mi(n.left+A,n.top+y,u,d,ei.BOTTOM_RIGHT):new Si(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=h>0||f>0?Mi(n.left,n.top+w,h,f,ei.BOTTOM_LEFT):new Si(n.left,n.top+n.height),this.topLeftPaddingBox=o>0||i>0?Mi(n.left+E,n.top+b,Math.max(0,o-E),Math.max(0,i-b),ei.TOP_LEFT):new Si(n.left+E,n.top+b),this.topRightPaddingBox=s>0||l>0?Mi(n.left+Math.min(v,n.width-_),n.top+b,v>n.width+_?0:Math.max(0,s-_),Math.max(0,l-b),ei.TOP_RIGHT):new Si(n.left+n.width-_,n.top+b),this.bottomRightPaddingBox=u>0||d>0?Mi(n.left+Math.min(A,n.width-E),n.top+Math.min(y,n.height-C),Math.max(0,u-_),Math.max(0,d-C),ei.BOTTOM_RIGHT):new Si(n.left+n.width-_,n.top+n.height-C),this.bottomLeftPaddingBox=h>0||f>0?Mi(n.left+E,n.top+Math.min(w,n.height-C),Math.max(0,h-E),Math.max(0,f-C),ei.BOTTOM_LEFT):new Si(n.left+E,n.top+n.height-C),this.topLeftContentBox=o>0||i>0?Mi(n.left+E+D,n.top+b+S,Math.max(0,o-(E+D)),Math.max(0,i-(b+S)),ei.TOP_LEFT):new Si(n.left+E+D,n.top+b+S),this.topRightContentBox=s>0||l>0?Mi(n.left+Math.min(v,n.width+E+D),n.top+b+S,v>n.width+E+D?0:s-E+D,l-(b+S),ei.TOP_RIGHT):new Si(n.left+n.width-(_+O),n.top+b+S),this.bottomRightContentBox=u>0||d>0?Mi(n.left+Math.min(A,n.width-(E+D)),n.top+Math.min(y,n.height+b+S),Math.max(0,u-(_+O)),d-(C+x),ei.BOTTOM_RIGHT):new Si(n.left+n.width-(_+O),n.top+n.height-(C+x)),this.bottomLeftContentBox=h>0||f>0?Mi(n.left+E+D,n.top+w,Math.max(0,h-(E+D)),f-(C+x),ei.BOTTOM_LEFT):new Si(n.left+E+D,n.top+n.height-(C+x))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(ei||(ei={}));var Mi=function(e,t,n,r,o){var i=(Math.sqrt(2)-1)/3*4,a=n*i,s=r*i,l=e+n,c=t+r;switch(o){case ei.TOP_LEFT:return new xi(new Si(e,c),new Si(e,c-s),new Si(l-a,t),new Si(l,t));case ei.TOP_RIGHT:return new xi(new Si(e,t),new Si(e+a,t),new Si(l,c-s),new Si(l,c));case ei.BOTTOM_RIGHT:return new xi(new Si(l,t),new Si(l,t+s),new Si(e+a,c),new Si(e,c));case ei.BOTTOM_LEFT:default:return new xi(new Si(l,c),new Si(l-a,c),new Si(e,t+s),new Si(e,t))}},Ti=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Ri=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ii=function(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6},Fi=function(e,t){this.path=e,this.target=t,this.type=1},ki=function(e){this.opacity=e,this.type=2,this.target=6},Li=function(e){return 1===e.type},Bi=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},Ni=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},ji=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Pi(this.container),this.container.styles.opacity<1&&this.effects.push(new ki(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,o=this.container.styles.transform;this.effects.push(new Ii(n,r,o))}if(0!==this.container.styles.overflowX){var i=Ti(this.curves),a=Ri(this.curves);Bi(i,a)?this.effects.push(new Fi(i,6)):(this.effects.push(new Fi(i,2)),this.effects.push(new Fi(a,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var o=n.effects.filter(function(e){return!Li(e)});if(t||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,o),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var i=Ti(n.curves),a=Ri(n.curves);Bi(i,a)||r.unshift(new Fi(a,6))}}else r.unshift.apply(r,o);n=n.parent}return r.filter(function(t){return ir(t.target,e)})},e}(),Ui=function(e,t,n,r){e.container.elements.forEach(function(o){var i=ir(o.flags,4),a=ir(o.flags,2),s=new ji(o,e);ir(o.styles.display,2048)&&r.push(s);var l=ir(o.flags,8)?[]:r;if(i||a){var c=i||o.styles.isPositioned()?n:t,u=new Ni(s);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var d=o.styles.zIndex.order;if(d<0){var p=0;c.negativeZIndex.some(function(e,t){return d>e.element.container.styles.zIndex.order?(p=t,!1):p>0}),c.negativeZIndex.splice(p,0,u)}else if(d>0){var h=0;c.positiveZIndex.some(function(e,t){return d>=e.element.container.styles.zIndex.order?(h=t+1,!1):h>0}),c.positiveZIndex.splice(h,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else o.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);Ui(s,u,i?u:n,l)}else o.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),Ui(s,t,n,l);ir(o.flags,8)&&Vi(o,l)})},Vi=function(e,t){for(var n=e instanceof no?e.start:1,r=e instanceof no&&e.reversed,o=0;o<t.length;o++){var i=t[o];i.container instanceof to&&"number"==typeof i.container.value&&0!==i.container.value&&(n=i.container.value),i.listValue=Xo(n,i.container.styles.listStyleType,!0),n+=r?-1:1}},Hi=function(e,t){switch(t){case 0:return Wi(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Wi(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Wi(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return Wi(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Gi=function(e,t){var n=[];return Di(e)?n.push(e.subdivide(.5,!1)):n.push(e),Di(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Wi=function(e,t,n,r){var o=[];return Di(e)?o.push(e.subdivide(.5,!1)):o.push(e),Di(n)?o.push(n.subdivide(.5,!0)):o.push(n),Di(r)?o.push(r.subdivide(.5,!0).reverse()):o.push(r),Di(t)?o.push(t.subdivide(.5,!1).reverse()):o.push(t),o},zi=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},$i=function(e){var t=e.styles,n=e.bounds,r=tt(t.paddingLeft,n.width),o=tt(t.paddingRight,n.width),i=tt(t.paddingTop,n.width),a=tt(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+o),-(t.borderTopWidth+t.borderBottomWidth+i+a))},Ki=function(e,t,n){var r=function(e,t){return 0===e?t.bounds:2===e?$i(t):zi(t)}(Xi(e.styles.backgroundOrigin,t),e),o=function(e,t){return 0===e?t.bounds:2===e?$i(t):zi(t)}(Xi(e.styles.backgroundClip,t),e),i=Yi(Xi(e.styles.backgroundSize,t),n,r),a=i[0],s=i[1],l=et(Xi(e.styles.backgroundPosition,t),r.width-a,r.height-s);return[Zi(Xi(e.styles.backgroundRepeat,t),l,i,r,o),Math.round(r.left+l[0]),Math.round(r.top+l[1]),a,s]},Qi=function(e){return Ve(e)&&e.value===gt.AUTO},qi=function(e){return"number"==typeof e},Yi=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=e[0],s=e[1];if(!a)return[0,0];if(qe(a)&&s&&qe(s))return[tt(a,n.width),tt(s,n.height)];var l=qi(i);if(Ve(a)&&(a.value===gt.CONTAIN||a.value===gt.COVER))return qi(i)?n.width/n.height<i!=(a.value===gt.COVER)?[n.width,n.width/i]:[n.height*i,n.height]:[n.width,n.height];var c=qi(r),u=qi(o),d=c||u;if(Qi(a)&&(!s||Qi(s)))return c&&u?[r,o]:l||d?d&&l?[c?r:o*i,u?o:r/i]:[c?r:n.width,u?o:n.height]:[n.width,n.height];if(l){var p=0,h=0;return qe(a)?p=tt(a,n.width):qe(s)&&(h=tt(s,n.height)),Qi(a)?p=h*i:s&&!Qi(s)||(h=p/i),[p,h]}var f=null,g=null;if(qe(a)?f=tt(a,n.width):s&&qe(s)&&(g=tt(s,n.height)),null===f||s&&!Qi(s)||(g=c&&u?f/r*o:n.height),null!==g&&Qi(a)&&(f=c&&u?g/o*r:n.width),null!==f&&null!==g)return[f,g];throw new Error("Unable to calculate background-size for element")},Xi=function(e,t){var n=e[t];return void 0===n?e[0]:n},Zi=function(e,t,n,r,o){var i=t[0],a=t[1],s=n[0],l=n[1];switch(e){case 2:return[new Si(Math.round(r.left),Math.round(r.top+a)),new Si(Math.round(r.left+r.width),Math.round(r.top+a)),new Si(Math.round(r.left+r.width),Math.round(l+r.top+a)),new Si(Math.round(r.left),Math.round(l+r.top+a))];case 3:return[new Si(Math.round(r.left+i),Math.round(r.top)),new Si(Math.round(r.left+i+s),Math.round(r.top)),new Si(Math.round(r.left+i+s),Math.round(r.height+r.top)),new Si(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new Si(Math.round(r.left+i),Math.round(r.top+a)),new Si(Math.round(r.left+i+s),Math.round(r.top+a)),new Si(Math.round(r.left+i+s),Math.round(r.top+a+l)),new Si(Math.round(r.left+i),Math.round(r.top+a+l))];default:return[new Si(Math.round(o.left),Math.round(o.top)),new Si(Math.round(o.left+o.width),Math.round(o.top)),new Si(Math.round(o.left+o.width),Math.round(o.height+o.top)),new Si(Math.round(o.left),Math.round(o.height+o.top))]}},Ji="Hidden Text",ea=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),o=this._document.createElement("span"),i=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",i.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",o.style.fontFamily=e,o.style.fontSize=t,o.style.margin="0",o.style.padding="0",o.appendChild(this._document.createTextNode(Ji)),n.appendChild(o),n.appendChild(r);var a=r.offsetTop-o.offsetTop+2;n.removeChild(o),n.appendChild(this._document.createTextNode(Ji)),n.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-n.offsetTop+2;return i.removeChild(n),{baseline:a,middle:s}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),ta=function(e,t){this.context=e,this.options=t},na=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new ea(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return t(n,e),n.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return t.applyEffect(e)})},n.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 2===e.type}(e)&&(this.ctx.globalAlpha=e.opacity),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Li(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return r(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(e){return r(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return ir(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):$r(e.text).reduce(function(t,o){return r.ctx.fillText(o,t,e.bounds.top+n),t+r.ctx.measureText(o).width},e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=sa(e.fontFamily).join(", "),r=je(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,function(){var n,r,i,a,s,l,c,u,d=this;return o(this,function(o){return n=this.createFontStyle(t),r=n[0],i=n[1],a=n[2],this.ctx.font=r,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(i,a),l=s.baseline,c=s.middle,u=t.paintOrder,e.textBounds.forEach(function(e){u.forEach(function(n){switch(n){case 0:d.ctx.fillStyle=ut(t.color),d.renderTextWithLetterSpacing(e,t.letterSpacing,l);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach(function(n){d.ctx.shadowColor=ut(n.color),d.ctx.shadowOffsetX=n.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=n.offsetY.number*d.options.scale,d.ctx.shadowBlur=n.blur.number,d.renderTextWithLetterSpacing(e,t.letterSpacing,l)}),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),t.textDecorationLine.length&&(d.ctx.fillStyle=ut(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+l),e.bounds.width,1);break;case 2:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:d.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+c),e.bounds.width,1)}}));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(d.ctx.strokeStyle=ut(t.webkitTextStrokeColor),d.ctx.lineWidth=t.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+l)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter"}})}),[2]})})},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=$i(e),o=Ri(t);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,i,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b;return o(this,function(o){switch(o.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,i=t.styles,s=0,l=t.textNodes,o.label=1;case 1:return s<l.length?(c=l[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:o.sent(),o.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof Zr))return[3,8];o.label=5;case 5:return o.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return y=o.sent(),this.renderReplacedElement(t,r,y),[3,8];case 7:return o.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Jr&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof eo))return[3,12];o.label=9;case 9:return o.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return y=o.sent(),this.renderReplacedElement(t,r,y),[3,12];case 11:return o.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof po&&t.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:u=o.sent(),t.width&&t.height&&this.ctx.drawImage(u,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),o.label=14;case 14:if(t instanceof lo&&(d=Math.min(t.bounds.width,t.bounds.height),t.type===io?t.checked&&(this.ctx.save(),this.path([new Si(t.bounds.left+.39363*d,t.bounds.top+.79*d),new Si(t.bounds.left+.16*d,t.bounds.top+.5549*d),new Si(t.bounds.left+.27347*d,t.bounds.top+.44071*d),new Si(t.bounds.left+.39694*d,t.bounds.top+.5649*d),new Si(t.bounds.left+.72983*d,t.bounds.top+.23*d),new Si(t.bounds.left+.84*d,t.bounds.top+.34085*d),new Si(t.bounds.left+.39363*d,t.bounds.top+.79*d)]),this.ctx.fillStyle=ut(so),this.ctx.fill(),this.ctx.restore()):t.type===ao&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+d/2,t.bounds.top+d/2,d/4,0,2*Math.PI,!0),this.ctx.fillStyle=ut(so),this.ctx.fill(),this.ctx.restore())),ra(t)&&t.value.length){switch(p=this.createFontStyle(i),w=p[0],h=p[1],f=this.fontMetrics.getMetrics(w,h).baseline,this.ctx.font=w,this.ctx.fillStyle=ut(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=ia(t.styles.textAlign),b=$i(t),g=0,t.styles.textAlign){case 1:g+=b.width/2;break;case 2:g+=b.width}m=b.add(g,0,0,-b.height/2+1),this.ctx.save(),this.path([new Si(b.left,b.top),new Si(b.left+b.width,b.top),new Si(b.left+b.width,b.top+b.height),new Si(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Gr(t.value,m),i.letterSpacing,f),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!ir(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(v=t.styles.listStyleImage).type)return[3,18];y=void 0,A=v.url,o.label=15;case 15:return o.trys.push([15,17,,18]),[4,this.context.cache.match(A)];case 16:return y=o.sent(),this.ctx.drawImage(y,t.bounds.left-(y.width+10),t.bounds.top),[3,18];case 17:return o.sent(),this.context.logger.error("Error loading list-style-image "+A),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(w=this.createFontStyle(i)[0],this.ctx.font=w,this.ctx.fillStyle=ut(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",b=new a(t.bounds.left,t.bounds.top+tt(t.styles.paddingTop,t.bounds.width),t.bounds.width,_n(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Gr(e.listValue,b),i.letterSpacing,_n(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),o.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(e){return r(this,void 0,void 0,function(){var t,n,r,i,a,s,l,c,u,d,p,h,f,g,m;return o(this,function(o){switch(o.label){case 0:return ir(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:o.sent(),t=0,n=e.negativeZIndex,o.label=2;case 2:return t<n.length?(m=n[t],[4,this.renderStack(m)]):[3,5];case 3:o.sent(),o.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:o.sent(),r=0,i=e.nonInlineLevel,o.label=7;case 7:return r<i.length?(m=i[r],[4,this.renderNode(m)]):[3,10];case 8:o.sent(),o.label=9;case 9:return r++,[3,7];case 10:a=0,s=e.nonPositionedFloats,o.label=11;case 11:return a<s.length?(m=s[a],[4,this.renderStack(m)]):[3,14];case 12:o.sent(),o.label=13;case 13:return a++,[3,11];case 14:l=0,c=e.nonPositionedInlineLevel,o.label=15;case 15:return l<c.length?(m=c[l],[4,this.renderStack(m)]):[3,18];case 16:o.sent(),o.label=17;case 17:return l++,[3,15];case 18:u=0,d=e.inlineLevel,o.label=19;case 19:return u<d.length?(m=d[u],[4,this.renderNode(m)]):[3,22];case 20:o.sent(),o.label=21;case 21:return u++,[3,19];case 22:p=0,h=e.zeroOrAutoZIndexOrTransformedOrOpacity,o.label=23;case 23:return p<h.length?(m=h[p],[4,this.renderStack(m)]):[3,26];case 24:o.sent(),o.label=25;case 25:return p++,[3,23];case 26:f=0,g=e.positiveZIndex,o.label=27;case 27:return f<g.length?(m=g[f],[4,this.renderStack(m)]):[3,30];case 28:o.sent(),o.label=29;case 29:return f++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=Di(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),Di(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},n.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(e,t,n){var r;if(e.width===t&&e.height===n)return e;var o=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return o.width=Math.max(1,t),o.height=Math.max(1,n),o.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),o},n.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,i,a,s;return o(this,function(l){switch(l.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_,C,E,S,O,x,D,P,M,T,R,I,F,k;return o(this,function(o){switch(o.label){case 0:if(0!==n.type)return[3,5];i=void 0,a=n.url,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,r.context.cache.match(a)];case 2:return i=o.sent(),[3,4];case 3:return o.sent(),r.context.logger.error("Error loading background-image "+a),[3,4];case 4:return i&&(s=Ki(e,t,[i.width,i.height,i.width/i.height]),w=s[0],O=s[1],x=s[2],C=s[3],E=s[4],y=r.ctx.createPattern(r.resizeImage(i,C,E),"repeat"),r.renderRepeat(w,y,O,x)),[3,6];case 5:1===n.type?(l=Ki(e,t,[null,null,null]),w=l[0],O=l[1],x=l[2],C=l[3],E=l[4],c=function(e,t,n){var r="number"==typeof e?e:function(e,t,n){var r=t/2,o=n/2,i=tt(e[0],t)-r,a=o-tt(e[1],n);return(Math.atan2(a,i)+2*Math.PI)%(2*Math.PI)}(e,t,n),o=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),i=t/2,a=n/2,s=o/2,l=Math.sin(r-Math.PI/2)*s,c=Math.cos(r-Math.PI/2)*s;return[o,i-c,i+c,a-l,a+l]}(n.angle,C,E),u=c[0],d=c[1],p=c[2],h=c[3],f=c[4],(g=document.createElement("canvas")).width=C,g.height=E,m=g.getContext("2d"),v=m.createLinearGradient(d,h,p,f),Ct(n.stops,u).forEach(function(e){return v.addColorStop(e.stop,ut(e.color))}),m.fillStyle=v,m.fillRect(0,0,C,E),C>0&&E>0&&(y=r.ctx.createPattern(g,"repeat"),r.renderRepeat(w,y,O,x))):function(e){return 2===e.type}(n)&&(A=Ki(e,t,[null,null,null]),w=A[0],b=A[1],_=A[2],C=A[3],E=A[4],S=0===n.position.length?[Ze]:n.position,O=tt(S[0],C),x=tt(S[S.length-1],E),D=function(e,t,n,r,o){var i=0,a=0;switch(e.size){case 0:0===e.shape?i=a=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-o)):1===e.shape&&(i=Math.min(Math.abs(t),Math.abs(t-r)),a=Math.min(Math.abs(n),Math.abs(n-o)));break;case 2:if(0===e.shape)i=a=Math.min(Et(t,n),Et(t,n-o),Et(t-r,n),Et(t-r,n-o));else if(1===e.shape){var s=Math.min(Math.abs(n),Math.abs(n-o))/Math.min(Math.abs(t),Math.abs(t-r)),l=St(r,o,t,n,!0),c=l[0],u=l[1];a=s*(i=Et(c-t,(u-n)/s))}break;case 1:0===e.shape?i=a=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-o)):1===e.shape&&(i=Math.max(Math.abs(t),Math.abs(t-r)),a=Math.max(Math.abs(n),Math.abs(n-o)));break;case 3:if(0===e.shape)i=a=Math.max(Et(t,n),Et(t,n-o),Et(t-r,n),Et(t-r,n-o));else if(1===e.shape){s=Math.max(Math.abs(n),Math.abs(n-o))/Math.max(Math.abs(t),Math.abs(t-r));var d=St(r,o,t,n,!1);c=d[0],u=d[1],a=s*(i=Et(c-t,(u-n)/s))}}return Array.isArray(e.size)&&(i=tt(e.size[0],r),a=2===e.size.length?tt(e.size[1],o):i),[i,a]}(n,O,x,C,E),P=D[0],M=D[1],P>0&&M>0&&(T=r.ctx.createRadialGradient(b+O,_+x,0,b+O,_+x,P),Ct(n.stops,2*P).forEach(function(e){return T.addColorStop(e.stop,ut(e.color))}),r.path(w),r.ctx.fillStyle=T,P!==M?(R=e.bounds.left+.5*e.bounds.width,I=e.bounds.top+.5*e.bounds.height,k=1/(F=M/P),r.ctx.save(),r.ctx.translate(R,I),r.ctx.transform(1,0,0,F,0,0),r.ctx.translate(-R,-I),r.ctx.fillRect(b,k*(_-I)+I,C,E*k),r.ctx.restore()):r.ctx.fill())),o.label=6;case 6:return t--,[2]}})},r=this,i=0,a=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return i<a.length?(s=a[i],[5,n(s)]):[3,4];case 2:l.sent(),l.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(e,t,n){return r(this,void 0,void 0,function(){return o(this,function(r){return this.path(Hi(n,t)),this.ctx.fillStyle=ut(e),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(e,t,n,i){return r(this,void 0,void 0,function(){var r,a;return o(this,function(o){switch(o.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,i)]:[3,2];case 1:return o.sent(),[2];case 2:return r=function(e,t){switch(t){case 0:return Wi(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Wi(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Wi(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return Wi(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}}(i,n),this.path(r),this.ctx.fillStyle=ut(e),this.ctx.fill(),a=function(e,t){switch(t){case 0:return Wi(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Wi(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Wi(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return Wi(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}}(i,n),this.path(a),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,function(){var t,n,r,i,a,s,l,c,u=this;return o(this,function(o){switch(o.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!ct(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],i=oa(Xi(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),ct(t.backgroundColor)||(this.ctx.fillStyle=ut(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:o.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){u.ctx.save();var n,r,o,i,a,s=Ti(e.curves),l=t.inset?0:1e4,c=(n=s,r=-l+(t.inset?1:-1)*t.spread.number,o=(t.inset?1:-1)*t.spread.number,i=t.spread.number*(t.inset?-2:2),a=t.spread.number*(t.inset?-2:2),n.map(function(e,t){switch(t){case 0:return e.add(r,o);case 1:return e.add(r+i,o);case 2:return e.add(r+i,o+a);case 3:return e.add(r,o+a)}return e}));t.inset?(u.path(s),u.ctx.clip(),u.mask(c)):(u.mask(s),u.ctx.clip(),u.path(c)),u.ctx.shadowOffsetX=t.offsetX.number+l,u.ctx.shadowOffsetY=t.offsetY.number,u.ctx.shadowColor=ut(t.color),u.ctx.shadowBlur=t.blur.number,u.ctx.fillStyle=t.inset?ut(t.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()}),o.label=2;case 2:a=0,s=0,l=r,o.label=3;case 3:return s<l.length?0!==(c=l[s]).style&&!ct(c.color)&&c.width>0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,a,e.curves,2)]:[3,11]:[3,13];case 4:return o.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,a,e.curves,3)];case 6:return o.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,a,e.curves)];case 8:return o.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,a,e.curves)];case 10:o.sent(),o.label=11;case 11:a++,o.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,i,a){return r(this,void 0,void 0,function(){var r,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b;return o(this,function(o){return this.ctx.save(),r=function(e,t){switch(t){case 0:return Gi(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Gi(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Gi(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Gi(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(i,n),s=Hi(i,n),2===a&&(this.path(s),this.ctx.clip()),Di(s[0])?(l=s[0].start.x,c=s[0].start.y):(l=s[0].x,c=s[0].y),Di(s[1])?(u=s[1].end.x,d=s[1].end.y):(u=s[1].x,d=s[1].y),p=0===n||2===n?Math.abs(l-u):Math.abs(c-d),this.ctx.beginPath(),3===a?this.formatPath(r):this.formatPath(s.slice(0,2)),h=t<3?3*t:2*t,f=t<3?2*t:t,3===a&&(h=t,f=t),g=!0,p<=2*h?g=!1:p<=2*h+f?(h*=m=p/(2*h+f),f*=m):(v=Math.floor((p+f)/(h+f)),y=(p-v*h)/(v-1),f=(A=(p-(v+1)*h)/v)<=0||Math.abs(f-y)<Math.abs(f-A)?y:A),g&&(3===a?this.ctx.setLineDash([0,h+f]):this.ctx.setLineDash([h,f])),3===a?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=ut(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===a&&(Di(s[0])&&(w=s[3],b=s[0],this.ctx.beginPath(),this.formatPath([new Si(w.end.x,w.end.y),new Si(b.start.x,b.start.y)]),this.ctx.stroke()),Di(s[1])&&(w=s[1],b=s[2],this.ctx.beginPath(),this.formatPath([new Si(w.end.x,w.end.y),new Si(b.start.x,b.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ut(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=new ji(e,null),o=new Ni(r),Ui(r,o,o,i=[]),Vi(r.container,i),t=o,[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}var r,o,i})})},n}(ta),ra=function(e){return e instanceof uo||e instanceof co||e instanceof lo&&e.type!==ao&&e.type!==io},oa=function(e,t){switch(e){case 0:return Ti(t);case 2:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);default:return Ri(t)}},ia=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},aa=["-apple-system","system-ui"],sa=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return-1===aa.indexOf(e)}):e},la=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return t(n,e),n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t,n;return o(this,function(r){switch(r.label){case 0:return t=Ur(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,ca(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ut(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(ta),ca=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},ua=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,i([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,i([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,i([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,i([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),da=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new ua({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new mi(this,t)}return e.instanceCount=1,e}();return"undefined"!=typeof window&&gi.setContext(window),function(e,t){return void 0===t&&(t={}),function(e,t){return r(void 0,void 0,void 0,function(){var r,i,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_,C,E,S,O,x,D,P,M,T,R,I,F,k,L,B,N,j,U,V,H,G;return o(this,function(o){switch(o.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(i=r.defaultView))throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(x=t.allowTaint)&&void 0!==x&&x,imageTimeout:null!==(D=t.imageTimeout)&&void 0!==D?D:15e3,proxy:t.proxy,useCORS:null!==(P=t.useCORS)&&void 0!==P&&P},c=n({logging:null===(M=t.logging)||void 0===M||M,cache:t.cache},l),u={windowWidth:null!==(T=t.windowWidth)&&void 0!==T?T:i.innerWidth,windowHeight:null!==(R=t.windowHeight)&&void 0!==R?R:i.innerHeight,scrollX:null!==(I=t.scrollX)&&void 0!==I?I:i.pageXOffset,scrollY:null!==(F=t.scrollY)&&void 0!==F?F:i.pageYOffset},d=new a(u.scrollX,u.scrollY,u.windowWidth,u.windowHeight),p=new da(c,d),h=null!==(k=t.foreignObjectRendering)&&void 0!==k&&k,f={allowTaint:null!==(L=t.allowTaint)&&void 0!==L&&L,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:h,copyStyles:h},p.logger.debug("Starting document clone with size "+d.width+"x"+d.height+" scrolled to "+-d.left+","+-d.top),g=new Jo(p,e,f),(m=g.clonedReferenceElement)?[4,g.toIFrame(r,d)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return v=o.sent(),y=xo(m)||"HTML"===m.tagName?function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),o=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new a(0,0,r,o)}(m.ownerDocument):s(p,m),A=y.width,w=y.height,b=y.left,_=y.top,C=function(e,t,n){var r=t.ownerDocument,o=r.documentElement?yt(e,getComputedStyle(r.documentElement).backgroundColor):At.TRANSPARENT,i=r.body?yt(e,getComputedStyle(r.body).backgroundColor):At.TRANSPARENT,a="string"==typeof n?yt(e,n):null===n?At.TRANSPARENT:4294967295;return t===r.documentElement?ct(o)?ct(i)?a:i:o:a}(p,m,t.backgroundColor),E={canvas:t.canvas,backgroundColor:C,scale:null!==(N=null!==(B=t.scale)&&void 0!==B?B:i.devicePixelRatio)&&void 0!==N?N:1,x:(null!==(j=t.x)&&void 0!==j?j:0)+b,y:(null!==(U=t.y)&&void 0!==U?U:0)+_,width:null!==(V=t.width)&&void 0!==V?V:Math.ceil(A),height:null!==(H=t.height)&&void 0!==H?H:Math.ceil(w)},h?(p.logger.debug("Document cloned, using foreign object rendering"),[4,new la(p,E).render(m)]):[3,3];case 2:return S=o.sent(),[3,5];case 3:return p.logger.debug("Document cloned, element located at "+b+","+_+" with size "+A+"x"+w+" using computed rendering"),p.logger.debug("Starting DOM parsing"),O=mo(p,m),C===O.styles.backgroundColor&&(O.styles.backgroundColor=At.TRANSPARENT),p.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),[4,new na(p,E).render(O)];case 4:S=o.sent(),o.label=5;case 5:return(null===(G=t.removeContainer)||void 0===G||G)&&(Jo.destroy(v)||p.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),p.logger.debug("Finished rendering"),[2,S]}})})}(e,t)}}()},3132(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6361),i=(r=n(3388))&&r.__esModule?r:{default:r},a=n(3957);t.default=function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.addRule=function(e){r.validate(e),r.rules.push(e)},this.run=function(e){return Promise.resolve((0,i.default)(r.rules,e))},this.rules=[],this.validate=function(e){var t=null!=e;return(0,a.isDevelopment)()&&t?((0,a.isObject)(e)||(0,a.toError)("Expected valid schema object, but got - "+e),function(t){(0,o.validatePredicates)([t.conditions],e),(0,o.validateConditionFields)([t.conditions],e)}):function(){}}(n),t&&(0,a.toArray)(t).forEach(function(e){return r.addRule(e)})}},3388(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.flatMap)(e,function(e){var n=e.conditions,r=e.event;return(0,i.default)(n,t)?(0,o.toArray)(r):[]})};var r,o=n(3957),i=(r=n(6467))&&r.__esModule?r:{default:r}},4926(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return s(e,t)};var r,o=(r=n(1055))&&r.__esModule?r:{default:r},i=n(3957),a=n(3441),s=function e(t,n){return(0,i.isObject)(n)?Object.keys(n).every(function(r){var i=n[r];return r===a.OR||r===a.AND?!!Array.isArray(i)&&(r===a.OR?i.some(function(n){return e(t,n)}):i.every(function(n){return e(t,n)})):r===a.NOT?!e(t,i):!!o.default[r]&&o.default[r](t,i)}):o.default[n](t)}},6467(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRelCondition=s,t.default=function e(t,n){return(0,o.isObject)(t)&&(0,o.isObject)(n)?Object.keys(t).every(function(r){var l=t[r];if(r===a.OR)return l.some(function(t){return e(t,n)});if(r===a.AND)return l.every(function(t){return e(t,n)});if(r===a.NOT)return!e(l,n);var c=(0,o.selectRef)(r,n);return Array.isArray(c)&&c.some(function(t){return!!(0,o.isObject)(t)&&e(l,t)})||(0,i.default)(c,s(l,n))}):((0,o.toError)("Rule "+JSON.stringify(t)+" with "+n+" can't be processed"),!1)};var r,o=n(3957),i=(r=n(4926))&&r.__esModule?r:{default:r},a=n(3441);function s(e,t){return Array.isArray(e)?e.map(function(e){return s(e,t)}):(0,o.isObject)(e)?Object.keys(e).reduce(function(n,r){return n[r]=s(e[r],t),n},{}):"string"==typeof e&&e.startsWith("$")?(0,o.selectRef)(e.substr(1),t):e}},3441(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OR="or",t.AND="and",t.NOT="not"},5660(e,t,n){"use strict";var r,o=(r=n(3132))&&r.__esModule?r:{default:r};t.A=o.default},3957(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var 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};t.normRef=a,t.selectRef=function(e,t){var n=a(e);return(0,i.default)(n,t)},t.isObject=function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e},t.isDevelopment=function(){return!1},t.toArray=function(e){return Array.isArray(e)?e:[e]},t.toError=s,t.isRefArray=l,t.extractRefSchema=function(e,t){var n=t.properties;return n&&n[e]?"array"===n[e].type?l(e,t)?c(n[e].items.$ref,t):n[e].items:n[e]&&n[e].$ref?c(n[e].$ref,t):n[e]&&"object"===n[e].type?n[e]:void s(e+" has no $ref field ref schema extraction is impossible"):void s(e+" not defined in properties")};var o,i=(o=n(3992))&&o.__esModule?o:{default:o};function a(e){return e.replace(/\$/g,".")}function s(e){console.error(e)}function l(e,t){return t.properties[e]&&"array"===t.properties[e].type&&t.properties[e].items&&t.properties[e].items.$ref}function c(e,t){return e.startsWith("#/")?e.substr(2).split("/").reduce(function(e,t){return e[t]},t):void s("Only local references supported at this point use json-schema-deref")}var u=function(e,t){return e.concat(t)};t.flatMap=function(e,t){return e.map(t).reduce(u,[])}},6361(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.predicatesFromRule=l,t.predicatesFromCondition=c,t.listAllPredicates=u,t.listInvalidPredicates=d,t.validatePredicates=function(e,t){var n=d(e,t);0!==n.length&&(0,i.toError)("Rule contains invalid predicates "+n)},t.fieldsFromPredicates=p,t.fieldsFromCondition=h,t.listAllFields=f,t.listInvalidFields=g,t.validateConditionFields=function(e,t){var n=g(e,t);0!==n.length&&(0,i.toError)("Rule contains invalid fields "+n)};var r,o=(r=n(1055))&&r.__esModule?r:{default:r},i=n(3957),a=n(3441),s=["and","or","ternary","every","some","curry","partial","complement","mod"];function l(e,t){return(0,i.isObject)(e)?(0,i.flatMap)(Object.keys(e),function(n){var r=e[n];if((0,i.isObject)(r)||n===a.NOT){if(n===a.OR||n===a.AND)return Array.isArray(r)?(0,i.flatMap)(r,function(e){return l(e,t)}):((0,i.toError)('"'+n+'" must be an array'),[]);var o=l(r,t);return o.push(n),o}return l(n,t)}):[e]}function c(e,t){return(0,i.flatMap)(Object.keys(e),function(n){var r=e[n];if((n=(0,i.normRef)(n))===a.OR||n===a.AND)return Array.isArray(r)?(0,i.flatMap)(r,function(e){return c(e,t)}):((0,i.toError)(n+" with "+JSON.stringify(r)+" must be an Array"),[]);if(n===a.NOT)return c(r,t);if(-1!==n.indexOf(".")){var o=n.indexOf("."),s=n.substr(0,o),u=(0,i.extractRefSchema)(s,t);if(u){var d=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n.substr(o+1),r);return c(d,u)}return(0,i.toError)("Can't find schema for "+s),[]}if((0,i.isRefArray)(n,t)){var p=(0,i.extractRefSchema)(n,t);return p?c(r,p):[]}return t.properties[n]?l(r,t):((0,i.toError)("Can't validate "+n),[])})}function u(e,t){var n=(0,i.flatMap)(e,function(e){return c(e,t)});return n.filter(function(e,t,r){return n.indexOf(e)===t})}function d(e,t){return u(e,t).filter(function(e){return s.includes(e)||void 0===o.default[e]})}function p(e){return Array.isArray(e)?(0,i.flatMap)(e,p):(0,i.isObject)(e)?(0,i.flatMap)(Object.keys(e),function(t){return p(e[t])}):"string"==typeof e&&e.startsWith("$")?[e.substr(1)]:[]}function h(e){return(0,i.flatMap)(Object.keys(e),function(t){var n=e[t];return t===a.OR||t===a.AND?(0,i.flatMap)(n,h):t===a.NOT?h(n):[(0,i.normRef)(t)].concat(p(n))})}function f(e){var t=(0,i.flatMap)(e,h);return t.filter(function(e){return-1===e.indexOf(".")}).filter(function(e,n,r){return t.indexOf(e)===n})}function g(e,t){return f(e).filter(function(e){return void 0===t.properties[e]})}},3103(e,t,n){var r=n(4715)(n(8942),"DataView");e.exports=r},5098(e,t,n){var r=n(3305),o=n(9361),i=n(1112),a=n(5276),s=n(7452);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},1386(e,t,n){var r=n(2393),o=n(2049),i=n(7144),a=n(5071),s=n(3964);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},9770(e,t,n){var r=n(4715)(n(8942),"Map");e.exports=r},8250(e,t,n){var r=n(9753),o=n(5681),i=n(88),a=n(4732),s=n(9068);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},9413(e,t,n){var r=n(4715)(n(8942),"Promise");e.exports=r},4512(e,t,n){var r=n(4715)(n(8942),"Set");e.exports=r},3212(e,t,n){var r=n(8250),o=n(1877),i=n(8006);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},1340(e,t,n){var r=n(1386),o=n(4103),i=n(1779),a=n(4162),s=n(7462),l=n(6638);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},5650(e,t,n){var r=n(8942).Symbol;e.exports=r},1623(e,t,n){var r=n(8942).Uint8Array;e.exports=r},9270(e,t,n){var r=n(4715)(n(8942),"WeakMap");e.exports=r},6912(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7587(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},9847(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},358(e,t,n){var r=n(6137),o=n(3283),i=n(3142),a=n(5853),s=n(9632),l=n(8666),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],g=f.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||d&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}},5111(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},1129(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4187(e){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},6465(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},906(e,t,n){var r=n(2762)("length");e.exports=r},2837(e){e.exports=function(e){return e.split("")}},9546(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},3422(e,t,n){var r=n(7073),o=n(6285),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},7034(e,t,n){var r=n(6285);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7930(e,t,n){var r=n(9032),o=n(1211);e.exports=function(e,t){return e&&r(t,o(t),e)}},125(e,t,n){var r=n(9032),o=n(5288);e.exports=function(e,t){return e&&r(t,o(t),e)}},7073(e,t,n){var r=n(2532);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9334(e,t,n){var r=n(1340),o=n(7587),i=n(3422),a=n(7930),s=n(125),l=n(7099),c=n(4354),u=n(3546),d=n(4733),p=n(393),h=n(3650),f=n(8486),g=n(7350),m=n(424),v=n(5964),y=n(3142),A=n(5853),w=n(7681),b=n(1580),_=n(3943),C=n(1211),E=n(5288),S="[object Arguments]",O="[object Function]",x="[object Object]",D={};D[S]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[x]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[O]=D["[object WeakMap]"]=!1,e.exports=function e(t,n,P,M,T,R){var I,F=1&n,k=2&n,L=4&n;if(P&&(I=T?P(t,M,T,R):P(t)),void 0!==I)return I;if(!b(t))return t;var B=y(t);if(B){if(I=g(t),!F)return c(t,I)}else{var N=f(t),j=N==O||"[object GeneratorFunction]"==N;if(A(t))return l(t,F);if(N==x||N==S||j&&!T){if(I=k||j?{}:v(t),!F)return k?d(t,s(I,t)):u(t,a(I,t))}else{if(!D[N])return T?t:{};I=m(t,N,F)}}R||(R=new r);var U=R.get(t);if(U)return U;R.set(t,I),_(t)?t.forEach(function(r){I.add(e(r,n,P,r,t,R))}):w(t)&&t.forEach(function(r,o){I.set(o,e(r,n,P,o,t,R))});var V=B?void 0:(L?k?h:p:k?E:C)(t);return o(V||t,function(r,o){V&&(r=t[o=r]),i(I,o,e(r,n,P,o,t,R))}),I}},9747(e,t,n){var r=n(1580),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},4570(e,t,n){var r=n(7170),o=n(5770)(r);e.exports=o},4661(e,t,n){var r=n(4570);e.exports=function(e,t){var n=[];return r(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}},7250(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},313(e,t,n){var r=n(1129),o=n(714);e.exports=function e(t,n,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},5636(e,t,n){var r=n(6596)();e.exports=r},7170(e,t,n){var r=n(5636),o=n(1211);e.exports=function(e,t){return e&&r(e,t,o)}},7923(e,t,n){var r=n(3526),o=n(6040);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},8244(e,t,n){var r=n(1129),o=n(3142);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},7379(e,t,n){var r=n(5650),o=n(8870),i=n(9005),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},3636(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},6027(e,t,n){var r=n(7379),o=n(547);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},4687(e,t,n){var r=n(353),o=n(547);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},353(e,t,n){var r=n(1340),o=n(3934),i=n(8861),a=n(1182),s=n(8486),l=n(3142),c=n(5853),u=n(8666),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),A=l(t),w=y?p:s(e),b=A?p:s(t),_=(w=w==d?h:w)==h,C=(b=b==d?h:b)==h,E=w==b;if(E&&c(e)){if(!c(t))return!1;y=!0,_=!1}if(E&&!_)return v||(v=new r),y||u(e)?o(e,t,n,g,m,v):i(e,t,w,n,g,m,v);if(!(1&n)){var S=_&&f.call(e,"__wrapped__"),O=C&&f.call(t,"__wrapped__");if(S||O){var x=S?e.value():e,D=O?t.value():t;return v||(v=new r),m(x,D,n,g,v)}}return!!E&&(v||(v=new r),a(e,t,n,g,m,v))}},777(e,t,n){var r=n(8486),o=n(547);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},8330(e,t,n){var r=n(1340),o=n(4687);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(i)var f=i(d,p,u,e,t,h);if(!(void 0===f?o(p,d,3,i,h):f))return!1}}return!0}},9624(e,t,n){var r=n(3655),o=n(4759),i=n(1580),a=n(4066),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},1935(e,t,n){var r=n(8486),o=n(547);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},674(e,t,n){var r=n(7379),o=n(5387),i=n(547),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},3334(e,t,n){var r=n(6526),o=n(2343),i=n(2053),a=n(3142),s=n(3282);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},195(e,t,n){var r=n(4882),o=n(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},7200(e,t,n){var r=n(1580),o=n(4882),i=n(8546),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},1393(e,t,n){var r=n(4570),o=n(6529);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},6526(e,t,n){var r=n(8330),o=n(4367),i=n(3904);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},2343(e,t,n){var r=n(4687),o=n(6123),i=n(7276),a=n(5187),s=n(7267),l=n(3904),c=n(6040);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},310(e,t,n){var r=n(5111),o=n(7923),i=n(3334),a=n(1393),s=n(642),l=n(9460),c=n(6775),u=n(2053),d=n(3142);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return o(t,1===e.length?e[0]:e)}:e}):[u];var p=-1;t=r(t,l(i));var h=a(e,function(e,n,o){return{criteria:r(t,function(t){return t(e)}),index:++p,value:e}});return s(h,function(e,t){return c(e,t,n)})}},2762(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},8880(e,t,n){var r=n(7923);e.exports=function(e){return function(t){return r(t,e)}}},1035(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},6902(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,s=n(t((r-e)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=o;return l}},1961(e){e.exports=function(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}},6452(e){var t=Math.floor;e.exports=function(e,n){var r="";if(!e||n<1||n>9007199254740991)return r;do{n%2&&(r+=e),(n=t(n/2))&&(e+=e)}while(n);return r}},7655(e,t,n){var r=n(3422),o=n(3526),i=n(9632),a=n(1580),s=n(6040);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,p=e;null!=p&&++c<u;){var h=s(t[c]),f=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(c!=d){var g=p[h];void 0===(f=l?l(g,h,p):void 0)&&(f=a(g)?g:i(t[c+1])?[]:{})}r(p,h,f),p=p[h]}return e}},7403(e,t,n){var r=n(2619),o=n(2532),i=n(2053),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},3501(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},642(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},6137(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},9101(e,t,n){var r=n(5111);e.exports=function(e,t){return r(t,function(t){return[t,e[t]]})}},2291(e,t,n){var r=n(5650),o=n(5111),i=n(3142),a=n(1187),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},6403(e,t,n){var r=n(2945),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},9460(e){e.exports=function(e){return function(t){return e(t)}}},1586(e,t,n){var r=n(3526),o=n(8087),i=n(3398),a=n(6040),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=-1,l=(t=r(t,e)).length;if(!l)return!0;for(;++n<l;){var c=a(t[n]);if("__proto__"===c&&!s.call(e,"__proto__"))return!1;if(("constructor"===c||"prototype"===c)&&n<l-1)return!1}var u=i(e,t);return null==u||delete u[a(o(t))]}},5568(e){e.exports=function(e,t){return e.has(t)}},3526(e,t,n){var r=n(3142),o=n(5187),i=n(6493),a=n(5243);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},8931(e,t,n){var r=n(3501);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},8898(e,t,n){var r=n(1623);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},7099(e,t,n){e=n.nmd(e);var r=n(8942),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},2480(e,t,n){var r=n(8898);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},8340(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},8069(e,t,n){var r=n(5650),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},2264(e,t,n){var r=n(8898);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},3521(e,t,n){var r=n(1187);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),s=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!u&&e<t||u&&n&&i&&!o&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}},6775(e,t,n){var r=n(3521);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,s=i.length,l=n.length;++o<s;){var c=r(i[o],a[o]);if(c)return o>=l?c:c*("desc"==n[o]?-1:1)}return e.index-t.index}},4354(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},9032(e,t,n){var r=n(3422),o=n(7073);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},3546(e,t,n){var r=n(9032),o=n(7979);e.exports=function(e,t){return r(e,o(e),t)}},4733(e,t,n){var r=n(9032),o=n(5832);e.exports=function(e,t){return r(e,o(e),t)}},1950(e,t,n){var r=n(8942)["__core-js_shared__"];e.exports=r},5770(e,t,n){var r=n(6529);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},6596(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},4326(e,t,n){var r=n(8931),o=n(3417),i=n(2237),a=n(5243);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},3640(e,t,n){var r=n(4187),o=n(5881),i=n(9850),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},7317(e,t,n){var r=n(3334),o=n(6529),i=n(1211);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!o(t)){var l=r(n,3);t=i(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}},9929(e,t,n){var r=n(6452),o=n(2291),i=n(8931),a=n(3417),s=n(1090),l=n(2237),c=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":o(t)).length;if(n<2)return n?r(t,e):t;var u=r(t,c(e/s(t)));return a(t)?i(l(u),0,e).join(""):u.slice(0,e)}},165(e,t,n){var r=n(6902),o=n(4535),i=n(3301);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},9458(e,t,n){var r=n(9101),o=n(8486),i=n(5894),a=n(1156);e.exports=function(e){return function(t){var n=o(t);return"[object Map]"==n?i(t):"[object Set]"==n?a(t):r(t,e(t))}}},9259(e,t,n){var r=n(8360);e.exports=function(e){return r(e)?void 0:e}},9968(e,t,n){var r=n(1035)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"});e.exports=r},2532(e,t,n){var r=n(4715),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},3934(e,t,n){var r=n(3212),o=n(6465),i=n(5568);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var v=e[f],y=t[f];if(a)var A=c?a(y,v,f,t,e,l):a(v,y,f,e,t,l);if(void 0!==A){if(A)continue;g=!1;break}if(m){if(!o(t,function(e,t){if(!i(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)})){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},8861(e,t,n){var r=n(5650),o=n(1623),i=n(6285),a=n(3934),s=n(5894),l=n(9828),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var g=p.get(e);if(g)return g==t;r|=2,p.set(e,t);var m=a(h(e),h(t),r,c,d,p);return p.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},1182(e,t,n){var r=n(393),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:o.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var v=e[p=c[d]],y=t[p];if(i)var A=l?i(y,v,p,t,e,s):i(v,y,p,e,t,s);if(!(void 0===A?v===y||a(v,y,n,i,s):A)){g=!1;break}m||(m="constructor"==p)}if(g&&!m){var w=e.constructor,b=t.constructor;w==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(g=!1)}return s.delete(e),s.delete(t),g}},1439(e,t,n){var r=n(5857),o=n(5234),i=n(796);e.exports=function(e){return i(o(e,void 0,r),e+"")}},4967(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},393(e,t,n){var r=n(8244),o=n(7979),i=n(1211);e.exports=function(e){return r(e,i,o)}},3650(e,t,n){var r=n(8244),o=n(5832),i=n(5288);e.exports=function(e){return r(e,i,o)}},4700(e,t,n){var r=n(9067);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},4367(e,t,n){var r=n(7267),o=n(1211);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},4715(e,t,n){var r=n(9624),o=n(155);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},4784(e,t,n){var r=n(3766)(Object.getPrototypeOf,Object);e.exports=r},8870(e,t,n){var r=n(5650),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},7979(e,t,n){var r=n(9847),o=n(9306),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},5832(e,t,n){var r=n(1129),o=n(4784),i=n(7979),a=n(9306),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},8486(e,t,n){var r=n(3103),o=n(9770),i=n(9413),a=n(4512),s=n(9270),l=n(7379),c=n(4066),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",g=c(r),m=c(o),v=c(i),y=c(a),A=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=f||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=p||s&&w(new s)!=h)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return f;case m:return u;case v:return d;case y:return p;case A:return h}return t}),e.exports=w},155(e){e.exports=function(e,t){return null==e?void 0:e[t]}},5899(e,t,n){var r=n(3526),o=n(3283),i=n(3142),a=n(9632),s=n(5387),l=n(6040);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(p,u)&&(i(e)||o(e))}},3417(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},5813(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},3305(e,t,n){var r=n(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},9361(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112(e,t,n){var r=n(4497),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},5276(e,t,n){var r=n(4497),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},7452(e,t,n){var r=n(4497);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},7350(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},424(e,t,n){var r=n(8898),o=n(2480),i=n(8340),a=n(8069),s=n(2264);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},5964(e,t,n){var r=n(9747),o=n(4784),i=n(4882);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},714(e,t,n){var r=n(5650),o=n(3283),i=n(3142),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},9632(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},4535(e,t,n){var r=n(6285),o=n(6529),i=n(9632),a=n(1580);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5187(e,t,n){var r=n(3142),o=n(1187),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},9067(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759(e,t,n){var r,o=n(1950),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4882(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7267(e,t,n){var r=n(1580);e.exports=function(e){return e==e&&!r(e)}},2393(e){e.exports=function(){this.__data__=[],this.size=0}},2049(e,t,n){var r=n(7034),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},7144(e,t,n){var r=n(7034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},5071(e,t,n){var r=n(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964(e,t,n){var r=n(7034);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},9753(e,t,n){var r=n(5098),o=n(1386),i=n(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},5681(e,t,n){var r=n(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},88(e,t,n){var r=n(4700);e.exports=function(e){return r(this,e).get(e)}},4732(e,t,n){var r=n(4700);e.exports=function(e){return r(this,e).has(e)}},9068(e,t,n){var r=n(4700);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},5894(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},3904(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},6853(e,t,n){var r=n(9011);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},4497(e,t,n){var r=n(4715)(Object,"create");e.exports=r},8121(e,t,n){var r=n(3766)(Object.keys,Object);e.exports=r},8546(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},2306(e,t,n){e=n.nmd(e);var r=n(4967),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9005(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766(e){e.exports=function(e,t){return function(n){return e(t(n))}}},5234(e,t,n){var r=n(6912),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},3398(e,t,n){var r=n(7923),o=n(3501);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},8942(e,t,n){var r=n(4967),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1877(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006(e){e.exports=function(e){return this.__data__.has(e)}},9828(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},1156(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}},796(e,t,n){var r=n(7403),o=n(3316)(r);e.exports=o},3316(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},4103(e,t,n){var r=n(1386);e.exports=function(){this.__data__=new r,this.size=0}},1779(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4162(e){e.exports=function(e){return this.__data__.get(e)}},7462(e){e.exports=function(e){return this.__data__.has(e)}},6638(e,t,n){var r=n(1386),o=n(9770),i=n(8250);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},1090(e,t,n){var r=n(906),o=n(3417),i=n(4962);e.exports=function(e){return o(e)?i(e):r(e)}},2237(e,t,n){var r=n(2837),o=n(3417),i=n(2013);e.exports=function(e){return o(e)?i(e):r(e)}},6493(e,t,n){var r=n(6853),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},6040(e,t,n){var r=n(1187);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},4066(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2945(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},4962(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",u=c+l+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*",d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){for(var t=p.lastIndex=0;p.test(e);)++t;return t}},2013(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",u=c+l+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*",d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(p)||[]}},482(e){var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",s="\\d+",l="["+n+"]",c="["+r+"]",u="[^"+t+i+s+n+r+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+o+"]",f="(?:"+c+"|"+u+")",g="(?:"+h+"|"+u+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",A="[\\ufe0e\\ufe0f]?",w=A+y+"(?:\\u200d(?:"+["[^"+t+"]",d,p].join("|")+")"+A+y+")*",b="(?:"+[l,d,p].join("|")+")"+w,_=RegExp([h+"?"+c+"+"+m+"(?="+[a,h,"$"].join("|")+")",g+"+"+v+"(?="+[a,h+f,"$"].join("|")+")",h+"?"+f+"+"+m,h+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,b].join("|"),"g");e.exports=function(e){return e.match(_)||[]}},9677(e,t,n){var r=n(6005),o=n(3640)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=o},6005(e,t,n){var r=n(5243),o=n(5485);e.exports=function(e){return o(r(e).toLowerCase())}},6108(e,t,n){var r=n(9334);e.exports=function(e){return r(e,5)}},2619(e){e.exports=function(e){return function(){return e}}},2784(e,t,n){var r=n(1580),o=n(4495),i=n(6131),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,h,f=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function A(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-f>=u}function w(){var e=o();if(A(e))return b(e);p=setTimeout(w,function(e){var n=t-(e-h);return m?s(n,u-(e-f)):n}(e))}function b(e){return p=void 0,v&&l?y(e):(l=c=void 0,d)}function _(){var e=o(),n=A(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return function(e){return f=e,p=setTimeout(w,t),g?y(e):d}(h);if(m)return clearTimeout(p),p=setTimeout(w,t),y(h)}return void 0===p&&(p=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=c=p=void 0},_.flush=function(){return void 0===p?d:b(o())},_}},5881(e,t,n){var r=n(9968),o=n(5243),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},6527(e,t,n){e.exports=n(2549)},6285(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},7581(e,t,n){var r=n(9847),o=n(4661),i=n(3334),a=n(3142);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},1936(e,t,n){var r=n(7317)(n(2154));e.exports=r},2154(e,t,n){var r=n(7250),o=n(3334),i=n(7642),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},5857(e,t,n){var r=n(313);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},6123(e,t,n){var r=n(7923);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},7276(e,t,n){var r=n(3636),o=n(5899);e.exports=function(e,t){return null!=e&&o(e,t,r)}},2053(e){e.exports=function(e){return e}},3283(e,t,n){var r=n(6027),o=n(547),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},3142(e){var t=Array.isArray;e.exports=t},6529(e,t,n){var r=n(3655),o=n(5387);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},5853(e,t,n){e=n.nmd(e);var r=n(8942),o=n(4772),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},6343(e,t,n){var r=n(4687);e.exports=function(e,t){return r(e,t)}},575(e,t,n){var r=n(4687);e.exports=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?r(e,t,void 0,n):!!o}},3655(e,t,n){var r=n(7379),o=n(1580);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7681(e,t,n){var r=n(777),o=n(9460),i=n(2306),a=i&&i.isMap,s=a?o(a):r;e.exports=s},1580(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8360(e,t,n){var r=n(7379),o=n(4784),i=n(547),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},3943(e,t,n){var r=n(1935),o=n(9460),i=n(2306),a=i&&i.isSet,s=a?o(a):r;e.exports=s},1187(e,t,n){var r=n(7379),o=n(547);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},8666(e,t,n){var r=n(674),o=n(9460),i=n(2306),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},1211(e,t,n){var r=n(358),o=n(195),i=n(6529);e.exports=function(e){return i(e)?r(e):o(e)}},5288(e,t,n){var r=n(358),o=n(7200),i=n(6529);e.exports=function(e){return i(e)?r(e,!0):o(e)}},8087(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},105(e,t,n){var r=n(5111),o=n(3334),i=n(1393),a=n(3142);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},9011(e,t,n){var r=n(8250);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},4495(e,t,n){var r=n(8942);e.exports=function(){return r.Date.now()}},3326(e,t,n){var r=n(5111),o=n(9334),i=n(1586),a=n(3526),s=n(9032),l=n(9259),c=n(1439),u=n(3650),d=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,function(t){return t=a(t,e),c||(c=t.length>1),t}),s(e,u(e),n),c&&(n=o(n,7,l));for(var d=t.length;d--;)i(n,t[d]);return n});e.exports=d},6622(e,t,n){var r=n(310),o=n(3142);e.exports=function(e,t,n,i){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(n=i?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},156(e,t,n){var r=n(9929),o=n(1090),i=n(7642),a=n(5243);e.exports=function(e,t,n){e=a(e);var s=(t=i(t))?o(e):0;return t&&s<t?r(t-s,n)+e:e}},3282(e,t,n){var r=n(2762),o=n(8880),i=n(5187),a=n(6040);e.exports=function(e){return i(e)?r(a(e)):o(e)}},3758(e,t,n){var r=n(165)();e.exports=r},769(e,t,n){var r=n(4187),o=n(4570),i=n(3334),a=n(1961),s=n(3142);e.exports=function(e,t,n){var l=s(e)?r:a,c=arguments.length<3;return l(e,i(t,4),n,c,o)}},1263(e,t,n){var r=n(7655);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},9306(e){e.exports=function(){return[]}},4772(e){e.exports=function(){return!1}},7331(e,t,n){var r=n(2784),o=n(1580);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},3301(e,t,n){var r=n(6131),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},7642(e,t,n){var r=n(3301);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},6131(e,t,n){var r=n(6403),o=n(1580),i=n(1187),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},2549(e,t,n){var r=n(9458)(n(1211));e.exports=r},5243(e,t,n){var r=n(2291);e.exports=function(e){return null==e?"":r(e)}},5485(e,t,n){var r=n(4326)("toUpperCase");e.exports=r},9850(e,t,n){var r=n(9546),o=n(5813),i=n(5243),a=n(482);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},1055(e,t,n){"use strict";const r=n(9722),o={VERSION:"1.0.0"};[r,n(4317),n(366),n(3633)].reduce(r.assign,o),e.exports=o},366(e,t,n){"use strict";const r=n(4317),o=e.exports;class i{constructor(){this.lazy=[]}valueOf(){return this.val()}val(){return this.lazy[this.method](function(e){return e[0].apply(null,e[1])})}}class a extends i{constructor(){super(),this.method="every"}}class s extends i{constructor(){super(),this.method="some"}}[a,s].forEach(function(e){Object.keys(r).reduce(function(e,t){return r.fn(r[t])?(e[t]=function(){return this.lazy.push([r[t],arguments]),this},e):e},e.prototype)}),o.all=o.every=function(){return new a},o.any=o.some=function(){return new s}},3633(e,t,n){"use strict";const r=n(4317),o=n(9722),i=e.exports;i.ternary=function(e,t,n){return r.bool(e)?e?t:n:r.undef(t)?o.partial(i.ternary,e):r.undef(n)?o.partial(i.ternary,e,t):i.ternary(e(t,n),t,n)};const a=Array.prototype.every,s=Array.prototype.some;i.and=function(){const e=arguments;return function(t){return a.call(e,function(e){return e(t)})}},i.or=function(){const e=arguments;return function(t){return s.call(e,function(e){return e(t)})}}},4317(e,t,n){"use strict";const r=n(9722),o=e.exports,i=r.curry;Object.is?o.is=i(Object.is):o.is=i(function(e,t){return 0===e&&0===t?1/e==1/t:e!=e?t!=t:e===t}),o.exists=function(e){return null!=e},o.truthy=function(e){return!(!e||!o.exists(e))},o.falsey=r.complement(o.truthy),o.equal=i(function(e,t){return e===t}),o.eq=i(function(e,t){return e==t}),o.null=o.equal(null),o.undef=o.equal(void 0),o.lt=o.less=i(function(e,t){return e<t}),o.ltEq=o.le=o.lessEq=i(function(e,t){return o.equal(e,t)||o.less(e,t)}),o.gt=o.greater=i(function(e,t){return e>t}),o.gtEq=o.ge=o.greaterEq=i(function(e,t){return o.equal(e,t)||o.greater(e,t)});const a=Object.prototype.toString,s=i(function(e,t){return o.equal(e,a.call(t))});o.object=o.obj=function(e){return e===Object(e)},o.array=o.arr=Array.isArray||s("[object Array]"),o.date=s("[object Date]"),o.regex=o.regexp=o.rgx=o.RegExp=s("[object RegExp]"),o.finite=Number.isFinite||function(e){return o.number(e)&&isFinite(e)},o.nan=o.NaN=o.is(NaN),o.instance=i(function(e,t){return t instanceof e}),o.arguments=s("[object Arguments]"),o.error=o.instance(Error);const l=i(function(e,t){return o.equal(e,typeof t)});[["function","fn"],["string","str"],["boolean","bool"]].reduce(function(e,t){return e[t[0]]=e[t[1]]=l(t[0]),e},o),o.number=o.num=function(e){return"number"==typeof e&&o.not.NaN(e)},o.int=function(e){return o.num(e)&&o.zero(r.mod(e,1))},o.pos=function(e){return o.num(e)&&o.greater(e,0)},o.neg=function(e){return o.num(e)&&o.less(e,0)},o.zero=function(e){return o.num(e)&&o.equal(e,0)},o.even=function(e){return o.num(e)&&o.not.zero(e)&&o.zero(r.mod(e,2))},o.odd=function(e){return o.num(e)&&o.not.zero(e)&&o.not.zero(r.mod(e,2))},o.contains=o.includes=i(function(e,t){if(!o.array(e)&&!o.string(e))throw new TypeError("Expected an array or string");return!(o.string(e)&&!o.string(t))&&(o.NaN(t)?e.some(o.NaN):!!~e.indexOf(t))});const c=Object.prototype.hasOwnProperty;o.has=i(function(e,t){return c.call(e,t)}),o.empty=function(e){if(o.not.exists(e))return!0;if(o.arr(e)||o.str(e))return!e.length;if(o.obj(e)){for(let t in e)if(o.has(e,t))return!1;return!0}throw new TypeError},o.primitive=function(e){return o.string(e)||o.num(e)||o.bool(e)||o.null(e)||o.undef(e)||o.NaN(e)},o.matches=i(function(e,t){return e.test(t)}),o.not=Object.keys(o).reduce(function(e,t){return e[t]=r.complement(o[t]),e},{})},9722(e){"use strict";const t=e.exports,n=Array.prototype.slice,r=function(e,t){return e.toString=()=>t.toString(),e.src=t,e},o=t.curry=function(e){return r(function(t,n){switch(arguments.length){case 0:throw new TypeError("Function called with no arguments");case 1:return r(function(n){return e(t,n)},e)}return e(t,n)},e)};t.partial=function(e){const t=n.call(arguments,1);return function(){return e.apply(null,t.concat(n.call(arguments)))}},t.complement=t.invert=function(e){return function(){const n=e.apply(null,arguments);return"function"==typeof n?t.complement(n):!n}},t.mod=o(function(e,t){return e%t}),t.assign=o(Object.assign||function(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e})},6999(e,t,n){"use strict";var r=n(6848);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},1448(e,t,n){e.exports=n(6999)()},6848(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1442(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),t.default=void 0;var r=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,r,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(n=t){if(n.has(e))return n.get(e);n.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?n(o,t,r):o[t]=e[t]);return o}(e)}(n(9155)),o=p(n(1448)),i=p(n(9514)),a=n(1954),s=n(1154),l=n(9951),c=n(7201),u=p(n(3605)),d=p(n(8013));function p(e){return e&&e.__esModule?e:{default:e}}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends r.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),f(this,"onDragStart",(e,t)=>{if((0,d.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),f(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)}),f(this,"onDragStop",(e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,d.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??i.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:n,defaultPosition:o,defaultClassName:i,defaultClassNameDragging:c,defaultClassNameDragged:d,position:p,positionOffset:f,scale:g,...m}=this.props;let v={},y=null;const A=!Boolean(p)||this.state.dragging,w=p||o,b={x:(0,l.canDragX)(this)&&A?this.state.x:w.x,y:(0,l.canDragY)(this)&&A?this.state.y:w.y};this.state.isElementSVG?y=(0,s.createSVGTransform)(b,f):v=(0,s.createCSSTransform)(b,f);const _=(0,a.clsx)(n.props.className||"",i,{[c]:this.state.dragging,[d]:this.state.dragged});return r.createElement(u.default,h({},m,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:_,style:{...n.props.style,...v},transform:y}))}}t.default=g,f(g,"displayName","Draggable"),f(g,"propTypes",{...u.default.propTypes,axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),f(g,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},3605(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,r,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(n=t){if(n.has(e))return n.get(e);n.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?n(o,t,r):o[t]=e[t]);return o}(e)}(n(9155)),o=u(n(1448)),i=u(n(9514)),a=n(1154),s=n(9951),l=n(7201),c=u(n(8013));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={start:"touchstart",move:"touchmove",stop:"touchend"},h={start:"mousedown",move:"mousemove",stop:"mouseup"};let f=h;class g extends r.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,a.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,a.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const r=(0,a.getTouchIdentifier)(e);this.touchIdentifier=r;const o=(0,s.getControlPosition)(e,r,this);if(null==o)return;const{x:i,y:l}=o,u=(0,s.createCoreData)(this,i,l);(0,c.default)("DraggableCore: handleDragStart: %j",u),(0,c.default)("calling",this.props.onStart),!1!==this.props.onStart(e,u)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(n),this.dragging=!0,this.lastX=i,this.lastY=l,(0,a.addEvent)(n,f.move,this.handleDrag),(0,a.addEvent)(n,f.stop,this.handleDragStop))}),d(this,"handleDrag",e=>{const t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,s.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,s.createCoreData)(this,n,r);if((0,c.default)("DraggableCore: handleDrag: %j",o),!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}}),d(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,s.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const o=(0,s.createCoreData)(this,n,r);if(!1===this.props.onStop(e,o)||!1===this.mounted)return!1;const i=this.findDOMNode();i&&this.props.enableUserSelectHack&&(0,a.scheduleRemoveUserSelectStyles)(i.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,i&&((0,c.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(i.ownerDocument,f.move,this.handleDrag),(0,a.removeEvent)(i.ownerDocument,f.stop,this.handleDragStop))}),d(this,"onMouseDown",e=>(f=h,this.handleDragStart(e))),d(this,"onMouseUp",e=>(f=h,this.handleDragStop(e))),d(this,"onTouchStart",e=>(f=p,this.handleDragStart(e))),d(this,"onTouchEnd",e=>(f=p,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,a.addEvent)(e,p.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,a.removeEvent)(t,h.move,this.handleDrag),(0,a.removeEvent)(t,p.move,this.handleDrag),(0,a.removeEvent)(t,h.stop,this.handleDragStop),(0,a.removeEvent)(t,p.stop,this.handleDragStop),(0,a.removeEvent)(e,p.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:i.default.findDOMNode(this)}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=g,d(g,"displayName","DraggableCore"),d(g,"propTypes",{allowAnyClick:o.default.bool,allowMobileScroll:o.default.bool,children:o.default.node.isRequired,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),d(g,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},9463(e,t,n){"use strict";const{default:r,DraggableCore:o}=n(1442);e.exports=r,e.exports.default=r,e.exports.DraggableCore=o},1154(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=c,t.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&c(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){const n=s(e,t,"px");return{[(0,o.browserPrefixToKey)("transform",o.default)]:n}},t.createSVGTransform=function(e,t){return s(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,r.findInArray)(e.targetTouches,e=>t===e.identifier)||e.changedTouches&&(0,r.findInArray)(e.changedTouches,e=>t===e.identifier)},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.getTranslation=s,t.innerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingTop),t-=(0,r.int)(n.paddingBottom),t},t.innerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingLeft),t-=(0,r.int)(n.paddingRight),t},t.matchesSelector=a,t.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(a(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},t.outerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderTopWidth),t+=(0,r.int)(n.borderBottomWidth),t},t.outerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderLeftWidth),t+=(0,r.int)(n.borderRightWidth),t},t.removeClassName=u,t.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{l(e)}):l(e)};var r=n(7201),o=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,r,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(n=t){if(n.has(e))return n.get(e);n.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?n(o,t,r):o[t]=e[t]);return o}(e)}(n(5615));let i="";function a(e,t){return i||(i=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,r.isFunction)(e[t])})),!!(0,r.isFunction)(e[i])&&e[i](t)}function s(e,t,n){let{x:r,y:o}=e,i=`translate(${r}${n},${o}${n})`;return t&&(i=`translate(${"string"==typeof t.x?t.x:t.x+n}, ${"string"==typeof t.y?t.y:t.y+n})`+i),i}function l(e){if(e)try{if(e.body&&u(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function c(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function u(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}},5615(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},t.default=void 0,t.getPrefix=r;const n=["Moz","Webkit","O","ms"];function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const t=window.document?.documentElement?.style;if(!t)return"";if(e in t)return"";for(let r=0;r<n.length;r++)if(o(e,n[r])in t)return n[r];return""}function o(e,t){return t?`${t}${function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)}`:e}t.default=r()},8013(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},9951(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,n){const o=!(0,r.isNum)(e.lastX),a=i(e);return o?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}},t.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const s=i(e);if("string"==typeof a){const{ownerDocument:e}=s,t=e.defaultView;let n;if(n="parent"===a?s.parentNode:s.getRootNode().querySelector(a),!(n instanceof t.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const i=n,l=t.getComputedStyle(s),c=t.getComputedStyle(i);a={left:-s.offsetLeft+(0,r.int)(c.paddingLeft)+(0,r.int)(l.marginLeft),top:-s.offsetTop+(0,r.int)(c.paddingTop)+(0,r.int)(l.marginTop),right:(0,o.innerWidth)(i)-(0,o.outerWidth)(s)-s.offsetLeft+(0,r.int)(c.paddingRight)-(0,r.int)(l.marginRight),bottom:(0,o.innerHeight)(i)-(0,o.outerHeight)(s)-s.offsetTop+(0,r.int)(c.paddingBottom)-(0,r.int)(l.marginBottom)}}return(0,r.isNum)(a.right)&&(t=Math.min(t,a.right)),(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom)),(0,r.isNum)(a.left)&&(t=Math.max(t,a.left)),(0,r.isNum)(a.top)&&(n=Math.max(n,a.top)),[t,n]},t.getControlPosition=function(e,t,n){const r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;const a=i(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,s,n.props.scale)},t.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var r=n(7201),o=n(1154);function i(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},7201(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},t.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},1954(e){function t(e){var n,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(r=t(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function n(){for(var e,n,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(n=t(e))&&(o&&(o+=" "),o+=n);return o}e.exports=n,e.exports.clsx=n},146(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(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,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,c="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 "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\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=r,t.componentWillReceiveProps=o),"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 u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1783(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(9155),a=f(i),s=f(n(9514)),l=f(n(1448)),c=f(n(8305)),u=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(3977)),d=n(5907),p=f(d),h=n(146);function f(e){return e&&e.__esModule?e:{default:e}}function g(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 m=t.portalClassName="ReactModalPortal",v=t.bodyOpenClassName="ReactModal__Body--open",y=d.canUseDOM&&void 0!==s.default.createPortal,A=function(e){return document.createElement(e)},w=function(){return y?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function b(e){return e()}var _=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,l=Array(i),u=0;u<i;u++)l[u]=arguments[u];return n=o=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.removePortal=function(){!y&&s.default.unmountComponentAtNode(o.node);var e=b(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.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.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=w()(o,a.default.createElement(c.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},g(o,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),o(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(y||(this.node=A("div")),this.node.className=this.props.portalClassName,b(this.props.parentSelector).appendChild(this.node),!y&&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(d.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;e.portalClassName!==i&&(this.node.className=i);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!y&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.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 d.canUseDOM&&y?(!this.node&&y&&(this.node=A("div")),w()(a.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(i.Component);_.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(p.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(p.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},_.defaultProps={isOpen:!1,portalClassName:m,bodyOpenClassName:v,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 a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},_.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)(_),t.default=_},8305(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(9155),s=m(n(1448)),l=g(n(9016)),c=m(n(6380)),u=g(n(3977)),d=g(n(5219)),p=n(5907),h=m(p),f=m(n(8709));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(6824);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,A=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,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;i&&d.remove(s.body,i),o&&d.remove(s.getElementsByTagName("html")[0],o),r&&y>0&&0==(y-=1)&&u.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){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(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 r="object"===(void 0===t?"undefined":o(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},i=r.base;return n.state.afterOpen&&(i=i+" "+r.afterOpen),n.state.beforeClose&&(i=i+" "+r.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],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,r=e.htmlOpenClassName,o=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;o&&d.add(a.body,o),r&&d.add(a.getElementsByTagName("html")[0],r),n&&(y+=1,u.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,i=e.defaultStyles,a=e.children,s=n?{}:i.content,l=o?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=r({id:t,ref:this.setContentRef,style:r({},s,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",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(a.Component);A.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},A.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=A,e.exports=t.default},3977(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(){},t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t=n}return a=t||a},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=l(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=l(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){a=null};var r,o=(r=n(4674))&&r.__esModule?r:{default:r},i=n(5907),a=null;function s(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.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(" ")),[])}},6824(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,a],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}i=a=null,s=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(s.length);for(var e=[i,a],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=(r=n(8709))&&r.__esModule?r:{default:r},i=void 0,a=void 0,s=[];function l(){0!==s.length&&s[s.length-1].focusContent()}o.default.subscribe(function(e,t){i||a||((i=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),i.style.position="absolute",i.style.opacity="0",i.setAttribute("tabindex","0"),i.addEventListener("focus",l),(a=i.cloneNode()).addEventListener("focus",l)),(s=t).length>0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(i.parentElement&&i.parentElement.removeChild(i),a.parentElement&&a.parentElement.removeChild(a))})},5219(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var i=document.body;for(var a in r)o(i,r[a]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,i="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),o.add(e)});var o,i},t.remove=function(e,t){return o=e.classList,i="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&o.remove(e)});var o,i}},9016(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var r,o=(r=n(3884))&&r.__esModule?r:{default:r},i=[],a=null,s=!1;function l(){s=!0}function c(){if(s){if(s=!1,!a)return;setTimeout(function(){a.contains(document.activeElement)||((0,o.default)(a)[0]||a).focus()},0)}}},8709(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=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=[]},r=new n;t.default=r},5907(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(3842))&&r.__esModule?r:{default:r}).default,i=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=i},6380(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],c=i();if(e===c){if(!a)return;r=l}if(l!==c||a||(r=s),s===c&&a&&(r=l),r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=a?-1:1),void 0===(r=n[d]))return t.preventDefault(),void(r=a?l:s).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(3884))&&r.__esModule?r:{default:r};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},3884(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]).filter(o)};var n=/input|select|textarea|button|object|iframe/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),r=n.getPropertyValue("display");return t?"contents"!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,n):"none"===r}catch(e){return console.warn("Failed to inspect element style"),!1}}function o(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var o=isNaN(t);return(o||t>=0)&&function(e,t){var o=e.nodeName.toLowerCase();return(n.test(o)&&!e.disabled||"a"===o&&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),r(t))return!1;t=t.parentNode}return!0}(e)}(e,!o)}e.exports=t.default},373(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(1783))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},8690(e,t,n){"use strict";n.r(t),n.d(t,{AbortedDeferredError:()=>o.tH,Await:()=>ie,MemoryRouter:()=>J,Navigate:()=>ee,NavigationType:()=>o.rc,Outlet:()=>te,Route:()=>ne,Router:()=>re,RouterProvider:()=>X,Routes:()=>oe,UNSAFE_DataRouterContext:()=>a,UNSAFE_DataRouterStateContext:()=>s,UNSAFE_LocationContext:()=>u,UNSAFE_NavigationContext:()=>c,UNSAFE_RouteContext:()=>d,UNSAFE_logV6DeprecationWarnings:()=>q,UNSAFE_mapRouteProperties:()=>pe,UNSAFE_useRouteId:()=>L,UNSAFE_useRoutesImpl:()=>O,createMemoryRouter:()=>he,createPath:()=>o.AO,createRoutesFromChildren:()=>ue,createRoutesFromElements:()=>ue,defer:()=>o.v6,generatePath:()=>o.tW,isRouteErrorResponse:()=>o.pX,json:()=>o.Pq,matchPath:()=>o.B6,matchRoutes:()=>o.ue,parsePath:()=>o.Rr,redirect:()=>o.V2,redirectDocument:()=>o.Sk,renderMatches:()=>de,replace:()=>o.HC,resolvePath:()=>o.o1,useActionData:()=>H,useAsyncError:()=>z,useAsyncValue:()=>W,useBlocker:()=>K,useHref:()=>h,useInRouterContext:()=>f,useLoaderData:()=>U,useLocation:()=>g,useMatch:()=>v,useMatches:()=>j,useNavigate:()=>A,useNavigation:()=>B,useNavigationType:()=>m,useOutlet:()=>_,useOutletContext:()=>b,useParams:()=>C,useResolvedPath:()=>E,useRevalidator:()=>N,useRouteError:()=>G,useRouteLoaderData:()=>V,useRoutes:()=>S});var r=n(9155),o=n(1613);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const a=r.createContext(null),s=r.createContext(null),l=r.createContext(null),c=r.createContext(null),u=r.createContext(null),d=r.createContext({outlet:null,matches:[],isDataRoute:!1}),p=r.createContext(null);function h(e,t){let{relative:n}=void 0===t?{}:t;f()||(0,o.Oi)(!1);let{basename:i,navigator:a}=r.useContext(c),{hash:s,pathname:l,search:u}=E(e,{relative:n}),d=l;return"/"!==i&&(d="/"===l?i:(0,o.HS)([i,l])),a.createHref({pathname:d,search:u,hash:s})}function f(){return null!=r.useContext(u)}function g(){return f()||(0,o.Oi)(!1),r.useContext(u).location}function m(){return r.useContext(u).navigationType}function v(e){f()||(0,o.Oi)(!1);let{pathname:t}=g();return r.useMemo(()=>(0,o.B6)(e,(0,o.RO)(t)),[t,e])}function y(e){r.useContext(c).static||r.useLayoutEffect(e)}function A(){let{isDataRoute:e}=r.useContext(d);return e?function(){let{router:e}=I(T.UseNavigateStable),t=k(R.UseNavigateStable),n=r.useRef(!1);return y(()=>{n.current=!0}),r.useCallback(function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,i({fromRouteId:t},o)))},[e,t])}():function(){f()||(0,o.Oi)(!1);let e=r.useContext(a),{basename:t,future:n,navigator:i}=r.useContext(c),{matches:s}=r.useContext(d),{pathname:l}=g(),u=JSON.stringify((0,o.yD)(s,n.v7_relativeSplatPath)),p=r.useRef(!1);return y(()=>{p.current=!0}),r.useCallback(function(n,r){if(void 0===r&&(r={}),!p.current)return;if("number"==typeof n)return void i.go(n);let a=(0,o.Gh)(n,JSON.parse(u),l,"path"===r.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,o.HS)([t,a.pathname])),(r.replace?i.replace:i.push)(a,r.state,r)},[t,i,u,l,e])}()}const w=r.createContext(null);function b(){return r.useContext(w)}function _(e){let t=r.useContext(d).outlet;return t?r.createElement(w.Provider,{value:e},t):t}function C(){let{matches:e}=r.useContext(d),t=e[e.length-1];return t?t.params:{}}function E(e,t){let{relative:n}=void 0===t?{}:t,{future:i}=r.useContext(c),{matches:a}=r.useContext(d),{pathname:s}=g(),l=JSON.stringify((0,o.yD)(a,i.v7_relativeSplatPath));return r.useMemo(()=>(0,o.Gh)(e,JSON.parse(l),s,"path"===n),[e,l,s,n])}function S(e,t){return O(e,t)}function O(e,t,n,a){f()||(0,o.Oi)(!1);let{navigator:s}=r.useContext(c),{matches:l}=r.useContext(d),p=l[l.length-1],h=p?p.params:{},m=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let v,y=g();if(t){var A;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===m||(null==(A=e.pathname)?void 0:A.startsWith(m))||(0,o.Oi)(!1),v=e}else v=y;let w=v.pathname||"/",b=w;if("/"!==m){let e=m.replace(/^\//,"").split("/");b="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let _=(0,o.ue)(e,{pathname:b}),C=M(_&&_.map(e=>Object.assign({},e,{params:Object.assign({},h,e.params),pathname:(0,o.HS)([m,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:(0,o.HS)([m,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),l,n,a);return t&&C?r.createElement(u.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:o.rc.Pop}},C):C}const x=r.createElement(function(){let e=G(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},n):null,null)},null);class D extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(d.Provider,{value:this.props.routeContext},r.createElement(p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function P(e){let{routeContext:t,match:n,children:o}=e,i=r.useContext(a);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(d.Provider,{value:t},o)}function M(e,t,n,i){var a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==e){var s;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(s=i)&&s.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let l=e,c=null==(a=n)?void 0:a.errors;if(null!=c){let e=l.findIndex(e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id]));e>=0||(0,o.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(n&&i&&i.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){u=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight((e,o,i)=>{let a,s=!1,p=null,h=null;n&&(a=c&&o.route.id?c[o.route.id]:void 0,p=o.route.errorElement||x,u&&(d<0&&0===i?(Q["route-fallback"]||(Q["route-fallback"]=!0),s=!0,h=null):d===i&&(s=!0,h=o.route.hydrateFallbackElement||null)));let f=t.concat(l.slice(0,i+1)),g=()=>{let t;return t=a?p:s?h:o.route.Component?r.createElement(o.route.Component,null):o.route.element?o.route.element:e,r.createElement(P,{match:o,routeContext:{outlet:e,matches:f,isDataRoute:null!=n},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?r.createElement(D,{location:n.location,revalidation:n.revalidation,component:p,error:a,children:g(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):g()},null)}var T=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(T||{}),R=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(R||{});function I(e){let t=r.useContext(a);return t||(0,o.Oi)(!1),t}function F(e){let t=r.useContext(s);return t||(0,o.Oi)(!1),t}function k(e){let t=function(){let e=r.useContext(d);return e||(0,o.Oi)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,o.Oi)(!1),n.route.id}function L(){return k(R.UseRouteId)}function B(){return F(R.UseNavigation).navigation}function N(){let e=I(T.UseRevalidator),t=F(R.UseRevalidator);return r.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function j(){let{matches:e,loaderData:t}=F(R.UseMatches);return r.useMemo(()=>e.map(e=>(0,o.ro)(e,t)),[e,t])}function U(){let e=F(R.UseLoaderData),t=k(R.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")}function V(e){return F(R.UseRouteLoaderData).loaderData[e]}function H(){let e=F(R.UseActionData),t=k(R.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function G(){var e;let t=r.useContext(p),n=F(R.UseRouteError),o=k(R.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[o]}function W(){let e=r.useContext(l);return null==e?void 0:e._data}function z(){let e=r.useContext(l);return null==e?void 0:e._error}let $=0;function K(e){let{router:t,basename:n}=I(T.UseBlocker),a=F(R.UseBlocker),[s,l]=r.useState(""),c=r.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:a,historyAction:s}=t;return e({currentLocation:i({},r,{pathname:(0,o.pb)(r.pathname,n)||r.pathname}),nextLocation:i({},a,{pathname:(0,o.pb)(a.pathname,n)||a.pathname}),historyAction:s})},[n,e]);return r.useEffect(()=>{let e=String(++$);return l(e),()=>t.deleteBlocker(e)},[t]),r.useEffect(()=>{""!==s&&t.getBlocker(s,c)},[t,s,c]),s&&a.blockers.has(s)?a.blockers.get(s):o.G3}const Q={};function q(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}const Y=r.startTransition;function X(e){let{fallbackElement:t,router:n,future:o}=e,[i,l]=r.useState(n.state),{v7_startTransition:c}=o||{},u=r.useCallback(e=>{c&&Y?Y(()=>l(e)):l(e)},[l,c]);r.useLayoutEffect(()=>n.subscribe(u),[n,u]),r.useEffect(()=>{},[]);let d=r.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})}),[n]),p=n.basename||"/",h=r.useMemo(()=>({router:n,navigator:d,static:!1,basename:p}),[n,d,p]);return r.useEffect(()=>q(o,n.future),[n,o]),r.createElement(r.Fragment,null,r.createElement(a.Provider,{value:h},r.createElement(s.Provider,{value:i},r.createElement(re,{basename:p,location:i.location,navigationType:i.historyAction,navigator:d,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?r.createElement(Z,{routes:n.routes,future:n.future,state:i}):t))),null)}function Z(e){let{routes:t,future:n,state:r}=e;return O(t,void 0,r,n)}function J(e){let{basename:t,children:n,initialEntries:i,initialIndex:a,future:s}=e,l=r.useRef();null==l.current&&(l.current=(0,o.sC)({initialEntries:i,initialIndex:a,v5Compat:!0}));let c=l.current,[u,d]=r.useState({action:c.action,location:c.location}),{v7_startTransition:p}=s||{},h=r.useCallback(e=>{p&&Y?Y(()=>d(e)):d(e)},[d,p]);return r.useLayoutEffect(()=>c.listen(h),[c,h]),r.useEffect(()=>q(s),[s]),r.createElement(re,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:c,future:s})}function ee(e){let{to:t,replace:n,state:i,relative:a}=e;f()||(0,o.Oi)(!1);let{future:s,static:l}=r.useContext(c),{matches:u}=r.useContext(d),{pathname:p}=g(),h=A(),m=(0,o.Gh)(t,(0,o.yD)(u,s.v7_relativeSplatPath),p,"path"===a),v=JSON.stringify(m);return r.useEffect(()=>h(JSON.parse(v),{replace:n,state:i,relative:a}),[h,v,a,n,i]),null}function te(e){return _(e.context)}function ne(e){(0,o.Oi)(!1)}function re(e){let{basename:t="/",children:n=null,location:a,navigationType:s=o.rc.Pop,navigator:l,static:d=!1,future:p}=e;f()&&(0,o.Oi)(!1);let h=t.replace(/^\/*/,"/"),g=r.useMemo(()=>({basename:h,navigator:l,static:d,future:i({v7_relativeSplatPath:!1},p)}),[h,p,l,d]);"string"==typeof a&&(a=(0,o.Rr)(a));let{pathname:m="/",search:v="",hash:y="",state:A=null,key:w="default"}=a,b=r.useMemo(()=>{let e=(0,o.pb)(m,h);return null==e?null:{location:{pathname:e,search:v,hash:y,state:A,key:w},navigationType:s}},[h,m,v,y,A,w,s]);return null==b?null:r.createElement(c.Provider,{value:g},r.createElement(u.Provider,{children:n,value:b}))}function oe(e){let{children:t,location:n}=e;return S(ue(t),n)}function ie(e){let{children:t,errorElement:n,resolve:o}=e;return r.createElement(le,{resolve:o,errorElement:n},r.createElement(ce,null,t))}var ae=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(ae||{});const se=new Promise(()=>{});class le extends r.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,i=null,a=ae.pending;if(n instanceof Promise)if(this.state.error){a=ae.error;let e=this.state.error;i=Promise.reject().catch(()=>{}),Object.defineProperty(i,"_tracked",{get:()=>!0}),Object.defineProperty(i,"_error",{get:()=>e})}else n._tracked?(i=n,a="_error"in i?ae.error:"_data"in i?ae.success:ae.pending):(a=ae.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),i=n.then(e=>Object.defineProperty(n,"_data",{get:()=>e}),e=>Object.defineProperty(n,"_error",{get:()=>e})));else a=ae.success,i=Promise.resolve(),Object.defineProperty(i,"_tracked",{get:()=>!0}),Object.defineProperty(i,"_data",{get:()=>n});if(a===ae.error&&i._error instanceof o.tH)throw se;if(a===ae.error&&!t)throw i._error;if(a===ae.error)return r.createElement(l.Provider,{value:i,children:t});if(a===ae.success)return r.createElement(l.Provider,{value:i,children:e});throw i}}function ce(e){let{children:t}=e,n=W(),o="function"==typeof t?t(n):t;return r.createElement(r.Fragment,null,o)}function ue(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,(e,i)=>{if(!r.isValidElement(e))return;let a=[...t,i];if(e.type===r.Fragment)return void n.push.apply(n,ue(e.props.children,a));e.type!==ne&&(0,o.Oi)(!1),e.props.index&&e.props.children&&(0,o.Oi)(!1);let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=ue(e.props.children,a)),n.push(s)}),n}function de(e){return M(e)}function pe(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:r.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:r.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:r.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function he(e,t){return(0,o.aE)({basename:null==t?void 0:t.basename,future:i({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,o.sC)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:pe,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}},3335(e,t,n){"use strict";var r=n(9155),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1085(e,t,n){"use strict";e.exports=n(3335)},1591(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryRouter=void 0;var o=r(n(9155)),i=n(8690);t.HistoryRouter=function(e){var t=e.basename,n=e.children,r=e.history,a=o.default.useState({action:r.action,location:r.location}),s=a[0],l=a[1];return o.default.useLayoutEffect(function(){return r.listen(l)},[r]),o.default.createElement(i.Router,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:r})}},9986(e){"use strict";const t={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map(e=>e.trim())},t.splitSections=function(e){return e.split("\nm=").map((e,t)=>(t>0?"m="+e:e).trim()+"\r\n")},t.getDescription=function(e){const n=t.splitSections(e);return n&&n[0]},t.getMediaSections=function(e){const n=t.splitSections(e);return n.shift(),n},t.matchPrefix=function(e,n){return t.splitLines(e).filter(e=>0===e.indexOf(n))},t.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const n={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let e=8;e<t.length;e+=2)switch(t[e]){case"raddr":n.relatedAddress=t[e+1];break;case"rport":n.relatedPort=parseInt(t[e+1],10);break;case"tcptype":n.tcpType=t[e+1];break;case"ufrag":n.ufrag=t[e+1],n.usernameFragment=t[e+1];break;default:void 0===n[t[e]]&&(n[t[e]]=t[e+1])}return n},t.writeCandidate=function(e){const t=[];t.push(e.foundation);const n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);const r=e.type;return t.push("typ"),t.push(r),"host"!==r&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},t.parseIceOptions=function(e){return e.substring(14).split(" ")},t.parseRtpMap=function(e){let t=e.substring(9).split(" ");const n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},t.writeRtpMap=function(e){let t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);const n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},t.parseExtmap=function(e){const t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},t.parseFmtp=function(e){const t={};let n;const r=e.substring(e.indexOf(" ")+1).split(";");for(let e=0;e<r.length;e++)n=r[e].trim().split("="),t[n[0].trim()]=n[1];return t},t.writeFmtp=function(e){let t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){const r=[];Object.keys(e.parameters).forEach(t=>{void 0!==e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)}),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},t.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},t.writeRtcpFb=function(e){let t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},t.parseSsrcMedia=function(e){const t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},t.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(e=>parseInt(e,10))}},t.getMid=function(e){const n=t.matchPrefix(e,"a=mid:")[0];if(n)return n.substring(6)},t.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},t.getDtlsParameters=function(e,n){return{role:"auto",fingerprints:t.matchPrefix(e+n,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){let n="a=setup:"+t+"\r\n";return e.fingerprints.forEach(e=>{n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),n},t.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,n){return t.matchPrefix(e+n,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,n){const r=t.matchPrefix(e+n,"a=ice-ufrag:")[0],o=t.matchPrefix(e+n,"a=ice-pwd:")[0];return r&&o?{usernameFragment:r.substring(12),password:o.substring(10)}:null},t.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},t.parseRtpParameters=function(e){const n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=t.splitLines(e)[0].split(" ");n.profile=r[2];for(let o=3;o<r.length;o++){const i=r[o],a=t.matchPrefix(e,"a=rtpmap:"+i+" ")[0];if(a){const r=t.parseRtpMap(a),o=t.matchPrefix(e,"a=fmtp:"+i+" ");switch(r.parameters=o.length?t.parseFmtp(o[0]):{},r.rtcpFeedback=t.matchPrefix(e,"a=rtcp-fb:"+i+" ").map(t.parseRtcpFb),n.codecs.push(r),r.name.toUpperCase()){case"RED":case"ULPFEC":n.fecMechanisms.push(r.name.toUpperCase())}}}t.matchPrefix(e,"a=extmap:").forEach(e=>{n.headerExtensions.push(t.parseExtmap(e))});const o=t.matchPrefix(e,"a=rtcp-fb:* ").map(t.parseRtcpFb);return n.codecs.forEach(e=>{o.forEach(t=>{e.rtcpFeedback.find(e=>e.type===t.type&&e.parameter===t.parameter)||e.rtcpFeedback.push(t)})}),n},t.writeRtpDescription=function(e,n){let r="";r+="m="+e+" ",r+=n.codecs.length>0?"9":"0",r+=" "+(n.profile||"UDP/TLS/RTP/SAVPF")+" ",r+=n.codecs.map(e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",n.codecs.forEach(e=>{r+=t.writeRtpMap(e),r+=t.writeFmtp(e),r+=t.writeRtcpFb(e)});let o=0;return n.codecs.forEach(e=>{e.maxptime>o&&(o=e.maxptime)}),o>0&&(r+="a=maxptime:"+o+"\r\n"),n.headerExtensions&&n.headerExtensions.forEach(e=>{r+=t.writeExtmap(e)}),r},t.parseRtpEncodingParameters=function(e){const n=[],r=t.parseRtpParameters(e),o=-1!==r.fecMechanisms.indexOf("RED"),i=-1!==r.fecMechanisms.indexOf("ULPFEC"),a=t.matchPrefix(e,"a=ssrc:").map(e=>t.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),s=a.length>0&&a[0].ssrc;let l;const c=t.matchPrefix(e,"a=ssrc-group:FID").map(e=>e.substring(17).split(" ").map(e=>parseInt(e,10)));c.length>0&&c[0].length>1&&c[0][0]===s&&(l=c[0][1]),r.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let t={ssrc:s,codecPayloadType:parseInt(e.parameters.apt,10)};s&&l&&(t.rtx={ssrc:l}),n.push(t),o&&(t=JSON.parse(JSON.stringify(t)),t.fec={ssrc:s,mechanism:i?"red+ulpfec":"red"},n.push(t))}}),0===n.length&&s&&n.push({ssrc:s});let u=t.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substring(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substring(5),10)*.95-16e3:void 0,n.forEach(e=>{e.maxBitrate=u})),n},t.parseRtcpParameters=function(e){const n={},r=t.matchPrefix(e,"a=ssrc:").map(e=>t.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];r&&(n.cname=r.value,n.ssrc=r.ssrc);const o=t.matchPrefix(e,"a=rtcp-rsize");n.reducedSize=o.length>0,n.compound=0===o.length;const i=t.matchPrefix(e,"a=rtcp-mux");return n.mux=i.length>0,n},t.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},t.parseMsid=function(e){let n;const r=t.matchPrefix(e,"a=msid:");if(1===r.length)return n=r[0].substring(7).split(" "),{stream:n[0],track:n[1]};const o=t.matchPrefix(e,"a=ssrc:").map(e=>t.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);return o.length>0?(n=o[0].value.split(" "),{stream:n[0],track:n[1]}):void 0},t.parseSctpDescription=function(e){const n=t.parseMLine(e),r=t.matchPrefix(e,"a=max-message-size:");let o;r.length>0&&(o=parseInt(r[0].substring(19),10)),isNaN(o)&&(o=65536);const i=t.matchPrefix(e,"a=sctp-port:");if(i.length>0)return{port:parseInt(i[0].substring(12),10),protocol:n.fmt,maxMessageSize:o};const a=t.matchPrefix(e,"a=sctpmap:");if(a.length>0){const e=a[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:o}}},t.writeSctpDescription=function(e,t){let n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(e,n,r){let o;const i=void 0!==n?n:2;return o=e||t.generateSessionId(),"v=0\r\no="+(r||"thisisadapterortc")+" "+o+" "+i+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.getDirection=function(e,n){const r=t.splitLines(e);for(let e=0;e<r.length;e++)switch(r[e]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return r[e].substring(2)}return n?t.getDirection(n):"sendrecv"},t.getKind=function(e){return t.splitLines(e)[0].split(" ")[0].substring(2)},t.isRejected=function(e){return"0"===e.split(" ",2)[1]},t.parseMLine=function(e){const n=t.splitLines(e)[0].substring(2).split(" ");return{kind:n[0],port:parseInt(n[1],10),protocol:n[2],fmt:n.slice(3).join(" ")}},t.parseOLine=function(e){const n=t.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:n[0],sessionId:n[1],sessionVersion:parseInt(n[2],10),netType:n[3],addressType:n[4],address:n[5]}},t.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;const n=t.splitLines(e);for(let e=0;e<n.length;e++)if(n[e].length<2||"="!==n[e].charAt(1))return!1;return!0},e.exports=t},3992(e,t,n){"use strict";var r=n(5337),o=n(6750)("selectn"),i=n(8479),a=n(5932),s=Object.prototype.toString;e.exports=r(function(e,t){o("arguments:",{path:e,object:t});for(var n=-1,r="[object Array]"===s.call(e)?e:a(i(e)),l=r.length,c=l?t:void 0;++n<l;){if(Object(c)!==c)return;c=c[r[n]]}return o("ref:",c),"function"==typeof c?c():c})},6750(e,t,n){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(4169)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},4169(e,t,n){var r;function o(e){function n(){if(n.enabled){var e=n,o=+new Date,i=o-(r||o);e.diff=i,e.prev=r,e.curr=o,r=o;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var l=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;l++;var o=t.formatters[r];if("function"==typeof o){var i=a[l];n=o.call(e,i),a.splice(l,1),l--}return n}),t.formatArgs.call(e,a),(n.log||t.log||console.log.bind(console)).apply(e,a)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=o.debug=o.default=o).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,o=0;o<r;o++)n[o]&&("-"===(e=n[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(56),t.names=[],t.skips=[],t.formatters={}},56(e){var t=1e3,n=60*t,r=60*n,o=24*r;function i(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,a){a=a||{};var s,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===l&&!1===isNaN(e))return a.long?i(s=e,o,"day")||i(s,r,"hour")||i(s,n,"minute")||i(s,t,"second")||s+" ms":function(e){return e>=o?Math.round(e/o)+"d":e>=r?Math.round(e/r)+"h":e>=n?Math.round(e/n)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},4047(e,t,n){"use strict";var r=n(9155),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=l(function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==u&&p.hasValue){var t=p.value;if(u(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(i=e,t):(i=e,a=n)}var i,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,u]);var h=i(e,d[0],d[1]);return s(function(){p.hasValue=!0,p.value=h},[h]),c(h),h}},5919(e,t,n){"use strict";e.exports=n(4047)},4674(e){"use strict";e.exports=function(){}},4780(t){"use strict";t.exports=e},8823(e){"use strict";e.exports=t},9427(e){"use strict";e.exports=n},9155(e){"use strict";e.exports=r},9514(e){"use strict";e.exports=o},7941(e,t,n){e.exports=n(2688)},5351(e,t,n){e.exports=n(8608)},1782(e,t,n){e.exports=n(8201)},3373(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}};return s[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);c.r(n);var r={};i=i||[null,a({}),a([]),a(a)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~i.indexOf(o);o=a(o))Object.getOwnPropertyNames(o).forEach(t=>r[t]=()=>e[t]);return r.default=()=>e,c.d(n,r),n},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var u={};return(()=>{"use strict";c.r(u),c.d(u,{ConnectionInitiation:()=>lc,CreateTicketModal:()=>ka,EMPTY_STRING_ARRAY:()=>Sa,GVAMPPActionTypes:()=>E,GVAMPPActions:()=>S,GVAMPPApp:()=>el,GVAMPPAssist:()=>ja,GVAMPPAssistProvider:()=>Ba,GVAMPPManager:()=>Mc,GVAMPPReducers:()=>M,GVActionTypes:()=>G,GVActions:()=>W,GVApp:()=>Xa,GVAppLoggingConfigInterface:()=>Hi,GVAssetSearch:()=>zc,GVConnectionIndicator:()=>Ys,GVFlowDetails:()=>$c,GVFrameCachePreview:()=>Kc,GVLink:()=>ha,GVMixerLayerEditor:()=>pu,GVMochaThumbnail:()=>Su,GVMochaThumbnails:()=>Ou,GVModalContainer:()=>Zi,GVModalService:()=>Le,GVNavLink:()=>fa,GVProfile:()=>Mf,GVRedirect:()=>Za,GVReducers:()=>Ue,GVSchemaForm:()=>Du,GVSourceDropdown:()=>Tf,GVSourceSelectWidget:()=>cs,GVStore:()=>Nn,GVTemplate:()=>Df,GVUILogging:()=>ds,GVUserControls:()=>Di,GVVideoStandardField:()=>qs,GVWebRTC:()=>_c,GVWebRTCActionPrefix:()=>pc,GVWebRTCActionTypes:()=>hc,GVWebRTCActions:()=>fc,GVWebRTCAudioFader:()=>Pc,GVWebRTCReducers:()=>xc,GVWebRTCService:()=>dc,GVWebRTCStandalone:()=>wc,GVWebRTCStatsModal:()=>Dc,GVWebRTCStream:()=>Sc,GVWebRTCStreamStandalone:()=>Ec,MAX_DESCRIPTION_LENGTH:()=>Ea,MAX_SUMMARY_LENGTH:()=>Ca,MIN_SUMMARY_LENGTH:()=>_a,NewFullSDP:()=>ac,NewRemoteCandidate:()=>sc,PRIORITY_OPTIONS:()=>ba,Provider:()=>Dn,ReactReduxContext:()=>Dt,UserMentionTextArea:()=>Ma,VersionCheckerModal:()=>Ta,WebRTCConnectionStates:()=>ic,WebRTCNotificationTypes:()=>oc,applyYawPitchRollToParams:()=>Eu,batch:()=>Fn,buildEnhancedDescription:()=>Pa,compareVersions:()=>Oa,connect:()=>xn,createDispatchHook:()=>Tn,createReduxHistory:()=>kn,createSelectorHook:()=>Ft,createStoreHook:()=>Pn,debug:()=>uu,decomposeQuadToParamsShearXY:()=>eu,extractCitations:()=>Jn,formatDateTimeLocalInput:()=>Da,fromLocalQuad:()=>fu,geometricParamsToCornerPin:()=>Jc,getLocalQuad:()=>hu,getNMOSImage:()=>Xc,getOrbitImage:()=>Yc,getTVUImage:()=>Zc,normalizeGeometricParams:()=>gu,parseDateTimeLocal:()=>xa,platformCallbacks:()=>bc,quadFromParams:()=>tu,quadWarpStyle:()=>cu,readAssistFallbackBody:()=>tr,sanitizeScale:()=>mu,schemaBase:()=>Pf,shallowEqual:()=>un,streamAssistBody:()=>Yn,stripCitations:()=>er,useDispatch:()=>jn,useGVAMPPAssistContext:()=>Na,useSelector:()=>kt,useStore:()=>Mn,withRouter:()=>rr,yawPitchRollFromParams:()=>Cu});var e={};c.r(e),c.d(e,{hasBrowserEnv:()=>_o,hasStandardBrowserEnv:()=>Eo,hasStandardBrowserWebWorkerEnv:()=>So,navigator:()=>Co,origin:()=>Oo});var t={};c.r(t),c.d(t,{fixNegotiationNeeded:()=>El,shimAddTrackRemoveTrack:()=>_l,shimAddTrackRemoveTrackWithNative:()=>bl,shimGetDisplayMedia:()=>gl,shimGetSendersWithDtmf:()=>yl,shimGetStats:()=>Al,shimGetUserMedia:()=>fl,shimMediaStream:()=>ml,shimOnTrack:()=>vl,shimPeerConnection:()=>Cl,shimSenderReceiverGetStats:()=>wl});var n={};c.r(n),c.d(n,{shimAddTransceiver:()=>Il,shimCreateAnswer:()=>Ll,shimCreateOffer:()=>kl,shimGetDisplayMedia:()=>Ol,shimGetParameters:()=>Fl,shimGetUserMedia:()=>Sl,shimOnTrack:()=>xl,shimPeerConnection:()=>Dl,shimRTCDataChannel:()=>Rl,shimReceiverGetStats:()=>Ml,shimRemoveStream:()=>Tl,shimSenderGetStats:()=>Pl});var r={};c.r(r),c.d(r,{shimAudioContext:()=>zl,shimCallbacksAPI:()=>jl,shimConstraints:()=>Vl,shimCreateOfferLegacy:()=>Wl,shimGetUserMedia:()=>Ul,shimLocalStreamsAPI:()=>Bl,shimRTCIceServerUrls:()=>Hl,shimRemoteStreamsAPI:()=>Nl,shimTrackEventTransceiver:()=>Gl});var o={};c.r(o),c.d(o,{removeExtmapAllowMixed:()=>Jl,shimAddIceCandidateNullOrEmpty:()=>ec,shimConnectionState:()=>Zl,shimMaxMessageSize:()=>Yl,shimParameterlessSetLocalDescription:()=>tc,shimRTCIceCandidate:()=>Ql,shimRTCIceCandidateRelayProtocol:()=>ql,shimSendThrowTypeError:()=>Xl});var i=c(1085),a=c(9677),s=c.n(a),l=c(6527),d=c.n(l),p=c(6123),h=c.n(p),f=c(3326),g=c.n(f),m=c(769),v=c.n(m),y=c(9155),A=c.t(y,2),w=c.n(y),b=c(4780),_=c(8823),C=c(9427);const E={GV_NOTIFICATION:"@@gv-ampp-notification",GV_SET_DEFAULT_MAILBOX:"@@gv-ampp-default-mailbox",GV_SET_USER_PROFILE:"@@gv-ampp-set-profile",GV_SET_USER_ACCESSES:"@@gv-ampp-set-accesses",GV_SET_HELP_PREV_LOCATION:"@@gv-ampp-set-help-prev-location",GV_SET_SYSTEM_CONFIG:"@@gv-ampp-set-system-config"},S={notificationAction:([e,t])=>async n=>n({type:`${E.GV_NOTIFICATION}/${e}`,payload:t}),setDefaultMailboxAction:e=>({type:E.GV_SET_DEFAULT_MAILBOX,payload:e}),setUserProfileAction:e=>({type:E.GV_SET_USER_PROFILE,payload:e}),setUserAccessesAction:e=>({type:E.GV_SET_USER_ACCESSES,payload:e}),setSystemConfigAction:e=>({type:E.GV_SET_SYSTEM_CONFIG,payload:e}),setPreviousLocationAction:e=>({type:E.GV_SET_HELP_PREV_LOCATION,payload:e})};var O=c(6108),x=c.n(O),D=c(1263),P=c.n(D);const M=(e={},t)=>{const n=x()(e);switch(t.type){case E.GV_SET_DEFAULT_MAILBOX:return P()(n,["mailbox"],t.payload);case E.GV_SET_USER_PROFILE:return P()(n,["user"],t.payload);case E.GV_SET_USER_ACCESSES:return P()(n,["userAccesses"],t.payload);case E.GV_SET_HELP_PREV_LOCATION:return P()(n,["helpPrevious"],t.payload);case E.GV_SET_SYSTEM_CONFIG:return P()(n,["system"],t.payload);default:return e}},T="@@router/CALL_HISTORY_METHOD",R="@@router/LOCATION_CHANGE",I=(e,t)=>({type:R,payload:{location:e,action:t}});function F(e){return(...t)=>({type:T,payload:{method:e,args:t}})}const k=F("push"),L=F("replace"),B=F("go"),N=F("goBack"),j=F("goForward"),U=F("back"),V=F("forward");function H(e,t){return"string"!=typeof e||e.startsWith(t)?"object"==typeof e&&e.pathname&&!e.pathname.startsWith(t)?Object.assign(Object.assign({},e),{pathname:t+e.pathname}):e:t+e}const G={GV_CLOSE_MODAL:"@@gv-modal-close",GV_OPEN_MODAL:"@@gv-modal-open",GV_SET_DEV_MODE:"@@gv-set-development"},W={closeModalAction:e=>({type:G.GV_CLOSE_MODAL,payload:e}),openModalAction:e=>({type:G.GV_OPEN_MODAL,payload:e}),setDevelopmentModeAction:e=>({type:G.GV_SET_DEV_MODE,payload:e}),pushAction:e=>(t,n)=>{const r=n().router?.location?.path??"";(-1!==e.indexOf("/embedded")&&r&&r.indexOf("/embedded")>-1?"/embedded":"")+e!==r&&t(k(e))}};var z=Symbol.for("immer-nothing"),$=Symbol.for("immer-draftable"),K=Symbol.for("immer-state");function Q(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var q=Object.getPrototypeOf;function Y(e){return!!e&&!!e[K]}function X(e){return!!e&&(J(e)||Array.isArray(e)||!!e[$]||!!e.constructor?.[$]||oe(e)||ie(e))}var Z=Object.prototype.constructor.toString();function J(e){if(!e||"object"!=typeof e)return!1;const t=q(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Z}function ee(e,t){0===te(e)?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function te(e){const t=e[K];return t?t.type_:Array.isArray(e)?1:oe(e)?2:ie(e)?3:0}function ne(e,t){return 2===te(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function re(e,t,n){const r=te(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function oe(e){return e instanceof Map}function ie(e){return e instanceof Set}function ae(e){return e.copy_||e.base_}function se(e,t){if(oe(e))return new Map(e);if(ie(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&J(e)){if(!q(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[K];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(q(e),n)}function le(e,t=!1){return ue(e)||Y(e)||!X(e)||(te(e)>1&&(e.set=e.add=e.clear=e.delete=ce),Object.freeze(e),t&&ee(e,(e,t)=>le(t,!0))),e}function ce(){Q(2)}function ue(e){return Object.isFrozen(e)}var de,pe={};function he(e){const t=pe[e];return t||Q(0),t}function fe(){return de}function ge(e,t){t&&(he("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function me(e){ve(e),e.drafts_.forEach(Ae),e.drafts_=null}function ve(e){e===de&&(de=e.parent_)}function ye(e){return de={drafts_:[],parent_:de,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ae(e){const t=e[K];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function we(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[K].modified_&&(me(t),Q(4)),X(e)&&(e=be(t,e),t.parent_||Ce(t,e)),t.patches_&&he("Patches").generateReplacementPatches_(n[K].base_,e,t.patches_,t.inversePatches_)):e=be(t,n,[]),me(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==z?e:void 0}function be(e,t,n){if(ue(t))return t;const r=t[K];if(!r)return ee(t,(o,i)=>_e(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Ce(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),ee(o,(o,a)=>_e(e,r,t,o,a,n,i)),Ce(e,t,!1),n&&e.patches_&&he("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function _e(e,t,n,r,o,i,a){if(Y(o)){const a=be(e,o,i&&t&&3!==t.type_&&!ne(t.assigned_,r)?i.concat(r):void 0);if(re(n,r,a),!Y(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(X(o)&&!ue(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;be(e,o),t&&t.scope_.parent_||Ce(e,o)}}function Ce(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&le(t,n)}var Ee={get(e,t){if(t===K)return e;const n=ae(e);if(!ne(n,t))return function(e,t,n){const r=xe(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!X(r)?r:r===Oe(e.base_,t)?(Pe(e),e.copy_[t]=Me(r,e)):r},has:(e,t)=>t in ae(e),ownKeys:e=>Reflect.ownKeys(ae(e)),set(e,t,n){const r=xe(ae(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Oe(ae(e),t),a=r?.[K];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(i=r)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==n||ne(e.base_,t)))return!0;Pe(e),De(e)}var o,i;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Oe(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Pe(e),De(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=ae(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){Q(11)},getPrototypeOf:e=>q(e.base_),setPrototypeOf(){Q(12)}},Se={};function Oe(e,t){const n=e[K];return(n?ae(n):e)[t]}function xe(e,t){if(!(t in e))return;let n=q(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=q(n)}}function De(e){e.modified_||(e.modified_=!0,e.parent_&&De(e.parent_))}function Pe(e){e.copy_||(e.copy_=se(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Me(e,t){const n=oe(e)?he("MapSet").proxyMap_(e,t):ie(e)?he("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:fe(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Ee;n&&(o=[r],i=Se);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:fe()).drafts_.push(n),n}function Te(e){return Y(e)||Q(10),Re(e)}function Re(e){if(!X(e)||ue(e))return e;const t=e[K];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=se(e,t.scope_.immer_.useStrictShallowCopy_)}else n=se(e,!0);return ee(n,(e,t)=>{re(n,e,Re(t))}),t&&(t.finalized_=!1),n}ee(Ee,(e,t)=>{Se[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Se.deleteProperty=function(e,t){return Se.set.call(this,e,t,void 0)},Se.set=function(e,t,n){return Ee.set.call(this,e[0],t,n,e[0])};var Ie=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}let r;if("function"!=typeof t&&Q(6),void 0!==n&&"function"!=typeof n&&Q(7),X(e)){const o=ye(this),i=Me(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?me(o):ve(o)}return ge(o,n),we(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===z&&(r=void 0),this.autoFreeze_&&le(r,!0),n){const t=[],o=[];he("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}Q(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){X(e)||Q(8),Y(e)&&(e=Te(e));const t=ye(this),n=Me(e,void 0);return n[K].isManual_=!0,ve(t),n}finishDraft(e,t){const n=e&&e[K];n&&n.isManual_||Q(9);const{scope_:r}=n;return ge(r,t),we(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=he("Patches").applyPatches_;return Y(e)?r(e,t):this.produce(e,e=>r(e,t))}},Fe=Ie.produce;Ie.produceWithPatches.bind(Ie),Ie.setAutoFreeze.bind(Ie),Ie.setUseStrictShallowCopy.bind(Ie),Ie.applyPatches.bind(Ie),Ie.createDraft.bind(Ie),Ie.finishDraft.bind(Ie);const ke=C.GVDebug.extend("modal").extend("service");class Le{static service;static get(){return Le.service||(Le.service=new Le),window.GVMODAL=Le.service,Le.service}modalComponents;constructor(){ke("created"),this.modalComponents={}}add=(e,t)=>{ke("added",e),this.modalComponents[e]=t};get=e=>{ke("get",e);try{return this.modalComponents[e]}catch(e){return ke("get error",e),null}};remove=e=>{ke("remove",e);try{delete this.modalComponents[e]}catch(e){ke("remove error",e)}}}const Be="@@gv-logging-config/",Ne={SetConfig:`${Be}SET_CONFIG`,AddEntry:`${Be}ADD_ENTRY`,UpdateEntry:`${Be}UPDATE_ENTRY`,DeleteEntry:`${Be}DELETE_ENTRY`},je={setLoggingConfigAction:e=>({type:Ne.SetConfig,config:e}),addEntryAction:e=>({type:Ne.AddEntry,config:e}),updateEntryAction:(e,t)=>({type:Ne.UpdateEntry,id:e,config:t}),deleteEntryAction:e=>({type:Ne.DeleteEntry,id:e}),saveLoggingConfigAcion:()=>async(e,t)=>{const n=t(),r=await b.GVAppLoggingConfig.get().updateConfig(n.appLoggingConfig.config);e(je.setLoggingConfigAction(r.data))},getConfigAction:()=>async e=>{const t=await b.GVAppLoggingConfig.get().getConfig();e(je.setLoggingConfigAction(t.data))}};class Ue{static get(){return this.instance||(this.instance=new Ue),this.instance}static instance;getReducers(){const e={config:window.__GVCONFIG__,development:localStorage.getItem("gv_development"),topics:{}},t=[];return{...C.GVRegistry.get().getReduxReducers(),grassvalley:(t=e,n)=>n.type===G.GV_SET_DEV_MODE?(localStorage.setItem("gv_development",n.payload),P()(x()(t),["development"],n.payload)):t,modals:(e=t,n)=>{switch(n.type){case G.GV_OPEN_MODAL:return Le.get().add(n.payload.id,n.payload.content),x()(e).concat(g()(n.payload,"content"));case G.GV_CLOSE_MODAL:return Le.get().remove(n.payload.id),x()(e).filter(e=>e.id!==n.payload.id);default:return e}},ampp:(e={},t)=>{const n=x()(e);switch(t.type){case E.GV_SET_DEFAULT_MAILBOX:return P()(n,["mailbox"],t.payload);case E.GV_SET_USER_PROFILE:return P()(n,["user"],t.payload);case E.GV_SET_USER_ACCESSES:return P()(n,["userAccesses"],t.payload);case E.GV_SET_HELP_PREV_LOCATION:return P()(n,["helpPrevious"],t.payload);case E.GV_SET_SYSTEM_CONFIG:return P()(n,["system"],t.payload);default:return e}},appLoggingConfig:(e={config:{rules:[]}},t)=>t.type.startsWith(Be)?Fe(e,e=>{switch(t.type){case Ne.SetConfig:return e.config=t.config,void e.config.rules.forEach((t,n)=>{e.config.rules[n]={...t,idx:n}});case Ne.AddEntry:const n=e.config.rules.push(t.config);return void(e.config.rules[n-1]={...t.config,idx:n-1});case Ne.UpdateEntry:return void(e.config.rules[t.id]=t.config);case Ne.DeleteEntry:e.config.rules.splice(t.id,1),e.config.rules.forEach((t,n)=>{e.config.rules[n]={...t,idx:n}})}}):e,router:null}}}function Ve(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var He="function"==typeof Symbol&&Symbol.observable||"@@observable",Ge=()=>Math.random().toString(36).substring(7).split("").join("."),We={INIT:`@@redux/INIT${Ge()}`,REPLACE:`@@redux/REPLACE${Ge()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ge()}`};function ze(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function $e(e,t,n){if("function"!=typeof e)throw new Error(Ve(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ve(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ve(1));return n($e)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((e,t)=>{a.set(t,e)}))}function u(){if(l)throw new Error(Ve(3));return o}function d(e){if("function"!=typeof e)throw new Error(Ve(4));if(l)throw new Error(Ve(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(Ve(6));t=!1,c(),a.delete(n),i=null}}}function p(e){if(!ze(e))throw new Error(Ve(7));if(void 0===e.type)throw new Error(Ve(8));if("string"!=typeof e.type)throw new Error(Ve(17));if(l)throw new Error(Ve(9));try{l=!0,o=r(o,e)}finally{l=!1}return(i=a).forEach(e=>{e()}),e}return p({type:We.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Ve(10));r=e,p({type:We.REPLACE})},[He]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(Ve(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[He](){return this}}}}}function Ke(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:We.INIT}))throw new Error(Ve(12));if(void 0===n(void 0,{type:We.PROBE_UNKNOWN_ACTION()}))throw new Error(Ve(13))})}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const s=r[o],l=n[s],c=e[s],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(Ve(14));a[s]=u,i=i||u!==c}return i=i||r.length!==Object.keys(e).length,i?a:e}}function Qe(e,t){return function(...n){return t(e.apply(this,n))}}function qe(e,t){if("function"==typeof e)return Qe(e,t);if("object"!=typeof e||null===e)throw new Error(Ve(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=Qe(o,t))}return n}function Ye(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}var Xe=e=>Array.isArray(e)?e:[e];Symbol(),Object.getPrototypeOf({});var Ze="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function Je(){return{s:0,v:void 0,o:null,p:null}}function et(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=Je(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=Je(),e.set(n,t)):t=r}}const s=t;let l;if(1===t.s)l=t.v;else if(l=e.apply(null,arguments),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--),o="object"==typeof l&&null!==l||"function"==typeof l?new Ze(l):l}return s.s=1,s.v=l,l}return a.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function tt(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...n,...i},{memoize:l,memoizeOptions:c=[],argsMemoize:u=et,argsMemoizeOptions:d=[],devModeChecks:p={}}=s,h=Xe(c),f=Xe(d),g=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),m=l(function(){return r++,a.apply(null,arguments)},...h),v=u(function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(g,arguments);return t=m.apply(null,e),t},...f);return Object.assign(v,{resultFunc:a,memoizedResultFunc:m,dependencies:g,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:l,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var nt=tt(et),rt=Object.assign((e,t=nt)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>rt});function ot(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var it=ot(),at=ot,st=(((...e)=>{const t=tt(...e),n=Object.assign((...e)=>{const n=t(...e),r=(e,...t)=>n(Y(e)?Te(e):e,...t);return Object.assign(r,n),r},{withTypes:()=>n})})(et),"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ye:Ye.apply(null,arguments)});function lt(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(At(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>function(e){return ze(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,n}"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var ct,ut=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}},dt=e=>t=>{setTimeout(t,e)},pt="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:dt(10),ht=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},{assign:ft}=Object,gt="listenerMiddleware",mt=Object.assign(e=>{const{type:t,predicate:n,effect:r}=(e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=lt(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(At(21));return(e=>{if("function"!=typeof e)throw new Error(At(32))})(i),{predicate:o,type:t,effect:i}})(e);return{id:ht(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(At(22))}}},{withTypes:()=>mt}),vt=Object.assign(lt(`${gt}/add`),{withTypes:()=>vt}),yt=(lt(`${gt}/removeAll`),Object.assign(lt(`${gt}/remove`),{withTypes:()=>yt}));function At(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wt.apply(null,arguments)}Symbol.for("rtk-state-proxy-original"),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(ct||(ct={}));var bt="beforeunload";function _t(e){e.preventDefault(),e.returnValue=""}function Ct(){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)})}}}var Et=c(5919),St="default"in A?y:A,Ot=Symbol.for("react-redux-context"),xt="undefined"!=typeof globalThis?globalThis:{},Dt=function(){if(!St.createContext)return{};const e=xt[Ot]??(xt[Ot]=new Map);let t=e.get(St.createContext);return t||(t=St.createContext(null),e.set(St.createContext,t)),t}(),Pt=()=>{throw new Error("uSES not initialized!")};function Mt(e=Dt){return function(){return St.useContext(e)}}var Tt=Mt(),Rt=Pt,It=(e,t)=>e===t;function Ft(e=Dt){const t=e===Dt?Tt:Mt(e),n=(e,n={})=>{const{equalityFn:r=It,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:i,subscription:a,getServerState:s,stabilityCheck:l,identityFunctionCheck:c}=t(),u=(St.useRef(!0),St.useCallback({[e.name]:t=>e(t)}[e.name],[e,l,o.stabilityCheck])),d=Rt(a.addNestedSub,i.getState,s||i.getState,u,r);return St.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var kt=Ft(),Lt=Symbol.for("react.element"),Bt=Symbol.for("react.portal"),Nt=Symbol.for("react.fragment"),jt=Symbol.for("react.strict_mode"),Ut=Symbol.for("react.profiler"),Vt=Symbol.for("react.provider"),Ht=Symbol.for("react.context"),Gt=Symbol.for("react.server_context"),Wt=Symbol.for("react.forward_ref"),zt=Symbol.for("react.suspense"),$t=Symbol.for("react.suspense_list"),Kt=Symbol.for("react.memo"),Qt=Symbol.for("react.lazy"),qt=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),Wt),Yt=Kt;function Xt(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function Zt(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Jt(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Zt(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=Zt(o),o=r(t,n)),o},r}}function en(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function tn(e,t,n){return{...n,...e,...t}}function nn(e){e()}var rn={notify(){},get:()=>[]};function on(e,t){let n,r=rn,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){nn(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=rn)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return c}var an=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),sn="undefined"!=typeof navigator&&"ReactNative"===navigator.product,ln=an||sn?St.useLayoutEffect:St.useEffect;function cn(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function un(e,t){if(cn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!cn(e[n[r]],t[n[r]]))return!1;return!0}var dn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},hn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fn={[qt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Yt]:hn};function gn(e){return function(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case Lt:{const n=e.type;switch(n){case Nt:case Ut:case jt:case zt:case $t:return n;default:{const e=n&&n.$$typeof;switch(e){case Gt:case Ht:case Wt:case Qt:case Kt:case Vt:return e;default:return t}}}}case Bt:return t}}}(e)===Kt?hn:fn[e.$$typeof]||dn}var mn=Object.defineProperty,vn=Object.getOwnPropertyNames,yn=Object.getOwnPropertySymbols,An=Object.getOwnPropertyDescriptor,wn=Object.getPrototypeOf,bn=Object.prototype;function _n(e,t){if("string"!=typeof t){if(bn){const n=wn(t);n&&n!==bn&&_n(e,n)}let n=vn(t);yn&&(n=n.concat(yn(t)));const r=gn(e),o=gn(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(pn[a]||o&&o[a]||r&&r[a])){const n=An(t,a);try{mn(e,a,n)}catch(e){}}}}return e}var Cn=Pt,En=[null,null];function Sn(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function On(e,t){return e===t}var xn=function(e,t,n,{pure:r,areStatesEqual:o=On,areOwnPropsEqual:i=un,areStatePropsEqual:a=un,areMergedPropsEqual:s=un,forwardRef:l=!1,context:c=Dt}={}){const u=c,d=function(e){return e?"function"==typeof e?Jt(e):en(e,"mapStateToProps"):Xt(()=>({}))}(e),p=function(e){return e&&"object"==typeof e?Xt(t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t)):e?"function"==typeof e?Jt(e):en(e,"mapDispatchToProps"):Xt(e=>({dispatch:e}))}(t),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):en(e,"mergeProps"):()=>tn}(n),f=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:f,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function c(t){const[n,o,i]=St.useMemo(()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),a=St.useMemo(()=>u,[n,u]),s=St.useContext(a),l=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),c=Boolean(s)&&Boolean(s.store),d=l?t.store:s.store,p=c?s.getServerState:d.getState,h=St.useMemo(()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return function(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,l,c,u,d,p=!1;return function(h,f){return p?function(p,h){const f=!i(h,l),g=!o(p,s,h,l);return s=p,l=h,f&&g?(c=e(s,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):f?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):g?function(){const t=e(s,l),r=!a(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}(h,f):(s=h,l=f,c=e(s,l),u=t(r,l),d=n(c,u,l),p=!0,d)}}(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r),[d]),[g,m]=St.useMemo(()=>{if(!f)return En;const e=on(d,l?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[d,l,s]),v=St.useMemo(()=>l?s:{...s,subscription:g},[l,s,g]),y=St.useRef(),A=St.useRef(i),w=St.useRef(),b=St.useRef(!1),_=St.useRef(!1),C=St.useRef();ln(()=>(_.current=!0,()=>{_.current=!1}),[]);const E=St.useMemo(()=>()=>w.current&&i===A.current?w.current:h(d.getState(),i),[d,i]),S=St.useMemo(()=>e=>g?function(e,t,n,r,o,i,a,s,l,c,u){if(!e)return()=>{};let d=!1,p=null;const h=()=>{if(d||!s.current)return;const e=t.getState();let n,h;try{n=r(e,o.current)}catch(e){h=e,p=e}h||(p=null),n===i.current?a.current||c():(i.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(f,d,g,h,A,y,b,_,w,m,e):()=>{},[g]);var O,x;let D;O=Sn,x=[A,y,b,i,w,m],ln(()=>O(...x),void 0);try{D=Cn(S,E,p?()=>h(p(),i):E)}catch(e){throw C.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${C.current.stack}\n\n`),e}ln(()=>{C.current=void 0,w.current=void 0,y.current=D});const P=St.useMemo(()=>St.createElement(e,{...D,ref:o}),[o,e,D]);return St.useMemo(()=>f?St.createElement(a.Provider,{value:v},P):P,[a,P,v])}const g=St.memo(c);if(g.WrappedComponent=e,g.displayName=c.displayName=n,l){const t=St.forwardRef(function(e,t){return St.createElement(g,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,_n(t,e)}return _n(g,e)}},Dn=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=St.useMemo(()=>{const t=on(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),s=St.useMemo(()=>e.getState(),[e]);ln(()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[a,s]);const l=t||Dt;return St.createElement(l.Provider,{value:a},n)};function Pn(e=Dt){const t=e===Dt?Tt:Mt(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var Mn=Pn();function Tn(e=Dt){const t=e===Dt?Mn:Pn(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Rn,In=Tn(),Fn=nn;Rn=Et.useSyncExternalStoreWithSelector,Rt=Rn,(e=>{Cn=e})(y.useSyncExternalStore);const{createReduxHistory:kn,routerMiddleware:Ln,routerReducer:Bn}=(({history:e,routerReducerKey:t="router",reduxTravelling:n=!1,showHistoryAction:r=!1,selectRouterState:o,savePreviousLocations:i=0,batch:a,reachGlobalHistory:s,basename:l})=>{let c=!1;const u=(e,t,n)=>c?e({location:t,action:n}):e(t,n);"function"!=typeof a&&(a=e=>{e()}),"function"!=typeof o&&(o=e=>e[t]);const d=(({savePreviousLocations:e=0,basename:t})=>{const n={location:null,action:null,basename:t},r=isNaN(e)?0:e;return r&&(n.previousLocations=[]),(e=n,{type:t,payload:o}={})=>{if(t===R){const{location:t,action:n}=o||{},i=r?[{location:t,action:n},...e.previousLocations.slice(0,r)]:void 0;return Object.assign(Object.assign({},e),{location:t,action:n,previousLocations:i})}return e}})({savePreviousLocations:i,basename:l}),p=(({history:e,showHistoryAction:t,basename:n})=>()=>r=>o=>{if(o.type!==T)return r(o);const i=o.payload.method,a=o.payload.args;switch(i){case"push":{let t=a;n&&a.length>0&&(t=[H(a[0],n),...a.slice(1)]),e.push(...t);break}case"replace":{let t=a;n&&a.length>0&&(t=[H(a[0],n),...a.slice(1)]),e.replace(...t);break}case"go":e.go(...a);break;case"back":case"goBack":e.goBack&&e.goBack(...a),e.back&&e.back(...a);break;case"forward":case"goForward":e.goForward&&e.goForward(...a),e.forward&&e.forward(...a)}return t?r(o):void 0})({history:e,showHistoryAction:r,basename:l});let h=!1;return{routerReducer:d,routerMiddleware:p,createReduxHistory:t=>{let r=[];return t.dispatch(I(e.location,e.action)),n&&(t=>{t.subscribe(()=>{const n=o(t.getState()).location,r=e.location;var i,a;n&&r&&(a=r,(i=n).pathname!==a.pathname||i.search!==a.search||i.hash!==a.hash)&&(h=!0,e.push({pathname:n.pathname,search:n.search,hash:n.hash}))})})(t),e.listen((e,n)=>{if(e.location&&(n=e.action,e=e.location,c=!0),h){h=!1;const e=o(t.getState());return void r.forEach(t=>u(t,e.location,e.action))}a(()=>{t.dispatch(I(e,n));const i=o(t.getState());r.forEach(e=>u(e,i.location,i.action))})}),s&&s.listen(({location:e,action:n})=>{if("POP"!==n){const i={pathname:e.pathname,search:e.search,hash:e.hash,key:e.key,state:e.state};a(()=>{t.dispatch(I(i,n));const e=o(t.getState());r.forEach(t=>u(t,e.location,e.action))})}}),{block:e.block,createHref:e.createHref,push:(...e)=>t.dispatch(k(...e)),replace:(...e)=>t.dispatch(L(...e)),go:(...e)=>t.dispatch(B(...e)),goBack:(...e)=>t.dispatch(N(...e)),goForward:(...e)=>t.dispatch(j(...e)),back:(...e)=>t.dispatch(U(...e)),forward:(...e)=>t.dispatch(V(...e)),listen:e=>(r.indexOf(e)<0&&r.push(e),()=>{r=r.filter(t=>t!==e)}),get location(){return o(t.getState()).location},get action(){return o(t.getState()).action},get length(){return e.length},get listenObject(){return c}}}}})({history:function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=n.location,t=e.pathname,o=e.search,i=e.hash,a=r.state||{};return[a.idx,{pathname:t,search:o,hash:i,state:a.usr||null,key:a.key||"default"}]}var i=null;n.addEventListener("popstate",function(){if(i)d.call(i),i=null;else{var e=ct.Pop,t=o(),n=t[0],r=t[1];if(d.length){if(null!=n){var a=l-n;a&&(i={action:e,location:r,retry:function(){v(-1*a)}},v(a))}}else m(e)}});var a=ct.Pop,s=o(),l=s[0],c=s[1],u=Ct(),d=Ct();function p(e){return"string"==typeof e?e:function(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,a=void 0===i?"":i;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}(e)}function h(e,t){return void 0===t&&(t=null),wt({pathname:c.pathname,hash:"",search:""},"string"==typeof e?function(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function f(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function g(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function m(e){a=e;var t=o();l=t[0],c=t[1],u.call({action:a,location:c})}function v(e){r.go(e)}null==l&&(l=0,r.replaceState(wt({},r.state,{idx:l}),""));var y={get action(){return a},get location(){return c},createHref:p,push:function e(t,o){var i=ct.Push,a=h(t,o);if(g(i,a,function(){e(t,o)})){var s=f(a,l+1),c=s[0],u=s[1];try{r.pushState(c,"",u)}catch(e){n.location.assign(u)}m(i)}},replace:function e(t,n){var o=ct.Replace,i=h(t,n);if(g(o,i,function(){e(t,n)})){var a=f(i,l),s=a[0],c=a[1];r.replaceState(s,"",c),m(o)}},go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(bt,_t),function(){t(),d.length||n.removeEventListener(bt,_t)}}};return y}(),basename:window.__GVCONFIG__.proxyPath});class Nn{static store;static activeReducers;static setupStore(e,t={},n=[],r=[]){if(this.store)return this.store;this.activeReducers={...Ue.get().getReducers(),...e,router:Bn};const o=Ke(this.activeReducers);return this.store=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new ut;return t&&("boolean"==typeof t?i.push(it):i.push(at(t.extraArgument))),i},{reducer:n,middleware:r,devTools:o=!0,preloadedState:i,enhancers:a}=e||{};let s,l;if("function"==typeof n)s=n;else{if(!ze(n))throw new Error(At(1));s=Ke(n)}l="function"==typeof r?r(t):t();let c=Ye;o&&(c=st({trace:!1,..."object"==typeof o&&o}));const u=function(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(Ve(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map(e=>e(a));return i=Ye(...s)(o.dispatch),{...o,dispatch:i}}}(...l),d=(e=>function(t){const{autoBatch:n=!0}=t??{};let r=new ut(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?pt:"callback"===e.type?e.queueNotification:dt(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>o&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.RTK_autoBatch,i=!o,i&&(a||(a=!0,l(c))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r})(u);return $e(s,i,c(..."function"==typeof a?a(d):d()))}({reducer:o,preloadedState:t,middleware:e=>e({immutableCheck:!1,serializableCheck:!1}).concat(this.dynamicMiddleWare).concat(n).concat(Ln),enhancers:e=>e().concat(r)}),this.store}static get(){return this.store}static getStore(){return this.get()}static addReducer(e,t){this.activeReducers[e]||(this.activeReducers[e]=t,this.store.replaceReducer(Ke(this.activeReducers)),this.store.dispatch({type:"@@GV/DYN-INIT-NEW"}))}static removeReducer(e){this.activeReducers[e]&&(delete this.activeReducers[e],this.store.replaceReducer(Ke(this.activeReducers)))}static entries=[];static storeRef=null;static middlewareRef=0;static dynamicMiddleWare=e=>(this.storeRef=e,e=>t=>{const n=t=>{if(t<this.entries.length){const{bound:e}=this.entries[t];return e(n(t+1))}return e};return n(0)(t)});static generateId(){return"dynamic-middleware-"+this.middlewareRef++}static bindMiddleware(e){if(!this.storeRef)throw new Error("Middleware not initialized");return e(this.storeRef)}static addMiddleware(e,t="end",n=this.generateId()){const r=this.bindMiddleware(e),o={id:n,original:e,bound:r,useCount:1},i=this.entries.find(e=>e.id===n);if(i)i.useCount=(i.useCount??0)+1;else if("start"===t)this.entries.unshift(o);else if("end"===t)this.entries.push(o);else if("object"==typeof t){const{afterId:e,beforeId:n}=t,r=this.entries.findIndex(t=>t.id===e||t.id===n);-1!==r?this.entries.splice(r+(e?1:0),0,o):this.entries.push(o)}}static removeMiddleware(e){const t=this.entries.findIndex(t=>"string"==typeof e?t.id===e:t.original===e);-1!==t&&(this.entries[t].useCount=(this.entries[t].useCount??0)-1,this.entries[t].useCount<=0&&this.entries.splice(t,1))}}const jn=()=>In();var Un=c(105),Vn=c.n(Un);const Hn={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Gn;const Wn=new Uint8Array(16);function zn(){if(!Gn&&(Gn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Gn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gn(Wn)}const $n=[];for(let e=0;e<256;++e)$n.push((e+256).toString(16).slice(1));const Kn=function(e,t,n){if(Hn.randomUUID&&!t&&!e)return Hn.randomUUID();const r=(e=e||{}).random||(e.rng||zn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return $n[e[t+0]]+$n[e[t+1]]+$n[e[t+2]]+$n[e[t+3]]+"-"+$n[e[t+4]]+$n[e[t+5]]+"-"+$n[e[t+6]]+$n[e[t+7]]+"-"+$n[e[t+8]]+$n[e[t+9]]+"-"+$n[e[t+10]]+$n[e[t+11]]+$n[e[t+12]]+$n[e[t+13]]+$n[e[t+14]]+$n[e[t+15]]}(r)},Qn=new Set(["hb","heartbeat","ping"]),qn=e=>{const t=e.split(/\r?\n/).map(e=>e.replace(/\r?$/,"")).filter(e=>e.length>0&&!e.startsWith(":"));let n=null;const r=[];if(t.forEach(e=>{if(e.startsWith("event:"))n=e.slice(6).trim();else if(e.startsWith("data:")){let t=e.slice(5);t.startsWith(" ")&&(t=t.slice(1)),r.push(t)}}),"done"===n)return{shouldContinue:!1};const o=r.join("\n"),i=n?.toLowerCase()??null;if("retrieval"===i||"error"===i)return{shouldContinue:!0};if("tool_executing"===i){try{const e=o?JSON.parse(o):null,t=Array.isArray(e?.tool_calls)?e.tool_calls.map(e=>({call_id:e.call_id,name:e.name,arguments:e.arguments,toolOrigin:e.toolOrigin})):[];if(t.length>0)return{shouldContinue:!0,toolExecuting:t}}catch{}return{shouldContinue:!0}}if("tool_calls"===i||"tool_calls_pending"===i){const e="tool_calls_pending"===i;try{const t=o?JSON.parse(o):null,n=Array.isArray(t?.tool_calls)?t.tool_calls.map(e=>({call_id:e.call_id,name:e.name,arguments:e.arguments,toolOrigin:e.toolOrigin})):[],r=t?.response_id||"";if(n.length>0&&r)return{shouldContinue:!1,toolCalls:{calls:n,responseId:r,requiresApproval:e}}}catch{}return{shouldContinue:!0}}const a=!(!i||!Qn.has(i)),s=o?o.trim().toLowerCase():"",l=!o||Qn.has(s);if(a||l)return{shouldContinue:!0};const c=(e=>e.replace(/\\r\\n/g,"\n").replace(/\\n/g,"\n").replace(/\\t/g,"\t"))(o);if(!c)return{shouldContinue:!0};const u=Jn(c),d=er(c);return d?{shouldContinue:!0,chunk:d,citations:u}:{shouldContinue:!0}},Yn=async(e,t)=>{const n=e.getReader(),r=new TextDecoder;let o="",i=!1;for(;!i;){const{value:e,done:a}=await n.read();o+=a?r.decode():r.decode(e,{stream:!0}),a&&(i=!0);const s=o.split(/\r?\n\r?\n/);o=i?"":s.pop()??"";for(const e of s){const n=qn(e);if(n.chunk&&t.onChunk(n.chunk),n.citations?.length&&t.onCitations?.(n.citations),n.toolExecuting?.length&&(t.onToolExecuting?.(n.toolExecuting),await new Promise(e=>{setTimeout(e,0)})),n.toolCalls)return{toolCalls:n.toolCalls};if(!n.shouldContinue){i=!0;break}}}return{}},Xn=(e,t)=>{let n=0,r=!1,o=!1;for(let i=t;i<e.length;i+=1){const t=e[i];if(o)o=!1;else if("\\"===t)o=!0;else if('"'===t)r=!r;else if(!r)if("{"===t)n+=1;else if("}"===t&&(n-=1,0===n))return i}return-1},Zn=(e,t=0)=>{let n=t;for(;n<e.length;){const t=e.indexOf('"citations"',n);if(-1===t)return;const r=e.lastIndexOf("{",t);if(-1===r)return;const o=Xn(e,r);if(-1===o)return;if(t<o)return{start:r,end:o,snippet:e.slice(r,o+1)};n=t+11}},Jn=e=>{const t=Zn(e);if(t)try{const e=JSON.parse(t.snippet);return Array.isArray(e?.citations)?e.citations:void 0}catch(e){return void console.warn("Failed to parse citations from stream payload",e)}},er=e=>{if(!e)return"";let t=0,n="";for(;t<e.length;){const r=Zn(e,t);if(!r){n+=e.slice(t);break}n+=e.slice(t,r.start),t=r.end+1}return n},tr=async e=>{const t=await e.text().catch(()=>"");return er(t)};var nr=c(8690);const rr=e=>function(t){const n=(0,nr.useParams)(),r=(0,nr.useLocation)(),o=((e,t)=>{const{pathname:n}=e;if(!Object.keys(t).length)return n;let r=n;return Object.entries(t).forEach(([e,t])=>{t&&(r=r.replace(t,`:${e}`))}),r})(r,n);return(0,i.jsx)(e,{...t,match:{params:n,path:o},location:r})};function or(e,t){return function(){return e.apply(t,arguments)}}const{toString:ir}=Object.prototype,{getPrototypeOf:ar}=Object,{iterator:sr,toStringTag:lr}=Symbol,cr=(ur=Object.create(null),e=>{const t=ir.call(e);return ur[t]||(ur[t]=t.slice(8,-1).toLowerCase())});var ur;const dr=e=>(e=e.toLowerCase(),t=>cr(t)===e),pr=e=>t=>typeof t===e,{isArray:hr}=Array,fr=pr("undefined");function gr(e){return null!==e&&!fr(e)&&null!==e.constructor&&!fr(e.constructor)&&yr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mr=dr("ArrayBuffer"),vr=pr("string"),yr=pr("function"),Ar=pr("number"),wr=e=>null!==e&&"object"==typeof e,br=e=>{if("object"!==cr(e))return!1;const t=ar(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||lr in e||sr in e)},_r=dr("Date"),Cr=dr("File"),Er=dr("Blob"),Sr=dr("FileList"),Or="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==c.g?c.g:{},xr=void 0!==Or.FormData?Or.FormData:void 0,Dr=dr("URLSearchParams"),[Pr,Mr,Tr,Rr]=["ReadableStream","Request","Response","Headers"].map(dr);function Ir(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),hr(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(gr(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Fr(e,t){if(gr(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const kr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:c.g,Lr=e=>!fr(e)&&e!==kr,Br=(Nr="undefined"!=typeof Uint8Array&&ar(Uint8Array),e=>Nr&&e instanceof Nr);var Nr;const jr=dr("HTMLFormElement"),Ur=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Vr=dr("RegExp"),Hr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ir(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)},Gr=dr("AsyncFunction"),Wr=(zr="function"==typeof setImmediate,$r=yr(kr.postMessage),zr?setImmediate:$r?(Kr=`axios@${Math.random()}`,Qr=[],kr.addEventListener("message",({source:e,data:t})=>{e===kr&&t===Kr&&Qr.length&&Qr.shift()()},!1),e=>{Qr.push(e),kr.postMessage(Kr,"*")}):e=>setTimeout(e));var zr,$r,Kr,Qr;const qr="undefined"!=typeof queueMicrotask?queueMicrotask.bind(kr):"undefined"!=typeof process&&process.nextTick||Wr,Yr={isArray:hr,isArrayBuffer:mr,isBuffer:gr,isFormData:e=>{if(!e)return!1;if(xr&&e instanceof xr)return!0;const t=ar(e);if(!t||t===Object.prototype)return!1;if(!yr(e.append))return!1;const n=cr(e);return"formdata"===n||"object"===n&&yr(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&mr(e.buffer),t},isString:vr,isNumber:Ar,isBoolean:e=>!0===e||!1===e,isObject:wr,isPlainObject:br,isEmptyObject:e=>{if(!wr(e)||gr(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Pr,isRequest:Mr,isResponse:Tr,isHeaders:Rr,isUndefined:fr,isDate:_r,isFile:Cr,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Er,isRegExp:Vr,isFunction:yr,isStream:e=>wr(e)&&yr(e.pipe),isURLSearchParams:Dr,isTypedArray:Br,isFileList:Sr,forEach:Ir,merge:function e(...t){const{caseless:n,skipUndefined:r}=Lr(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=n&&Fr(o,i)||i,s=Ur(o,a)?o[a]:void 0;br(s)&&br(t)?o[a]=e(s,t):br(t)?o[a]=e({},t):hr(t)?o[a]=t.slice():r&&fr(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++)t[e]&&Ir(t[e],i);return o},extend:(e,t,n,{allOwnKeys:r}={})=>(Ir(t,(t,r)=>{n&&yr(t)?Object.defineProperty(e,r,{__proto__:null,value:or(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&ar(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:cr,kindOfTest:dr,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(hr(e))return e;let t=e.length;if(!Ar(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[sr]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:jr,hasOwnProperty:Ur,hasOwnProp:Ur,reduceDescriptors:Hr,freezeMethods:e=>{Hr(e,(t,n)=>{if(yr(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];yr(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return hr(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Fr,global:kr,isContextDefined:Lr,isSpecCompliantForm:function(e){return!!(e&&yr(e.append)&&"FormData"===e[lr]&&e[sr])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(wr(e)){if(t.indexOf(e)>=0)return;if(gr(e))return e;if(!("toJSON"in e)){t[r]=e;const o=hr(e)?[]:{};return Ir(e,(e,t)=>{const i=n(e,r+1);!fr(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Gr,isThenable:e=>e&&(wr(e)||yr(e))&&yr(e.then)&&yr(e.catch),setImmediate:Wr,asap:qr,isIterable:e=>null!=e&&yr(e[sr])},Xr=Yr.toObjectSet(["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"]),Zr=Symbol("internals"),Jr=/[^\x09\x20-\x7E\x80-\xFF]/g;function eo(e){return e&&String(e).trim().toLowerCase()}function to(e){return!1===e||null==e?e:Yr.isArray(e)?e.map(to):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(Jr,""))}function no(e,t,n,r,o){return Yr.isFunction(r)?r.call(this,t,n):(o&&(t=n),Yr.isString(t)?Yr.isString(r)?-1!==t.indexOf(r):Yr.isRegExp(r)?r.test(t):void 0:void 0)}class ro{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=eo(t);if(!o)throw new Error("header name must be a non-empty string");const i=Yr.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=to(e))}const i=(e,t)=>Yr.forEach(e,(e,n)=>o(e,n,t));if(Yr.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Yr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Xr[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(Yr.isObject(e)&&Yr.isIterable(e)){let n,r,o={};for(const t of e){if(!Yr.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Yr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=eo(e)){const n=Yr.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Yr.isFunction(t))return t.call(this,e,n);if(Yr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eo(e)){const n=Yr.findKey(this,e);return!(!n||void 0===this[n]||t&&!no(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=eo(e)){const o=Yr.findKey(n,e);!o||t&&!no(0,n[o],o,t)||(delete n[o],r=!0)}}return Yr.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!no(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Yr.forEach(this,(r,o)=>{const i=Yr.findKey(n,o);if(i)return t[i]=to(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=to(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Yr.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Yr.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Zr]=this[Zr]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=eo(e);t[r]||(function(e,t){const n=Yr.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Yr.isArray(e)?e.forEach(r):r(e),this}}ro.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Yr.reduceDescriptors(ro.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Yr.freezeMethods(ro);const oo=ro;class io extends Error{static from(e,t,n,r,o,i){const a=new io(e.message,t||e.code,n,r,o);return a.cause=e,a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&Yr.hasOwnProp(e,"redact")?e.redact:void 0,n=Yr.isArray(t)&&t.length>0?function(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(Yr.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof oo&&(e=e.toJSON()),r.push(e),Yr.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);Yr.isUndefined(r)||(t[n]=r)});else{if(!Yr.isPlainObject(e)&&function(e){if(Yr.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Yr.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,i]of Object.entries(e)){const e=n.has(r.toLowerCase())?"[REDACTED ****]":o(i);Yr.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}(e,t):Yr.toJSONObject(e);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:n,code:this.code,status:this.status}}}io.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",io.ERR_BAD_OPTION="ERR_BAD_OPTION",io.ECONNABORTED="ECONNABORTED",io.ETIMEDOUT="ETIMEDOUT",io.ECONNREFUSED="ECONNREFUSED",io.ERR_NETWORK="ERR_NETWORK",io.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",io.ERR_DEPRECATED="ERR_DEPRECATED",io.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",io.ERR_BAD_REQUEST="ERR_BAD_REQUEST",io.ERR_CANCELED="ERR_CANCELED",io.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",io.ERR_INVALID_URL="ERR_INVALID_URL",io.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const ao=io;function so(e){return Yr.isPlainObject(e)||Yr.isArray(e)}function lo(e){return Yr.endsWith(e,"[]")?e.slice(0,-2):e}function co(e,t,n){return e?e.concat(t).map(function(e,t){return e=lo(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const uo=Yr.toFlatObject(Yr,{},null,function(e){return/^is[A-Z]/.test(e)}),po=function(e,t,n){if(!Yr.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Yr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Yr.isUndefined(t[e])})).metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=s&&Yr.isSpecCompliantForm(t);if(!Yr.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Yr.isDate(e))return e.toISOString();if(Yr.isBoolean(e))return e.toString();if(!c&&Yr.isBlob(e))throw new ao("Blob is not supported. Use a Buffer instead.");return Yr.isArrayBuffer(e)||Yr.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function d(e,n,o){let s=e;if(Yr.isReactNative(t)&&Yr.isReactNativeBlob(e))return t.append(co(o,n,i),u(e)),!1;if(e&&!o&&"object"==typeof e)if(Yr.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Yr.isArray(e)&&function(e){return Yr.isArray(e)&&!e.some(so)}(e)||(Yr.isFileList(e)||Yr.endsWith(n,"[]"))&&(s=Yr.toArray(e)))return n=lo(n),s.forEach(function(e,r){!Yr.isUndefined(e)&&null!==e&&t.append(!0===a?co([n],r,i):null===a?n:n+"[]",u(e))}),!1;return!!so(e)||(t.append(co(o,n,i),u(e)),!1)}const p=[],h=Object.assign(uo,{defaultVisitor:d,convertValue:u,isVisitable:so});if(!Yr.isObject(e))throw new TypeError("data must be an object");return function e(n,r,i=0){if(!Yr.isUndefined(n)){if(i>l)throw new ao("Object is too deeply nested ("+i+" levels). Max depth: "+l,ao.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+r.join("."));p.push(n),Yr.forEach(n,function(n,a){!0===(!(Yr.isUndefined(n)||null===n)&&o.call(t,n,Yr.isString(a)?a.trim():a,r,h))&&e(n,r?r.concat(a):[a],i+1)}),p.pop()}}(e),t};function ho(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function fo(e,t){this._pairs=[],e&&po(e,this,t)}const go=fo.prototype;go.append=function(e,t){this._pairs.push([e,t])},go.toString=function(e){const t=e?function(t){return e.call(this,t,ho)}:ho;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const mo=fo;function vo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function yo(e,t,n){if(!t)return e;const r=n&&n.encode||vo,o=Yr.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(a=i?i(t,o):Yr.isURLSearchParams(t)?t.toString():new mo(t,o).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const Ao=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Yr.forEach(this.handlers,function(t){null!==t&&e(t)})}},wo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},bo={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:mo,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},_o="undefined"!=typeof window&&"undefined"!=typeof document,Co="object"==typeof navigator&&navigator||void 0,Eo=_o&&(!Co||["ReactNative","NativeScript","NS"].indexOf(Co.product)<0),So="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Oo=_o&&window.location.href||"http://localhost",xo={...e,...bo},Do=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Yr.isArray(r)?r.length:i,s?(Yr.hasOwnProp(r,i)?r[i]=Yr.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a):(r[i]&&Yr.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Yr.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(Yr.isFormData(e)&&Yr.isFunction(e.entries)){const n={};return Yr.forEachEntry(e,(e,r)=>{t(function(e){return Yr.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},Po=(e,t)=>null!=e&&Yr.hasOwnProp(e,t)?e[t]:void 0,Mo={transitional:wo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Yr.isObject(e);if(o&&Yr.isHTMLForm(e)&&(e=new FormData(e)),Yr.isFormData(e))return r?JSON.stringify(Do(e)):e;if(Yr.isArrayBuffer(e)||Yr.isBuffer(e)||Yr.isStream(e)||Yr.isFile(e)||Yr.isBlob(e)||Yr.isReadableStream(e))return e;if(Yr.isArrayBufferView(e))return e.buffer;if(Yr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=Po(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return po(e,new xo.classes.URLSearchParams,{visitor:function(e,t,n,r){return xo.isNode&&Yr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=Yr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Po(this,"env"),r=n&&n.FormData;return po(i?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e){if(Yr.isString(e))try{return(0,JSON.parse)(e),Yr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Po(this,"transitional")||Mo.transitional,n=t&&t.forcedJSONParsing,r=Po(this,"responseType"),o="json"===r;if(Yr.isResponse(e)||Yr.isReadableStream(e))return e;if(e&&Yr.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Po(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw ao.from(e,ao.ERR_BAD_RESPONSE,this,null,Po(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xo.classes.FormData,Blob:xo.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Yr.forEach(["delete","get","head","post","put","patch","query"],e=>{Mo.headers[e]={}});const To=Mo;function Ro(e,t){const n=this||To,r=t||n,o=oo.from(r.headers);let i=r.data;return Yr.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Io(e){return!(!e||!e.__CANCEL__)}const Fo=class extends ao{constructor(e,t,n){super(null==e?"canceled":e,ao.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function ko(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ao("Request failed with status code "+n.status,n.status>=400&&n.status<500?ao.ERR_BAD_REQUEST:ao.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Lo=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(i,a):i,l=Math.max(0,s-r),c=o(l);r=Math.max(r,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},Bo=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},No=e=>(...t)=>Yr.asap(()=>e(...t)),jo=xo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,xo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(xo.origin),xo.navigator&&/(msie|trident)/i.test(xo.navigator.userAgent)):()=>!0,Uo=xo.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Yr.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Yr.isString(r)&&s.push(`path=${r}`),Yr.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),Yr.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Vo(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ho=e=>e instanceof oo?{...e}:e;function Go(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return Yr.isPlainObject(e)&&Yr.isPlainObject(t)?Yr.merge.call({caseless:r},e,t):Yr.isPlainObject(t)?Yr.merge({},t):Yr.isArray(t)?t.slice():t}function o(e,t,n,o){return Yr.isUndefined(t)?Yr.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Yr.isUndefined(t))return r(void 0,t)}function a(e,t){return Yr.isUndefined(t)?Yr.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return Yr.hasOwnProp(t,i)?r(n,o):Yr.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken: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,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Ho(e),Ho(t),0,!0)};return Yr.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=Yr.hasOwnProp(l,r)?l[r]:o,a=i(Yr.hasOwnProp(e,r)?e[r]:void 0,Yr.hasOwnProp(t,r)?t[r]:void 0,r);Yr.isUndefined(a)&&i!==s||(n[r]=a)}),n}const Wo=["content-type","content-length"],zo=e=>{const t=Go({},e),n=e=>Yr.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),a=n("xsrfCookieName");let s=n("headers");const l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),d=n("url");var p;if(t.headers=s=oo.from(s),t.url=yo(Vo(c,d,u),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?(p=l.password,encodeURIComponent(p).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),Yr.isFormData(r)&&(xo.hasStandardBrowserEnv||xo.hasStandardBrowserWebWorkerEnv?s.setContentType(void 0):Yr.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{Wo.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(s,r.getHeaders(),n("formDataHeaderPolicy"))),xo.hasStandardBrowserEnv&&(Yr.isFunction(o)&&(o=o(t)),!0===o||null==o&&jo(t.url))){const e=i&&a&&Uo.read(a);e&&s.set(i,e)}return t},$o="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=zo(e);let o=r.data;const i=oo.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=r;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=oo.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());ko(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new ao("Request aborted",ao.ECONNABORTED,e,g)),f(),g=null)},g.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new ao(r,ao.ERR_NETWORK,e,g);o.event=t||null,n(o),f(),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||wo;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ao(t,o.clarifyTimeoutError?ao.ETIMEDOUT:ao.ECONNABORTED,e,g)),f(),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&Yr.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),Yr.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),h&&([l,u]=Lo(h,!0),g.addEventListener("progress",l)),p&&g.upload&&([s,c]=Lo(p),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new Fo(null,e,g):t),g.abort(),f(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(r.url);!v||xo.protocols.includes(v)?g.send(o||null):n(new ao("Unsupported protocol "+v+":",ao.ERR_BAD_REQUEST,e))})},Ko=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ao?t:new Fo(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new ao(`timeout of ${t}ms exceeded`,ao.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>Yr.asap(a),s}},Qo=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},qo=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Qo(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Yo="1.16.0",{isFunction:Xo}=Yr,Zo=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Jo=e=>{const t=Yr.global??globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Yr.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:a}=e,s=o?Xo(o):"function"==typeof fetch,l=Xo(i),c=Xo(a);if(!s)return!1;const u=s&&Xo(n),d=s&&("function"==typeof r?(p=new r,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const h=l&&u&&Zo(()=>{let e=!1;const t=new i(xo.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),f=c&&u&&Zo(()=>Yr.isReadableStream(new a("").body)),g={stream:f&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!g[e]&&(g[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ao(`Response type '${e}' is not supported`,ao.ERR_NOT_SUPPORT,n)})});const m=async(e,t)=>{const n=Yr.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Yr.isBlob(e))return e.size;if(Yr.isSpecCompliantForm(e)){const t=new i(xo.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Yr.isArrayBufferView(e)||Yr.isArrayBuffer(e)?e.byteLength:(Yr.isURLSearchParams(e)&&(e+=""),Yr.isString(e)?(await d(e)).byteLength:void 0)})(t):n};return async e=>{let{url:t,method:n,data:s,signal:c,cancelToken:u,timeout:d,onDownloadProgress:p,onUploadProgress:v,responseType:y,headers:A,withCredentials:w="same-origin",fetchOptions:b,maxContentLength:_,maxBodyLength:C}=zo(e);const E=Yr.isNumber(_)&&_>-1,S=Yr.isNumber(C)&&C>-1;let O=o||fetch;y=y?(y+"").toLowerCase():"text";let x=Ko([c,u&&u.toAbortSignal()],d),D=null;const P=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let M;try{if(E&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let n=0;n<t;n++)if(37===r.charCodeAt(n)&&n+2<t){const t=r.charCodeAt(n+1),o=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const i=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));o>=0&&(61===r.charCodeAt(o)?(n++,o--):i(o)&&(n++,o-=3)),1===n&&o>=0&&(61===r.charCodeAt(o)||i(o))&&n++;const a=3*Math.floor(e/4)-(n||0);return a>0?a:0}if(void 0!==Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");let o=0;for(let e=0,t=r.length;e<t;e++){const n=r.charCodeAt(e);if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=r.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(t);if(n>_)throw new ao("maxContentLength size of "+_+" exceeded",ao.ERR_BAD_RESPONSE,e,D)}if(S&&"get"!==n&&"head"!==n){const t=await m(A,s);if("number"==typeof t&&isFinite(t)&&t>C)throw new ao("Request body larger than maxBodyLength limit",ao.ERR_BAD_REQUEST,e,D)}if(v&&h&&"get"!==n&&"head"!==n&&0!==(M=await m(A,s))){let e,n=new i(t,{method:"POST",body:s,duplex:"half"});if(Yr.isFormData(s)&&(e=n.headers.get("content-type"))&&A.setContentType(e),n.body){const[e,t]=Bo(M,Lo(No(v)));s=qo(n.body,65536,e,t)}}Yr.isString(w)||(w=w?"include":"omit");const o=l&&"credentials"in i.prototype;if(Yr.isFormData(s)){const e=A.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&A.delete("content-type")}A.set("User-Agent","axios/"+Yo,!1);const c={...b,signal:x,method:n.toUpperCase(),headers:A.normalize().toJSON(),body:s,duplex:"half",credentials:o?w:void 0};D=l&&new i(t,c);let u=await(l?O(D,b):O(t,c));if(E){const t=Yr.toFiniteNumber(u.headers.get("content-length"));if(null!=t&&t>_)throw new ao("maxContentLength size of "+_+" exceeded",ao.ERR_BAD_RESPONSE,e,D)}const d=f&&("stream"===y||"response"===y);if(f&&u.body&&(p||E||d&&P)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=u[e]});const n=Yr.toFiniteNumber(u.headers.get("content-length")),[r,o]=p&&Bo(n,Lo(No(p),!0))||[];let i=0;const s=t=>{if(E&&(i=t,i>_))throw new ao("maxContentLength size of "+_+" exceeded",ao.ERR_BAD_RESPONSE,e,D);r&&r(t)};u=new a(qo(u.body,65536,s,()=>{o&&o(),P&&P()}),t)}y=y||"text";let T=await g[Yr.findKey(g,y)||"text"](u,e);if(E&&!f&&!d){let t;if(null!=T&&("number"==typeof T.byteLength?t=T.byteLength:"number"==typeof T.size?t=T.size:"string"==typeof T&&(t="function"==typeof r?(new r).encode(T).byteLength:T.length)),"number"==typeof t&&t>_)throw new ao("maxContentLength size of "+_+" exceeded",ao.ERR_BAD_RESPONSE,e,D)}return!d&&P&&P(),await new Promise((t,n)=>{ko(t,n,{data:T,headers:oo.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:D})})}catch(t){if(P&&P(),x&&x.aborted&&x.reason instanceof ao){const n=x.reason;throw n.config=e,D&&(n.request=D),t!==n&&(n.cause=t),n}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ao("Network Error",ao.ERR_NETWORK,e,D,t&&t.response),{cause:t.cause||t});throw ao.from(t,t&&t.code,e,D,t&&t.response)}}},ei=new Map,ti=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,c=ei;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:Jo(t)),c=s;return s},ni=(ti(),{http:null,xhr:$o,fetch:{get:ti}});Yr.forEach(ni,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const ri=e=>`- ${e}`,oi=e=>Yr.isFunction(e)||null===e||!1===e,ii=function(e,t){e=Yr.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!oi(r)&&(o=ni[(n=String(r)).toLowerCase()],void 0===o))throw new ao(`Unknown adapter '${n}'`);if(o&&(Yr.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(ri).join("\n"):" "+ri(e[0]):"as no adapter specified";throw new ao("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o};function ai(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fo(null,e)}function si(e){return ai(e),e.headers=oo.from(e.headers),e.data=Ro.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ii(e.adapter||To.adapter,e)(e).then(function(t){ai(e),e.response=t;try{t.data=Ro.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=oo.from(t.headers),t},function(t){if(!Io(t)&&(ai(e),t&&t.response)){e.response=t.response;try{t.response.data=Ro.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=oo.from(t.response.headers)}return Promise.reject(t)})}const li={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{li[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ci={};li.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Yo+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new ao(r(o," has been removed"+(t?" in "+t:"")),ao.ERR_DEPRECATED);return t&&!ci[o]&&(ci[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},li.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const ui={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ao("options must be an object",ao.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new ao("option "+i+" must be "+n,ao.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ao("Unknown option "+i,ao.ERR_BAD_OPTION)}},validators:li},di=ui.validators;class pi{constructor(e){this.defaults=e||{},this.interceptors={request:new Ao,response:new Ao}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Go(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ui.assertOptions(n,{silentJSONParsing:di.transitional(di.boolean),forcedJSONParsing:di.transitional(di.boolean),clarifyTimeoutError:di.transitional(di.boolean),legacyInterceptorReqResOrdering:di.transitional(di.boolean)},!1),null!=r&&(Yr.isFunction(r)?t.paramsSerializer={serialize:r}:ui.assertOptions(r,{encode:di.function,serialize:di.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ui.assertOptions(t,{baseUrl:di.spelling("baseURL"),withXsrfToken:di.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Yr.merge(o.common,o[t.method]);o&&Yr.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete o[e]}),t.headers=oo.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||wo;n&&n.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[si.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(;d<u;){const t=a[d++],n=a[d++];try{p=t(p)}catch(e){n.call(this,e);break}}try{c=si.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return yo(Vo((e=Go(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Yr.forEach(["delete","get","head","options"],function(e){pi.prototype[e]=function(t,n){return this.request(Go(n||{},{method:e,url:t,data:(n||{}).data}))}}),Yr.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,o){return this.request(Go(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}pi.prototype[e]=t(),"query"!==e&&(pi.prototype[e+"Form"]=t(!0))});const hi=pi;class fi{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Fo(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new fi(function(t){e=t}),cancel:e}}}const gi=fi,mi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(mi).forEach(([e,t])=>{mi[t]=e});const vi=mi,yi=function e(t){const n=new hi(t),r=or(hi.prototype.request,n);return Yr.extend(r,hi.prototype,n,{allOwnKeys:!0}),Yr.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Go(t,n))},r}(To);yi.Axios=hi,yi.CanceledError=Fo,yi.CancelToken=gi,yi.isCancel=Io,yi.VERSION=Yo,yi.toFormData=po,yi.AxiosError=ao,yi.Cancel=yi.CanceledError,yi.all=function(e){return Promise.all(e)},yi.spread=function(e){return function(t){return e.apply(null,t)}},yi.isAxiosError=function(e){return Yr.isObject(e)&&!0===e.isAxiosError},yi.mergeConfig=Go,yi.AxiosHeaders=oo,yi.formToJSON=e=>Do(Yr.isHTMLForm(e)?new FormData(e):e),yi.getAdapter=ii,yi.HttpStatusCode=vi,yi.default=yi;const Ai=yi,wi=e=>{const[t,n]=(0,y.useState)({}),[r,o]=(0,y.useState)([]),[a,s]=(0,y.useState)(!0),l=kt(e=>e.ampp?.user?.email||""),c=kt(e=>e.ampp?.user?.id||"");(0,y.useEffect)(()=>{(async()=>{try{const e=b.GVBase.get().getConfig().baseUri,t=b.GVBase.get().auth.getToken(),n=await Ai.get(`${e}/cluster/store/api/store/apps`,{headers:{Authorization:`Bearer ${t}`}});n.data?.apps&&o(n.data.apps)}catch(e){console.error("Failed to fetch apps for feature request:",e)}finally{s(!1)}})()},[]);const u=(0,y.useMemo)(()=>{const e=["Platform"];if(r.length>0){const t=r.map(e=>e.metaData?.en?.name||e.id).filter(e=>e).sort((e,t)=>e.localeCompare(t));e.push(...t)}return e},[r]);e.onClose(async n=>{if(n){const{title:n,description:o,email:i,appSelection:a}=t;if(!n||!o)return!1;let s=e.appId||"";!e.appId&&a&&(s=(e=>{if("Platform"===e)return"platform";const t=r.find(t=>(t.metaData?.en?.name||t.id)===e);return t?.id||e})(a));try{const e=b.GVBase.get().getConfig().baseUri,t=b.GVBase.get().auth.getToken();await Ai.post(`${e}/cluster/store/api/feature-requests`,{appId:s,title:n,description:o,customerAccountId:c,customerEmail:i||l},{headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}})}catch(e){return console.error("Failed to submit feature request:",e),!1}}return!0});const d=(0,y.useMemo)(()=>{const t={type:"object",properties:{}};return e.appId||(t.properties.appSelection={type:"string",title:"Application",enum:u,default:"Platform"}),t.properties.title={type:"string",title:"Feature Title"},t.properties.description={type:"string",title:"Feature Description"},t.properties.email={type:"string",title:"Email Address",default:l},t},[e.appId,u,l]);return a?(0,i.jsx)("div",{style:{height:"150px"},children:(0,i.jsx)(_.GVLoading,{})}):(0,i.jsx)(_.GVForm,{uiSchema:{description:{"ui:widget":"textarea"}},schema:d,onChange:({formData:e})=>{n(e)},formData:t,children:(0,i.jsx)("span",{})})},bi={"platform-status":"platformAlerts","weekly-release-digest":"weeklyDigest","news-announcements":"newsAnnouncements","system-package-release":"systemPackageReleases"},_i={platformAlerts:"platform-status",weeklyDigest:"weekly-release-digest",newsAnnouncements:"news-announcements",systemPackageReleases:"system-package-release"},Ci=e=>{const[t,n]=(0,y.useState)({newsAnnouncements:!1,platformAlerts:!1,systemPackageReleases:!1,weeklyDigest:!1}),[r,o]=(0,y.useState)(null),a=kt(e=>e.ampp?.user?.email),s=kt(e=>e.ampp?.system?.platformUri||b.GVBase.get()?.getConfig()?.platformUri||"");return(0,y.useEffect)(()=>{(async()=>{const e=await Ai.get(`${b.GVBase.get().getConfig().baseUri}/cluster/store/api/store/alerts/subscription`,{params:{email:a},headers:{Authorization:`Bearer ${b.GVBase.get().auth.getToken()}`}}),t=e.data?.data||null;o(t);const r={newsAnnouncements:!1,platformAlerts:!1,systemPackageReleases:!1,weeklyDigest:!1};t?.alertTypes&&t.alertTypes.forEach(e=>{const t=bi[e];t&&(r[t]=!0)}),n(r)})()},[a]),e.onClose(async e=>{if(!e)return!0;const n=b.GVBase.get().getConfig().baseUri,o={Authorization:`Bearer ${b.GVBase.get().auth.getToken()}`},i=[];Object.entries(t).forEach(([e,t])=>{if(t){const t=_i[e];t&&i.push(t)}});try{if(r?.id)if(0===i.length)await Ai.delete(`${n}/cluster/store/api/store/alerts/subscription/${r.id}`,{headers:o});else{const e={alertTypes:i};i.includes("platform-status")&&(e.platformUri=s),await Ai.put(`${n}/cluster/store/api/store/alerts/subscription/${r.id}`,e,{headers:o})}else if(i.length>0){const e={alertTypes:i,email:a};i.includes("platform-status")&&(e.platformUri=s),await Ai.post(`${n}/cluster/store/api/store/alerts/subscribe`,e,{headers:o})}}catch(e){console.error("Failed to save subscription:",e)}return!0}),(0,i.jsxs)("div",{className:"subscriptions-modal",style:{display:"flex",flexDirection:"column",gap:"12px"},children:[(0,i.jsx)("div",{className:t.newsAnnouncements?"activeType subType":"subType",onClick:()=>n(e=>({...e,newsAnnouncements:!e.newsAnnouncements})),children:"News Announcements"}),(0,i.jsx)("div",{className:t.platformAlerts?"activeType subType":"subType",onClick:()=>n(e=>({...e,platformAlerts:!e.platformAlerts})),children:"Platform alerts and issues"}),(0,i.jsx)("div",{className:t.systemPackageReleases?"activeType subType":"subType",id:"systemPackageReleases",onClick:()=>n(e=>({...e,systemPackageReleases:!e.systemPackageReleases})),children:"System package releases"}),(0,i.jsx)("div",{id:"weeklyDigest",className:t.weeklyDigest?"activeType subType":"subType",onClick:()=>n(e=>({...e,weeklyDigest:!e.weeklyDigest})),children:"Weekly release digest"})]})},{GVMenuButton:Ei,GVMenuDivider:Si,GVMenuItem:Oi}=_.GVMenu;class xi extends w().Component{constructor(e){super(e);const{__GVCONFIG__:t}=window,{isGVOne:n}=t;this.state={userOpen:!1,isGVOne:n}}handleHelpClick=()=>{const{__GVCONFIG__:e}=window,{baseUri:t}=e;window.open(`${t}/cluster/store/docshub`,"_blank")};handleSubscriptionsClick=()=>{this.props.openModalAction({id:"subscriptions-modal",title:"Subscription Preferences",content:(0,i.jsx)(Ci,{}),buttons:_.GVModalDefaultButtons})};handleFeatureRequestClick=()=>{this.props.openModalAction({id:"feature-request-modal",title:"Suggest a Feature",content:(0,i.jsx)(wi,{}),buttons:_.GVModalDefaultButtons})};render(){return(0,i.jsx)("span",{className:"gv-ampp-user-control",children:(0,i.jsxs)(_.GVMenu,{className:"user-menu",menuButton:(0,i.jsx)(Ei,{id:"usercontrols-button",children:(0,i.jsx)(_.GVIcon,{icon:"settings-user-menubar",active:this.state.userOpen,className:"gv-ampp-user-control-icon"})},"usercontrols-icon"),children:[this.props.user&&(0,i.jsxs)(Oi,{id:"usercontrols-logged-in",disabled:!0,children:[(0,i.jsx)("span",{className:"gv-ampp-user-control-left",children:"Logged in"}),(0,i.jsxs)("span",{style:{display:"inline-block"},children:[this.props.user.firstName," ",this.props.user.lastName]})]},"usercontrols-logged-in"),this.props.user&&(0,i.jsxs)(Oi,{id:"usercontrols-account",disabled:!0,children:[(0,i.jsx)("span",{className:"gv-ampp-user-control-left",children:"Tenancy"}),(0,i.jsx)("span",{style:{display:"inline-block"},children:this.props.user.account})]},"usercontrols-account"),this.props.user&&(0,i.jsx)(Si,{},"usercontrols-divider"),this.renderItems(),(0,i.jsx)(Oi,{id:"usercontrols-help",onClick:this.handleHelpClick,children:"Help"},"usercontrols-help"),b.GVPlatform.get().getConfig().applicationId&&(0,i.jsx)(Oi,{id:"usercontrols-logging",onClick:()=>{const e=this.props.location?.pathname;"/logging"!==e?(this.props.setPreviousLocationAction(e),this.props.pushAction("/logging")):this.props.pushAction(this.props.helpPrevious)},children:"/logging"!==this.props.location?.pathname?"Logging Settings":"Exit Logging Settings"},"usercontrols-logging"),this.props.user&&(0,i.jsx)(Oi,{onClick:this.handleSubscriptionsClick,id:"subscriptions",children:"Subscription Preferences"},"subscriptions"),this.props.user&&(0,i.jsx)(Oi,{onClick:this.handleFeatureRequestClick,id:"feature-request",children:"Suggest a Feature"},"feature-request"),this.state.isGVOne&&this.props.userAccesses?.filter(e=>e.enabled).length>1&&(0,i.jsx)(Oi,{id:"usercontrols-switchacc",onClick:()=>b.GVPlatform.get().auth.switchAccount("owner"),children:"Switch Account"},"usercontrols-switchacc"),(0,i.jsx)(Oi,{id:"usercontrols-logout",onClick:()=>b.GVPlatform.get().auth.logout(),children:"Logout"},"usercontrols-logout")]})})}renderItems(){return Vn()(this.props.userMenuItems,e=>"separator"===e?(0,i.jsx)(Si,{},Kn()):"string"==typeof e?null:(0,i.jsx)(Oi,{onClick:e.action,disabled:e.disabled,children:e.name},Kn()))}}const Di=rr(xn(e=>({location:h()(e,"router.location",{pathname:"/"}),user:h()(e,"ampp.user",{}),userAccesses:h()(e,"ampp.userAccesses",[]),helpPrevious:h()(e,"ampp.helpPrevious","/")}),e=>qe({...W,...S},e))(xi));var Pi=c(1591),Mi=c(3373),Ti=c.n(Mi),Ri=c(7331),Ii=c.n(Ri);class Fi extends b.GVBaseBase{static get(e){return this.instance||(this.instance=new Fi(e)),this.instance}constructor(e){e||(e=b.GVBase.get()),super(window.location.origin+e.getConfig().proxyPath,"",e)}async getFile(){return(await this.get("/help.md")).data}}class ki extends w().PureComponent{textRef;shadowRef;errorRef;help;constructor(e){super(e),this.state={scroll:!1},this.errorRef=w().createRef(),this.textRef=w().createRef(),this.shadowRef=w().createRef(),this.help=Fi.get()}async componentDidMount(){try{const e=await this.help.getFile();this.setState({help:e})}catch(e){this.setState({help:"\n# No help is available for the application\n"})}this.updateOpacity()}updateOpacity=Ii()(()=>{if(this.textRef?.current)if(this.textRef.current.scrollHeight>this.textRef.current.clientHeight){this.setState({scroll:!0});const e=(this.textRef.current.scrollHeight-this.textRef.current.scrollTop-this.textRef.current.clientHeight)/this.textRef.current.scrollHeight*4;this.shadowRef.current.style.opacity=`${e}`}else this.setState({scroll:!1}),this.shadowRef.current.style.opacity="0"},30,{trailing:!0});componentDidUpdate(){this.errorRef?.current&&this.errorRef.current.resetError(),this.updateOpacity()}onTextScroll=()=>{this.updateOpacity()};render(){const{helpPrevious:e,location:t}=this.props,{scroll:n}=this.state;return(0,i.jsxs)(_.GVPanel,{title:"Help",padded:!0,buttons:t&&!t.pathname.startsWith("/embedded")?[{icon:"arrows-back-button",action:()=>{this.props.pushAction(e&&"/help"!==e?e:"/")}}]:[],children:[(0,i.jsx)("div",{className:Ti()({"markdown-editor-parsed-content":!0,"markdown-editor-parsed-content-scrollable":n}),style:{overflowY:"auto"},ref:this.textRef,onScroll:this.onTextScroll,children:(0,i.jsx)(_.GVErrorBoundary,{ref:this.errorRef,children:(0,i.jsx)(_.GVMarkdown,{source:this.state.help})})}),(0,i.jsx)("div",{className:"markdown-editor-parsed-shadow",ref:this.shadowRef})]})}}const Li=rr(xn(e=>({helpPrevious:h()(e,"ampp.helpPrevious","/")}),e=>qe({...W,...S},e))(ki)),Bi=C.GVDebug.extend("ips").extend("modal").extend("inputselect"),Ni=Bi.extend("render");class ji extends w().PureComponent{constructor(e){super(e),this.state={config:e.config??{categoryName:""}},Bi("constructor",this.state),e.onClose?.(this.onClose)}onClose=async e=>(!0===e&&(this.props.id>=0?this.props.updateEntryAction(this.props.id,this.state.config):this.props.addEntryAction(this.state.config),this.props.saveLoggingConfigAcion()),!0);onFormChange=({formData:e})=>{this.setState({config:e})};render(){return Ni("State",this.state),Ni("Props",this.props),(0,i.jsxs)("div",{className:"logging-category-modal",children:[this.state.config.fromFile&&(0,i.jsx)("p",{children:"This rule is from a configuration file and only the level can be changed"}),(0,i.jsx)(_.GVForm,{schema:{type:"object",properties:{loggerName:{type:"string",title:"Logger",readOnly:this.state.config.fromFile,default:"GrassValley"},categoryName:{type:"string",title:"Category Regex",readOnly:this.state.config.fromFile,default:""},level:{type:"string",title:"Minimum Log Level",default:null,oneOf:[{const:null,title:"None"},{const:b.GVLogLevel.Fatal},{const:b.GVLogLevel.Error},{const:b.GVLogLevel.Warning},{const:b.GVLogLevel.Info},{const:b.GVLogLevel.Debug},{const:b.GVLogLevel.Trace}]},defaultLevel:{type:"string",title:"Default Log Level",default:null,readOnly:!0,oneOf:[{const:null,title:"None"},{const:b.GVLogLevel.Fatal},{const:b.GVLogLevel.Error},{const:b.GVLogLevel.Warning},{const:b.GVLogLevel.Info},{const:b.GVLogLevel.Debug},{const:b.GVLogLevel.Trace}]},providerName:{type:"string",title:"Write To",default:"Platform",readOnly:this.state.config.fromFile,oneOf:[{const:"*",title:"All"},{const:"^(Platform|Console)$",title:"Platform and Console"},{const:"Platform"},{const:"Console"}]}}},uiSchema:{loggerName:{"ui:disabled":this.state.config.fromFile},defaultLevel:{"ui:disabled":this.state.config.fromFile,"ui:widget":this.state.config.fromFile?void 0:"hidden"},categoryName:{"ui:disabled":this.state.config.fromFile},providerName:{"ui:disabled":this.state.config.fromFile}},onChange:this.onFormChange,formData:this.state.config,children:(0,i.jsx)("span",{})})]})}}const Ui=xn(null,e=>qe({...je,...W,...S},e))(ji);class Vi extends w().PureComponent{errorRef;constructor(e){super(e),this.errorRef=w().createRef()}async componentDidMount(){try{await this.props.getConfigAction()}catch{}}componentDidUpdate(){this.errorRef?.current&&this.errorRef.current.resetError()}addNew=()=>{this.props.openModalAction({id:"addLoggingCategory",content:(0,i.jsx)(Ui,{id:-1}),buttons:_.GVModalDefaultButtons,title:"Add New Logging Rule"})};save=()=>{this.props.saveLoggingConfigAcion()};delete=e=>{this.props.deleteEntryAction(e)};default=e=>{const t=this.props.config.rules[e];this.props.updateEntryAction(e,{...t,level:t.defaultLevel}),this.save()};render(){const{config:e,removeButtons:t=!1}=this.props;return(0,i.jsxs)(i.Fragment,{children:[!t&&(0,i.jsxs)(_.GVButtons,{children:[(0,i.jsx)(_.GVButton,{icon:"comment-add",onClick:this.addNew}),(0,i.jsx)(_.GVButton,{icon:"interface-save",onClick:this.save}),(0,i.jsx)(_.GVButton,{icon:"interface-undo",onClick:this.props.getConfigAction})]}),(0,i.jsx)(_.GVTable,{tableId:"gv-apploggingconfiginterface",rowData:e.rules??[],onRowDoubleClick:(e,t)=>this.props.openModalAction({id:"editLoggingCategory",content:(0,i.jsx)(Ui,{id:t.original.idx,config:t.original}),buttons:_.GVModalDefaultButtons,title:"Edit Logging Rule"}),columnDefs:[{id:"loggerName",accessorKey:"loggerName",header:"Logger Name Regex"},{id:"categoryName",accessorKey:"categoryName",header:"Category Regex"},{id:"level",accessorKey:"level",header:"Min Level"},{id:"providerName",accessorKey:"providerName",header:"Write To",valueGetter:(e,t)=>{switch(e.original[t]){case"*":return"All";case"^(Platform|Console)$":return"Platform and Console";default:return e.original[t]}}},{id:"fromFile",header:"Options",cellRenderer:(e,t,n)=>{const r=n.original,o=e.getValue();return(0,i.jsxs)(_.GVButtons,{children:[(0,i.jsx)(_.GVButton,{disabled:!r.fromFile||r.level===r.defaultLevel,onClick:()=>this.default(r.idx),style:r.fromFile?"primary":"secondary",children:"Reset"}),(0,i.jsx)(_.GVButton,{disabled:null==o,onClick:()=>this.delete(r.idx),style:"danger",children:"Delete"})]})}}]})]})}}const Hi=xn(e=>({config:e.appLoggingConfig.config}),e=>qe({...je,...W,...S},e),null,{forwardRef:!0})(Vi);class Gi extends w().PureComponent{loggerRef;constructor(e){super(e),this.loggerRef=w().createRef()}render(){const{helpPrevious:e,location:t}=this.props;return(0,i.jsx)(_.GVPanel,{title:"Logging Settings",padded:!0,style:{flex:1},buttons:(t&&!t.pathname.startsWith("/embedded")?[{icon:"arrows-back-button",action:()=>{this.props.pushAction(e&&"/logging"!==e?e:"/")}}]:[]).concat([{icon:"interface-save",action:()=>{this.loggerRef.current.save()}},{icon:"comment-add",action:()=>{this.loggerRef.current.addNew()}},{icon:"interface-undo",action:()=>{this.props.getConfigAction()}}]),children:(0,i.jsx)(Hi,{ref:this.loggerRef,removeButtons:!0})})}}const Wi=rr(xn(e=>({helpPrevious:h()(e,"ampp.helpPrevious","/")}),e=>qe({...W,...S,...je},e))(Gi)),zi=({children:e,isAuthorized:t,authorized:n,authorizedRoles:r=[],loading:o=(0,i.jsx)(_.GVLoading,{})})=>{const a=(0,nr.useLocation)(),s=a?.pathname?.includes("/embedded"),l=kt(e=>e.ampp.user);if(!l)return o;if("function"==typeof t&&!1===t())return null;let c=!0;return"function"==typeof n&&(c=!!n(s,l)),r.length>0&&r.filter(e=>!l?.roles.includes(e)).length>0&&(c=!1),c?e:(0,i.jsx)(_.GVUnauthorised,{})};var $i=c(8317),Ki=c.n($i),Qi=c(373),qi=c.n(Qi);const Yi=C.GVDebug.extend("modal");class Xi extends y.Component{static getDerivedStateFromProps(e){return{onClose:v()(e.modals,(e,t)=>(e[t.id]=t.onClose,e),{})}}constructor(e){super(e),this.state={onClose:{}};try{qi().setAppElement(this.props.root??"#app")}catch(e){console.error(e)}}render(){return(0,i.jsx)("div",{className:"modals",style:{zIndex:2},children:this.renderModals()})}onClose=async(e,t,n,r)=>{if(Yi("onClose",t.id,e,r,t.disableOverlayClose),!1===e&&!0===r&&!0===t.disableOverlayClose)return!1;const o=this.childClose[t.id];if(o){const n=await o(e);if(Yi("onClose child",t.id,e,r,n),!1===n)return!1}const i=this.state.onClose[t.id];if(i){const o=await i(e,t,n,close);if(Yi("onClose modal",t.id,e,r,o),!1===o)return!1}return Yi("onClose closing",t.id),this.props.closeModalAction(t),this.childClose[t.id]&&(Yi("removeChildClose",t.id),delete this.childClose[t.id]),!0};childClose={};renderModals(){return Vn()(this.props.modals,(e,t)=>(0,i.jsx)(qi(),{isOpen:!0,onRequestClose:t=>{Yi("onRequestClose",e.id,!1,!0),this.onClose(!1,e,t,!0)},style:{content:{WebkitOverflowScrolling:"touch",background:"#2A323F",border:"none",borderRadius:"7px",bottom:"auto",boxShadow:"0px 0px 30px rgb(0, 0, 0)",color:"#878E9A",left:"auto",minWidth:"450px",outline:"none",overflow:"visible",padding:0,right:"auto",top:"auto"},overlay:{alignItems:"center",background:"rgba(0,0,0, 0.25)",bottom:0,display:"flex",justifyContent:"center",left:0,position:"fixed",right:0,top:0,zIndex:t+1}},children:(0,i.jsx)(_.GVErrorBoundary,{children:(0,y.createElement)(_.GVModal,{...g()(e,"content"),key:`modal-${t}`,onClose:this.onClose,addChildClose:t=>{Yi("addChildClose",e.id),this.childClose[e.id]=t}},this.getModalContent(e.id))})},`modal-${t}`))}getModalContent=e=>Le.get().get(e)}const Zi=xn(function(e){return{modals:e.modals}},function(e){return{closeModalAction:t=>e(W.closeModalAction(t))}})(Xi);var Ji=c(9514),ea=c.n(Ji),ta=c(1613);function na(){return na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},na.apply(this,arguments)}function ra(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const oa=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ia=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}const aa=y.createContext({isTransitioning:!1});new Map,y.startTransition,Ji.flushSync,y.useId;const sa="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,la=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ca=y.forwardRef(function(e,t){let n,{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=e,p=ra(e,oa),{basename:h}=y.useContext(nr.UNSAFE_NavigationContext),f=!1;if("string"==typeof c&&la.test(c)&&(n=c,sa))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=(0,ta.pb)(t.pathname,h);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:f=!0}catch(e){}let g=(0,nr.useHref)(c,{relative:o}),m=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=void 0===t?{}:t,l=(0,nr.useNavigate)(),c=(0,nr.useLocation)(),u=(0,nr.useResolvedPath)(e,{relative:a});return y.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,ta.AO)(c)===(0,ta.AO)(u);l(e,{replace:n,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d});return y.createElement("a",na({},p,{href:n||g,onClick:f||i?r:function(e){r&&r(e),e.defaultPrevented||m(e)},ref:t,target:l}))}),ua=y.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:o="",end:i=!1,style:a,to:s,viewTransition:l,children:c}=e,u=ra(e,ia),d=(0,nr.useResolvedPath)(s,{relative:u.relative}),p=(0,nr.useLocation)(),h=y.useContext(nr.UNSAFE_DataRouterStateContext),{navigator:f,basename:g}=y.useContext(nr.UNSAFE_NavigationContext),m=null!=h&&function(e,t){void 0===t&&(t={});let n=y.useContext(aa);null==n&&(0,ta.Oi)(!1);let{basename:r}=function(){let e=y.useContext(nr.UNSAFE_DataRouterContext);return e||(0,ta.Oi)(!1),e}(da.useViewTransitionState),o=(0,nr.useResolvedPath)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=(0,ta.pb)(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=(0,ta.pb)(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=(0,ta.B6)(o.pathname,a)||null!=(0,ta.B6)(o.pathname,i)}(d)&&!0===l,v=f.encodeLocation?f.encodeLocation(d).pathname:d.pathname,A=p.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;r||(A=A.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&g&&(w=(0,ta.pb)(w,g)||w);const b="/"!==v&&v.endsWith("/")?v.length-1:v.length;let _,C=A===v||!i&&A.startsWith(v)&&"/"===A.charAt(b),E=null!=w&&(w===v||!i&&w.startsWith(v)&&"/"===w.charAt(v.length)),S={isActive:C,isPending:E,isTransitioning:m},O=C?n:void 0;_="function"==typeof o?o(S):[o,C?"active":null,E?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let x="function"==typeof a?a(S):a;return y.createElement(ca,na({},u,{"aria-current":O,className:_,ref:t,style:x,to:s,viewTransition:l}),"function"==typeof c?c(S):c)});var da,pa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(da||(da={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(pa||(pa={}));const ha=({children:e,to:t,...n})=>{const r=(0,nr.useLocation)();return(0,i.jsx)(ca,{to:(r.pathname.startsWith("/embedded")?"/embedded":"")+t,...n,children:e})},fa=({children:e,to:t,...n})=>{const r=(0,nr.useLocation)();return(0,i.jsx)(ua,{to:(r.pathname.startsWith("/embedded")?"/embedded":"")+t,...n,children:e})},ga=({link:e,hidden:t,props:n,icon:r,text:o})=>{const a=kt(e=>e.router.location.pathname),s=(0,nr.useLocation)(),l=s?.pathname?.includes("/embedded"),c=kt(e=>e.ampp.user);if("boolean"==typeof t&&!0===t||"function"==typeof t&&t(l,c))return null;if(n&&!n[0].endsWith("?"))return null;const u=a.split("/"),d=u.length>1&&u[u.length-1]===e,p=e.replace("/",":");return(0,i.jsx)(fa,{id:p,to:`/${e}`,className:"gv-menubar-tab",children:(0,i.jsxs)("div",{className:Ti()({"gv-menubar-tab-internal":!0,"gv-menubar-tab-active":d}),children:[r&&(0,i.jsx)("div",{className:"gv-menubar-tab-icon",children:(0,i.jsx)(_.GVIcon,{color:d?"#408FE0":void 0,icon:r,active:d})}),(0,i.jsx)("span",{className:Ti()({"gv-menubar-tab-text":!0,"gv-menubar-tab-text-icon":!!r}),children:o})]})})},ma=({index:e,message:t})=>(0,i.jsx)("div",{style:{position:"relative"},className:"received",children:(0,i.jsx)(_.GVMarkdown,{source:t.message})},e);var va=c(9463),ya=c.n(va);const Aa="gv-ampp-assist-pip-size",wa=({children:e,width:t=460,height:n=560,dragHandleSelector:r,dragCancelSelector:o})=>{const a=y.useRef(null),[s,l]=y.useState(!1),[c,u]=y.useState(!1),d=y.useMemo(()=>{if("undefined"==typeof window)return{width:t,height:n};try{const e=window.localStorage.getItem(Aa);if(!e)return{width:t,height:n};const r=JSON.parse(e),o=Number(r?.width),i=Number(r?.height);return{width:Number.isFinite(o)?o:t,height:Number.isFinite(i)?i:n}}catch(e){return console.warn("Failed to parse stored AMPP Assist size",e),{width:t,height:n}}},[n,t]),[p,h]=y.useState(d),f=y.useCallback(e=>"undefined"==typeof window?{x:0,y:0}:{x:Math.max(window.innerWidth-e-120,20),y:40},[]),[g,m]=y.useState(()=>f(d.width)),v=y.useRef(null),A=y.useRef({}),w=y.useRef(p),b=y.useMemo(()=>({width:p.width,height:p.height}),[p.height,p.width]),_=y.useCallback(e=>{if("undefined"!=typeof window)try{window.localStorage.setItem(Aa,JSON.stringify(e))}catch(e){console.warn("Failed to persist AMPP Assist size",e)}},[]);y.useEffect(()=>{w.current=p},[p]),y.useEffect(()=>{"undefined"!=typeof window&&h(e=>{const t=Math.max(320,window.innerWidth-40),n=Math.max(320,window.innerHeight-40),r=Math.min(e.width,t),o=Math.min(e.height,n);if(r===e.width&&o===e.height)return e;const i={width:r,height:o};return m(e=>{const t=Math.max(0,window.innerWidth-r),n=Math.max(0,window.innerHeight-o);return{x:Math.min(e.x,t),y:Math.min(e.y,n)}}),w.current=i,_(i),i})},[_]);const C=y.useCallback((e,t)=>{m({x:t.x,y:t.y})},[]),E=y.useMemo(()=>{const e=[".gv-resizable-pip__resize-handle"];return o&&e.push(o),e.join(", ")},[o]),S=y.useCallback((e,t,n)=>{if("undefined"==typeof window)return;const r=window.innerWidth,o=window.innerHeight;let i=e.width,a=e.height,s=e.position.x,l=e.position.y;if(e.edges.left){const n=e.width-t,r=e.width+e.position.x,o=Math.min(Math.max(n,320),r),a=e.width-o;i=o,s=e.position.x+a}if(e.edges.right){const n=e.width+t,o=r-e.position.x;i=Math.min(Math.max(n,320),o)}if(e.edges.top){const t=e.height-n,r=e.height+e.position.y,o=Math.min(Math.max(t,320),r),i=e.height-o;a=o,l=e.position.y+i}if(e.edges.bottom){const t=e.height+n,r=o-e.position.y;a=Math.min(Math.max(t,320),r)}const c=Math.max(0,r-i),u=Math.max(0,o-a);s=Math.min(Math.max(s,0),c),l=Math.min(Math.max(l,0),u);const d={width:i,height:a};h(d),w.current=d,m({x:s,y:l})},[]),O=y.useCallback(()=>{if("undefined"!=typeof window){const{move:e,up:t}=A.current;e&&window.removeEventListener("pointermove",e),t&&window.removeEventListener("pointerup",t)}A.current={},v.current=null,u(!1),"undefined"!=typeof document&&(document.body.style.cursor=""),_(w.current)},[_]);y.useEffect(()=>()=>{O()},[O]);const x=y.useCallback((e,t)=>n=>{if(n.preventDefault(),n.stopPropagation(),v.current={pointerX:n.clientX,pointerY:n.clientY,width:p.width,height:p.height,position:g,edges:e},"undefined"==typeof window)return;"undefined"!=typeof window&&window.getSelection&&window.getSelection()?.removeAllRanges(),u(!0),"undefined"!=typeof document&&(document.body.style.cursor=t);const r=e=>{if(e.preventDefault(),!v.current)return;const t=e.clientX-v.current.pointerX,n=e.clientY-v.current.pointerY;S(v.current,t,n)},o=()=>{O()};A.current={move:r,up:o},window.addEventListener("pointermove",r),window.addEventListener("pointerup",o)},[O,g,p.height,p.width,S]);return(0,i.jsx)(ya(),{nodeRef:a,position:g,bounds:"body",handle:r,cancel:E,onStart:()=>{l(!0)},onDrag:C,onStop:()=>l(!1),children:(0,i.jsxs)("div",{className:`gv-resizable-pip${s?" dragging":""}${c?" resizing":""}`,ref:a,style:b,children:[(0,i.jsx)("div",{className:"gv-resizable-pip__resize-handle gv-resizable-pip__resize-handle--top",onPointerDown:x({top:!0},"ns-resize")}),(0,i.jsx)("div",{className:"gv-resizable-pip__resize-handle gv-resizable-pip__resize-handle--right",onPointerDown:x({right:!0},"ew-resize")}),(0,i.jsx)("div",{className:"gv-resizable-pip__resize-handle gv-resizable-pip__resize-handle--bottom",onPointerDown:x({bottom:!0},"ns-resize")}),(0,i.jsx)("div",{className:"gv-resizable-pip__resize-handle gv-resizable-pip__resize-handle--left",onPointerDown:x({left:!0},"ew-resize")}),(0,i.jsx)("div",{className:"gv-resizable-pip__resize-handle gv-resizable-pip__resize-handle--top-left",onPointerDown:x({top:!0,left:!0},"nwse-resize")}),(0,i.jsx)("div",{className:"gv-resizable-pip__resize-handle gv-resizable-pip__resize-handle--top-right",onPointerDown:x({top:!0,right:!0},"nesw-resize")}),(0,i.jsx)("div",{className:"gv-resizable-pip__resize-handle gv-resizable-pip__resize-handle--bottom-right",onPointerDown:x({bottom:!0,right:!0},"nwse-resize")}),(0,i.jsx)("div",{className:"gv-resizable-pip__resize-handle gv-resizable-pip__resize-handle--bottom-left",onPointerDown:x({bottom:!0,left:!0},"nesw-resize")}),(0,i.jsx)("div",{className:"gv-resizable-pip__content",children:e})]})})},ba=["Critical","Major","Minor","Information"],_a=5,Ca=255,Ea=5e3,Sa=[],Oa=(e,t)=>{const n=(e||"").split("."),r=(t||"").split("."),o=Math.max(n.length,r.length);for(let e=0;e<o;e++){const t=n[e]??"0",o=r[e]??"0",i=Number(t),a=Number(o);if(Number.isNaN(i)||Number.isNaN(a)){if(t!==o)return t<o?-1:1}else if(i!==a)return i-a}return 0},xa=e=>{const t=e?.trim();if(!t)return null;const n=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]{2}))?$/.exec(t);if(!n)return null;const r=Number(n[1]),o=Number(n[2]),i=Number(n[3]),a=Number(n[4]),s=Number(n[5]),l=n[6]?Number(n[6]):0;return[r,o,i,a,s,l].some(e=>Number.isNaN(e))?null:new Date(r,o-1,i,a,s,l)},Da=e=>{if(null==e)return"";const t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return"";const n=e=>e.toString().padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`},Pa=e=>{const t=[],n=e.incidentDateTimeLocal?.trim(),r=e.incidentDateTimeUtc?.trim();if(r||n){const e=[r?`Incident time (UTC): ${r}`:void 0].filter(Boolean);n&&e.unshift(`Incident time (local): ${n}`),t.push(e.join("\n"))}if(e.affectedWorkloads&&e.affectedWorkloads.length>0){const n=e.affectedWorkloads.map(e=>e.name?`${e.name} (${e.id})`:e.id).join(", ");t.push(`Affected workloads: ${n}`)}const o=e.affectedDashboards?.trim();o&&t.push(`Affected dashboards: ${o}`);const i=e.baseDescription?.trim();i&&t.push(i);const a=e.conversationTranscript?.trim();return!a||i&&i.includes(a)||t.push(`Conversation transcript:\n${a}`),t.join("\n\n")},Ma=({value:e,onChange:t,onMentionsChange:n,placeholder:r,rows:o=3,disabled:a,jiraApiBase:s,authToken:l})=>{const[c,u]=(0,y.useState)([]),[d,p]=(0,y.useState)(!1),[h,f]=(0,y.useState)(0),[g,m]=(0,y.useState)(-1),[v,A]=(0,y.useState)({top:0,left:0}),[w,b]=(0,y.useState)([]),_=(0,y.useRef)(null),C=(0,y.useRef)(null),E=(0,y.useRef)(null),S=(0,y.useRef)(null),O=(0,y.useCallback)(e=>{if(E.current&&clearTimeout(E.current),e.length<2)return u([]),void p(!1);E.current=setTimeout(async()=>{try{const t=new URLSearchParams({query:e,maxResults:"25"}),n=await fetch(`${s}/users/search?${t.toString()}`,{headers:{Authorization:`Bearer ${l}`}});if(!n.ok)return u([]),void p(!1);const r=await n.json(),o=r?.data,i=o?.data?.users??o?.users??r?.data?.users??r?.users??[],a=e.toLowerCase().split(/\s+/).filter(Boolean),c=a.length>1?i.filter(e=>{const t=e.displayName.toLowerCase();return a.every(e=>t.includes(e))}):i;u(c),p(c.length>0),f(0),S.current&&c.length>0&&A(S.current),0===c.length&&e.length>30&&m(-1)}catch{u([]),p(!1)}},300)},[s,l]);(0,y.useEffect)(()=>()=>{E.current&&clearTimeout(E.current)},[]);const x=(0,y.useCallback)((e,t)=>((e,t)=>t.filter(t=>e.includes(`@${t.displayName}`)))(e,t),[]),D=(0,y.useCallback)(e=>{const r=e.target.value;t(r);const o=e.target.selectionStart,i=r.substring(0,o),a=i.lastIndexOf("@");if(a>=0&&(0===a||/\s/.test(i[a-1]))){const t=i.substring(a+1);if(!w.some(e=>t===e.displayName||t.startsWith(`${e.displayName} `)||t.startsWith(`${e.displayName}\n`))&&!t.includes("\n")&&t.length>0){m(a);const n=e.target,i=n.getBoundingClientRect(),s=parseInt(window.getComputedStyle(n).lineHeight,10)||20,l=(r.substring(0,o).match(/\n/g)||[]).length;S.current={top:i.top+(l+1)*s+4,left:i.left},O(t)}else p(!1)}else p(!1),m(-1);const s=x(r,w);s.length!==w.length&&(b(s),n?.(s))},[t,O,x,w,n]),P=(0,y.useCallback)(r=>{const o=`@${r.displayName}`,i=e.substring(0,g),a=_.current,s=a?.selectionStart??e.length,l=e.substring(s);t(`${i}${o} ${l}`);const c={accountId:r.accountId,displayName:r.displayName},d=w.some(e=>e.accountId===c.accountId)?w:[...w,c];b(d),n?.(d),p(!1),u([]),m(-1),setTimeout(()=>{if(a){a.focus();const e=i.length+o.length+1;a.setSelectionRange(e,e)}},0)},[e,g,w,t,n]),M=(0,y.useCallback)(r=>{if("Backspace"===r.key&&!r.ctrlKey&&!r.metaKey){const o=r.currentTarget,i=o.selectionStart,a=o.selectionEnd;if(i===a&&i>0){const a=w.find(t=>{const n=`@${t.displayName}`;let r=0;for(;r<e.length;){const t=e.indexOf(n,r);if(-1===t)break;const o=t+n.length;if(i>t&&i<=o)return!0;r=t+1}return!1});if(a){const i=`@${a.displayName}`,s=e.indexOf(i);if(-1!==s){r.preventDefault();const l=e.substring(0,s)+e.substring(s+i.length);t(l);const c=w.filter(e=>e.accountId!==a.accountId||l.includes(`@${e.displayName}`));return b(c),n?.(c),void setTimeout(()=>{o.focus(),o.setSelectionRange(s,s)},0)}}}}d&&0!==c.length&&("ArrowDown"===r.key?(r.preventDefault(),f(e=>e<c.length-1?e+1:0)):"ArrowUp"===r.key?(r.preventDefault(),f(e=>e>0?e-1:c.length-1)):"Enter"===r.key||"Tab"===r.key?(r.preventDefault(),P(c[h])):"Escape"===r.key&&(r.preventDefault(),p(!1)))},[d,c,h,P,w,e,t,n]);return(0,y.useEffect)(()=>{const e=e=>{const t=e.target,n=_.current&&_.current.contains(t),r=C.current&&C.current.contains(t);n||r||p(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,i.jsxs)("div",{style:{position:"relative"},children:[(0,i.jsx)("textarea",{ref:_,value:e,onChange:D,onKeyDown:M,placeholder:r,rows:o,disabled:a,className:"gv-textarea",style:{width:"100%",boxSizing:"border-box"}}),d&&c.length>0&&ea().createPortal((0,i.jsx)("div",{ref:C,style:{position:"fixed",top:`${v.top}px`,left:`${v.left}px`,zIndex:9999,background:"#1e2631",border:"1px solid #0a121d",borderRadius:"4px",boxShadow:"0 4px 12px rgba(0,0,0,0.4)",maxHeight:"200px",overflowY:"auto",minWidth:"260px",maxWidth:"360px"},children:c.map((e,t)=>(0,i.jsxs)("div",{onMouseDown:t=>{t.preventDefault(),P(e)},onMouseEnter:()=>f(t),style:{padding:"8px 12px",cursor:"pointer",background:t===h?"#408fe0":"transparent",color:t===h?"#fff":"rgba(255,255,255,0.9)",display:"flex",flexDirection:"column",gap:"2px"},children:[(0,i.jsx)("span",{style:{fontWeight:500},children:e.displayName}),e.emailAddress&&(0,i.jsx)("span",{style:{fontSize:"0.85em",opacity:.7},children:e.emailAddress})]},e.accountId))}),document.body)]})},Ta=({workloadName:e,packageName:t,componentName:n,currentVersion:r,latestVersion:o})=>{const a=w().useMemo(()=>{try{return b.GVBase.get()}catch(e){return void console.warn("GVBase not initialized",e)}},[]),[s,l]=w().useState(""),[c,u]=w().useState(!0),[d,p]=w().useState(null),h=w().useMemo(()=>{const e=(n||t||"").trim(),o=(r||"").trim();return e&&o?`${e} ${o}`:e||o},[n,t,r]);return w().useEffect(()=>{if(!a||!h)return void u(!1);let e=!1;return(async()=>{u(!0),p(null),l("");try{const t=`${a.getConfig()?.baseUri?.replace(/\/$/,"")||""}/cluster/store/api/assist/stream`,n=a.auth?.getToken?.();if(!n)return void p("No auth token available to call the Version Checker.");const r={message:h,personaName:"Version Checker",chatHistory:[],maxTokens:800,temperature:.3},o=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(r)});if(!o.ok||!o.body)return void p(`Version Checker request failed: ${o.status} ${o.statusText}`);if(e)return;let i="",s=!1;await Yn(o.body,{onChunk:t=>{e||(s||(s=!0,u(!1)),i+=t,l(er(i)))}}),e||l(er(i))}catch(t){e||p(`Could not get Version Checker response: ${t?.message??t}`)}finally{e||u(!1)}})(),()=>{e=!0}},[a,h]),(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"12px",minWidth:"480px",maxWidth:"680px"},children:[(0,i.jsx)(_.GVNotification,{variant:"warning",message:o?`This workload is running ${r||"an unknown version"} but the latest available version is ${o}.`:"This workload may not be on the latest version."}),(0,i.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"auto 1fr",gap:"4px 12px",fontSize:"13px",color:"rgba(255,255,255,0.85)"},children:[e&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{opacity:.7},children:"Workload"}),(0,i.jsx)("div",{children:e})]}),t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{opacity:.7},children:"Package"}),(0,i.jsx)("div",{children:t})]}),r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{opacity:.7},children:"Current version"}),(0,i.jsx)("div",{children:r})]}),o&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{opacity:.7},children:"Latest version"}),(0,i.jsx)("div",{children:o})]})]}),(0,i.jsx)("div",{style:{fontSize:"13px",fontWeight:600,color:"rgba(255,255,255,0.9)",marginTop:"4px"},children:"Version Checker says:"}),c&&(0,i.jsx)(_.GVLoading,{}),d&&(0,i.jsx)(_.GVNotification,{variant:"danger",message:d}),s&&(0,i.jsx)(_.GVMarkdown,{source:s})]})},Ra=(e,t)=>e&&t?.length?[...t].sort((e,t)=>t.displayName.length-e.displayName.length).reduce((e,t)=>{const n=`@${t.displayName}`,r=`@[${t.accountId}|${t.displayName}]`,o=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");return e.replace(o,r)},e):e??"",Ia=e=>{const{value:t,onChange:n,placeholder:r,disabled:o,formContext:a}=e,s=a?.selectedWorkloadVersionInfo,l=a?.openVersionCheckerModal;return(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,i.jsx)(_.GVTextInput,{style:"default",value:t??"",placeholder:r,disabled:o,onChange:e=>n(e)}),s?.isOutOfDate&&(0,i.jsx)("span",{role:"button",tabIndex:0,"aria-label":"Version out of date — click for details",title:`Workload is on ${s.currentVersion} — latest is ${s.latestVersion}. Click for details.`,onClick:l,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||l?.()},style:{cursor:"pointer",display:"flex",flexShrink:0},children:(0,i.jsx)(_.GVIcon,{icon:"notifications-warning-triangle",color:"rgb(254, 202, 123)"})})]})},Fa=e=>{const{value:t,onChange:n,placeholder:r,disabled:o,formContext:a,options:s}=e,l="number"==typeof s?.rows?s.rows:5;return(0,i.jsx)(Ma,{value:t||"",onChange:e=>{n?.(e),a?.setTranscriptValue?.(e)},onMentionsChange:a?.setTicketMentions,placeholder:r,rows:l,disabled:o,jiraApiBase:a?.jiraApiBase??"",authToken:a?.authToken??""})},ka=({defaultSummary:e="",defaultDescription:t="",defaultLabels:n=Sa,defaultWorkloadIds:r=Sa,defaultTimestamp:o="",contactEmail:a="",customerId:s="",requestType:l,defaultTranscript:c="",defaultComponent:u="",defaultVersion:d="",requiresTranscript:p=!1,setValid:h,onClose:f})=>{const g=kt(e=>e.ampp?.user?.account),m=kt(e=>e.ampp?.user?.email),v=In(),y=w().useMemo(()=>(g??s??"").trim(),[g,s]),A=w().useMemo(()=>(a||m||"").trim(),[a,m]),C=w().useMemo(()=>{try{return b.GVBase.get()}catch(e){return void console.warn("GVBase not initialized",e)}},[]),E=w().useMemo(()=>{const e=C?.getConfig()?.baseUri?.replace(/\/$/,"");return e?`${e}/cluster/store/api/store/jira`:""},[C]),S=w().useMemo(()=>{const e=(n??[]).map(e=>e?.trim()).filter(e=>!!e);return Array.from(new Set(e)).join(", ")},[n]),O=w().useMemo(()=>Da(o)||Da(new Date),[o]),[x,D]=w().useState(()=>({summary:"",description:"",incidentDateTimeLocal:O,priority:"Minor",labels:S,contact:A,affectedWorkloadId:r?.[0]??"",affectedDashboardIds:[],component:u,version:d})),[P,M]=w().useState([]),[T,R]=w().useState({}),[I,F]=w().useState([]),[k,L]=w().useState({}),[B,N]=w().useState({}),[j,U]=w().useState({}),[V,H]=w().useState([]),[G,z]=w().useState({}),[$,K]=w().useState(null),[Q,q]=w().useState(null),[Y,X]=w().useState(!1),[Z,J]=w().useState(!1),[ee,te]=w().useState({summary:!1,description:!1}),[ne,re]=w().useState(null),[oe,ie]=w().useState(!0),[ae,se]=w().useState(null),[le,ce]=w().useState([]),[ue,de]=w().useState(null),[pe,he]=w().useState([]),fe=w().useRef(null),ge=w().useCallback(e=>{D(t=>({...t,description:e}))},[]),me=w().useMemo(()=>({TranscriptMentionWidget:Fa}),[]),ve=w().useCallback(e=>{const t=Array.from(e);de(null),ce(e=>{const n=[...e,...t];if(n.length>10)return de("You can attach up to 10 files."),e;const r=t.find(e=>e.size>10485760);return r?(de(`"${r.name}" exceeds the 10 MB size limit.`),e):n})},[]),ye=w().useCallback(e=>{de(null),ce(t=>t.filter((t,n)=>n!==e))},[]),Ae=w().useCallback(({formData:e})=>{e&&D(e)},[]);w().useEffect(()=>{D(e=>({...e,labels:S}))},[S]),w().useEffect(()=>{D(e=>({...e,incidentDateTimeLocal:O}))},[O]),w().useEffect(()=>{A&&D(e=>({...e,contact:e.contact||A}))},[A]),w().useEffect(()=>{if(!c?.trim()||!C)return void((e||t)&&D(n=>({...n,summary:n.summary||e,description:n.description||t})));let n=!1;return(async()=>{J(!0),re(null);try{const r=`${C.getConfig()?.baseUri?.replace(/\/$/,"")||""}/cluster/store/api/assist/stream`,o=C.auth?.getToken?.();if(!o)return console.warn("No auth token available for TicketHelper"),void(n||re("Could not auto-fill summary and description: no auth token available. Please fill them in manually."));const i={message:c,personaName:"TicketHelper",chatHistory:[],maxTokens:800,temperature:.3},a=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(i)});if(!a.ok||!a.body)throw new Error(`TicketHelper responded with status ${a.status}`);let s="";if(await Yn(a.body,{onChunk:e=>{n||(s+=e)}}),n)return;const l=s.trim();if(!l)return void re("TicketHelper returned an empty response. Please fill in the summary and description manually.");const u=l.indexOf("\n"),d=(u>=0?l.slice(0,u):l).trim(),p=u>=0?l.slice(u+1).trim():"";D(e=>({...e,summary:e.summary||d,description:p||e.description})),te({summary:!e&&!!d,description:!t&&!!p})}catch(r){console.warn("Could not get AI summary from TicketHelper:",r),n||(D(n=>({...n,summary:n.summary||e,description:n.description||t})),re("Could not auto-fill summary and description from the conversation. Please fill them in manually — the full transcript is included below for reference."))}finally{n||J(!1)}})(),()=>{n=!0}},[c,e,t,C]);const we=w().useMemo(()=>(x.labels??"").split(",").map(e=>e.trim()).filter((e,t,n)=>e.length>0&&n.indexOf(e)===t),[x.labels]),be=C?.auth?.getToken?.()??null,_e=E?`${E}/tickets`:"",Ce=_e.length>0&&!!be,Ee=(x.summary??"").trim(),Se=(x.description??"").trim(),Oe=w().useMemo(()=>{const e=xa(x.incidentDateTimeLocal);return e?e.toISOString():""},[x.incidentDateTimeLocal]);w().useEffect(()=>{let e=!0;const t=()=>{if(!e)return;const t=b.GVWorkloadManager.get().getWorkloads(),n=Object.values(t).filter(e=>e?.id&&e?.applicationName&&e?.applicationVersion&&!e?.parentId).map(e=>({id:String(e.id),name:String(e.name??e.id),applicationName:e.applicationName||void 0,packageName:e.packageName||e.package||void 0,version:e.applicationVersion||e.appVersion||e.version||e.packageVersion||void 0})).sort((e,t)=>e.name.localeCompare(t.name)),r=n.reduce((e,t)=>(e[t.id]=t.name,e),{}),o=n.reduce((e,t)=>(e[t.id]={packageName:t.packageName,version:t.version},e),{});L(r),N(o),F(n.map(e=>e.id))};let n=null;return(async()=>{try{if(n=await b.GVWorkloadManager.get().onAnyWorkload((e,n)=>{"created"!==n&&"deleted"!==n&&"updated"!==n||t()}),!e)return void n?.dispose();t(),0===Object.keys(b.GVWorkloadManager.get().getWorkloads()).length&&e&&se("No workloads found. You can still create a ticket manually.")}catch(t){console.warn("Could not load workloads:",t),e&&se("Could not load workloads. You can still create a ticket manually.")}finally{e&&ie(!1)}})(),()=>{e=!1,n?.dispose()}},[r]),w().useEffect(()=>{D(e=>({...e,affectedWorkloadId:r?.[0]??""}))},[r]),w().useEffect(()=>{const e=x.affectedWorkloadId;if(!e)return;const t=B[e];t&&D(e=>{const n=t.packageName??e.component,r=t.version??e.version;return e.component===n&&e.version===r?e:{...e,component:n,version:r}})},[x.affectedWorkloadId,B]),w().useEffect(()=>{if(!C)return;let e=!0;return(async()=>{try{const t=`${C.getConfig()?.baseUri?.replace(/\/$/,"")||""}/cluster/store/api/store/apps`,n=C.auth?.getToken?.();if(!n)return;const r=await fetch(t,{headers:{Authorization:`Bearer ${n}`}});if(!r.ok||!e)return;const o=await r.json(),i=(o?.data?.apps??o?.apps??[]).filter(e=>e?.package).map(e=>({id:String(e.package),name:String(e.metaData?.en?.name||e.package)})).sort((e,t)=>e.name.localeCompare(t.name)),a=i.reduce((e,t)=>(e[t.id]=t.name,e),{});e&&(R(a),M(i.map(e=>e.id)))}catch(e){console.warn("Could not load app store applications:",e)}})(),()=>{e=!1}},[C]),w().useEffect(()=>{if(!C)return;let e=!0;return(async()=>{try{const t=`${C.getConfig()?.baseUri?.replace(/\/$/,"")||""}/cluster/store/api/store/latest`,n=C.auth?.getToken?.();if(!n)return;const r=await fetch(t,{headers:{Authorization:`Bearer ${n}`}});if(!r.ok||!e)return;const o=await r.json(),i=o?.apps??o?.data?.apps??[],a=o?.releases??o?.data?.releases??[],s={};i.forEach(e=>{e?.id&&e?.package&&(s[e.id]=e.package)});const l={};a.forEach(e=>{const t=s[e?.packageId],n=e?.version;if(!t||!n)return;const r=l[t];(!r||Oa(n,r)>0)&&(l[t]=n)}),e&&U(l)}catch(e){console.warn("Could not load latest app versions:",e)}})(),()=>{e=!1}},[C]);const xe=w().useMemo(()=>{const e=x.affectedWorkloadId;if(!e)return null;const t=B[e];if(!t?.packageName||!t?.version)return null;const n=j[t.packageName];if(!n)return null;const r=Oa(t.version,n)<0;return{workloadId:e,workloadName:k[e],packageName:t.packageName,currentVersion:t.version,latestVersion:n,isOutOfDate:r}},[x.affectedWorkloadId,B,k,j]);w().useEffect(()=>{xe?.isOutOfDate&&_.GVNotificationActions.warning(`${xe.workloadName||"Selected workload"} is running ${xe.currentVersion} but ${xe.latestVersion} is available.`)},[xe]);const De=w().useCallback(()=>{const e=xe??{workloadId:x.affectedWorkloadId||"unknown",workloadName:k[x.affectedWorkloadId]||x.affectedWorkloadId||"Unknown",packageName:B[x.affectedWorkloadId]?.packageName||"unknown-package",currentVersion:B[x.affectedWorkloadId]?.version||"0.0.0",latestVersion:"unknown",isOutOfDate:!1};x.affectedWorkloadId&&v(W.openModalAction({id:`versionChecker-${e.workloadId}`,title:"Version Checker",content:(0,i.jsx)(Ta,{workloadName:e.workloadName,packageName:e.packageName,componentName:T[e.packageName]||e.packageName,currentVersion:e.currentVersion,latestVersion:e.latestVersion}),buttons:[{label:"Close",result:!1,style:"secondary"}]}))},[v,xe,T,x.affectedWorkloadId,k,B]),Pe=w().useMemo(()=>({setTicketMentions:he,setTranscriptValue:ge,jiraApiBase:E,authToken:be,selectedWorkloadVersionInfo:xe,openVersionCheckerModal:De}),[he,ge,E,be,xe,De]);w().useEffect(()=>{let e=!0;return(async()=>{try{const t=await b.GVPlatform.get().configuration.getConfigurationTree("gv/systemdashboards/dashboard-list",!0);if(!e||!t)return;const n=[],r=e=>{const t=e?.name??e?.title??e?.label??e?.displayName;return"string"==typeof t?t:void 0},o=(e,t)=>{if(!e)return;if(Array.isArray(e))return void e.forEach((e,n)=>o(e,[...t,String(n)]));if("object"!=typeof e)return;const i="string"==typeof e.id?e.id:void 0,a=r(e);if(i||a){const e=t[t.length-1],r=String(i??e??"").trim();return void(r&&n.push({id:r,name:String(a??r)}))}Object.entries(e).forEach(([e,n])=>{e&&"undefined"!==e&&o(n,[...t,e])})};o(t,[]);const i=Array.from(new Map(n.map(e=>[e.id,e.name?.trim()||e.id])).entries()).map(([e,t])=>({id:e,name:t})).sort((e,t)=>e.name.localeCompare(t.name)),a=i.reduce((e,t)=>(e[t.id]=t.name,e),{});z(a),H(i.map(e=>e.id))}catch(e){console.warn("Could not load dashboards",e)}})(),()=>{e=!1}},[]);const Me=w().useMemo(()=>{const e=x.affectedWorkloadId?[{id:x.affectedWorkloadId,name:k[x.affectedWorkloadId]}]:[],t=(Array.isArray(x.affectedDashboardIds)?x.affectedDashboardIds:[]).map(e=>{const t=G[e];return t?`${t} (${e})`:e}).join(", "),n=ne?c:void 0;return Pa({baseDescription:Se,incidentDateTimeLocal:x.incidentDateTimeLocal,incidentDateTimeUtc:Oe,affectedWorkloads:e,affectedDashboards:t,conversationTranscript:n})},[x.affectedDashboardIds,x.affectedWorkloadId,x.incidentDateTimeLocal,ne,G,c,Oe,Se,k]),Te=Y||!!Q,Re=!p||!!c?.trim(),Ie=Ce&&!Te&&Re&&Ee.length>=_a&&Ee.length<=Ca&&Me.length<=Ea;w().useEffect(()=>{h?.(Ie,"gv-ticket-modal")},[Ie,h]),w().useEffect(()=>{Ce||_.GVNotificationActions.warning("Public Jira API endpoint is unavailable. Ensure you are authenticated to AMPP and baseUri is configured.")},[Ce]),w().useEffect(()=>{ae&&_.GVNotificationActions.warning(ae)},[ae]),w().useEffect(()=>{p&&!c?.trim()&&_.GVNotificationActions.warning("Please start a conversation before creating a ticket. The ticket will include your chat transcript.")},[p,c]),w().useEffect(()=>{Z||!ee.summary&&!ee.description||_.GVNotificationActions.success("Summary and description have been auto-populated from the conversation. Feel free to edit them before submitting.")},[Z,ee.summary,ee.description]),w().useEffect(()=>{$&&_.GVNotificationActions.error($)},[$]);const Fe=w().useCallback(async()=>{const e=be,t=_e;if(!t||!e)return K("Public Jira API endpoint is not available for this environment."),!1;if(Ee.length<_a)return K(`Summary must be at least ${_a} characters.`),!1;if(Ee.length>Ca)return K(`Summary must be fewer than ${Ca} characters.`),!1;if(Me.length>Ea)return K(`Description must be fewer than ${Ea} characters.`),!1;const n=x.description??"";if(n.length>1e5)return K("Description must be fewer than 100000 characters."),!1;X(!0),K(null);const r=Ra(Me,pe),o=Ra(n,pe),i=pe.slice(0,20),a=l||"AMPP Support Request";try{let n;if(le.length>0){const t=new FormData;t.append("summary",Ee),r&&t.append("description",r),x.priority&&t.append("priority",x.priority),we.length>0&&we.forEach(e=>t.append("labels",e)),y&&t.append("customerId",y),x.contact&&t.append("contactEmail",x.contact),t.append("requestType",a),Oe&&t.append("incidentDateTime",Oe),x.component&&t.append("component",x.component),x.version&&t.append("version",x.version),o&&t.append("transcript",o),i.length>0&&i.forEach((e,n)=>{t.append(`mentions[${n}][accountId]`,e.accountId),t.append(`mentions[${n}][displayName]`,e.displayName)}),le.forEach(e=>t.append("files",e)),n={method:"POST",headers:{Authorization:`Bearer ${e}`,...y?{"x-customer-id":y}:{}},body:t}}else n={method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`,...y?{"x-customer-id":y}:{}},body:JSON.stringify({summary:Ee,description:r||void 0,priority:x.priority,labels:we,customerId:y||void 0,contactEmail:x.contact||void 0,requestType:a,incidentDateTime:Oe||void 0,transcript:o||void 0,component:x.component||void 0,version:x.version||void 0,mentions:i.length>0?i:void 0})};const s=await fetch(t,n),l=await s.json().catch(()=>({}));if(!s.ok)throw new Error(l?.error||"Failed to create ticket.");return q({key:l?.data?.key,url:l?.data?.url}),!0}catch(e){return K(e?.message??"Failed to create ticket."),!1}finally{X(!1)}},[be,x.contact,x.priority,x.component,x.version,x.description,y,Me,_e,we,l,Oe,Ee,le,pe]),ke=w().useCallback(async e=>!e||(await Fe(),!1),[Fe]);w().useEffect(()=>{f?.(ke)},[ke,f]);const Le=w().useMemo(()=>I.map(e=>({const:e,title:k[e]||e})),[I,k]),Be=w().useMemo(()=>V.map(e=>({const:e,title:G[e]||e})),[V,G]),Ne=w().useMemo(()=>P.map(e=>({const:e,title:T[e]||e})),[P,T]),je=w().useMemo(()=>{const e={summary:{type:"string",title:"Summary",minLength:_a,maxLength:Ca},description:{type:"string",title:"Description"},component:{type:"string",title:"Component",...Ne.length>0?{oneOf:Ne}:{}},version:{type:"string",title:"Version"},incidentDateTimeLocal:{type:"string",title:"Incident Date/Time",format:"date-time"},priority:{type:"string",title:"Priority",enum:ba,default:"Minor"},contact:{type:"string",title:"Contact Email"},labels:{type:"string",title:"Labels"}};return Le.length>0&&(e.affectedWorkloadId={type:"string",title:"Affected Workload",oneOf:Le}),Be.length>0&&(e.affectedDashboardIds={type:"string",title:"Affected Dashboards",oneOf:Be,uniqueItems:!0}),{type:"object",required:["summary"],properties:e}},[Le,Be,Ne]),Ue=w().useMemo(()=>({"ui:order":["summary","description","affectedWorkloadId","affectedDashboardIds","incidentDateTimeLocal","component","version","priority","contact","labels","*"],summary:{"ui:widget":"text","ui:placeholder":Z?"Waiting for AI to finish...":"Provide a concise title","ui:disabled":Te||Z},description:{"ui:widget":"TranscriptMentionWidget","ui:placeholder":Z?"Waiting for AI to finish...":"Add reproduction steps, logs, or paste the AMPP Assist transcript. Use @ to mention users","ui:disabled":Te||Z,"ui:options":{rows:12}},component:{"ui:placeholder":oe?"Loading components...":Ne.length?"Select a component...":"e.g. Densite X Test Signal Generator","ui:disabled":Te},version:{"ui:widget":Ia,"ui:placeholder":"e.g. 1.0.2.3","ui:disabled":Te},incidentDateTimeLocal:{"ui:widget":"DateTimeWidget","ui:disabled":Te},affectedWorkloadId:{"ui:placeholder":oe?"Loading workloads...":Le.length?"Select a workload...":"Workload list unavailable","ui:disabled":Te},affectedDashboardIds:{"ui:options":{autoHeight:!0,keepOpen:!0},"ui:placeholder":Be.length?"Select dashboards...":"Dashboard list unavailable","ui:disabled":Te},priority:{"ui:disabled":Te},contact:{"ui:placeholder":"support@example.com","ui:disabled":Te},labels:{"ui:placeholder":"Comma-separated list","ui:disabled":Te}}),[Te,Z,oe,Le,Be,Ne]);return oe?(0,i.jsxs)("div",{className:"gv-ticket-modal",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minWidth:"460px",minHeight:"200px",gap:"12px"},children:[(0,i.jsx)(_.GVLoading,{}),(0,i.jsx)("span",{children:"Loading workloads..."})]}):(0,i.jsxs)("div",{className:"gv-ticket-modal",style:{display:"flex",flexDirection:"column",gap:"12px",width:"100%",minWidth:"720px",maxHeight:"70vh",overflowY:"auto"},children:[Q&&(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[(0,i.jsx)(_.GVNotification,{variant:"success",message:Q.key?`Ticket ${Q.key} created successfully.`:"Ticket created successfully."}),Q.url&&(0,i.jsx)("div",{children:(0,i.jsx)(_.GVButton,{style:"primary2",onClick:()=>{Q?.url&&window.open(Q.url,"_blank","noopener,noreferrer")},children:"View Ticket"})})]}),!Q&&Z&&(0,i.jsx)(_.GVNotification,{variant:"warning",message:"AI is analyzing the conversation to suggest a summary and description..."}),!Q&&!Z&&ne&&(0,i.jsx)(_.GVNotification,{variant:"warning",message:ne}),(0,i.jsx)(_.GVForm,{schema:je,uiSchema:Ue,formData:x,onChange:Ae,widgets:me,formContext:Pe,children:(0,i.jsx)("span",{})}),(0,i.jsxs)("div",{style:{marginTop:"4px"},children:[(0,i.jsx)("div",{style:{color:"rgba(255,255,255,0.9)",fontSize:"14px",fontWeight:600,marginBottom:"8px"},children:"Attachments"}),(0,i.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>{!Te&&fe.current&&fe.current.click()},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||Te||!fe.current||(e.preventDefault(),fe.current.click())},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{e.preventDefault(),e.stopPropagation(),!Te&&e.dataTransfer.files.length>0&&ve(e.dataTransfer.files)},style:{border:"2px dashed rgba(255,255,255,0.25)",borderRadius:"6px",padding:"20px",textAlign:"center",cursor:Te?"default":"pointer",opacity:Te?.5:1,color:"rgba(255,255,255,0.6)",fontSize:"13px",transition:"border-color 0.2s"},children:["Drop files here or click to browse",(0,i.jsx)("br",{}),(0,i.jsx)("span",{style:{fontSize:"11px",color:"rgba(255,255,255,0.4)"},children:"Up to 10 files, 10 MB each"})]}),(0,i.jsx)("input",{ref:fe,type:"file",multiple:!0,style:{display:"none"},onChange:e=>{e.target.files&&e.target.files.length>0&&(ve(e.target.files),e.target.value="")},disabled:Te}),ue&&(0,i.jsx)("div",{style:{color:"#ff8a95",fontSize:"12px",marginTop:"6px"},children:ue}),le.length>0&&(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",marginTop:"8px"},children:le.map(e=>(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"rgba(255,255,255,0.05)",padding:"6px 10px",borderRadius:"4px",fontSize:"13px",color:"rgba(255,255,255,0.85)"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",overflow:"hidden"},children:[(0,i.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name}),(0,i.jsx)("span",{style:{color:"rgba(255,255,255,0.5)",fontSize:"11px",flexShrink:0},children:`(${Math.round(e.size/1024)} KB)`})]}),!Te&&(0,i.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),ye(le.indexOf(e))},style:{background:"none",border:"none",color:"rgba(255,255,255,0.5)",cursor:"pointer",padding:"2px 6px",fontSize:"14px",lineHeight:1,flexShrink:0},"aria-label":`Remove ${e.name}`,children:"✕"})]},`${e.name}-${e.size}-${e.lastModified}`))})]})]})},La=(0,y.createContext)({}),Ba=La.Provider;function Na(){return(0,y.useContext)(La)}const ja=e=>{const t={...Na(),...e},[n,r]=y.useState(""),[o,a]=y.useState([]),[s,l]=y.useState(!1),[c,u]=y.useState(!1),[d,p]=y.useState(!1),[h,f]=y.useState("context"==localStorage?.amppAssistContext),[g,m]=y.useState(!1),[v,A]=y.useState(!1),[w,E]=y.useState(""),[S,O]=y.useState(null),[x,D]=y.useState([]),[P,M]=y.useState(!1),[T,R]=y.useState(""),I=t.requireApproval??!1,[F,k]=y.useState(t.amppAssistContext??localStorage?.applicationName??""),[L,B]=y.useState(""),N=kt(e=>e.ampp?.user?.email),j=kt(e=>e.ampp?.user?.id),U=kt(e=>e.ampp?.user?.firstName),V=kt(e=>e.ampp?.user?.account),[H,G]=y.useState(""),z=In(),$=y.useRef(null),K=y.useRef(null),Q=localStorage.applicationName,q=t.amppAssistContext??F;y.useEffect(()=>{const e=Kn();B(e)},[]),y.useEffect(()=>{j&&Y(j)},[j]),y.useEffect(()=>{k(Q)},[Q,t.amppAssistContext]);const Y=async e=>{try{const t=await b.GVPlatform.get().identity.getLocalLogin(e);G(t.data.userName)}catch(e){console.warn("Could not get local login")}},X=()=>{if(""===n.trim())return;if(S)return;const e=t.personaName??"AMPPY",i=U?.trim(),s=0===o.length&&i,c=s?`Hi ${e}, my name is ${i}. `:"",u=s?n.trimStart():n,d=t.amppAssistContext??F,p=t.workloadId??localStorage.getItem("workloadId")??"",f=t.workloadName??localStorage.getItem("workloadName")??"",g={message:`${c}${h?`In the context of ${d}${p||f?` (workload: ${f||"unknown"}${p?`, id: ${p}`:""})`:""}: `:""}${u}`,sent:!0},m=[...o,{message:n,sent:!0}];a(m),R(n),r(""),l(!0),Z(g.message,m)},Z=async(e,n)=>{try{const r=n.filter(e=>!e.type).map(e=>({role:e.sent?"user":"assistant",content:e.message})),o=new Date,i=t.personaName??"AMPPY",s=t.workloadId??localStorage.getItem("workloadId")??void 0,c=t.workloadName??localStorage.getItem("workloadName")??void 0,u={message:e,personaName:i,chatHistory:r,maxTokens:800,temperature:.3,updateChatPayload:{history:n.map(e=>({...e})),month:o.getMonth(),personaName:i,sentiment:"Neutral",id:L,time:o.getTime(),userEmail:N,userAccount:V,userName:j,year:o.getFullYear(),...s?{workloadId:s}:{},...c?{workloadName:c}:{}},requireApproval:I,supportsToolEvents:!0,...s?{workloadId:s}:{},...c?{workloadName:c}:{},localTools:t.localTools?.map(e=>({name:e.name,description:e.description,inputSchema:e.inputSchema}))},d=`${b.GVBase.get().getConfig().baseUri}/cluster/store/api/assist/stream`,p=await fetch(d,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${b.GVBase.get().auth.getToken()}`},body:JSON.stringify(u)});if(!p.ok)throw new Error("Failed to start AI stream");let f={message:"",sent:!1};const g=[...n];let m,v=!1,y=!1;const A=()=>{v?a(e=>{const t=e.slice();return t[t.length-1]={...f},t}):(v=!0,a([...g,{...f}]))};let w=!1;const _=e=>{e&&(w||(w=!0,M(!0),D([])),f.message+=e,A())},C=e=>{e&&0!==e.length&&(m=e,f.citations=e,y=!0,A())},E=e=>{D(e),e.length>0&&(M(!1),w=!1,f.message.trim()&&(f.message=er(f.message),g.push({...f})),f={message:"",sent:!1},v=!1,a([...g]))};if(p.body){const n=5;let r=p.body;for(let o=0;o<n;o++){const n=await Yn(r,{onChunk:_,onCitations:C,onToolExecuting:E});if(!n.toolCalls)break;if(n.toolCalls.requiresApproval)return void O({calls:n.toolCalls.calls,responseId:n.toolCalls.responseId,url:d,handleChunk:_,handleCitations:C,assistantMsg:f});if(!t.localTools?.length)break;D(n.toolCalls.calls.map(e=>({name:e.name}))),M(!1),w=!1,f.message.trim()&&(f.message=er(f.message),g.push({...f})),f={message:"",sent:!1},v=!1,a([...g]);const o=[];for(const r of n.toolCalls.calls){const n=t.localTools.find(e=>e.name===r.name);if(n)try{let e={};try{e=JSON.parse(r.arguments||"{}")}catch{}const t=await n.handler(e);o.push({tool_call_id:r.call_id,content:"string"==typeof t?t:JSON.stringify(t)})}catch(e){o.push({tool_call_id:r.call_id,content:JSON.stringify({error:e?.message||"Tool execution failed"}),error:!0})}else o.push({tool_call_id:r.call_id,content:JSON.stringify({error:`Unknown tool: ${r.name}`}),error:!0})}const i=await fetch(d,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${b.GVBase.get().auth.getToken()}`},body:JSON.stringify({previous_response_id:n.toolCalls.responseId,tool_results:o,personaName:t.personaName,requireApproval:t.requireApproval})});if(!i.ok||!i.body)break;r=i.body}}else{const e=await tr(p);e&&_(e)}l(!1),M(!1),D([]),f.message=er(f.message),f.message||(f.message="Done."),!m||f.citations&&0!==f.citations.length||(f.citations=m),y=y||!!m?.length;const S=[...g,f];a(S);const x=new Date,P={history:S,month:x.getMonth(),id:L,time:x.getTime(),sentiment:"Neutral",userAccount:V,userEmail:N,userName:H,year:x.getFullYear(),noCitations:!y,...y?{}:{responded:!1}};h&&(P.context=t.amppAssistContext??F)}catch(e){l(!1),M(!1),D([]);let t="";const r=e?.response?.status;t=503===r?"Sorry, the underlying AI service is currently not available":500===r?"AMPP Assist service error":401===r||403===r?"Authentication error - please check API configuration":"I am unable to process your request at this time, please try again later.",a([...n,{message:t,sent:!1}]),console.warn("AI Chat Error:",e)}};y.useEffect(()=>{$.current&&$.current.scrollIntoView({block:"end",behavior:"smooth"})},[o,S]);const J=y.useCallback(e=>{const n=t.personaName??"AMPPY",r=U?.trim(),o=r?`Hi ${n}, my name is ${r}. `:"",i=h&&q?`In the context of ${q} `:"";let a=e??"";return i&&a.startsWith(i)&&(a=a.replace(i,"")),o&&a.startsWith(o)&&(a=a.replace(o,"")),a},[q,U,h,t.personaName]),ee=()=>{a([]),E("");const e=Kn();B(e)};y.useEffect(()=>{localStorage.setItem("amppAssistContext",h?"context":"noContext")},[h]),y.useEffect(()=>{!s&&K.current&&K.current.focus()},[s]);const te=async e=>{const n=new Date;try{const r={history:o,month:n.getMonth(),sentiment:e.sentiment,comment:e.comment,id:L,time:n.getTime(),userEmail:N,userName:H,userAccount:V,year:n.getFullYear()};h&&(r.context=t.amppAssistContext??F),await Ai.post(`${b.GVBase.get().getConfig().baseUri}/cluster/store/api/store/updateChat`,r,{headers:{Authorization:`Bearer ${b.GVBase.get().auth.getToken()}`}})}catch(e){console.error(e)}"Negative"!=e.sentiment&&"Positive"!=e.sentiment||ee()},ne=y.useCallback(()=>o.length?o.map(e=>`${e.sent?"User":"AMPP Assist"}: ${e.sent?J(e.message):er(e.message)}`).join("\n\n"):"",[o,J]),re=y.useCallback(e=>{const n=[];e&&n.push(`User feedback:\n${e}`);const r=!1===t.appNameInTicket?t.amppAssistContext:q;return r&&n.push(`Application Context: ${r}`),n.join("\n\n")},[t.amppAssistContext,t.appNameInTicket,q]),oe=y.useCallback(()=>{const e=[...o].reverse().find(e=>e.sent),t=((e?J(e.message):n||"AMPP Assist Support Ticket")??"AMPP Assist Support Ticket").trim()||"AMPP Assist Support Ticket";return t.length>120?`${t.slice(0,117)}...`:t},[o,J,n]),ie=y.useCallback(e=>{const t=new Set(["ampp-assist"]);"feedback"===e?.source&&t.add("feedback"),q&&t.add(q.replace(/\s+/g,"-").toLowerCase()),z(W.openModalAction({id:"gvamppassist-create-ticket",title:"Create Support Ticket",buttons:[{label:"Close",style:"secondary",result:!1},{label:"Create Ticket",style:"primary2",result:!0}],content:(0,i.jsx)(ka,{defaultSummary:oe(),defaultDescription:re(e?.feedbackComment),defaultTranscript:ne(),defaultLabels:Array.from(t).filter(Boolean),contactEmail:N,customerId:j||void 0})}))},[q,ne,re,oe,z,j,N]),ae={position:d?"relative":"absolute",zIndex:9999,top:d?void 0:"4px",right:d?void 0:"90px",width:d?"100%":void 0,maxWidth:d?"100%":void 0,minWidth:d?"320px":void 0,height:d?"100%":void 0,display:"flex",flexDirection:"column"},se=(0,i.jsxs)("div",{style:ae,children:[(0,i.jsxs)("div",{onClick:()=>{d||u(e=>!e)},className:"gv-button-secondary assistButton gv-ampp-assist-header"+(d?" pip-active":""),style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"10px",border:"1px solid #0a121d",borderRadius:d?"4px 4px 0 0":c?"5px 5px 0 0":"5px",padding:"6px 12px",cursor:d?"grab":"pointer",userSelect:"none",flexShrink:0},"data-for":"gv-ampp-assist-button","data-tip":!0,children:[(0,i.jsx)(_.GVIcon,{size:"30",icon:"amp-32px"}),"AMPP Assist",c&&(0,i.jsx)("div",{className:"pip-drag-cancel",onMouseEnter:e=>e.stopPropagation(),style:{position:"absolute",left:"5px",top:"5px",zIndex:5},children:(0,i.jsx)("div",{className:"pip-drag-cancel",children:(0,i.jsxs)(_.GVButtons,{children:[(0,i.jsx)(_.GVButton,{style:"primary2",icon:"interface-thumbs-up",onClick:e=>{e.stopPropagation(),te({message:n,sentiment:"Positive"})}}),(0,i.jsx)(_.GVButton,{style:"secondary",icon:"interface-thumbs-down",onClick:e=>{e.stopPropagation(),A(!0)}}),(0,i.jsx)(_.GVButton,{style:"secondary",icon:"file-copy",onClick:()=>{C.GVUtils.copyToClipboard(o.map(e=>e.sent?`User: ${e.message}`:`AMPP Assist: ${e.message}`).join("\n\n"))}})]})})}),c&&(0,i.jsx)(Ga,{legalInfo:g,setLegalInfo:m})]}),(0,i.jsxs)("div",{style:{display:c?"flex":"none",background:"#232b36",alignItems:"center",alignSelf:"end",padding:"5px",paddingTop:"10px",justifyContent:"flex-end",borderLeft:"1px solid #0a121d",borderRight:"1px solid #0a121d",flexShrink:0,width:"100%",boxSizing:"border-box"},children:[(0,i.jsxs)("div",{style:{marginRight:"auto",display:"flex",alignItems:"center",gap:"8px"},children:[(0,i.jsxs)(_.GVButton,{className:"newTopicButton",onClick:ee,style:"secondary",children:[" ","New topic"," "]}),o.some(e=>!e.sent&&e.message)&&(0,i.jsx)(_.GVButton,{className:"createTicketButton",icon:"comment-add",style:"primary2",onClick:e=>{e.stopPropagation(),ie({source:"toolbar"})},children:"Create Ticket"}),(0,i.jsx)(_.GVButton,{className:"pipToggleButton",icon:d?"misc-pin":"interface-popout",onClick:()=>{p(e=>{const t=!e;return e||c||u(!0),t})},style:"secondary",children:d?"Dock window":"Pop out"})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,i.jsx)("span",{children:"Context aware:"}),(0,i.jsx)(_.GVSwitch,{value:h,onChange:()=>{f(!h),ee()}})]})]}),v&&c&&(0,i.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"feedbackInput",style:{display:"flex",position:"absolute",top:"40px",left:"5px",gap:"3px",zIndex:3},children:[(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",gap:"6px"},children:[(0,i.jsx)(_.GVButton,{icon:"comment-add",style:"primary2",onClick:()=>ie({source:"feedback",feedbackComment:w}),children:"Create Ticket"}),(0,i.jsx)(_.GVButton,{icon:"social-email-send",style:"secondary",onClick:()=>{te({message:n,sentiment:"Negative",comment:w}),A(!1)}}),(0,i.jsx)(_.GVButton,{icon:"interface-close",style:"secondary",onClick:()=>A(!1)})]}),(0,i.jsx)(_.GVTextArea,{placeholder:"Add further feedback to negative vote...",onChange:e=>{e.stopPropagation(),E(e.target.value)},value:w})]}),c&&(0,i.jsxs)("div",{style:{display:c?"flex":"none",borderRadius:c?"0 0 5px 5px":"5px",borderTop:c?"0":"unset",width:d?"100%":void 0,maxWidth:d?"100%":void 0,height:d?"100%":void 0,flex:d?"1 1 auto":void 0},className:"chat-container"+(d?" pip-mode":""),children:[g&&(0,i.jsxs)("div",{className:"disclaimerContainer",children:[(0,i.jsx)(_.GVButton,{icon:"interface-close",style:"close",onClick:()=>{m(!1)}}),(0,i.jsx)("div",{className:"disclaimerText",children:"Disclaimer: Please be advised that responses provided through the use of Grass Valley’s AMPP Assist service are generated by artificial intelligence (AI), and while every effort has been made to ensure accuracy, these responses may not always be 100% correct or complete. The information provided should not be solely relied upon for critical decisions or for professional, legal, medical, or financial advice. Grass Valley and the providers of AMPP Assist accept no liability for any errors, omissions, or misrepresentations in the information provided or for any loss or damages incurred as a result of relying on such information. It is the user’s responsibility to evaluate and verify the information provided by this service. By using AMPP Assist, users acknowledge and accept these terms and conditions."})]}),(0,i.jsxs)("div",{style:{flex:1,minHeight:0,overflowY:"auto",width:"100%",borderRadius:"10px",border:"1px solid #0a121d",padding:"7px",background:"#1e2631"},children:[o.map((e,t)=>e.sent?(0,i.jsx)("div",{className:"sent",children:J(e.message)},t):(0,i.jsx)(ma,{message:e,index:t})),S&&(0,i.jsx)(Wa,{calls:S.calls,onDecision:async(e,n)=>{if(!S)return;const{responseId:r,url:o,handleChunk:i,handleCitations:a,assistantMsg:s}=S;O(null),e.length>0&&D(e.map(e=>({name:e.name})));const c=[],u=e.filter(e=>"local"===e.toolOrigin);for(const e of u){const n=t.localTools?.find(t=>t.name===e.name);if(n)try{let t={};try{t=JSON.parse(e.arguments||"{}")}catch{}const r=await n.handler(t);c.push({tool_call_id:e.call_id,content:"string"==typeof r?r:JSON.stringify(r)})}catch(t){c.push({tool_call_id:e.call_id,content:JSON.stringify({error:t?.message||"Tool execution failed"}),error:!0})}else c.push({tool_call_id:e.call_id,content:JSON.stringify({error:`Unknown tool: ${e.name}`}),error:!0})}const d=n.map(e=>({tool_call_id:e.call_id,content:JSON.stringify({error:"User denied tool execution"}),error:!0})),p=e.filter(e=>"remote"===e.toolOrigin).map(e=>({call_id:e.call_id,name:e.name,arguments:e.arguments})),h=[...c,...d];try{const e=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${b.GVBase.get().auth.getToken()}`},body:JSON.stringify({previous_response_id:r,tool_results:h,approved_remote_calls:p.length>0?p:void 0,personaName:t.personaName,requireApproval:t.requireApproval})});if(e.ok&&e.body){const n=5;let r=e.body;for(let e=0;e<n;e++){const e=await Yn(r,{onChunk:i,onCitations:a,onToolExecuting:e=>{D(e)}});if(!e.toolCalls)break;const n=e.toolCalls.calls.filter(e=>"local"===e.toolOrigin&&t.localTools?.find(t=>t.name===e.name)),s=e.toolCalls.calls.filter(e=>"local"!==e.toolOrigin),l=[];for(const e of n){const n=t.localTools?.find(t=>t.name===e.name);if(n)try{let t={};try{t=JSON.parse(e.arguments||"{}")}catch{}const r=await n.handler(t);l.push({tool_call_id:e.call_id,content:"string"==typeof r?r:JSON.stringify(r)})}catch(t){l.push({tool_call_id:e.call_id,content:JSON.stringify({error:t?.message||"Tool execution failed"}),error:!0})}else l.push({tool_call_id:e.call_id,content:JSON.stringify({error:`Unknown tool: ${e.name}`}),error:!0})}const c=s.map(e=>({call_id:e.call_id,name:e.name,arguments:e.arguments}));if(0===l.length&&0===c.length)break;const u=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${b.GVBase.get().auth.getToken()}`},body:JSON.stringify({previous_response_id:e.toolCalls.responseId,tool_results:l,approved_remote_calls:c.length>0?c:void 0,personaName:t.personaName,requireApproval:t.requireApproval})});if(!u.ok||!u.body)break;r=u.body}}else i("Sorry, I was unable to process the tool results.")}catch(e){console.warn("Tool approval continuation failed:",e),i("Sorry, the request failed after running the tool(s).")}s.message=er(s.message),s.message||i("Sorry, the AI did not produce a response after running the tools. Please try again."),l(!1),M(!1),D([])}}),s&&!S&&!P&&(0,i.jsx)(Ha,{executingTools:x}),(0,i.jsx)("div",{ref:$})]}),(0,i.jsxs)("div",{className:"input-container",style:{flexShrink:0},children:[(0,i.jsx)(_.GVTextInput,{placeholder:"Ask me a question...",style:"default",onKeyDown:e=>{"Enter"===e.key?X():"ArrowUp"===e.key&&""===n&&T&&(e.preventDefault(),r(T))},onChange:e=>r(e),value:n,disabled:s,inputRef:K}),(0,i.jsx)(_.GVButton,{onClick:X,icon:"social-email-send"})]})]}),c?null:(0,i.jsx)(_.GVTooltip,{id:"gv-ampp-assist-button",place:"bottom",children:"Press for help"})]});return d?(0,i.jsx)(wa,{width:460,height:560,dragHandleSelector:".gv-ampp-assist-header",dragCancelSelector:".pip-drag-cancel",children:se}):se},Ua=["Sending request...","Reasoning...","Preparing response..."],Va=e=>{const t=new Map;for(const n of e)t.set(n,(t.get(n)||0)+1);return Array.from(t.entries()).map(([e,t])=>t>1?`${e} ×${t}`:e).join(", ")},Ha=({executingTools:e=[]})=>{const[t,n]=y.useState(0),r=y.useRef(!1);return y.useEffect(()=>{e.length>0?r.current=!0:r.current&&n(Ua.length-1)},[e]),y.useEffect(()=>{n(0),r.current=!1;const e=setInterval(()=>{n(e=>e<Ua.length-1?e+1:e)},3e3);return()=>clearInterval(e)},[]),(0,i.jsxs)("div",{className:"loading-status",children:[(0,i.jsxs)("svg",{id:"svg-spinner",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 48 48",children:[(0,i.jsx)("circle",{cx:"24",cy:"4",r:"4",fill:"#fff"}),(0,i.jsx)("circle",{cx:"12.19",cy:"7.86",r:"3.7",fill:"#fffbf2"}),(0,i.jsx)("circle",{cx:"5.02",cy:"17.68",r:"3.4",fill:"#fef7e4"}),(0,i.jsx)("circle",{cx:"5.02",cy:"30.32",r:"3.1",fill:"#fef3d7"}),(0,i.jsx)("circle",{cx:"12.19",cy:"40.14",r:"2.8",fill:"#feefc9"}),(0,i.jsx)("circle",{cx:"24",cy:"44",r:"2.5",fill:"#feebbc"}),(0,i.jsx)("circle",{cx:"35.81",cy:"40.14",r:"2.2",fill:"#fde7af"}),(0,i.jsx)("circle",{cx:"42.98",cy:"30.32",r:"1.9",fill:"#fde3a1"}),(0,i.jsx)("circle",{cx:"42.98",cy:"17.68",r:"1.6",fill:"#fddf94"}),(0,i.jsx)("circle",{cx:"35.81",cy:"7.86",r:"1.3",fill:"#fcdb86"})]}),(0,i.jsx)("span",{className:"loading-status-text",children:e.length>0?"Executing tools...":Ua[t]}),e.length>0&&(0,i.jsxs)("span",{style:{fontSize:"12px",color:"#7eb8da",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"260px"},children:["⚙ ",Va(e.map(e=>e.name))]})]})},Ga=({setLegalInfo:e,legalInfo:t})=>(0,i.jsx)("div",{className:"legalWidget pip-drag-cancel",style:{position:"absolute",right:"12px",backgroundColor:"#414854",borderRadius:"20px",padding:"2px 10px",border:"1px solid #1e2631"},onClick:n=>{n.stopPropagation(),e(!t)},children:"Legal"}),Wa=({calls:e,onDecision:t})=>{const[n,r]=y.useState(()=>new Set(e.map(e=>e.call_id)));return(0,i.jsxs)("div",{style:{background:"#2a3342",border:"1px solid #3d4b5e",borderRadius:"8px",padding:"12px",margin:"8px 0"},children:[(0,i.jsx)("div",{style:{fontWeight:600,marginBottom:"8px",color:"#f5a623"},children:"Tool approval required"}),(0,i.jsx)("div",{style:{fontSize:"12px",color:"#a0aec0",marginBottom:"10px"},children:"The assistant wants to run the following actions. Select which to allow:"}),e.map(e=>(0,i.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 4px",cursor:"pointer",borderBottom:"1px solid #1e2631"},children:[(0,i.jsx)("input",{type:"checkbox",checked:n.has(e.call_id),onChange:()=>{return t=e.call_id,void r(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t}}),(0,i.jsxs)("span",{style:{flex:1},children:[(0,i.jsx)("strong",{children:e.name}),(0,i.jsx)("span",{style:{marginLeft:"6px",fontSize:"11px",color:"remote"===e.toolOrigin?"#63b3ed":"#68d391",textTransform:"uppercase"},children:"remote"===e.toolOrigin?"MCP":"Local"})]})]},e.call_id)),(0,i.jsxs)("div",{style:{display:"flex",gap:"8px",marginTop:"10px",justifyContent:"flex-end"},children:[(0,i.jsx)(_.GVButton,{style:"secondary",onClick:()=>{t([],e)},children:"Deny All"}),(0,i.jsx)(_.GVButton,{style:"primary2",onClick:()=>{const r=e.filter(e=>n.has(e.call_id)),o=e.filter(e=>!n.has(e.call_id));t(r,o)},children:n.size===e.length?"Approve All":`Approve (${n.size})`})]})]})},za=({product:e,tabs:t,rightContent:n,menuBarIcon:r="branding-gv2021",project:o,customTopRightControl:a})=>{const[s,l]=(0,y.useState)(!1),c=kt(e=>e.router.location.pathname),u=c.split("/");return(0,y.useEffect)(()=>{const e=t.find(e=>u[u.length-1]===e.link);l(!e?.amppAssistHidden||!e?.amppAssistHidden)},[c,u,t]),(0,i.jsxs)("div",{className:"gv-menubar",children:[(0,i.jsxs)("span",{className:"gv-menubar-items",children:[(0,i.jsx)("span",{className:"gv-menubar-logo",children:(0,i.jsx)(_.GVIcon,{active:!0,size:"35px",icon:r})}),(0,i.jsxs)("span",{className:"gv-menubar-text",children:[e,(0,i.jsx)("span",{className:"gv-menubar-text-project",children:o})]})]}),(0,i.jsx)("div",{className:Ti()("gv-menubar-items","gv-menubar-tabs"),children:t.map(e=>(0,y.createElement)(ga,{...e,key:e.link}))}),a&&(0,i.jsx)("div",{className:Ti()({"gv-menubar-custom-control":!0,"gv-menubar-custom-control-with-amppassist":s,"gv-menubar-custom-control-without-amppassist":!s}),children:a}),s&&(0,i.jsx)(ja,{}),n]})},$a=({disableMenuBar:e,product:t,project:n,rightContent:r,tabs:o,customTopRightControl:a})=>((0,y.useEffect)(()=>{window.__H2C__=Ki(),window.__GVSCREENSHOT__=()=>Ki()(document.body,{useCORS:!0,allowTaint:!0})},[]),(0,i.jsx)(_.GVErrorBoundary,{children:(0,i.jsxs)("div",{id:"gvApp",className:"gv-layout",children:[0==!!e&&(0,i.jsx)("div",{className:"gv-layout-menubar",children:(0,i.jsx)(za,{product:t,tabs:o,rightContent:r,project:n,customTopRightControl:a})}),(0,i.jsx)("div",{className:Ti()({"gv-layout-container":!0,"gv-layout-container-menubar":0==!!e}),children:(0,i.jsx)(_.GVErrorBoundary,{children:(0,i.jsx)(nr.Outlet,{})})}),(0,i.jsxs)(_.GVErrorBoundary,{children:[(0,i.jsx)(_.GVToastContainer,{containerId:"gv-layout-toast-container",closeButton:!1,hideProgressBar:!0,closeOnClick:!0,stacked:!0,toastClassName:"gv-layout-toast",bodyClassName:"gv-layout-toast-body"}),(0,i.jsx)(_.GVToastContainer,{containerId:"gv-layout-toast-confirm-container",closeButton:!1,autoClose:!1,hideProgressBar:!0,closeOnClick:!0,toastClassName:"gv-layout-toast",bodyClassName:"gv-layout-toast-body",position:"bottom-left"})]}),(0,i.jsx)(_.GVErrorBoundary,{children:(0,i.jsx)(Zi,{})})]})})),Ka=e=>`:${e.replaceAll("?","")}`,Qa=C.GVDebug.extend("base").extend("app"),{__GVCONFIG__:qa}=window,Ya=qa.proxyPath,Xa=({store:e,config:t,tabs:n,product:r,project:o,rightContent:a,disableMenuBar:s,amppAssistContext:l,customTopRightControl:c,personaName:u,localTools:d,appNameInTicket:p,workloadId:h,workloadName:f})=>{const g=kn(e),m=b.GVPlatform.get(t||qa),v=m.auth;(0,y.useEffect)(()=>{window.location.pathname.includes(Ya)||window.history.replaceState("","",Ya+window.location.pathname),g.listen(({location:e})=>{Qa("setting location",e.pathname,e),v.setLocation(e.pathname)})},[]);const A=(0,i.jsxs)(i.Fragment,{children:[n.length>0&&(0,i.jsx)(nr.Route,{index:!0,element:(0,i.jsx)(nr.Navigate,{to:n[0].link})}),(0,i.jsx)(nr.Route,{path:"help",element:(0,i.jsx)(Li,{})}),m.getConfig().applicationId&&(0,i.jsx)(nr.Route,{path:"logging",element:(0,i.jsx)(Wi,{})}),n.map(({link:e,props:t,component:n,...r})=>{return t?(0,i.jsx)(nr.Route,{path:e,element:t[0].includes("?")?(0,i.jsx)(zi,{...r,children:(0,i.jsx)(n,{})}):void 0,children:(o=t,o.reduce((e,t)=>(0===e.length||t.includes("?")?e.length>0?e.push(`${e[e.length-1]}/${Ka(t)}`):e.push(Ka(t)):e[e.length-1]+=`/${Ka(t)}`,e),[])).map(e=>(0,i.jsx)(nr.Route,{path:e,element:(0,i.jsx)(zi,{...r,children:(0,i.jsx)(n,{})})},e))},e):(0,i.jsx)(nr.Route,{path:e,element:(0,i.jsx)(zi,{...r,children:(0,i.jsx)(n,{})})},e);var o})]});function w(e){const t=v.validateAuthenticated().validationResult;return t.isValid?(0,i.jsx)(nr.Navigate,{to:v.getRedirect()||e}):t.before?(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,i.jsx)("div",{children:(0,i.jsx)(_.GVNotification,{variant:"danger",message:"Failed to authorize due to machine time being out of sync with the server. Please ensure your machine time is correct and try again."})})}):(0,i.jsx)(_.GVLoading,{})}return(0,i.jsx)("div",{style:{height:"100%"},children:(0,i.jsx)(Dn,{store:e,children:(0,i.jsx)(Ba,{value:{amppAssistContext:l,personaName:u,localTools:d,appNameInTicket:p,workloadId:h,workloadName:f},children:(0,i.jsx)(Pi.HistoryRouter,{basename:Ya,history:g,children:(0,i.jsxs)(nr.Routes,{children:[(0,i.jsx)(nr.Route,{path:"embedded/callback/*",element:w("/embedded")}),(0,i.jsx)(nr.Route,{path:"embedded",element:(0,i.jsx)($a,{product:r,project:o,rightContent:a,tabs:n,disableMenuBar:!0,customTopRightControl:c}),children:A}),(0,i.jsx)(nr.Route,{path:"/callback/*",element:w("/")}),(0,i.jsx)(nr.Route,{path:"/",element:(0,i.jsx)($a,{product:r,project:o,rightContent:a,tabs:n,disableMenuBar:s,customTopRightControl:c}),children:A})]})})})})})},Za=nr.Navigate,Ja={config:{rules:[]}};var es=c(7581),ts=c.n(es),ns=c(1936),rs=c.n(ns),os=c(3142),is=c.n(os),as=c(6622),ss=c.n(as);class ls extends w().PureComponent{manager;constructor(e){super(e),this.state={producers:[]},this.manager=b.GVMatrixManager.get(e.options.fabricId),this.manager.onAnyProducer(this.onAnyProducer)}onRefresh=async()=>{this.populateState()};onAnyProducer=e=>{"created"!==e&&"removed"!==e||this.populateState()};populateState=async()=>{const{options:e}=this.props;let t=[];if(e.workloadId){const n=await b.GVPlatform.get().cluster.state.getChildWorkloads(e.workloadId);t=n.map(e=>e.workload.id),t.push(e.workloadId)}const n=this.manager.getProducers();e.destination&&this.setState({destination:this.manager.getDestinationByName(e.destination)}),this.setState({producers:ts()(n,n=>{let r=!!e.allowInternal||"Internal"!==n.flags;return r&&is()(e.excludeWorkloads)&&(r=!e.excludeWorkloads.includes(n.workloadId)),r&&!0!==e.allowSelf&&(r=!t.includes(n.workloadId)),r})})};async componentDidMount(){await this.manager.loadMatrix(),this.populateState()}async componentDidUpdate(e){this.props.options?.fabricId!==e.options?.fabricId&&(this.manager.offAnyProducer(this.onAnyProducer),this.manager=b.GVMatrixManager.get(this.props.options.fabricId),this.manager.onAnyProducer(this.onAnyProducer),await this.manager.loadMatrix(),this.populateState())}toggleOnline=()=>{this.setState({onlineOnly:!this.state.onlineOnly})};render(){const{options:e}=this.props,{producers:t}=this.state,n=t.filter(e=>!this.state.onlineOnly||e.enabled).map(e=>({alias:e.alias,label:e.alias!==e.name?`${e.alias} (${e.name})`:e.alias,name:e.name,value:e.name})),r=ss()(n,["alias","name"]);return(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,i.jsx)(_.GVSelectWidget,{...this.props,onChange:this.onChange,options:{...e,enumOptions:r}}),(0,i.jsx)(_.GVCheckbox,{onClick:this.toggleOnline,checked:this.state.onlineOnly,label:"Online producers only"})]})}onChange=e=>{const{destination:t,producers:n}=this.state;this.props.onChange(e),t&&b.GVPlatform.get().cluster.matrix.routing.makeRoute(rs()(n,{name:e}),t)}}class cs extends w().PureComponent{constructor(e){super(e),this.state={}}componentDidMount(){const{options:e}=this.props;b.GVPlatform.get().cluster.matrix.routing.getSources({fabric:e.fabric}).then(e=>{this.setState({sources:e})}),b.GVPlatform.get().cluster.matrix.routing.getDestinations({fabric:e.fabric}).then(t=>{e.destination&&this.setState({destination:rs()(t,{name:e.destination})})})}render(){const{options:e}=this.props,t=[];let n=ss()(Vn()(this.state.sources,e=>(null===e.nodeId&&t.push(e.name),{alias:e.alias,label:e.alias!==e.name?`${e.alias} (${e.name})`:e.alias,name:e.name,value:e.name})),["alias","name"]);return n.length<1&&(n=[]),(0,i.jsx)(_.GVSelectWidget,{...this.props,onChange:this.onChange,options:{...e,enumOptions:n,enumDisabled:t}})}onChange=e=>{const{destination:t,sources:n}=this.state;this.props.onChange(e),t&&b.GVPlatform.get().cluster.matrix.routing.makeRoute(rs()(n,{name:e}),t)}}const us=C.GVDebug.extend("logging:ui");class ds{static instance;static get(){return this.instance||(this.instance=new ds),this.instance}user;logAction=(e,t,n,r,o)=>{this.user||(this.user=Nn.getStore()?.getState()?.ampp?.user);let i,a="",s=[];"string"==typeof n?a=n:i=n,r&&is()(r)?s=r:r&&!is()(r)&&(i=r),o&&(s=o),(i&&!i.CorrelationId||a)&&(i??={},i.CorrelationId=a),i??={},i.UserName=`${this.user?.firstName} ${this.user?.lastName}`,i.UIAction=e,i.UIDescription=t;const l=`ui:${i.UIAction}`;i.MessageDetail=`${l} [${i.UserName}] ${i.UIDescription}`,us.extend(i.UIAction)(i.description),b.GVLogging.Info(l,i,["UIAction",e,...s])};static log(e,t,n,r,o){ds.get().logAction(e,t,n,r,o)}static buttonPress(e,t,n,r){ds.get().logAction("click",e,t,n,r)}static slide(e,t,n,r){ds.get().logAction("slide",e,t,n,r)}}var ps=c(9397),hs=c(8608),fs=c(6725);function gs(){return gs=fs?fs.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gs.apply(this,arguments)}var ms=c(1448),vs=c.n(ms),ys=c(7941),As=c.n(ys),ws=c(3957),bs=c(575),_s=c.n(bs);const Cs=(e,t)=>_s()(e,t,(e,t)=>{if("function"==typeof e&&"function"==typeof t)return!0}),Es=e=>As()(e)?e:[e],Ss=e=>{Os(e)},Os=e=>{console.warn(e)},xs=(e,t)=>{let n=e.indexOf(".");if(-1===n)return{field:e,schema:t};let r,o=e.substr(0,n);try{r=(0,ws.extractRefSchema)(o,t)}catch(e){r=null}return r?xs(e.substr(n+1),r):(Os(`Failed to retrieve nested schema with key ${e}`),{field:e,schema:t})};function Ds(e,t){let n=e.indexOf(".");if(-1===n)return t;let r=t[e.substr(0,n)];return r?Ds(e.substr(n+1),r):t}var Ps=c(1782),Ms=c.n(Ps);const Ts=(e,t)=>{let n=e.indexOf(".");if(-1===n)return void 0!==t.properties[e];{let r=e.substr(0,n),o=(0,ws.extractRefSchema)(r,t);return!!o&&Ts(e.substr(n+1),o)}},Rs=(e,t)=>{if(t)return(n,r)=>{Es(t(n)).filter(e=>!Ts(e,r)).forEach(t=>Ss(`Field "${t}" is missing from schema on "${e}"`))};Ss("validateFields requires fetchFields function")};function Is(e,t,n){let{field:r}=e;Es(r).forEach(e=>function(e,t){let{field:n,schema:r}=e,o=r.required?r.required.indexOf(n):-1;-1!==o&&r.required.splice(o,1),delete r.properties[n],delete t[n];let i=(t["ui:order"]?t["ui:order"]:[]).indexOf(n);-1!==i&&t["ui:order"].splice(i,1)}(xs(e,t),Ds(e,n)))}function Fs(e,t){let{field:n}=e,r=Es(n);Es(r).forEach(e=>function(e){let{field:t,schema:n}=e;n.required||(n.required=[]),-1===n.required.indexOf(t)&&n.required.push(t)}(xs(e,t)))}Is.propTypes={field:vs().oneOfType([vs().string,vs().arrayOf(vs().string)]).isRequired},Is.validate=Rs("remove",function(e){let{field:t}=e;return t}),Fs.propTypes={field:vs().oneOfType([vs().string,vs().arrayOf(vs().string)]).isRequired},Fs.validate=Rs("require",function(e){let{field:t}=e;return t});var ks=c(5351),Ls=c.n(ks);function Bs(e,t){Ls()(t).forEach(n=>{let r=t[n],o=e[n];o?As()(o)?Es(r).filter(e=>!o.includes(e)).forEach(e=>o.push(e)):"object"!=typeof r||As()(r)?"string"==typeof o?o.includes(r)||(e[n]=o+" "+r):e[n]=r:Bs(o,r):e[n]=r})}function Ns(e,t,n){Bs(n,e)}function js(e,t,n){Ls()(e).forEach(t=>{n[t]=e[t]})}function Us(e,t){Ls()(t).forEach(n=>{let r=t[n],o=e[n];o?"object"!=typeof r||As()(r)?e[n]=r:Us(o,r):e[n]=r})}function Vs(e,t,n){Us(n,e)}Ns.propTypes=vs().object.isRequired,Ns.validate=Rs("uiAppend",function(e){return Ls()(e)}),js.propTypes=vs().object.isRequired,js.validate=Rs("uiReplace",function(e){return Ls()(e)}),Vs.propTypes=vs().object.isRequired,Vs.validate=Rs("uiOverride",function(e){return Ls()(e)});const Hs={remove:Is,require:Fs,uiAppend:Ns,uiReplace:js,uiOverride:Vs};var Gs=c(1973),Ws=c.n(Gs);function zs(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=Ws()(n),a=Ws()(r),s=Ws()(t),l=e.run(t).then(e=>{let t;if(As()(e))t=e;else{if("object"!=typeof e||!e.events||!As()(e.events))throw new Error("Unrecognized result from rules engine");t=e.events}t.forEach(e=>function(e,t,n,r){let{type:o,params:i}=e,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(a[o]?a[o]:Hs[o])(i,t,n,r)}(e,i,a,s,o))});return l.then(()=>({schema:i,uiSchema:a,formData:s}))}const $s=["formComponent","forwardedRef","rulesRunner","initialSchema","initialUiSchema"];class Ks extends y.Component{constructor(e){super(e),this.handleChange=this.handleChange.bind(this),this.updateConf=this.updateConf.bind(this),this.updateConfCount=0,this.updateConfHandler=null,this.state={schema:e.initialSchema,uiSchema:e.initialUiSchema,formData:{}}}componentDidMount(){this.updateConf(this.props.formData||{})}componentDidUpdate(e,t,n){const r=e.formData||{},o=this.props.formData||{};Cs(r,o)||this.updateConf(o)}updateConf(e,t){this.updateConfCount+=1,null!=t&&(this.updateConfHandler=t),this.props.rulesRunner(e).then(e=>{if(this.updateConfCount-=1,this.updateConfCount<1){Cs(e,this.state)||this.setState(e);const t=this.updateConfHandler;this.updateConfHandler=null,t&&t(e)}})}handleChange(e){const{formData:t}=e,{onChange:n}=this.props;Cs(t,this.state.formData)?n&&n(e):this.updateConf(t,t=>{if(n){let r=gs({},e,t);n(r)}})}render(){const e=this.props,{formComponent:t,forwardedRef:n,rulesRunner:r,initialSchema:o,initialUiSchema:i}=e;let a=gs({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=hs(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(ps){var i=ps(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,$s),this.state,{onChange:this.handleChange});return w().createElement(t,gs({ref:n},a))}}Ks.propTypes={formComponent:vs().oneOfType([vs().element,vs().func,vs().shape({render:vs().func})]).isRequired,rulesRunner:vs().func.isRequired,initialSchema:vs().object.isRequired,initialUiSchema:vs().object,forwardedRef:vs().any};var Qs=c(5660);const qs=({formData:e,uiSchema:t,onChange:n})=>{const r=(0,y.useMemo)(()=>({definitions:{resolution:{oneOf:[{const:"720x480",title:"480 (NTSC)"},{const:"720x576",title:"576 (PAL)"},{const:"1280x720",title:"720 (HD)"},{const:"1920x1080",title:"1080 (Full HD)"},{const:"3840x2160",title:"2160 (Ultra HD)"}],title:"Resolution",type:"string"},frameRate:{oneOf:[{const:"24000x1001",title:"23.97"},{const:"24x1",title:"24"},{const:"25x1",title:"25"},{const:"30000x1001",title:"29.97"},{const:"30x1",title:"30"},{const:"50x1",title:"50"},{const:"60000x1001",title:"59.94"},{const:"60x1",title:"60"}],title:"Frame Rate",type:"string"},scanMode:{oneOf:[{const:"interlaced",title:"Interlaced"},{const:"progressive",title:"Progressive"}],title:"Scan Mode",type:"string"},colorSpace:{oneOf:[{const:"601",title:"601"},{const:"709",title:"709"},{const:"2020",title:"2020"}],title:"Color Space",type:"string"},transferCharacteristic:{oneOf:[{const:"sdr",title:"SDR"},{const:"pq",title:"PQ"},{const:"hlg",title:"HLG"}],title:"Dynamic range",type:"string"}},properties:{resolution:{$ref:"#/definitions/resolution"},scanMode:{$ref:"#/definitions/scanMode"},frameRate:{$ref:"#/definitions/frameRate"},colorSpace:{$ref:"#/definitions/colorSpace"},transferCharacteristic:{$ref:"#/definitions/transferCharacteristic"}},type:"object"}),[]),o=(0,y.useMemo)(()=>{const e=t?.["ui:options"]||{};return Array.isArray(e.disabledFrameRates)?e.disabledFrameRates:null},[t]),a=(0,y.useMemo)(()=>{const e=t?.["ui:options"]||{};return{frameRate:{"ui:enumDisabled":o,"ui:disabled":(e.disable||[]).includes("frameRate")},resolution:{"ui:widget":"button","ui:enumDisabled":e.resolution?"SD"===e.resolution?["1280x720","1920x1080","3840x2160"]:"HD"===e.resolution?["720x480","720x576","3840x2160"]:"UHD"===e.resolution?["720x480","720x576","1280x720","1920x1080"]:"!SD"===e.resolution?["720x480","720x576"]:"!HD"===e.resolution?["1280x720","1920x1080"]:"!UHD"===e.resolution?["3840x2160"]:[]:[],"ui:disabled":(e.disable||[]).includes("resolution")},scanMode:{"ui:widget":"button","ui:enumDisabled":e.scanMode?"progressive"===e.scanMode?["interlaced"]:"interlaced"===e.scanMode?["progressive"]:[]:[],"ui:disabled":(e.disable||[]).includes("scanMode")},colorSpace:{"ui:widget":"hidden"},transferCharacteristic:{"ui:widget":"button","ui:enumDisabled":e.transferCharacteristic?"sdr"===e.transferCharacteristic?["pq","hlg"]:"pq"===e.transferCharacteristic?["sdr","hlg"]:"hlg"===e.transferCharacteristic?["pq","sdr"]:[]:[],"ui:disabled":(e.disable||[]).includes("transferCharacteristic")}}},[t,o]),s=(0,y.useMemo)(()=>{const e=[{conditions:{resolution:{or:[{is:"720x480"},{is:"720x576"}]},colorSpace:{not:{is:"601"}},transferCharacteristic:{not:{is:"sdr"}}},event:{type:"updateValue",params:{colorSpace:"601",transferCharacteristic:"sdr"}}},{conditions:{resolution:{is:"1280x720"},colorSpace:{not:{is:"709"}},transferCharacteristic:{not:{is:"sdr"}}},event:{type:"updateValue",params:{colorSpace:"709",transferCharacteristic:"sdr"}}},{conditions:{resolution:{is:"3840x2160"},colorSpace:{not:{is:"2020"}},transferCharacteristic:{not:{is:"sdr"}}},event:{type:"updateValue",params:{colorSpace:"2020"}}},{conditions:{transferCharacteristic:{or:[{is:"pq"},{is:"hlg"}]},colorSpace:{not:{is:"2020"}}},event:{type:"updateValue",params:{colorSpace:"2020"}}},{conditions:{transferCharacteristic:{is:"sdr"},colorSpace:{not:{is:"601"}},resolution:{or:[{is:"720x480"},{is:"720x576"}]}},event:{type:"updateValue",params:{colorSpace:"601"}}},{conditions:{transferCharacteristic:{is:"sdr"},colorSpace:{not:{is:"709"}},resolution:{or:[{is:"3840x2160"},{is:"1920x1080"},{is:"1280x720"}]}},event:{type:"updateValue",params:{colorSpace:"709"}}},{conditions:{transferCharacteristic:{or:[{is:"pq"},{is:"hlg"}]}},event:{type:"uiOverride",params:{scanMode:{"ui:enumDisabled":["interlaced"]}}}},{conditions:{transferCharacteristic:{is:"pq"},scanMode:{not:{is:"progressive"}},colorSpace:{not:{is:"2020"}}},event:{type:"updateValue",params:{scanMode:"progressive",colorSpace:"2020"}}},{conditions:{resolution:{or:[{is:"720x480"},{is:"720x576"},{is:"1280x720"}]}},event:{type:"uiOverride",params:{transferCharacteristic:{"ui:enumDisabled":["hlg","pq"]}}}},{conditions:{resolution:{or:[{is:"720x480"},{is:"720x576"},{is:"1280x720"}]},transferCharacteristic:{not:{is:"sdr"}}},event:{type:"updateValue",params:{transferCharacteristic:"sdr"}}},{conditions:{resolution:{is:"720x576"},scanMode:{is:"interlaced"},frameRate:{not:{is:"25x1"}}},event:{type:"updateValue",params:{frameRate:"25x1",scanMode:"interlaced"}}},{conditions:{resolution:{is:"720x576"},scanMode:{is:"progressive"},frameRate:{not:{or:[{is:"25x1"},{is:"50x1"}]}}},event:{type:"updateValue",params:{frameRate:"25x1",scanMode:"progressive"}}},{conditions:{resolution:{is:"720x480"},scanMode:{is:"interlaced"},frameRate:{not:{is:"30000x1001"}}},event:{type:"updateValue",params:{frameRate:"30000x1001",scanMode:"interlaced"}}},{conditions:{resolution:{is:"720x480"},scanMode:{is:"progressive"},frameRate:{not:{or:[{is:"30x1"},{is:"30000x1001"},{is:"60000x1001"},{is:"60x1"}]}}},event:{type:"updateValue",params:{frameRate:"30000x1001",scanMode:"progressive"}}},{conditions:{resolution:{or:[{is:"3840x2160"},{is:"1280x720"}]},scanMode:{not:{is:"progressive"}}},event:{type:"updateValue",params:{scanMode:"progressive"}}},{conditions:{resolution:{or:[{is:"3840x2160"},{is:"1280x720"}]}},event:{type:"uiOverride",params:{scanMode:{"ui:enumDisabled":["interlaced"]}}}},{conditions:{scanMode:{is:"interlaced"},frameRate:{not:{or:[{is:"30000x1001"},{is:"25x1"},{is:"30x1"}]}}},event:{type:"fixFrameRate"}},{conditions:{scanMode:{is:"interlaced"},resolution:{is:"720x480"}},event:{type:"uiOverride",params:{frameRate:{"ui:enumDisabled":["24000x1001","24x1","25x1","30x1","50x1","60000x1001","60x1"]}}}},{conditions:{scanMode:{is:"progressive"},resolution:{is:"720x480"}},event:{type:"uiOverride",params:{frameRate:{"ui:enumDisabled":["24000x1001","24x1","25x1","50x1"]}}}},{conditions:{scanMode:{is:"interlaced"},resolution:{is:"720x576"}},event:{type:"uiOverride",params:{frameRate:{"ui:enumDisabled":["30000x1001","50x1","60000x1001","30x1","24x1","24000x1001","60x1"]}}}},{conditions:{scanMode:{is:"progressive"},resolution:{is:"720x576"}},event:{type:"uiOverride",params:{frameRate:{"ui:enumDisabled":["30000x1001","60000x1001","30x1","24x1","24000x1001","60x1"]}}}},{conditions:{scanMode:{is:"interlaced"},resolution:{is:"1920x1080"}},event:{type:"uiOverride",params:{frameRate:{"ui:enumDisabled":["50x1","60000x1001","60x1","24x1","24000x1001"]},transferCharacteristic:{"ui:enumDisabled":["hlg","pq"]}}}},{conditions:{scanMode:{is:"interlaced"},resolution:{is:"1920x1080"},frameRate:{not:{or:[{is:"30000x1001"},{is:"25x1"},{is:"30x1"}]}}},event:{type:"fixFrameRate"}},{conditions:{scanMode:{is:"progressive"},resolution:{is:"1920x1080"}},event:{type:"uiOverride",params:{frameRate:{"ui:enumDisabled":[]}}}},{conditions:{resolution:{is:"3840x2160"}},event:{type:"uiOverride",params:{frameRate:{"ui:enumDisabled":[]}}}}];return!0===t?.["ui:options"]?.disableRules?e.filter(e=>function(e){const t=e?.event?.params||{};return void 0!==t.colorSpace||void 0!==t.transferCharacteristic}(e)):e},[t]),l=(0,y.useMemo)(()=>({fixFrameRate:(e,t,r,o)=>{let i=o.frameRate;switch(o.scanMode){case"interlaced":i="50x1"===i?"25x1":"30000x1001";break;case"progressive":i="25x1"===i?"50x1":"60000x1001"}n({...o,frameRate:i})},updateValue:(e,t,r,o)=>{n({...o,...e})}}),[n]),c=(0,y.useMemo)(()=>function(e,t,n,r){const o=function(e,t,n,r,o){return r="function"==typeof r?new r([],e):r,function(e){return e.sort(function(e,t){return void 0===e.order?void 0===t.order?0:1:void 0===t.order?-1:e.order-t.order})}(n).forEach(e=>r.addRule(e)),n=>null==n?Ms().resolve({schema:e,uiSchema:t,formData:n}):zs(r,n,e,t,o).then(i=>Cs(i.formData,n)?i:zs(r,i.formData,e,t,o))}(e,t,n,r,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{});return n=>w().forwardRef((r,i)=>w().createElement(Ks,gs({forwardedRef:i,formComponent:n,rulesRunner:o,initialSchema:e,initialUiSchema:t},r)))}(r,a,s,Qs.A,l)(_.GVForm),[r,a,s,l]);return(0,i.jsx)(c,{tagName:"div",formData:e,onChange:e=>n(e.formData),children:(0,i.jsx)("span",{})})},Ys=()=>{const[e,t]=w().useState(null),[n,r]=w().useState(null),[o,a]=w().useState("Loading..."),[s,l]=w().useState("gray"),[c,u]=w().useState(null),d=e=>new Date(e).toLocaleString("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit",day:"2-digit",month:"2-digit",year:"numeric"}),p=w().useCallback(()=>{try{const{token:e}=b.GVPlatform.get().auth.validateAuthenticated();if(!e?.exp)return void u(null);const t=1e3*e.exp-Date.now();u(t<=0?"Token expired":`Token expires in ${(e=>{if(e<=0)return"Token expired";const t=Math.floor(e/1e3),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),o=Math.floor(t%3600/60);return n>0?`${n}d ${r}h ${o}m`:r>0?`${r}h ${o}m`:0===o?"<1m":`${o}m`})(t)}`)}catch{u(null)}},[]),h=w().useCallback((e,t=!1)=>t?(a("Error fetching connectivity status"),void l("yellow")):e?void(e.isConnected?(a(`Hub connected to cloud platform since ${d(e.lastConnectedTime)}`),l("#FFF")):(a(`Hub disconnected from cloud platform since ${d(e.lastConnectedTime)}`),l("red"))):(a("Loading..."),void l("gray")),[]),f=w().useCallback(async e=>{if(!e)return;const t=await b.GVPlatform.get().getMailbox(),n=`gv.hub.${e}.cloudconnectivity.changed`;await t.subscribe(n),t.getEvents().on(n,e=>{const t=e.content;r(t),h(t)})},[h]),g=w().useCallback(async()=>{try{if(null!==e)return;const n=await b.GVPlatform.get().discovery.getSelf(),o="GV.AMPP.Hub.Discovery"===n?.name;if(t(o),!1===o)return;f(n.hubSiteId);const i=await b.GVPlatform.get().discovery.getCloudConnectivity();r(i),h(i)}catch(e){console.error("Failed to init",e),h(null,!0)}},[e,h,f]);return w().useEffect(()=>{null===e&&g()},[e,n,g]),w().useEffect(()=>{if(!e||!n)return;p();const t=setInterval(p,3e4);return()=>clearInterval(t)},[e,n,p]),e&&n?(0,i.jsxs)("div",{"data-for":"gv-connection-indicator","data-tip":!0,style:{position:"absolute",top:"10px",right:"50px",zIndex:1e4},children:[(0,i.jsx)(_.GVIcon,{size:"35",icon:"transfer-cloud",color:s}),(0,i.jsxs)(_.GVTooltip,{id:"gv-connection-indicator",place:"left",multiline:!0,children:[(0,i.jsx)("div",{children:o}),c&&(0,i.jsx)("div",{children:c})]})]}):null},Xs=C.GVRegistry.get();Xs.addReduxReducer("appLoggingConfig",(e=Ja,t)=>t.type.startsWith(Be)?Fe(e,e=>{switch(t.type){case Ne.SetConfig:return e.config=t.config,void e.config.rules.forEach((t,n)=>{e.config.rules[n]={...t,idx:n}});case Ne.AddEntry:const n=e.config.rules.push(t.config);return void(e.config.rules[n-1]={...t.config,idx:n-1});case Ne.UpdateEntry:return void(e.config.rules[t.id]=t.config);case Ne.DeleteEntry:e.config.rules.splice(t.id,1),e.config.rules.forEach((t,n)=>{e.config.rules[n]={...t,idx:n}})}}):e),Xs.addFormField("videoStandard",qs),Xs.addFormWidget("MatrixSourceSelect",cs),Xs.addFormWidget("ProducerSelect",ls);const Zs=C.GVDebug.extend("ampp").extend("app"),Js=Zs.extend("message");class el extends w().PureComponent{platform;auth;unloadRequested;constructor(e){super(e);const t=this.props.config||window.__GVCONFIG__,n=this.props.extraScopes?.length?{...t,scopes:[...t.scopes||[],...this.props.extraScopes]}:t;this.platform=b.GVPlatform.get(n),window.__GVPLATFORM__=this.platform,window.__GVCONFIG__=n,n.remotePlatformUri&&this.props.tabs.forEach(e=>{null==e.amppAssistHidden&&(e.amppAssistHidden=!0)}),window.__GVROUTE__=t=>{this.props.store.dispatch(W.pushAction((e.location&&e.location.pathname.startsWith("/embedded")?"/embedded":"")+t))},this.auth=this.platform.auth,b.GVLogging.get().addCategory("UI"),b.GVLogging.get().addCategory(s()(this.props.product)),window.onmessage=async e=>{if((!e.data||!e.data.source||"@devtools-page"!==e.data.source)&&e.data&&e.data.type)switch(Js("messageReceived",e.data),e.data.type){case"refresh_token":e.data.hash||(b.GVLogging.Warning("refresh_token did not have a hash",{MessageDetail:JSON.stringify(e.data),...e.data},["TokenRenewal"]),await b.GVLogging.LogNow());const t=this.auth.validateAuthentication(e.data.hash);t.validationResult.isValid||t.validationResult.before||this.auth.login();break;case"@gv/mailboxport":case"@gv/approutes":case"@gv/authenticated":return;case"@gv/route":return void(e.data.application&&n.applicationId&&e.data.application===n.applicationId&&((e.data.path.endsWith("/help")||e.data.path.endsWith("/logging"))&&this.props.store.dispatch(S.setPreviousLocationAction(window.location.pathname)),window.__GVROUTE__(e.data.path)));default:Js("unknown message",e.data.type)}},this.auth.setConfirmLogout(this.confirmLogout.bind(this))}postAuthenticatedMessage(e){const t=window?.parent&&window!==window.parent,n=window.__ELECTRONCONFIG__?.webContentsView;if((t||n)&&(window.parent.postMessage({type:"@gv/authenticated",state:e,source:this.platform.getConfig().applicationId||this.platform.getConfig().proxyPath},"*"),e)){const e=v()(this.props.tabs,(e,t)=>{const n=g()(t,"component");for(const[e,t]of d()(n)){switch(e){case"isAuthorized":n.isAuthorized="function"==typeof t?n.isAuthorized?.():void 0;break;case"hidden":"function"==typeof t&&(n.hidden=t(this.props.embedded,this.state.user));break;case"authorized":"function"==typeof t&&(n.authorized=t(this.props.embedded,this.state.user))}"function"==typeof n[e]&&(n[e]=void 0)}return e.push(n),e},[]);window.parent.postMessage({type:"@gv/approutes",routes:e,source:this.platform.getConfig().applicationId||this.platform.getConfig().proxyPath},"*")}}refreshPermissions(e){const t=this.state.user;t&&e.includes(t.id)&&this.platform.identity.getUser().then(e=>{this.setState({user:e}),(this.props.config||window.__GVCONFIG__).isGVOne&&this.platform.identity.getUserAccesses().then(e=>{this.props.store.dispatch(S.setUserAccessesAction(e)),ds.log("loaded","loaded userAccesses")}).catch(()=>{}),this.props.store.dispatch(S.setUserProfileAction(e)),ds.log("loaded","loaded interface")}).catch(()=>{b.GVLogging.Error("Failed to get user to update permissions")})}componentDidMount(){Zs("props",this.props);const e=this.auth.validateAuthenticated();if(e.validationResult.isValid)this.postAuthenticatedMessage(!0),this.platform.getMailbox().then(e=>{const t="gv.platform.identity.permissions";this.props.store.dispatch(S.setDefaultMailboxAction(e.getId())),e.subscribe(t);const n=e.getEvents();n.on(t,e=>{this.refreshPermissions(e.content)}),!0!==this.props.disableReduxNotifications&&n.onAny((...e)=>{this.props.store.dispatch(S.notificationAction(e))}),"true"===localStorage.getItem("subscribe_all")&&e.subscribe("gv.#")}),this.props.enableReduxPushNotifications&&this.platform.getPushMailbox().then(e=>{e.getEvents().onAny((...e)=>{this.props.store.dispatch(S.notificationAction(e))}),"true"===localStorage.getItem("subscribe_all")&&e.subscribe("gv.#")}),this.platform.configuration.getSystemConfiguration().then(e=>{this.props.store.dispatch(S.setSystemConfigAction(e))}).catch(()=>{}),this.platform.identity.getUser().then(e=>{b.GVLogging.get().addProperty("user",e.id);try{this.setState({user:e}),(this.props.config||window.__GVCONFIG__).isGVOne&&this.platform.identity.getUserAccesses().then(e=>{this.props.store.dispatch(S.setUserAccessesAction(e)),ds.log("loaded","loaded userAccesses")}).catch(()=>{}),this.props.store.dispatch(S.setUserProfileAction(e)),ds.log("loaded","loaded interface")}catch(e){return}ds.log("loaded","loaded interface")}).catch(()=>{});else{this.postAuthenticatedMessage(!1);const t=this.props.store.getState(),n=h()(t,"router.location.pathname","/"),r=h()(t,"router.basename",""),o=`${n.replace(r,"")}${t.router.location.search}`;this.auth.setLocation(o),e.validationResult.before||this.auth.login()}}render(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Xa,{...this.props,config:this.props.config||window.__GVCONFIG__,tabs:this.props.tabs,rightContent:(0,i.jsxs)("span",{children:[(0,i.jsx)(Ys,{}),(0,i.jsx)(Di,{userMenuItems:this.props.userMenuItems,...g()(this.props,"children")})]}),customTopRightControl:this.props.customTopRightControl}),(0,i.jsx)("iframe",{id:"authFrame",style:{display:"none"},"aria-hidden":"true",src:"about:blank"})]})}confirmLogout(){return new Promise(e=>{this.props.store.dispatch(W.openModalAction({buttons:[{label:"Yes",style:"primary2",result:!0},{label:"No",style:"secondary",result:!1}],content:(0,i.jsx)(_.GVModalConfirm,{confirmText:"logout"}),id:"confirmLogout",onClose:t=>(e(!0===t),null),title:"Confirm Logout"}))})}}let tl=!0,nl=!0;function rl(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function ol(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,o=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return o.apply(this,arguments);const i=e=>{const t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,i),o.apply(this,[e,i])};const i=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return i.apply(this,arguments);if(!this._eventMap[t].has(n))return i.apply(this,arguments);const r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,i.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function il(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(tl=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function al(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(nl=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function sl(){if("object"==typeof window){if(tl)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function ll(e,t){nl&&console.warn(e+" is deprecated, please use "+t+" instead.")}function cl(e){return"[object Object]"===Object.prototype.toString.call(e)}function ul(e){return cl(e)?Object.keys(e).reduce(function(t,n){const r=cl(e[n]),o=r?ul(e[n]):e[n],i=r&&!Object.keys(o).length;return void 0===o||i?t:Object.assign(t,{[n]:o})},{}):e}function dl(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?dl(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(t=>{dl(e,e.get(t),n)})}))}function pl(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",o=new Map;if(null===t)return o;const i=[];return e.forEach(e=>{"track"===e.type&&e.trackIdentifier===t.id&&i.push(e)}),i.forEach(t=>{e.forEach(n=>{n.type===r&&n.trackId===t.id&&dl(e,n,o)})}),o}const hl=sl;function fl(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach(n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;const r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);const o=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"==typeof r.ideal?(e[o("min",n)]=r.ideal,t.optional.push(e),e={},e[o("max",n)]=r.ideal,t.optional.push(e)):(e[o("",n)]=r.ideal,t.optional.push(e))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[o("",n)]=r.exact):["min","max"].forEach(e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[o(e,n)]=r[e])})}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},o=function(e,o){if(t.version>=61)return o(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"==typeof e.video){let i=e.video.facingMode;i=i&&("object"==typeof i?i:{ideal:i});const a=t.version<66;if(i&&("user"===i.exact||"environment"===i.exact||"user"===i.ideal||"environment"===i.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||a)){let t;if(delete e.video.facingMode,"environment"===i.exact||"environment"===i.ideal?t=["back","rear"]:"user"!==i.exact&&"user"!==i.ideal||(t=["front"]),t)return n.mediaDevices.enumerateDevices().then(n=>{let a=(n=n.filter(e=>"videoinput"===e.kind)).find(e=>t.some(t=>e.label.toLowerCase().includes(t)));return!a&&n.length&&t.includes("back")&&(a=n[n.length-1]),a&&(e.video.deviceId=i.exact?{exact:a.deviceId}:{ideal:a.deviceId}),e.video=r(e.video),hl("chrome: "+JSON.stringify(e)),o(e)})}e.video=r(e.video)}return hl("chrome: "+JSON.stringify(e)),o(e)},i=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(n.getUserMedia=function(e,t,r){o(e,e=>{n.webkitGetUserMedia(e,t,e=>{r&&r(i(e))})})}.bind(n),n.mediaDevices.getUserMedia){const e=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return o(t,t=>e(t).then(e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach(e=>{e.stop()}),new DOMException("","NotFoundError");return e},e=>Promise.reject(i(e))))}}}function gl(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then(t=>{const r=n.video&&n.video.width,o=n.video&&n.video.height,i=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:i||3}},r&&(n.video.mandatory.maxWidth=r),o&&(n.video.mandatory.maxHeight=o),e.navigator.mediaDevices.getUserMedia(n)})}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}function ml(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function vl(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.track.id):{track:n.track};const o=new Event("track");o.track=n.track,o.receiver=r,o.transceiver={receiver:r},o.streams=[t.stream],this.dispatchEvent(o)}),t.stream.getTracks().forEach(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.id):{track:n};const o=new Event("track");o.track=n,o.receiver=r,o.transceiver={receiver:r},o.streams=[t.stream],this.dispatchEvent(o)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else ol(e,"track",e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e))}function yl(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let o=n.apply(this,arguments);return o||(o=t(this,e),this._senders.push(o)),o};const r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach(e=>{this._senders.push(t(this,e))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach(e=>{const t=this._senders.find(t=>t.track===e);t&&this._senders.splice(this._senders.indexOf(t),1)})}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function Al(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,n,r]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof e))return t.apply(this,[]);const o=function(e){const t={};return e.result().forEach(e=>{const n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach(t=>{n[t]=e.stat(t)}),t[n.id]=n}),t},i=function(e){return new Map(Object.keys(e).map(t=>[t,e[t]]))};if(arguments.length>=2){const r=function(e){n(i(o(e)))};return t.apply(this,[r,e])}return new Promise((e,n)=>{t.apply(this,[function(t){e(i(o(t)))},n])}).then(n,r)}}function wl(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then(t=>pl(t,e.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),ol(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then(t=>pl(t,e.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,n,r;return this.getSenders().forEach(n=>{n.track===e&&(t?r=!0:t=n)}),this.getReceivers().forEach(t=>(t.track===e&&(n?r=!0:n=t),t.track===e)),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function bl(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(e=>this._shimmedLocalStreams[e][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach(e=>{if(this.getSenders().find(t=>t.track===e))throw new DOMException("Track already exists.","InvalidAccessError")});const t=this.getSenders();n.apply(this,arguments);const r=this.getSenders().filter(e=>-1===t.indexOf(e));this._shimmedLocalStreams[e.id]=[e].concat(r)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach(t=>{const n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]}),o.apply(this,arguments)}}function _l(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return bl(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map(e=>this._reverseStreams[e.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach(e=>{if(this.getSenders().find(t=>t.track===e))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[t.id]){const n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};const o=e.RTCPeerConnection.prototype.removeStream;function i(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{const r=e._reverseStreams[t],o=e._streams[r.id];n=n.replace(new RegExp(o.id,"g"),r.id)}),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find(e=>e===t))throw new DOMException("The adapter.js addTrack polyfill only supports a single  stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(e=>e.track===t))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const o=this._streams[n.id];if(o)o.addTrack(t),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find(e=>e.track===t)},["createOffer","createAnswer"].forEach(function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?n.apply(this,[t=>{const n=i(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then(e=>i(this,e))}};e.RTCPeerConnection.prototype[t]=r[t]});const a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{const r=e._reverseStreams[t],o=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),o.id)}),new RTCSessionDescription({type:t.type,sdp:n})}(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments)};const s=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=s.get.apply(this);return""===e.type?e:i(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach(n=>{this._streams[n].getTracks().find(t=>e.track===t)&&(t=this._streams[n])}),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Cl(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]})}function El(e,t){ol(e,"negotiationneeded",e=>{const n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e})}function Sl(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){ll("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"==typeof n&&"object"==typeof n.audio&&(n=JSON.parse(JSON.stringify(n)),e(n.audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){const t=r.prototype.getSettings;r.prototype.getSettings=function(){const n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){const t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"==typeof n&&(n=JSON.parse(JSON.stringify(n)),e(n,"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function Ol(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function xl(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Dl(e,t){if("object"!=typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,o,i]=arguments;return r.apply(this,[e||null]).then(e=>{if(t.version<53&&!o)try{e.forEach(e=>{e.type=n[e.type]||e.type})}catch(t){if("TypeError"!==t.name)throw t;e.forEach((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))})}return e}).then(o,i)}}function Pl(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Ml(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),ol(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function Tl(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){ll("removeStream","removeTrack"),this.getSenders().forEach(t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)})})}function Rl(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function Il(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let e=arguments[1]&&arguments[1].sendEncodings;void 0===e&&(e=[]),e=[...e];const n=e.length>0;n&&e.forEach(e=>{if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const r=t.apply(this,arguments);if(n){const{sender:t}=r,n=t.getParameters();(!("encodings"in n)||1===n.encodings.length&&0===Object.keys(n.encodings[0]).length)&&(n.encodings=e,t.sendEncodings=e,this.setParametersPromises.push(t.setParameters(n).then(()=>{delete t.sendEncodings}).catch(()=>{delete t.sendEncodings})))}return r})}function Fl(e){if("object"!=typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function kl(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function Ll(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function Bl(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach(n=>t.call(this,n,e)),e.getVideoTracks().forEach(n=>t.call(this,n,e))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach(e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const n=e.getTracks();this.getSenders().forEach(e=>{n.includes(e.track)&&this.removeTrack(e)})})}}function Nl(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach(e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach(t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const n=new Event("addstream");n.stream=t,e.dispatchEvent(n)})}),t.apply(e,arguments)}}}function jl(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,o=t.setLocalDescription,i=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],o=n.apply(this,[r]);return t?(o.then(e,t),Promise.resolve()):o},t.createAnswer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],o=r.apply(this,[n]);return t?(o.then(e,t),Promise.resolve()):o};let s=function(e,t,n){const r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=s,s=function(e,t,n){const r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=s,s=function(e,t,n){const r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=s}function Ul(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(Vl(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function Vl(e){return e&&void 0!==e.video?Object.assign({},e,{video:ul(e.video)}):e}function Hl(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){const t=[];for(let n=0;n<e.iceServers.length;n++){let r=e.iceServers[n];void 0===r.urls&&r.url?(ll("RTCIceServer.url","RTCIceServer.urls"),r=JSON.parse(JSON.stringify(r)),r.urls=r.url,delete r.url,t.push(r)):t.push(e.iceServers[n])}e.iceServers=t}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:()=>t.generateCertificate})}function Gl(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Wl(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find(e=>"audio"===e.receiver.track.kind);!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio",{direction:"recvonly"}),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const n=this.getTransceivers().find(e=>"video"===e.receiver.track.kind);!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function zl(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var $l=c(9986),Kl=c.n($l);function Ql(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"==typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substring(2)),e.candidate&&e.candidate.length){const n=new t(e),r=Kl().parseCandidate(e.candidate);for(const e in r)e in n||Object.defineProperty(n,e,{value:r[e]});return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,ol(e,"icecandidate",t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t))}function ql(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||ol(e,"icecandidate",e=>{if(e.candidate){const t=Kl().parseCandidate(e.candidate.candidate);"relay"===t.type&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return e})}function Yl(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(function(e){if(!e||!e.sdp)return!1;const t=Kl().splitSections(e.sdp);return t.shift(),t.some(e=>{const t=Kl().parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")})}(arguments[0])){const e=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const n=parseInt(t[1],10);return n!=n?-1:n}(arguments[0]),n=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n}(e),r=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);const o=Kl().matchPrefix(e.sdp,"a=max-message-size:");return o.length>0?r=parseInt(o[0].substring(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r}(arguments[0],e);let o;o=0===n&&0===r?Number.POSITIVE_INFINITY:0===n||0===r?Math.max(n,r):Math.min(n,r);const i={};Object.defineProperty(i,"maxMessageSize",{get:()=>o}),this._sctp=i}return n.apply(this,arguments)}}function Xl(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const n=e.send;e.send=function(){const r=arguments[0],o=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&o>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=n.apply(this,arguments);return t(e,this),e},ol(e,"datachannel",e=>(t(e.channel,e.target),e))}function Zl(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(e=>{const n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}})}function Jl(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){const n=t.sdp.split("\n").filter(e=>"a=extmap-allow-mixed"!==e.trim()).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return n.apply(this,arguments)}}function ec(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function tc(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.setLocalDescription;n&&0!==n.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){let e=arguments[0]||{};if("object"!=typeof e||e.type&&e.sdp)return n.apply(this,arguments);if(e={type:e.type,sdp:e.sdp},!e.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":e.type="offer";break;default:e.type="answer"}return e.sdp||"offer"!==e.type&&"answer"!==e.type?n.apply(this,[e]):("offer"===e.type?this.createOffer:this.createAnswer).apply(this).then(e=>n.apply(this,[e]))})}const nc=function({window:e}={},i={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const a=sl,s=function(e){const t={browser:null,version:null};if(void 0===e||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.mozGetUserMedia)t.browser="firefox",t.version=rl(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=rl(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=rl(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}(e),l={browserDetails:s,commonShim:o,extractVersion:rl,disableLog:il,disableWarnings:al,sdp:$l};switch(s.browser){case"chrome":if(!t||!Cl||!i.shimChrome)return a("Chrome shim is not included in this adapter release."),l;if(null===s.version)return a("Chrome shim can not determine version, not shimming."),l;a("adapter.js shimming chrome."),l.browserShim=t,ec(e,s),tc(e),fl(e,s),ml(e),Cl(e,s),vl(e),_l(e,s),yl(e),Al(e),wl(e),El(e,s),Ql(e),ql(e),Zl(e),Yl(e,s),Xl(e),Jl(e,s);break;case"firefox":if(!n||!Dl||!i.shimFirefox)return a("Firefox shim is not included in this adapter release."),l;a("adapter.js shimming firefox."),l.browserShim=n,ec(e,s),tc(e),Sl(e,s),Dl(e,s),xl(e),Tl(e),Pl(e),Ml(e),Rl(e),Il(e),Fl(e),kl(e),Ll(e),Ql(e),Zl(e),Yl(e,s),Xl(e);break;case"safari":if(!r||!i.shimSafari)return a("Safari shim is not included in this adapter release."),l;a("adapter.js shimming safari."),l.browserShim=r,ec(e,s),tc(e),Hl(e),Wl(e),jl(e),Bl(e),Nl(e),Gl(e),Ul(e),zl(e),Ql(e),ql(e),Yl(e,s),Xl(e),Jl(e,s);break;default:a("Unsupported browser!")}return l}({window:"undefined"==typeof window?void 0:window}),rc=nc,oc={Candidate:"newCandidateSdp",Discovery:"discovery",DiscoveryResults:"discoveryResults",Error:"error",Init:"init",NewFullSDP:"newFullSdp",ResetDone:"resetDone",RequestReset:"requestReset",KeepAlive:"keepAlive"};var ic;!function(e){e.Closed="closed",e.Connected="connected",e.Connecting="connecting"}(ic||(ic={}));class ac{sdp;sdpType;tunnelConfig;tunnelId;type=oc.NewFullSDP}class sc{mLineIndex;sdp;tunnelId;type=oc.Candidate}class lc{type="init";receiverTopic;tunnelId;tunnelConfig}class cc{static setBAS(e,t,n){return navigator.mozGetUserMedia||!t||(n&&(t.screen?t.screen<300&&console.warn("It seems that you are using wrong bandwidth value for screen. Screen sharing is expected to fail."):console.warn("It seems that you are not using bandwidth for screen. Screen sharing is expected to fail.")),t.screen&&n&&(e=(e=e.replace(/b=AS([^\r\n]+\r\n)/g,"")).replace(/a=mid:video\r\n/g,`a=mid:video\r\nb=AS:${t.screen}\r\n`)),(t.audio||t.video||t.data)&&(e=e.replace(/b=AS([^\r\n]+\r\n)/g,"")),t.audio&&(e=e.replace(/a=mid:audio\r\n/g,`a=mid:audio\r\nb=AS:${t.audio}\r\n`)),t.video&&(e=e.replace(/a=mid:video\r\n/g,`a=mid:video\r\nb=AS:${n?t.screen:t.video}\r\n`))),e}static findLine(e,t,n){return cc.findLineInRange(e,0,-1,t,n)}static findLineInRange(e,t,n,r,o){const i=-1!==n?n:e.length;for(let n=t;n<i;++n)if(0===e[n].indexOf(r)&&(!o||-1!==e[n].toLowerCase().indexOf(o.toLowerCase())))return n;return null}static findLines(e,t,n){return cc.findLinesInRange(e,0,-1,t,n)}static findLinesInRange(e,t,n,r,o){const i=[],a=-1!==n?n:e.length;for(let n=t;n<a;++n)0===e[n].indexOf(r)&&(o&&-1===e[n].toLowerCase().indexOf(o.toLowerCase())||i.push(n));return i}static getCodecPayloadType(e){const t=e.match(/a=rtpmap:(\d+) \w+\/\d+/);return t&&2===t.length?t[1]:null}static setVideoBitrates(e,t){const n=(t=t||{}).min,r=t.max,o=e.split("\r\n"),i=cc.findLine(o,"a=rtpmap","VP8/90000");let a;if(i&&(a=cc.getCodecPayloadType(o[i])),!a)return e;const s=cc.findLine(o,"a=rtpmap","rtx/90000");let l;if(s&&(l=cc.getCodecPayloadType(o[s])),!s)return e;const c=cc.findLine(o,`a=fmtp:${l.toString()}`);if(null!==c){let t="\r\n";t+=`a=fmtp:${a} x-google-min-bitrate=${n||"228"}; x-google-max-bitrate=${r||"228"}`,o[c]=o[c].concat(t),e=o.join("\r\n")}return e}static setOpusAttributes(e,t){t=t||{};const n=e.split("\r\n"),r=cc.findLines(n,"a=rtpmap","opus/48000");for(const e of r){var o;if(e&&(o=cc.getCodecPayloadType(n[e])),!o)continue;const r=cc.findLine(n,`a=fmtp:${o.toString()}`);if(null===r)continue;let i="";i+=`; stereo=${void 0!==t.stereo?t.stereo:"1"}`,i+=`; sprop-stereo=${void 0!==t["sprop-stereo"]?t["sprop-stereo"]:"1"}`,void 0!==t.maxaveragebitrate&&(i+=`; maxaveragebitrate=${t.maxaveragebitrate||1048576}`),void 0!==t.maxplaybackrate&&(i+=`; maxplaybackrate=${t.maxplaybackrate||1048576}`),void 0!==t.cbr&&(i+=`; cbr=${void 0!==t.cbr?t.cbr:"1"}`),void 0!==t.useinbandfec&&(i+=`; useinbandfec=${t.useinbandfec}`),void 0!==t.usedtx&&(i+=`; usedtx=${t.usedtx}`),void 0!==t.maxptime&&(i+=`\r\na=maxptime:${t.maxptime}`),n[r]=n[r].concat(i)}return n.join("\r\n")}static setApplicationSpecificBandwidth=(e,t,n)=>cc.setBAS(e,t,n)}const uc=C.GVDebug.extend("webrtc");class dc{instance;engineInstance;direction;parentWorkload;static KEEPALIVE=21600;static instances={};static onbeforeunload(){Object.entries(dc.instances).forEach(([,e])=>{e.state.connectionState===ic.Connected&&e.disconnect("beforeunload")})}static get(e,t,n="recv",r,o){if(window.__GVWEBRTCSERVICE__=this.instances,this.instances[e]){const t=this.instances[e];t.updateParentWorkload(o),t.updateCallback(r),t.callbacks.onUpdateConnectionState(t.instance,t.state.connectionState),t.callbacks.onUpdateIceConnectionState(t.instance,t.state.iceConnectionState)}else this.instances[e]=new dc(e,t,n,r,o),window.addEventListener("unload",async()=>{this.instances[e].state.connectionState===ic.Connected&&(this.instances[e].disconnect("unload"),await new Promise(e=>{setTimeout(e,500)}))});return document.body.onbeforeunload!==dc.onbeforeunload&&(document.body.onbeforeunload=dc.onbeforeunload),this.instances[e]}state;webRtcConnection;webcamStream;gvEngineSenderDiscoveryTopicId;gvEnginePeerTopicId;webpageTopicId;_tunnelId;debug;eventsDebug;keepaliveDebug;keepalive;bandwidth;buffer;logProperties;callbacks;logging;statsDebug;lastReport;iceCandidates=[];fullSdpSent=!1;set tunnelId(e){this._tunnelId=e,this.callbacks?.onUpdateTunnelId?.(this.instance,this._tunnelId)}get tunnelId(){return this._tunnelId}get peerConnection(){return this.webRtcConnection}constructor(e,t,n="recv",r,o){this.instance=e,this.engineInstance=t,this.direction=n,this.parentWorkload=o,this.gvEngineSenderDiscoveryTopicId="recv"===this.direction?`gv.engine.${t}.senders`:`gv.engine.${t}.receivers`,this.tunnelId=Kn(),this.webpageTopicId=`gv.webrtc.${t}.${this.tunnelId}`,this.gvEnginePeerTopicId="",this.buffer=null,this.logProperties={CorrelationId:this.tunnelId,webRtcInstance:e,webRtcEngine:t,direction:this.direction},this.updateCallback(r),this.state={connectionState:ic.Closed,iceConnectionState:"disconnected",localSdp:[],remoteSdp:[],topic:this.webpageTopicId,datapoints:{},stats:[],tunnelId:this.tunnelId},this.logging=r.logging,this.logging?.Debug(`Created new webrtc ${n} instance`,this.logProperties),uc("new",e,this.webpageTopicId),this.debug=uc.extend(n).extend(e),this.statsDebug=this.debug.extend("stats"),this.eventsDebug=this.debug.extend("events"),this.keepaliveDebug=this.debug.extend("keepalive"),this.callbacks.onNewInstance?.(this.instance),this.callbacks.onUpdateTopic?.(this.instance,this.webpageTopicId),this.callbacks.onUpdateTunnelId?.(this.instance,this.tunnelId),this.subscribeToNotifications(),this.subscribeToStatsNotifications()}updateParentWorkload=e=>{const t=this.parentWorkload?`${this.gvEnginePeerTopicId}.${this.parentWorkload}.stats`:null;this.parentWorkload=e,this.subscribeToStatsNotifications(t)};updateCallback=e=>{this.callbacks={...e,onUpdateTopic:(t,n)=>{this.state.topic=n,e.onUpdateTopic?.(t,n)},onUpdateTunnelId:(t,n)=>{this.state.tunnelId=n,e.onUpdateTunnelId?.(t,n)},onUpdateConnectionState:(t,n)=>{this.state.connectionState=n,e.onUpdateConnectionState?.(t,n)},onUpdateIceConnectionState:(t,n)=>{this.state.iceConnectionState=n,e.onUpdateIceConnectionState?.(t,n)},onUpdateLocalSdp:(t,n)=>{this.state.localSdp=n,e.onUpdateLocalSdp?.(t,n)},onUpdateRemoteSdp:(t,n)=>{this.state.remoteSdp=n,e.onUpdateRemoteSdp?.(t,n)},onUpdateRuntime:(t,n)=>{this.state.runtime=n,e.onUpdateRuntime?.(t,n)},onUpdateVideoStream:(t,n)=>{this.state.videoStream=n,e.onUpdateVideoStream?.(t,n)},onStatsReceived:(t,n)=>{this.state.stats=n,e.onStatsReceived?.(t,n)},onAddDataPoint:(t,n,[r,o])=>{let i=(this.state.datapoints?.[n]||[]).concat([r,o]);i.length>100&&(i=i.slice(i.length-100)),P()(this.state,n,i),e.onAddDataPoint?.(t,n,[r,o])}}};toggleReceiver=async()=>{this.logging?.Debug("Toggle receiver",this.logProperties),this.debug("toggleConnection");const e=this.getState().connectionState.toLowerCase();e!==ic.Connected.toLowerCase()&&e!==ic.Connecting.toLowerCase()?await this.connectReceiver():this.disconnect("toggle receiver")};toggleSender=async e=>{const t=this.getState().connectionState.toLowerCase();this.logging?.Debug(`Toggle sender [${t}]`,this.logProperties),this.debug("toggleSender",t,e),["connected","connecting","completed"].includes(t)?(e?.stream&&e.stream.getTracks().forEach(e=>e.stop()),this.disconnect("toggle sender")):await this.connectSender(e)};connectReceiver=async()=>{this.callbacks.onUpdateConnectionState(this.instance,ic.Connecting),await this.sendDiscoveryInitiationNotification()};connectSender=async e=>{this.callbacks.onUpdateConnectionState(this.instance,ic.Connecting),await this.initialiseWebcam(e)};disconnect=e=>{try{this.logging?.Debug(`Disconnect WebRTC from ${e}`,this.logProperties),this.callbacks.onUpdateConnectionState?.(this.instance,ic.Closed),this.keepalive&&(clearTimeout(this.keepalive),this.keepalive=null),this.sendEnginePeerNotifcation({type:oc.RequestReset,tunnelId:this.tunnelId,topic:this.webpageTopicId}),this.callbacks.onUpdateLocalSdp?.(this.instance,[]),this.callbacks.onUpdateRemoteSdp?.(this.instance,[]),this.callbacks.onUpdateRuntime?.(this.instance,""),this.callbacks.onUpdateVideoStream?.(this.instance,null),this.webcamStream&&(this.logging?.Debug("Stopping tracks",this.logProperties),this.webcamStream.getTracks().forEach(e=>e.stop()),this.webcamStream=null),this.webRtcConnection&&(this.logging?.Debug("Closing connection",this.logProperties),this.webRtcConnection.close(),this.webRtcConnection.onicecandidate=null,this.webRtcConnection.oniceconnectionstatechange=null,this.webRtcConnection.onsignalingstatechange=null,this.webRtcConnection=null)}catch{}finally{const e=this.webpageTopicId;this.tunnelId=Kn(),this.webpageTopicId=`gv.webrtc.${this.engineInstance}.${this.tunnelId}`,this.logProperties.CorrelationId=this.tunnelId,this.callbacks.onUpdateTopic?.(this.instance,this.webpageTopicId),this.subscribeToNotifications(e)}};setBuffer(e){if(this.buffer=e,this.webRtcConnection){const t=this.webRtcConnection.getReceivers();for(const n of t)n.playoutDelayHint=e/1e3}}setBandwidth=async e=>{if(this.bandwidth=e,this.debug("setBandwidth",e),0===(this.webRtcConnection?.getSenders().length??0))return;const t=rs()(this.webRtcConnection.getSenders(),e=>"video"===e.track?.kind);if(t){try{if(("chrome"===rc.browserDetails.browser||"safari"===rc.browserDetails.browser||"firefox"===rc.browserDetails.browser&&rc.browserDetails.version>=64)&&"RTCRtpSender"in window&&"setParameters"in window.RTCRtpSender.prototype){const n=t,r=n.getParameters();return uc("original parameters",x()(r)),r.encodings||(r.encodings=[{}]),e?r.encodings[0].maxBitrate=1e3*e:delete r.encodings[0].maxBitrate,await n.setParameters(r).catch(e=>{throw this.debug("setParameters error",e),e}),void uc("setParameters called",r.encodings[0].maxBitrate)}}catch(e){console.error("unable to setParameters",e)}uc("falling back to sdp munging");try{const t=await this.webRtcConnection.createOffer();await this.webRtcConnection.setLocalDescription(t);const n={type:this.webRtcConnection.remoteDescription.type,sdp:e?this.updateBandwidthRestriction(this.webRtcConnection.remoteDescription.sdp,e):this.removeBandwidthRestriction(this.webRtcConnection.remoteDescription.sdp)};this.debug("Applying bandwidth restriction to setRemoteDescription:",n.sdp);try{await this.webRtcConnection.setRemoteDescription(n)}catch(e){throw console.error("Could not set remote description",e),e}}catch(e){this.debug(`Failed to set session description ${e.toString()}`,e)}}else this.debug("No Video Sender Found",this.webRtcConnection?.getSenders())};getBandwidth=()=>this.bandwidth;muteMicrophone=e=>{if(this.webcamStream){const t=this.webcamStream.getAudioTracks();if(t.length>0)for(const n of t)n.enabled=!e}};getStream(){return"recv"===this.direction?this.getState().videoStream:this.webcamStream}updateBandwidthRestriction=(e,t)=>{let n="AS";return"firefox"===rc.browserDetails.browser&&(t=1e3*(t>>>0),n="TIAS"),-1===e.indexOf(`b=${n}:`)?e.replace(/c=IN (.*)\r\n/,`c=IN $1\r\nb=${n}:${t}\r\n`):e.replace(new RegExp(`b=${n}:.*\r\n`),`b=${n}:${t}\r\n`)};removeBandwidthRestriction=e=>e.replace(/b=AS:.*\r\n/,"").replace(/b=TIAS:.*\r\n/,"");sendEnginePeerNotifcation=async(e,t)=>{this.debug("notify engine peer",this.gvEnginePeerTopicId,e),this.callbacks.onRaiseNotification(this.gvEnginePeerTopicId,e,null,null,t)};sendStatsNotifcation=async e=>{this.callbacks.onStatsReceived(this.instance,e)};sendEngineDiscoveryNotifcation=async e=>{this.debug("notify engine discovery",this.gvEngineSenderDiscoveryTopicId,e),this.callbacks.onRaiseNotification(this.gvEngineSenderDiscoveryTopicId,e)};getState(){return this.state}getStats=async()=>{try{if(this.webRtcConnection){const e=this.webRtcConnection.getSenders();if(e.length>0){const t=e[0],n=await t.getStats();n.forEach(e=>{if("outbound-rtp"===e.type&&"video"===e.mediaType&&!e.isRemote){this.statsDebug(e.id,e);const t=e.timestamp,n=e.bytesSent,r=e.headerBytesSent,o=e.packetsSent;if(this.lastReport&&this.lastReport.has(e.id)){const i=8*(n-this.lastReport.get(e.id).bytesSent)/(t-this.lastReport.get(e.id).timestamp),a=8*(r-this.lastReport.get(e.id).headerBytesSent)/(t-this.lastReport.get(e.id).timestamp),s=8*(o-this.lastReport.get(e.id).headerBytesSent);this.callbacks.onAddDataPoint(this.instance,"bitrate",[t,i]),this.callbacks.onAddDataPoint(this.instance,"headerrate",[t,a]),this.callbacks.onAddDataPoint(this.instance,"packetrate",[t,s])}}}),this.lastReport=n}}}catch(e){this.statsDebug("Error porcessing stats",e)}finally{setTimeout(this.getStats,1e3)}};initialiseReceiver(e){this.logging?.Debug("Initialise Receiver",this.logProperties),this.webRtcConnection=new RTCPeerConnection(e),this.webRtcConnection.onconnectionstatechange=this.onConnectionStateChange,this.webRtcConnection.onicecandidate=this.onIceCandidate,this.webRtcConnection.oniceconnectionstatechange=this.onIceConnectionStateChange,this.webRtcConnection.onsignalingstatechange=this.updateSessionStatusView,this.webRtcConnection.ontrack=this.onTrack,this.webRtcConnection.ondatachannel=this.onDataChannel}initialiseWebcam=async({stream:e,...t})=>{this.logging?.Debug("Initialise Sender Stream",this.logProperties),this.webcamStream=e??await navigator.mediaDevices.getUserMedia(t),this.debug("tracks",this.webcamStream.getTracks()),this.debug("track data",this.webcamStream.getTracks().map(e=>({id:e.id,label:e.label,kind:e.kind,constraints:e.getConstraints(),capabilities:e.getCapabilities(),settings:e.getSettings()}))),this.callbacks.onUpdateVideoStream(this.instance,this.webcamStream)};initialiseSender=async e=>{if(this.logging?.Debug("Initialise Sender",this.logProperties),this.debug("configuration",e),!this.webcamStream)return void this.callbacks.onError?.("Peer tried to initialise stream but no stream has started");this.fullSdpSent=!1,this.iceCandidates=[],this.webRtcConnection=new RTCPeerConnection(e),this.webRtcConnection.onicecandidate=this.onIceCandidate,this.webRtcConnection.oniceconnectionstatechange=this.onIceConnectionStateChange,this.webRtcConnection.onsignalingstatechange=this.updateSessionStatusView,this.debug("tracks",this.webcamStream.getTracks()),this.webcamStream.getTracks().forEach(e=>this.webRtcConnection.addTrack(e,this.webcamStream));const t=await this.webRtcConnection.createOffer();this.debug("offer",t.type,t.sdp.split("\n")),t.sdp=cc.setOpusAttributes(t.sdp,{stereo:1,maxaveragebitrate:51e4}),this.bandwidth&&(t.sdp=this.updateBandwidthRestriction(t.sdp,this.bandwidth)),await this.webRtcConnection.setLocalDescription(t),this.debug("localDescription",this.webRtcConnection.localDescription.type,this.webRtcConnection.localDescription.sdp.split("\n"));const n={type:oc.NewFullSDP,sdp:this.webRtcConnection.localDescription.sdp,sdpType:this.webRtcConnection.localDescription.type,tunnelId:this.tunnelId};this.sendEnginePeerNotifcation(n),this.fullSdpSent=!0;const r=this.iceCandidates;this.iceCandidates=[];for(const e of r)this.onIceCandidate(e)};onConnectionStateChange=async(...e)=>{this.debug("onConnectionStateChange",e)};onCandidate=async e=>{this.webRtcConnection.addIceCandidate(e);const t=this.getState().remoteSdp;t.push(e.candidate),this.callbacks.onUpdateRemoteSdp(this.instance,t),this.updateSessionStatusView()};onOffer=async e=>{this.bandwidth&&(this.debug("using the bandwidth limit",this.bandwidth,e.sdp),e.sdp=this.updateBandwidthRestriction(e.sdp,this.bandwidth)),e.sdp=cc.setOpusAttributes(e.sdp,{stereo:1,maxaveragebitrate:51e4}),e.sdp&&this.callbacks.onUpdateRemoteSdp(this.instance,e.sdp.split("\r\n"));try{await this.webRtcConnection.setRemoteDescription(e)}catch(e){console.error("Could not set remote description",e)}const t=await this.webRtcConnection.createAnswer();t.sdp=cc.setOpusAttributes(t.sdp,{stereo:1,maxaveragebitrate:51e4}),t.sdp&&this.callbacks.onUpdateLocalSdp(this.instance,t.sdp.split("\r\n")),this.debug("update local with answer",t),this.webRtcConnection.setLocalDescription(t),this.sendInviteNotification(t),this.buffer&&this.setBuffer(this.buffer)};onIceCandidate=e=>{if(e.candidate)if("recv"===this.direction||this.fullSdpSent){const t=this.getState().localSdp;t.push(e.candidate.candidate),this.callbacks.onUpdateLocalSdp?.(this.instance,t),this.sendCandidateNotification(e.candidate)}else this.iceCandidates.push(e)};previousIceConnectionState;onIceConnectionStateChange=e=>{switch(this.logging?.Debug(`ice connection state changed ${e.target.iceConnectionState} (from ${this.previousIceConnectionState})`,this.logProperties),this.debug("ice connection state changed",e.target.iceConnectionState),this.callbacks.onUpdateIceConnectionState?.(this.instance,e.target.iceConnectionState),e.target.iceConnectionState){case"connected":this.callbacks.onUpdateConnectionState?.(this.instance,ic.Connected),this.keepalive||"recv"!==this.direction||(this.keepalive=setTimeout(this.sendKeepalive,1e3*(dc.KEEPALIVE/2-300)));break;case"disconnected":case"failed":this.callbacks.onUpdateConnectionState?.(this.instance,ic.Closed),this.disconnect("ice connection disconnected")}this.previousIceConnectionState=e.target.iceConnectionState};sendKeepalive=async()=>{if(this.state.connectionState===ic.Connected){const e={type:oc.KeepAlive,tunnelId:this.tunnelId};this.keepaliveDebug("keepalive",e),await this.sendEnginePeerNotifcation(e,!1),this.keepalive=setTimeout(this.sendKeepalive,1e3*(dc.KEEPALIVE/2-300))}};updateSessionStatusView=()=>{if("closed"===this.webRtcConnection.signalingState)return this.callbacks.onUpdateRemoteSdp?.(this.instance,[]),void this.callbacks.onUpdateLocalSdp?.(this.instance,[]);if(this.webRtcConnection.remoteDescription){const e=this.webRtcConnection.remoteDescription.sdp.split("\r\n");this.callbacks.onUpdateRemoteSdp?.(this.instance,e)}if(this.webRtcConnection.localDescription){const e=this.webRtcConnection.localDescription.sdp.split("\r\n");this.callbacks.onUpdateLocalSdp?.(this.instance,e)}};stream;onTrack=e=>{this.debug("onTrack",e),this.getState().videoStream!==e.streams[0]&&(this.debug("onTrack update",e),this.callbacks.onUpdateVideoStream?.(this.instance,e.streams[0]),this.stream=e.streams[0])};onDataChannel=e=>{e.channel.onmessage=async e=>{const t=await new Response(e.data).text();this.debug("runtime",t),this.callbacks.onUpdateRuntime?.(this.instance,t)}};sendDiscoveryInitiationNotification=async()=>{const e={type:oc.Discovery,receiverTopic:this.webpageTopicId};this.debug("discovering",e),await this.sendEngineDiscoveryNotifcation(e)};sendInviteNotification(e){const t={type:oc.NewFullSDP,tunnelId:this.tunnelId,sdpType:e.type,sdp:e.sdp};this.debug("inviting",t),this.sendEnginePeerNotifcation(t)}sendCandidateNotification(e){if(e.candidate.length>0){const t={type:oc.Candidate,mLineIndex:e.sdpMLineIndex,sdp:e.candidate,tunnelId:this.tunnelId};this.debug("candidate",t),this.sendEnginePeerNotifcation(t)}}subscribeToNotifications=async e=>{this.debug("subscribing to notifications",this.webpageTopicId),await this.callbacks.onMailboxSubscribe(this.webpageTopicId,this.onNotification),e&&await this.callbacks.onMailboxUnsubscribe(e,this.onNotification),this.subscribeToStatsNotifications()};subscribeToStatsNotifications=async e=>{if(!this.parentWorkload)return;const t=`${this.gvEngineSenderDiscoveryTopicId}.${this.parentWorkload}.stats`;t!==e&&(this.debug("subscribing to stats notifications",t),await this.callbacks.onMailboxSubscribe(t,this.onStatsNotification),e&&await this.callbacks.onMailboxUnsubscribe(e,this.onStatsNotification))};onStatsNotification=async e=>{this.sendStatsNotifcation(e.content)};onNotification=async e=>{if(this.eventsDebug(e.content.type,this.webpageTopicId,e.content),e.topic===this.webpageTopicId)try{switch(e.content.type){case oc.Init:const t=e.content;this.gvEnginePeerTopicId=t.receiverTopic,uc("peer topic",this.gvEnginePeerTopicId),this.logging?.Info(`Peer topic is: ${this.gvEnginePeerTopicId}`,{...this.logProperties,CorrelationId:e.correlationId},["WebRTC"]),this.initialiseSender(t.tunnelConfig);break;case oc.Candidate:const n=e.content;this.onCandidate({candidate:n.sdp,sdpMLineIndex:n.mLineIndex});break;case oc.NewFullSDP:const r=e.content;if("offer"===r.sdpType)this.initialiseReceiver(r.tunnelConfig),this.onOffer({type:r.sdpType,sdp:r.sdp});else{this.webRtcConnection.setConfiguration(r.tunnelConfig),r.sdp&&this.callbacks.onUpdateLocalSdp(this.instance,r.sdp.split("\r\n")),this.debug("setting remote description",r);try{await this.webRtcConnection.setRemoteDescription({sdp:this.bandwidth?this.updateBandwidthRestriction(r.sdp,this.bandwidth):this.removeBandwidthRestriction(r.sdp),type:r.sdpType})}catch(e){console.error("Could not set remote description",e)}}break;case oc.ResetDone:this.gvEnginePeerTopicId="",this.keepalive&&(clearTimeout(this.keepalive),this.keepalive=null);break;case oc.DiscoveryResults:const o=e.content.senders?.[0];if(!o){this.logging?.Error("No senders were returned, check that the sender has flows and that a webrtc profile has been set."),this.disconnect("No senders were retunred from discovery");break}this.logging?.Info(`Sender identifier is: ${o.id}`,{CorrelationId:e.correlationId},["WebRTC"]),this.gvEnginePeerTopicId=`${this.gvEngineSenderDiscoveryTopicId}.${o.id}`;const i={type:oc.Init,receiverTopic:this.webpageTopicId,tunnelId:this.tunnelId,keepAliveFrequencySeconds:dc.KEEPALIVE};this.sendEnginePeerNotifcation(i);break;case oc.Error:const a=e.content;this.callbacks.onError?.(`Error from peer: ${a.message}`)}}catch(t){this.logging?.Error(`Failed Processing WebRTC Notification ${e.content.type}`,{content:JSON.stringify(e.content)})}else this.logging?.Error(`Recieved message for an invalid topic ${e.topic} my topic should be ${this.webpageTopicId}`,{...this.logProperties,CorrelationId:[e.correlationId,this.logProperties.CorrelationId]})}}const pc="@@gv-webrtc/",hc={UpdateConnectionState:`${pc}UPDATE_CONNECTION_STATE`,UpdateIceConnectionState:`${pc}UPDATE_ICE_CONNECTION_STATE`,UpdateLocalSdp:`${pc}UPDATE_LOCAL_SDP`,UpdateRemoteSdp:`${pc}UPDATE_REMOTE_SDP`,UpdateRuntime:`${pc}UPDATE_RUNTIME`,UpdateVideoStream:`${pc}UPDATE_VIDEO_STREAM`,UpdateTopic:`${pc}UPDATE_TOPIC`,NewInstance:`${pc}NEW_INSTANCE`,AddDataPoint:`${pc}ADD_DATA_POINT`,StatsReceived:`${pc}STATS_RECEIVED`,UpdateTunnelId:`${pc}TUNNEL_ID`},fc={onNewInstance:e=>({type:hc.NewInstance,instance:e,payload:{connectionState:ic.Closed,remoteSdp:[],localSdp:[],topic:"",tunnelId:"",stats:[]}}),onUpdateTopic:(e,t)=>({type:hc.UpdateTopic,topic:t,instance:e}),onUpdateTunnelId:(e,t)=>({type:hc.UpdateTunnelId,tunnelId:t,instance:e}),onUpdateConnectionState:(e,t)=>({type:hc.UpdateConnectionState,connectionState:t,instance:e}),onUpdateIceConnectionState:(e,t)=>({type:hc.UpdateIceConnectionState,connectionState:t,instance:e}),onUpdateLocalSdp:(e,t)=>({type:hc.UpdateLocalSdp,localSdp:t,instance:e}),onUpdateRemoteSdp:(e,t)=>({type:hc.UpdateRemoteSdp,remoteSdp:t,instance:e}),onUpdateRuntime:(e,t)=>({type:hc.UpdateRuntime,runtime:t,instance:e}),onUpdateVideoStream:(e,t)=>({type:hc.UpdateVideoStream,videoStream:t,instance:e}),onAddDataPoint:(e,t,n)=>({type:hc.AddDataPoint,series:t,value:n,instance:e}),onStatsReceived:(e,t)=>({type:hc.StatsReceived,stats:t,instance:e})};var gc=c(6343),mc=c.n(gc);const vc=C.GVDebug.extend("webrtc:display:audiobars");class yc extends w().PureComponent{audioRef;canvasRef;stream;audioContext;audioTrackSource;drawRef;width=10;instant=[];gainControls=[];analyserNodes=[];constructor(e){super(e),this.canvasRef=[],this.instant=[],this.audioRef=w().createRef();for(let e=0;e<32;e++)this.canvasRef[e]=w().createRef(),this.instant[e]=0;this.state={instant:this.instant.length,levels:this.props.levels}}async componentDidMount(){try{this.audioContext=new AudioContext}catch(e){vc("Unable to create audio context",e)}}componentDidUpdate(e){if(this.audioRef?.current&&this.props.webRTCService?.stream&&this.props.webRTCService.stream.getAudioTracks().length>0&&(this.props.webRTCService.stream!==this.stream||!mc()(this.props.audioTrack?.sort(),e.audioTrack?.sort()))){const e=this.audioContext.createMediaStreamDestination();this.gainControls=[],this.analyserNodes=[],this.stream=this.props.webRTCService.stream,this.audioRef.current.muted=this.props.muted;const t=this.stream.getAudioTracks(),n=(this.props.audioTrack?.length>0?this.props.audioTrack:t.map((e,t)=>t)).map(e=>t[e]).map(e=>new MediaStream([e])).map(e=>this.audioContext.createMediaStreamSource(e)),r=this.audioContext.createMediaStreamDestination();n.forEach(e=>{e.connect(r)}),this.audioTrackSource=this.audioContext.createMediaStreamSource(r.stream);const o=this.audioContext.createChannelSplitter(this.audioTrackSource.channelCount);this.audioTrackSource.connect(o);const i=this.audioContext.createChannelMerger(this.audioTrackSource.channelCount);for(let e=0;e<this.audioTrackSource.channelCount;e++){const t=this.audioContext.createAnalyser();t.fftSize=2048;const n=this.audioContext.createGain();o.connect(n,e,0),n.connect(t),t.connect(i,0,e),this.gainControls.push(n),this.analyserNodes.push(t)}i.connect(e),this.audioRef.current.srcObject=e.stream,this.audioContext.resume().then(()=>{this.volumeMeter()})}if(null!=this.audioTrackSource)for(let e=0;e<this.audioTrackSource.channelCount;e++)null!=this.props.channelLevelCoefficients[e]&&this.gainControls[e].gain.setValueAtTime(this.props.channelLevelCoefficients[e],this.audioContext.currentTime);this.audioRef?.current&&this.props.muted!==e.muted&&(this.audioRef.current.muted=this.props.muted),this.setState({levels:this.props.levels,instant:this.audioTrackSource?.channelCount??0})}componentWillUnmount(){this.audioContext&&this.audioContext.close(),this.drawRef&&cancelAnimationFrame(this.drawRef)}render(){const e=[];for(let t=0;t<this.state.instant;t++)e.push((0,i.jsx)("div",{className:"audio-bar",children:(0,i.jsx)("canvas",{ref:this.canvasRef[t],id:`bar-${t}`,width:this.width,height:this.props.height})},`level-${t}`));return(0,i.jsxs)("div",{className:"gv-web-rtc-audio-bars",children:[this.state.levels?e:[],(0,i.jsx)("audio",{id:"gv-web-rtc-audio",ref:this.audioRef,autoPlay:!0})]})}volumeMeter=()=>{for(let e=0;e<this.audioTrackSource.channelCount;e++){const t=this.analyserNodes[e],n=new Float32Array(t.fftSize);t.getFloatTimeDomainData(n);let r=0;for(let e=0;e<n.length;e++)r+=n[e]*n[e];this.instant[e]<1e-4&&(this.instant[e]=0);const o=Math.sqrt(r/n.length);let i=Math.max(o,.95*this.instant[e]);if(null!=this.props.channelLevelCoefficients[e]&&(i*=this.props.channelLevelCoefficients[e]),this.canvasRef?.[e]?.current){const t=this.canvasRef[e].current.getContext("2d");t.clearRect(0,0,this.width,this.props.height);const n=60,r=this.props.height/n,o=i*this.props.height*1.4/r;for(let e=0;e<o;e++)t.fillStyle=e>.75*n?"red":e>.6*n?"yellow":"green",t.fillRect(0,this.props.height-r*e,this.width,2-r)}}this.drawRef=window.requestAnimationFrame(this.volumeMeter)}}const Ac=C.GVDebug.extend("webrtc:monitor:display");class wc extends w().PureComponent{videoRef;service;debug;currentConnectionState=ic.Closed;containerRef;wrapperRef;resizeObserver=null;constructor(e){super(e),this.state={connectionState:ic.Closed},this.videoRef=w().createRef(),this.containerRef=w().createRef(),this.wrapperRef=w().createRef(),this.debug=Ac.extend(this.props.instance)}async componentDidMount(){!this.service&&this.props.sender&&await this.createService(),this.props.displayAspectRatio&&this.setupResizeObserver()}async componentDidUpdate(e,t){this.videoRef&&(this.updateVideoStream(),this.videoRef.current.muted=!0);const n=this.props.workloadId??this.props.applicationId,r=e.workloadId??e.applicationId;!this.props.sender||this.props.sender==e.sender&&this.service&&n==r||this.createService(),this.props.audioTrack!==e.audioTrack&&this.service?.stream?.getAudioTracks()?.forEach((e,t)=>{e.enabled=this.props.audioTrack.includes(t)||this.props.audioTrack.includes(t-1)||0===(this.props.audioTrack??[]).length}),t.connectionState!==this.state.connectionState?.toLowerCase()&&"connected"===this.state.connectionState?.toLowerCase()&&this.props.fullscreen&&this.videoRef.current.requestFullscreen(),this.hasAspectRatioChanged(e.displayAspectRatio,this.props.displayAspectRatio)&&(this.props.displayAspectRatio?this.setupResizeObserver():this.cleanupResizeObserver(),this.refreshVideoLayout())}hasAspectRatioChanged(e,t){return!(!e&&!t||e&&t&&e.num===t.num&&e.den===t.den)}refreshVideoLayout(){if(this.videoRef?.current&&this.service?.stream){const e=this.videoRef.current.srcObject;this.videoRef.current.srcObject=null,this.videoRef.current.srcObject=e}}setupResizeObserver(){this.cleanupResizeObserver(),this.props.displayAspectRatio&&this.containerRef.current&&(this.resizeObserver=new ResizeObserver(()=>{this.updateWrapperDimensions()}),this.resizeObserver.observe(this.containerRef.current),this.updateWrapperDimensions())}cleanupResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.wrapperRef.current&&(this.wrapperRef.current.style.width="",this.wrapperRef.current.style.height="")}updateWrapperDimensions(){const e=this.containerRef.current,t=this.wrapperRef.current;if(!e||!t||!this.props.displayAspectRatio)return;const{num:n,den:r}=this.props.displayAspectRatio,o=n/r,i=e.clientWidth,a=e.clientHeight-4;if(i<=0||a<=0)return;let s,l;i/a>o?(l=a,s=l*o):(s=i,l=s/o),t.style.width=`${Math.floor(s)}px`,t.style.height=`${Math.floor(l)}px`}async createService(){this.props.sender&&(this.debug=Ac.extend(this.props.instance),this.service=dc.get(this.props.instance,this.props.sender,"recv",{...this.props.callbacks,onUpdateConnectionState:(e,t)=>{this.setState({connectionState:t}),this.props.callbacks.onUpdateConnectionState?.(e,t),this.props.onConnectionStateChanged?.(t),this.currentConnectionState=t},onUpdateIceConnectionState:(e,t)=>{this.setState({iceConnectionState:t})}},this.props.workloadId??this.props.applicationId),this.props.update?.(this.service),this.props.autoConnect&&this.currentConnectionState===ic.Closed&&this.service.toggleReceiver())}componentWillUnmount(){this.cleanupResizeObserver(),this.props.disconnectOnUnmount&&this.service?.disconnect("webrtc component unmounted")}render(){return(0,i.jsx)(_.GVErrorBoundary,{children:(0,i.jsxs)("div",{className:"gv-web-rtc-component",ref:this.containerRef,children:["connected"!==this.state.connectionState?.toLowerCase()&&(0,i.jsxs)("div",{className:"video-disconnected",children:[(0,i.jsx)("div",{className:"video-disconnected-text",children:this.props.disconnectedMessage?this.props.disconnectedMessage:"WebRTC stream not connected"}),this.props.children]}),["connected","checking","connecting"].indexOf(this.state.connectionState?.toLowerCase())>-1&&this.videoRef&&this.videoRef.current&&2===this.state.networkState&&4!==this.state.readyState&&(0,i.jsx)(_.GVLoading,{}),(0,i.jsx)("div",{ref:this.wrapperRef,className:"video-wrapper"+(this.props.displayAspectRatio?" video-wrapper--aspect-override":""),style:{display:"connected"!==this.state.connectionState?.toLowerCase()?"none":void 0},children:(0,i.jsx)("video",{className:"video",ref:this.videoRef,autoPlay:!0,muted:!0})}),!this.props.muted&&(0,i.jsx)(_.AutoSizer,{disableWidth:!0,children:({height:e})=>(0,i.jsx)(yc,{webRTCService:this.service,...this.state,height:e,audioTrack:this.props.audioTrack,channelLevelCoefficients:this.props.channelLevelCoefficients??[],muted:this.props.muted,levels:this.props.levels})})]})})}updateVideoStream(){this.service?.stream&&this.videoRef.current.srcObject!==this.service.stream&&(this.videoRef.current.onloadstart=this.progress,this.videoRef.current.onsuspend=this.progress,this.videoRef.current.onerror=this.progress,this.videoRef.current.onemptied=this.progress,this.videoRef.current.onstalled=this.progress,this.videoRef.current.onloadeddata=this.progress,this.videoRef.current.onloadedmetadata=this.progress,this.videoRef.current.oncanplay=this.progress,this.videoRef.current.oncanplaythrough=this.progress,this.videoRef.current.onplaying=this.progress,this.videoRef.current.onwaiting=this.progress,this.videoRef.current.srcObject=this.service.stream,this.service?.stream?.getAudioTracks()?.forEach((e,t)=>{e.enabled=0===(this.props.audioTrack??[]).length||this.props.audioTrack.includes(t)||this.props.audioTrack.includes(t-1)}))}progress=e=>{if(this.videoRef&&this.videoRef.current){const{networkState:t,readyState:n}=this.videoRef.current;this.debug("event",e.type,t,n),t===this.state.networkState&&n===this.state.readyState||this.setState({networkState:t,readyState:n})}}}const bc={onMailboxSubscribe:async(e,t,n)=>{const r=await b.GVPlatform.get().getMailbox();return r.getEvents().on(e,t),r.subscribe(e,n)},onMailboxUnsubscribe:async(e,t,n)=>{const r=await b.GVPlatform.get().getMailbox();return r.getEvents().removeListener(e,t),r.unsubscribe(e,n)},onRaiseNotification:async(...e)=>{b.GVNotifications.get().raiseNotification(...e)},logging:b.GVLogging,onError:e=>_.GVNotificationActions.error(e)},_c=xn(e=>({applicationId:e.grassvalley.config.applicationId}),e=>({callbacks:{...qe(fc,e),...bc}}))(wc),Cc=C.GVDebug.extend("webrtc:stream:display");class Ec extends w().PureComponent{service;videoRef;containerRef;wrapperRef;resizeObserver=null;constructor(e){super(e),this.state={},this.videoRef=w().createRef(),this.containerRef=w().createRef(),this.wrapperRef=w().createRef()}componentDidMount(){!this.service&&this.props.receiever&&this.createService(),this.props.displayAspectRatio&&this.setupResizeObserver()}componentDidUpdate(e){this.videoRef?.current&&this.updateVideoStream(),!this.props.receiever||this.props.receiever==e.receiever&&this.service||this.createService(),e.muted!==this.props.muted&&(this.videoRef.current.muted=this.props.muted),this.hasAspectRatioChanged(e.displayAspectRatio,this.props.displayAspectRatio)&&(this.props.displayAspectRatio?this.setupResizeObserver():this.cleanupResizeObserver(),this.refreshVideoLayout())}hasAspectRatioChanged(e,t){return!(!e&&!t||e&&t&&e.num===t.num&&e.den===t.den)}refreshVideoLayout(){if(this.videoRef?.current){const e=this.service?.getStream();if(e){const e=this.videoRef.current.srcObject;this.videoRef.current.srcObject=null,this.videoRef.current.srcObject=e}}}setupResizeObserver(){this.cleanupResizeObserver(),this.props.displayAspectRatio&&this.containerRef.current&&(this.resizeObserver=new ResizeObserver(()=>{this.updateWrapperDimensions()}),this.resizeObserver.observe(this.containerRef.current),this.updateWrapperDimensions())}cleanupResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.wrapperRef.current&&(this.wrapperRef.current.style.width="",this.wrapperRef.current.style.height="")}updateWrapperDimensions(){const e=this.containerRef.current,t=this.wrapperRef.current;if(!e||!t||!this.props.displayAspectRatio)return;const{num:n,den:r}=this.props.displayAspectRatio,o=n/r,i=e.clientWidth,a=e.clientHeight;if(i<=0||a<=0)return;let s,l;i/a>o?(l=a,s=l*o):(s=i,l=s/o),t.style.width=`${Math.floor(s)}px`,t.style.height=`${Math.floor(l)}px`}createService(){this.service=dc.get(this.props.instance,this.props.receiever,"send",{...this.props.callbacks,onUpdateConnectionState:(e,t)=>{this.setState({connectionState:t}),this.props.callbacks.onUpdateConnectionState?.(e,t),this.props.onConnectionStateChanged?.(t)}}),this.props.update?.(this.service)}componentWillUnmount(){this.cleanupResizeObserver(),this.props.disconnectOnUnmount&&this.service?.disconnect("stream component unmounted")}render(){return(0,i.jsx)(_.GVErrorBoundary,{children:(0,i.jsxs)("div",{className:"gv-web-rtc-component",ref:this.containerRef,children:["closed"===this.state.connectionState?.toLowerCase()&&(0,i.jsxs)("div",{className:"video-disconnected",children:[(0,i.jsx)("div",{className:"video-disconnected-text",children:this.props.disconnectedMessage?this.props.disconnectedMessage:"WebRTC stream not connected"}),this.props.children]}),(0,i.jsx)("div",{ref:this.wrapperRef,className:"video-wrapper"+(this.props.displayAspectRatio?" video-wrapper--aspect-override":""),style:{display:"closed"===this.state.connectionState?.toLowerCase()?"none":void 0},children:(0,i.jsx)("video",{muted:this.props.muted,className:"video",ref:this.videoRef,autoPlay:!0})})]})})}updateVideoStream(){const e=this.service?.getStream();e&&this.videoRef.current.srcObject!==e&&(this.videoRef.current.onloadstart=this.progress,this.videoRef.current.onsuspend=this.progress,this.videoRef.current.onerror=this.progress,this.videoRef.current.onemptied=this.progress,this.videoRef.current.onstalled=this.progress,this.videoRef.current.onloadeddata=this.progress,this.videoRef.current.onloadedmetadata=this.progress,this.videoRef.current.oncanplay=this.progress,this.videoRef.current.oncanplaythrough=this.progress,this.videoRef.current.onplaying=this.progress,this.videoRef.current.onwaiting=this.progress,this.videoRef.current.srcObject=e)}progress=e=>{if(this.videoRef&&this.videoRef.current){const{networkState:t,readyState:n}=this.videoRef.current;Cc("event",e.type,t,n),t===this.state.networkState&&n===this.state.readyState||this.setState({networkState:t,readyState:n})}}}const Sc=xn(null,e=>({callbacks:{...qe(fc,e),...bc}}))(Ec),Oc={},xc=(e=Oc,t)=>{if(!t.type.startsWith(pc))return e;switch(t.type){case hc.NewInstance:return{...e,[t.instance]:t.payload};case hc.AddDataPoint:let n=(e[t.instance].datapoints?.[t.series]||[]).concat([t.value]);return n.length>100&&(n=n.slice(n.length-100)),{...e,[t.instance]:{...e[t.instance],datapoints:{...e[t.instance].datapoints??{},[t.series]:n}}};case hc.UpdateVideoStream:return{...e,[t.instance]:{...e[t.instance],videoStream:t.videoStream}};case hc.UpdateLocalSdp:return{...e,[t.instance]:{...e[t.instance],localSdp:t.localSdp}};case hc.UpdateRemoteSdp:return{...e,[t.instance]:{...e[t.instance],remoteSdp:t.remoteSdp}};case hc.UpdateConnectionState:return{...e,[t.instance]:{...e[t.instance],connectionState:t.connectionState}};case hc.UpdateIceConnectionState:return{...e,[t.instance]:{...e[t.instance],iceConnectionState:t.connectionState}};case hc.UpdateTopic:return{...e,[t.instance]:{...e[t.instance],topic:t.topic}};case hc.UpdateTunnelId:return{...e,[t.instance]:{...e[t.instance],tunnelId:t.tunnelId}};case hc.StatsReceived:return{...e,[t.instance]:{...e[t.instance],stats:t.stats}};default:return e}},Dc=e=>{const{instanceId:t}=e,n=kt(e=>e.webrtc[t]),r=n?.stats??[],o=n?.tunnelId,a=r.flatMap((e,t)=>{const{clientId:n,stats:r}=e,i=n===o;return r.map((e,r)=>({id:`${n}-${r}`,name:`Client ${t+1}`,clientId:n,current:i,...e}))});return 0===a.length?(0,i.jsx)("div",{className:"webrtc-stats-modal__content__item",children:"No statistics / No connected clients"}):(0,i.jsx)("div",{className:"webrtc-stats-modal__content",children:(0,i.jsx)("div",{className:"webrtc-stats-modal__content__item",children:(0,i.jsx)("div",{className:"webrtc-stats-modal__content__item__grid",children:(0,i.jsx)("div",{style:{minHeight:"300px"},children:(0,i.jsx)(_.GVTable,{rowData:a,groupDefaultExpanded:!0,renderPlaceholders:!0,defaultColDef:{suppressMenu:!0,enableSorting:!1},autoGroupColumnDef:{id:"type",accessorKey:"name",header:"Name",size:250,rowGroup:!0,valueGetter:e=>e.type},columnDefs:[{id:"fractionLost",accessorKey:"fractionLost",header:"Packet Loss Rate (%)",size:200,cellRenderer:e=>""+~~(100*+e.getValue()),customAggregate:(e,t)=>{const n=t.map(t=>t.original[e]);let r=0,o=0;for(const e of n)r+=e,o++;return r/(o>0?o:1)}},{id:"roundTripTime",accessorKey:"roundTripTime",header:"Round Trip Time (ms)",size:200,cellRenderer:e=>(1e3*+e.getValue()).toFixed(3),customAggregate:(e,t)=>{const n=t.map(t=>t.original[e]);let r=0,o=0;for(const e of n)r+=e,o++;return r/(o>0?o:1)}},{id:"nackCount",accessorKey:"nackCount",header:"NACK Count",size:200,aggregationFn:"sum"}]})})})})})},Pc=e=>{const{value:t,index:n,faderName:r,onFaderChange:o,disabled:a}=e,[s,l]=(0,y.useState)(e.value),[c,u]=(0,y.useState)(!1);return(0,y.useEffect)(()=>{c||Math.abs(s-t)<1e-7||o(s,n)},[c,s,t,n,o]),(0,i.jsxs)("div",{style:{display:"flex",flexFlow:"column",alignItems:"center"},children:[(0,i.jsx)(_.GVAudioFader,{disabled:a,thin:!0,value:s,onChange:l,min:0,max:100,onSlideEnd:()=>u(!1),onSlideStart:()=>u(!0),tickValues:["10","20","30","40","50","60","70","80","90"]}),(0,i.jsxs)("div",{style:{display:"flex",flexFlow:"row"},children:[(0,i.jsx)(_.GVIcon,{icon:"audio"}),(0,i.jsx)(_.GVLabel,{style:"default",children:r})]})]})};class Mc{static enable=e=>{"webrtc"===e&&C.GVRegistry.get().addReduxReducer("webrtc",xc)}}class Tc extends w().PureComponent{mounted;state={};async componentDidMount(){this.mounted=!0;const{clipId:e}=this.props,t=await b.GVAssetManagement.get().assets.getImage(e);this.mounted&&this.setState({image:t})}componentWillUnmount(){this.mounted=!1}render(){const{style:e}=this.props,{image:t}=this.state;return t?(0,i.jsx)("img",{style:e,src:t}):null}}const Rc=260,Ic=e=>{const t=document.documentElement.clientWidth,n=document.documentElement.clientHeight,r=n-e.bottom,o=e.top,i=r>=304;if(i||o>=304){const n=i?e.bottom+4:e.top-300-4;let r=e.right-Rc;return r<4&&(r=4),r+Rc>t-4&&(r=t-Rc-4),{top:n,left:r}}let a=e.top+e.height/2-150;return a=Math.max(4,Math.min(a,n-300-4)),{top:a,left:t-e.right>=e.left?e.right+4:Math.max(4,e.left-Rc-4)}};var Fc,kc;!function(e){e.Left="left",e.Right="right"}(Fc||(Fc={})),function(e){e.Root="root",e.My="my",e.Public="public",e.Workflow="workflow"}(kc||(kc={}));const Lc={[kc.Root]:"Saved Searches",[kc.My]:"My Searches",[kc.Public]:"Public Searches",[kc.Workflow]:"Workflow Searches"},Bc=[{label:"contains",value:"contains"},{label:"doesn't contain",value:"not-contains"},{label:"is",value:"equals"},{label:"is not",value:"not-equals"},{label:"begins with",value:"startsWith"},{label:"ends with",value:"endsWith"}],Nc=[{label:"Asset name",value:"asset:name:text"},{label:"All fields",value:"all:aggregate:text"}],jc=[{label:"All Types",value:""},{label:"Audio",value:"audio"},{label:"Compilation",value:"compilation"},{label:"Edius Project",value:"ediusproject"},{label:"Edius Sequence",value:"ediussequence"},{label:"File",value:"file"},{label:"Graphic",value:"graphic"},{label:"Graphics Composition",value:"graphicscomposition"},{label:"Image",value:"image"},{label:"Macro Event",value:"macroevent"},{label:"Partial Restore",value:"partialrestore"},{label:"Premiere Project",value:"premiereproject"},{label:"Premiere Sequence",value:"premieresequence"},{label:"Search",value:"search"},{label:"Sequence",value:"sequence"},{label:"Subclip",value:"subclip"},{label:"Subtitles",value:"subtitles"},{label:"Template",value:"template"},{label:"Video",value:"video"}],Uc=()=>(0,i.jsx)(_.GVIcon,{icon:"image"}),Vc=({label:e,onBack:t})=>(0,i.jsxs)("div",{className:"saved-search-breadcrumb",children:[(0,i.jsx)("button",{className:"saved-search-back",onClick:t,type:"button","aria-label":"Back",children:(0,i.jsx)(_.GVIcon,{icon:"arrows-back"})}),(0,i.jsx)(_.GVIcon,{icon:"file-folder-searches"}),(0,i.jsx)("span",{className:"saved-search-name",children:e})]}),Hc=e=>"search"===String(e?.doc?.["type:type"]??e?.doc?.["type:assetType"]),Gc=(e,t,n)=>Hc(n)?(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},children:(0,i.jsx)(_.GVIcon,{icon:"file-folder-searches"})}):(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},children:(0,i.jsx)(Tc,{style:{width:"46px",height:"26px",borderRadius:"5px"},clipId:n?.doc?.version?.["clip:id"]})}),Wc=({locationIds:e,locationsMap:t})=>{const n=(0,y.useRef)(null),[r,o]=(0,y.useState)(!1),[a,s]=(0,y.useState)(!1),l=(0,y.useCallback)(()=>{const e=n.current;e&&(o(e.scrollLeft>0),s(e.scrollLeft<e.scrollWidth-e.clientWidth-1))},[]);(0,y.useEffect)(()=>{l()},[e,l]);const c=(e,t)=>{e.stopPropagation();const r=n.current;if(r){const e=100;r.scrollBy({left:t===Fc.Left?-e:e,behavior:"smooth"}),setTimeout(l,150)}};return e&&0!==e.length?(0,i.jsxs)("div",{className:"locations-cell-wrapper",children:[r&&(0,i.jsx)("button",{className:"locations-arrow locations-arrow-left",onClick:e=>c(e,Fc.Left),type:"button","aria-label":"Scroll left",children:(0,i.jsx)(_.GVIcon,{icon:"arrows-left-small"})}),(0,i.jsx)("div",{className:"locations-cell",ref:n,onScroll:l,children:e.map(e=>(0,i.jsx)(_.GVTag,{size:_.IGVTagSize.Small,children:t.get(e)??e},e))}),a&&(0,i.jsx)("button",{className:"locations-arrow locations-arrow-right",onClick:e=>c(e,Fc.Right),type:"button","aria-label":"Scroll right",children:(0,i.jsx)(_.GVIcon,{icon:"arrows-right-small"})})]}):null},zc=e=>{const{onAssetRowSelected:t,onAssetRowsSelected:n,onAssetRowDoubleClick:r,store:o,selectButton:a,rowSelection:s,includeSubclips:l,customSearchQuery:c,style:u}=e,d=(0,y.useRef)(null),p=(0,y.useRef)(null),h=(0,y.useRef)(""),f=(0,y.useRef)(l??!1),g=(0,y.useRef)(null),m=(0,y.useRef)(null),[v]=(0,y.useState)(b.GVAssetManagement.get().assets),[A,w]=(0,y.useState)(!1),[C,E]=(0,y.useState)([]),[S,O]=(0,y.useState)(""),[x,D]=(0,y.useState)([]),[P,M]=(0,y.useState)("asset:name:text"),[T,R]=(0,y.useState)([]),[I,F]=(0,y.useState)("contains"),[k,L]=(0,y.useState)(l??!1),[B,N]=(0,y.useState)(new Map),[j,U]=(0,y.useState)(null),[V,H]=(0,y.useState)([]),[G,W]=(0,y.useState)({date:null,open:!1}),[z,$]=(0,y.useState)(null),[K,Q]=(0,y.useState)([]);(0,y.useEffect)(()=>{b.GVAssets.get().getLocations().then(e=>{const t=new Map;if(e?.data?.hits)for(const n of e.data.hits){const e=n.doc?.id??n.id,r=n.doc?.name??n.name??e;e&&t.set(e,r)}N(t)})},[]),(0,y.useEffect)(()=>{if(c){const e=c(o,"");v.getSearchResultsFromSearch(e,0,200).then(e=>{D(e.hits)})}else v.getSearchResults(0,200,o).then(e=>{D(e.hits)})},[v,o,l,c]),(0,y.useEffect)(()=>{if(!G.open)return;const e=()=>{const e=m.current?.getBoundingClientRect();e&&W(t=>({...t,position:Ic(e)}))};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[G.open]);const q=(e,t,n,r,o)=>{g.current?Z(e,t,n,r,o):X(e,t,n,r,o)},Y=e=>{const t=new Map;for(const n of e){const e=String(n.doc["asset:id"]);t.has(e)||t.set(e,n)}return Array.from(t.values())},X=async(e,t,n,r,i)=>{const a=(c??((e,o)=>le(e,o,t,n,r)))(o,e),s=await v.getSearchResultsFromSearch(a,0,200);if(e&&i){const e=s.hits.filter(e=>"subclip"!==String(e.doc["type:type"]));if(0===e.length)D(Y(s.hits));else{const t=new Set(e.map(e=>String(e.doc["asset:id"]))),n=await v.getRelatedSubclips(t,200,new Set),r=[...s.hits,...n];D(Y(r))}}else D(s.hits)},Z=async(e,t,n,r,i)=>{const a=g.current;if(!a)return;const{orderBy:s,...l}=a,c=l.all?[...l.all]:[l];n.length>0&&c.push({any:n.map(e=>({"asset:type:type":{contains:e}}))});const u=se(o);u&&c.push(u),e&&c.push({"asset:name:text":{[r]:e}});const d={all:c};s&&(d.orderBy=s);let p=(await v.getSearchResultsFromSearch(d,0,200)).hits;if(e&&i){const e=p.filter(e=>"subclip"!==String(e.doc["type:type"]));if(e.length>0){const t=new Set(e.map(e=>String(e.doc["asset:id"]))),n=await v.getRelatedSubclips(t,200,new Set);p=Y([...p,...n])}}H(p)},J=()=>{U(null),H([]),g.current=null},ee=()=>{z?($(null),Q([]),j&&J(),X(S,P,T,I,k)):(j&&J(),$(kc.Root))},te=T.includes("search")&&!j,ne=z&&!j,re=(0,y.useMemo)(()=>te?x.filter(Hc):[],[te,x]),oe=(0,y.useMemo)(()=>{let e;if(e=ne&&z!==kc.Root?K:te?re:j?V:x,G.date){const t=new Date(G.date);t.setHours(0,0,0,0);const n=t.getTime();e=e.filter(e=>{const t=e?.doc?.["created:dateTime"];return!t||t>=n})}return e},[z,K,te,j,x,V,re,G.date,ne]),ie=te||ne&&z!==kc.Root,ae=!te&&!ne,se=e=>{if(!e||"string"==typeof e&&(!e||"all"===e.toLowerCase()||"undefined"===e))return null;const t=Array.isArray(e)?e:[e];return 0===t.length?null:{any:t.map(e=>({"asset:locations:tags":{contains:`${e}`}}))}},le=(e,t,n,r,o)=>{const i=[];if(t&&i.push({[n]:{[o]:t}}),r.length>0){const e=r.map(e=>({"asset:type:type":{contains:e}}));e.length>1?i.push({any:e}):i.push(e[0])}let a;a=0===i.length?{all:[]}:1===i.length?i[0]:{all:i};const s=se(e);if(!s)return a;const l=[{all:[a,s]}];return r.includes("search")&&l.push({all:[a,{"asset:type:type":{equals:"search"}}]}),{any:l}},ce=(0,y.useCallback)((e,t,n)=>(0,i.jsx)(Wc,{locationIds:n?.doc?.["store:locations"]??[],locationsMap:B}),[B]);return(0,i.jsxs)("div",{className:"gv-assetmanager",style:u,children:[te&&(0,i.jsx)(Vc,{label:"Saved Searches",onBack:()=>{R(e=>e.filter(e=>"search"!==e)),X(S,P,[],I,k)}}),ne&&(0,i.jsx)(Vc,{label:Lc[z],onBack:z===kc.Root?ee:()=>{$(kc.Root),Q([])}}),j&&(0,i.jsx)(Vc,{label:j?.doc["name:text"],onBack:()=>{J(),z||X(S,P,T,I,k)}}),(0,i.jsx)(_.GVTextInputWithIcon,{style:"searchWithIcon",onChange:e=>{O(e),h.current=e,null!=p.current&&(clearTimeout(p.current),p.current=null),p.current=setTimeout(()=>q(e,P,T,I,f.current),1e3)},value:S,icon:"search"}),ae&&(0,i.jsxs)("div",{className:"search-controls",children:[(0,i.jsxs)("div",{className:"filter",children:[(0,i.jsx)("span",{children:"Search in:"}),(0,i.jsx)(_.GVSelect,{options:Nc,value:P,onChange:e=>{M(e),q(h.current||"",e,T,I,k)}})]}),(0,i.jsxs)("div",{className:"filter",children:[(0,i.jsx)("span",{children:"Asset type:"}),(0,i.jsx)(_.GVSelect,{options:jc,value:T,onChange:e=>{R(e),q(S||"",P,e,I,k)},isMulti:!0})]}),(0,i.jsxs)("div",{className:"filter",children:[(0,i.jsx)("span",{children:"Operator:"}),(0,i.jsx)(_.GVSelect,{options:Bc,value:I,onChange:e=>{F(e),q(S||"",P,T,e,k)}})]}),(0,i.jsxs)("div",{className:"filter",children:[(0,i.jsx)("span",{children:"Include subclips:"}),(0,i.jsx)(_.GVSwitch,{value:k,onChange:e=>{L(e),f.current=e,q(S||"",P,T,I,e)}})]}),(0,i.jsx)(_.GVButton,{style:z?"primary2":"page",icon:"file-folder-searches",className:"saved-searches-toggle",onClick:ee,hint:"Browse saved searches"}),(0,i.jsxs)("div",{className:"date-filter-wrapper",ref:m,children:[(0,i.jsx)(_.GVButton,{style:G.date?"primary2":"page",icon:"time-date-calendar",className:"date-filter-toggle",hint:"Toggle date filter",onClick:()=>{const e=m.current?.getBoundingClientRect();e&&W(t=>({...t,open:!t.open,position:Ic(e)}))}}),G.open&&(0,i.jsxs)("div",{className:"date-filter-dropdown",style:G.position,children:[(0,i.jsx)(_.GVDateTimePicker,{selected:G.date??void 0,onChange:e=>{W(t=>({...t,date:e instanceof Date?e:new Date(e),open:!1}))},inline:!0,showTimeInput:!1,maxDate:new Date,shouldCloseOnSelect:!0,dateFormat:"MMMM dd yyyy"}),G.date&&(0,i.jsx)(_.GVButton,{style:"secondary",className:"date-filter-clear",onClick:()=>W(e=>({...e,date:null,open:!1})),children:"Clear"})]})]})]}),(0,i.jsx)("div",{className:"gv-assetmanager-results",children:z===kc.Root?(0,i.jsx)("div",{className:"saved-search-folders",children:Object.values(kc).filter(e=>e!==kc.Root).map(e=>(0,i.jsxs)("button",{className:"folder-item",onClick:()=>(async e=>{$(e);const t=[{"asset:type:type":{equals:"search"}}];e===kc.Public?t.push({"asset:searchLabels:tags":{contains:"public"}}):e===kc.Workflow&&t.push({"asset:searchLabels:tags":{contains:"workflow"}});const n={all:t,orderBy:[{"asset:name:text":"asc"}]},r=await v.getSearchResultsFromSearch(n,0,200);if(e===kc.My){const e=await b.GVPlatform.get().identity.getUser();Q(r.hits.filter(t=>String(t.doc["creator:id"])===e?.id))}else Q(r.hits)})(e),type:"button",children:[(0,i.jsx)(_.GVIcon,{icon:"file-folder-searches"}),(0,i.jsx)("span",{children:Lc[e]})]},e))}):(0,i.jsx)(_.GVTable,{tableId:"gv-assetsearch",rowHeight:36,style:{minHeight:"100%",maxHeight:"100%"},headerHeight:36,rowData:oe,onTableReady:e=>{e&&(d.current=e)},onRowDoubleClick:(e,t)=>{const n=t.original;n&&!Hc(n)&&r?.(n.doc)},onRowSelected:e=>{const r=e.rowsSelected.filter(e=>null!=e);if(r.length>0){if(!j&&1===r.length&&Hc(r[0]))return void(async e=>{U(e),O(""),h.current="",R([]);const t=String(e.doc["search:id"]??e.doc["asset:id"]),n=await v.getGenericDefinition(t),r=n?.content?.query;r?(g.current=r,Z("",P,[],I,k)):J()})(r[0]);w(!0),E(r),t&&1===r.length?t(r[0].doc):n&&n(r.map(e=>e.doc))}else w(!1)},getRowId:e=>e?.doc?.["asset:id"],rowSelection:s,columnDefs:[{id:"icon",header:Uc,suppressMenu:!0,enableResizing:!1,enableSorting:!1,enableColumnFilter:!1,size:60,maxSize:60,accessorFn:e=>e.doc?.version?.["clip:id"],cellRenderer:Gc},{id:"clipName",header:ie?"Search name":"Clip name",size:ie?950:480,accessorFn:e=>e?.doc?.["name:text"],filterValueGetter:e=>e?.doc?.["name:text"]??""},...ie?[]:[{id:"duration",header:"Duration",accessorFn:e=>e?.doc?.version?.["duration:timecodeString"],filterValueGetter:e=>e?.doc?.version?.["duration:timecodeString"]??"",size:145},{id:"resolution",header:"Resolution",size:125,accessorFn:e=>`${e?.doc?.version?.["width:int"]}x${e?.doc?.version?.["height:int"]}`,filterValueGetter:e=>`${e?.doc?.version?.["width:int"]??""}x${e?.doc?.version?.["height:int"]??""}`},{id:"locations",header:"Locations",size:200,accessorFn:e=>e?.doc?.["store:locations"],filterValueGetter:e=>(e?.doc?.["store:locations"]??[]).map(e=>B.get(e)??e).join(", "),cellRenderer:ce}]]})}),a?(0,i.jsx)(_.GVButton,{disabled:!A,text:!0,style:"primary2",onClick:()=>(w(!1),e?.onSelect?.(C.map(e=>e.doc),d.current)),children:"Select"}):null]})},$c=({producer:e})=>{if(!e)return null;const t=[];for(const n of e.stream?.flows??[])switch(n.dataType){case"Anc":t.push((0,i.jsxs)("p",{children:[" ",(0,i.jsx)("strong",{children:"Frame rate:"})," ",(n.descriptor.rate.num/n.descriptor.rate.den).toFixed(3)," fps"," "]},`${n.flowId}-framerate`));break;case"Pic":t.push((0,i.jsxs)("p",{children:[(0,i.jsx)("strong",{children:"Resolution:"})," ",n.descriptor.width," x ",n.descriptor.height," px"," "]},`${n.flowId}-resolution`),(0,i.jsxs)("p",{children:[(0,i.jsx)("strong",{children:"Progressive:"})," ",n.descriptor.progressive?"Yes":"No"," "]},`${n.flowId}-progressive`));break;case"Snd":t.push((0,i.jsxs)("p",{children:[" ",(0,i.jsx)("strong",{children:"Audio Channels:"})," ",n.descriptor.channelCount]},`${n.flowId}-audio-channels`))}return(0,i.jsxs)("div",{className:"gv-flow-details",children:[(0,i.jsxs)("p",{children:[(0,i.jsx)("strong",{children:"Name:"}),e.name]}),(0,i.jsxs)("p",{children:[(0,i.jsx)("strong",{children:"Alias:"})," ",e.alias]}),(0,i.jsx)("div",{children:t}),(0,i.jsx)("strong",{children:"Consumers:"}),(0,i.jsx)("ul",{children:e.routedConsumers?.map(e=>(0,i.jsx)("li",{children:e.name},e.id))}),(0,i.jsx)("hr",{}),(0,i.jsx)(_.GVCollapsablePanel,{panels:[{title:"Details",id:"json-details",children:(0,i.jsx)("pre",{children:JSON.stringify(e,null,2)})}]})]})};class Kc extends y.PureComponent{previewManager;canvas;imageContext;glContext;chromaProgram;chromaVb;chromaTex;chromaLoc={};lumaProgram;lumaVb;lumaTex;lumaLoc={};signal;static getDerivedStateFromProps(e,t){let n,r,o,i=`preview-panel ${e.title} ${e.label}`;const a=e.thumbnailSource??null,s=e.isDetectionOn??!1,l=e.blkFrameDetectionTime??3,c=e.frznDetectionTime??3;if("frameCache"in e&&"flow"in e)o=e.frameCache,n=e.flow,r=e.alphaFlow,t.flows&&t.flows.metadata?.AMPP_PROXY&&Object.keys(t.flows.metadata).length>0&&(n=t.flows.metadata?.AMPP_PROXY[0].flowId);else if("flows"in e){o=e.frameCache;let t=null;for(const o of e.flows)"Pic"===o.dataType?o.descriptor&&o.descriptor.alpha&&!r?r=o.flowId:o.metadata&&Object.keys(o.metadata).length>0&&o.metadata.AMPP_PROXY?n=o.metadata.AMPP_PROXY[0].flowId:n||(n=o.flowId):"Snd"===o.dataType&&(t||(t=o.flowId));t&&!n&&(n=t)}else if("producer"in e){i=`${e.producer?.name} ${i}`,o=e.producer?.nodeId;let t=null;for(const o of e.producer?.stream?.flows??[])"Pic"===o.dataType?o.descriptor&&o.descriptor.alpha&&!r?r=o.flowId:o.metadata&&Object.keys(o.metadata).length>0&&o.metadata.AMPP_PROXY?n=o.metadata.AMPP_PROXY[0].flowId:n||(n=o.flowId):"Snd"===o.dataType&&(t||(t=o.flowId));t&&!n&&(n=t)}else if("producerName"in e){i=`producerName ${e.producerName} ${i}`;const t=b.GVMatrixManager.get().getProducerByName(e.producerName);o=t?.nodeId;let a=null;for(const e of t?.stream?.flows??[])"Pic"===e.dataType?e.descriptor&&e.descriptor.alpha&&!r?r=e.flowId:e.metadata&&Object.keys(e.metadata).length>0&&e.metadata.AMPP_PROXY?n=e.metadata.AMPP_PROXY[0].flowId:n||(n=e.flowId):"Snd"===e.dataType&&(a||(a=e.flowId));a&&!n&&(n=a)}const{width:u}=e,{ratio:d,width:p,width:h,flow:f,alphaFlow:g,alphaImg:m}=t,v={};return u&&p!==u&&(v.width=u),((n||f&&!n)&&(!f||f&&n!==f||(v.width??p)!==h)||f&&!n)&&(b.GVPreviewManager.get().addOrUpdateSubscription(t.subscription,o,n,(v.width??p)*d,i,!1,null,s,l,c),n&&o?(v.flow=n,v.framecache=o):(v.img=e.image&&e.transparent?null:"SMPTE2110"==e.type?qc().img:"Orbit"==e.type?Yc().img:"NMOS"==e.type?Xc().img:"TVU"==e.type?Zc().img:b.GVPreviewManager.get().getNoSignalImage().img,v.flow=null,v.framecache=null)),(!n&&(r||g&&!r)&&(!g||g&&r!==g)||g&&!r)&&(b.GVPreviewManager.get().addOrUpdateSubscription(t.alphaSubscription,o,r,800,i,!0,a,s,l,c),r&&o&&(v.alphaFlow=r)),!r&&m&&(v.alphaImg=null,v.alphaFlow=null),v}constructor(e){super(e),this.canvas=y.createRef(),this.previewManager=b.GVPreviewManager.get();const t={img:e.transparent?null:"SMPTE2110"==e.type?qc().img:"Orbit"==e.type?Yc().img:"NMOS"==e.type?Xc().img:"TVU"==e.type?Zc().img:this.previewManager.getNoSignalImage().img,ratio:window.devicePixelRatio||1,width:(this.props.id?parseInt(b.GVPlatform.get().storage.getItem(`preview_width_${this.props.id}`)||"480",10):e.initialWidth)||480,subscription:Kn(),alphaSubscription:Kn()};e.desync?this.previewManager.addListener("img",this.img):this.previewManager.addListener("tick",this.tick),e.tick&&(t.tick=e.tick,this.previewManager.setTickInterval(e.tick)),this.state=t}retryAddOrUpdateSubscription=()=>{this.previewManager.addOrUpdateSubscription(this.state.subscription,this.state.framecache,this.state.flow,this.state.width*this.state.ratio)};onReconnected=async()=>{try{this.retryAddOrUpdateSubscription()}catch(e){this.retryAddOrUpdateSubscription()}};onClose=async()=>{this.signal.off("reconnected",this.onReconnected),this.signal.off("close",this.onClose),this.signal=null;try{const e=async()=>{b.GVPlatform.get().isHubConnection()&&await this.startSignalRConnectionInFrameCachePreview(!0)?this.retryAddOrUpdateSubscription():setTimeout(e,1e3)};e()}catch(e){this.retryAddOrUpdateSubscription()}};startSignalRConnectionInFrameCachePreview=async e=>{let t=!1;try{this.signal=await b.GVPlatform.get().getHubConnection(e),this.signal.onreconnected(this.onReconnected),this.signal.onclose(this.onClose),t=!0}catch(e){t=!1}return t};updateSubscription=(e,t)=>{let n=`preview-panel ${this.props.title} ${this.props.label}`;"producer"in this.props&&"producer"in e&&(n=`${this.props.producer?.name} ${n}`);const{width:r}=this.props,{width:o,ratio:i}=this.state,{ratio:a}=t,s={};r&&o!==r&&(s.width=r),i!==a&&this.state.framecache&&this.state.flow&&this.previewManager.addOrUpdateSubscription(this.state.subscription,this.state.framecache,this.state.flow,(s.width??o)*i,n,null,this.props.thumbnailSource??null,this.props.isDetectionOn??!1,this.props.blkFrameDetectionTime??3,this.props.frznDetectionTime??3),i!==a&&this.state.framecache&&!this.state.flow&&this.state.alphaFlow&&this.previewManager.addOrUpdateSubscription(this.state.alphaSubscription,this.state.framecache,this.state.alphaFlow,800,n,null,this.props.thumbnailSource??null,this.props.isDetectionOn??!1,this.props.blkFrameDetectionTime??3,this.props.frznDetectionTime??3),this.props.desync!==e.desync&&(this.props.desync?(this.previewManager.addListener("img",this.img),this.previewManager.removeListener("tick",this.tick)):(this.previewManager.addListener("tick",this.tick),this.previewManager.removeListener("img",this.img)))};componentDidUpdate(e,t){if(this.updateSubscription(e,t),"frameCache"in this.props&&"flow"in this.props){const t=this.props.frameCache,n=this.props.flow;e.flow!==this.props.flow&&b.GVPlatform.get().base.framecache.getFrameCache(t).then(e=>{e.getFlows(n).then(e=>{this.setState({flows:e})})})}}componentWillUnmount(){const e=`preview-panel ${this.props.title} ${this.props.label}`;this.previewManager.addOrUpdateSubscription(this.state.subscription,null,null,null,e),this.previewManager.addOrUpdateSubscription(this.state.alphaSubscription,null,null,null,e),this.props.desync?this.previewManager.removeListener("img",this.img):this.previewManager.removeListener("tick",this.tick),this.glContext&&(this.chromaProgram&&this.glContext.deleteProgram(this.chromaProgram),this.chromaVb&&this.glContext.deleteBuffer(this.chromaVb),this.chromaTex&&this.glContext.deleteTexture(this.chromaTex),this.lumaProgram&&this.glContext.deleteProgram(this.lumaProgram),this.lumaVb&&this.glContext.deleteBuffer(this.lumaVb),this.lumaTex&&this.glContext.deleteTexture(this.lumaTex))}async componentDidMount(){await this.startSignalRConnectionInFrameCachePreview(!0),this.updateSubscription({},{}),this.tick()}render(){const{title:e,label:t,className:n,showResizeButtons:r=!0}=this.props,{img:o,width:a,imageOverlay:s}=this.state;if(!0===this.props.image){const{className:e,label:t,imageStyle:n,transparent:r,overlayStyle:a,...l}=this.props;return(0,i.jsxs)(i.Fragment,{children:[r&&!o?null:(0,i.jsxs)(i.Fragment,{children:[this.props.isDetectionOn&&(0,i.jsx)("div",{style:{position:"absolute",height:"100%"},children:(0,i.jsx)("img",{src:s,style:a})}),"TVU"===this.props.type?(0,i.jsx)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:"7%",boxSizing:"border-box"},children:(0,i.jsx)("img",{src:o,alt:t,className:e,style:{display:"block",maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto",objectFit:"contain",...n}})}):(0,i.jsx)("img",{src:o,alt:t,className:e,style:n,...g()(l,"alphaFlow","flow","frameCache","producer","flows","chromaKey","lumaKey","producerName")})]}),(0,i.jsx)("canvas",{ref:this.canvas,style:{display:"none"}})]})}return(0,i.jsxs)(_.GVPanel,{title:e||"Preview",style:{width:`${a+2}px`},buttons:r?[{action:()=>this.setZoom(a+20),icon:"search-zoom-in"},{action:()=>this.setZoom(a-20),icon:"search-zoom-out"}]:void 0,items:this.props.items,selected:this.props.selected,itemsOnChange:this.props.itemsOnChange,bodyStyle:{marginTop:"1px"},children:[(0,i.jsxs)("div",{className:n,children:[this.props.isDetectionOn&&(0,i.jsx)("div",{style:{position:"absolute"},children:(0,i.jsx)("img",{src:s,alt:t,style:{width:`${a||480}px`,marginBottom:"-3px",opacity:.5}})}),(0,i.jsx)("img",{src:o,alt:t,style:{width:`${a||480}px`,marginBottom:"-3px"}})]}),(0,i.jsx)("canvas",{ref:this.canvas,style:{display:"none"}}),this.props.children]})}setZoom=e=>{this.setState({width:e}),this.props.id&&b.GVPlatform.get().storage.setItem(`preview_width_${this.props.id}`,e)};img=async(e,t)=>{!0===this.props.desync&&(t!==this.state.flow&&t!==this.state.alphaFlow||(this.props.alpha&&this.state.alphaFlow||this.props.chromaKey||this.props.lumaKey?this.composeAlpha():this.setState({img:"SMPTE2110"==this.props.type?qc().img:"Orbit"==this.props.type?Yc().img:"NMOS"==this.props.type?Xc().img:"TVU"==this.props.type?Zc().img:this.previewManager.getPreview(this.state.framecache,this.state.flow).img,imageOverlay:this.props.isDetectionOn&&(await this.previewManager.getWarningOverlay(e,t,this.props.producerName,this.props.voiceName,this.props.announcementsOn))?.img})),this.setState({ratio:window.devicePixelRatio}))};renderLumaKey=(e,t,n)=>{if(this.canvas.current)try{this.glContext||(this.glContext=this.canvas.current.getContext("webgl"));const r=this.glContext;if(!this.lumaProgram){const e=r.createShader(r.VERTEX_SHADER);if(r.shaderSource(e,_.vertexShaderSrcLuma),r.compileShader(e),!r.getShaderParameter(e,r.COMPILE_STATUS))throw console.error(r.getShaderInfoLog(e)),r.deleteShader(e),new Error;const t=r.createShader(r.FRAGMENT_SHADER);if(r.shaderSource(t,_.fragmentShaderSrcLuma),r.compileShader(t),!r.getShaderParameter(t,r.COMPILE_STATUS))throw console.error(r.getShaderInfoLog(t)),r.deleteShader(t),new Error;if(this.lumaProgram=r.createProgram(),r.attachShader(this.lumaProgram,e),r.attachShader(this.lumaProgram,t),r.linkProgram(this.lumaProgram),!r.getProgramParameter(this.lumaProgram,r.LINK_STATUS))throw console.error(r.getProgramInfoLog(this.lumaProgram)),r.deleteProgram(this.lumaProgram),new Error;this.lumaLoc.tex=r.getUniformLocation(this.lumaProgram,"tex"),this.lumaLoc.texWidth=r.getUniformLocation(this.lumaProgram,"texWidth"),this.lumaLoc.texHeight=r.getUniformLocation(this.lumaProgram,"texHeight"),this.lumaLoc.threshold=r.getUniformLocation(this.lumaProgram,"threshold"),this.lumaLoc.softness=r.getUniformLocation(this.lumaProgram,"softness"),this.lumaLoc.invert=r.getUniformLocation(this.lumaProgram,"invert"),this.lumaVb=r.createBuffer(),r.bindBuffer(r.ARRAY_BUFFER,this.lumaVb),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,1,-1,-1,1,-1,1,1]),r.STATIC_DRAW),r.activeTexture(r.TEXTURE0),this.lumaTex=r.createTexture(),r.bindTexture(r.TEXTURE_2D,this.lumaTex),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR)}r.useProgram(this.lumaProgram);const o=r.getAttribLocation(this.lumaProgram,"c");r.vertexAttribPointer(o,2,r.FLOAT,!1,0,0),r.enableVertexAttribArray(o),r.enable(r.BLEND),r.blendFunc(r.SRC_ALPHA,r.ONE_MINUS_SRC_ALPHA),this.canvas.current.width=t,this.canvas.current.height=n,r.viewport(0,0,t,n),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT);const{lumaKey:i}=this.props;r.texImage2D(r.TEXTURE_2D,0,r.RGB,r.RGB,r.UNSIGNED_BYTE,e),r.uniform1i(this.lumaLoc.tex,0),r.uniform1f(this.lumaLoc.texWidth,t),r.uniform1f(this.lumaLoc.texHeight,n),r.uniform1f(this.lumaLoc.threshold,i.threshold),r.uniform1f(this.lumaLoc.softness,i.softness),r.uniform1f(this.lumaLoc.invert,i.invert?1:0),r.drawArrays(r.TRIANGLE_FAN,0,4),this.setState({img:this.canvas.current.toDataURL()})}catch(e){this.glContext&&this.lumaProgram&&this.glContext.deleteProgram(this.lumaProgram),this.lumaProgram=null}};renderChromaKey=(e,t,n)=>{if(this.canvas.current)try{this.glContext||(this.glContext=this.canvas.current.getContext("webgl"));const r=this.glContext;if(!this.chromaProgram){const e=r.createShader(r.VERTEX_SHADER);if(r.shaderSource(e,_.vertexShaderSrc),r.compileShader(e),!r.getShaderParameter(e,r.COMPILE_STATUS))throw console.error(r.getShaderInfoLog(e)),r.deleteShader(e),new Error;const t=r.createShader(r.FRAGMENT_SHADER);if(r.shaderSource(t,_.fragmentShaderSrc),r.compileShader(t),!r.getShaderParameter(t,r.COMPILE_STATUS))throw console.error(r.getShaderInfoLog(t)),r.deleteShader(t),new Error;if(this.chromaProgram=r.createProgram(),r.attachShader(this.chromaProgram,e),r.attachShader(this.chromaProgram,t),r.linkProgram(this.chromaProgram),!r.getProgramParameter(this.chromaProgram,r.LINK_STATUS))throw console.error(r.getProgramInfoLog(this.chromaProgram)),r.deleteProgram(this.chromaProgram),new Error;this.chromaLoc.tex=r.getUniformLocation(this.chromaProgram,"tex"),this.chromaLoc.texWidth=r.getUniformLocation(this.chromaProgram,"texWidth"),this.chromaLoc.texHeight=r.getUniformLocation(this.chromaProgram,"texHeight"),this.chromaLoc.chromaKey=r.getUniformLocation(this.chromaProgram,"chroma_key"),this.chromaLoc.pixelSize=r.getUniformLocation(this.chromaProgram,"pixel_size"),this.chromaLoc.tolerance=r.getUniformLocation(this.chromaProgram,"tolerance"),this.chromaLoc.smoothness=r.getUniformLocation(this.chromaProgram,"smoothness"),this.chromaLoc.spill=r.getUniformLocation(this.chromaProgram,"spill"),this.chromaLoc.contrast=r.getUniformLocation(this.chromaProgram,"contrast"),this.chromaLoc.brightness=r.getUniformLocation(this.chromaProgram,"brightness"),this.chromaLoc.gamma=r.getUniformLocation(this.chromaProgram,"gamma"),this.chromaLoc.chroma=r.getUniformLocation(this.chromaProgram,"chroma"),this.chromaLoc.alpha=r.getUniformLocation(this.chromaProgram,"alpha"),this.chromaLoc.cbv4=r.getUniformLocation(this.chromaProgram,"cb_v4"),this.chromaLoc.crv4=r.getUniformLocation(this.chromaProgram,"cr_v4"),this.chromaVb=r.createBuffer(),r.bindBuffer(r.ARRAY_BUFFER,this.chromaVb),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,1,-1,-1,1,-1,1,1]),r.STATIC_DRAW),r.activeTexture(r.TEXTURE0),this.chromaTex=r.createTexture(),r.bindTexture(r.TEXTURE_2D,this.chromaTex),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR)}r.useProgram(this.chromaProgram);const o=r.getAttribLocation(this.chromaProgram,"c");r.vertexAttribPointer(o,2,r.FLOAT,!1,0,0),r.enableVertexAttribArray(o),r.enable(r.BLEND),r.blendFunc(r.SRC_ALPHA,r.ONE_MINUS_SRC_ALPHA),this.canvas.current.width=t,this.canvas.current.height=n,r.viewport(0,0,t,n),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT);const{chromaKey:i}=this.props,{color:a}=i;r.texImage2D(r.TEXTURE_2D,0,r.RGB,r.RGB,r.UNSIGNED_BYTE,e);const s=[Qc([a.r,a.g,a.b,1],_.cb),Qc([a.r,a.g,a.b,1],_.cr)];r.uniform2f(this.chromaLoc.chromaKey,s[0],s[1]),r.uniform2f(this.chromaLoc.pixelSize,1/t,1/n),r.uniform1i(this.chromaLoc.tex,0),r.uniform1f(this.chromaLoc.texWidth,t),r.uniform1f(this.chromaLoc.texHeight,n),r.uniform1f(this.chromaLoc.tolerance,i.tolerance-.055),r.uniform1f(this.chromaLoc.smoothness,i.smoothness),r.uniform1f(this.chromaLoc.spill,i.spill),r.uniform1f(this.chromaLoc.contrast,1),r.uniform1f(this.chromaLoc.gamma,1),r.uniform1f(this.chromaLoc.brightness,0),r.uniform1i(this.chromaLoc.chroma,1),r.uniform1i(this.chromaLoc.alpha,0),r.uniform4f(this.chromaLoc.cbv4,..._.cb),r.uniform4f(this.chromaLoc.crv4,..._.cr),r.drawArrays(r.TRIANGLE_FAN,0,4),this.setState({img:this.canvas.current.toDataURL()})}catch(e){this.glContext&&this.chromaProgram&&this.glContext.deleteProgram(this.chromaProgram),this.chromaProgram=null}};renderAlphaComposite=(e,t,n)=>{this.glContext&&this.chromaProgram&&this.glContext.deleteProgram(this.chromaProgram),this.chromaProgram=null;const r=this.previewManager.getPreview(this.state.framecache,this.state.alphaFlow,!0).img;this.setState({alphaImg:r});const o=document.createElement("img");o.src=r,o.onload=()=>{if(this.canvas.current){this.imageContext||(this.imageContext=this.canvas.current.getContext("2d")),this.canvas.current.width=t,this.canvas.current.height=n,this.imageContext.drawImage(o,0,0,t,n);const r=this.imageContext.getImageData(0,0,t,n),{data:i}=r;for(let e=0;e<i.length;e+=4){const t=(i[e]+i[e+1]+i[e+2])/3;i[e+3]=t}this.imageContext.putImageData(r,0,0),this.imageContext.globalCompositeOperation="source-in",this.imageContext.drawImage(e,0,0),this.setState({img:this.canvas.current.toDataURL()})}else this.imageContext=null}};composeAlpha=()=>{const e=this.previewManager.getPreview(this.state.framecache,this.state.flow).img,t=document.createElement("img");t.src=e,t.onload=()=>{const e=t.width,n=t.height;this.props.lumaKey&&this.canvas.current?this.renderLumaKey(t,e,n):this.props.chromaKey?this.canvas.current?this.renderChromaKey(t,e,n):(this.glContext&&this.chromaProgram&&this.glContext.deleteProgram(this.chromaProgram),this.chromaProgram=null,this.glContext&&this.lumaProgram&&this.glContext.deleteProgram(this.lumaProgram),this.lumaProgram=null):this.renderAlphaComposite(t,e,n)}};tick=async()=>{this.props.desync||(this.setState({ratio:window.devicePixelRatio}),this.props.alpha&&this.state.alphaFlow||this.props.chromaKey||this.props.lumaKey?this.composeAlpha():this.setState({img:"SMPTE2110"==this.props.type?qc().img:"Orbit"==this.props.type?Yc().img:"NMOS"==this.props.type?Xc().img:"TVU"==this.props.type?Zc().img:this.previewManager.getPreview(this.state.framecache,this.state.flow).img,imageOverlay:this.props.isDetectionOn&&(await this.previewManager.getWarningOverlay(this.state.framecache,this.state.flow,this.props.producerName,this.props.voiceName,this.props.announcementsOn))?.img})),this.state.flow||this.setState({img:"SMPTE2110"==this.props.type?qc().img:"Orbit"==this.props.type?Yc().img:"NMOS"==this.props.type?Xc().img:"TVU"==this.props.type?Zc().img:this.previewManager.getNoSignalImage().img}),!this.state.alphaFlow&&this.props.alpha&&this.setState({alphaImg:null})}}const Qc=(e,t)=>e.reduce((e,n,r)=>e+n*(t[r]??0),0),qc=()=>({img:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3Eicon/video/smpte-2110%3C/title%3E%3Cg id='icon/video/smpte-2110' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M16,31 C12.8644312,31 9.95357127,30.0379067 7.54651783,28.3928175 L24.4534822,28.3928175 C22.0464287,30.0379067 19.1355688,31 16,31 Z M24.5725488,27.5842033 C24.7400371,27.7104619 24.9157342,27.8242306 25.0993807,27.9250709 C24.9281429,28.0566928 24.7524469,28.1850619 24.5739137,28.3096463 L24.5725488,27.5842033 Z M8.77967759,21.6772925 C8.86884061,21.762103 8.96380967,21.8370819 9.06457857,21.9046125 L9.220081,22.0006202 L9.38427814,22.0846838 L9.55374858,22.1532341 C9.6683266,22.193786 9.78594006,22.2240637 9.90562874,22.2442035 L10.0865982,22.2668268 L10.258,22.274 L10.258,23.888 L8.40604323,23.88818 L8.406,23.935 L8.32252361,23.8744978 C8.16369028,23.7694786 7.99325352,23.6879109 7.81433886,23.6289827 L7.63271399,23.5775708 L7.554,23.562 L7.61325219,23.4961667 L7.81793983,23.254789 C8.01662215,23.0107895 8.1972491,22.7589329 8.35946594,22.4992926 C8.45400567,22.3479747 8.54072148,22.1930828 8.61952277,22.0347644 L8.7317775,21.794735 L8.77967759,21.6772925 Z M15.309,20.184 L16.2316156,21.4269412 L16.3485075,21.5681074 C16.4693696,21.7016296 16.6021398,21.8129968 16.7468,21.9092054 L16.8954229,22.0006202 L17.05962,22.0846838 L17.2290904,22.1532341 C17.3436685,22.193786 17.4612819,22.2240637 17.5809706,22.2442035 L17.76194,22.2668268 L17.934,22.274 L17.934,23.888 L15.309,23.888 L15.309,20.184 Z M3.004,21.572 L2.35398726,22.236652 C2.25646482,22.0236163 2.16378437,21.8079011 2.0760867,21.5896474 L2.18020973,21.6037496 L2.37178111,21.618893 L2.51521835,21.6229013 L2.70600746,21.6158987 L2.80020893,21.6070673 L2.89350457,21.594613 L3.004,21.572 Z M20.9466923,9.66186567 L20.9447114,13.4247817 L30.7797264,13.4244301 C30.9245316,14.261239 31,15.1218062 31,16 C31,16.3553165 30.9876458,16.7077476 30.9633435,17.056887 C30.5371948,16.5714891 30.0333385,16.1934085 29.4596797,15.9329994 C28.8229291,15.6439502 28.1361235,15.5 27.4137627,15.5 C26.6899387,15.5 26.0034856,15.644547 25.3692568,15.9353744 C24.7086239,16.2383095 24.1414176,16.6992181 23.6784488,17.2996622 C23.4600827,17.5828707 23.2689933,17.8950581 23.1040102,18.2352446 L22.9851496,18.4956191 L22.9852228,15.6007388 L19.2391025,15.6007388 L15.309,18.947 L15.3098809,15.6007388 L11.5637606,15.6007388 L8.755,17.992 L8.7115596,17.893596 C8.49306757,17.4431378 8.19837897,17.0431486 7.83201883,16.7017734 C7.41363349,16.311921 6.91687105,16.0128114 6.35352819,15.8045865 C5.79827929,15.5993532 5.19387794,15.5 4.54653727,15.5 C3.95861912,15.5 3.39699622,15.580782 2.86616117,15.7448983 C2.30140002,15.9195035 1.78975539,16.190087 1.34140554,16.5541467 C1.23015086,16.6444854 1.12363773,16.7400917 1.02190942,16.840811 C1.00780708,16.5630901 1,16.2824568 1,16 C1,15.0069572 1.09649848,14.0364528 1.28062977,13.0973526 L1.392239,13.1448657 C1.67769733,13.2568601 1.97245665,13.3434743 2.27552103,13.4045869 C2.51091817,13.4520545 2.74580404,13.4819906 2.97969228,13.4939919 L3.21322996,13.5 L3.49123675,13.492427 C3.85782772,13.4721846 4.20790268,13.411171 4.53933757,13.3070938 L4.78438554,13.2209257 L4.90741515,13.167 L4.90767441,13.4247817 L18.1669337,13.4247817 L18.1664151,11.098 L18.3679895,11.0742476 L18.6445444,11.0259799 C18.8257742,10.989023 19.0007254,10.9424457 19.1694069,10.8858667 C19.7013138,10.707455 20.1663314,10.4448339 20.5509246,10.0922686 C20.6961421,9.95914434 20.8282275,9.81540764 20.9466923,9.66186567 Z M16,1 C19.1148549,1 22.00796,1.94942393 24.4057125,3.57466905 L19.0465633,3.57521827 L19.0464151,3.784 L18.924826,3.74715466 C18.5735444,3.65372316 18.1956068,3.59974277 17.7905926,3.58188787 L17.4817485,3.57521827 L12.8794151,3.576 L12.5787735,3.58044088 L12.3986445,3.5964611 C12.2272983,3.61764518 12.0800009,3.65468911 11.9360559,3.71090775 C11.7436882,3.78603818 11.5686279,3.89254498 11.4151701,4.02467845 L11.3041944,4.12849371 L11.1987157,4.24488994 L11.1049215,4.367072 L11.02129,4.49519677 L10.9462993,4.6294211 L10.1984151,6.123 L9.46242655,4.64915411 L9.3816293,4.50352163 C9.29833464,4.36404836 9.20631599,4.24204931 9.09448776,4.12849371 C8.91650271,3.94775939 8.70308591,3.80482079 8.46262628,3.71090775 C8.31868129,3.65468911 8.17138381,3.61764518 8.022224,3.59743609 L7.8724986,3.58275195 L7.67338944,3.57566799 L7.59329095,3.57534459 C9.99123837,1.94968702 12.8847135,1 16,1 Z' id='circle' fill-opacity='0.4' fill='%23FFFFFF'%3E%3C/path%3E%3Cg id='2110' transform='translate(1.000000, 5.000000)'%3E%3C/g%3E%3Cpath d='M5.25,6.46675621 C5.2037037,6.54197448 5.15509259,6.59838818 5.10416667,6.63599731 C5.05324074,6.67360645 4.98765432,6.69241101 4.90740741,6.69241101 C4.83641975,6.69241101 4.76003086,6.66968883 4.67824074,6.62424446 L4.40046296,6.47145735 C4.2970679,6.41504365 4.17901235,6.36411462 4.0462963,6.31867025 C3.91358025,6.27322588 3.76234568,6.25050369 3.59259259,6.25050369 C3.29938272,6.25050369 3.08101852,6.31396911 2.9375,6.44089993 C2.79398148,6.56783076 2.72222222,6.73942243 2.72222222,6.95567495 C2.72222222,7.09357511 2.7654321,7.20796955 2.85185185,7.29885829 C2.9382716,7.38974703 3.05169753,7.4680994 3.19212963,7.53391538 C3.28575103,7.5777927 3.38828875,7.6192324 3.4997428,7.65823446 L3.67361111,7.71490934 C3.85416667,7.76975599 4.03858025,7.83087083 4.22685185,7.89825386 C4.41512346,7.96563689 4.59953704,8.04477278 4.78009259,8.13566152 C4.96064815,8.22655026 5.12114198,8.34251175 5.26157407,8.483546 C5.40200617,8.62458026 5.5154321,8.79617193 5.60185185,8.99832102 C5.6882716,9.20047011 5.73148148,9.44414596 5.73148148,9.72934856 C5.73148148,10.0458921 5.67746914,10.342064 5.56944444,10.6178643 C5.46141975,10.8936647 5.30478395,11.1342064 5.09953704,11.3394896 C4.89429012,11.5447728 4.6412037,11.7061786 4.34027778,11.8237072 C4.03935185,11.9412357 3.69753086,12 3.31481481,12 C3.10493827,12 2.8912037,11.9780613 2.67361111,11.934184 C2.45601852,11.8903067 2.24537037,11.8284083 2.04166667,11.7484889 C1.83796296,11.6685695 1.64660494,11.5737632 1.46759259,11.4640698 C1.28858025,11.3543765 1.13271605,11.2321469 1,11.0973808 L1.46296296,10.3546004 C1.49691358,10.2981867 1.54475309,10.2527423 1.60648148,10.2182673 C1.66820988,10.1837923 1.7345679,10.1665547 1.80555556,10.1665547 C1.89814815,10.1665547 1.99151235,10.1963286 2.08564815,10.2558764 L2.40509259,10.4533244 C2.52391975,10.5254086 2.66049383,10.5912245 2.81481481,10.6507723 C2.9691358,10.7103201 3.15123457,10.740094 3.36111111,10.740094 C3.64506173,10.740094 3.86574074,10.6766286 4.02314815,10.5496978 C4.18055556,10.422767 4.25925926,10.2214014 4.25925926,9.94560107 C4.25925926,9.78576226 4.21604938,9.65569734 4.12962963,9.55540631 C4.04320988,9.45511529 3.92978395,9.37206179 3.78935185,9.3062458 C3.64891975,9.24042982 3.48919753,9.18244907 3.31018519,9.13230356 C3.13117284,9.08215805 2.94753086,9.02652787 2.75925926,8.96541303 C2.57098765,8.90429819 2.38734568,8.82907992 2.20833333,8.73975823 C2.02932099,8.65043653 1.86959877,8.53290799 1.72916667,8.3871726 C1.58873457,8.24143721 1.47530864,8.05965973 1.38888889,7.84184016 C1.30246914,7.6240206 1.25925926,7.35527199 1.25925926,7.03559436 C1.25925926,6.77859861 1.31018519,6.52787105 1.41203704,6.28341169 C1.51388889,6.03895232 1.66358025,5.82113275 1.86111111,5.62995299 C2.05864198,5.43877323 2.30092593,5.28598612 2.58796296,5.17159167 C2.875,5.05719722 3.2037037,5 3.57407407,5 C3.7808642,5 3.98225309,5.016454 4.17824074,5.04936199 C4.3742284,5.08226998 4.56018519,5.13084844 4.73611111,5.19509738 C4.91203704,5.25934632 5.07638889,5.33613163 5.22916667,5.42545332 C5.38194444,5.51477502 5.51851852,5.61584956 5.63888889,5.72867696 L5.25,6.46675621 Z M8.22222222,5.31967764 L9.95833333,8.79382136 C10.0200617,8.91291695 10.0794753,9.03671368 10.1365741,9.16521155 C10.1936728,9.29370942 10.2484568,9.42534139 10.3009259,9.56010745 C10.3533951,9.4222073 10.4089506,9.28822476 10.4675926,9.15815984 L10.556713,8.96600067 L12.3796296,5.31967764 C12.4104938,5.26012984 12.4421296,5.21390195 12.474537,5.18099396 C12.5069444,5.14808596 12.5432099,5.12379673 12.5833333,5.10812626 C12.6234568,5.09245579 12.6689815,5.0830535 12.7199074,5.07991941 L12.8981481,5.07521827 L14.0925926,5.07521827 L14.0925926,11.9247817 L12.712963,11.9247817 L12.712963,7.98522498 C12.712963,7.79404522 12.7222222,7.58719499 12.7407407,7.36467428 L10.9537037,10.8858294 C10.8981481,10.9955227 10.8233025,11.0785762 10.7291667,11.1349899 C10.6350309,11.1914036 10.5277778,11.2196105 10.4074074,11.2196105 L10.1944444,11.2196105 C10.0740741,11.2196105 9.96682099,11.1914036 9.87268519,11.1349899 C9.77854938,11.0785762 9.7037037,10.9955227 9.64814815,10.8858294 L7.85185185,7.35997314 C7.86419753,7.46966644 7.87345679,7.57857623 7.87962963,7.68670248 C7.88580247,7.79482874 7.88888889,7.89433624 7.88888889,7.98522498 L7.88888889,11.9247817 L6.50925926,11.9247817 L6.50925926,5.07521827 L7.7037037,5.07521827 C7.77160494,5.07521827 7.83101852,5.07678531 7.88194444,5.07991941 C7.93287037,5.0830535 7.97839506,5.09245579 8.01851852,5.10812626 C8.05864198,5.12379673 8.09490741,5.14808596 8.12731481,5.18099396 C8.15972222,5.21390195 8.19135802,5.26012984 8.22222222,5.31967764 Z M16.7685185,9.63532572 L16.7685185,11.9247817 L15.2037037,11.9247817 L15.2037037,5.07521827 L17.5833333,5.07521827 C18.058642,5.07521827 18.466821,5.13241549 18.8078704,5.24680994 C19.1489198,5.36120439 19.429784,5.51869263 19.650463,5.71927468 C19.871142,5.91985673 20.0339506,6.15648086 20.1388889,6.42914708 C20.2438272,6.7018133 20.2962963,6.99641818 20.2962963,7.31296172 C20.2962963,7.65457802 20.242284,7.96798746 20.1342593,8.25319006 C20.0262346,8.53839266 19.8611111,8.78285203 19.6388889,8.98656817 C19.4166667,9.19028431 19.1350309,9.3493396 18.7939815,9.46373405 C18.4529321,9.5781285 18.0493827,9.63532572 17.5833333,9.63532572 L16.7685185,9.63532572 Z M16.7685185,8.43653459 L17.5833333,8.43653459 C17.9907407,8.43653459 18.2839506,8.33781061 18.462963,8.14036266 C18.6419753,7.94291471 18.7314815,7.66711439 18.7314815,7.31296172 C18.7314815,7.156257 18.7083333,7.0136557 18.662037,6.88515782 C18.6157407,6.75665995 18.5455247,6.64618312 18.4513889,6.55372733 C18.3572531,6.46127155 18.2384259,6.3899709 18.0949074,6.33982539 C17.9513889,6.28967987 17.7808642,6.26460712 17.5833333,6.26460712 L16.7685185,6.26460712 L16.7685185,8.43653459 Z M26.0092593,5.07521827 L26.0092593,6.33512424 L24.1111111,6.33512424 L24.1111111,11.9247817 L22.5462963,11.9247817 L22.5462963,6.33512424 L20.6481481,6.33512424 L20.6481481,5.07521827 L26.0092593,5.07521827 Z M31,5.07521827 L31,6.29751511 L28.2314815,6.29751511 L28.2314815,7.89590329 L30.3518519,7.89590329 L30.3518519,9.07118872 L28.2314815,9.07118872 L28.2314815,10.7024849 L31,10.7024849 L31,11.9247817 L26.6574074,11.9247817 L26.6574074,5.07521827 L31,5.07521827 Z M4.54653727,17 C5.0229378,17 5.45191884,17.0705171 5.83348037,17.2115514 C6.21504191,17.3525856 6.54036171,17.5484665 6.80943979,17.7991941 C7.07851787,18.0499216 7.28473754,18.3487799 7.42809881,18.695769 C7.57146008,19.042758 7.64314071,19.4244459 7.64314071,19.8408328 C7.64314071,20.199015 7.59351566,20.5303336 7.49426555,20.8347884 C7.39501544,21.1392433 7.25937362,21.4291471 7.0873401,21.7044997 C6.91530657,21.9798522 6.71570357,22.2462503 6.4885311,22.5036938 C6.33708278,22.6753227 6.17926285,22.8484441 6.01507131,23.023058 L3.8782532,25.2471457 C4.12086458,25.1755093 4.36016762,25.118424 4.59616233,25.0758899 C4.83215704,25.0333557 5.05381562,25.0120887 5.26113807,25.0120887 L7.0608734,25.0120887 C7.2814292,25.0120887 7.45566828,25.0736512 7.58359065,25.1967764 C7.71151301,25.3199015 7.77547419,25.4822028 7.77547419,25.6836803 L7.77547419,26.8925453 L1,26.8925453 L1,26.2209537 C1,26.0911126 1.0264667,25.952317 1.07940009,25.8045668 C1.11910013,25.6937542 1.18113145,25.590497 1.26549404,25.4947952 L4.13630348,22.560779 C4.37450375,22.319006 4.5818262,22.0884262 4.75827084,21.8690396 C4.93471548,21.649653 5.08028231,21.4336244 5.19497133,21.2209537 C5.30966034,21.008283 5.39567711,20.7956123 5.45302161,20.5829416 C5.51036612,20.3702709 5.53903838,20.1452877 5.53903838,19.9079919 C5.53903838,19.5184688 5.44750772,19.2196105 5.2644464,19.0114171 C5.08138509,18.8032236 4.802382,18.6991269 4.42743714,18.6991269 C4.27304808,18.6991269 4.13189237,18.7215133 4.00397,18.7662861 C3.87604764,18.8110589 3.76135862,18.8715021 3.65990296,18.9476158 C3.55844729,19.0237296 3.47132775,19.1132751 3.39854433,19.2162525 C3.35002206,19.2849041 3.30787139,19.3575355 3.27209234,19.4341467 L3.22320247,19.5520484 C3.15262461,19.7535259 3.06329951,19.8990374 2.95522717,19.9885829 C2.84715483,20.0781285 2.70048522,20.1229013 2.51521835,20.1229013 C2.47110719,20.1229013 2.42368769,20.1206626 2.37295986,20.1161854 L2.21746802,20.0960376 L1.13233348,19.901276 C1.20291134,19.4132527 1.33855315,18.9879113 1.53925893,18.6252518 C1.73996471,18.2625923 1.98919277,17.9603761 2.2869431,17.7186031 C2.58469343,17.4768301 2.92545214,17.2966197 3.30921923,17.1779718 C3.69298633,17.0593239 4.10542567,17 4.54653727,17 Z M9.90604323,25.38818 L11.758712,25.38818 L11.758712,20.4519812 C11.758712,20.2102082 11.7653286,19.957242 11.778562,19.6930826 L10.6868108,20.6131632 C10.6162329,20.6713678 10.5456551,20.7127826 10.4750772,20.7374077 C10.4044993,20.7620327 10.336127,20.7743452 10.2699603,20.7743452 C10.1552713,20.7743452 10.0527128,20.7486009 9.96228496,20.6971122 C9.87185708,20.6456235 9.80458756,20.5907768 9.7604764,20.5325722 L9.11204235,19.659503 L12.1160124,17.1007388 L13.8098809,17.1007388 L13.8098809,25.38818 L15.3978827,25.38818 L15.3978827,26.8925453 L9.90604323,26.8925453 L9.90604323,25.38818 Z M17.5813851,25.38818 L19.4340538,25.38818 L19.4340538,20.4519812 C19.4340538,20.2102082 19.4406705,19.957242 19.4539038,19.6930826 L18.3621526,20.6131632 C18.2915748,20.6713678 18.2209969,20.7127826 18.1504191,20.7374077 C18.0798412,20.7620327 18.0114689,20.7743452 17.9453022,20.7743452 C17.8306131,20.7743452 17.7280547,20.7486009 17.6376268,20.6971122 C17.5471989,20.6456235 17.4799294,20.5907768 17.4358183,20.5325722 L16.7873842,19.659503 L19.7913542,17.1007388 L21.4852228,17.1007388 L21.4852228,25.38818 L23.0732245,25.38818 L23.0732245,26.8925453 L17.5813851,26.8925453 L17.5813851,25.38818 Z M31,21.996642 C31,22.8518021 30.9095721,23.5927916 30.7287164,24.2196105 C30.5478606,24.8464294 30.2975298,25.3657936 29.9777239,25.7777032 C29.657918,26.1896127 29.278562,26.4963062 28.8396559,26.6977837 C28.4007499,26.8992612 27.9254521,27 27.4137627,27 C26.9020732,27 26.428981,26.8992612 25.9944861,26.6977837 C25.5599912,26.4963062 25.1839435,26.1896127 24.8663432,25.7777032 C24.5487428,25.3657936 24.3006176,24.8464294 24.1219674,24.2196105 C23.9433172,23.5927916 23.8539921,22.8518021 23.8539921,21.996642 C23.8539921,21.141482 23.9433172,20.4004925 24.1219674,19.7736736 C24.3006176,19.1468547 24.5487428,18.6274905 24.8663432,18.2155809 C25.1839435,17.8036714 25.5599912,17.4980972 25.9944861,17.2988583 C26.428981,17.0996194 26.9020732,17 27.4137627,17 C27.9254521,17 28.4007499,17.0996194 28.8396559,17.2988583 C29.278562,17.4980972 29.657918,17.8036714 29.9777239,18.2155809 C30.2975298,18.6274905 30.5478606,19.1468547 30.7287164,19.7736736 C30.9095721,20.4004925 31,21.141482 31,21.996642 Z M28.8826643,21.996642 C28.8826643,21.3205731 28.8407587,20.76651 28.7569475,20.3344527 C28.6731363,19.9023953 28.5617556,19.5632415 28.4228055,19.3169913 C28.2838553,19.070741 28.1261579,18.9017238 27.9497133,18.8099396 C27.7732686,18.7181554 27.5946184,18.6722633 27.4137627,18.6722633 C27.2329069,18.6722633 27.0553595,18.7181554 26.8811204,18.8099396 C26.7068813,18.9017238 26.5524923,19.070741 26.4179532,19.3169913 C26.2834142,19.5632415 26.1753419,19.9023953 26.0937362,20.3344527 C26.0121306,20.76651 25.9713277,21.3205731 25.9713277,21.996642 C25.9713277,22.6771883 26.0121306,23.2323707 26.0937362,23.6621894 C26.1753419,24.0920081 26.2834142,24.4311619 26.4179532,24.6796508 C26.5524923,24.9281397 26.7068813,25.0982762 26.8811204,25.1900604 C27.0553595,25.2818446 27.2329069,25.3277367 27.4137627,25.3277367 C27.5946184,25.3277367 27.7732686,25.2818446 27.9497133,25.1900604 C28.1261579,25.0982762 28.2838553,24.9281397 28.4228055,24.6796508 C28.5617556,24.4311619 28.6731363,24.0920081 28.7569475,23.6621894 C28.8407587,23.2323707 28.8826643,22.6771883 28.8826643,21.996642 Z' id='Shape' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"}),Yc=()=>({img:`data:image/svg+xml,${encodeURIComponent('<svg width="38" height="30" viewBox="0 0 38 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.75879 25.5H14.4326V24.5732L14.6621 24.8867L15.1123 25.5H23.0508C24.1929 25.5 25.3291 25.2852 26.2236 24.6475V25.5H29.7109C26.9886 28.2767 23.1958 30 19 30C14.6129 30 10.6657 28.1166 7.92285 25.1143C8.62934 24.7951 9.25084 24.3469 9.75879 23.792V25.5ZM31.6514 18.666V23.0605C31.4155 23.43 31.1639 23.7883 30.8975 24.1348V18.666H31.6514ZM17.915 21.5566L17.748 21.3398C17.8047 21.3009 17.8604 21.2607 17.915 21.2188V21.5566ZM5.34082 18.5518C5.74324 18.5518 6.01293 18.6908 6.18164 18.8633C6.35138 19.037 6.50484 19.3339 6.50488 19.7998C6.50488 20.2661 6.35152 20.5636 6.18164 20.7373C6.01293 20.9098 5.74324 21.0479 5.34082 21.0479C5.31623 21.0479 5.29218 21.0459 5.26855 21.0449C4.95949 20.3439 4.70287 19.6147 4.50293 18.8623C4.67353 18.689 4.94374 18.5518 5.34082 18.5518ZM19 0C22.9904 0 26.6164 1.55854 29.3037 4.09961H25.0947L24.7373 5.09082L23.7334 7.87305L22.7354 5.09277L22.3789 4.09961H17.376L17.4863 4.39648C16.7608 4.09906 15.9565 3.94438 15.1094 3.94434C11.727 3.94434 9.1749 6.40772 9.1748 9.7998C9.1748 11.6268 9.88958 13.0925 10.9863 14.0996H9.75879V15.8076C8.69715 14.648 7.14424 13.9443 5.34082 13.9443C4.88623 13.9443 4.44788 13.9898 4.0293 14.0752C4.50702 6.22168 11.0263 0 19 0ZM26.2236 15.0762C26.1602 15.0257 26.0944 14.9767 26.0264 14.9297C26.0151 14.9219 26.0035 14.9149 25.9922 14.9072L26.1357 14.5273L26.2236 14.293V15.0762ZM17.915 15.0059C17.8897 14.9867 17.8636 14.9687 17.8379 14.9502C17.8639 14.9357 17.8893 14.9202 17.915 14.9053V15.0059ZM29.8496 4.6416C32.2275 7.13158 33.7559 10.4391 33.9727 14.0996H26.2969L29.292 6.12793L29.8496 4.6416ZM21.1328 14.0996H18.9688C19.5688 13.508 20.0302 12.7724 20.3203 11.9365L21.1328 14.0996Z" fill="#D9D9D9"/><path d="M15.109 5.444C16.441 5.444 17.551 5.924 18.295 6.734L17.089 7.916C16.615 7.37 15.919 7.034 15.061 7.034C13.525 7.034 12.409 8.162 12.409 9.8C12.409 11.516 13.579 12.59 15.031 12.59C16.399 12.59 17.197 11.93 17.419 10.736H15.283V9.338H19.147C19.165 9.5 19.171 9.656 19.171 9.812C19.171 12.356 17.449 14.15 15.067 14.15C12.739 14.15 10.675 12.512 10.675 9.8C10.675 7.262 12.529 5.444 15.109 5.444ZM27.888 5.6L24.732 14H22.698L19.542 5.6H21.324L23.73 12.302L26.148 5.6H27.888ZM5.34091 15.444C7.92691 15.444 9.75691 17.292 9.75691 19.8C9.75691 22.308 7.92691 24.156 5.34091 24.156C2.75491 24.156 0.930906 22.308 0.930906 19.8C0.930906 17.292 2.75491 15.444 5.34091 15.444ZM5.34091 17.052C3.79891 17.052 2.67691 18.168 2.67691 19.8C2.67691 21.432 3.79891 22.548 5.34091 22.548C6.88891 22.548 8.00491 21.432 8.00491 19.8C8.00491 18.168 6.88891 17.052 5.34091 17.052ZM11.2587 15.6H14.8107C16.8147 15.6 17.8887 16.548 17.8887 18.156C17.8887 19.536 16.9287 20.478 15.3147 20.634L17.9007 24H15.8727L13.4247 20.658H12.9327V24H11.2587V15.6ZM14.7807 17.142H12.9327V19.2H14.7807C15.6927 19.2 16.1667 18.864 16.1667 18.156C16.1667 17.46 15.6687 17.142 14.7807 17.142ZM19.4149 15.6H22.8469C24.8029 15.6 26.0329 16.326 26.0329 17.928C26.0329 18.774 25.5169 19.452 24.8149 19.71C25.5829 19.968 26.2129 20.688 26.2129 21.594C26.2129 23.208 25.0669 24 23.0509 24H19.4149V15.6ZM22.9669 20.508H21.0889V22.524L22.9669 22.53C23.8909 22.53 24.4729 22.314 24.4729 21.51C24.4729 20.724 23.8909 20.508 22.9669 20.508ZM22.7989 17.076H21.0889V19.038H22.8049C23.6389 19.038 24.2869 18.864 24.2869 18.048C24.2869 17.256 23.6269 17.076 22.7989 17.076ZM29.3975 15.6V24H27.7235V15.6H29.3975ZM37.4295 15.6V17.166H34.8255V24H33.1515V17.166H30.5475V15.6H37.4295Z" fill="white"/></svg>')}`}),Xc=()=>({img:`data:image/svg+xml,${encodeURIComponent('<svg width="44" height="30" viewBox="0 0 44 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.4717 18.9072L10.9219 19.5H12.6006L13.0762 20.126V19.5H17.4629V18.8252H18.0195L18.4346 19.9033L18.8486 18.8252H19.3975V19.5H23.792V18.4102C24.6888 19.1765 25.8758 19.6298 27.2236 19.6299C28.6257 19.6299 29.8566 19.1397 30.7666 18.3154L30.8447 18.3779C31.9358 19.2579 33.4434 19.625 34.7363 19.625C35.2644 19.625 35.8152 19.5552 36.3447 19.3945C34.4661 25.5344 28.7551 30 22 30C15.2836 30 9.59897 25.5855 7.6875 19.5H9.60938L9.61133 18.002V17.7744L10.4717 18.9072ZM27.2236 13.71C27.4967 13.71 27.6551 13.8017 27.7451 13.8936C27.8363 13.9868 27.9443 14.1696 27.9443 14.5C27.9443 14.8304 27.8363 15.0132 27.7451 15.1064C27.6551 15.1983 27.4967 15.29 27.2236 15.29C26.954 15.29 26.7948 15.199 26.7031 15.1055C26.6107 15.0111 26.5039 14.8281 26.5039 14.5C26.5039 14.1719 26.6107 13.9889 26.7031 13.8945C26.7948 13.801 26.954 13.71 27.2236 13.71ZM22 0C28.3293 0 33.7426 3.92018 35.9453 9.46484C35.5896 9.40797 35.2237 9.3799 34.8418 9.37988C33.8646 9.37988 32.8339 9.62648 32.0049 10.2305C31.6779 10.4687 31.3914 10.756 31.1621 11.0879C30.2303 10.0226 28.8411 9.37012 27.2236 9.37012C25.8761 9.37017 24.6888 9.8228 23.792 10.5889V9.5H19.2168L18.8477 10.4619L18.4307 11.5459L18.0127 10.4609L17.6426 9.5H10.0762V11.2236L9.21484 10.0918L8.76465 9.5H8.04004C10.2337 3.93663 15.6573 0 22 0Z" fill="#D9D9D9"/><path d="M12.9759 11V18H11.6659L8.1159 13.325L8.1109 18H6.7159V11H8.0209L11.5759 15.675V11H12.9759ZM22.2925 11V18H20.8975V12.715L19.1675 17.325H17.6925L15.9625 12.755V18H14.5675V11H16.6125L18.4325 15.725L20.2475 11H22.2925ZM27.2239 10.87C29.3789 10.87 30.9039 12.41 30.9039 14.5C30.9039 16.59 29.3789 18.13 27.2239 18.13C25.0689 18.13 23.5489 16.59 23.5489 14.5C23.5489 12.41 25.0689 10.87 27.2239 10.87ZM27.2239 12.21C25.9389 12.21 25.0039 13.14 25.0039 14.5C25.0039 15.86 25.9389 16.79 27.2239 16.79C28.5139 16.79 29.4439 15.86 29.4439 14.5C29.4439 13.14 28.5139 12.21 27.2239 12.21ZM37.5165 11.625L36.8565 12.765C36.3065 12.425 35.6365 12.17 34.8715 12.17C34.0865 12.17 33.5315 12.48 33.5315 13.01C33.5315 13.525 34.1365 13.68 34.9765 13.82L35.3715 13.885C36.6215 14.09 37.6015 14.625 37.6015 15.845C37.6015 17.39 36.2415 18.125 34.7365 18.125C33.6765 18.125 32.5365 17.815 31.7865 17.21L32.5115 16.085C33.0165 16.49 33.8415 16.84 34.7415 16.84C35.5165 16.84 36.1165 16.535 36.1165 15.995C36.1165 15.51 35.6065 15.33 34.6315 15.175L34.1865 15.105C32.9515 14.91 32.0515 14.365 32.0515 13.1C32.0515 11.64 33.3515 10.88 34.8415 10.88C35.8215 10.88 36.6365 11.1 37.5165 11.625Z" fill="white"/></svg>')}`}),Zc=()=>({img:"data:image/png;base64, "});function Jc(e,t,n){const{anchorPoint:r,translation:o,rotation:i,scaleFactor:a,shearAngle:s,perspectiveFactor:l}=e,c=r.x*t,u=r.y*n,d=o.x*t,p=o.y*n,h=i*Math.PI/180,f=Math.cos(h),g=Math.sin(h),m=s.x*Math.PI/180,v=s.y*Math.PI/180,y=Math.tan(m),A=Math.tan(v),w=[{x:0,y:0},{x:t,y:0},{x:t,y:n},{x:0,y:n}].map(e=>{let r=e.x,o=e.y;r-=c,o-=u,r*=a.x,o*=a.y;const i=o+r*A;r+=o*y,o=i;const s=r*g+o*f;r=r*f-o*g,o=s;const h=1+l.x*(r/t)+l.y*(o/n);return 0!==h&&(r/=h,o/=h),r+=c+d,o+=u+p,{x:r,y:o}});return{topLeft:{x:w[0].x/t,y:w[0].y/n},topRight:{x:w[1].x/t,y:w[1].y/n},bottomRight:{x:w[2].x/t,y:w[2].y/n},bottomLeft:{x:w[3].x/t,y:w[3].y/n}}}function eu(e,t,n,r,o){let i=function(e,t,n,r){const o=[0,1,1,0],i=[0,0,1,1],a=[e.x,t.x,n.x,r.x],s=[e.y,t.y,n.y,r.y],l=[];for(let e=0;e<4;e++){const t=o[e],n=i[e],r=a[e],c=s[e];l.push([-t,-n,-1,0,0,0,t*r,n*r,r]),l.push([0,0,0,-t,-n,-1,t*c,n*c,c])}const c=function(e){const t=e.length,n=e[0].length,r=Array.from({length:n},()=>Array(n).fill(0));for(let o=0;o<t;o++)for(let t=0;t<n;t++){const i=e[o][t];for(let a=t;a<n;a++)r[t][a]+=i*e[o][a]}for(let e=0;e<n;e++)for(let t=0;t<e;t++)r[e][t]=r[t][e];return r}(l),{vec:u}=function(e){const t=e.length,n=function(e){return Array.from({length:e},(t,n)=>Array.from({length:e},(e,t)=>n===t?1:0))}(t),r=e.map(e=>e.slice());for(let e=0;e<64;e++){let e=0,o=1,i=Math.abs(r[0][1]);for(let n=0;n<t;n++)for(let a=n+1;a<t;a++){const t=Math.abs(r[n][a]);t>i&&(i=t,e=n,o=a)}if(i<1e-8)break;const a=r[e][e],s=r[o][o],l=r[e][o],c=.5*Math.atan2(2*l,s-a),u=Math.cos(c),d=Math.sin(c);for(let n=0;n<t;n++){const t=r[n][e],i=r[n][o];r[n][e]=u*t-d*i,r[n][o]=d*t+u*i}for(let n=0;n<t;n++){const t=r[e][n],i=r[o][n];r[e][n]=u*t-d*i,r[o][n]=d*t+u*i}r[e][e]=u*u*a-2*d*u*l+d*d*s,r[o][o]=d*d*a+2*d*u*l+u*u*s,r[e][o]=r[o][e]=0;for(let r=0;r<t;r++){const t=n[r][e],i=n[r][o];n[r][e]=u*t-d*i,n[r][o]=d*t+u*i}}let o=0,i=r[0][0];for(let e=1;e<t;e++){const t=r[e][e];t<i&&(i=t,o=e)}return{vec:n.map(e=>e[o])}}(c);return[[u[0],u[1],u[2]],[u[3],u[4],u[5]],[u[6],u[7],u[8]]]}(e,t,n,r);i=iu(i,1/(i[2][2]||1));const a=ru(o.x,o.y),s=ou(ou(ru(-o.x,-o.y),i),a),l=function(e,t){const n=e[0][0]*e[1][1]-e[0][1]*e[1][0];return Math.abs(n)<1e-12?null:[(t[0]*e[1][1]-t[1]*e[0][1])/n,(-t[0]*e[1][0]+t[1]*e[0][0])/n]}([[s[0][0],s[1][0]],[s[0][1],s[1][1]]],[s[2][0],s[2][1]])??[0,0],c=l[0],u=l[1];let d=ou([[1,0,0],[0,1,0],[-c,-u,1]],s);const p=d[2][2]||1;Math.abs(p)>1e-12&&(d=iu(d,1/p));const h=[[d[0][0],d[0][1]],[d[1][0],d[1][1]]],f=d[0][2],g=d[1][2],m=h[0][0],v=h[0][1],y=h[1][0],A=h[1][1],w=Math.atan2(y-v,m+A),b=Math.cos(w),_=Math.sin(w),C=[[b,-_],[_,b]],E=[[C[0][0]*h[0][0]+C[1][0]*h[1][0],C[0][0]*h[0][1]+C[1][0]*h[1][1]],[C[0][1]*h[0][0]+C[1][1]*h[1][0],C[0][1]*h[0][1]+C[1][1]*h[1][1]]],S=(e,t=1e-10)=>Math.abs(e)<t?0:e;let O,x=E[0][0];const D=E[0][0]*E[1][1]-E[0][1]*E[1][0];Math.abs(x)<1e-12?(x=0,O=E[1][1]):O=Math.abs(x)>1e-12?D/x:E[1][1];const P=Math.abs(x)>1e-12?E[0][1]/x:0,M=Math.abs(O)>1e-12?E[1][0]/O:0,T=au(w);return{anchorPoint:{...o},translation:{x:S(f),y:S(g)},rotation:S(T,1e-9),scaleFactor:{x:S(x),y:S(O)},shearAngle:{x:au(Math.atan(S(P))),y:au(Math.atan(S(M)))},perspectiveFactor:{x:S(c),y:S(u)}}}function tu(e,t){const n=e.anchorPoint??{x:.5,y:.5},r=t?.ignoreTranslation?{x:0,y:0}:{x:e.translation?.x??0,y:e.translation?.y??0},o=e.rotation??0,i={x:e.scaleFactor?.x??1,y:e.scaleFactor?.y??1},a={x:e.perspectiveFactor?.x??0,y:e.perspectiveFactor?.y??0},s=e.shearAngle?.x??0,l=e.shearAngle?.y??0,c=Math.tan(s*Math.PI/180),u=Math.tan(l*Math.PI/180),d=i.x,p=i.y,h=a.x,f=a.y,g=o*Math.PI/180,m=Math.cos(g),v=Math.sin(g),y=[[1,c,0],[0,1,0],[0,0,1]],A=[[1,0,0],[u,1,0],[0,0,1]],w=[[d,0,0],[0,p,0],[0,0,1]],b=[[m,-v,0],[v,m,0],[0,0,1]],_=[[1,0,0],[0,1,0],[h,f,1]],C=ru(r.x,r.y),E=ru(n.x,n.y),S=ru(-n.x,-n.y),O=ou(y,A),x=ou(b,ou(w,O)),D=ou(C,ou(_,x)),P=ou(E,ou(D,S));let M=nu(P,{x:0,y:0}),T=nu(P,{x:1,y:0}),R=nu(P,{x:1,y:1}),I=nu(P,{x:0,y:1});if(null!=t?.roundTo){const e=e=>{const n=10**t.roundTo;return{x:Math.round(e.x*n)/n,y:Math.round(e.y*n)/n}};M=e(M),T=e(T),R=e(R),I=e(I)}return{topLeft:M,topRight:T,bottomRight:R,bottomLeft:I}}function nu(e,t){const n=e[0][0]*t.x+e[0][1]*t.y+e[0][2],r=e[1][0]*t.x+e[1][1]*t.y+e[1][2],o=e[2][0]*t.x+e[2][1]*t.y+e[2][2],i=Math.abs(o)>1e-12?1/o:0;return{x:n*i,y:r*i}}function ru(e,t){return[[1,0,e],[0,1,t],[0,0,1]]}function ou(e,t){const n=Array.from({length:3},()=>[0,0,0]);for(let r=0;r<3;r++)for(let o=0;o<3;o++)n[r][o]=e[r][0]*t[0][o]+e[r][1]*t[1][o]+e[r][2]*t[2][o];return n}function iu(e,t){return e.map(e=>e.map(e=>e*t))}function au(e){return 180*e/Math.PI}function su(e,t,n){return Math.min(Math.max(e,t),n)}const lu={nw:"topLeft",ne:"topRight",se:"bottomRight",sw:"bottomLeft"};function cu(e,t,n,r,o,i){return{transform:`matrix3d(${function(e,t){const[n,r,o,i,a,s,l,c]=e,[u,d,p,h,f,g,m,v]=t,y=function(e,t){const n=e.length,r=e.map((e,n)=>[...e,t[n]]);for(let e=0;e<n;e++){let t=e;for(let o=e+1;o<n;o++)Math.abs(r[o][e])>Math.abs(r[t][e])&&(t=o);[r[e],r[t]]=[r[t],r[e]];for(let t=e+1;t<n;t++){const o=r[t][e]/r[e][e];for(let i=e;i<n+1;i++)e===i?r[t][i]=0:r[t][i]-=o*r[e][i]}}const o=new Array(n);for(let e=n-1;e>=0;e--){o[e]=r[e][n];for(let t=e+1;t<n;t++)o[e]-=r[e][t]*o[t];o[e]/=r[e][e]}return o}([[n,r,1,0,0,0,-u*n,-u*r],[0,0,0,n,r,1,-d*n,-d*r],[o,i,1,0,0,0,-p*o,-p*i],[0,0,0,o,i,1,-h*o,-h*i],[a,s,1,0,0,0,-f*a,-f*s],[0,0,0,a,s,1,-g*a,-g*s],[l,c,1,0,0,0,-m*l,-m*c],[0,0,0,l,c,1,-v*l,-v*c]],[u,d,p,h,f,g,m,v]);return[y[0],y[3],0,y[6],y[1],y[4],0,y[7],0,0,1,0,y[2],y[5],0,1]}([0,0,e,0,e,t,0,t],[n.x,n.y,r.x,r.y,o.x,o.y,i.x,i.y]).join(", ")})`,transformOrigin:"0 0",width:`${e}px`,height:`${t}px`}}const uu=C.GVDebug.extend("mixer").extend("layers"),du={capture:!0,passive:!1};class pu extends w().Component{data={};evData={};docMoveBound=!1;dragStarted=!1;mouseDownOnCrop=!1;manager;document="undefined"!=typeof document?document:{};workloadName=window.__GVCONFIG__.workloadName;container;editLayer;constructor(e){super(e),this.state={},this.manager=b.GVMatrixManager.get(),this.container=w().createRef(),this.editLayer=w().createRef()}handleKeyDown=e=>{"Escape"===e.key&&this.props.geometricTransformToggle&&this.resetGeometricTransformations()};componentDidMount(){window.addEventListener("keydown",this.handleKeyDown),this.manager?.onRefresh(this.onRefresh)}componentWillUnmount(){window.removeEventListener("keydown",this.handleKeyDown),this.manager?.offRefresh(this.onRefresh),this.unbindDocMove()}onRefresh=()=>{this.setState(e=>({refresh:e.refresh?e.refresh+1:1}))};renderLive=(e,t,n,r,o)=>o=>{const a="string"==typeof o?o:o.producerName,s=a?this.manager.getProducerByName(a):null;let l,c;s?.stream?.flows.length||(t.opacity=.7);let u=!1;return"string"!=typeof o&&o.enableChromaKey?(l=o.enableChromaKey&&o.chromaKeySettings?{color:o.chromaKeySettings.keyColor,tolerance:o.chromaKeySettings.colorTolerance,smoothness:o.chromaKeySettings.smoothness,spill:o.chromaKeySettings.spillSuppression}:void 0,u=o.includeAlpha||!1):"string"!=typeof o&&o.enableLuminanceKey?(c=o.enableLuminanceKey&&o.luminanceKeySettings?{threshold:o.luminanceKeySettings.threshold,softness:o.luminanceKeySettings.softness,invert:o.luminanceKeySettings.invert}:void 0,u=o.includeAlpha||!1):(l=e.enableChromaKey&&e.chromaKeySettings?{color:e.chromaKeySettings.keyColor,tolerance:e.chromaKeySettings.colorTolerance,smoothness:e.chromaKeySettings.smoothness,spill:e.chromaKeySettings.spillSuppression}:void 0,c=e.enableLuminanceKey&&e.luminanceKeySettings?{threshold:e.luminanceKeySettings.threshold,softness:e.luminanceKeySettings.softness,invert:e.luminanceKeySettings.invert}:void 0,u=e.includeAlpha||!1),(0,i.jsx)(Kc,{imageStyle:n,width:Math.floor(100*Math.round(r/100)),producer:s,alpha:u,chromaKey:l,lumaKey:c,image:!0,transparent:!0})};renderLayer=(e,t,n,r,o)=>{if("renderLayer"in this.props)return this.props.renderLayer(e,t,n,r,o,this.renderLive(e,t,n,r,o));if("inputs"in this.props){const{inputs:a}=this.props;let s=null;const l=a?.[e.input];let c,u;l||(t.opacity=.7);const d=e.keyframes?.[e.keyframe??0]??{},p=d.geometricTransformType??b.MixerEngine.GeometricTransformType.None,h=d.geometricTransformCoordinates,f=d.geometricTransformParams;if(p!==b.MixerEngine.GeometricTransformType.None){const e=d.size??{w:1,h:1},t=d.crop??{left:0,right:0,top:0,bottom:0},n=d.border??0,i=d.borderColor??{r:1,g:1,b:1,a:1},a=e.w*(1-t.left-t.right),s=e.h*(1-t.top-t.bottom),l=a*r,g=s*o,m=Math.min(.49,n),v=Math.min(.49,n/Math.max(s,1e-4)*a*(1920/1080)),y=l*(1-2*m),A=g*(1-2*v),w=l*m,_=g*v;if(p===b.MixerEngine.GeometricTransformType.FromCoordinates&&h)c={...cu(l,g,{x:h.topLeft.x*l,y:h.topLeft.y*g},{x:h.topRight.x*l,y:h.topRight.y*g},{x:h.bottomRight.x*l,y:h.bottomRight.y*g},{x:h.bottomLeft.x*l,y:h.bottomLeft.y*g}),position:"relative",background:`rgba(${255*(i.r??0)}, ${255*(i.g??0)}, ${255*(i.b??0)}, ${i.a??1})`};else if(p===b.MixerEngine.GeometricTransformType.FromParams&&f){const e=Jc(f,l,g);c={...cu(l,g,{x:e.topLeft.x*l,y:e.topLeft.y*g},{x:e.topRight.x*l,y:e.topRight.y*g},{x:e.bottomRight.x*l,y:e.bottomRight.y*g},{x:e.bottomLeft.x*l,y:e.bottomLeft.y*g}),position:"relative",background:`rgba(${255*(i.r??0)}, ${255*(i.g??0)}, ${255*(i.b??0)}, ${i.a??1})`}}u={position:"absolute",left:`${w}px`,top:`${_}px`,width:`${y}px`,height:`${A}px`,overflow:"hidden"}}const g=n;if(l){const n=this.renderLive(e,t,g,r,o)(l);s=c?(0,i.jsx)("div",{style:c,children:(0,i.jsx)("div",{style:u,children:n})}):n}else{const e=(0,i.jsx)("img",{className:Ti()("layers-live"),style:g,src:b.GVPreviewManager.get().getNoSignalImage().img});s=c?(0,i.jsx)("div",{style:c,children:(0,i.jsx)("div",{style:u,children:e})}):e}return s}};renderLayers=(e,t)=>{const{layers:n,highlight:r,edit:o}=this.props;return(0,i.jsx)(i.Fragment,{children:n.map(n=>{try{const a=n.id===o&&this.state.cropIsActive?this.state.keyframe:n.keyframes?.[n.keyframe??0]??{},{position:s={w:1,h:1,x:0,y:0,z:-1},crop:l={left:0,right:0,top:0,bottom:0},size:c={w:1,h:1},opacity:u=1,border:d=0,borderColor:p={r:0,g:0,b:0,a:1},cornerPinning:h=!1,geometricTransformCoordinates:f}=a,g={w:1,h:1,...c},m={...a,position:s,crop:{...l},size:g,opacity:u,border:d,cornerPinning:h,geometricTransformCoordinates:f},{input:v,output:y,window:A}=((e,t,n,r,o)=>{const i=(e=>({x:e.left,y:e.top,w:1-e.left-e.right,h:1-e.top-e.bottom}))(n),a=((e,t,n,r)=>({x:e.x+(r?0:t.w*n.x),y:e.y+(r?0:t.h*n.y),w:t.w*n.w,h:t.h*n.h}))(e,t,i,o),s=((e,t)=>{const n=Math.min(.49,t),r=Math.min(.49,t/Math.max(e.h,1e-4)*e.w*(1920/1080));return{x:n,y:r,w:1-2*n,h:1-2*r}})(a,r);return{input:i,output:a,window:s}})(s,g,l,d,h),w=(a.geometricTransformType??b.MixerEngine.GeometricTransformType.None)!==b.MixerEngine.GeometricTransformType.None,_=w&&!!f,C={position:"absolute",overflow:w?"visible":"hidden",left:y.x*e+"px",top:y.y*t+"px",width:y.w*e+"px",height:y.h*t+"px",background:_?"unset":d?(r=p,r?`rgba(${255*(r.r??0)}, ${255*(r.g??0)}, ${255*(r.b??0)}, ${r.a??1})`:"unset"):"unset",opacity:n.active?u:0,zIndex:(n.keyframes[0]?.position?.z??-1)>-1?(n.keyframes[0]?.position?.z??0)+1:n.id},E=A.w*y.w*e,S=A.h*y.h*t,O=_?{width:y.w*e+"px",height:y.h*t+"px",top:"0px",left:"0px",overflow:w?"visible":"hidden",position:"relative"}:{width:`${E}px`,height:`${S}px`,top:A.y*y.h*t+"px",left:A.x*y.w*e+"px",overflow:w?"visible":"hidden",position:"relative"},x={overflow:"hidden",position:"relative",userSelect:"none",left:-g.w/y.w*v.x*100+"%",top:-g.h/y.h*v.y*100+"%",width:g.w/y.w*100+"%",height:g.h/y.h*100+"%"},D=this.renderLayer(n,C,x,e,t);return this.data[n.id]={styles:{style:C,window:O,image:x},rectangles:{input:v,output:y,window:A},content:D,current:m},D?(0,i.jsx)("div",{style:C,ref:n.id===o?this.editLayer:null,children:(0,i.jsxs)("div",{style:O,children:[D,(0,i.jsx)("div",{className:"layers-graphic",style:{...x,top:`-${x.height}`,display:0===C.opacity?"none":"block"},onClick:()=>{+C.opacity>0&&this.props.editCallbacks?.onClick(n.id)}})]})},`${n.id}`):null}catch(e){return console.error(e),null}var r})})};onCropDown=e=>{const{edit:t,editState:n,onMove:r,geometricTransformToggle:o}=this.props;if(-1===(t??-1)||void 0===t)return;if("pointerdown"===e.type){const t=e;if("mouse"===t.pointerType&&0!==t.button)return}const i={crop:this.data[t].current.crop,position:this.data[t].current.position,size:this.data[t].current.size};r?.setValuesBeforeMove?.(i),e.cancelable&&e.preventDefault();const a=e.target,s=a?.closest("[data-ord]"),l=s?.getAttribute("data-ord")||"move",c=this.container.current?.getBoundingClientRect(),u=(n?.allowMove??!0)||o,d=n?.allowResize??!0,p=n?.allowCrop??!0,h=n?.allowSqueeze??!0,f=["n","s","w","e"].includes(l)&&p,g=["n","s","w","e"].includes(l)&&h,m=["nw","sw","ne","se"].includes(l)&&d&&!o,v=["move","pos"].includes(l)&&u,y=["nw","sw","ne","se"].includes(l)&&o&&d&&null!=this.props.editCallbacks?.onCornerPin;if(!(m||v||f||g||y))return;this.bindDocMove();const A=e.clientX??e.nativeEvent?.clientX??0,w=e.clientY??e.nativeEvent?.clientY??0,b=(A-c.x)/c.width,_=(w-c.y)/c.height;this.evData={keyframe:this.data[t].current,bounds:c,isExternalSnap:!!n?.moveSnap,isSnap:!!e.shiftKey,isSingle:!!e.altKey,isCrop:f,isResize:m,isMove:!!v,isAspect:g,clientStartX:A,clientStartY:w,clientStartXPercent:b,clientStartYPercent:_,ord:l,isCornerPin:y},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0,keyframe:this.data[t].current}),this.props.editCallbacks?.onDynamicEditState({...n,moveSnap:this.evData.isSnap}),uu("start",this.evData,e)};onDocPointerMove=e=>{if(!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0);const{evData:t}=this;t.isSnap=t.isExternalSnap||e.shiftKey,t.isSingle=e.altKey,this.props.editState?.moveSnap!==t.isSnap&&this.props.editCallbacks?.onDynamicEditState({...this.props.editState,moveSnap:this.evData.isSnap});const{bounds:n,isCrop:r,isMove:o,isResize:i,isSingle:a,isCornerPin:s}=t;if(t.xDiff=e.clientX-t.clientStartX,t.yDiff=e.clientY-t.clientStartY,t.xDiffPercent=(e.clientX-n.x)/n.width-t.clientStartXPercent,t.yDiffPercent=(e.clientY-n.y)/n.height-t.clientStartYPercent,i||s)if(t.isCornerPin){const r=t.ord,o=this.getNewCornerPin(),i=t.ord!==r;this.setState({keyframe:o}),this.props.onMove?.onCornerPin?.(o.geometricTransformCoordinates),i&&(t.clientStartX=e.clientX,t.clientStartY=e.clientY,t.clientStartXPercent=(e.clientX-n.x)/n.width,t.clientStartYPercent=(e.clientY-n.y)/n.height,t.xDiff=0,t.yDiff=0,t.xDiffPercent=0,t.yDiffPercent=0),this.evData.keyframe=o}else{const e=this.getNewResize();this.setState({keyframe:e}),this.props.onMove?.onSize?.(e.size),this.props.onMove?.onPosition?.(e.position)}else if(o){const e=this.getNewPosition();this.setState({keyframe:e}),this.props.onMove?.onPosition?.(e.position)}else if(r){const e=this.getNewCrop();this.setState({keyframe:e}),a?this.props.onMove?.onSize?.(e.size):this.props.onMove?.onCrop?.(e.crop),this.props.onMove?.onPosition?.(e.position)}};getNewPosition=()=>{const{evData:e}=this,{keyframe:{position:t,cornerPinning:n,crop:r,size:o},isSingle:i,bounds:a,isSnap:s}=e;e.xDiffPercent??=0,e.yDiffPercent??=0;const l=!i||Math.abs(e.xDiffPercent)>Math.abs(e.yDiffPercent),c=!i||Math.abs(e.xDiffPercent)<Math.abs(e.yDiffPercent);let u=l?t.x+e.xDiffPercent:t.x,d=c?t.y+e.yDiffPercent:t.y;if(s){const e=this.editLayer.current?.getBoundingClientRect(),t=1-e.width/a.width-(n?0:r.left*o.w),i=1-e.height/a.height-(n?0:r.top*o.h),s=20/1920/(9/16),p=20/1080/(9/16);u=l?Math.round(u/s)*s:u,d=c?Math.round(d/p)*p:d,u=l?su(u,-(n?0:r.left*o.w),t):u,d=c?su(d,-(n?0:r.top*o.h),i):d}return{...this.state.keyframe,position:{...t,x:u,y:d}}};getNewCrop=()=>{const{evData:e}=this,{keyframe:{position:t,size:n,crop:r,cornerPinning:o},ord:i,isSingle:a}=e;if(e.xDiffPercent??=0,e.yDiffPercent??=0,a){e.xDiffPercent??=0,e.yDiffPercent??=0;let a={...n},s=t.x,l=t.y;"n"===i?a.h+=-1*e.yDiffPercent:"e"===i?a.w+=e.xDiffPercent:"s"===i?a.h+=e.yDiffPercent:"w"===i&&(a.w+=-1*e.xDiffPercent),a.w=Math.max(a.w,0),a.h=Math.max(a.h,0);const c=r.top*(a.h-n.h),u=r.left*(a.w-n.w),d=r.right*(a.w-n.w),p=r.bottom*(a.h-n.h);return"n"===i?l=l-(a.h-n.h)+(o?c:p)+(o?p:0):"w"===i&&(s=s-(a.w-n.w)+(o?u:d)+(o?d:0)),{...this.state.keyframe,crop:r,size:{...n,...a},position:{...t,x:s,y:l}}}{const a={top:"n"===i?su(r.top+e.yDiffPercent/n.h,0,1):r.top,left:"w"===i?su(r.left+e.xDiffPercent/n.w,0,1):r.left,right:"e"===i?su(r.right-e.xDiffPercent/n.w,0,1):r.right,bottom:"s"===i?su(r.bottom-e.yDiffPercent/n.h,0,1):r.bottom};let s=t.x,l=t.y;return o&&("n"===i?l-=r.top-a.top:"w"===i&&(s-=r.left-a.left)),{...this.state.keyframe,size:n,crop:a,position:{...t,x:s,y:l}}}};getNewResize=()=>{const{evData:e}=this,{keyframe:{position:t,size:n,crop:r,cornerPinning:o},ord:i}=e;e.xDiffPercent??=0,e.yDiffPercent??=0;let a={...n},s=t.x,l=t.y;"ne"===i?(a.w+=(e.xDiffPercent+-1*e.yDiffPercent)/2,a.h+=(e.xDiffPercent+-1*e.yDiffPercent)/2):"nw"===i?(a.w+=(-1*e.xDiffPercent+-1*e.yDiffPercent)/2,a.h+=(-1*e.xDiffPercent+-1*e.yDiffPercent)/2):"sw"===i?(a.w+=(-1*e.xDiffPercent+e.yDiffPercent)/2,a.h+=(-1*e.xDiffPercent+e.yDiffPercent)/2):"se"===i&&(a.w+=(e.xDiffPercent+e.yDiffPercent)/2,a.h+=(e.xDiffPercent+e.yDiffPercent)/2),a.w=Math.max(a.w,0),a.h=Math.max(a.h,0);const c=r.top*(a.h-n.h),u=r.left*(a.w-n.w),d=r.right*(a.w-n.w),p=r.bottom*(a.h-n.h);return"ne"===i?(s-=u*(o?0:1),l=l-(a.h-n.h)+(o?c:p)+(o?p:0)):"nw"===i?(s=s-(a.w-n.w)+(o?u:d)+(o?d:0),l=l-(a.h-n.h)+(o?c:p)+(o?p:0)):"sw"===i?(s=s-(a.w-n.w)+(o?u:d)+(o?d:0),l-=c*(o?0:1)):"se"===i&&(s-=u*(o?0:1),l-=c*(o?0:1)),{...this.state.keyframe,size:{...n,...a},position:{...t,x:s,y:l}}};getNewCornerPin=()=>{const{evData:e}=this,{keyframe:{position:t,size:n,crop:r,cornerPinning:o,border:i=0,geometricTransformType:a},ord:s}=e;e.xDiffPercent??=0,e.yDiffPercent??=0;const l={x:t.x+(o?0:r.left*n.w),y:t.y+(o?0:r.top*n.h)},c=n.w*(1-r.left-r.right),u=n.h*(1-r.top-r.bottom),d=(e.clientStartXPercent??0)+(e.xDiffPercent??0),p=(e.clientStartYPercent??0)+(e.yDiffPercent??0),h=su(d,l.x,l.x+c),f=su(p,l.y,l.y+u),g={x:(h-l.x)/(c||1),y:(f-l.y)/(u||1)},m=lu[s],v=e.keyframe.geometricTransformCoordinates??{topLeft:{x:0,y:0},topRight:{x:1,y:0},bottomRight:{x:1,y:1},bottomLeft:{x:0,y:1}},y={topLeft:{...v.topLeft},topRight:{...v.topRight},bottomRight:{...v.bottomRight},bottomLeft:{...v.bottomLeft}};y[m]=g;const A={...this.state.keyframe};return a===b.MixerEngine.GeometricTransformType.FromCoordinates&&(A.geometricTransformCoordinates=y),A};resetGeometricTransformations=()=>{const{edit:e}=this.props;if(-1===(e??-1)||!this.data[e])return;const t=this.data[e].current,n=t.geometricTransformType??b.MixerEngine.GeometricTransformType.None;let r={...t};n===b.MixerEngine.GeometricTransformType.FromCoordinates?r.geometricTransformCoordinates={topLeft:{x:0,y:0},topRight:{x:1,y:0},bottomRight:{x:1,y:1},bottomLeft:{x:0,y:1}}:n===b.MixerEngine.GeometricTransformType.FromParams&&(r.geometricTransformParams={anchorPoint:{x:.5,y:.5},translation:{x:0,y:0},rotation:0,scaleFactor:{x:1,y:1},shearAngle:{x:0,y:0},perspectiveFactor:{x:0,y:0}}),this.setState({keyframe:r})};onDocPointerDone=e=>{if(!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault();const{evData:t}=this;t.isSnap=t.isExternalSnap||e.shiftKey,t.isSingle=e.altKey,this.props.editState?.moveSnap!==t.isSnap&&this.props.editCallbacks?.onDynamicEditState({...this.props.editState,moveSnap:this.evData.isSnap});const{bounds:n,isCrop:r,isMove:o,isResize:i,isSingle:a,isCornerPin:s}=t;if(t.xDiff=e.clientX-t.clientStartX,t.yDiff=e.clientY-t.clientStartY,t.xDiffPercent=(e.clientX-n.x)/n.width-t.clientStartXPercent,t.yDiffPercent=(e.clientY-n.y)/n.height-t.clientStartYPercent,i||s)if(t.isCornerPin){const e=this.getNewCornerPin();this.setState({keyframe:e}),this.props.onMove?.onCornerPin?.(e.geometricTransformCoordinates),this.props.editCallbacks?.onCornerPin?.(e.geometricTransformCoordinates),this.evData.keyframe=e}else{const e=this.getNewResize();this.setState({keyframe:e}),this.props.onMove?.onSize?.(e.size),this.props.onMove?.onPosition?.(e.position),this.props.editCallbacks.onSize(e.size),this.props.editCallbacks.onPosition(e.position)}else if(o){const e=this.getNewPosition();this.setState({keyframe:e}),this.props.onMove?.onPosition?.(e.position),this.props.editCallbacks.onPosition(e.position)}else if(r){const e=this.getNewCrop();this.setState({keyframe:e}),a?this.props.onMove?.onSize?.(e.size):this.props.onMove?.onCrop?.(e.crop),this.props.onMove?.onPosition?.(e.position),this.props.editCallbacks.onSize(e.size),this.props.editCallbacks.onCrop(e.crop),this.props.editCallbacks.onPosition(e.position)}this.mouseDownOnCrop=!1,this.dragStarted=!1,this.unbindDocMove(),requestAnimationFrame(()=>{this.setState({cropIsActive:!1,keyframe:void 0})}),uu("end",this.evData,e)};bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,du),this.document.addEventListener("pointerup",this.onDocPointerDone,du),this.document.addEventListener("pointercancel",this.onDocPointerDone,du),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,du),this.document.removeEventListener("pointerup",this.onDocPointerDone,du),this.document.removeEventListener("pointercancel",this.onDocPointerDone,du),this.docMoveBound=!1)}renderStandardEditOverlay=()=>{const{edit:e,editState:t}=this.props;return-1===(e??-1)||this.props.geometricTransformToggle||!this.data[e]?null:(0,i.jsxs)("div",{className:Ti()({edit:t?.allowEdit??!0,"edit--squeeze":t?.allowSqueeze,"edit--crop":t?.allowCrop,"edit--resize":t?.allowResize,"edit--move":t?.allowMove}),style:{width:`calc(${this.data[e].styles.style.width} - 4px)`,height:`calc(${this.data[e].styles.style.height} - 4px)`,top:this.data[e].styles.style.top,left:this.data[e].styles.style.left,touchAction:"none",pointerEvents:"auto"},onPointerDown:this.onCropDown,children:[this.props.editState?.allowResize&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"edit-handle edit-handle--nw","data-ord":"nw"}),(0,i.jsx)("div",{className:"edit-handle edit-handle--sw","data-ord":"sw"}),(0,i.jsx)("div",{className:"edit-handle edit-handle--ne","data-ord":"ne"}),(0,i.jsx)("div",{className:"edit-handle edit-handle--se","data-ord":"se"})]}),this.props.editState?.allowCrop&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"edit-crop edit-crop--n","data-ord":"n"}),(0,i.jsx)("div",{className:"edit-crop edit-crop--s","data-ord":"s"}),(0,i.jsx)("div",{className:"edit-crop edit-crop--e","data-ord":"e"}),(0,i.jsx)("div",{className:"edit-crop edit-crop--w","data-ord":"w"})]})]})};renderCornerPinOverlay=(e,t)=>{const{edit:n}=this.props;if(-1===(n??-1)||!this.props.geometricTransformToggle||!this.data[n])return null;const r=this.state.keyframe??this.data[n].current,o=r.geometricTransformType??b.MixerEngine.GeometricTransformType.None;if(o===b.MixerEngine.GeometricTransformType.None)return null;const a=this.data[n].rectangles.output,s=a.w*e,l=a.h*t;let c;if(o===b.MixerEngine.GeometricTransformType.FromCoordinates)c=r.geometricTransformCoordinates??{topLeft:{x:0,y:0},topRight:{x:1,y:0},bottomRight:{x:1,y:1},bottomLeft:{x:0,y:1}};else{if(o!==b.MixerEngine.GeometricTransformType.FromParams)return null;c=Jc(r.geometricTransformParams??{anchorPoint:{x:.5,y:.5},translation:{x:0,y:0},rotation:0,scaleFactor:{x:1,y:1},shearAngle:{x:0,y:0},perspectiveFactor:{x:0,y:0}},s,l)}const u={x:a.x*e+c.topLeft.x*s,y:a.y*t+c.topLeft.y*l},d={x:a.x*e+c.topRight.x*s,y:a.y*t+c.topRight.y*l},p={x:a.x*e+c.bottomRight.x*s,y:a.y*t+c.bottomRight.y*l},h={x:a.x*e+c.bottomLeft.x*s,y:a.y*t+c.bottomLeft.y*l},f=`${u.x},${u.y} ${d.x},${d.y} ${p.x},${p.y} ${h.x},${h.y}`,g=o===b.MixerEngine.GeometricTransformType.FromCoordinates,m=g?"#00d1ff":"#ffa500",v=(e,t)=>(0,i.jsx)("div",{"data-ord":t,onPointerDown:g?this.onCropDown:void 0,style:{position:"absolute",left:e.x-6+"px",top:e.y-6+"px",width:"12px",height:"12px",borderRadius:"50%",background:m,border:`1px solid ${m}`,cursor:g?"grab":"default",zIndex:1001,pointerEvents:g?"auto":"none"}},`pin-${t}`);return(0,i.jsxs)("div",{style:{position:"absolute",left:0,top:0,width:`${e}px`,height:`${t}px`,pointerEvents:"none",zIndex:99999},children:[(0,i.jsx)("svg",{width:e,height:t,style:{position:"absolute",left:0,top:0,pointerEvents:"auto",zIndex:1},children:(0,i.jsx)("polygon",{"data-ord":"move",onPointerDown:this.onCropDown,points:f,fill:"rgba(255, 255, 255, 0)",strokeDasharray:"5,5",stroke:m,strokeWidth:"2",style:{cursor:"move",pointerEvents:"auto"}})}),v(u,"nw"),v(d,"ne"),v(p,"se"),v(h,"sw")]},"corner-pin-overlay")};render(){const{edit:e,editState:t}=this.props;return(0,i.jsx)(_.AutoSizer,{className:Ti()({"layers-auto":!0,"layers-auto--edit":(e??-1)>-1}),style:{width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%"},children:({width:t,height:n})=>{const{w:r,h:o}=((e,t)=>{let n=e,r=e*(9/16);return r>t&&(r=t,n=t*(16/9)),{w:n,h:r}})(t,n);return(0,i.jsxs)("div",{ref:this.container,className:Ti()({"layers-container":!0,"layers-container--edit":(e??-1)>-1}),style:{width:`${r}px`,height:`${o}px`,position:"relative"},onDoubleClick:()=>{-1!==e&&this.props.editCallbacks?.onDeselect()},children:[(0,i.jsx)("div",{style:{width:`${r}px`,height:`${o}px`,position:"relative",overflow:"hidden"},children:this.renderLayers(r,o)}),this.renderStandardEditOverlay(),this.renderCornerPinOverlay(r,o)]})}})}}function hu(e,t,n,r){const o=Math.max(e,1e-9),i=Math.max(t,1e-9);return{localQuadIn:{topLeft:{x:0+n.topLeft.x/o,y:0+n.topLeft.y/i},topRight:{x:1+n.topRight.x/o,y:0+n.topRight.y/i},bottomRight:{x:1+n.bottomRight.x/o,y:1+n.bottomRight.y/i},bottomLeft:{x:0+n.bottomLeft.x/o,y:1+n.bottomLeft.y/i}},localAnchor:r??{x:.5,y:.5},bw:o,bh:i}}function fu(e,t,n){return{topLeft:{x:(e.topLeft.x-0)*t,y:(e.topLeft.y-0)*n},topRight:{x:(e.topRight.x-1)*t,y:(e.topRight.y-0)*n},bottomRight:{x:(e.bottomRight.x-1)*t,y:(e.bottomRight.y-1)*n},bottomLeft:{x:(e.bottomLeft.x-0)*t,y:(e.bottomLeft.y-1)*n}}}const gu=e=>({anchorPoint:{x:e?.anchorPoint?.x??.5,y:e?.anchorPoint?.y??.5},scaleFactor:{x:e?.scaleFactor?.x??1,y:e?.scaleFactor?.y??1},rotation:e?.rotation??0,shearAngle:{x:e?.shearAngle?.x??0,y:e?.shearAngle?.y??0},translation:{x:e?.translation?.x??0,y:e?.translation?.y??0},perspectiveFactor:{x:e?.perspectiveFactor?.x??0,y:e?.perspectiveFactor?.y??0}}),mu=e=>Math.abs(e)<1e-12?e<0?-1e-12:1e-12:e,vu=.25,yu=1e-12,Au=(e,t,n)=>Math.max(t,Math.min(n,e)),wu=e=>e*Math.PI/180,bu=e=>180*e/Math.PI,_u=(e,t=5)=>{const n=10**t;return Math.round(e*n)/n};function Cu(e){const t=e?.perspectiveFactor?.x??0,n=e?.perspectiveFactor?.y??0,r=e?.rotation??0;return{yaw:bu(Math.atan(t/(vu||yu))),pitch:bu(Math.atan(n/(vu||yu))),roll:r}}function Eu(e,t){const n=e??{},{yaw:r,pitch:o,roll:i}=Cu(n),a=Au(vu*Math.tan(wu(t?.yaw??r)),-1e3,1e3),s=Au(vu*Math.tan(wu(t?.pitch??o)),-1e3,1e3);return{...n,rotation:t?.roll??i,perspectiveFactor:{x:_u(a,2),y:_u(s,2)}}}class Su extends y.PureComponent{previewManager;constructor(e){super(e);const t={};this.previewManager=b.GVPreviewManager.get(),this.previewManager.addListener("tick",this.tick),this.previewManager.addListener("img",this.img),this.props.flow&&!this.props.disabled&&this.props.flow.flow&&this.props.flow.framecache&&(t.flow=this.props.flow.flow,t.framecache=this.props.flow.framecache,t.subscription=this.previewManager.addSubscription(this.props.flow.framecache,this.props.flow.flow,150,`constructor-${this.props.id}`,null,this.props.fabricType)),this.state=t}componentDidMount(){this.tick()}componentDidUpdate(e,t){this.props.flow&&(!e.flow||e.flow&&this.props.flow.flow!==e.flow.flow||this.props.disabled!==e.disabled)&&(t.subscription&&(this.previewManager.removeSubscription(t.framecache,t.flow,t.subscription,`didUpdate-${this.props.id}`),this.setState({img:void 0})),this.props.flow.flow&&this.props.flow.framecache&&!this.props.disabled&&this.setState({flow:this.props.flow.flow,framecache:this.props.flow.framecache,subscription:this.previewManager.addSubscription(this.props.flow.framecache,this.props.flow.flow,150,`didUpdate-${this.props.id}`,null,this.props.fabricType)},this.tick))}componentWillUnmount(){this.state.subscription&&this.state.flow&&this.state.framecache&&this.previewManager.removeSubscription(this.state.framecache,this.state.flow,this.state.subscription,`willUnmount-${this.props.id}`),this.previewManager.removeListener("tick",this.tick),this.previewManager.removeListener("img",this.img)}render(){const{img:e}=this.state;return(0,i.jsx)(_.GVThumbnail,{...this.props,image:e})}tick=async()=>{"SMPTE2110"===this.props.fabricType?this.setState(this.getS2110Image()):"Orbit"===this.props.fabricType?this.setState(Yc()):"NMOS"===this.props.fabricType?this.setState(Xc()):"TVU"===this.props.fabricType?this.setState(Zc()):(this.props.flow&&!this.props.disabled&&this.setState(this.previewManager.getPreview(this.props.flow.framecache,this.props.flow.flow)),this.props.flow||this.setState(this.previewManager.getNoSignalImage()))};img=async(e,t)=>{"SMPTE2110"===this.props.fabricType?this.setState(this.getS2110Image()):"Orbit"===this.props.fabricType?this.setState(Yc()):"NMOS"===this.props.fabricType?this.setState(Xc()):"TVU"===this.props.fabricType?this.setState(Zc()):t!==this.props.flow?.flow&&e!==this.props.flow?.framecache||this.setState({img:this.previewManager.getPreview(this.state.framecache,this.state.flow).img})};getS2110Image(){return{img:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3Eicon/video/smpte-2110%3C/title%3E%3Cg id='icon/video/smpte-2110' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M16,31 C12.8644312,31 9.95357127,30.0379067 7.54651783,28.3928175 L24.4534822,28.3928175 C22.0464287,30.0379067 19.1355688,31 16,31 Z M24.5725488,27.5842033 C24.7400371,27.7104619 24.9157342,27.8242306 25.0993807,27.9250709 C24.9281429,28.0566928 24.7524469,28.1850619 24.5739137,28.3096463 L24.5725488,27.5842033 Z M8.77967759,21.6772925 C8.86884061,21.762103 8.96380967,21.8370819 9.06457857,21.9046125 L9.220081,22.0006202 L9.38427814,22.0846838 L9.55374858,22.1532341 C9.6683266,22.193786 9.78594006,22.2240637 9.90562874,22.2442035 L10.0865982,22.2668268 L10.258,22.274 L10.258,23.888 L8.40604323,23.88818 L8.406,23.935 L8.32252361,23.8744978 C8.16369028,23.7694786 7.99325352,23.6879109 7.81433886,23.6289827 L7.63271399,23.5775708 L7.554,23.562 L7.61325219,23.4961667 L7.81793983,23.254789 C8.01662215,23.0107895 8.1972491,22.7589329 8.35946594,22.4992926 C8.45400567,22.3479747 8.54072148,22.1930828 8.61952277,22.0347644 L8.7317775,21.794735 L8.77967759,21.6772925 Z M15.309,20.184 L16.2316156,21.4269412 L16.3485075,21.5681074 C16.4693696,21.7016296 16.6021398,21.8129968 16.7468,21.9092054 L16.8954229,22.0006202 L17.05962,22.0846838 L17.2290904,22.1532341 C17.3436685,22.193786 17.4612819,22.2240637 17.5809706,22.2442035 L17.76194,22.2668268 L17.934,22.274 L17.934,23.888 L15.309,23.888 L15.309,20.184 Z M3.004,21.572 L2.35398726,22.236652 C2.25646482,22.0236163 2.16378437,21.8079011 2.0760867,21.5896474 L2.18020973,21.6037496 L2.37178111,21.618893 L2.51521835,21.6229013 L2.70600746,21.6158987 L2.80020893,21.6070673 L2.89350457,21.594613 L3.004,21.572 Z M20.9466923,9.66186567 L20.9447114,13.4247817 L30.7797264,13.4244301 C30.9245316,14.261239 31,15.1218062 31,16 C31,16.3553165 30.9876458,16.7077476 30.9633435,17.056887 C30.5371948,16.5714891 30.0333385,16.1934085 29.4596797,15.9329994 C28.8229291,15.6439502 28.1361235,15.5 27.4137627,15.5 C26.6899387,15.5 26.0034856,15.644547 25.3692568,15.9353744 C24.7086239,16.2383095 24.1414176,16.6992181 23.6784488,17.2996622 C23.4600827,17.5828707 23.2689933,17.8950581 23.1040102,18.2352446 L22.9851496,18.4956191 L22.9852228,15.6007388 L19.2391025,15.6007388 L15.309,18.947 L15.3098809,15.6007388 L11.5637606,15.6007388 L8.755,17.992 L8.7115596,17.893596 C8.49306757,17.4431378 8.19837897,17.0431486 7.83201883,16.7017734 C7.41363349,16.311921 6.91687105,16.0128114 6.35352819,15.8045865 C5.79827929,15.5993532 5.19387794,15.5 4.54653727,15.5 C3.95861912,15.5 3.39699622,15.580782 2.86616117,15.7448983 C2.30140002,15.9195035 1.78975539,16.190087 1.34140554,16.5541467 C1.23015086,16.6444854 1.12363773,16.7400917 1.02190942,16.840811 C1.00780708,16.5630901 1,16.2824568 1,16 C1,15.0069572 1.09649848,14.0364528 1.28062977,13.0973526 L1.392239,13.1448657 C1.67769733,13.2568601 1.97245665,13.3434743 2.27552103,13.4045869 C2.51091817,13.4520545 2.74580404,13.4819906 2.97969228,13.4939919 L3.21322996,13.5 L3.49123675,13.492427 C3.85782772,13.4721846 4.20790268,13.411171 4.53933757,13.3070938 L4.78438554,13.2209257 L4.90741515,13.167 L4.90767441,13.4247817 L18.1669337,13.4247817 L18.1664151,11.098 L18.3679895,11.0742476 L18.6445444,11.0259799 C18.8257742,10.989023 19.0007254,10.9424457 19.1694069,10.8858667 C19.7013138,10.707455 20.1663314,10.4448339 20.5509246,10.0922686 C20.6961421,9.95914434 20.8282275,9.81540764 20.9466923,9.66186567 Z M16,1 C19.1148549,1 22.00796,1.94942393 24.4057125,3.57466905 L19.0465633,3.57521827 L19.0464151,3.784 L18.924826,3.74715466 C18.5735444,3.65372316 18.1956068,3.59974277 17.7905926,3.58188787 L17.4817485,3.57521827 L12.8794151,3.576 L12.5787735,3.58044088 L12.3986445,3.5964611 C12.2272983,3.61764518 12.0800009,3.65468911 11.9360559,3.71090775 C11.7436882,3.78603818 11.5686279,3.89254498 11.4151701,4.02467845 L11.3041944,4.12849371 L11.1987157,4.24488994 L11.1049215,4.367072 L11.02129,4.49519677 L10.9462993,4.6294211 L10.1984151,6.123 L9.46242655,4.64915411 L9.3816293,4.50352163 C9.29833464,4.36404836 9.20631599,4.24204931 9.09448776,4.12849371 C8.91650271,3.94775939 8.70308591,3.80482079 8.46262628,3.71090775 C8.31868129,3.65468911 8.17138381,3.61764518 8.022224,3.59743609 L7.8724986,3.58275195 L7.67338944,3.57566799 L7.59329095,3.57534459 C9.99123837,1.94968702 12.8847135,1 16,1 Z' id='circle' fill-opacity='0.4' fill='%23FFFFFF'%3E%3C/path%3E%3Cg id='2110' transform='translate(1.000000, 5.000000)'%3E%3C/g%3E%3Cpath d='M5.25,6.46675621 C5.2037037,6.54197448 5.15509259,6.59838818 5.10416667,6.63599731 C5.05324074,6.67360645 4.98765432,6.69241101 4.90740741,6.69241101 C4.83641975,6.69241101 4.76003086,6.66968883 4.67824074,6.62424446 L4.40046296,6.47145735 C4.2970679,6.41504365 4.17901235,6.36411462 4.0462963,6.31867025 C3.91358025,6.27322588 3.76234568,6.25050369 3.59259259,6.25050369 C3.29938272,6.25050369 3.08101852,6.31396911 2.9375,6.44089993 C2.79398148,6.56783076 2.72222222,6.73942243 2.72222222,6.95567495 C2.72222222,7.09357511 2.7654321,7.20796955 2.85185185,7.29885829 C2.9382716,7.38974703 3.05169753,7.4680994 3.19212963,7.53391538 C3.28575103,7.5777927 3.38828875,7.6192324 3.4997428,7.65823446 L3.67361111,7.71490934 C3.85416667,7.76975599 4.03858025,7.83087083 4.22685185,7.89825386 C4.41512346,7.96563689 4.59953704,8.04477278 4.78009259,8.13566152 C4.96064815,8.22655026 5.12114198,8.34251175 5.26157407,8.483546 C5.40200617,8.62458026 5.5154321,8.79617193 5.60185185,8.99832102 C5.6882716,9.20047011 5.73148148,9.44414596 5.73148148,9.72934856 C5.73148148,10.0458921 5.67746914,10.342064 5.56944444,10.6178643 C5.46141975,10.8936647 5.30478395,11.1342064 5.09953704,11.3394896 C4.89429012,11.5447728 4.6412037,11.7061786 4.34027778,11.8237072 C4.03935185,11.9412357 3.69753086,12 3.31481481,12 C3.10493827,12 2.8912037,11.9780613 2.67361111,11.934184 C2.45601852,11.8903067 2.24537037,11.8284083 2.04166667,11.7484889 C1.83796296,11.6685695 1.64660494,11.5737632 1.46759259,11.4640698 C1.28858025,11.3543765 1.13271605,11.2321469 1,11.0973808 L1.46296296,10.3546004 C1.49691358,10.2981867 1.54475309,10.2527423 1.60648148,10.2182673 C1.66820988,10.1837923 1.7345679,10.1665547 1.80555556,10.1665547 C1.89814815,10.1665547 1.99151235,10.1963286 2.08564815,10.2558764 L2.40509259,10.4533244 C2.52391975,10.5254086 2.66049383,10.5912245 2.81481481,10.6507723 C2.9691358,10.7103201 3.15123457,10.740094 3.36111111,10.740094 C3.64506173,10.740094 3.86574074,10.6766286 4.02314815,10.5496978 C4.18055556,10.422767 4.25925926,10.2214014 4.25925926,9.94560107 C4.25925926,9.78576226 4.21604938,9.65569734 4.12962963,9.55540631 C4.04320988,9.45511529 3.92978395,9.37206179 3.78935185,9.3062458 C3.64891975,9.24042982 3.48919753,9.18244907 3.31018519,9.13230356 C3.13117284,9.08215805 2.94753086,9.02652787 2.75925926,8.96541303 C2.57098765,8.90429819 2.38734568,8.82907992 2.20833333,8.73975823 C2.02932099,8.65043653 1.86959877,8.53290799 1.72916667,8.3871726 C1.58873457,8.24143721 1.47530864,8.05965973 1.38888889,7.84184016 C1.30246914,7.6240206 1.25925926,7.35527199 1.25925926,7.03559436 C1.25925926,6.77859861 1.31018519,6.52787105 1.41203704,6.28341169 C1.51388889,6.03895232 1.66358025,5.82113275 1.86111111,5.62995299 C2.05864198,5.43877323 2.30092593,5.28598612 2.58796296,5.17159167 C2.875,5.05719722 3.2037037,5 3.57407407,5 C3.7808642,5 3.98225309,5.016454 4.17824074,5.04936199 C4.3742284,5.08226998 4.56018519,5.13084844 4.73611111,5.19509738 C4.91203704,5.25934632 5.07638889,5.33613163 5.22916667,5.42545332 C5.38194444,5.51477502 5.51851852,5.61584956 5.63888889,5.72867696 L5.25,6.46675621 Z M8.22222222,5.31967764 L9.95833333,8.79382136 C10.0200617,8.91291695 10.0794753,9.03671368 10.1365741,9.16521155 C10.1936728,9.29370942 10.2484568,9.42534139 10.3009259,9.56010745 C10.3533951,9.4222073 10.4089506,9.28822476 10.4675926,9.15815984 L10.556713,8.96600067 L12.3796296,5.31967764 C12.4104938,5.26012984 12.4421296,5.21390195 12.474537,5.18099396 C12.5069444,5.14808596 12.5432099,5.12379673 12.5833333,5.10812626 C12.6234568,5.09245579 12.6689815,5.0830535 12.7199074,5.07991941 L12.8981481,5.07521827 L14.0925926,5.07521827 L14.0925926,11.9247817 L12.712963,11.9247817 L12.712963,7.98522498 C12.712963,7.79404522 12.7222222,7.58719499 12.7407407,7.36467428 L10.9537037,10.8858294 C10.8981481,10.9955227 10.8233025,11.0785762 10.7291667,11.1349899 C10.6350309,11.1914036 10.5277778,11.2196105 10.4074074,11.2196105 L10.1944444,11.2196105 C10.0740741,11.2196105 9.96682099,11.1914036 9.87268519,11.1349899 C9.77854938,11.0785762 9.7037037,10.9955227 9.64814815,10.8858294 L7.85185185,7.35997314 C7.86419753,7.46966644 7.87345679,7.57857623 7.87962963,7.68670248 C7.88580247,7.79482874 7.88888889,7.89433624 7.88888889,7.98522498 L7.88888889,11.9247817 L6.50925926,11.9247817 L6.50925926,5.07521827 L7.7037037,5.07521827 C7.77160494,5.07521827 7.83101852,5.07678531 7.88194444,5.07991941 C7.93287037,5.0830535 7.97839506,5.09245579 8.01851852,5.10812626 C8.05864198,5.12379673 8.09490741,5.14808596 8.12731481,5.18099396 C8.15972222,5.21390195 8.19135802,5.26012984 8.22222222,5.31967764 Z M16.7685185,9.63532572 L16.7685185,11.9247817 L15.2037037,11.9247817 L15.2037037,5.07521827 L17.5833333,5.07521827 C18.058642,5.07521827 18.466821,5.13241549 18.8078704,5.24680994 C19.1489198,5.36120439 19.429784,5.51869263 19.650463,5.71927468 C19.871142,5.91985673 20.0339506,6.15648086 20.1388889,6.42914708 C20.2438272,6.7018133 20.2962963,6.99641818 20.2962963,7.31296172 C20.2962963,7.65457802 20.242284,7.96798746 20.1342593,8.25319006 C20.0262346,8.53839266 19.8611111,8.78285203 19.6388889,8.98656817 C19.4166667,9.19028431 19.1350309,9.3493396 18.7939815,9.46373405 C18.4529321,9.5781285 18.0493827,9.63532572 17.5833333,9.63532572 L16.7685185,9.63532572 Z M16.7685185,8.43653459 L17.5833333,8.43653459 C17.9907407,8.43653459 18.2839506,8.33781061 18.462963,8.14036266 C18.6419753,7.94291471 18.7314815,7.66711439 18.7314815,7.31296172 C18.7314815,7.156257 18.7083333,7.0136557 18.662037,6.88515782 C18.6157407,6.75665995 18.5455247,6.64618312 18.4513889,6.55372733 C18.3572531,6.46127155 18.2384259,6.3899709 18.0949074,6.33982539 C17.9513889,6.28967987 17.7808642,6.26460712 17.5833333,6.26460712 L16.7685185,6.26460712 L16.7685185,8.43653459 Z M26.0092593,5.07521827 L26.0092593,6.33512424 L24.1111111,6.33512424 L24.1111111,11.9247817 L22.5462963,11.9247817 L22.5462963,6.33512424 L20.6481481,6.33512424 L20.6481481,5.07521827 L26.0092593,5.07521827 Z M31,5.07521827 L31,6.29751511 L28.2314815,6.29751511 L28.2314815,7.89590329 L30.3518519,7.89590329 L30.3518519,9.07118872 L28.2314815,9.07118872 L28.2314815,10.7024849 L31,10.7024849 L31,11.9247817 L26.6574074,11.9247817 L26.6574074,5.07521827 L31,5.07521827 Z M4.54653727,17 C5.0229378,17 5.45191884,17.0705171 5.83348037,17.2115514 C6.21504191,17.3525856 6.54036171,17.5484665 6.80943979,17.7991941 C7.07851787,18.0499216 7.28473754,18.3487799 7.42809881,18.695769 C7.57146008,19.042758 7.64314071,19.4244459 7.64314071,19.8408328 C7.64314071,20.199015 7.59351566,20.5303336 7.49426555,20.8347884 C7.39501544,21.1392433 7.25937362,21.4291471 7.0873401,21.7044997 C6.91530657,21.9798522 6.71570357,22.2462503 6.4885311,22.5036938 C6.33708278,22.6753227 6.17926285,22.8484441 6.01507131,23.023058 L3.8782532,25.2471457 C4.12086458,25.1755093 4.36016762,25.118424 4.59616233,25.0758899 C4.83215704,25.0333557 5.05381562,25.0120887 5.26113807,25.0120887 L7.0608734,25.0120887 C7.2814292,25.0120887 7.45566828,25.0736512 7.58359065,25.1967764 C7.71151301,25.3199015 7.77547419,25.4822028 7.77547419,25.6836803 L7.77547419,26.8925453 L1,26.8925453 L1,26.2209537 C1,26.0911126 1.0264667,25.952317 1.07940009,25.8045668 C1.11910013,25.6937542 1.18113145,25.590497 1.26549404,25.4947952 L4.13630348,22.560779 C4.37450375,22.319006 4.5818262,22.0884262 4.75827084,21.8690396 C4.93471548,21.649653 5.08028231,21.4336244 5.19497133,21.2209537 C5.30966034,21.008283 5.39567711,20.7956123 5.45302161,20.5829416 C5.51036612,20.3702709 5.53903838,20.1452877 5.53903838,19.9079919 C5.53903838,19.5184688 5.44750772,19.2196105 5.2644464,19.0114171 C5.08138509,18.8032236 4.802382,18.6991269 4.42743714,18.6991269 C4.27304808,18.6991269 4.13189237,18.7215133 4.00397,18.7662861 C3.87604764,18.8110589 3.76135862,18.8715021 3.65990296,18.9476158 C3.55844729,19.0237296 3.47132775,19.1132751 3.39854433,19.2162525 C3.35002206,19.2849041 3.30787139,19.3575355 3.27209234,19.4341467 L3.22320247,19.5520484 C3.15262461,19.7535259 3.06329951,19.8990374 2.95522717,19.9885829 C2.84715483,20.0781285 2.70048522,20.1229013 2.51521835,20.1229013 C2.47110719,20.1229013 2.42368769,20.1206626 2.37295986,20.1161854 L2.21746802,20.0960376 L1.13233348,19.901276 C1.20291134,19.4132527 1.33855315,18.9879113 1.53925893,18.6252518 C1.73996471,18.2625923 1.98919277,17.9603761 2.2869431,17.7186031 C2.58469343,17.4768301 2.92545214,17.2966197 3.30921923,17.1779718 C3.69298633,17.0593239 4.10542567,17 4.54653727,17 Z M9.90604323,25.38818 L11.758712,25.38818 L11.758712,20.4519812 C11.758712,20.2102082 11.7653286,19.957242 11.778562,19.6930826 L10.6868108,20.6131632 C10.6162329,20.6713678 10.5456551,20.7127826 10.4750772,20.7374077 C10.4044993,20.7620327 10.336127,20.7743452 10.2699603,20.7743452 C10.1552713,20.7743452 10.0527128,20.7486009 9.96228496,20.6971122 C9.87185708,20.6456235 9.80458756,20.5907768 9.7604764,20.5325722 L9.11204235,19.659503 L12.1160124,17.1007388 L13.8098809,17.1007388 L13.8098809,25.38818 L15.3978827,25.38818 L15.3978827,26.8925453 L9.90604323,26.8925453 L9.90604323,25.38818 Z M17.5813851,25.38818 L19.4340538,25.38818 L19.4340538,20.4519812 C19.4340538,20.2102082 19.4406705,19.957242 19.4539038,19.6930826 L18.3621526,20.6131632 C18.2915748,20.6713678 18.2209969,20.7127826 18.1504191,20.7374077 C18.0798412,20.7620327 18.0114689,20.7743452 17.9453022,20.7743452 C17.8306131,20.7743452 17.7280547,20.7486009 17.6376268,20.6971122 C17.5471989,20.6456235 17.4799294,20.5907768 17.4358183,20.5325722 L16.7873842,19.659503 L19.7913542,17.1007388 L21.4852228,17.1007388 L21.4852228,25.38818 L23.0732245,25.38818 L23.0732245,26.8925453 L17.5813851,26.8925453 L17.5813851,25.38818 Z M31,21.996642 C31,22.8518021 30.9095721,23.5927916 30.7287164,24.2196105 C30.5478606,24.8464294 30.2975298,25.3657936 29.9777239,25.7777032 C29.657918,26.1896127 29.278562,26.4963062 28.8396559,26.6977837 C28.4007499,26.8992612 27.9254521,27 27.4137627,27 C26.9020732,27 26.428981,26.8992612 25.9944861,26.6977837 C25.5599912,26.4963062 25.1839435,26.1896127 24.8663432,25.7777032 C24.5487428,25.3657936 24.3006176,24.8464294 24.1219674,24.2196105 C23.9433172,23.5927916 23.8539921,22.8518021 23.8539921,21.996642 C23.8539921,21.141482 23.9433172,20.4004925 24.1219674,19.7736736 C24.3006176,19.1468547 24.5487428,18.6274905 24.8663432,18.2155809 C25.1839435,17.8036714 25.5599912,17.4980972 25.9944861,17.2988583 C26.428981,17.0996194 26.9020732,17 27.4137627,17 C27.9254521,17 28.4007499,17.0996194 28.8396559,17.2988583 C29.278562,17.4980972 29.657918,17.8036714 29.9777239,18.2155809 C30.2975298,18.6274905 30.5478606,19.1468547 30.7287164,19.7736736 C30.9095721,20.4004925 31,21.141482 31,21.996642 Z M28.8826643,21.996642 C28.8826643,21.3205731 28.8407587,20.76651 28.7569475,20.3344527 C28.6731363,19.9023953 28.5617556,19.5632415 28.4228055,19.3169913 C28.2838553,19.070741 28.1261579,18.9017238 27.9497133,18.8099396 C27.7732686,18.7181554 27.5946184,18.6722633 27.4137627,18.6722633 C27.2329069,18.6722633 27.0553595,18.7181554 26.8811204,18.8099396 C26.7068813,18.9017238 26.5524923,19.070741 26.4179532,19.3169913 C26.2834142,19.5632415 26.1753419,19.9023953 26.0937362,20.3344527 C26.0121306,20.76651 25.9713277,21.3205731 25.9713277,21.996642 C25.9713277,22.6771883 26.0121306,23.2323707 26.0937362,23.6621894 C26.1753419,24.0920081 26.2834142,24.4311619 26.4179532,24.6796508 C26.5524923,24.9281397 26.7068813,25.0982762 26.8811204,25.1900604 C27.0553595,25.2818446 27.2329069,25.3277367 27.4137627,25.3277367 C27.5946184,25.3277367 27.7732686,25.2818446 27.9497133,25.1900604 C28.1261579,25.0982762 28.2838553,24.9281397 28.4228055,24.6796508 C28.5617556,24.4311619 28.6731363,24.0920081 28.7569475,23.6621894 C28.8407587,23.2323707 28.8826643,22.6771883 28.8826643,21.996642 Z' id='Shape' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"}}}const Ou=e=>(0,i.jsx)(_.GVThumbnails,{...e,thumbnailComponent:Su}),xu=C.GVDebug.extend("options").extend("video"),Du=e=>{const{data:t,onChange:n,idPrefix:r,type:o}=e,a=!!e.editable&&e.editable,s=!!e.global&&e.global,l=!!e.showButtons&&e.showButtons,[c,u]=(0,y.useState)(""),[d,p]=(0,y.useState)(""),[h,f]=(0,y.useState)({}),[g,m]=(0,y.useState)({}),[v]=(0,y.useState)(t),[A,w]=(0,y.useState)(!0),C=(0,y.useRef)(null);return(0,y.useEffect)(()=>{(async()=>{w(!0);const t=`${Pf}/${o}/data`,n=`${Pf}/${o}/form`,r=`${Pf}/${o}/ui`;let i,l,c;if(s?(i=await b.GVPlatform.get().globalconfiguration.getGlobalConfiguration(t,!0),l=await b.GVPlatform.get().globalconfiguration.getGlobalConfiguration(n,!1),c=await b.GVPlatform.get().globalconfiguration.getGlobalConfiguration(r,!1)):(i=await b.GVPlatform.get().configuration.getConfiguration(t,!0),l=await b.GVPlatform.get().configuration.getConfiguration(n,!1),c=await b.GVPlatform.get().configuration.getConfiguration(r,!1)),!a&&e.listOptions){const t=JSON.parse(l);if(t.definitions){const n=e.listOptions;for(const e in n)t.definitions[e]&&(t.definitions[e].oneOf=n[e].map(e=>({const:e.value,title:e.label})))}l=JSON.stringify(t)}u(l),p(c),e.onChange({formData:a?i:v,edit:null,errorSchema:null,idSchema:null,errors:null,schema:null,uiSchema:null});try{f(JSON.parse(l))}catch(e){xu("Unable to parse schema")}try{m(JSON.parse(c))}catch(e){xu("Unable to parse ui schema")}w(!1)})().catch(console.error)},[]),A?(0,i.jsx)(_.GVLoading,{text:"Loading form..."}):(0,i.jsxs)("div",{style:{display:"flex",minHeight:a&&"400px",justifyContent:"space-between"},children:[(0,i.jsx)(_.GVErrorBoundary,{ref:C,children:(0,i.jsx)(_.GVForm,{schema:h,uiSchema:g,formData:t,onChange:n,idPrefix:`${o}${r?`-${r}`:""}`,children:(0,i.jsx)("span",{})})}),a&&(0,i.jsxs)("div",{style:{display:"inline-flex",flexDirection:"column",width:"50%",marginLeft:"5px"},children:[(0,i.jsx)("textarea",{style:{flex:1.5,color:"black",fontFamily:"'Courier New', Courier, monospace"},value:c,onChange:e=>{u(e.target.value);try{f(JSON.parse(e.target.value))}catch(e){xu("Unable to parse schema")}C.current?.resetError()}}),(0,i.jsx)("textarea",{style:{flex:.5,color:"black",fontFamily:"'Courier New', Courier, monospace"},value:d,onChange:e=>{p(e.target.value);try{m(JSON.parse(e.target.value))}catch(e){xu("Unable to parse ui schema"),C.current?.resetError()}}}),(!s||!!l)&&(0,i.jsx)(_.GVButton,{text:!0,onClick:async()=>{const e=`${Pf}/${o}/form`,n=`${Pf}/${o}/ui`,r=`${Pf}/${o}/data`;s?(await b.GVPlatform.get().globalconfiguration.updateGlobalConfiguration(e,c).catch(t=>t.response&&404===t.response.status?b.GVPlatform.get().globalconfiguration.addGlobalConfiguration(e,c):null),await b.GVPlatform.get().globalconfiguration.updateGlobalConfiguration(n,d).catch(e=>e.response&&404===e.response.status?b.GVPlatform.get().globalconfiguration.addGlobalConfiguration(n,d):null),await b.GVPlatform.get().globalconfiguration.updateGlobalConfiguration(r,t).catch(e=>e.response&&404===e.response.status?b.GVPlatform.get().globalconfiguration.addGlobalConfiguration(r,t):null)):(await b.GVPlatform.get().configuration.updateConfiguration(e,c).catch(t=>t.response&&404===t.response.status?b.GVPlatform.get().configuration.addConfiguration(e,c):null),await b.GVPlatform.get().configuration.updateConfiguration(n,d).catch(e=>e.response&&404===e.response.status?b.GVPlatform.get().configuration.addConfiguration(n,d):null),await b.GVPlatform.get().configuration.updateConfiguration(r,t).catch(e=>e.response&&404===e.response.status?b.GVPlatform.get().configuration.addConfiguration(r,t):null))},children:"Save Schemas"})]})]})};class Pu{constructor(e,t,n,r,o){this.kind=e,this.input=t,this.begin=n,this.end=r,this.file=o}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[e,t]=[1,1];for(let n=0;n<this.begin;n++)"\n"===this.input[n]?(e++,t=1):t++;return[e,t]}size(){return this.end-this.begin}}class Mu{liquidMethodMissing(e,t){}}const Tu=Object.prototype.toString,Ru=String.prototype.toLowerCase,Iu=Object.hasOwnProperty;function Fu(e){return"string"==typeof e}function ku(e){return"function"==typeof e}function Lu(e){return e&&ku(e.then)}function Bu(e){return e&&ku(e.next)&&ku(e.throw)&&ku(e.return)}function Nu(e){return Fu(e=Vu(e))?e:zu(e)?"":Ku(e)?e.map(e=>Nu(e)).join(""):String(e)}function ju(e){return Ku(e=Vu(e))?e:Fu(e)&&e.length>0?[e]:Xu(t=e)&&Symbol.iterator in t?Array.from(e):Xu(e)?Object.keys(e).map(t=>[t,e[t]]):[];var t}function Uu(e){return zu(e=Vu(e))?[]:Ku(e)?e:[e]}function Vu(e){return e instanceof Mu&&ku(e.valueOf)?e.valueOf():e}function Hu(e){return+Vu(e)||0}function Gu(e){return"number"==typeof e}function Wu(e){return e&&ku(e.toLiquid)?Wu(e.toLiquid()):e}function zu(e){return null==e}function $u(e){return void 0===e}function Ku(e){return"[object Array]"===Tu.call(e)}function Qu(e){return e&&Gu(e.length)}function qu(e,t){e=e||{};for(const n in e)if(Iu.call(e,n)&&!1===t(e[n],n,e))break;return e}function Yu(e){return e[e.length-1]}function Xu(e){const t=typeof e;return null!==e&&("object"===t||"function"===t)}function Zu(e,t,n=1){const r=[];for(let o=e;o<t;o+=n)r.push(o);return r}function Ju(e,t,n=" "){return ed(e,t,n,(e,t)=>t+e)}function ed(e,t,n,r){let o=t-(e=String(e)).length;for(;o-- >0;)e=r(e,n);return e}function td(e){return e}function nd(e,t){return zu(e)&&zu(t)?0:zu(e)?1:zu(t)||e<t?-1:e>t?1:0}function rd(e,t){return zu(e)&&zu(t)?0:zu(e)?1:zu(t)||(e=Ru.call(e))<(t=Ru.call(t))?-1:e>t?1:0}function od(e){return function(...t){return e.call(this,...t.map(Vu))}}function id(e){return function(...t){return e.call(this,...t.map(Hu))}}function*ad(e){const t=new Set;for(const n of e){const e=JSON.stringify(n);t.has(e)||(t.add(e),yield n)}}const sd="__liquidClass__";class ld extends Error{constructor(e,t){super("string"==typeof e?e:e.message),this.context="","string"!=typeof e&&Object.defineProperty(this,"originalError",{value:e,enumerable:!1}),Object.defineProperty(this,"token",{value:t,enumerable:!1}),Object.defineProperty(this,sd,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:md(this.token),enumerable:!1}),this.message=function(e,t){t.file&&(e+=`, file:${t.file}`);const[n,r]=t.getPosition();return e+`, line:${n}, col:${r}`}(this.message,this.token),this.stack=this.message+"\n"+this.context+"\n"+this.stack,this.originalError&&(this.stack+="\nFrom "+this.originalError.stack)}static is(e){return"LiquidError"===(null==e?void 0:e[sd])}}class cd extends ld{constructor(e,t){super(e,t),this.name="TokenizationError",super.update()}}class ud extends ld{constructor(e,t){super(e,t),this.name="ParseError",this.message=e.message,super.update()}}class dd extends ld{constructor(e,t){super(e,t.token),this.name="RenderError",this.message=e.message,super.update()}static is(e){return"RenderError"===e.name}}class pd extends ld{constructor(e){super(e[0],e[0].token),this.errors=e,this.name="LiquidErrors";const t=e.length>1?"s":"";this.message=`${e.length} error${t} found`,super.update()}static is(e){return"LiquidErrors"===e.name}}class hd extends ld{constructor(e,t){super(e,t),this.name="UndefinedVariableError",this.message=e.message,super.update()}}class fd extends Error{constructor(e){super(`undefined variable: ${e}`),this.name="InternalUndefinedVariableError",this.variableName=e}}class gd extends Error{constructor(e){super(e),this.name="AssertionError",this.message=e+""}}function md(e){const[t,n]=e.getPosition(),r=e.input.split("\n"),o=Math.max(t-2,1),i=Math.min(t+3,r.length);return Zu(o,i+1).map(e=>{let o=`${e===t?">> ":"   "}${Ju(String(e),String(i).length)}| `;const a=e===t?"\n"+Ju("^",n+o.length):"";return o+=r[e-1],o+=a,o}).join("\n")}const vd=[0,0,0,0,0,0,0,0,0,20,4,4,4,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,2,8,0,0,0,0,8,0,0,0,64,0,65,0,0,33,33,33,33,33,33,33,33,33,33,0,0,2,2,2,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function yd(e){const t=e.charCodeAt(0);return t>=128?!vd[t]:!!(1&vd[t])}function Ad(e,t){if(!e){const n="function"==typeof t?t():t||`expect ${e} to be true`;throw new gd(n)}}function wd(e,t=`unexpected ${JSON.stringify(e)}`){Ad(!e,t)}vd[160]=vd[5760]=vd[6158]=vd[8192]=vd[8193]=vd[8194]=vd[8195]=vd[8196]=vd[8197]=vd[8198]=vd[8199]=vd[8200]=vd[8201]=vd[8202]=vd[8232]=vd[8233]=vd[8239]=vd[8287]=vd[12288]=4,vd[8220]=vd[8221]=128;class bd extends Mu{equals(e){return!(e instanceof bd||(Fu(e=Vu(e))||Ku(e)?0!==e.length:!Xu(e)||0!==Object.keys(e).length))}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return""}static is(e){return e instanceof bd}}class _d extends bd{equals(e){return!1===e||!!zu(Vu(e))||(Fu(e)?/^\s*$/.test(e):super.equals(e))}static is(e){return e instanceof _d}}class Cd extends Mu{constructor(e,t,n){super(),this.i=0,this.length=e,this.name=`${n}-${t}`}next(){this.i++}index0(){return this.i}index(){return this.i+1}first(){return 0===this.i}last(){return this.i===this.length-1}rindex(){return this.length-this.i}rindex0(){return this.length-this.i-1}valueOf(){return JSON.stringify(this)}}class Ed{constructor(){this.buffer=""}write(e){this.buffer+=Nu(e)}}class Sd{constructor(){throw this.buffer="",this.stream=null,new Error("streaming not supported in browser")}}class Od{constructor(){this.buffer=""}write(e){"string"!=typeof(e=Vu(e))&&""===this.buffer?this.buffer=e:this.buffer=Nu(this.buffer)+Nu(e)}}class xd extends Mu{constructor(e=()=>""){super(),this.superBlockRender=e}*super(){const e=new Ed;return yield this.superBlockRender(e),e.buffer}}function Dd(e){return e&&ku(e.equals)&&ku(e.gt)&&ku(e.geq)&&ku(e.lt)&&ku(e.leq)}const Pd=new class extends Mu{equals(e){return zu(Vu(e))}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return null}},Md={true:!0,false:!1,nil:Pd,null:Pd,empty:new bd,blank:new _d};function Td(e){const t={};for(const[n,r]of Object.entries(e)){let e=t;for(let t=0;t<n.length;t++){const r=n[t];e[r]=e[r]||{},t===n.length-1&&yd(n[t])&&(e[r].needBoundary=!0),e=e[r]}e.data=r,e.end=!0}return t}var Rd=function(){return Rd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Rd.apply(this,arguments)};function Id(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function Fd(e,t){const n=t||e;return(t,...r)=>t?n(...r):e(...r)}function kd(e){return Id(this,void 0,void 0,function*(){if(!Bu(e))return e;let t,n=!1,r="next";do{const o=e[r](t);n=o.done,t=o.value,r="next";try{Bu(t)&&(t=kd(t)),Lu(t)&&(t=yield t)}catch(e){r="throw",t=e}}while(!n);return t})}function Ld(e){if(!Bu(e))return e;let t,n=!1,r="next";do{const o=e[r](t);if(n=o.done,t=o.value,r="next",Bu(t))try{t=Ld(t)}catch(e){r="throw",t=e}}while(!n);return t}const Bd=/%([-_0^#:]+)?(\d+)?([EO])?(.)/;function Nd(e){const t=function(e){const t=e.getFullYear();return!(3&t||!(t%100||t%400==0&&t))}(e)?29:28;return[31,t,31,30,31,30,31,31,30,31,30,31]}function jd(e){let t=0;for(let n=0;n<e.getMonth();++n)t+=Nd(e)[n];return t+e.getDate()}function Ud(e,t){const n=jd(e)+(t-e.getDay()),r=7-new Date(e.getFullYear(),0,1).getDay()+t;return String(Math.floor((n-r)/7)+1)}const Vd={d:2,e:2,H:2,I:2,j:3,k:2,l:2,L:3,m:2,M:2,S:2,U:2,W:2},Hd=new Set("aAbBceklpP");function Gd(e,t){const n=Math.abs(e.getTimezoneOffset()),r=Math.floor(n/60),o=n%60;return(e.getTimezoneOffset()>0?"-":"+")+Ju(r,2,"0")+(t.flags[":"]?":":"")+Ju(o,2,"0")}const Wd={a:e=>e.getShortWeekdayName(),A:e=>e.getLongWeekdayName(),b:e=>e.getShortMonthName(),B:e=>e.getLongMonthName(),c:e=>e.toLocaleString(),C:e=>function(e){return parseInt(e.getFullYear().toString().substring(0,2),10)}(e),d:e=>e.getDate(),e:e=>e.getDate(),H:e=>e.getHours(),I:e=>String(e.getHours()%12||12),j:e=>jd(e),k:e=>e.getHours(),l:e=>String(e.getHours()%12||12),L:e=>e.getMilliseconds(),m:e=>e.getMonth()+1,M:e=>e.getMinutes(),N:(e,t)=>{const n=Number(t.width)||9;return function(e,t,n=" "){return ed(e,t,n,(e,t)=>e+t)}(String(e.getMilliseconds()).slice(0,n),n,"0")},p:e=>e.getHours()<12?"AM":"PM",P:e=>e.getHours()<12?"am":"pm",q:e=>function(e){const t=e.getDate();if([11,12,13].includes(t))return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(e),s:e=>Math.round(e.getTime()/1e3),S:e=>e.getSeconds(),u:e=>e.getDay()||7,U:e=>Ud(e,0),w:e=>e.getDay(),W:e=>Ud(e,1),x:e=>e.toLocaleDateString(),X:e=>e.toLocaleTimeString(),y:e=>e.getFullYear().toString().slice(2,4),Y:e=>e.getFullYear(),z:Gd,Z:(e,t)=>e.getTimeZoneName()||Gd(e,t),t:()=>"\t",n:()=>"\n","%":()=>"%"};function zd(e,t){let n,r="",o=t;for(;n=Bd.exec(o);)r+=o.slice(0,n.index),o=o.slice(n.index+n[0].length),r+=$d(e,n);return r+o}function $d(e,t){const[n,r="",o,i,a]=t,s=Wd[a];if(!s)return n;const l={};for(const e of r)l[e]=!0;let c=String(s(e,{flags:l,width:o,modifier:i})),u=Hd.has(a)?" ":"0",d=o||Vd[a]||0;var p;return l["^"]?c=c.toUpperCase():l["#"]&&(p=c,c=[...p].some(e=>e>="a"&&e<="z")?p.toUpperCase():p.toLowerCase()),l._?u=" ":l[0]&&(u="0"),l["-"]&&(d=0),Ju(c,d,u)}function Kd(){return"undefined"!=typeof Intl?Intl.DateTimeFormat:void 0}Wd.h=Wd.b;const Qd=/([zZ]|([+-])(\d{2}):?(\d{2}))$/,qd=["January","February","March","April","May","June","July","August","September","October","November","December"],Yd=qd.map(e=>e.slice(0,3)),Xd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Zd=Xd.map(e=>e.slice(0,3));class Jd{constructor(e,t,n){this.locale=t,this.DateTimeFormat=Kd(),this.date=new Date(e),this.timezoneFixed=void 0!==n,void 0===n&&(n=this.date.getTimezoneOffset()),this.timezoneOffset=Fu(n)?Jd.getTimezoneOffset(n,this.date):n,this.timezoneName=Fu(n)?n:"";const r=6e4*(this.date.getTimezoneOffset()-this.timezoneOffset),o=this.date.getTime()+r;this.displayDate=new Date(o)}getTime(){return this.displayDate.getTime()}getMilliseconds(){return this.displayDate.getMilliseconds()}getSeconds(){return this.displayDate.getSeconds()}getMinutes(){return this.displayDate.getMinutes()}getHours(){return this.displayDate.getHours()}getDay(){return this.displayDate.getDay()}getDate(){return this.displayDate.getDate()}getMonth(){return this.displayDate.getMonth()}getFullYear(){return this.displayDate.getFullYear()}toLocaleString(e,t){return(null==t?void 0:t.timeZone)?this.date.toLocaleString(e,t):this.displayDate.toLocaleString(e,t)}toLocaleTimeString(e){return this.displayDate.toLocaleTimeString(e)}toLocaleDateString(e){return this.displayDate.toLocaleDateString(e)}getTimezoneOffset(){return this.timezoneOffset}getTimeZoneName(){return this.timezoneFixed?this.timezoneName:this.DateTimeFormat?this.DateTimeFormat().resolvedOptions().timeZone:void 0}getLongMonthName(){var e;return null!==(e=this.format({month:"long"}))&&void 0!==e?e:qd[this.getMonth()]}getShortMonthName(){var e;return null!==(e=this.format({month:"short"}))&&void 0!==e?e:Yd[this.getMonth()]}getLongWeekdayName(){var e;return null!==(e=this.format({weekday:"long"}))&&void 0!==e?e:Xd[this.displayDate.getDay()]}getShortWeekdayName(){var e;return null!==(e=this.format({weekday:"short"}))&&void 0!==e?e:Zd[this.displayDate.getDay()]}valid(){return!isNaN(this.getTime())}format(e){return this.DateTimeFormat&&this.DateTimeFormat(this.locale,e).format(this.displayDate)}static createDateFixedToTimezone(e,t){const n=e.match(Qd);if(n&&"Z"===n[1])return new Jd(+new Date(e),t,0);if(n&&n[2]&&n[3]&&n[4]){const[,,r,o,i]=n,a=("+"===r?-1:1)*(60*parseInt(o,10)+parseInt(i,10));return new Jd(+new Date(e),t,a)}return new Jd(e,t)}static getTimezoneOffset(e,t){const n=t.toLocaleString("en-US",{timeZone:e}),r=t.toLocaleString("en-US",{timeZone:"UTC"}),o=new Date(n);return(+new Date(r)-+o)/6e4}}class ep{constructor(e,t){this.base=0,this.message=`${e} limit exceeded`,this.limit=t}use(e){+e>0&&(Ad(this.base+ +e<=this.limit,this.message),this.base+=+e)}check(e){+e>0&&Ad(+e<=this.limit,this.message)}}class tp extends Pu{constructor(e,[t,n],r,o,i,a,s,l){super(e,r,o,i,l),this.trimLeft=!1,this.trimRight=!1;const c="-"===r[t],u="-"===r[n-1];let d=c?t+1:t,p=u?n-1:n;for(;d<p&&4&vd[r.charCodeAt(d)];)d++;for(;p>d&&4&vd[r.charCodeAt(p-1)];)p--;this.contentRange=[d,p],this.trimLeft=c||a,this.trimRight=u||s}get content(){return this.input.slice(this.contentRange[0],this.contentRange[1])}}class np extends tp{constructor(e,t,n,r,o){const{trimTagLeft:i,trimTagRight:a,tagDelimiterLeft:s,tagDelimiterRight:l}=r,[c,u]=[t+s.length,n-l.length];super(vh.Tag,[c,u],e,t,n,i,a,o),this.tokenizer=new Qp(e,r.operators,o,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal tag syntax, tag name expected"),this.tokenizer.skipBlank(),this.args=this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}}class rp extends tp{constructor(e,t,n,r,o){const{trimOutputLeft:i,trimOutputRight:a,outputDelimiterLeft:s,outputDelimiterRight:l}=r,c=[t+s.length,n-l.length];super(vh.Output,c,e,t,n,i,a,o)}}class op extends Pu{constructor(e,t,n,r){super(vh.HTML,e,t,n,r),this.input=e,this.begin=t,this.end=n,this.file=r,this.trimLeft=0,this.trimRight=0}getContent(){return this.input.slice(this.begin+this.trimLeft,this.end-this.trimRight)}}class ip extends Pu{constructor(e,t,n,r){super(vh.Number,e,t,n,r),this.input=e,this.begin=t,this.end=n,this.file=r,this.content=Number(this.getText())}}class ap extends Pu{constructor(e,t,n,r){super(vh.Word,e,t,n,r),this.input=e,this.begin=t,this.end=n,this.file=r,this.content=this.getText()}}class sp extends Pu{constructor(e,t,n,r){super(vh.Literal,e,t,n,r),this.input=e,this.begin=t,this.end=n,this.file=r,this.literal=this.getText(),this.content=Md[this.literal]}}const lp={"==":2,"!=":2,">":2,"<":2,">=":2,"<=":2,contains:2,not:1,and:0,or:0},cp={"==":0,"!=":0,">":0,"<":0,">=":0,"<=":0,contains:0,not:1,and:0,or:0};class up extends Pu{constructor(e,t,n,r){super(vh.Operator,e,t,n,r),this.input=e,this.begin=t,this.end=n,this.file=r,this.operator=this.getText()}getPrecedence(){const e=this.getText();return e in lp?lp[e]:1}}class dp extends Pu{constructor(e,t,n,r,o,i){super(vh.PropertyAccess,n,r,o,i),this.variable=e,this.props=t}}class pp extends Pu{constructor(e,t,n,r,o,i){super(vh.Filter,n,r,o,i),this.name=e,this.args=t}}class hp extends Pu{constructor(e,t,n,r,o,i){super(vh.Hash,e,t,n,i),this.input=e,this.begin=t,this.end=n,this.name=r,this.value=o,this.file=i}}const fp=/[\da-fA-F]/,gp=/[0-7]/,mp={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v"};function vp(e){const t=e.charCodeAt(0);return t>=97?t-87:t>=65?t-55:t-48}class yp extends Pu{constructor(e,t,n,r){super(vh.Quoted,e,t,n,r),this.input=e,this.begin=t,this.end=n,this.file=r,this.content=function(e){let t="";for(let n=1;n<e.length-1;n++)if("\\"===e[n])if(void 0!==mp[e[n+1]])t+=mp[e[++n]];else if("u"===e[n+1]){let r=0,o=n+2;for(;o<=n+5&&fp.test(e[o]);)r=16*r+vp(e[o++]);n=o-1,t+=String.fromCharCode(r)}else if(gp.test(e[n+1])){let r=n+1,o=0;for(;r<=n+3&&gp.test(e[r]);)o=8*o+vp(e[r++]);n=r-1,t+=String.fromCharCode(o)}else t+=e[++n];else t+=e[n];return t}(this.getText())}}class Ap extends Pu{constructor(e,t,n,r,o,i){super(vh.Range,e,t,n,i),this.input=e,this.begin=t,this.end=n,this.lhs=r,this.rhs=o,this.file=i}}class wp extends tp{constructor(e,t,n,r,o){super(vh.Tag,[t,n],e,t,n,!1,!1,o),this.tokenizer=new Qp(e,r.operators,o,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal liquid tag syntax"),this.tokenizer.skipBlank()}get args(){return this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}}class bp extends Pu{constructor(e,t,n,r,o,i){super(vh.FilteredValue,n,r,o,i),this.initial=e,this.filters=t,this.input=n,this.begin=r,this.end=o,this.file=i}}const _p={now:()=>Date.now()};function Cp(){return"object"==typeof c.g&&c.g.performance||"object"==typeof window&&window.performance||_p}class Ep{renderTemplatesToNodeStream(e,t){const n=new Sd;return Promise.resolve().then(()=>kd(this.renderTemplates(e,t,n))).then(()=>n.end(),e=>n.error(e)),n.stream}*renderTemplates(e,t,n){n||(n=t.opts.keepOutputType?new Od:new Ed);const r=[];for(const o of e){t.renderLimit.check(Cp().now());try{const e=yield o.render(t,n);if(e&&n.write(e),t.breakCalled||t.continueCalled)break}catch(e){const n=ld.is(e)?e:new dd(e,o);if(!t.opts.catchAllErrors)throw n;r.push(n)}}if(r.length)throw new pd(r);return n.buffer}}class Sp{constructor(e){this.postfix=[...xp(e)]}*evaluate(e,t){Ad(e,"unable to evaluate: context not defined");const n=[];for(const r of this.postfix)if(_h(r)){const t=n.pop();let o;if(1===cp[r.operator])o=yield e.opts.operators[r.operator](t,e);else{const i=n.pop();o=yield e.opts.operators[r.operator](i,t,e)}n.push(o)}else n.push(yield Op(r,e,t));return n[0]}valid(){return!!this.postfix.length}}function*Op(e,t,n=!1){if(e)return"content"in e?e.content:xh(e)?yield function*(e,t,n){const r=[];for(const n of e.props)r.push(yield Op(n,t,!1));try{if(e.variable){const o=yield Op(e.variable,t,n);return yield t._getFromScope(o,r)}return yield t._get(r)}catch(t){if(n&&"InternalUndefinedVariableError"===t.name)return null;throw new hd(t,e)}}(e,t,n):Ph(e)?yield function*(e,t){const n=yield Op(e.lhs,t),r=yield Op(e.rhs,t);return t.memoryLimit.use(r-n+1),Zu(+n,+r+1)}(e,t):void 0}function*xp(e){const t=[];for(const n of e)if(_h(n)){for(;t.length&&t[t.length-1].getPrecedence()>n.getPrecedence();)yield t.pop();t.push(n)}else yield n;for(;t.length;)yield t.pop()}function Dp(e,t){return!Pp(e,t)}function Pp(e,t){return e=Vu(e),t.opts.jsTruthy?!e:!1===e||null==e}const Mp={"==":Tp,"!=":(e,t)=>!Tp(e,t),">":(e,t)=>Dd(e)?e.gt(t):Dd(t)?t.lt(e):Vu(e)>Vu(t),"<":(e,t)=>Dd(e)?e.lt(t):Dd(t)?t.gt(e):Vu(e)<Vu(t),">=":(e,t)=>Dd(e)?e.geq(t):Dd(t)?t.leq(e):Vu(e)>=Vu(t),"<=":(e,t)=>Dd(e)?e.leq(t):Dd(t)?t.geq(e):Vu(e)<=Vu(t),contains:(e,t)=>Ku(e=Vu(e))?e.some(e=>Tp(e,t)):!!ku(null==e?void 0:e.indexOf)&&e.indexOf(Vu(t))>-1,not:(e,t)=>Pp(Vu(e),t),and:(e,t,n)=>Dp(Vu(e),n)&&Dp(Vu(t),n),or:(e,t,n)=>Dp(Vu(e),n)||Dp(Vu(t),n)};function Tp(e,t){return Dd(e)?e.equals(t):Dd(t)?t.equals(e):(e=Vu(e),t=Vu(t),Ku(e)?Ku(t)&&function(e,t){return e.length===t.length&&!e.some((e,n)=>!Tp(e,t[n]))}(e,t):e===t)}class Rp{constructor(e,t,n,r){this.key=e,this.value=t,this.next=n,this.prev=r}}class Ip{constructor(e,t=0){this.limit=e,this.size=t,this.cache={},this.head=new Rp("HEAD",null,null,null),this.tail=new Rp("TAIL",null,null,null),this.head.next=this.tail,this.tail.prev=this.head}write(e,t){if(this.cache[e])this.cache[e].value=t;else{const n=new Rp(e,t,this.head.next,this.head);this.head.next.prev=n,this.head.next=n,this.cache[e]=n,this.size++,this.ensureLimit()}}read(e){if(!this.cache[e])return;const{value:t}=this.cache[e];return this.remove(e),this.write(e,t),t}remove(e){const t=this.cache[e];t.prev.next=t.next,t.next.prev=t.prev,delete this.cache[e],this.size--}clear(){this.head.next=this.tail,this.tail.prev=this.head,this.size=0,this.cache={}}ensureLimit(){this.size>this.limit&&this.remove(this.tail.prev.key)}}function Fp(e,t){const n=document.createElement("base");n.href=e;const r=document.getElementsByTagName("head")[0];r.insertBefore(n,r.firstChild);const o=document.createElement("a");o.href=t;const i=o.href;return r.removeChild(n),i}var kp=Object.freeze({__proto__:null,resolve:function(e,t,n){return e.length&&"/"!==Yu(e)&&(e+="/"),Fp(e,t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/,(e,t,r)=>{const o=r.split("/").pop();return/\.\w+$/.test(o)?e:t+r+n})},readFile:function(e){return Id(this,void 0,void 0,function*(){return new Promise((t,n)=>{const r=new XMLHttpRequest;r.onload=()=>{r.status>=200&&r.status<300?t(r.responseText):n(new Error(r.statusText))},r.onerror=()=>{n(new Error("An error occurred whilst receiving the response."))},r.open("GET",e),r.send()})})},readFileSync:function(e){const t=new XMLHttpRequest;if(t.open("GET",e,!1),t.send(),t.status<200||t.status>=300)throw new Error(t.statusText);return t.responseText},exists:function(e){return Id(this,void 0,void 0,function*(){return!0})},existsSync:function(e){return!0},dirname:function(e){return Fp(e,".")},sep:"/"});function Lp(e,t=0){return JSON.stringify(e,null,t)}var Bp={default:function(e,t,...n){return Ku(e=Vu(e))||Fu(e)?e.length?e:t:(!1!==e||!new Map(n).get("allow_false"))&&(Pp(e,this.context)?t:e)},raw:{raw:!0,handler:td},jsonify:Lp,to_integer:function(e){return Number(e)},json:Lp,inspect:function(e,t=0){const n=[];return JSON.stringify(e,function(e,t){if("object"!=typeof t||null===t)return t;for(;n.length>0&&n[n.length-1]!==this;)n.pop();return n.includes(t)?"[Circular]":(n.push(t),t)},t)}};const Np={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},jp={"&amp;":"&","&lt;":"<","&gt;":">","&#34;":'"',"&#39;":"'"};function Up(e){return e=Nu(e),this.context.memoryLimit.use(e.length),e.replace(/&|<|>|"|'/g,e=>Np[e])}function Vp(e){return e=Nu(e),this.context.memoryLimit.use(e.length),e.replace(/&(amp|lt|gt|#34|#39);/g,e=>jp[e])}var Hp=Object.freeze({__proto__:null,escape:Up,xml_escape:function(e){return Up.call(this,e)},escape_once:function(e){return Up.call(this,Vp.call(this,e))},newline_to_br:function(e){const t=Nu(e);return this.context.memoryLimit.use(t.length),t.replace(/\r?\n/gm,"<br />\n")},strip_html:function(e){const t=Nu(e);return this.context.memoryLimit.use(t.length),t.replace(/<script[\s\S]*?<\/script>|<style[\s\S]*?<\/style>|<.*?>|<!--[\s\S]*?-->/g,"")}});class Gp{constructor(e){this.mapping=e,this.sep="/"}exists(e){return Id(this,void 0,void 0,function*(){return this.existsSync(e)})}existsSync(e){return!zu(this.mapping[e])}readFile(e){return Id(this,void 0,void 0,function*(){return this.readFileSync(e)})}readFileSync(e){const t=this.mapping[e];if(zu(t))throw new Error(`ENOENT: ${e}`);return t}dirname(e){const t=e.split(this.sep);return t.pop(),t.join(this.sep)}resolve(e,t,n){if(t+=n,"."===e)return t;const r=e.split(/\/+/);for(const e of t.split(this.sep))"."!==e&&""!==e&&(".."===e?(r.length>1||""!==r[0])&&r.pop():r.push(e));return r.join(this.sep)}}const Wp={root:["."],layouts:["."],partials:["."],relativeReference:!0,jekyllInclude:!1,keyValueSeparator:":",cache:void 0,extname:"",fs:kp,dynamicPartials:!0,jsTruthy:!1,dateFormat:"%A, %B %-e, %Y at %-l:%M %P %z",locale:"",trimTagRight:!1,trimTagLeft:!1,trimOutputRight:!1,trimOutputLeft:!1,greedy:!0,tagDelimiterLeft:"{%",tagDelimiterRight:"%}",outputDelimiterLeft:"{{",outputDelimiterRight:"}}",preserveTimezones:!1,strictFilters:!1,strictVariables:!1,ownPropertyOnly:!0,lenientIf:!1,globals:{},keepOutputType:!1,operators:Mp,memoryLimit:1/0,parseLimit:1/0,renderLimit:1/0};function zp(e){let t=[];return Ku(e)&&(t=e),Fu(e)&&(t=[e]),t}function $p(e,t){if(!e||!Ch(e))return;const n=t?4:16;for(;vd[e.input.charCodeAt(e.end-1-e.trimRight)]&n;)e.trimRight++}function Kp(e,t){if(!e||!Ch(e))return;const n=t?4:16;for(;vd[e.input.charCodeAt(e.begin+e.trimLeft)]&n;)e.trimLeft++;"\n"===e.input.charAt(e.begin+e.trimLeft)&&e.trimLeft++}class Qp{constructor(e,t=Wp.operators,n,r){this.input=e,this.file=n,this.rawBeginAt=-1,this.p=r?r[0]:0,this.N=r?r[1]:e.length,this.opTrie=Td(t),this.literalTrie=Td(Md)}readExpression(){return new Sp(this.readExpressionTokens())}*readExpressionTokens(){for(;this.p<this.N;){const e=this.readOperator();if(e){yield e;continue}const t=this.readValue();if(!t)return;yield t}}readOperator(){this.skipBlank();const e=this.matchTrie(this.opTrie);if(-1!==e)return new up(this.input,this.p,this.p=e,this.file)}matchTrie(e){let t,n=e,r=this.p;for(;n[this.input[r]]&&r<this.N;)n=n[this.input[r++]],n.end&&(t=n);return t?t.needBoundary&&yd(this.peek(r-this.p))?-1:r:-1}readFilteredValue(){const e=this.p,t=this.readExpression();this.assert(t.valid(),`invalid value expression: ${this.snapshot()}`);const n=this.readFilters();return new bp(t,n,this.input,e,this.p,this.file)}readFilters(){const e=[];for(;;){const t=this.readFilter();if(!t)return e;e.push(t)}}readFilter(){if(this.skipBlank(),this.end())return null;this.assert("|"===this.read(),'expected "|" before filter');const e=this.readIdentifier();if(!e.size())return this.assert(this.end(),"expected filter name"),null;const t=[];if(this.skipBlank(),":"===this.peek())do{++this.p;const e=this.readFilterArg();e&&t.push(e),this.skipBlank(),this.assert(this.end()||","===this.peek()||"|"===this.peek(),()=>`unexpected character ${this.snapshot()}`)}while(","===this.peek());else if("|"!==this.peek()&&!this.end())throw this.error('expected ":" after filter name');return new pp(e.getText(),t,this.input,e.begin,this.p,this.file)}readFilterArg(){const e=this.readValue();if(!e)return;if(this.skipBlank(),":"!==this.peek())return e;++this.p;const t=this.readValue();return[e.getText(),t]}readTopLevelTokens(e=Wp){const t=[];for(;this.p<this.N;){const n=this.readTopLevelToken(e);t.push(n)}return function(e,t){let n=!1;for(let r=0;r<e.length;r++){const o=e[r];bh(o)&&(!n&&o.trimLeft&&$p(e[r-1],t.greedy),Eh(o)&&("raw"===o.name?n=!0:"endraw"===o.name&&(n=!1)),!n&&o.trimRight&&Kp(e[r+1],t.greedy))}}(t,e),t}readTopLevelToken(e){const{tagDelimiterLeft:t,outputDelimiterLeft:n}=e;return this.rawBeginAt>-1?this.readEndrawOrRawContent(e):this.match(t)?this.readTagToken(e):this.match(n)?this.readOutputToken(e):this.readHTMLToken([t,n])}readHTMLToken(e){const t=this.p;for(;this.p<this.N&&!e.some(e=>this.match(e));)++this.p;return new op(this.input,t,this.p,this.file)}readTagToken(e){const{file:t,input:n}=this,r=this.p;if(-1===this.readToDelimiter(e.tagDelimiterRight))throw this.error(`tag ${this.snapshot(r)} not closed`,r);const o=new np(n,r,this.p,e,t);return"raw"===o.name&&(this.rawBeginAt=r),o}readToDelimiter(e,t=!1){for(this.skipBlank();this.p<this.N;)if(t&&8&this.peekType())this.readQuoted();else if(++this.p,this.rmatch(e))return this.p;return-1}readOutputToken(e=Wp){const{file:t,input:n}=this,{outputDelimiterRight:r}=e,o=this.p;if(-1===this.readToDelimiter(r,!0))throw this.error(`output ${this.snapshot(o)} not closed`,o);return new rp(n,o,this.p,e,t)}readEndrawOrRawContent(e){const{tagDelimiterLeft:t,tagDelimiterRight:n}=e,r=this.p;let o=this.readTo(t)-t.length;for(;this.p<this.N;)if("endraw"===this.readIdentifier().getText())for(;this.p<=this.N;){if(this.rmatch(n)){const t=this.p;return r===o?(this.rawBeginAt=-1,new np(this.input,r,t,e,this.file)):(this.p=o,new op(this.input,r,o,this.file))}if(this.rmatch(t))break;this.p++}else o=this.readTo(t)-t.length;throw this.error(`raw ${this.snapshot(this.rawBeginAt)} not closed`,r)}readLiquidTagTokens(e=Wp){const t=[];for(;this.p<this.N;){const n=this.readLiquidTagToken(e);n&&t.push(n)}return t}readLiquidTagToken(e){if(this.skipBlank(),this.end())return;const t=this.p;this.readToDelimiter("\n");const n=this.p;return new wp(this.input,t,n,e,this.file)}error(e,t=this.p){return new cd(e,new ap(this.input,t,this.N,this.file))}assert(e,t,n){if(!e)throw this.error("function"==typeof t?t():t,n)}snapshot(e=this.p){return JSON.stringify((t=this.input.slice(e,this.N)).length>32?t.slice(0,29)+"...":t);var t}readWord(){return this.readIdentifier()}readIdentifier(){this.skipBlank();const e=this.p;for(;!this.end()&&yd(this.peek());)++this.p;return new ap(this.input,e,this.p,this.file)}readNonEmptyIdentifier(){const e=this.readIdentifier();return e.size()?e:void 0}readTagName(){return this.skipBlank(),"#"===this.input[this.p]?this.input.slice(this.p,++this.p):this.readIdentifier().getText()}readHashes(e){const t=[];for(;;){const n=this.readHash(e);if(!n)return t;t.push(n)}}readHash(e){this.skipBlank(),","===this.peek()&&++this.p;const t=this.p,n=this.readNonEmptyIdentifier();if(!n)return;let r;this.skipBlank();const o=Fu(e)?e:e?"=":":";return this.peek()===o&&(++this.p,r=this.readValue()),new hp(this.input,t,this.p,n,r,this.file)}remaining(){return this.input.slice(this.p,this.N)}advance(e=1){this.p+=e}end(){return this.p>=this.N}read(){return this.input[this.p++]}readTo(e){for(;this.p<this.N;)if(++this.p,this.rmatch(e))return this.p;return-1}readValue(){this.skipBlank();const e=this.p,t=this.readLiteral()||this.readQuoted()||this.readRange()||this.readNumber(),n=this.readProperties(!t);return n.length?new dp(t,n,this.input,e,this.p):t}readScopeValue(){this.skipBlank();const e=this.p,t=this.readProperties();if(t.length)return new dp(void 0,t,this.input,e,this.p)}readProperties(e=!0){const t=[];for(;;){if("["===this.peek()){this.p++;const e=this.readValue()||new ap(this.input,this.p,this.p,this.file);this.assert(-1!==this.readTo("]"),"[ not closed"),t.push(e);continue}if(e&&!t.length){const e=this.readNonEmptyIdentifier();if(e){t.push(e);continue}}if("."===this.peek()&&"."!==this.peek(1)){this.p++;const e=this.readNonEmptyIdentifier();if(!e)break;t.push(e);continue}break}return t}readNumber(){this.skipBlank();let e=!1,t=!1,n=0;for(64&this.peekType()&&n++;this.p+n<=this.N;)if(32&this.peekType(n))t=!0,n++;else{if("."!==this.peek(n)||"."===this.peek(n+1))break;if(e||!t)return;e=!0,n++}if(t&&!yd(this.peek(n))){const e=new ip(this.input,this.p,this.p+n,this.file);return this.advance(n),e}}readLiteral(){this.skipBlank();const e=this.matchTrie(this.literalTrie);if(-1===e)return;const t=new sp(this.input,this.p,e,this.file);return this.p=e,t}readRange(){this.skipBlank();const e=this.p;if("("!==this.peek())return;++this.p;const t=this.readValueOrThrow();this.skipBlank(),this.assert("."===this.read()&&"."===this.read(),"invalid range syntax");const n=this.readValueOrThrow();return this.skipBlank(),this.assert(")"===this.read(),"invalid range syntax"),new Ap(this.input,e,this.p,t,n,this.file)}readValueOrThrow(){const e=this.readValue();return this.assert(e,()=>`unexpected token ${this.snapshot()}, value expected`),e}readQuoted(){this.skipBlank();const e=this.p;if(!(8&this.peekType()))return;++this.p;let t=!1;for(;this.p<this.N&&(++this.p,this.input[this.p-1]!==this.input[e]||t);)t?t=!1:"\\"===this.input[this.p-1]&&(t=!0);return new yp(this.input,e,this.p,this.file)}*readFileNameTemplate(e){const{outputDelimiterLeft:t}=e,n=[","," ","\r","\n","\t",t],r=new Set(n);for(;this.p<this.N&&!r.has(this.peek());)yield this.match(t)?this.readOutputToken(e):this.readHTMLToken(n)}match(e){for(let t=0;t<e.length;t++)if(e[t]!==this.input[this.p+t])return!1;return!0}rmatch(e){for(let t=0;t<e.length;t++)if(e[e.length-1-t]!==this.input[this.p-1-t])return!1;return!0}peekType(e=0){return this.p+e>=this.N?0:vd[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.p+e>=this.N?"":this.input[this.p+e]}skipBlank(){for(;4&this.peekType();)++this.p}}class qp{constructor(e,t){this.handlers={},this.stopRequested=!1,this.tokens=e,this.parseToken=t}on(e,t){return this.handlers[e]=t,this}trigger(e,t){const n=this.handlers[e];return!!n&&(n.call(this,t),!0)}start(){let e;for(this.trigger("start");!this.stopRequested&&(e=this.tokens.shift());){if(this.trigger("token",e))continue;if(Eh(e)&&this.trigger(`tag:${e.name}`,e))continue;const t=this.parseToken(e,this.tokens);this.trigger("template",t)}return this.stopRequested||this.trigger("end"),this}stop(){return this.stopRequested=!0,this}}class Yp{constructor(e){this.token=e}}class Xp extends Yp{constructor(e,t,n){super(e),this.name=e.name,this.liquid=n,this.tokenizer=e.tokenizer}}class Zp{constructor(e,t){this.hash={};const n=e instanceof Qp?e:new Qp(e,{});for(const e of n.readHashes(t))this.hash[e.name.content]=e.value}*render(e){const t={};for(const n of Object.keys(this.hash))t[n]=void 0===this.hash[n]||(yield Op(this.hash[n],e));return t}}function Jp(e){return Ku(e)}class eh{constructor(e,t,n){this.token=e,this.name=e.name,this.handler=ku(t)?t:ku(null==t?void 0:t.handler)?t.handler:td,this.raw=!ku(t)&&!!(null==t?void 0:t.raw),this.args=e.args,this.liquid=n}*render(e,t){const n=[];for(const e of this.args)Jp(e)?n.push([e[0],yield Op(e[1],t)]):n.push(yield Op(e,t));return yield this.handler.apply({context:t,token:this.token,liquid:this.liquid},[e,...n])}}class th{constructor(e,t){this.filters=[];const n="string"==typeof e?new Qp(e,t.options.operators).readFilteredValue():e;this.initial=n.initial,this.filters=n.filters.map(e=>new eh(e,this.getFilter(t,e.name),t))}*value(e,t){t=t||e.opts.lenientIf&&this.filters.length>0&&"default"===this.filters[0].name;let n=yield this.initial.evaluate(e,t);for(const t of this.filters)n=yield t.render(n,e);return n}getFilter(e,t){const n=e.filters[t];return Ad(n||!e.options.strictFilters,()=>`undefined filter: ${t}`),n}}class nh extends Yp{constructor(e,t){var n;super(e);const r=new Qp(e.input,t.options.operators,e.file,e.contentRange);this.value=new th(r.readFilteredValue(),t);const o=this.value.filters,i=t.options.outputEscape;if(!(null===(n=o[o.length-1])||void 0===n?void 0:n.raw)&&i){const e=new pp(toString.call(i),[],"",0,0);o.push(new eh(e,i,t))}}*render(e,t){const n=yield this.value.value(e,!1);t.write(n)}*arguments(){yield this.value}}class rh extends Yp{constructor(e){super(e),this.str=e.getContent()}*render(e,t){t.write(this.str)}}class oh{constructor(e,t){this.segments=e,this.location=t}toString(){return gh(this.segments,!0)}toArray(){return Array.from(function*e(...t){for(const n of t)n instanceof oh?yield Array.from(e(...n.segments)):yield n}(...this.segments))}}class ih{constructor(){this.map=new Map}get(e){const t=gh([e.segments[0]]);return this.map.has(t)||this.map.set(t,[]),this.map.get(t)}has(e){return this.map.has(gh([e.segments[0]]))}push(e){this.get(e).push(e)}asObject(){return Object.fromEntries(this.map)}}const ah={partials:!0};function*sh(e,t,n){const r=new ih,o=new ih,i=new ih,a=new uh(new Set),s=new Set;function l(e,t){r.push(e);const n=t.alias(e);if(void 0!==n){const e=n.segments[0];Fu(e)&&!a.has(e)&&o.push(n)}else{const n=e.segments[0];Fu(n)&&!t.has(n)&&o.push(e)}for(const n of e.segments)n instanceof oh&&l(n,t)}function*c(e,r){if(e.arguments)for(const t of e.arguments())for(const e of dh(t))l(e,r);if(e.localScope)for(const t of e.localScope()){r.add(t.content),r.deleteAlias(t.content);const[e,n]=t.getPosition();i.push(new oh([t.content],{row:e,col:n,file:t.file}))}if(e.children)if(e.partialScope){const o=e.partialScope();if(void 0===o){for(const o of yield e.children(t,n))yield c(o,r);return}if(s.has(o.name))return;const i=new Set,a=o.isolated?new uh(i):r.push(i);for(const e of o.scope)if(Fu(e))i.add(e);else{const[t,n]=e;i.add(t);const r=Array.from(dh(n));r.length&&a.setAlias(t,r[0].segments)}for(const r of yield e.children(t,n))yield c(r,a),s.add(o.name);a.pop()}else{e.blockScope&&r.push(new Set(e.blockScope()));for(const o of yield e.children(t,n))yield c(o,r);e.blockScope&&r.pop()}}for(const t of e)yield c(t,a);return{variables:r.asObject(),globals:o.asObject(),locals:i.asObject()}}function lh(e,t={}){return kd(sh(e,Object.assign(Object.assign({},ah),t).partials,!1))}function ch(e,t={}){return Ld(sh(e,Object.assign(Object.assign({},ah),t).partials,!0))}class uh{constructor(e){this.stack=[{names:e,aliases:new Map}]}has(e){for(const t of this.stack)if(t.names.has(e))return!0;return!1}push(e){return this.stack.push({names:e,aliases:new Map}),this}pop(){var e;return null===(e=this.stack.pop())||void 0===e?void 0:e.names}add(e){this.stack[0].names.add(e)}alias(e){const t=e.segments[0];if(!Fu(t))return;const n=this.getAlias(t);return void 0!==n?new oh([...n,...e.segments.slice(1)],e.location):void 0}setAlias(e,t){this.stack[this.stack.length-1].aliases.set(e,t)}deleteAlias(e){this.stack[this.stack.length-1].aliases.delete(e)}getAlias(e){for(const t of this.stack){if(t.aliases.has(e))return t.aliases.get(e);if(t.names.has(e))return}}}function*dh(e){Mh(e)?yield*ph(e):e instanceof th&&(yield*function*(e){for(const t of e.initial.postfix)Mh(t)&&(yield*ph(t));for(const t of e.filters)for(const e of t.args)Jp(e)&&e[1]?yield*ph(e[1]):Mh(e)&&(yield*ph(e))}(e))}function*ph(e){Ph(e)?(yield*ph(e.lhs),yield*ph(e.rhs)):xh(e)&&(yield hh(e))}function hh(e){const t=[];let n=e.file;const r=e.props[0];n=n||r.file,Sh(r)||Oh(r)||Dh(r)?t.push(r.content):xh(r)&&t.push(...hh(r).segments);for(const r of e.props.slice(1))n=n||r.file,Sh(r)||Oh(r)||Dh(r)?t.push(r.content):xh(r)&&t.push(hh(r));const[o,i]=e.getPosition();return new oh(t,{row:o,col:i,file:n})}const fh=/^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;function gh(e,t=!1){const n=[],r=e[0];Fu(r)&&(!t||r.match(fh)?n.push(`${r}`):n.push(`['${r}']`));for(const t of e.slice(1))t instanceof oh?n.push(`[${gh(t.segments)}]`):Fu(t)?t.match(fh)?n.push(`.${t}`):n.push(`['${t}']`):n.push(`[${t}]`);return n.join("")}var mh,vh,yh;!function(e){e.Partials="partials",e.Layouts="layouts",e.Root="root"}(mh||(mh={}));class Ah{constructor(e){var t,n,r,o;if(this.options=e,e.relativeReference){const t=e.fs.sep;Ad(t,"`fs.sep` is required for relative reference");const n=["."+t,".."+t,"./","../"];this.shouldLoadRelative=e=>n.some(t=>e.startsWith(t))}else this.shouldLoadRelative=e=>!1;const i=e.fs;this.contains=Fd((null===(t=i.contains)||void 0===t?void 0:t.bind(i))||(()=>Id(this,void 0,void 0,function*(){return!0})),(null===(n=i.containsSync)||void 0===n?void 0:n.bind(i))||(()=>!0)),this.exists=Fd((null===(r=i.exists)||void 0===r?void 0:r.bind(i))||(()=>Id(this,void 0,void 0,function*(){return!1})),null===(o=i.existsSync)||void 0===o?void 0:o.bind(i))}*lookup(e,t,n,r){const o=this.options[t];for(const t of this.candidates(e,o,r)){let e=!1;for(const r of o)if(yield this.contains(!!n,r,t)){e=!0;break}if(e&&(yield this.exists(!!n,t)))return t}throw this.lookupError(e,o)}*candidates(e,t,n){const{fs:r,extname:o}=this.options;if(this.shouldLoadRelative(e)&&n){const t=r.resolve(this.dirname(n),e,o);yield t}for(const n of t){const t=r.resolve(n,e,o);yield t}if(void 0!==r.fallback){const t=r.fallback(e);void 0!==t&&(yield t)}}dirname(e){const t=this.options.fs;return Ad(t.dirname,"`fs.dirname` is required for relative reference"),t.dirname(e)}lookupError(e,t){const n=new Error("ENOENT");return n.message=`ENOENT: Failed to lookup "${e}" in "${t}"`,n.code="ENOENT",n}}class wh{constructor(e){var t,n;this.liquid=e,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new Ah(this.liquid.options),this.parseLimit=new ep("parse length",e.options.parseLimit),this.readFile=Fd((null===(t=this.fs.readFile)||void 0===t?void 0:t.bind(this.fs))||(()=>Id(this,void 0,void 0,function*(){throw new Error("readFile not implemented")})),null===(n=this.fs.readFileSync)||void 0===n?void 0:n.bind(this.fs))}parse(e,t){e=String(e),this.parseLimit.use(e.length);const n=new Qp(e,this.liquid.options.operators,t).readTopLevelTokens(this.liquid.options);return this.parseTokens(n)}parseTokens(e){let t;const n=[],r=[];for(;t=e.shift();)try{n.push(this.parseToken(t,e))}catch(e){if(!this.liquid.options.catchAllErrors)throw e;r.push(e)}if(r.length)throw new pd(r);return n}parseToken(e,t){try{if(Eh(e)){const n=this.liquid.tags[e.name];return Ad(n,`tag "${e.name}" not found`),new n(e,t,this.liquid,this)}return Th(e)===vh.Output?new nh(e,this.liquid):new rh(e)}catch(t){if(ld.is(t))throw t;throw new ud(t,e)}}parseStream(e){return new qp(e,(e,t)=>this.parseToken(e,t))}*_parseFileCached(e,t,n=mh.Root,r){const o=this.cache,i=this.loader.shouldLoadRelative(e)?r+","+e:n+":"+e,a=yield o.read(i);if(a)return a;const s=this._parseFile(e,t,n,r),l=t?yield s:kd(s);o.write(i,l);try{return yield l}catch(e){throw o.remove(i),e}}*_parseFile(e,t,n=mh.Root,r){const o=yield this.loader.lookup(e,n,t,r);return this.parse(yield this.readFile(!!t,o),o)}}function bh(e){return!!(Th(e)&vh.Delimited)}function _h(e){return Th(e)===vh.Operator}function Ch(e){return Th(e)===vh.HTML}function Eh(e){return Th(e)===vh.Tag}function Sh(e){return Th(e)===vh.Quoted}function Oh(e){return Th(e)===vh.Number}function xh(e){return Th(e)===vh.PropertyAccess}function Dh(e){return Th(e)===vh.Word}function Ph(e){return Th(e)===vh.Range}function Mh(e){return(1667&Th(e))>0}function Th(e){return e?e.kind:-1}!function(e){e[e.Number=1]="Number",e[e.Literal=2]="Literal",e[e.Tag=4]="Tag",e[e.Output=8]="Output",e[e.HTML=16]="HTML",e[e.Filter=32]="Filter",e[e.Hash=64]="Hash",e[e.PropertyAccess=128]="PropertyAccess",e[e.Word=256]="Word",e[e.Range=512]="Range",e[e.Quoted=1024]="Quoted",e[e.Operator=2048]="Operator",e[e.FilteredValue=4096]="FilteredValue",e[e.Delimited=12]="Delimited"}(vh||(vh={}));class Rh{constructor(e={},t=Wp,n={},{memoryLimit:r,renderLimit:o}={}){var i,a,s,l,c;this.scopes=[{}],this.registers={},this.breakCalled=!1,this.continueCalled=!1,this.sync=!!n.sync,this.opts=t,this.globals=null!==(i=n.globals)&&void 0!==i?i:t.globals,this.environments=Xu(e)?e:Object(e),this.strictVariables=null!==(a=n.strictVariables)&&void 0!==a?a:this.opts.strictVariables,this.ownPropertyOnly=null!==(s=n.ownPropertyOnly)&&void 0!==s?s:t.ownPropertyOnly,this.memoryLimit=null!=r?r:new ep("memory alloc",null!==(l=n.memoryLimit)&&void 0!==l?l:t.memoryLimit),this.renderLimit=null!=o?o:new ep("template render",Cp().now()+(null!==(c=n.renderLimit)&&void 0!==c?c:t.renderLimit))}getRegister(e,t=void 0){return this.registers[e]=this.registers[e]||t}setRegister(e,t){return this.registers[e]=t}saveRegister(...e){return e.map(e=>[e,this.getRegister(e)])}restoreRegister(e){return e.forEach(([e,t])=>this.setRegister(e,t))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((e,t)=>Rd(e,t),{})}get(e){return this.getSync(e)}getSync(e){return Ld(this._get(e))}*_get(e){const t=this.findScope(e[0]);return yield this._getFromScope(t,e)}getFromScope(e,t){return Ld(this._getFromScope(e,t))}*_getFromScope(e,t,n=this.strictVariables){Fu(t)&&(t=t.split("."));for(let r=0;r<t.length;r++)if(e=yield this.readProperty(e,t[r]),n&&$u(e))throw new fd(t.slice(0,r+1).join("."));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}spawn(e={}){return new Rh(e,this.opts,{sync:this.sync,globals:this.globals,strictVariables:this.strictVariables},{renderLimit:this.renderLimit,memoryLimit:this.memoryLimit})}findScope(e){for(let t=this.scopes.length-1;t>=0;t--){const n=this.scopes[t];if(e in n)return n}return e in this.environments?this.environments:this.globals}readProperty(e,t){if(e=Wu(e),t=Vu(t),zu(e))return e;if(Ku(e)&&t<0)return e[e.length+ +t];const n=function(e,t,n){return!n||Iu.call(e,t)||e instanceof Mu?e[t]:void 0}(e,t,this.ownPropertyOnly);return void 0===n&&e instanceof Mu?e.liquidMethodMissing(t,this):ku(n)?n.call(e):"size"===t?function(e){return Iu.call(e,"size")||void 0!==e.size?e.size:Ku(e)||Fu(e)?e.length:"object"==typeof e?Object.keys(e).length:void 0}(e):"first"===t?function(e){return Ku(e)?e[0]:e.first}(e):"last"===t?function(e){return Ku(e)?e[e.length-1]:e.last}(e):n}}!function(e){e[e.OUTPUT=0]="OUTPUT",e[e.STORE=1]="STORE"}(yh||(yh={}));const Ih=id(Math.abs),Fh=id(Math.max),kh=id(Math.min),Lh=id(Math.ceil),Bh=id((e,t,n=!1)=>n?Math.floor(e/t):e/t),Nh=id(Math.floor),jh=id((e,t)=>e-t),Uh=id((e,t)=>e+t),Vh=id((e,t)=>e%t),Hh=id((e,t)=>e*t);var Gh=Object.freeze({__proto__:null,abs:Ih,at_least:Fh,at_most:kh,ceil:Lh,divided_by:Bh,floor:Nh,minus:jh,plus:Uh,modulo:Vh,times:Hh,round:function(e,t=0){e=Hu(e),t=Hu(t);const n=Math.pow(10,t),r=e*n;return Math.sign(e)*Math.round(Math.abs(r))/n}});const Wh=/[^\p{M}\p{L}\p{Nd}]+/gu,zh={raw:/\s+/g,default:Wh,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/gu,ascii:/[^A-Za-z0-9]+/g,latin:Wh,none:null};var $h=Object.freeze({__proto__:null,url_decode:e=>decodeURIComponent(Nu(e)).replace(/\+/g," "),url_encode:e=>encodeURIComponent(Nu(e)).replace(/%20/g,"+"),cgi_escape:e=>encodeURIComponent(Nu(e)).replace(/%20/g,"+").replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),uri_escape:e=>encodeURI(Nu(e)).replace(/%5B/g,"[").replace(/%5D/g,"]"),slugify:function(e,t="default",n=!1){e=Nu(e);const r=zh[t];return r&&("latin"===t&&(e=function(e){return e.replace(/[àáâãäå]/g,"a").replace(/[æ]/g,"ae").replace(/[ç]/g,"c").replace(/[èéêë]/g,"e").replace(/[ìíîï]/g,"i").replace(/[ð]/g,"d").replace(/[ñ]/g,"n").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ß]/g,"ss").replace(/[œ]/g,"oe").replace(/[þ]/g,"th").replace(/[ẞ]/g,"SS").replace(/[Œ]/g,"OE").replace(/[Þ]/g,"TH")}(e)),e=e.replace(r,"-").replace(/^-|-$/g,"")),n?e:e.toLowerCase()}});const Kh=od(function(e,t){const n=Uu(e),r=zu(t)?" ":Nu(t),o=n.length*(1+r.length);return this.context.memoryLimit.use(o),n.join(r)}),Qh=od(e=>Qu(e)?Yu(e):""),qh=od(e=>Qu(e)?e[0]:""),Yh=od(function(e){const t=Uu(e);return this.context.memoryLimit.use(t.length),[...t].reverse()});function*Xh(e,t,n){const r=[],o=Uu(e);this.context.memoryLimit.use(o.length);for(const e of o)r.push([e,t?yield this.context._getFromScope(e,Nu(t).split("."),!1):e]);return r.sort((e,t)=>n(e[1],t[1])).map(e=>e[0])}function Zh(e,t=[]){const n=Uu(e),r=Uu(t);return this.context.memoryLimit.use(n.length+r.length),n.concat(r)}function Jh(e){return this.context.opts.jekyllWhere?t=>{return bd.is(e)?Tp(t,e):Ku(t)?(n=e,t.some(e=>Tp(e,n))):Tp(t,e);var n}:void 0===e?e=>Dp(e,this.context):t=>Tp(t,e)}function*ef(e,t,n,r){const o=[];t=Uu(t),this.context.memoryLimit.use(t.length);const i=new Qp(Nu(n)).readScopeValue();for(const e of t)o.push(yield Op(i,this.context.spawn(e)));const a=Jh.call(this,r);return t.filter((t,n)=>a(o[n])===e)}function*tf(e,t,n,r){const o=[],i=new th(Nu(r),this.liquid),a=Uu(t);this.context.memoryLimit.use(a.length);for(const t of a){this.context.push({[n]:t});const r=yield i.value(this.context);this.context.pop(),r===e&&o.push(t)}return o}function*nf(e,t,n){const r=new Qp(Nu(t)).readScopeValue(),o=Uu(e),i=Jh.call(this,n);for(let e=0;e<o.length;e++)if(i(yield Op(r,this.context.spawn(o[e]))))return[e,o[e]]}function*rf(e,t,n){const r=new th(Nu(n),this.liquid),o=Uu(e);for(let e=0;e<o.length;e++){this.context.push({[t]:o[e]});const n=yield r.value(this.context);if(this.context.pop(),n)return[e,o[e]]}}var of=Object.freeze({__proto__:null,join:Kh,last:Qh,first:qh,reverse:Yh,sort:function*(e,t){return yield*Xh.call(this,e,t,nd)},sort_natural:function*(e,t){return yield*Xh.call(this,e,t,rd)},size:e=>e&&e.length||0,map:function*(e,t){const n=[],r=Uu(e);this.context.memoryLimit.use(r.length);for(const e of r)n.push(yield this.context._getFromScope(e,Nu(t),!1));return n},sum:function*(e,t){let n=0;const r=Uu(e);for(const e of r){const r=Number(t?yield this.context._getFromScope(e,Nu(t),!1):e);n+=Number.isNaN(r)?0:r}return n},compact:function(e){const t=Uu(e);return this.context.memoryLimit.use(t.length),t.filter(e=>!zu(Vu(e)))},concat:Zh,push:function(e,t){return Zh.call(this,e,[t])},unshift:function(e,t){const n=Uu(e);this.context.memoryLimit.use(n.length);const r=[...n];return r.unshift(t),r},pop:function(e){const t=[...Uu(e)];return t.pop(),t},shift:function(e){const t=Uu(e);this.context.memoryLimit.use(t.length);const n=[...t];return n.shift(),n},slice:function(e,t,n=1){return zu(e=Vu(e))?[]:(Ku(e)||(e=Nu(e)),t=t<0?e.length+t:t,this.context.memoryLimit.use(n),e.slice(t,t+n))},where:function*(e,t,n){return yield*ef.call(this,!0,e,t,n)},reject:function*(e,t,n){return yield*ef.call(this,!1,e,t,n)},where_exp:function*(e,t,n){return yield*tf.call(this,!0,e,t,n)},reject_exp:function*(e,t,n){return yield*tf.call(this,!1,e,t,n)},group_by:function*(e,t){const n=new Map;e=ju(e);const r=new Qp(Nu(t)).readScopeValue();this.context.memoryLimit.use(e.length);for(const t of e){const e=yield Op(r,this.context.spawn(t));n.has(e)||n.set(e,[]),n.get(e).push(t)}return[...n.entries()].map(([e,t])=>({name:e,items:t}))},group_by_exp:function*(e,t,n){const r=new Map,o=new th(Nu(n),this.liquid);e=ju(e),this.context.memoryLimit.use(e.length);for(const n of e){this.context.push({[t]:n});const e=yield o.value(this.context);this.context.pop(),r.has(e)||r.set(e,[]),r.get(e).push(n)}return[...r.entries()].map(([e,t])=>({name:e,items:t}))},has:function*(e,t,n){return!!(yield*nf.call(this,e,t,n))},has_exp:function*(e,t,n){return!!(yield*rf.call(this,e,t,n))},find_index:function*(e,t,n){const r=yield*nf.call(this,e,t,n);return r?r[0]:void 0},find_index_exp:function*(e,t,n){const r=yield*rf.call(this,e,t,n);return r?r[0]:void 0},find:function*(e,t,n){const r=yield*nf.call(this,e,t,n);return r?r[1]:void 0},find_exp:function*(e,t,n){const r=yield*rf.call(this,e,t,n);return r?r[1]:void 0},uniq:function(e){return e=Uu(e),this.context.memoryLimit.use(e.length),[...new Set(e)]},sample:function(e,t=1){if(zu(e=Vu(e)))return[];Ku(e)||(e=Nu(e)),this.context.memoryLimit.use(t);const n=[...e].sort(()=>Math.random()-.5);return 1===t?n[0]:n.slice(0,t)}});function af(e,t,n){var r,o,i;const a=(null!==(r=null==e?void 0:e.length)&&void 0!==r?r:0)+(null!==(o=null==t?void 0:t.length)&&void 0!==o?o:0)+(null!==(i=null==n?void 0:n.length)&&void 0!==i?i:0);this.context.memoryLimit.use(a);const s=lf(e,this.context.opts,n);return s?zd(s,t=zu(t=Vu(t))?this.context.opts.dateFormat:Nu(t)):e}function sf(e,t,n,r){const o=lf(e,this.context.opts);if(!o)return e;if("ordinal"===n){const e=o.getDate();return zd(o,"US"===r?`${t} ${e}%q, %Y`:`${e}%q ${t} %Y`)}return zd(o,`%d ${t} %Y`)}function lf(e,t,n){let r;const o=null!=n?n:t.timezoneOffset,i=t.locale;if(!zu(e=Vu(e)))return r="now"===e||"today"===e?new Jd(Date.now(),i,o):Gu(e)?new Jd(1e3*e,i,o):Fu(e)?/^\d+$/.test(e)?new Jd(1e3*+e,i,o):t.preserveTimezones&&void 0===n?Jd.createDateFixedToTimezone(e,i):new Jd(e,i,o):new Jd(e,i,o),r.valid()?r:void 0}var cf=Object.freeze({__proto__:null,date:af,date_to_xmlschema:function(e){return af.call(this,e,"%Y-%m-%dT%H:%M:%S%:z")},date_to_rfc822:function(e){return af.call(this,e,"%a, %d %b %Y %H:%M:%S %z")},date_to_string:function(e,t,n){return sf.call(this,e,"%b",t,n)},date_to_long_string:function(e,t,n){return sf.call(this,e,"%B",t,n)}});const uf=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,df=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;var pf=Object.freeze({__proto__:null,append:function(e,t){Ad(2===arguments.length,"append expect 2 arguments");const n=Nu(e),r=Nu(t);return this.context.memoryLimit.use(n.length+r.length),n+r},prepend:function(e,t){Ad(2===arguments.length,"prepend expect 2 arguments");const n=Nu(e),r=Nu(t);return this.context.memoryLimit.use(n.length+r.length),r+n},lstrip:function(e,t){const n=Nu(e);if(this.context.memoryLimit.use(n.length),t){t=Nu(t),this.context.memoryLimit.use(t.length);for(let e=0,r=new Set(t);e<n.length;e++)if(!r.has(n[e]))return n.slice(e);return""}return n.trimStart()},downcase:function(e){const t=Nu(e);return this.context.memoryLimit.use(t.length),t.toLowerCase()},upcase:function(e){const t=Nu(e);return this.context.memoryLimit.use(t.length),Nu(t).toUpperCase()},remove:function(e,t){const n=Nu(e);return t=Nu(t),this.context.memoryLimit.use(n.length+t.length),n.split(t).join("")},remove_first:function(e,t){const n=Nu(e);return t=Nu(t),this.context.memoryLimit.use(n.length+t.length),n.replace(t,"")},remove_last:function(e,t){const n=Nu(e),r=Nu(t);this.context.memoryLimit.use(n.length+r.length);const o=n.lastIndexOf(r);return-1===o?n:n.substring(0,o)+n.substring(o+r.length)},rstrip:function(e,t){if(e=Nu(e),this.context.memoryLimit.use(e.length),t){t=Nu(t),this.context.memoryLimit.use(t.length);for(let n=e.length-1,r=new Set(t);n>=0;n--)if(!r.has(e[n]))return e.slice(0,n+1);return""}return e.trimEnd()},split:function(e,t){const n=Nu(e);this.context.memoryLimit.use(n.length);const r=n.split(Nu(t));for(;r.length&&""===r[r.length-1];)r.pop();return r},strip:function(e,t){const n=Nu(e);if(this.context.memoryLimit.use(n.length),t){const e=new Set(Nu(t));this.context.memoryLimit.use(e.size);let r=0,o=n.length-1;for(;e.has(n[r]);)r++;for(;o>=r&&e.has(n[o]);)o--;return n.slice(r,o+1)}return n.trim()},strip_newlines:function(e){const t=Nu(e);return this.context.memoryLimit.use(t.length),t.replace(/\r?\n/gm,"")},capitalize:function(e){return e=Nu(e),this.context.memoryLimit.use(e.length),e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},replace:function(e,t,n){const r=Nu(e);t=Nu(t),n=Nu(n);const o=r.split(t),i=r.length+(o.length-1)*(n.length-t.length);return this.context.memoryLimit.use(i),o.join(n)},replace_first:function(e,t,n){const r=Nu(e);return t=Nu(t),n=Nu(n),this.context.memoryLimit.use(r.length+t.length+n.length),r.replace(t,()=>n)},replace_last:function(e,t,n){const r=Nu(e),o=Nu(t),i=Nu(n);this.context.memoryLimit.use(r.length+o.length+i.length);const a=r.lastIndexOf(o);return-1===a?r:r.substring(0,a)+i+r.substring(a+o.length)},truncate:function(e,t=50,n="..."){const r=Nu(e);return n=Nu(n),this.context.memoryLimit.use(r.length+n.length),r.length<=t?e:r.substring(0,t-n.length)+n},truncatewords:function(e,t=15,n="..."){const r=Nu(e);n=Nu(n),this.context.memoryLimit.use(r.length+n.length);const o=r.split(/\s+/);t<=0&&(t=1);let i=o.slice(0,t).join(" ");return o.length>=t&&(i+=n),i},normalize_whitespace:function(e){const t=Nu(e);return this.context.memoryLimit.use(t.length),t.replace(/\s+/g," ")},number_of_words:function(e,t){const n=Nu(e);if(this.context.memoryLimit.use(n.length),!(e=n.trim()))return 0;switch(t){case"cjk":return(e.match(uf)||[]).length+(e.match(df)||[]).length;case"auto":return uf.test(e)?e.match(uf).length+(e.match(df)||[]).length:e.split(/\s+/).length;default:return e.split(/\s+/).length}},array_to_sentence_string:function(e,t="and"){switch(t=Nu(t),this.context.memoryLimit.use(e.length+t.length),e.length){case 0:return"";case 1:return e[0];case 2:return`${e[0]} ${t} ${e[1]}`;default:return`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}}}),hf=Object.freeze({__proto__:null,base64_encode:function(e){if(void 0!==Buffer&&Buffer.isBuffer(e))return this.context.memoryLimit.use(e.byteLength),e.toString("base64");const t=Nu(e);return this.context.memoryLimit.use(t.length),function(e){return btoa(String.fromCharCode(...(new TextEncoder).encode(e)))}(t)},base64_decode:function(e){const t=Nu(e);return this.context.memoryLimit.use(t.length),function(e){return(new TextDecoder).decode(Uint8Array.from(atob(e),e=>e.charCodeAt(0)))}(t)}});const ff=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Hp),Gh),$h),of),cf),pf),hf),Bp),gf=["offset","limit","reversed"];function mf(e,t,n){if(t.options.dynamicPartials){const t=e.readValue();if(e.assert(t,"illegal file path"),"none"===t.getText())return;return Sh(t)?vf(n.parse(function(e){return e.content}(t))):t}const r=[...e.readFileNameTemplate(t.options)],o=vf(n.parseTokens(r));return"none"===o?void 0:o}function vf(e){return 1===e.length&&Ch(e[0].token)?e[0].token.getContent():e}function*yf(e,t,n){return"string"==typeof e?e:Array.isArray(e)?n.renderer.renderTemplates(e,t):yield Op(e,t)}class Af extends Cd{constructor(e,t,n,r){super(e,n,r),this.length=e,this.cols=t}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return 0===this.col0()}col_last(){return this.col()===this.cols}}const wf={assign:class extends Xp{constructor(e,t,n){super(e,t,n),this.identifier=this.tokenizer.readIdentifier(),this.key=this.identifier.content,this.tokenizer.assert(this.key,"expected variable name"),this.tokenizer.skipBlank(),this.tokenizer.assert("="===this.tokenizer.peek(),'expected "="'),this.tokenizer.advance(),this.value=new th(this.tokenizer.readFilteredValue(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}*arguments(){yield this.value}*localScope(){yield this.identifier}},for:class extends Xp{constructor(e,t,n,r){super(e,t,n);const o=this.tokenizer.readIdentifier(),i=this.tokenizer.readIdentifier(),a=this.tokenizer.readValue();if(!o.size()||"in"!==i.content||!a)throw new Error(`illegal tag: ${e.getText()}`);let s;this.variable=o.content,this.collection=a,this.hash=new Zp(this.tokenizer,n.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];const l=r.parseStream(t).on("start",()=>s=this.templates).on("tag:else",e=>{wd(e.args),s=this.elseTemplates}).on("tag:endfor",e=>{wd(e.args),l.stop()}).on("template",e=>s.push(e)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});l.start()}*render(e,t){const n=this.liquid.renderer;let r=ju(yield Op(this.collection,e));if(!r.length)return void(yield n.renderTemplates(this.elseTemplates,e,t));const o="continue-"+this.variable+"-"+this.collection.getText();e.push({continue:e.getRegister(o,{})});const i=yield this.hash.render(e);e.pop(),r=(this.liquid.options.orderedFilterParameters?Object.keys(i).filter(e=>gf.includes(e)):gf.filter(e=>void 0!==i[e])).reduce((e,t)=>{return"offset"===t?(n=e,r=i.offset,n.slice(r)):"limit"===t?function(e,t){return e.slice(0,t)}(e,i.limit):function(e){return[...e].reverse()}(e);var n,r},r),e.setRegister(o,(i.offset||0)+r.length);const a={forloop:new Cd(r.length,this.collection.getText(),this.variable)};e.push(a);for(const o of r){if(a[this.variable]=o,e.continueCalled=e.breakCalled=!1,yield n.renderTemplates(this.templates,e,t),e.breakCalled)break;a.forloop.next()}e.continueCalled=e.breakCalled=!1,e.pop()}*children(){const e=this.templates.slice();return this.elseTemplates&&e.push(...this.elseTemplates),e}*arguments(){yield this.collection;for(const e of Object.values(this.hash.hash))Mh(e)&&(yield e)}blockScope(){return[this.variable,"forloop"]}},capture:class extends Xp{constructor(e,t,n,r){for(super(e,t,n),this.templates=[],this.identifier=this.readVariable(),this.variable=this.identifier.content;t.length;){const e=t.shift();if(Eh(e)&&"endcapture"===e.name)return;this.templates.push(r.parseToken(e,t))}throw new Error(`tag ${e.getText()} not closed`)}readVariable(){let e=this.tokenizer.readIdentifier();if(e.content)return e;if(e=this.tokenizer.readQuoted(),e)return e;throw this.tokenizer.error("invalid capture name")}*render(e){const t=this.liquid.renderer,n=yield t.renderTemplates(this.templates,e);e.bottom()[this.variable]=n}*children(){return this.templates}*localScope(){yield this.identifier}},case:class extends Xp{constructor(e,t,n,r){super(e,t,n),this.branches=[],this.elseTemplates=[],this.value=new th(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let o=[],i=0;const a=r.parseStream(t).on("tag:when",e=>{if(i>0)return;o=[];const t=[];for(;!e.tokenizer.end();)t.push(e.tokenizer.readValueOrThrow()),e.tokenizer.skipBlank(),","===e.tokenizer.peek()?e.tokenizer.readTo(","):e.tokenizer.readTo("or");this.branches.push({values:t,templates:o})}).on("tag:else",()=>{i++,o=this.elseTemplates}).on("tag:endcase",()=>a.stop()).on("template",e=>{o===this.elseTemplates&&1!==i||o.push(e)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});a.start()}*render(e,t){const n=this.liquid.renderer,r=Vu(yield this.value.value(e,e.opts.lenientIf));let o=!1;for(const i of this.branches)for(const a of i.values)if(Tp(r,yield Op(a,e,e.opts.lenientIf))){yield n.renderTemplates(i.templates,e,t),o=!0;break}o||(yield n.renderTemplates(this.elseTemplates,e,t))}*arguments(){yield this.value,yield*this.branches.flatMap(e=>e.values)}*children(){const e=this.branches.flatMap(e=>e.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}},comment:class extends Xp{constructor(e,t,n){for(super(e,t,n);t.length;){const e=t.shift();if(Eh(e)&&"endcomment"===e.name)return}throw new Error(`tag ${e.getText()} not closed`)}render(){}},include:class extends Xp{constructor(e,t,n,r){super(e,t,n);const{tokenizer:o}=e;this.file=mf(o,this.liquid,r),this.currentFile=e.file;const i=o.p;"with"===o.readIdentifier().content?(o.skipBlank(),":"!==o.peek()?this.withVar=o.readValue():o.p=i):o.p=i,this.hash=new Zp(o,n.options.jekyllInclude||n.options.keyValueSeparator)}*render(e,t){const{liquid:n,hash:r,withVar:o}=this,{renderer:i}=n,a=yield yf(this.file,e,n);Ad(a,()=>`illegal file path "${a}"`);const s=e.saveRegister("blocks","blockMode");e.setRegister("blocks",{}),e.setRegister("blockMode",yh.OUTPUT);const l=yield r.render(e);o&&(l[a]=yield Op(o,e));const c=yield n._parsePartialFile(a,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?{include:l}:l),yield i.renderTemplates(c,e,t),e.pop(),e.restoreRegister(s)}*children(e,t){return e&&Fu(this.file)?yield this.liquid._parsePartialFile(this.file,t,this.currentFile):[]}partialScope(){if(Fu(this.file)){let e;return this.liquid.options.jekyllInclude?e=["include"]:(e=Object.keys(this.hash.hash),this.withVar&&e.push([this.file,this.withVar])),{name:this.file,isolated:!1,scope:e}}}*arguments(){yield*Object.values(this.hash.hash).filter(Mh),Mh(this.file)&&(yield this.file),Mh(this.withVar)&&(yield this.withVar)}},render:class extends Xp{constructor(e,t,n,r){super(e,t,n);const o=this.tokenizer;for(this.file=mf(o,this.liquid,r),this.currentFile=e.file;!o.end();){o.skipBlank();const e=o.p,t=o.readIdentifier();if(("with"===t.content||"for"===t.content)&&(o.skipBlank(),":"!==o.peek())){const e=o.readValue();if(e){const n=o.p;let r;"as"===o.readIdentifier().content?r=o.readIdentifier():o.p=n,this[t.content]={value:e,alias:r&&r.content},o.skipBlank(),","===o.peek()&&o.advance();continue}}o.p=e;break}this.hash=new Zp(o,n.options.keyValueSeparator)}*render(e,t){const{liquid:n,hash:r}=this,o=yield yf(this.file,e,n);Ad(o,()=>`illegal file path "${o}"`);const i=e.spawn(),a=i.bottom();if(Rd(a,yield r.render(e)),this.with){const{value:t,alias:n}=this.with;a[n||o]=yield Op(t,e)}if(this.for){const{value:r,alias:s}=this.for,l=ju(yield Op(r,e));a.forloop=new Cd(l.length,r.getText(),s);for(const e of l){a[s]=e;const r=yield n._parsePartialFile(o,i.sync,this.currentFile);yield n.renderer.renderTemplates(r,i,t),a.forloop.next()}}else{const e=yield n._parsePartialFile(o,i.sync,this.currentFile);yield n.renderer.renderTemplates(e,i,t)}}*children(e,t){return e&&Fu(this.file)?yield this.liquid._parsePartialFile(this.file,t,this.currentFile):[]}partialScope(){if(Fu(this.file)){const e=Object.keys(this.hash.hash);if(this.with){const{value:t,alias:n}=this.with;Fu(n)?e.push([n,t]):Fu(this.file)&&e.push([this.file,t])}if(this.for){const{value:t,alias:n}=this.for;Fu(n)?e.push([n,t]):Fu(this.file)&&e.push([this.file,t])}return{name:this.file,isolated:!0,scope:e}}}*arguments(){for(const e of Object.values(this.hash.hash))Mh(e)&&(yield e);if(this.with){const{value:e}=this.with;Mh(e)&&(yield e)}if(this.for){const{value:e}=this.for;Mh(e)&&(yield e)}}},decrement:class extends Xp{constructor(e,t,n){super(e,t,n),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,t){const n=e.environments;Gu(n[this.variable])||(n[this.variable]=0),t.write(Nu(--n[this.variable]))}*localScope(){yield this.identifier}},increment:class extends Xp{constructor(e,t,n){super(e,t,n),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,t){const n=e.environments;Gu(n[this.variable])||(n[this.variable]=0);const r=n[this.variable];n[this.variable]++,t.write(Nu(r))}*localScope(){yield this.identifier}},cycle:class extends Xp{constructor(e,t,n){super(e,t,n),this.candidates=[];const r=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),r&&(":"===this.tokenizer.peek()?(this.group=r,this.tokenizer.advance()):this.candidates.push(r));!this.tokenizer.end();){const e=this.tokenizer.readValue();e&&this.candidates.push(e),this.tokenizer.readTo(",")}this.tokenizer.assert(this.candidates.length,()=>`empty candidates: "${e.getText()}"`)}*render(e,t){const n=`cycle:${yield Op(this.group,e)}:`+this.candidates.join(","),r=e.getRegister("cycle",{});let o=r[n];void 0===o&&(o=r[n]=0);const i=this.candidates[o];return o=(o+1)%this.candidates.length,r[n]=o,yield Op(i,e)}*arguments(){yield*this.candidates,this.group&&(yield this.group)}},if:class extends Xp{constructor(e,t,n,r){super(e,t,n),this.branches=[];let o=[];r.parseStream(t).on("start",()=>this.branches.push({value:new th(e.tokenizer.readFilteredValue(),this.liquid),templates:o=[]})).on("tag:elsif",e=>{Ad(!this.elseTemplates,"unexpected elsif after else"),this.branches.push({value:new th(e.tokenizer.readFilteredValue(),this.liquid),templates:o=[]})}).on("tag:else",e=>{wd(e.args),Ad(!this.elseTemplates,"duplicated else"),o=this.elseTemplates=[]}).on("tag:endif",function(e){wd(e.args),this.stop()}).on("template",e=>o.push(e)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,t){const n=this.liquid.renderer;for(const{value:r,templates:o}of this.branches)if(Dp(yield r.value(e,e.opts.lenientIf),e))return void(yield n.renderTemplates(o,e,t));yield n.renderTemplates(this.elseTemplates||[],e,t)}*children(){const e=this.branches.flatMap(e=>e.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},layout:class extends Xp{constructor(e,t,n,r){super(e,t,n),this.file=mf(this.tokenizer,this.liquid,r),this.currentFile=e.file,this.args=new Zp(this.tokenizer,n.options.keyValueSeparator),this.templates=r.parseTokens(t)}*render(e,t){const{liquid:n,args:r,file:o}=this,{renderer:i}=n;if(void 0===o)return e.setRegister("blockMode",yh.OUTPUT),void(yield i.renderTemplates(this.templates,e,t));const a=yield yf(this.file,e,n);Ad(a,()=>`illegal file path "${a}"`);const s=yield n._parseLayoutFile(a,e.sync,this.currentFile);e.setRegister("blockMode",yh.STORE);const l=yield i.renderTemplates(this.templates,e),c=e.getRegister("blocks",{});void 0===c[""]&&(c[""]=(e,t)=>t.write(l)),e.setRegister("blockMode",yh.OUTPUT),e.push(yield r.render(e)),yield i.renderTemplates(s,e,t),e.pop()}*children(e){const t=this.templates.slice();return e&&Fu(this.file)&&t.push(...yield this.liquid._parsePartialFile(this.file,!0,this.currentFile)),t}*arguments(){for(const e of Object.values(this.args.hash))Mh(e)&&(yield e);Mh(this.file)&&(yield this.file)}partialScope(){if(Fu(this.file))return{name:this.file,isolated:!1,scope:Object.keys(this.args.hash)}}},block:class extends Xp{constructor(e,t,n,r){super(e,t,n),this.templates=[];const o=/\w+/.exec(e.args);for(this.block=o?o[0]:"";t.length;){const e=t.shift();if(Eh(e)&&"endblock"===e.name)return;const n=r.parseToken(e,t);this.templates.push(n)}throw new Error(`tag ${e.getText()} not closed`)}*render(e,t){const n=this.getBlockRender(e);e.getRegister("blockMode")===yh.STORE?e.getRegister("blocks",{})[this.block]=n:yield n(new xd,t)}getBlockRender(e){const t=this,{liquid:n,templates:r}=this,o=e.getRegister("blocks",{})[this.block],i=function*(o,i){const a=e.getRegister("blockStack",[]);if(a.includes(t))throw new Error("block tag cannot be nested");a.push(t),e.push({block:o}),yield n.renderer.renderTemplates(r,e,i),e.pop(),a.pop()};return o?(e,t)=>o(new xd(t=>i(e,t)),t):i}*children(){return this.templates}blockScope(){return["block"]}},raw:class extends Xp{constructor(e,t,n){for(super(e,t,n),this.tokens=[];t.length;){const e=t.shift();if(Eh(e)&&"endraw"===e.name)return;this.tokens.push(e)}throw new Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map(e=>e.getText()).join("")}},tablerow:class extends Xp{constructor(e,t,n,r){super(e,t,n);const o=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();const i=this.tokenizer.readIdentifier(),a=this.tokenizer.readValue();if("in"!==i.content||!a)throw new Error(`illegal tag: ${e.getText()}`);let s;this.variable=o.content,this.collection=a,this.args=new Zp(this.tokenizer,n.options.keyValueSeparator),this.templates=[];const l=r.parseStream(t).on("start",()=>s=this.templates).on("tag:endtablerow",()=>l.stop()).on("template",e=>s.push(e)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});l.start()}*render(e,t){let n=ju(yield Op(this.collection,e));const r=yield this.args.render(e),o=r.offset||0,i=void 0===r.limit?n.length:r.limit;n=n.slice(o,o+i);const a=r.cols||n.length,s=this.liquid.renderer,l=new Af(n.length,a,this.collection.getText(),this.variable),c={tablerowloop:l};e.push(c);for(let r=0;r<n.length;r++,l.next())c[this.variable]=n[r],0===l.col0()&&(1!==l.row()&&t.write("</tr>"),t.write(`<tr class="row${l.row()}">`)),t.write(`<td class="col${l.col()}">`),yield s.renderTemplates(this.templates,e,t),t.write("</td>");n.length&&t.write("</tr>"),e.pop()}*children(){return this.templates}*arguments(){yield this.collection;for(const e of Object.values(this.args.hash))Mh(e)&&(yield e)}blockScope(){return[this.variable,"tablerowloop"]}},unless:class extends Xp{constructor(e,t,n,r){super(e,t,n),this.branches=[],this.elseTemplates=[];let o=[],i=0;r.parseStream(t).on("start",()=>this.branches.push({value:new th(e.tokenizer.readFilteredValue(),this.liquid),test:Pp,templates:o=[]})).on("tag:elsif",e=>{i>0?o=[]:this.branches.push({value:new th(e.tokenizer.readFilteredValue(),this.liquid),test:Dp,templates:o=[]})}).on("tag:else",()=>{i++,o=this.elseTemplates}).on("tag:endunless",function(){this.stop()}).on("template",e=>{o===this.elseTemplates&&1!==i||o.push(e)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,t){const n=this.liquid.renderer;for(const{value:r,test:o,templates:i}of this.branches)if(o(yield r.value(e,e.opts.lenientIf),e))return void(yield n.renderTemplates(i,e,t));yield n.renderTemplates(this.elseTemplates,e,t)}*children(){const e=this.branches.flatMap(e=>e.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},break:class extends Xp{render(e,t){e.breakCalled=!0}},continue:class extends Xp{render(e,t){e.continueCalled=!0}},echo:class extends Xp{constructor(e,t,n){super(e,t,n),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new th(this.tokenizer.readFilteredValue(),this.liquid))}*render(e,t){if(!this.value)return;const n=yield this.value.value(e,!1);t.write(n)}*arguments(){this.value&&(yield this.value)}},liquid:class extends Xp{constructor(e,t,n,r){super(e,t,n);const o=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=r.parseTokens(o)}*render(e,t){yield this.liquid.renderer.renderTemplates(this.templates,e,t)}*children(){return this.templates}},"#":class extends Xp{constructor(e,t,n){if(super(e,t,n),-1!==e.args.search(/\n\s*[^#\s]/g))throw new Error("every line of an inline comment must start with a '#' character")}render(){}}};class bf{constructor(e={}){this.renderer=new Ep,this.filters={},this.tags={},this.options=function(e){var t,n,r;if(e.hasOwnProperty("root")&&(e.hasOwnProperty("partials")||(e.partials=e.root),e.hasOwnProperty("layouts")||(e.layouts=e.root)),e.hasOwnProperty("cache")){let t;t="number"==typeof e.cache?e.cache>0?new Ip(e.cache):void 0:"object"==typeof e.cache?e.cache:e.cache?new Ip(1024):void 0,e.cache=t}return(e=Object.assign(Object.assign(Object.assign({},Wp),e.jekyllInclude?{dynamicPartials:!1}:{}),e)).fs.dirname&&e.fs.sep||!e.relativeReference||(console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"),e.relativeReference=!1),e.root=zp(e.root),e.partials=zp(e.partials),e.layouts=zp(e.layouts),e.outputEscape=e.outputEscape&&("escape"===(r=e.outputEscape)?Up:"json"===r?Bp.json:(Ad(ku(r),"`outputEscape` need to be of type string or function"),r)),e.locale||(e.locale=null!==(n=null===(t=Kd())||void 0===t?void 0:t().resolvedOptions().locale)&&void 0!==n?n:"en-US"),e.templates&&(e.fs=new Gp(e.templates),e.relativeReference=!0,e.root=e.partials=e.layouts="."),e}(e),this.parser=new wh(this),qu(wf,(e,t)=>this.registerTag(t,e)),qu(ff,(e,t)=>this.registerFilter(t,e))}parse(e,t){return new wh(this).parse(e,t)}_render(e,t,n){const r=t instanceof Rh?t:new Rh(t,this.options,n);return this.renderer.renderTemplates(e,r)}render(e,t,n){return Id(this,void 0,void 0,function*(){return kd(this._render(e,t,Object.assign(Object.assign({},n),{sync:!1})))})}renderSync(e,t,n){return Ld(this._render(e,t,Object.assign(Object.assign({},n),{sync:!0})))}renderToNodeStream(e,t,n={}){const r=new Rh(t,this.options,n);return this.renderer.renderTemplatesToNodeStream(e,r)}_parseAndRender(e,t,n){const r=this.parse(e);return this._render(r,t,n)}parseAndRender(e,t,n){return Id(this,void 0,void 0,function*(){return kd(this._parseAndRender(e,t,Object.assign(Object.assign({},n),{sync:!1})))})}parseAndRenderSync(e,t,n){return Ld(this._parseAndRender(e,t,Object.assign(Object.assign({},n),{sync:!0})))}_parsePartialFile(e,t,n){return new wh(this).parseFile(e,t,mh.Partials,n)}_parseLayoutFile(e,t,n){return new wh(this).parseFile(e,t,mh.Layouts,n)}_parseFile(e,t,n,r){return new wh(this).parseFile(e,t,n,r)}parseFile(e,t){return Id(this,void 0,void 0,function*(){return kd(new wh(this).parseFile(e,!1,t))})}parseFileSync(e,t){return Ld(new wh(this).parseFile(e,!0,t))}*_renderFile(e,t,n){const r=yield this._parseFile(e,n.sync,n.lookupType);return yield this._render(r,t,n)}renderFile(e,t,n){return Id(this,void 0,void 0,function*(){return kd(this._renderFile(e,t,Object.assign(Object.assign({},n),{sync:!1})))})}renderFileSync(e,t,n){return Ld(this._renderFile(e,t,Object.assign(Object.assign({},n),{sync:!0})))}renderFileToNodeStream(e,t,n){return Id(this,void 0,void 0,function*(){const r=yield this.parseFile(e);return this.renderToNodeStream(r,t,n)})}_evalValue(e,t){const n=new th(e,this),r=t instanceof Rh?t:new Rh(t,this.options);return n.value(r)}evalValue(e,t){return Id(this,void 0,void 0,function*(){return kd(this._evalValue(e,t))})}evalValueSync(e,t){return Ld(this._evalValue(e,t))}registerFilter(e,t){this.filters[e]=t}registerTag(e,t){var n;this.tags[e]=ku(t)?t:(n=t,class extends Xp{constructor(e,t,r){super(e,t,r),ku(n.parse)&&n.parse.call(this,e,t)}*render(e,t){const r=yield new Zp(this.token.args,e.opts.keyValueSeparator).render(e);return yield n.render.call(this,e,t,r)}})}plugin(e){return e.call(this,bf)}express(){const e=this;let t=!0;return function(n,r,o){if(t){t=!1;const n=zp(this.root);e.options.root.unshift(...n),e.options.layouts.unshift(...n),e.options.partials.unshift(...n)}e.renderFile(n,r).then(e=>o(null,e),o)}}analyze(e,t={}){return Id(this,void 0,void 0,function*(){return lh(e,t)})}analyzeSync(e,t={}){return ch(e,t)}parseAndAnalyze(e,t,n={}){return Id(this,void 0,void 0,function*(){return lh(this.parse(e,t),n)})}parseAndAnalyzeSync(e,t,n={}){return ch(this.parse(e,t),n)}variables(e,t={}){return Id(this,void 0,void 0,function*(){const n=yield lh(Fu(e)?this.parse(e):e,t);return Object.keys(n.variables)})}variablesSync(e,t={}){const n=ch(Fu(e)?this.parse(e):e,t);return Object.keys(n.variables)}fullVariables(e,t={}){return Id(this,void 0,void 0,function*(){const n=yield lh(Fu(e)?this.parse(e):e,t);return Array.from(new Set(Object.values(n.variables).flatMap(e=>e.map(e=>String(e)))))})}fullVariablesSync(e,t={}){const n=ch(Fu(e)?this.parse(e):e,t);return Array.from(new Set(Object.values(n.variables).flatMap(e=>e.map(e=>String(e)))))}variableSegments(e,t={}){return Id(this,void 0,void 0,function*(){const n=yield lh(Fu(e)?this.parse(e):e,t);return Array.from(ad(Object.values(n.variables).flatMap(e=>e.map(e=>e.toArray()))))})}variableSegmentsSync(e,t={}){const n=ch(Fu(e)?this.parse(e):e,t);return Array.from(ad(Object.values(n.variables).flatMap(e=>e.map(e=>e.toArray()))))}globalVariables(e,t={}){return Id(this,void 0,void 0,function*(){const n=yield lh(Fu(e)?this.parse(e):e,t);return Object.keys(n.globals)})}globalVariablesSync(e,t={}){const n=ch(Fu(e)?this.parse(e):e,t);return Object.keys(n.globals)}globalFullVariables(e,t={}){return Id(this,void 0,void 0,function*(){const n=yield lh(Fu(e)?this.parse(e):e,t);return Array.from(new Set(Object.values(n.globals).flatMap(e=>e.map(e=>String(e)))))})}globalFullVariablesSync(e,t={}){const n=ch(Fu(e)?this.parse(e):e,t);return Array.from(new Set(Object.values(n.globals).flatMap(e=>e.map(e=>String(e)))))}globalVariableSegments(e,t={}){return Id(this,void 0,void 0,function*(){const n=yield lh(Fu(e)?this.parse(e):e,t);return Array.from(ad(Object.values(n.globals).flatMap(e=>e.map(e=>e.toArray()))))})}globalVariableSegmentsSync(e,t={}){const n=ch(Fu(e)?this.parse(e):e,t);return Array.from(ad(Object.values(n.globals).flatMap(e=>e.map(e=>e.toArray()))))}}var _f=c(156),Cf=c.n(_f),Ef=c(3758),Sf=c.n(Ef);const Of=new bf,xf="gv/templates",Df=({type:e,data:t,global:n,showButtons:r})=>{const[o,a]=(0,y.useState)(""),[s,l]=(0,y.useState)(""),[c,u]=(0,y.useState)(null);(0,y.useEffect)(()=>{(async()=>{const t=`${xf}/${e}`;let r;r=n?await b.GVPlatform.get().globalconfiguration.getGlobalConfiguration(t,!1):await b.GVPlatform.get().configuration.getConfiguration(t,!1),l(r)})().catch(console.error)},[e,n]),(0,y.useEffect)(()=>{""!==s&&null!==t&&d()},[s,t]);const d=async()=>{let n="",r=null;try{n=await Of.parseAndRender(s,t||{})}catch(e){r=e}if(""!==n&&!e.startsWith("input/"))try{const e=JSON.parse(n);n=JSON.stringify(e,null,2)}catch(e){r=new Error("Result is not valid JSON")}a(n),u(r)};return(0,i.jsxs)("div",{className:"gv-template",children:[(0,i.jsxs)("pre",{style:{color:"white"},className:"gv-template-result",children:[c&&(e=>{const{name:t,message:n,token:r}=e;let o="";if(r){const e=r.input.split("\n"),t=Math.max(r.line-2,1),n=Math.min(r.line+3,e.length);o=Sf()(t,n+1).map(t=>`${t===r.line?">> ":"   "}${Cf()(String(t),String(n).length)}| ${e[t-1]}`).join("\n")}return`${t}: ${n}\n\n${""!==o?`${o}\n\n`:""}`})(c),o]}),(0,i.jsxs)("div",{className:"gv-template-controls",children:[(0,i.jsx)("textarea",{onChange:e=>{l(e.target.value)},value:s,className:"gv-template-editor"}),(!n||!!r)&&(0,i.jsx)(_.GVButton,{text:!0,onClick:async()=>{const t=`${xf}/${e}`;n?await b.GVPlatform.get().globalconfiguration.updateGlobalConfiguration(t,s).catch(e=>e.response&&404===e.response.status?b.GVPlatform.get().globalconfiguration.addGlobalConfiguration(t,s):null):await b.GVPlatform.get().configuration.updateConfiguration(t,s).catch(e=>e.response&&404===e.response.status?b.GVPlatform.get().configuration.addConfiguration(t,s):null)},children:"Save Template"})]})]})},Pf="gv/schemas",Mf=e=>{const[t,n]=(0,y.useState)(void 0),[r,o]=(0,y.useState)(!1),[a,s]=(0,y.useState)(void 0),l={type:"object",properties:{name:{type:"string",title:"Name"},sections:{type:"array",title:"Sections",items:{type:"object",properties:{id:{type:"string",title:"ID"},title:{type:"string",title:"Title"}}}}}},c={};(0,y.useEffect)(()=>{const{app:t,type:r,subType:o,profile:i}=e;n(t&&r&&o&&i?`${t}/${r}/${o}/${i}`:void 0)},[e]),(0,y.useEffect)(()=>{t&&u()},[t]);const u=async()=>{if(t){o(!0);const n=`${Pf}/${t}/configuration`;let r;r=e.global?await b.GVPlatform.get().globalconfiguration.getGlobalConfiguration(n,!0):await b.GVPlatform.get().configuration.getConfiguration(n,!0),s(r),o(!1)}},d=async()=>{if(t){const n=`${Pf}/${t}/configuration`;e.global?await b.GVPlatform.get().globalconfiguration.updateGlobalConfiguration(n,a).catch(e=>e.response&&404===e.response.status?b.GVPlatform.get().globalconfiguration.addGlobalConfiguration(n,a):null):await b.GVPlatform.get().configuration.updateConfiguration(n,a).catch(e=>e.response&&404===e.response.status?b.GVPlatform.get().configuration.addConfiguration(n,a):null)}},p=(e,t)=>{s(e.formData)};return t?r?(0,i.jsx)(_.GVLoading,{text:"Loading profile options..."}):(0,i.jsx)("div",{children:(0,i.jsx)(_.GVErrorBoundary,{children:(0,i.jsx)(_.GVCollapsablePanel,{panels:(()=>{const{data:n,editable:r}=e;let o=[];if(r&&a&&o.push({children:[(0,i.jsxs)("div",{style:{padding:"10px"},children:[(0,i.jsx)(_.GVForm,{schema:l,uiSchema:c,formData:a,onChange:p,idPrefix:t,children:(0,i.jsx)("span",{})}),(!e.global||!!e.showButtons)&&(0,i.jsx)(_.GVButton,{style:"primary",text:!0,onClick:d,children:"Save Configuration"})]})],id:"configuration-profile",title:"Profile Configuration"+(a&&a.name?` - ${a.name}`:"")}),a){const{sections:s}=a;o=o.concat(Vn()(s,({id:o,title:a})=>o&&a&&("config"!==o||r)?"configuration"===o?{children:[(0,i.jsx)("div",{style:{padding:"10px"},children:(0,i.jsx)("strong",{children:"You cannot have a configuration key"})})],id:o,title:a}:{children:[(0,i.jsx)("div",{style:{padding:"10px"},children:(0,i.jsx)(Du,{validTypes:[],editable:r,type:`${t}/${o}`,onChange:(t,n)=>((t,n)=>{e.onChange(t,n.formData)})(o,t),showButtons:e.showButtons,data:n[o]||{},global:e.global,listOptions:e.listOptions})})],id:o,title:a}:null))}return r&&o.push({children:[(0,i.jsx)("div",{style:{padding:"10px"},children:(0,i.jsx)(Df,{type:t,data:{...n},showButtons:e.showButtons,global:e.global})},"templateDiv")],id:"template",title:"Profile Template"},{children:[(0,i.jsx)("div",{style:{padding:"10px"},children:(0,i.jsx)("pre",{style:{minHeight:"500px",color:"white"},children:JSON.stringify(n,null,2)})},"dataDiv")],id:"data",title:"Data Model"}),o})()})})}):null},Tf=e=>{const t=e.showStatusIndicator||!1,n=e.statusIndicatorMapping||{online:"",offline:"Offline"},[r,o]=w().useState([]),[a,s]=w().useState(e.onlineOnly??!1),l=(0,y.useRef)(b.GVMatrixManager.get(e.fabricId)),c=(0,y.useCallback)(()=>{o(Object.values(l.current.getProducers()).filter(e=>e.flags!==b.GVProducerFlags.Internal))},[l,o]);(0,y.useEffect)(()=>{const e=l.current;return e.onRefresh(c),c(),()=>{e.offRefresh(c)}},[c]);const u=(0,y.useCallback)(e=>({value:e.name,label:`${e.alias!==e.name?`${e.name} (${e.alias})`:e.name}`,statusIndicator:t?e.enabled?n.online:n.offline:""}),[t,n.online,n.offline]),d=(0,y.useCallback)(()=>r.filter(e=>!a||e.enabled).map(u).sort((e,t)=>e.label.toLowerCase().localeCompare(t.label.toLowerCase())),[r,a,u]),p=(0,y.useMemo)(()=>[{value:"",label:"-- Unassign --"},...d()],[d]);return(0,i.jsxs)("div",{className:Ti()("gv-source-dropdown"),children:[(0,i.jsx)(_.GVCheckbox,{onClick:()=>{s(!a),e.onOnlineToggle?.(a)},checked:a,label:"Online producers only"}),(0,i.jsx)(_.GVSelect,{options:p,value:e.value,id:e.id,onChange:e.onSourceChange,showStatusIndicator:t,useFullWidthLabel:e.useFullWithLabel})]})}})(),u})(),e.exports=r(n(293),n(120),n(188),n(155),n(514))},120(e,t,n){var r;e=n.nmd(e),self,r=(n,r,o,i,a,s)=>(()=>{var l={74785(e,t,n){"use strict";n.r(t),n.d(t,{Composite:()=>Kt,CompositeItem:()=>Qt,FloatingArrow:()=>en,FloatingDelayGroup:()=>yn,FloatingFocusManager:()=>Yn,FloatingList:()=>Ut,FloatingNode:()=>ln,FloatingOverlay:()=>Jn,FloatingPortal:()=>Hn,FloatingTree:()=>cn,arrow:()=>yt,autoPlacement:()=>gt,autoUpdate:()=>et,computePosition:()=>ot,detectOverflow:()=>tt,flip:()=>ht,getOverflowAncestors:()=>O,hide:()=>mt,inline:()=>vt,inner:()=>Mr,limitShift:()=>pt,offset:()=>ut,platform:()=>Ze,safePolygon:()=>Ir,shift:()=>dt,size:()=>ft,useClick:()=>nr,useClientPoint:()=>or,useDelayGroup:()=>An,useDelayGroupContext:()=>vn,useDismiss:()=>lr,useFloating:()=>ur,useFloatingNodeId:()=>sn,useFloatingParentNodeId:()=>on,useFloatingPortalNode:()=>Vn,useFloatingRootContext:()=>cr,useFloatingTree:()=>an,useFocus:()=>dr,useHover:()=>fn,useId:()=>Jt,useInnerOffset:()=>Tr,useInteractions:()=>gr,useListItem:()=>Vt,useListNavigation:()=>br,useMergeRefs:()=>At,useRole:()=>Cr,useTransitionStatus:()=>Or,useTransitionStyles:()=>xr,useTypeahead:()=>Dr});var r=n(39155);function o(){return"undefined"!=typeof window}function i(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!o()&&(e instanceof Node||e instanceof a(e).Node)}function c(e){return!!o()&&(e instanceof Element||e instanceof a(e).Element)}function u(e){return!!o()&&(e instanceof HTMLElement||e instanceof a(e).HTMLElement)}function d(e){return!(!o()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof a(e).ShadowRoot)}function p(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function h(e){return/^(table|td|th)$/.test(i(e))}function f(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const g=/transform|translate|scale|rotate|perspective|filter/,m=/paint|layout|strict|content/,v=e=>!!e&&"none"!==e;let y;function A(e){const t=c(e)?_(e):e;return v(t.transform)||v(t.translate)||v(t.scale)||v(t.rotate)||v(t.perspective)||!w()&&(v(t.backdropFilter)||v(t.filter))||g.test(t.willChange||"")||m.test(t.contain||"")}function w(){return null==y&&(y="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),y}function b(e){return/^(html|body|#document)$/.test(i(e))}function _(e){return a(e).getComputedStyle(e)}function C(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function E(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||d(e)&&e.host||s(e);return d(t)?t.host:t}function S(e){const t=E(e);return b(t)?e.ownerDocument?e.ownerDocument.body:e.body:u(t)&&p(t)?t:S(t)}function O(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=S(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=a(o);if(i){const e=x(s);return t.concat(s,s.visualViewport||[],p(o)?o:[],e&&n?O(e):[])}return t.concat(o,O(o,[],n))}function x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function D(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function P(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&d(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function M(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function T(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function R(e){return!(0!==e.mozInputSource||!e.isTrusted)||(k()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function I(e){return!T().includes("jsdom/")&&(!k()&&0===e.width&&0===e.height||k()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function F(){return/apple/i.test(navigator.vendor)}function k(){const e=/android/i;return e.test(M())||e.test(T())}function L(){return M().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function B(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function N(e){return(null==e?void 0:e.ownerDocument)||document}function j(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function U(e){return"composedPath"in e?e.composedPath()[0]:e.target}function V(e){return u(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function H(e){e.preventDefault(),e.stopPropagation()}function G(e){return!!e&&"combobox"===e.getAttribute("role")&&V(e)}const W=["top","right","bottom","left"],z=["start","end"],$=W.reduce((e,t)=>e.concat(t,t+"-"+z[0],t+"-"+z[1]),[]),K=Math.min,Q=Math.max,q=Math.round,Y=Math.floor,X=e=>({x:e,y:e}),Z={left:"right",right:"left",bottom:"top",top:"bottom"};function J(e,t,n){return Q(e,K(t,n))}function ee(e,t){return"function"==typeof e?e(t):e}function te(e){return e.split("-")[0]}function ne(e){return e.split("-")[1]}function re(e){return"x"===e?"y":"x"}function oe(e){return"y"===e?"height":"width"}function ie(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function ae(e){return re(ie(e))}function se(e,t,n){void 0===n&&(n=!1);const r=ne(e),o=ae(e),i=oe(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=he(a)),[a,he(a)]}function le(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ce=["left","right"],ue=["right","left"],de=["top","bottom"],pe=["bottom","top"];function he(e){const t=te(e);return Z[t]+e.slice(t.length)}function fe(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ge(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var me=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),ve="undefined"==typeof Element,ye=ve?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ae=!ve&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},we=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):we(e.parentNode))},be=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!we(i,!1))if("SLOT"===i.tagName){var a=i.assignedElements(),s=a.length?a:i.children,l=be(s,!0,n);n.flatten?r.push.apply(r,l):r.push({scopeParent:i,candidates:l})}else{ye.call(i,me)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!we(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=be(!0===c?i.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:i,candidates:d})}else o.unshift.apply(o,i.children)}}return r},_e=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ce=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!_e(e)?0:e.tabIndex},Ee=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Se=function(e){return"INPUT"===e.tagName},Oe=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},xe=function(e,t){return!(function(e){return function(e){return Se(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Ae(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||Ce(t)<0||!function(e,t){return!(t.disabled||function(e){return Se(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=ye.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ye.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Oe(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=Ae(e);if(a&&!a.shadowRoot&&!0===r(a))return Oe(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,n,r,o,i=e&&Ae(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,c,u;s=!(null===(c=a=null===(l=i=Ae(a))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!ye.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))}(e,t))},De=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Pe=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,a=function(e,t){var n=Ce(e);return n<0&&t&&!_e(e)?0:n}(i,o),s=o?Pe(e.candidates):i;0===a?o?t.push.apply(t,s):t.push(i):n.push({documentOrder:r,tabIndex:a,item:e,isScope:o,content:s})}),n.sort(Ee).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Me=function(e,t){var n;return n=(t=t||{}).getShadowRoot?be([e],t.includeContainer,{filter:xe.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:De}):function(e,t,n){if(we(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(me));return t&&ye.call(e,me)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,xe.bind(null,t)),Pe(n)},Te=n(69514);function Re(e,t,n){let{reference:r,floating:o}=e;const i=ie(t),a=ae(t),s=oe(a),l=te(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(ne(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function Ie(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=ee(t,e),f=fe(h),g=s[p?"floating"===d?"reference":"floating":d],m=ge(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),A=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=ge(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(m.top-w.top+f.top)/A.y,bottom:(w.bottom-m.bottom+f.bottom)/A.y,left:(m.left-w.left+f.left)/A.x,right:(w.right-m.right+f.right)/A.x}}function Fe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ke(e){return W.some(t=>e[t]>=0)}function Le(e){const t=K(...e.map(e=>e.left)),n=K(...e.map(e=>e.top));return{x:t,y:n,width:Q(...e.map(e=>e.right))-t,height:Q(...e.map(e=>e.bottom))-n}}const Be=new Set(["left","top"]);function Ne(e){const t=_(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=u(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=q(n)!==i||q(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function je(e){return c(e)?e:e.contextElement}function Ue(e){const t=je(e);if(!u(t))return X(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ne(t);let a=(i?q(n.width):n.width)/r,s=(i?q(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ve=X(0);function He(e){const t=a(e);return w()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ve}function Ge(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=je(e);let s=X(1);t&&(r?c(r)&&(s=Ue(r)):s=Ue(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==a(e))&&t}(i,n,r)?He(i):X(0);let u=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,p=o.width/s.x,h=o.height/s.y;if(i){const e=a(i),t=r&&c(r)?a(r):r;let n=e,o=x(n);for(;o&&r&&t!==n;){const e=Ue(o),t=o.getBoundingClientRect(),r=_(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,p*=e.x,h*=e.y,u+=i,d+=s,n=a(o),o=x(n)}}return ge({width:p,height:h,x:u,y:d})}function We(e,t){const n=C(e).scrollLeft;return t?t.left+n:Ge(s(e)).left+n}function ze(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-We(e,n),y:n.top+t.scrollTop}}function $e(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=a(e),r=s(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,c=0,u=0;if(o){i=o.width,l=o.height;const e=w();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,u=o.offsetTop)}const d=We(r);if(d<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else d<=25&&(i+=d);return{width:i,height:l,x:c,y:u}}(e,n);else if("document"===t)r=function(e){const t=s(e),n=C(e),r=e.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+We(e);const l=-n.scrollTop;return"rtl"===_(r).direction&&(a+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(s(e));else if(c(t))r=function(e,t){const n=Ge(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=u(e)?Ue(e):X(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=He(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ge(r)}function Ke(e,t){const n=E(e);return!(n===t||!c(n)||b(n))&&("fixed"===_(n).position||Ke(n,t))}function Qe(e,t,n){const r=u(t),o=s(t),a="fixed"===n,l=Ge(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const d=X(0);function h(){d.x=We(o)}if(r||!r&&!a)if(("body"!==i(t)||p(o))&&(c=C(t)),r){const e=Ge(t,!0,a,t);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}else o&&h();a&&!r&&o&&h();const f=!o||r||a?X(0):ze(o,c);return{x:l.left+c.scrollLeft-d.x-f.x,y:l.top+c.scrollTop-d.y-f.y,width:l.width,height:l.height}}function qe(e){return"static"===_(e).position}function Ye(e,t){if(!u(e)||"fixed"===_(e).position)return null;if(t)return t(e);let n=e.offsetParent;return s(e)===n&&(n=n.ownerDocument.body),n}function Xe(e,t){const n=a(e);if(f(e))return n;if(!u(e)){let t=E(e);for(;t&&!b(t);){if(c(t)&&!qe(t))return t;t=E(t)}return n}let r=Ye(e,t);for(;r&&h(r)&&qe(r);)r=Ye(r,t);return r&&b(r)&&qe(r)&&!A(r)?n:r||function(e){let t=E(e);for(;u(t)&&!b(t);){if(A(t))return t;if(f(t))return null;t=E(t)}return null}(e)||n}const Ze={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,l=s(r),c=!!t&&f(t.floating);if(r===l||c&&a)return n;let d={scrollLeft:0,scrollTop:0},h=X(1);const g=X(0),m=u(r);if((m||!m&&!a)&&(("body"!==i(r)||p(l))&&(d=C(r)),m)){const e=Ge(r);h=Ue(r),g.x=e.x+r.clientLeft,g.y=e.y+r.clientTop}const v=!l||m||a?X(0):ze(l,d);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+g.x+v.x,y:n.y*h.y-d.scrollTop*h.y+g.y+v.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?f(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=O(e,[],!1).filter(e=>c(e)&&"body"!==i(e)),o=null;const a="fixed"===_(e).position;let s=a?E(e):e;for(;c(s)&&!b(s);){const t=_(s),n=A(s);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||p(s)&&!n&&Ke(e,s))?r=r.filter(e=>e!==s):o=t,s=E(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=$e(t,a[0],o);let l=s.top,u=s.right,d=s.bottom,h=s.left;for(let e=1;e<a.length;e++){const n=$e(t,a[e],o);l=Q(n.top,l),u=K(n.right,u),d=K(n.bottom,d),h=Q(n.left,h)}return{width:u-h,height:d-l,x:h,y:l}},getOffsetParent:Xe,getElementRects:async function(e){const t=this.getOffsetParent||Xe,n=this.getDimensions,r=await n(e.floating);return{reference:Qe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ne(e);return{width:t,height:n}},getScale:Ue,isElement:c,isRTL:function(e){return"rtl"===_(e).direction}};function Je(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function et(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=je(e),d=o||i?[...u?O(u):[],...t?O(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const p=u&&l?function(e,t){let n,r=null;const o=s(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-Y(d)+"px "+-Y(o.clientWidth-(u+p))+"px "+-Y(o.clientHeight-(d+h))+"px "+-Y(u)+"px",threshold:Q(0,K(1,l))||1};let g=!0;function m(t){const r=t[0].intersectionRatio;if(r!==l){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||Je(c,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),i}(u,n):null;let h,f=-1,g=null;a&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&g&&t&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),u&&!c&&g.observe(u),t&&g.observe(t));let m=c?Ge(e):null;return c&&function t(){const r=Ge(e);m&&!Je(m,r)&&n(),m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=g)||e.disconnect(),g=null,c&&cancelAnimationFrame(h)}}const tt=Ie,nt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=ee(e,t)||{};if(null==c)return{};const d=fe(u),p={x:n,y:r},h=ae(o),f=oe(h),g=await a.getDimensions(c),m="y"===h,v=m?"top":"left",y=m?"bottom":"right",A=m?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[h]-p[h]-i.floating[f],b=p[h]-i.reference[h],_=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let C=_?_[A]:0;C&&await(null==a.isElement?void 0:a.isElement(_))||(C=s.floating[A]||i.floating[f]);const E=w/2-b/2,S=C/2-g[f]/2-1,O=K(d[v],S),x=K(d[y],S),D=O,P=C-g[f]-x,M=C/2-g[f]/2+E,T=J(D,M,P),R=!l.arrow&&null!=ne(o)&&M!==T&&i.reference[f]/2-(M<D?O:x)-g[f]/2<0,I=R?M<D?M-D:M-P:0;return{[h]:p[h]+I,data:{[h]:T,centerOffset:M-T-I,...R&&{alignmentOffset:I}},reset:R}}}),rt=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=ee(e,t),u={x:n,y:r},d=ie(o),p=re(d);let h=u[p],f=u[d];const g=ee(s,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+m.mainAxis,n=i.reference[p]+i.reference[e]-m.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var v,y;const e="y"===p?"width":"height",t=Be.has(te(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[p]:h,[d]:f}}}},ot=(e,t,n)=>{const r=new Map,o={platform:Ze,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:Ie},l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Re(c,r,l),p=r,h=0;const f={};for(let n=0;n<i.length;n++){const g=i[n];if(!g)continue;const{name:m,fn:v}=g,{x:y,y:A,data:w,reset:b}=await v({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=A?A:d,f[m]={...f[m],...w},b&&h<50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=Re(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var it="undefined"!=typeof document?r.useLayoutEffect:function(){};function at(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!at(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||at(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function st(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lt(e,t){const n=st(e);return Math.round(t*n)/n}function ct(e){const t=r.useRef(e);return it(()=>{t.current=e}),t}const ut=(e,t)=>{const n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=te(n),s=ne(n),l="y"===ie(n),c=Be.has(a)?-1:1,u=i&&l?-1:1,d=ee(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},dt=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ee(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),p=ie(te(o)),h=re(p);let f=u[h],g=u[p];if(a){const e="y"===h?"bottom":"right";f=J(f+d["y"===h?"top":"left"],f,f-d[e])}if(s){const e="y"===p?"bottom":"right";g=J(g+d["y"===p?"top":"left"],g,g-d[e])}const m=l.fn({...t,[h]:f,[p]:g});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:a,[p]:s}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},pt=(e,t)=>({fn:rt(e).fn,options:[e,t]}),ht=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...m}=ee(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=te(o),y=ie(s),A=te(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(A||!g?[he(s)]:function(e){const t=he(e);return[le(e),t,le(t)]}(s)),_="none"!==f;!p&&_&&b.push(...function(e,t,n,r){const o=ne(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?ue:ce:t?ce:ue;case"left":case"right":return t?de:pe;default:return[]}}(te(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(le)))),i}(s,g,f,w));const C=[s,...b],E=await l.detectOverflow(t,m),S=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(E[v]),d){const e=se(o,a,w);S.push(E[e[0]],E[e[1]])}if(O=[...O,{placement:o,overflows:S}],!S.every(e=>e<=0)){var x,D;const e=((null==(x=i.flip)?void 0:x.index)||0)+1,t=C[e];if(t&&("alignment"!==d||y===ie(t)||O.every(e=>ie(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(D=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:D.placement;if(!n)switch(h){case"bestFit":{var P;const e=null==(P=O.filter(e=>{if(_){const t=ie(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},ft=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=ee(e,t),u=await a.detectOverflow(t,c),d=te(o),p=ne(o),h="y"===ie(o),{width:f,height:g}=i.floating;let m,v;"top"===d||"bottom"===d?(m=d,v=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,m="end"===p?"top":"bottom");const y=g-u.top-u.bottom,A=f-u.left-u.right,w=K(g-u[m],y),b=K(f-u[v],A),_=!t.middlewareData.shift;let C=w,E=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=A),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=y),_&&!p){const e=Q(u.left,0),t=Q(u.right,0),n=Q(u.top,0),r=Q(u.bottom,0);h?E=f-2*(0!==e||0!==t?e+t:Q(u.left,u.right)):C=g-2*(0!==n||0!==r?n+r:Q(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:C});const S=await a.getDimensions(s.floating);return f!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},gt=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:i,middlewareData:a,placement:s,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=$,autoAlignment:h=!0,...f}=ee(e,t),g=void 0!==d||p===$?function(e,t,n){return(e?[...n.filter(t=>ne(t)===e),...n.filter(t=>ne(t)!==e)]:n.filter(e=>te(e)===e)).filter(n=>!e||ne(n)===e||!!t&&le(n)!==n)}(d||null,h,p):p,m=await l.detectOverflow(t,f),v=(null==(n=a.autoPlacement)?void 0:n.index)||0,y=g[v];if(null==y)return{};const A=se(y,i,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==y)return{reset:{placement:g[0]}};const w=[m[te(y)],m[A[0]],m[A[1]]],b=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:y,overflows:w}],_=g[v+1];if(_)return{data:{index:v+1,overflows:b},reset:{placement:_}};const C=b.map(e=>{const t=ne(e.placement);return[e.placement,t&&u?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),E=(null==(o=C.filter(e=>e[2].slice(0,ne(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||C[0][0];return E!==s?{data:{index:v+1,overflows:b},reset:{placement:E}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},mt=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=ee(e,t);switch(o){case"referenceHidden":{const e=Fe(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ke(e)}}}case"escaped":{const e=Fe(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ke(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},vt=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:i,strategy:a}=t,{padding:s=2,x:l,y:c}=ee(e,t),u=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),d=function(e){const t=e.slice().sort((e,t)=>e.y-t.y),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(e=>ge(Le(e)))}(u),p=ge(Le(u)),h=fe(s),f=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=l&&null!=c)return d.find(e=>l>e.left-h.left&&l<e.right+h.right&&c>e.top-h.top&&c<e.bottom+h.bottom)||p;if(d.length>=2){if("y"===ie(n)){const e=d[0],t=d[d.length-1],r="top"===te(n),o=e.top,i=t.bottom,a=r?e.left:t.left,s=r?e.right:t.right;return{top:o,bottom:i,left:a,right:s,width:s-a,height:i-o,x:a,y:o}}const e="left"===te(n),t=Q(...d.map(e=>e.right)),r=K(...d.map(e=>e.left)),o=d.filter(n=>e?n.left===r:n.right===t),i=o[0].top,a=o[o.length-1].bottom;return{top:i,bottom:a,left:r,right:t,width:t-r,height:a-i,x:r,y:i}}return p}},floating:r.floating,strategy:a});return o.reference.x!==f.reference.x||o.reference.y!==f.reference.y||o.reference.width!==f.reference.width||o.reference.height!==f.reference.height?{reset:{rects:f}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},yt=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?nt({element:n.current,padding:r}).fn(t):{}:n?nt({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function At(e){return r.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)}const wt={...r},bt=wt.useInsertionEffect||(e=>e());function _t(e){const t=r.useRef(()=>{});return bt(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const Ct="ArrowUp",Et="ArrowDown",St="ArrowLeft",Ot="ArrowRight";function xt(e,t,n){return Math.floor(e/t)!==n}function Dt(e,t){return t<0||t>=e.current.length}function Pt(e,t){return Tt(e,{disabledIndices:t})}function Mt(e,t){return Tt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Tt(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const a=e.current;let s=n;do{s+=r?-i:i}while(s>=0&&s<=a.length-1&&Lt(a,s,o));return s}function Rt(e,t){let{event:n,orientation:r,loop:o,rtl:i,cols:a,disabledIndices:s,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}=t,p=u;if(n.key===Ct){if(d&&H(n),-1===u)p=c;else if(p=Tt(e,{startingIndex:p,amount:a,decrement:!0,disabledIndices:s}),o&&(u-a<l||p<0)){const e=u%a,t=c%a,n=c-(t-e);p=t===e?c:t>e?n:n-a}Dt(e,p)&&(p=u)}if(n.key===Et&&(d&&H(n),-1===u?p=l:(p=Tt(e,{startingIndex:u,amount:a,disabledIndices:s}),o&&u+a>c&&(p=Tt(e,{startingIndex:u%a-a,amount:a,disabledIndices:s}))),Dt(e,p)&&(p=u)),"both"===r){const t=Y(u/a);n.key===(i?St:Ot)&&(d&&H(n),u%a!==a-1?(p=Tt(e,{startingIndex:u,disabledIndices:s}),o&&xt(p,a,t)&&(p=Tt(e,{startingIndex:u-u%a-1,disabledIndices:s}))):o&&(p=Tt(e,{startingIndex:u-u%a-1,disabledIndices:s})),xt(p,a,t)&&(p=u)),n.key===(i?Ot:St)&&(d&&H(n),u%a!==0?(p=Tt(e,{startingIndex:u,decrement:!0,disabledIndices:s}),o&&xt(p,a,t)&&(p=Tt(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s}))):o&&(p=Tt(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s})),xt(p,a,t)&&(p=u));const r=Y(c/a)===t;Dt(e,p)&&(p=o&&r?n.key===(i?Ot:St)?c:Tt(e,{startingIndex:u-u%a-1,disabledIndices:s}):u)}return p}function It(e,t,n){const r=[];let o=0;return e.forEach((e,i)=>{let{width:a,height:s}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;n<a;n++)for(let r=0;r<s;r++)e.push(o+n+r*t);o%t+a<=t&&e.every(e=>null==r[e])?(e.forEach(e=>{r[e]=i}),l=!0):o++}}),[...r]}function Ft(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function kt(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Lt(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}var Bt="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Nt(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const jt=r.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Ut(e){const{children:t,elementsRef:n,labelsRef:o}=e,[i,a]=r.useState(()=>new Map),s=r.useCallback(e=>{a(t=>new Map(t).set(e,null))},[]),l=r.useCallback(e=>{a(t=>{const n=new Map(t);return n.delete(e),n})},[]);return Bt(()=>{const e=new Map(i);Array.from(e.keys()).sort(Nt).forEach((t,n)=>{e.set(t,n)}),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(i,e)||a(e)},[i]),r.createElement(jt.Provider,{value:r.useMemo(()=>({register:s,unregister:l,map:i,elementsRef:n,labelsRef:o}),[s,l,i,n,o])},t)}function Vt(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:o,map:i,elementsRef:a,labelsRef:s}=r.useContext(jt),[l,c]=r.useState(null),u=r.useRef(null),d=r.useCallback(e=>{if(u.current=e,null!==l&&(a.current[l]=e,s)){var n;const r=void 0!==t;s.current[l]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}},[l,a,s,t]);return Bt(()=>{const e=u.current;if(e)return n(e),()=>{o(e)}},[n,o]),Bt(()=>{const e=u.current?i.get(u.current):null;null!=e&&c(e)},[i]),r.useMemo(()=>({ref:d,index:null==l?-1:l}),[l,d])}function Ht(e,t){return"function"==typeof e?e(t):e?r.cloneElement(e,t):r.createElement("div",t)}const Gt=r.createContext({activeIndex:0,onNavigate:()=>{}}),Wt=[St,Ot],zt=[Ct,Et],$t=[...Wt,...zt],Kt=r.forwardRef(function(e,t){const{render:n,orientation:o="both",loop:i=!0,rtl:a=!1,cols:s=1,disabledIndices:l,activeIndex:c,onNavigate:u,itemSizes:d,dense:p=!1,...h}=e,[f,g]=r.useState(0),m=null!=c?c:f,v=_t(null!=u?u:g),y=r.useRef([]),A=n&&"function"!=typeof n?n.props:{},w=r.useMemo(()=>({activeIndex:m,onNavigate:v}),[m,v]),b=s>1,_={...h,...A,ref:t,"aria-orientation":"both"===o?void 0:o,onKeyDown(e){null==h.onKeyDown||h.onKeyDown(e),null==A.onKeyDown||A.onKeyDown(e),function(e){if(!$t.includes(e.key))return;let t=m;const n=Pt(y,l),r=Mt(y,l),c=a?St:Ot,u=a?Ot:St;if(b){const u=d||Array.from({length:y.current.length},()=>({width:1,height:1})),h=It(u,s,p),f=h.findIndex(e=>null!=e&&!Lt(y.current,e,l)),g=h.reduce((e,t,n)=>null==t||Lt(y.current,t,l)?e:n,-1),v=h[Rt({current:h.map(e=>e?y.current[e]:null)},{event:e,orientation:o,loop:i,rtl:a,cols:s,disabledIndices:kt([...l||y.current.map((e,t)=>Lt(y.current,t)?t:void 0),void 0],h),minIndex:f,maxIndex:g,prevIndex:Ft(m>r?n:m,u,h,s,e.key===Et?"bl":e.key===c?"tr":"tl")})];null!=v&&(t=v)}const h={horizontal:[c],vertical:[Et],both:[c,Et]}[o],f={horizontal:[u],vertical:[Ct],both:[u,Ct]}[o],g=b?$t:{horizontal:Wt,vertical:zt,both:$t}[o];var A;t===m&&[...h,...f].includes(e.key)&&(t=i&&t===r&&h.includes(e.key)?n:i&&t===n&&f.includes(e.key)?r:Tt(y,{startingIndex:t,decrement:f.includes(e.key),disabledIndices:l})),t===m||Dt(y,t)||(e.stopPropagation(),g.includes(e.key)&&e.preventDefault(),v(t),null==(A=y.current[t])||A.focus())}(e)}};return r.createElement(Gt.Provider,{value:w},r.createElement(Ut,{elementsRef:y},Ht(n,_)))}),Qt=r.forwardRef(function(e,t){const{render:n,...o}=e,i=n&&"function"!=typeof n?n.props:{},{activeIndex:a,onNavigate:s}=r.useContext(Gt),{ref:l,index:c}=Vt(),u=At([l,t,i.ref]),d=a===c;return Ht(n,{...o,...i,ref:u,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==o.onFocus||o.onFocus(e),null==i.onFocus||i.onFocus(e),s(c)}})});function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qt.apply(this,arguments)}let Yt=!1,Xt=0;const Zt=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Xt++,Jt=wt.useId||function(){const[e,t]=r.useState(()=>Yt?Zt():void 0);return Bt(()=>{null==e&&t(Zt())},[]),r.useEffect(()=>{Yt=!0},[]),e},en=r.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:o},middlewareData:{arrow:i,shift:a}},width:s=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:p,d:h,style:{transform:f,...g}={},...m}=e,v=Jt(),[y,A]=r.useState(!1);if(Bt(()=>{o&&"rtl"===_(o).direction&&A(!0)},[o]),!o)return null;const[w,b]=n.split("-"),C="top"===w||"bottom"===w;let E=d;(C&&null!=a&&a.x||!C&&null!=a&&a.y)&&(E=null);const S=2*u,O=S/2,x=s/2*(c/-8+1),D=l/2*c/4,P=!!h,M=E&&"end"===b?"bottom":"top";let T=E&&"end"===b?"right":"left";E&&y&&(T="end"===b?"left":"right");const R=null!=(null==i?void 0:i.x)?E||i.x:"",I=null!=(null==i?void 0:i.y)?E||i.y:"",F=h||"M0,0 H"+s+" L"+(s-x)+","+(l-D)+" Q"+s/2+","+l+" "+x+","+(l-D)+" Z",k={top:P?"rotate(180deg)":"",left:P?"rotate(90deg)":"rotate(-90deg)",bottom:P?"":"rotate(180deg)",right:P?"rotate(-90deg)":"rotate(90deg)"}[w];return r.createElement("svg",qt({},m,{"aria-hidden":!0,ref:t,width:P?s:s+S,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[T]:R,[M]:I,[w]:C||P?"100%":"calc(100% - "+S/2+"px)",transform:[k,f].filter(e=>!!e).join(" "),...g}}),S>0&&r.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:S+(h?0:1),d:F}),r.createElement("path",{stroke:S&&!h?m.fill:"none",d:F}),r.createElement("clipPath",{id:v},r.createElement("rect",{x:-O,y:O*(P?-1:1),width:s+S,height:s})))});function tn(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}const nn=r.createContext(null),rn=r.createContext(null),on=()=>{var e;return(null==(e=r.useContext(nn))?void 0:e.id)||null},an=()=>r.useContext(rn);function sn(e){const t=Jt(),n=an(),r=on(),o=e||r;return Bt(()=>{const e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,o]),t}function ln(e){const{children:t,id:n}=e,o=on();return r.createElement(nn.Provider,{value:r.useMemo(()=>({id:n,parentId:o}),[n,o])},t)}function cn(e){const{children:t}=e,n=r.useRef([]),o=r.useCallback(e=>{n.current=[...n.current,e]},[]),i=r.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),a=r.useState(()=>tn())[0];return r.createElement(rn.Provider,{value:r.useMemo(()=>({nodesRef:n,addNode:o,removeNode:i,events:a}),[o,i,a])},t)}function un(e){return"data-floating-ui-"+e}function dn(e){const t=(0,r.useRef)(e);return Bt(()=>{t.current=e}),t}const pn=un("safe-polygon");function hn(e,t,n){return n&&!B(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function fn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:i,events:a,elements:s}=e,{enabled:l=!0,delay:u=0,handleClose:d=null,mouseOnly:p=!1,restMs:h=0,move:f=!0}=t,g=an(),m=on(),v=dn(d),y=dn(u),A=dn(n),w=r.useRef(),b=r.useRef(-1),_=r.useRef(),C=r.useRef(-1),E=r.useRef(!0),S=r.useRef(!1),O=r.useRef(()=>{}),x=r.useRef(!1),D=r.useCallback(()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[i]);r.useEffect(()=>{if(l)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(b.current),clearTimeout(C.current),E.current=!0,x.current=!1)}},[l,a]),r.useEffect(()=>{if(!l)return;if(!v.current)return;if(!n)return;function e(e){D()&&o(!1,e,"hover")}const t=N(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s.floating,n,o,l,v,D]);const M=r.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=hn(y.current,"close",w.current);r&&!_.current?(clearTimeout(b.current),b.current=window.setTimeout(()=>o(!1,e,n),r)):t&&(clearTimeout(b.current),o(!1,e,n))},[y,o]),T=_t(()=>{O.current(),_.current=void 0}),R=_t(()=>{if(S.current){const e=N(s.floating).body;e.style.pointerEvents="",e.removeAttribute(pn),S.current=!1}}),I=_t(()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type));r.useEffect(()=>{if(l&&c(s.domReference)){var e;const o=s.domReference;return n&&o.addEventListener("mouseleave",a),null==(e=s.floating)||e.addEventListener("mouseleave",a),f&&o.addEventListener("mousemove",t,{once:!0}),o.addEventListener("mouseenter",t),o.addEventListener("mouseleave",r),()=>{var e;n&&o.removeEventListener("mouseleave",a),null==(e=s.floating)||e.removeEventListener("mouseleave",a),f&&o.removeEventListener("mousemove",t),o.removeEventListener("mouseenter",t),o.removeEventListener("mouseleave",r)}}function t(e){if(clearTimeout(b.current),E.current=!1,p&&!B(w.current)||h>0&&!hn(y.current,"open"))return;const t=hn(y.current,"open",w.current);t?b.current=window.setTimeout(()=>{A.current||o(!0,e,"hover")},t):n||o(!0,e,"hover")}function r(e){if(I())return;O.current();const t=N(s.floating);if(clearTimeout(C.current),x.current=!1,v.current&&i.current.floatingContext){n||clearTimeout(b.current),_.current=v.current({...i.current.floatingContext,tree:g,x:e.clientX,y:e.clientY,onClose(){R(),T(),I()||M(e,!0,"safe-polygon")}});const r=_.current;return t.addEventListener("mousemove",r),void(O.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==w.current||!P(s.floating,e.relatedTarget))&&M(e)}function a(e){I()||i.current.floatingContext&&(null==v.current||v.current({...i.current.floatingContext,tree:g,x:e.clientX,y:e.clientY,onClose(){R(),T(),I()||M(e)}})(e))}},[s,l,e,p,h,f,M,T,R,o,n,A,g,y,v,i,I]),Bt(()=>{var e;if(l&&n&&null!=(e=v.current)&&e.__options.blockPointerEvents&&D()){S.current=!0;const e=s.floating;if(c(s.domReference)&&e){var t;const n=N(s.floating).body;n.setAttribute(pn,"");const r=s.domReference,o=null==g||null==(t=g.nodesRef.current.find(e=>e.id===m))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[l,n,m,s,g,v,D]),Bt(()=>{n||(w.current=void 0,x.current=!1,T(),R())},[n,T,R]),r.useEffect(()=>()=>{T(),clearTimeout(b.current),clearTimeout(C.current),R()},[l,s.domReference,T,R]);const F=r.useMemo(()=>{function e(e){w.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function r(){E.current||A.current||o(!0,t,"hover")}p&&!B(w.current)||n||0===h||x.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(C.current),"touch"===w.current?r():(x.current=!0,C.current=window.setTimeout(r,h)))}}},[p,o,n,A,h]),k=r.useMemo(()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(e){I()||M(e.nativeEvent,!1)}}),[M,I]);return r.useMemo(()=>l?{reference:F,floating:k}:{},[l,F,k])}const gn=()=>{},mn=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:gn,setState:gn,isInstantPhase:!1}),vn=()=>r.useContext(mn);function yn(e){const{children:t,delay:n,timeoutMs:o=0}=e,[i,a]=r.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),s=r.useRef(null),l=r.useCallback(e=>{a({currentId:e})},[]);return Bt(()=>{i.currentId?null===s.current?s.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),s.current=null)},[i.currentId,i.isInstantPhase]),r.createElement(mn.Provider,{value:r.useMemo(()=>({...i,setState:a,setCurrentId:l}),[i,l])},t)}function An(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:i,enabled:a=!0}=t,s=null!=i?i:o,l=vn(),{currentId:c,setCurrentId:u,initialDelay:d,setState:p,timeoutMs:h}=l;return Bt(()=>{a&&c&&(p({delay:{open:1,close:hn(d,"close")}}),c!==s&&r(!1))},[a,s,r,p,c,d]),Bt(()=>{function e(){r(!1),p({delay:d,currentId:null})}if(a&&c&&!n&&c===s){if(h){const t=window.setTimeout(e,h);return()=>{clearTimeout(t)}}e()}},[a,n,p,c,s,r,d,h]),Bt(()=>{a&&u!==gn&&n&&u(s)},[a,n,u,s]),l}let wn=0;function bn(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(wn);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():wn=requestAnimationFrame(i)}function _n(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}let Cn=new WeakMap,En=new WeakSet,Sn={},On=0;const xn=e=>e&&(e.host||xn(e.parentNode));function Dn(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=N(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,s=(l=t,e.map(e=>{if(l.contains(e))return e;const t=xn(e);return l.contains(t)?t:null}).filter(e=>null!=e));var l;const c=new Set,u=new Set(s),d=[];Sn[o]||(Sn[o]=new WeakMap);const p=Sn[o];return s.forEach(function e(t){t&&!c.has(t)&&(c.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!u.has(t)&&[].forEach.call(t.children,t=>{if("script"!==i(t))if(c.has(t))e(t);else{const e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,r=(Cn.get(t)||0)+1,i=(p.get(t)||0)+1;Cn.set(t,r),p.set(t,i),d.push(t),1===r&&n&&En.add(t),1===i&&t.setAttribute(o,""),!n&&a&&t.setAttribute(a,"true")}})}(t),c.clear(),On++,()=>{d.forEach(e=>{const t=(Cn.get(e)||0)-1,n=(p.get(e)||0)-1;Cn.set(e,t),p.set(e,n),t||(!En.has(e)&&a&&e.removeAttribute(a),En.delete(e)),n||e.removeAttribute(o)}),On--,On||(Cn=new WeakMap,Cn=new WeakMap,En=new WeakSet,Sn={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Pn=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Mn(e,t){const n=Me(e,Pn());"prev"===t&&n.reverse();const r=n.indexOf(D(N(e)));return n.slice(r+1)[0]}function Tn(){return Mn(document.body,"next")}function Rn(){return Mn(document.body,"prev")}function In(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!P(n,r)}function Fn(e){Me(e,Pn()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function kn(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const Ln={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Bn(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Nn=r.forwardRef(function(e,t){const[n,o]=r.useState();Bt(()=>(F()&&o("button"),document.addEventListener("keydown",Bn),()=>{document.removeEventListener("keydown",Bn)}),[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[un("focus-guard")]:"",style:Ln};return r.createElement("span",qt({},e,i))}),jn=r.createContext(null),Un=un("portal");function Vn(e){void 0===e&&(e={});const{id:t,root:n}=e,o=Jt(),i=Gn(),[a,s]=r.useState(null),l=r.useRef(null);return Bt(()=>()=>{null==a||a.remove(),queueMicrotask(()=>{l.current=null})},[a]),Bt(()=>{if(!o)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=o,n.setAttribute(Un,""),e.appendChild(n),l.current=n,s(n)},[t,o]),Bt(()=>{if(null===n)return;if(!o)return;if(l.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!c(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const a=document.createElement("div");a.id=o,a.setAttribute(Un,""),e=r||e,e.appendChild(a),l.current=a,s(a)},[t,n,o,i]),a}function Hn(e){const{children:t,id:n,root:o,preserveTabOrder:i=!0}=e,a=Vn({id:n,root:o}),[s,l]=r.useState(null),c=r.useRef(null),u=r.useRef(null),d=r.useRef(null),p=r.useRef(null),h=null==s?void 0:s.modal,f=null==s?void 0:s.open,g=!!s&&!s.modal&&s.open&&i&&!(!o&&!a);return r.useEffect(()=>{if(a&&i&&!h)return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){a&&In(e)&&("focusin"===e.type?kn:Fn)(a)}},[a,i,h]),r.useEffect(()=>{a&&(f||kn(a))},[f,a]),r.createElement(jn.Provider,{value:r.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:p,portalNode:a,setFocusManagerState:l}),[i,a])},g&&a&&r.createElement(Nn,{"data-type":"outside",ref:c,onFocus:e=>{if(In(e,a)){var t;null==(t=d.current)||t.focus()}else{const e=Rn()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),g&&a&&r.createElement("span",{"aria-owns":a.id,style:Ln}),a&&Te.createPortal(t,a),g&&a&&r.createElement(Nn,{"data-type":"outside",ref:u,onFocus:e=>{if(In(e,a)){var t;null==(t=p.current)||t.focus()}else{const t=Tn()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Gn=()=>r.useContext(jn),Wn="data-floating-ui-focusable";function zn(e){return e?e.hasAttribute(Wn)?e:e.querySelector("["+Wn+"]")||e:null}let $n=[];function Kn(e){$n=$n.filter(e=>e.isConnected);let t=e;if(t&&"body"!==i(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ye.call(e,me)&&xe(t,e)}(t,Pn())){const e=Me(t,Pn())[0];e&&(t=e)}$n.push(t),$n.length>20&&($n=$n.slice(-20))}}function Qn(){return $n.slice().reverse().find(e=>e.isConnected)}const qn=r.forwardRef(function(e,t){return r.createElement("button",qt({},e,{type:"button",ref:t,tabIndex:-1,style:Ln}))});function Yn(e){const{context:t,children:n,disabled:o=!1,order:i=["content"],guards:a=!0,initialFocus:s=0,returnFocus:l=!0,restoreFocus:c=!1,modal:d=!0,visuallyHiddenDismiss:p=!1,closeOnFocusOut:h=!0}=e,{open:f,refs:g,nodeId:m,onOpenChange:v,events:y,dataRef:A,floatingId:w,elements:{domReference:b,floating:_}}=t,C="number"==typeof s&&s<0,E=G(b)&&C,S="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||a,O=dn(i),x=dn(s),M=dn(l),T=an(),F=Gn(),k=r.useRef(null),L=r.useRef(null),B=r.useRef(!1),j=r.useRef(!1),V=r.useRef(-1),W=null!=F,z=zn(_),$=_t(function(e){return void 0===e&&(e=z),e?Me(e,Pn()):[]}),K=_t(e=>{const t=$(e);return O.current.map(e=>b&&"reference"===e?b:z&&"floating"===e?z:t).filter(Boolean).flat()});function Q(e){return!o&&p&&d?r.createElement(qn,{ref:"start"===e?k:L,onClick:e=>v(!1,e.nativeEvent)},"string"==typeof p?p:"Dismiss"):null}r.useEffect(()=>{if(o)return;if(!d)return;function e(e){if("Tab"===e.key){P(z,D(N(z)))&&0===$().length&&!E&&H(e);const t=K(),n=U(e);"reference"===O.current[0]&&n===b&&(H(e),e.shiftKey?bn(t[t.length-1]):bn(t[1])),"floating"===O.current[1]&&n===z&&e.shiftKey&&(H(e),bn(t[0]))}}const t=N(z);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[o,b,z,d,O,E,$,K]),r.useEffect(()=>{if(!o&&_)return _.addEventListener("focusin",e),()=>{_.removeEventListener("focusin",e)};function e(e){const t=U(e),n=$().indexOf(t);-1!==n&&(V.current=n)}},[o,_,$]),r.useEffect(()=>{if(!o&&h)return _&&u(b)?(b.addEventListener("focusout",t),b.addEventListener("pointerdown",e),_.addEventListener("focusout",t),()=>{b.removeEventListener("focusout",t),b.removeEventListener("pointerdown",e),_.removeEventListener("focusout",t)}):void 0;function e(){j.current=!0,setTimeout(()=>{j.current=!1})}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!(P(b,t)||P(_,t)||P(t,_)||P(null==F?void 0:F.portalNode,t)||null!=t&&t.hasAttribute(un("focus-guard"))||T&&(_n(T.nodesRef.current,m).find(e=>{var n,r;return P(null==(n=e.context)?void 0:n.elements.floating,t)||P(null==(r=e.context)?void 0:r.elements.domReference,t)})||function(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(T.nodesRef.current,m).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(c&&n&&D(N(z))===N(z).body){u(z)&&z.focus();const e=V.current,t=$(),n=t[e]||t[t.length-1]||z;u(n)&&n.focus()}!E&&d||!t||!n||j.current||t===Qn()||(B.current=!0,v(!1,e,"focus-out"))})}},[o,b,_,z,d,m,T,F,v,h,c,$,E]),r.useEffect(()=>{var e;if(o)return;const t=Array.from((null==F||null==(e=F.portalNode)?void 0:e.querySelectorAll("["+un("portal")+"]"))||[]);if(_){const e=[_,...t,k.current,L.current,O.current.includes("reference")||E?b:null].filter(e=>null!=e),n=d||E?Dn(e,S,!S):Dn(e);return()=>{n()}}},[o,b,_,d,O,F,E,S]),Bt(()=>{if(o||!u(z))return;const e=D(N(z));queueMicrotask(()=>{const t=K(z),n=x.current,r=("number"==typeof n?t[n]:n.current)||z,o=P(z,e);C||o||!f||bn(r,{preventScroll:r===z})})},[o,f,z,C,K,x]),Bt(()=>{if(o||!z)return;let e=!1;const t=N(z),n=D(t);let r=A.current.openEvent;function i(t){let{open:n,reason:o,event:i,nested:a}=t;n&&(r=i),"escape-key"===o&&g.domReference.current&&Kn(g.domReference.current),"hover"===o&&"mouseleave"===i.type&&(B.current=!0),"outside-press"===o&&(a?(B.current=!1,e=!0):B.current=!(R(i)||I(i)))}Kn(n),y.on("openchange",i);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,Ln),W&&b&&b.insertAdjacentElement("afterend",a),()=>{y.off("openchange",i);const n=D(t),o=P(_,n)||T&&_n(T.nodesRef.current,m).some(e=>{var t;return P(null==(t=e.context)?void 0:t.elements.floating,n)});(o||r&&["click","mousedown"].includes(r.type))&&g.domReference.current&&Kn(g.domReference.current);const s="boolean"==typeof M.current?Qn()||a:M.current.current||a;queueMicrotask(()=>{M.current&&!B.current&&u(s)&&(s===n||n===t.body||o)&&s.focus({preventScroll:e}),a.remove()})}},[o,_,z,M,A,g,y,T,m,W,b]),r.useEffect(()=>{queueMicrotask(()=>{B.current=!1})},[o]),Bt(()=>{if(!o&&F)return F.setFocusManagerState({modal:d,closeOnFocusOut:h,open:f,onOpenChange:v,refs:g}),()=>{F.setFocusManagerState(null)}},[o,F,d,f,v,g,h]),Bt(()=>{if(o)return;if(!z)return;if("function"!=typeof MutationObserver)return;if(C)return;const e=()=>{const e=z.getAttribute("tabindex"),t=$(),n=D(N(_)),r=t.indexOf(n);-1!==r&&(V.current=r),O.current.includes("floating")||n!==g.domReference.current&&0===t.length?"0"!==e&&z.setAttribute("tabindex","0"):"-1"!==e&&z.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(z,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[o,_,z,g,O,$,C]);const q=!o&&S&&(!d||!E)&&(W||d);return r.createElement(r.Fragment,null,q&&r.createElement(Nn,{"data-type":"inside",ref:null==F?void 0:F.beforeInsideRef,onFocus:e=>{if(d){const e=K();bn("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=F&&F.preserveTabOrder&&F.portalNode)if(B.current=!1,In(e,F.portalNode)){const e=Tn()||b;null==e||e.focus()}else{var t;null==(t=F.beforeOutsideRef.current)||t.focus()}}}),!E&&Q("start"),n,Q("end"),q&&r.createElement(Nn,{"data-type":"inside",ref:null==F?void 0:F.afterInsideRef,onFocus:e=>{if(d)bn(K()[0]);else if(null!=F&&F.preserveTabOrder&&F.portalNode)if(h&&(B.current=!0),In(e,F.portalNode)){const e=Rn()||b;null==e||e.focus()}else{var t;null==(t=F.afterOutsideRef.current)||t.focus()}}}))}let Xn=0,Zn=()=>{};const Jn=r.forwardRef(function(e,t){const{lockScroll:n=!1,...o}=e;return Bt(()=>{if(n)return Xn++,1===Xn&&(Zn=function(){const e=/iP(hone|ad|od)|iOS/.test(M()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,o=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var a,s;const e=(null==(a=window.visualViewport)?void 0:a.offsetLeft)||0,n=(null==(s=window.visualViewport)?void 0:s.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(o-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(o,i))}}()),()=>{Xn--,0===Xn&&Zn()}},[n]),r.createElement("div",qt({ref:t},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function er(e){return u(e.target)&&"BUTTON"===e.target.tagName}function tr(e){return V(e)}function nr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:i,elements:{domReference:a}}=e,{enabled:s=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:p=!0}=t,h=r.useRef(),f=r.useRef(!1),g=r.useMemo(()=>({onPointerDown(e){h.current=e.pointerType},onMouseDown(e){const t=h.current;0===e.button&&"click"!==l&&(B(t,!0)&&u||(!n||!c||i.current.openEvent&&p&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){const t=h.current;"mousedown"===l&&h.current?h.current=void 0:B(t,!0)&&u||(!n||!c||i.current.openEvent&&p&&"click"!==i.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){h.current=void 0,e.defaultPrevented||!d||er(e)||(" "!==e.key||tr(a)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&o(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||er(e)||tr(a)||" "===e.key&&f.current&&(f.current=!1,o(!n||!c,e.nativeEvent,"click"))}}),[i,a,l,u,d,o,n,p,c]);return r.useMemo(()=>s?{reference:g}:{},[s,g])}function rr(e){return null!=e&&null!=e.clientX}function or(e,t){void 0===t&&(t={});const{open:n,dataRef:o,elements:{floating:i,domReference:s},refs:l}=e,{enabled:c=!0,axis:u="both",x:d=null,y:p=null}=t,h=r.useRef(!1),f=r.useRef(null),[g,m]=r.useState(),[v,y]=r.useState([]),A=_t((e,t)=>{h.current||o.current.openEvent&&!rr(o.current.openEvent)||l.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){var i;const a=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s="x"===t.axis||"both"===t.axis,l="y"===t.axis||"both"===t.axis,c=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let u=a.width,d=a.height,p=a.x,h=a.y;return null==n&&t.x&&s&&(n=a.x-t.x),null==r&&t.y&&l&&(r=a.y-t.y),p-=n||0,h-=r||0,u=0,d=0,!o||c?(u="y"===t.axis?a.width:0,d="x"===t.axis?a.height:0,p=s&&null!=t.x?t.x:p,h=l&&null!=t.y?t.y:h):o&&!c&&(d="x"===t.axis?a.height:d,u="y"===t.axis?a.width:u),o=!0,{width:u,height:d,x:p,y:h,top:h,right:p+u,bottom:h+d,left:p}}}}(s,{x:e,y:t,axis:u,dataRef:o,pointerType:g}))}),w=_t(e=>{null==d&&null==p&&(n?f.current||y([]):A(e.clientX,e.clientY))}),b=B(g)?i:n,_=r.useCallback(()=>{if(!b||!c||null!=d||null!=p)return;const e=a(i);function t(n){const r=U(n);P(i,r)?(e.removeEventListener("mousemove",t),f.current=null):A(n.clientX,n.clientY)}if(!o.current.openEvent||rr(o.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),f.current=null};return f.current=n,n}l.setPositionReference(s)},[b,c,d,p,i,o,l,s,A]);r.useEffect(()=>_(),[_,v]),r.useEffect(()=>{c&&!i&&(h.current=!1)},[c,i]),r.useEffect(()=>{!c&&n&&(h.current=!0)},[c,n]),Bt(()=>{!c||null==d&&null==p||(h.current=!1,A(d,p))},[c,d,p,A]);const C=r.useMemo(()=>{function e(e){let{pointerType:t}=e;m(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:w,onMouseEnter:w}},[w]);return r.useMemo(()=>c?{reference:C}:{},[c,C])}const ir={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ar={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},sr=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function lr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,elements:i,dataRef:a}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:d=!0,outsidePressEvent:p="pointerdown",referencePress:h=!1,referencePressEvent:f="pointerdown",ancestorScroll:g=!1,bubbles:m,capture:v}=t,y=an(),A=_t("function"==typeof d?d:()=>!1),C="function"==typeof d?A:d,S=r.useRef(!1),x=r.useRef(!1),{escapeKey:D,outsidePress:M}=sr(m),{escapeKey:T,outsidePress:R}=sr(v),I=r.useRef(!1),F=_t(e=>{var t;if(!n||!s||!l||"Escape"!==e.key)return;if(I.current)return;const r=null==(t=a.current.floatingContext)?void 0:t.nodeId,i=y?_n(y.nodesRef.current,r):[];if(!D&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),k=_t(e=>{var t;const n=()=>{var t;F(e),null==(t=U(e))||t.removeEventListener("keydown",n)};null==(t=U(e))||t.addEventListener("keydown",n)}),L=_t(e=>{var t;const n=S.current;S.current=!1;const r=x.current;if(x.current=!1,"click"===p&&r)return;if(n)return;if("function"==typeof C&&!C(e))return;const s=U(e),l="["+un("inert")+"]",d=N(i.floating).querySelectorAll(l);let h=c(s)?s:null;for(;h&&!b(h);){const e=E(h);if(b(e)||!c(e))break;h=e}if(d.length&&c(s)&&!s.matches("html,body")&&!P(s,i.floating)&&Array.from(d).every(e=>!P(h,e)))return;if(u(s)&&H){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===_(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const f=null==(t=a.current.floatingContext)?void 0:t.nodeId,g=y&&_n(y.nodesRef.current,f).some(t=>{var n;return j(e,null==(n=t.context)?void 0:n.elements.floating)});if(j(e,i.floating)||j(e,i.domReference)||g)return;const m=y?_n(y.nodesRef.current,f):[];if(m.length>0){let e=!0;if(m.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}o(!1,e,"outside-press")}),B=_t(e=>{var t;const n=()=>{var t;L(e),null==(t=U(e))||t.removeEventListener(p,n)};null==(t=U(e))||t.addEventListener(p,n)});r.useEffect(()=>{if(!n||!s)return;a.current.__escapeKeyBubbles=D,a.current.__outsidePressBubbles=M;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),I.current=!0}function u(){e=window.setTimeout(()=>{I.current=!1},w()?5:0)}const d=N(i.floating);l&&(d.addEventListener("keydown",T?k:F,T),d.addEventListener("compositionstart",r),d.addEventListener("compositionend",u)),C&&d.addEventListener(p,R?B:L,R);let h=[];return g&&(c(i.domReference)&&(h=O(i.domReference)),c(i.floating)&&(h=h.concat(O(i.floating))),!c(i.reference)&&i.reference&&i.reference.contextElement&&(h=h.concat(O(i.reference.contextElement)))),h=h.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),h.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{l&&(d.removeEventListener("keydown",T?k:F,T),d.removeEventListener("compositionstart",r),d.removeEventListener("compositionend",u)),C&&d.removeEventListener(p,R?B:L,R),h.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[a,i,l,C,p,n,o,g,s,D,M,F,T,k,L,R,B]),r.useEffect(()=>{S.current=!1},[C,p]);const V=r.useMemo(()=>({onKeyDown:F,[ir[f]]:e=>{h&&o(!1,e.nativeEvent,"reference-press")}}),[F,o,h,f]),H=r.useMemo(()=>({onKeyDown:F,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[ar[p]]:()=>{S.current=!0}}),[F,p]);return r.useMemo(()=>s?{reference:V,floating:H}:{},[s,V,H])}function cr(e){const{open:t=!1,onOpenChange:n,elements:o}=e,i=Jt(),a=r.useRef({}),[s]=r.useState(()=>tn()),l=null!=on(),[c,u]=r.useState(o.reference),d=_t((e,t,r)=>{a.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)}),p=r.useMemo(()=>({setPositionReference:u}),[]),h=r.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return r.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:h,events:s,floatingId:i,refs:p}),[t,d,h,s,i,p])}function ur(e){void 0===e&&(e={});const{nodeId:t}=e,n=cr({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,i=o.elements,[a,s]=r.useState(null),[l,u]=r.useState(null),d=(null==i?void 0:i.domReference)||a,p=r.useRef(null),h=an();Bt(()=>{d&&(p.current=d)},[d]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=r.useState(o);at(h,o)||f(o);const[g,m]=r.useState(null),[v,y]=r.useState(null),A=r.useCallback(e=>{e!==C.current&&(C.current=e,m(e))},[]),w=r.useCallback(e=>{e!==E.current&&(E.current=e,y(e))},[]),b=a||g,_=s||v,C=r.useRef(null),E=r.useRef(null),S=r.useRef(d),O=null!=c,x=ct(c),D=ct(i),P=ct(u),M=r.useCallback(()=>{if(!C.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};D.current&&(e.platform=D.current),ot(C.current,E.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};T.current&&!at(S.current,t)&&(S.current=t,Te.flushSync(()=>{p(t)}))})},[h,t,n,D,P]);it(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const T=r.useRef(!1);it(()=>(T.current=!0,()=>{T.current=!1}),[]),it(()=>{if(b&&(C.current=b),_&&(E.current=_),b&&_){if(x.current)return x.current(b,_,M);M()}},[b,_,M,x,O]);const R=r.useMemo(()=>({reference:C,floating:E,setReference:A,setFloating:w}),[A,w]),I=r.useMemo(()=>({reference:b,floating:_}),[b,_]),F=r.useMemo(()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=lt(I.floating,d.x),r=lt(I.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...st(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,I.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:M,refs:R,elements:I,floatingStyles:F}),[d,M,R,I,F])}({...e,elements:{...i,...l&&{reference:l}}}),g=r.useCallback(e=>{const t=c(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),f.refs.setReference(t)},[f.refs]),m=r.useCallback(e=>{(c(e)||null===e)&&(p.current=e,s(e)),(c(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!c(e))&&f.refs.setReference(e)},[f.refs]),v=r.useMemo(()=>({...f.refs,setReference:m,setPositionReference:g,domReference:p}),[f.refs,m,g]),y=r.useMemo(()=>({...f.elements,domReference:d}),[f.elements,d]),A=r.useMemo(()=>({...f,...o,refs:v,elements:y,nodeId:t}),[f,v,y,t,o]);return Bt(()=>{o.dataRef.current.floatingContext=A;const e=null==h?void 0:h.nodesRef.current.find(e=>e.id===t);e&&(e.context=A)}),r.useMemo(()=>({...f,context:A,refs:v,elements:y}),[f,v,y,A])}function dr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,events:i,dataRef:s,elements:l}=e,{enabled:d=!0,visibleOnly:p=!0}=t,h=r.useRef(!1),f=r.useRef(),g=r.useRef(!0);r.useEffect(()=>{if(!d)return;const e=a(l.domReference);function t(){!n&&u(l.domReference)&&l.domReference===D(N(l.domReference))&&(h.current=!0)}function r(){g.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[l.domReference,n,d]),r.useEffect(()=>{if(d)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(h.current=!0)}},[i,d]),r.useEffect(()=>()=>{clearTimeout(f.current)},[]);const m=r.useMemo(()=>({onPointerDown(e){I(e.nativeEvent)||(g.current=!1)},onMouseLeave(){h.current=!1},onFocus(e){if(h.current)return;const t=U(e.nativeEvent);if(p&&c(t))try{if(F()&&L())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!g.current&&!V(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){h.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=c(t)&&t.hasAttribute(un("focus-guard"))&&"outside"===t.getAttribute("data-type");f.current=window.setTimeout(()=>{var e;const i=D(l.domReference?l.domReference.ownerDocument:document);(t||i!==l.domReference)&&(P(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,i)||P(l.domReference,i)||r||o(!1,n,"focus"))})}}),[s,l.domReference,o,p]);return r.useMemo(()=>d?{reference:m}:{},[d,m])}const pr="active",hr="selected";function fr(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[pr]:t,[hr]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Wn]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var a;o&&[pr,hr].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function gr(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),o=e.map(e=>null==e?void 0:e.item),i=r.useCallback(t=>fr(t,e,"reference"),t),a=r.useCallback(t=>fr(t,e,"floating"),n),s=r.useCallback(t=>fr(t,e,"item"),o);return r.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s}),[i,a,s])}let mr=!1;function vr(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function yr(e,t){return vr(t,e===Ct||e===Et,e===St||e===Ot)}function Ar(e,t,n){return vr(t,e===Et,n?e===St:e===Ot)||"Enter"===e||" "===e||""===e}function wr(e,t,n){return vr(t,n?e===Ot:e===St,e===Ct)}function br(e,t){const{open:n,onOpenChange:o,elements:i}=e,{listRef:a,activeIndex:s,onNavigate:l=()=>{},enabled:c=!0,selectedIndex:d=null,allowEscape:p=!1,loop:h=!1,nested:f=!1,rtl:g=!1,virtual:m=!1,focusItemOnOpen:v="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:A=!0,disabledIndices:w,orientation:b="vertical",cols:_=1,scrollItemIntoView:C=!0,virtualItemRef:E,itemSizes:S,dense:O=!1}=t,x=dn(zn(i.floating)),M=on(),T=an(),k=_t(l),B=G(i.domReference),j=r.useRef(v),U=r.useRef(null!=d?d:-1),V=r.useRef(null),W=r.useRef(!0),z=r.useRef(k),$=r.useRef(!!i.floating),K=r.useRef(n),Q=r.useRef(!1),q=r.useRef(!1),Y=dn(w),X=dn(n),Z=dn(C),J=dn(d),[ee,te]=r.useState(),[ne,re]=r.useState(),oe=_t(function(e,t,n){function r(e){m?(te(e.id),null==T||T.events.emit("virtualfocus",e),E&&(E.current=e)):bn(e,{preventScroll:!0,sync:!(!L()||!F())&&(mr||Q.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame(()=>{const i=e.current[t.current]||o;if(!i)return;o||r(i);const a=Z.current;a&&ae&&(n||!W.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof a?{block:"nearest",inline:"nearest"}:a))})});Bt(()=>{document.createElement("div").focus({get preventScroll(){return mr=!0,!1}})},[]),Bt(()=>{c&&(n&&i.floating?j.current&&null!=d&&(q.current=!0,U.current=d,k(d)):$.current&&(U.current=-1,z.current(null)))},[c,n,i.floating,d,k]),Bt(()=>{if(c&&n&&i.floating)if(null==s){if(Q.current=!1,null!=J.current)return;if($.current&&(U.current=-1,oe(a,U)),(!K.current||!$.current)&&j.current&&(null!=V.current||!0===j.current&&null==V.current)){let e=0;const t=()=>{null==a.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(U.current=null==V.current||Ar(V.current,b,g)||f?Pt(a,Y.current):Mt(a,Y.current),V.current=null,k(U.current))};t()}}else Dt(a,s)||(U.current=s,oe(a,U,q.current),q.current=!1)},[c,n,i.floating,s,J,f,a,b,g,k,oe,Y]),Bt(()=>{var e;if(!c||i.floating||!T||m||!$.current)return;const t=T.nodesRef.current,n=null==(e=t.find(e=>e.id===M))||null==(e=e.context)?void 0:e.elements.floating,r=D(N(i.floating)),o=t.some(e=>e.context&&P(e.context.elements.floating,r));n&&!o&&W.current&&n.focus({preventScroll:!0})},[c,i.floating,T,M,m]),Bt(()=>{if(c&&T&&m&&!M)return T.events.on("virtualfocus",e),()=>{T.events.off("virtualfocus",e)};function e(e){re(e.id),E&&(E.current=e)}},[c,T,m,M,E]),Bt(()=>{z.current=k,$.current=!!i.floating}),Bt(()=>{n||(V.current=null)},[n]),Bt(()=>{K.current=n},[n]);const ie=null!=s,ae=r.useMemo(()=>{function e(e){if(!n)return;const t=a.current.indexOf(e);-1!==t&&k(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...y&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;W.current&&"touch"!==t&&(U.current=-1,oe(a,U),k(null),m||bn(x.current,{preventScroll:!0}))}}}},[n,x,oe,y,a,k,m]),se=_t(e=>{if(W.current=!1,Q.current=!0,229===e.which)return;if(!X.current&&e.currentTarget===x.current)return;if(f&&wr(e.key,b,g))return H(e),o(!1,e.nativeEvent,"list-navigation"),void(u(i.domReference)&&(m?null==T||T.events.emit("virtualfocus",i.domReference):i.domReference.focus()));const t=U.current,r=Pt(a,w),s=Mt(a,w);if(B||("Home"===e.key&&(H(e),U.current=r,k(U.current)),"End"===e.key&&(H(e),U.current=s,k(U.current))),_>1){const t=S||Array.from({length:a.current.length},()=>({width:1,height:1})),n=It(t,_,O),o=n.findIndex(e=>null!=e&&!Lt(a.current,e,w)),i=n.reduce((e,t,n)=>null==t||Lt(a.current,t,w)?e:n,-1),l=n[Rt({current:n.map(e=>null!=e?a.current[e]:null)},{event:e,orientation:b,loop:h,rtl:g,cols:_,disabledIndices:kt([...w||a.current.map((e,t)=>Lt(a.current,t)?t:void 0),void 0],n),minIndex:o,maxIndex:i,prevIndex:Ft(U.current>s?r:U.current,t,n,_,e.key===Et?"bl":e.key===(g?St:Ot)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(U.current=l,k(U.current)),"both"===b)return}if(yr(e.key,b)){if(H(e),n&&!m&&D(e.currentTarget.ownerDocument)===e.currentTarget)return U.current=Ar(e.key,b,g)?r:s,void k(U.current);Ar(e.key,b,g)?U.current=h?t>=s?p&&t!==a.current.length?-1:r:Tt(a,{startingIndex:t,disabledIndices:w}):Math.min(s,Tt(a,{startingIndex:t,disabledIndices:w})):U.current=h?t<=r?p&&-1!==t?a.current.length:s:Tt(a,{startingIndex:t,decrement:!0,disabledIndices:w}):Math.max(r,Tt(a,{startingIndex:t,decrement:!0,disabledIndices:w})),Dt(a,U.current)?k(null):k(U.current)}}),le=r.useMemo(()=>m&&n&&ie&&{"aria-activedescendant":ne||ee},[m,n,ie,ne,ee]),ce=r.useMemo(()=>({"aria-orientation":"both"===b?void 0:b,...!G(i.domReference)&&le,onKeyDown:se,onPointerMove(){W.current=!0}}),[le,se,i.domReference,b]),ue=r.useMemo(()=>{function e(e){"auto"===v&&R(e.nativeEvent)&&(j.current=!0)}return{...le,onKeyDown(e){W.current=!1;const t=e.key.startsWith("Arrow"),r=["Home","End"].includes(e.key),i=t||r,s=function(e,t,n){return vr(t,n?e===St:e===Ot,e===Et)}(e.key,b,g),l=wr(e.key,b,g),c=yr(e.key,b),u=(f?s:c)||"Enter"===e.key||""===e.key.trim();if(m&&n){const t=null==T?void 0:T.nodesRef.current.find(e=>null==e.parentId),n=T&&t?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),_n(e,o).forEach(e=>{t(e.id,i+1)})}(t,0),e.find(e=>e.id===n)}(T.nodesRef.current,t.id):null;if(i&&n&&E){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||l){var p,h;const r=(null==(p=n.context)?void 0:p.elements.domReference)===e.currentTarget,o=l&&!r?null==(h=n.context)?void 0:h.elements.domReference:s?a.current.find(e=>(null==e?void 0:e.id)===ee):null;o&&(H(e),o.dispatchEvent(t),re(void 0))}var v;if((c||r)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return H(e),void(null==(v=n.context.elements.domReference)||v.dispatchEvent(t))}return se(e)}(n||A||!t)&&(u&&(V.current=f&&c?null:e.key),f?s&&(H(e),n?(U.current=Pt(a,Y.current),k(U.current)):o(!0,e.nativeEvent,"list-navigation")):c&&(null!=d&&(U.current=d),H(e),!n&&A?o(!0,e.nativeEvent,"list-navigation"):se(e),n&&k(U.current)))},onFocus(){n&&!m&&k(null)},onPointerDown:function(e){j.current=v,"auto"===v&&I(e.nativeEvent)&&(j.current=!0)},onMouseDown:e,onClick:e}},[ee,le,se,Y,v,a,f,k,o,n,A,b,g,d,T,m,E]);return r.useMemo(()=>c?{reference:ue,floating:ce,item:ae}:{},[c,ue,ce,ae])}const _r=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Cr(e,t){var n;void 0===t&&(t={});const{open:o,floatingId:i}=e,{enabled:a=!0,role:s="dialog"}=t,l=null!=(n=_r.get(s))?n:s,c=Jt(),u=null!=on(),d=r.useMemo(()=>"tooltip"===l||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:o?i:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":o?i:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[l,i,u,o,c,s]),p=r.useMemo(()=>{const e={id:i,...l&&{role:l}};return"tooltip"===l||"label"===s?e:{...e,..."menu"===l&&{"aria-labelledby":c}}},[l,i,c,s]),h=r.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}},[i,s]);return r.useMemo(()=>a?{reference:d,floating:p,item:h}:{},[a,d,p,h])}const Er=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function Sr(e,t){return"function"==typeof e?e(t):e}function Or(e,t){void 0===t&&(t={});const{open:n,elements:{floating:o}}=e,{duration:i=250}=t,a=("number"==typeof i?i:i.close)||0,[s,l]=r.useState("unmounted"),c=function(e,t){const[n,o]=r.useState(e);return e&&!n&&o(!0),r.useEffect(()=>{if(!e&&n){const e=setTimeout(()=>o(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,a);return c||"close"!==s||l("unmounted"),Bt(()=>{if(o){if(n){l("initial");const e=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(e)}}l("close")}},[n,o]),{isMounted:c,status:s}}function xr(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:o,close:i,common:a,duration:s=250}=t,l=e.placement,c=l.split("-")[0],u=r.useMemo(()=>({side:c,placement:l}),[c,l]),d="number"==typeof s,p=(d?s:s.open)||0,h=(d?s:s.close)||0,[f,g]=r.useState(()=>({...Sr(a,u),...Sr(n,u)})),{isMounted:m,status:v}=Or(e,{duration:s}),y=dn(n),A=dn(o),w=dn(i),b=dn(a);return Bt(()=>{const e=Sr(y.current,u),t=Sr(w.current,u),n=Sr(b.current,u),r=Sr(A.current,u)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===v&&g(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===v&&g({transitionProperty:Object.keys(r).map(Er).join(","),transitionDuration:p+"ms",...n,...r}),"close"===v){const r=t||e;g({transitionProperty:Object.keys(r).map(Er).join(","),transitionDuration:h+"ms",...n,...r})}},[h,w,y,A,b,p,v,u]),{isMounted:m,styles:f}}function Dr(e,t){var n;const{open:o,dataRef:i}=e,{listRef:a,activeIndex:s,onMatch:l,onTypingChange:c,enabled:u=!0,findMatch:d=null,resetMs:p=750,ignoreKeys:h=[],selectedIndex:f=null}=t,g=r.useRef(),m=r.useRef(""),v=r.useRef(null!=(n=null!=f?f:s)?n:-1),y=r.useRef(null),A=_t(l),w=_t(c),b=dn(d),_=dn(h);Bt(()=>{o&&(clearTimeout(g.current),y.current=null,m.current="")},[o]),Bt(()=>{var e;o&&""===m.current&&(v.current=null!=(e=null!=f?f:s)?e:-1)},[o,f,s]);const C=_t(e=>{e?i.current.typing||(i.current.typing=e,w(e)):i.current.typing&&(i.current.typing=e,w(e))}),E=_t(e=>{function t(e,t,n){const r=b.current?b.current(t,n):t.find(e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())));return r?e.indexOf(r):-1}const n=a.current;if(m.current.length>0&&" "!==m.current[0]&&(-1===t(n,n,m.current)?C(!1):" "===e.key&&H(e)),null==n||_.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;o&&" "!==e.key&&(H(e),C(!0)),n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&m.current===e.key&&(m.current="",v.current=y.current),m.current+=e.key,clearTimeout(g.current),g.current=setTimeout(()=>{m.current="",v.current=y.current,C(!1)},p);const r=v.current,i=t(n,[...n.slice((r||0)+1),...n.slice(0,(r||0)+1)],m.current);-1!==i?(A(i),y.current=i):" "!==e.key&&(m.current="",C(!1))}),S=r.useMemo(()=>({onKeyDown:E}),[E]),O=r.useMemo(()=>({onKeyDown:E,onKeyUp(e){" "===e.key&&C(!1)}}),[E,C]);return r.useMemo(()=>u?{reference:S,floating:O}:{},[u,S,O])}function Pr(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Mr=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=ee(e,t),{rects:d,elements:{floating:p}}=t,h=n.current[a],f=(null==c?void 0:c.current)||p,g=p.clientTop||f.clientTop,m=0!==p.clientTop,v=0!==f.clientTop,y=p===f;if(!h)return{};const A={...t,...await ut(-h.offsetTop-p.clientTop-d.reference.height/2-h.offsetHeight/2-i).fn(t)},w=await tt(Pr(A,f.scrollHeight+g+p.clientTop),u),b=await tt(A,{...u,elementContext:"reference"}),_=Q(0,w.top),C=A.y+_,E=(f.scrollHeight>f.clientHeight?e=>e:q)(Q(0,f.scrollHeight+(m&&y||v?2*g:0)-_-Q(0,w.bottom)));if(f.style.maxHeight=E+"px",f.scrollTop=_,o){const e=f.offsetHeight<h.offsetHeight*K(s,n.current.length)-1||b.top>=-l||b.bottom>=-l;Te.flushSync(()=>o(e))}return r&&(r.current=await tt(Pr({...A,y:C},f.offsetHeight+g+p.clientTop),u)),{y:C}}});function Tr(e,t){const{open:n,elements:o}=e,{enabled:i=!0,overflowRef:a,scrollRef:s,onChange:l}=t,c=_t(l),u=r.useRef(!1),d=r.useRef(null),p=r.useRef(null);r.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==a.current)return;const n=e.deltaY,r=a.current.top>=-.5,o=a.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,s=n<0?-1:1,l=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),Te.flushSync(()=>{c(e=>e+Math[l](n,i*s))})):/firefox/i.test(T())&&(t.scrollTop+=n))}const t=(null==s?void 0:s.current)||o.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame(()=>{d.current=t.scrollTop,null!=a.current&&(p.current={...a.current})}),()=>{d.current=null,p.current=null,t.removeEventListener("wheel",e)}):void 0},[i,n,o.floating,a,s,c]);const h=r.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==s?void 0:s.current)||o.floating;if(a.current&&e&&u.current){if(null!==d.current){const t=e.scrollTop-d.current;(a.current.bottom<-.5&&t<-1||a.current.top<-.5&&t>1)&&Te.flushSync(()=>c(e=>e+t))}requestAnimationFrame(()=>{d.current=e.scrollTop})}}}),[o.floating,c,a,s]);return r.useMemo(()=>i?{floating:h}:{},[i,h])}function Rr(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,s]=t[e]||[0,0],[l,c]=t[a]||[0,0];s>=r!=c>=r&&n<=(l-i)*(r-s)/(c-s)+i&&(o=!o)}return o}function Ir(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();const u=e=>{let{x:n,y:u,placement:d,elements:p,onClose:h,nodeId:f,tree:g}=e;return function(e){function m(){clearTimeout(o),h()}if(clearTimeout(o),!p.domReference||!p.floating||null==d||null==n||null==u)return;const{clientX:v,clientY:y}=e,A=[v,y],w=U(e),b="mouseleave"===e.type,_=P(p.floating,w),C=P(p.domReference,w),E=p.domReference.getBoundingClientRect(),S=p.floating.getBoundingClientRect(),O=d.split("-")[0],x=n>S.right-S.width/2,D=u>S.bottom-S.height/2,M=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(A,E),T=S.width>E.width,R=S.height>E.height,I=(T?E:S).left,F=(T?E:S).right,k=(R?E:S).top,L=(R?E:S).bottom;if(_&&(i=!0,!b))return;if(C&&(i=!1),C&&!b)return void(i=!0);if(b&&c(e.relatedTarget)&&P(p.floating,e.relatedTarget))return;if(g&&_n(g.nodesRef.current,f).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===O&&u>=E.bottom-1||"bottom"===O&&u<=E.top+1||"left"===O&&n>=E.right-1||"right"===O&&n<=E.left+1)return m();let B=[];switch(O){case"top":B=[[I,E.top+1],[I,S.bottom-1],[F,S.bottom-1],[F,E.top+1]];break;case"bottom":B=[[I,S.top+1],[I,E.bottom-1],[F,E.bottom-1],[F,S.top+1]];break;case"left":B=[[S.right-1,L],[S.right-1,k],[E.left+1,k],[E.left+1,L]];break;case"right":B=[[E.right-1,L],[E.right-1,k],[S.left+1,k],[S.left+1,L]]}if(!Rr([v,y],B)){if(i&&!M)return m();if(!b&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;const o=e-a,i=t-s,c=Math.sqrt(o*o+i*i);return a=e,s=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return m()}Rr([v,y],function(e){let[n,r]=e;switch(O){case"top":return[[T?n+t/2:x?n+4*t:n-4*t,r+t+1],[T?n-t/2:x?n+4*t:n-4*t,r+t+1],[S.left,x||T?S.bottom-t:S.top],[S.right,x?T?S.bottom-t:S.top:S.bottom-t]];case"bottom":return[[T?n+t/2:x?n+4*t:n-4*t,r-t],[T?n-t/2:x?n+4*t:n-4*t,r-t],[S.left,x||T?S.top+t:S.bottom],[S.right,x?T?S.top+t:S.bottom:S.top+t]];case"left":{const e=[n+t+1,R?r+t/2:D?r+4*t:r-4*t],o=[n+t+1,R?r-t/2:D?r+4*t:r-4*t];return[[D||R?S.right-t:S.left,S.top],[D?R?S.right-t:S.left:S.right-t,S.bottom],e,o]}case"right":return[[n-t,R?r+t/2:D?r+4*t:r-4*t],[n-t,R?r-t/2:D?r+4*t:r-4*t],[D||R?S.left+t:S.right,S.top],[D?R?S.left+t:S.right:S.left+t,S.bottom]]}}([n,u]))?!i&&r&&(o=window.setTimeout(m,40)):m()}}};return u.__options={blockPointerEvents:n},u}},24328(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:128,height:128,viewBox:"0 0 128 128"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#0BB",fillRule:"nonzero",d:"M64 48c4.467 0 8.834.77 12.942 2.207V56l.027.578A6 6 0 0 0 82.942 62h7.836l.578-.027.634-.095a6 6 0 0 0 1.577-.564 39.9 39.9 0 0 1 5.748 8.349C115.157 69.822 128 82.838 128 98.814c0 24.663-16.076 28.932-24.84 29.175l-.824.011-79.465-.01C18.477 127.864 0 126.236 0 105.574c0-12.365 9.993-22.427 22.272-22.427q1.127 0 2.261.116c1.362-11.619 7.66-21.661 16.677-28.025V56l.028.578A6 6 0 0 0 47.211 62l6.509-.001c-8.881 3.59-15.608 11.695-17.135 21.676l-.13.952c-.72 6.09-6.211 10.542-12.473 10.259l-.7-.052a10 10 0 0 0-1.01-.051C16.706 94.783 12 99.473 12 105.39c0 5.139 1.429 7.426 4.194 8.906 1.916 1.026 4.282 1.54 6.28 1.668l.833.032 78.858.003.655-.008c8.363-.23 13.18-4.125 13.18-17.29 0-9.242-7.172-16.721-16.001-17.237l-.807-.027c-4.493-.045-8.584-2.51-10.6-6.386C83.798 65.838 74.196 60 64 60c-1.709 0-3.387.158-5.02.462A5.98 5.98 0 0 0 60.971 56l-.001-7.885q1.5-.114 3.03-.115"}),o.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M92.291 16.05c1.873 0 3.184 1.496 3.256 3.381l.003.178v.863c0 1.908-1.254 3.466-3.09 3.559l-.175.004h-1.507V56h-7.836V16.755h.04v-.706zM54.971.322l11.66 17.44L78.57.324h29.435c11.088 0 20.21 9.21 19.99 20.519-.215 10.837-8.808 19.53-19.4 19.703l-.32.002-1.755-.092V56h-7.835V16.05h9.297c.928-.004 1.82.37 2.479 1.037a3.6 3.6 0 0 1 1.025 2.333l.005.19v.862a3.6 3.6 0 0 1-1.03 2.522 3.47 3.47 0 0 1-2.294 1.032l-.185.005h-1.462v8.198h1.542c6.515 0 11.908-5.393 11.778-12.034-.124-6.319-5.12-11.736-11.314-11.88l-.252-.002H82.08l-12.525 18.11c-.744.856-1.596 1.57-2.924 1.57-1.253 0-2.146-.637-2.87-1.429l-.127-.14-8.662-13.706V56h-7.76V.323zM37.374.562l.207.133c1.735 1.187 2.236 3.548 1.168 5.353l-.101.163L21.8 31.91h13.915c1.743 0 3.166 1.396 3.25 3.152l.004.166v1.353c0 1.777-1.37 3.228-3.092 3.314l-.162.005H16.563L7.17 54.234a3.854 3.854 0 0 1-5.25 1.191l-.192-.126a3.98 3.98 0 0 1-1.654-2.532 4.04 4.04 0 0 1 .477-2.806l.11-.177L32.139 1.763A3.9 3.9 0 0 1 34.622.075a3.83 3.83 0 0 1 2.752.487"}))))}},93180(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#0BB",fillRule:"nonzero",d:"M8 6c.558 0 1.104.096 1.618.276V7l.003.072a.75.75 0 0 0 .747.678h.98l.071-.003.08-.012a.8.8 0 0 0 .195-.07c.28.31.524.66.72 1.043 1.98.02 3.586 1.647 3.586 3.644 0 3.083-2.01 3.616-3.105 3.647l-.103.001-9.933-.001C2.309 15.983 0 15.779 0 13.197c0-1.546 1.25-2.804 2.784-2.804q.14 0 .283.015A5 5 0 0 1 5.15 6.905V7l.004.072a.75.75 0 0 0 .746.678l.817-.001a3.5 3.5 0 0 0-2.145 2.71l-.016.12c-.09.76-.777 1.317-1.56 1.282l-.087-.007a1 1 0 0 0-.126-.006c-.696 0-1.284.586-1.284 1.326 0 .642.179.928.524 1.113.24.128.535.193.785.209l.104.004h9.858l.082-.001c1.045-.029 1.647-.516 1.647-2.161 0-1.155-.897-2.09-2-2.155l-.101-.003a1.5 1.5 0 0 1-1.325-.799A3.49 3.49 0 0 0 8 7.5q-.322 0-.63.058A.74.74 0 0 0 7.621 7v-.986Q7.809 6 8 6"}),o.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M11.536 2.006c.235 0 .398.187.407.423v.13c0 .239-.156.433-.386.445h-.21V7h-.98V2.094h.006v-.088zM6.871.04 8.33 2.22 9.82.04h3.68A2.513 2.513 0 0 1 16 2.605c-.027 1.355-1.102 2.441-2.425 2.463h-.04l-.22-.011V7h-.98V2.006h1.163c.116 0 .227.046.31.13a.45.45 0 0 1 .128.292v.131a.45.45 0 0 1-.128.315.43.43 0 0 1-.287.13h-.206v1.025h.193c.814 0 1.488-.674 1.472-1.505-.015-.79-.64-1.467-1.414-1.485H10.26L8.694 3.303c-.093.107-.2.196-.365.196-.157 0-.268-.08-.36-.178l-.015-.018L6.871 1.59V7h-.97V.04zm-2.2.03.027.017c.217.148.28.443.146.669l-.013.02L2.725 3.99h1.74a.41.41 0 0 1 .406.394v.19a.41.41 0 0 1-.386.414H2.07L.896 6.78a.48.48 0 0 1-.656.15l-.024-.017a.505.505 0 0 1-.147-.667l.014-.022L4.017.22a.48.48 0 0 1 .654-.15"}))))}},83756(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:32,height:15,viewBox:"0 0 32 15"},e),r||(r=i.createElement("defs",null,i.createElement("linearGradient",{id:"a",x1:"-.888%",x2:"98.988%",y1:"50.264%",y2:"50.264%"},i.createElement("stop",{offset:"0%",stopColor:"#23B2AC"}),i.createElement("stop",{offset:"100%",stopColor:"#102931"})))),o||(o=i.createElement("path",{fill:"url(#a)",fillRule:"evenodd",d:"M18.578 1.064h7.515l.674.011c2.595 0 4.283 2.113 4.232 4.706-.048 2.431-1.56 4.4-3.949 4.515l-.22.005h-.113v3.538h-1.813V6.677c0-.521.349-.944.87-.944.478 0 .873.357.934.819l.01.108v1.733h.063c1.523 0 2.415-1.237 2.384-2.76-.028-1.41-.794-2.638-2.16-2.734l-.175-.006h-3.257c.62.798.91 1.8.888 2.888-.048 2.431-1.559 4.4-3.948 4.515l-.22.005h-.114v3.538h-1.813V6.677c0-.521.348-.944.87-.944.478 0 .873.357.934.819l.009.108v1.733h.064c1.524 0 2.342-1.237 2.311-2.76-.028-1.41-.726-2.638-2.087-2.734l-.174-.006h-.89l-2.94 4.168c-.175.197-.375.36-.685.36-.266 0-.463-.12-.623-.278l-.078-.082-2.026-3.143v9.921h-1.815V1.075h1.815l2.727 4zM9.27 1c.14 0 .28.032.41.098l.104.062a.91.91 0 0 1 .307 1.166l-.057.099-3.94 5.895h3.252c.385 0 .704.286.754.658l.007.103v.31a.76.76 0 0 1-.658.754l-.103.007H4.87L2.672 13.44a.91.91 0 0 1-.668.4h-.18a.9.9 0 0 1-.317-.093l-.107-.063a.91.91 0 0 1-.4-.668v-.18a.9.9 0 0 1 .092-.318l.058-.099L8.511 1.404A.91.91 0 0 1 9.27 1"})))}},29064(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:256,height:256,viewBox:"0 0 256 256"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#0BB",fillRule:"nonzero",d:"M128 96a78.3 78.3 0 0 1 25.882 4.415l.002 11.585.055 1.156c.581 6.085 5.707 10.844 11.945 10.844h15.672l1.156-.055 1.268-.19a12 12 0 0 0 3.153-1.126 79.7 79.7 0 0 1 11.497 16.697c31.685.317 57.37 26.35 57.37 58.303 0 49.326-32.153 57.863-49.678 58.348l-1.65.023-158.93-.02C36.954 255.727 0 252.471 0 211.146c0-24.73 19.985-44.853 44.544-44.853q2.255 0 4.523.232c2.722-23.237 15.32-43.323 33.354-56.05V112l.055 1.156C83.058 119.24 88.184 124 94.421 124l13.016-.001c-17.76 7.18-31.213 23.39-34.267 43.35l-.259 1.906c-1.442 12.179-12.424 21.083-24.948 20.516l-1.397-.102a20 20 0 0 0-2.022-.103c-11.132 0-20.544 9.38-20.544 21.216 0 10.277 2.857 14.853 8.387 17.812 3.832 2.052 8.564 3.078 12.562 3.336l1.664.064 157.718.006 1.31-.016c16.726-.458 26.359-8.25 26.359-34.58 0-18.484-14.345-33.443-32.002-34.473l-1.614-.055c-8.987-.09-17.169-5.018-21.201-12.773C167.599 131.676 148.394 120 128 120a55 55 0 0 0-10.038.924 11.96 11.96 0 0 0 3.98-8.924l-.003-15.77A80 80 0 0 1 128 96"}),o.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M184.583 32.099c3.745 0 6.366 2.994 6.51 6.764l.007.355v1.727c0 3.816-2.507 6.931-6.181 7.116l-.348.01h-3.015V112h-15.672V33.509h.082v-1.41zM109.942.645l23.319 34.882L157.14.645h58.871c22.176 0 40.422 18.422 39.98 41.039-.43 21.675-17.616 39.06-38.798 39.406l-.643.005-3.51-.185V112h-15.669V32.099h18.594a6.92 6.92 0 0 1 4.957 2.075 7.2 7.2 0 0 1 2.05 4.667l.01.377v1.727a7.2 7.2 0 0 1-2.06 5.042 6.93 6.93 0 0 1-4.587 2.066l-.37.008h-2.924V64.46h3.085c13.029 0 23.815-10.787 23.555-24.069-.248-12.637-10.24-23.472-22.628-23.759l-.504-.006H164.16l-25.05 36.221c-1.489 1.712-3.193 3.14-5.848 3.14-2.508 0-4.293-1.274-5.742-2.857l-.252-.283-17.325-27.41V112h-15.52V.645zm-35.194.479.413.267c3.471 2.373 4.474 7.095 2.338 10.706l-.203.325L43.6 63.82h27.83c3.486 0 6.332 2.794 6.501 6.305l.008.331v2.707c0 3.555-2.74 6.456-6.184 6.629l-.325.008H33.126l-18.787 28.666c-2.328 3.54-6.959 4.562-10.5 2.383l-.383-.251a7.96 7.96 0 0 1-3.309-5.065 8.08 8.08 0 0 1 .954-5.611l.22-.355L64.279 3.525A7.79 7.79 0 0 1 69.245.15a7.67 7.67 0 0 1 5.503.974"}))))}},43078(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#0BB",fillRule:"nonzero",d:"M9.58 14.372a1.5 1.5 0 0 0 1.339.823h1.936l.144-.006a1.5 1.5 0 0 0 1.356-1.494v-1.558a10 10 0 0 1 2.669-.083v1.641a1.5 1.5 0 0 0 1.5 1.5h1.933l.145-.006a1.5 1.5 0 0 0 1.327-1.2 10 10 0 0 1 2.9 3.427c3.96.04 7.171 3.294 7.171 7.288 0 6.165-4.02 7.232-6.21 7.293l-.206.003-19.866-.003C4.619 31.966 0 31.56 0 26.393c0-3.09 2.498-5.606 5.568-5.606q.282 0 .565.029a10 10 0 0 1 3.354-6.365ZM16 15c-3.412 0-6.335 2.526-6.854 5.919l-.032.238c-.18 1.522-1.553 2.635-3.119 2.564l-.174-.012a3 3 0 0 0-.253-.013C4.177 23.696 3 24.868 3 26.348c0 1.284.357 1.856 1.048 2.226.48.257 1.07.385 1.57.417l.209.008L25.54 29l.164-.002c2.09-.057 3.295-1.031 3.295-4.323 0-2.31-1.793-4.18-4-4.309l-.202-.007c-1.123-.01-2.146-.627-2.65-1.596C20.95 16.46 18.549 15 16 15m-3.146-2.487v1.182H10.92v-.287a10 10 0 0 1 1.935-.895m7.604.56v.622h-1.934v-1.363c.67.18 1.318.429 1.934.742"}),o.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M18.75.068h8.016l.72.012c2.766 0 4.568 2.253 4.513 5.02-.052 2.593-1.663 4.694-4.212 4.815l-.234.006h-.121v3.774h-1.934v-7.64c0-.556.372-1.006.927-1.006.51 0 .932.38.997.873l.01.115v1.85h.068c1.625 0 2.576-1.32 2.543-2.945-.03-1.504-.847-2.814-2.305-2.917l-.185-.006h-3.475c.661.851.97 1.92.948 3.081-.052 2.593-1.663 4.694-4.212 4.815l-.235.006h-.122v3.774h-1.933v-7.64c0-.556.371-1.006.927-1.006.51 0 .932.38.997.873l.01.115v1.85h.068c1.625 0 2.498-1.32 2.465-2.945-.03-1.504-.775-2.814-2.227-2.917l-.185-.006h-.95l-3.136 4.446c-.186.21-.4.385-.73.385-.284 0-.493-.129-.665-.297l-.082-.088-2.161-3.353v10.583h-1.936V.08h1.936l2.908 4.266zM8.82 0c.15 0 .3.034.44.105l.11.065a.973.973 0 0 1 .327 1.244l-.061.106-4.203 6.288h3.47c.41 0 .75.305.804.701l.007.11v.332c0 .41-.305.75-.701.804l-.11.008H4.127l-2.343 3.506a.97.97 0 0 1-.713.426H.88a1 1 0 0 1-.34-.098l-.114-.067A.97.97 0 0 1 0 12.817v-.192a1 1 0 0 1 .098-.339l.062-.106L8.012.431A.97.97 0 0 1 8.821 0"}))))}},17911(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:512,height:512,viewBox:"0 0 512 512"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#0BB",fillRule:"nonzero",d:"M256 192c17.867 0 35.335 3.08 51.767 8.83V224l.11 2.311c1.163 12.17 11.415 21.689 23.89 21.689h31.345l2.312-.11 2.536-.38a23.9 23.9 0 0 0 6.306-2.252 159.4 159.4 0 0 1 22.995 33.394C460.629 279.287 512 331.353 512 395.257c0 98.653-64.305 115.726-99.357 116.697l-3.297.046-317.863-.041C73.908 511.455 0 504.944 0 422.294c0-49.459 39.97-89.705 89.088-89.705 3.004 0 6.025.154 9.045.463 5.445-46.475 30.64-86.645 66.708-112.1l.002 3.048.11 2.311c1.163 12.17 11.415 21.689 23.89 21.689l26.032-.003c-35.522 14.36-62.426 46.78-68.535 86.702l-.517 3.81c-2.884 24.358-24.849 42.168-49.897 41.033l-2.795-.205a40 40 0 0 0-4.043-.206c-22.263 0-41.088 18.76-41.088 42.432 0 20.555 5.715 29.706 16.774 35.626 7.665 4.103 17.128 6.155 25.125 6.671l3.327.129 315.435.011 2.62-.031c33.453-.917 52.719-16.502 52.719-69.162 0-36.967-28.69-66.884-64.004-68.946l-3.228-.11c-17.973-.178-34.337-10.036-42.403-25.544C335.198 263.353 296.788 240 256 240c-6.834 0-13.546.633-20.074 1.848 4.886-4.39 7.958-10.76 7.958-17.848l-.004-31.54q6.005-.459 12.12-.46"}),o.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M369.165 64.198c7.491 0 12.733 5.988 13.023 13.528l.012.71v3.453c0 7.633-5.015 13.863-12.363 14.234l-.695.017h-6.03V224h-31.345V67.018h.164v-2.82zM219.884 1.29l46.637 69.765 47.76-69.765h117.744c44.351 0 80.842 36.844 79.96 82.078-.861 43.35-35.233 78.12-77.598 78.811l-1.286.01-7.018-.369V224h-31.339V64.198h37.187a13.85 13.85 0 0 1 9.915 4.15 14.4 14.4 0 0 1 4.1 9.334l.02.755v3.452a14.4 14.4 0 0 1-4.122 10.085 13.86 13.86 0 0 1-9.172 4.131l-.74.017h-5.849v32.796h6.17c26.059 0 47.632-21.574 47.111-48.138-.496-25.274-20.48-46.944-45.256-47.517l-1.007-.012H328.317l-50.1 72.442c-2.976 3.422-6.386 6.278-11.696 6.278-5.014 0-8.585-2.547-11.483-5.714l-.505-.564-34.65-54.822V224h-31.04V1.29zm-70.387.957.825.534c6.943 4.747 8.948 14.191 4.675 21.412l-.406.65L87.2 127.642h55.661c6.972 0 12.663 5.587 13.002 12.61l.016.663v5.414c0 7.108-5.48 12.912-12.368 13.257l-.65.016H66.252l-37.573 57.332c-4.656 7.08-13.918 9.123-21 4.767l-.767-.504c-3.436-2.347-5.816-5.991-6.617-10.129a16.16 16.16 0 0 1 1.907-11.222l.441-.71L128.556 7.05c2.302-3.505 5.875-5.933 9.934-6.75a15.33 15.33 0 0 1 11.007 1.947"}),o.createElement("text",{fill:"#5A6872",fontFamily:"Lato-Bold, Lato",fontSize:54,fontWeight:"bold"},o.createElement("tspan",{x:-647,y:510},"Comments")))))}},13223(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,viewBox:"0 0 64 64"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#0BB",fillRule:"nonzero",d:"M32 24c2.233 0 4.417.385 6.47 1.104V28l.015.289A3 3 0 0 0 41.47 31h3.918l.289-.014.317-.047q.42-.087.787-.281a19.9 19.9 0 0 1 2.876 4.174C57.578 34.91 64 41.419 64 49.407c0 12.332-8.038 14.466-12.42 14.587l-.412.006-39.733-.005C9.24 63.932 0 63.118 0 52.787c0-6.183 4.996-11.213 11.136-11.213q.564 0 1.13.057c.681-5.809 3.83-10.83 8.339-14.012V28l.014.289A3 3 0 0 0 23.605 31l3.256-.001a13.99 13.99 0 0 0-8.569 10.838l-.064.477c-.36 3.044-3.106 5.27-6.237 5.129l-.35-.026a5 5 0 0 0-.505-.026C8.353 47.391 6 49.736 6 52.695c0 2.57.714 3.714 2.097 4.454.958.512 2.14.769 3.14.834l.416.016 39.43.001.327-.004c4.182-.115 6.59-2.063 6.59-8.645 0-4.621-3.586-8.36-8-8.618l-.404-.014c-2.247-.022-4.292-1.255-5.3-3.193C41.9 32.919 37.098 30 32 30c-.855 0-1.695.08-2.512.231A2.99 2.99 0 0 0 30.485 28v-3.942Q31.235 24 32 24"}),o.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M46.146 8.025c.936 0 1.591.748 1.627 1.69l.002.09v.431c0 .954-.627 1.733-1.545 1.78l-.087.002h-.754V28h-3.918V8.377h.02v-.352zM27.486.16l5.83 8.72 5.97-8.72h14.717c5.544 0 10.105 4.606 9.995 10.26-.108 5.419-4.404 9.765-9.7 9.851l-.16.002-.878-.046V28h-3.917V8.025h4.648a1.73 1.73 0 0 1 1.24.519c.307.311.489.727.512 1.166l.003.095v.431a1.8 1.8 0 0 1-.515 1.26 1.73 1.73 0 0 1-1.147.517l-.093.002h-.73v4.1h.77c3.258 0 5.955-2.697 5.89-6.017-.062-3.16-2.56-5.869-5.657-5.94l-.126-.002H41.04l-6.263 9.056c-.372.427-.798.784-1.462.784-.627 0-1.073-.318-1.435-.714l-.063-.07-4.332-6.853V28h-3.88V.161zm-8.799.12.103.067a2.01 2.01 0 0 1 .585 2.676l-.051.081-8.424 12.85h6.958c.871 0 1.582.699 1.625 1.577l.002.082v.677c0 .889-.685 1.614-1.546 1.657l-.081.002H8.28l-4.696 7.167a1.927 1.927 0 0 1-2.625.596l-.096-.063a2 2 0 0 1-.827-1.266 2.02 2.02 0 0 1 .238-1.403l.055-.09L16.07.882A1.95 1.95 0 0 1 17.31.038a1.92 1.92 0 0 1 1.376.243"}))))}},65104(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m26.093 5.644.674.011c2.595 0 4.283 2.113 4.232 4.707-.046 2.306-1.408 4.197-3.588 4.482a9.4 9.4 0 0 0-2.506-.74v-2.847c0-.521.348-.943.869-.943.478 0 .873.356.934.818l.01.108v1.734h.063c1.523 0 2.415-1.238 2.384-2.76-.028-1.41-.794-2.64-2.16-2.735l-.175-.006h-3.257c.62.798.91 1.8.888 2.889-.03 1.51-.625 2.844-1.645 3.663a9.4 9.4 0 0 0-4.451 1.485l.001-4.253c0-.521.348-.943.87-.943.478 0 .873.356.934.818l.009.108v1.734h.064c1.524 0 2.342-1.238 2.311-2.76-.028-1.41-.726-2.64-2.087-2.735l-.174-.006h-.89l-2.94 4.169c-.175.196-.375.36-.685.36-.266 0-.463-.12-.623-.279l-.078-.081-2.026-3.144v9.922h-1.815V5.655h1.815l2.727 4 2.8-4.011zM9.27 5.58c.14 0 .28.032.41.099l.104.06a.91.91 0 0 1 .307 1.167l-.057.099-3.94 5.895h3.252c.385 0 .704.287.754.658l.007.103v.31a.76.76 0 0 1-.658.755l-.103.007H4.87L2.672 18.02a.91.91 0 0 1-.668.4h-.18a.9.9 0 0 1-.317-.092l-.107-.064a.91.91 0 0 1-.4-.668v-.18a.9.9 0 0 1 .092-.317l.058-.1L8.511 5.985a.91.91 0 0 1 .759-.404"}),o.createElement("path",{d:"M23.5 15.5c4.411 0 8 3.589 8 8s-3.589 8-8 8c-4.412 0-8-3.589-8-8s3.588-8 8-8m0 3.124a.997.997 0 0 0-.996.997v2.883h-2.885a.997.997 0 0 0 0 1.992h2.885v2.883a.996.996 0 1 0 1.992 0v-2.883h2.883a.997.997 0 0 0 0-1.992h-2.883V19.62a.997.997 0 0 0-.996-.997"}))))}},47191(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#0BB",fillRule:"nonzero",d:"M9.58 14.372a1.5 1.5 0 0 0 1.339.823h1.936l.144-.006a1.5 1.5 0 0 0 1.356-1.494v-1.558a10 10 0 0 1 2.669-.083v1.641a1.5 1.5 0 0 0 1.5 1.5h1.933l.145-.006a1.5 1.5 0 0 0 1.327-1.2 10 10 0 0 1 2.9 3.427c3.96.04 7.171 3.294 7.171 7.288 0 6.165-4.02 7.232-6.21 7.293l-.206.003-19.866-.003C4.619 31.966 0 31.56 0 26.393c0-3.09 2.498-5.606 5.568-5.606q.282 0 .565.029a10 10 0 0 1 3.354-6.365ZM16 15c-3.412 0-6.335 2.526-6.854 5.919l-.032.238c-.18 1.522-1.553 2.635-3.119 2.564l-.174-.012a3 3 0 0 0-.253-.013C4.177 23.696 3 24.868 3 26.348c0 1.284.357 1.856 1.048 2.226.48.257 1.07.385 1.57.417l.209.008L25.54 29l.164-.002c2.09-.057 3.295-1.031 3.295-4.323 0-2.31-1.793-4.18-4-4.309l-.202-.007c-1.123-.01-2.146-.627-2.65-1.596C20.95 16.46 18.549 15 16 15m-3.146-2.487v1.182H10.92v-.287a10 10 0 0 1 1.935-.895m7.604.56v.622h-1.934v-1.363c.67.18 1.318.429 1.934.742"}),o.createElement("path",{fill:"#4B4B4B",d:"M18.75.068h8.016l.72.012c2.766 0 4.568 2.253 4.513 5.02-.052 2.593-1.663 4.694-4.212 4.815l-.234.006h-.121v3.774h-1.934v-7.64c0-.556.372-1.006.927-1.006.51 0 .932.38.997.873l.01.115v1.85h.068c1.625 0 2.576-1.32 2.543-2.945-.03-1.504-.847-2.814-2.305-2.917l-.185-.006h-3.475c.661.851.97 1.92.948 3.081-.052 2.593-1.663 4.694-4.212 4.815l-.235.006h-.122v3.774h-1.933v-7.64c0-.556.371-1.006.927-1.006.51 0 .932.38.997.873l.01.115v1.85h.068c1.625 0 2.498-1.32 2.465-2.945-.03-1.504-.775-2.814-2.227-2.917l-.185-.006h-.95l-3.136 4.446c-.186.21-.4.385-.73.385-.284 0-.493-.129-.665-.297l-.082-.088-2.161-3.353v10.583h-1.936V.08h1.936l2.908 4.266zM8.82 0c.15 0 .3.034.44.105l.11.065a.973.973 0 0 1 .327 1.244l-.061.106-4.203 6.288h3.47c.41 0 .75.305.804.701l.007.11v.332c0 .41-.305.75-.701.804l-.11.008H4.127l-2.343 3.506a.97.97 0 0 1-.713.426H.88a1 1 0 0 1-.34-.098l-.114-.067A.97.97 0 0 1 0 12.817v-.192a1 1 0 0 1 .098-.339l.062-.106L8.012.431A.97.97 0 0 1 8.821 0"}))))}},93510(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m18.958 2.225 7.058 7.059A12.4 12.4 0 0 0 20.5 8C13.605 8 8 13.605 8 20.5c0 1.978.461 3.85 1.282 5.515l-7.057-7.057a4.183 4.183 0 0 1 0-5.916L13.042 2.225a4.183 4.183 0 0 1 5.916 0"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 4.1c-.722 0-1.308.586-1.308 1.308v3.784h-3.785a1.308 1.308 0 0 0 0 2.616h3.785v3.784a1.307 1.307 0 1 0 2.616 0v-3.784h3.784a1.308 1.308 0 0 0 0-2.616h-3.784v-3.784c0-.722-.586-1.307-1.308-1.307"}))))}},17948(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m18.958 2.225 10.817 10.817a4.183 4.183 0 0 1 0 5.916l-1.885 1.883L23.576 10h-6.73l-6.712 16.866-7.909-7.908a4.183 4.183 0 0 1 0-5.916L13.042 2.225a4.183 4.183 0 0 1 5.916 0"}),o.createElement("path",{d:"m22.559 11.5 7.652 19.23h-3.555q-.597 0-.983-.277a1.44 1.44 0 0 1-.536-.713l-1.167-2.908h-7.517l-1.167 2.908q-.135.38-.53.685-.393.306-.963.306h-3.582L17.864 11.5zm-2.348 4.07a27 27 0 0 1-.447 1.534q-.231.705-.435 1.221l-1.818 5.387h5.4l-1.818-5.414-.414-1.215q-.237-.698-.468-1.512"}))))}},41324(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m18.958 2.225 10.817 10.817c.495.495.84 1.083 1.035 1.707a3.273 3.273 0 0 0-4.402.213L23 18.37l-3.41-3.41a3.273 3.273 0 0 0-4.633.002 3.273 3.273 0 0 0 .002 4.628L18.37 23l-3.41 3.411a3.274 3.274 0 0 0-.211 4.398 4.17 4.17 0 0 1-1.707-1.034L2.225 18.958a4.183 4.183 0 0 1 0-5.916L13.042 2.225a4.183 4.183 0 0 1 5.916 0"}),o.createElement("path",{d:"M29.98 27.472 25.51 23l4.47-4.471a1.774 1.774 0 1 0-2.51-2.508L23 20.491l-4.471-4.47a1.773 1.773 0 1 0-2.509 2.508L20.491 23l-4.47 4.472a1.774 1.774 0 1 0 2.508 2.509L23 25.509l4.472 4.472a1.773 1.773 0 0 0 2.508 0 1.774 1.774 0 0 0 0-2.51"}))))}},3530(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m18.958 2.225 10.817 10.817a4.183 4.183 0 0 1 0 5.916l-.177.175-5.136-4.635a3.88 3.88 0 0 0-5.23.031l-.154.15a3.82 3.82 0 0 0 .193 5.504L22.393 23l-3.124 2.82a3.82 3.82 0 0 0-.913 4.453 4.18 4.18 0 0 1-5.314-.498L2.225 18.958a4.183 4.183 0 0 1 0-5.916L13.042 2.225a4.183 4.183 0 0 1 5.916 0"}),o.createElement("path",{d:"M20.275 19.069 24.632 23l-4.36 3.935a2.32 2.32 0 0 0-.114 3.345 2.38 2.38 0 0 0 3.3.108l6.272-5.66a2.326 2.326 0 0 0-.002-3.456l-6.272-5.661a2.38 2.38 0 0 0-3.301.113 2.32 2.32 0 0 0 .12 3.345"}))))}},38670(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.715 14.48a3.88 3.88 0 0 0-5.176.018l-6.272 5.66A3.83 3.83 0 0 0 18 23c0 1.084.461 2.117 1.267 2.842l1.905 1.72-2.214 2.213a4.183 4.183 0 0 1-5.916 0L2.225 18.958a4.183 4.183 0 0 1 0-5.916L13.042 2.225a4.183 4.183 0 0 1 5.916 0l10.817 10.817c.423.423.736.914.94 1.438"}),o.createElement("path",{d:"M29.725 19.069 25.37 23l4.36 3.935a2.32 2.32 0 0 1 .113 3.345 2.38 2.38 0 0 1-3.299.108l-6.272-5.66A2.33 2.33 0 0 1 19.5 23c0-.66.28-1.287.772-1.729l6.272-5.66a2.38 2.38 0 0 1 3.3.113 2.32 2.32 0 0 1-.12 3.345"}))))}},56826(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd",opacity:.9},o.createElement("path",{fillOpacity:.4,d:"m18.958 2.225 10.817 10.817c.616.616 1 1.376 1.15 2.171a11.6 11.6 0 0 0-2.13-2.629 11.6 11.6 0 0 0-8.332-3.076c-3.165.109-6.081 1.447-8.183 3.762-.646.711-1.197 1.5-1.647 2.35a2.94 2.94 0 0 0-2.82.22 2.894 2.894 0 0 0-.821 4.038l2.743 4.078c.03.054.097.146.189.243.016.02.03.035.063.071.09.101.158.171.258.258l.15.12.07.049c.123.094.31.203.515.294a2.3 2.3 0 0 0 .602.191q.052.015.262.045c.139.013.139.013.203.017l.095.002.17-.004.134-.01c.055-.006.055-.006.139-.018l.106-.018.127-.026a3 3 0 0 0 .512-.166c.466-.21.832-.493 1.118-.85l3.12-3.5a2.895 2.895 0 0 0-.276-4.12c.945-.75 2.111-1.176 3.377-1.22a5.8 5.8 0 0 1 4.153 1.532 5.6 5.6 0 0 1 1.828 3.957q.026.719-.123 1.402l-4.337 4.338q-.544.124-1.116.144c-1.61.058-2.876 1.398-2.82 3.005a3 3 0 0 0 .082.594 4.18 4.18 0 0 1-5.294-.511L2.225 18.958a4.183 4.183 0 0 1 0-5.916L13.042 2.225a4.183 4.183 0 0 1 5.916 0"}),o.createElement("path",{d:"m11.16 18.309-.552-.82a1.433 1.433 0 0 0-1.972-.394 1.394 1.394 0 0 0-.399 1.947l2.742 4.077c.046.06.046.06.052.065.044.053.044.054.069.08a.917.917 0 0 0 .214.196q.12.091.276.16c.044.022.078.036.12.051.055.018.092.026.152.038a2 2 0 0 0 .19.032c.059.005.059.005.112.006.025-.002.041-.003.109-.004.079-.01.079-.01.112-.017.047-.007.047-.007.117-.022a1.417 1.417 0 0 0 .779-.49l3.166-3.558c.519-.582.46-1.47-.13-1.983a1.44 1.44 0 0 0-1.843-.03 7 7 0 0 1 1.036-1.489c1.307-1.44 3.12-2.27 5.107-2.34 1.95-.063 3.8.62 5.222 1.929a7.1 7.1 0 0 1 2.31 5.007 7.08 7.08 0 0 1-1.95 5.155 7.27 7.27 0 0 1-5.073 2.281c-.786.028-1.4.678-1.373 1.453a1.415 1.415 0 0 0 1.421 1.356l.075-.002a10.1 10.1 0 0 0 7.03-3.172 9.86 9.86 0 0 0 2.715-7.169 9.88 9.88 0 0 0-3.215-6.964 10.1 10.1 0 0 0-7.261-2.681c-2.765.095-5.299 1.258-7.127 3.271a10.15 10.15 0 0 0-2.23 4.031"}))))}},76605(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M17.643 1c.083 0 .163.024.232.067l.049.037 3.431 2.948a.42.42 0 0 1 .14.256l.005.06v9.4a.99.99 0 0 1-1 .982h-2.447A8.6 8.6 0 0 0 16 14.5l-.263.004a8.6 8.6 0 0 0-1.804.246H11.5c-.552 0-1-.44-1-.982V1.982a.99.99 0 0 1 .925-.98L11.5 1zM16.59 5.53h-3.955c-.311 0-.565.128-.565.42v4.134c0 .292.254.53.565.53h3.955c.311 0 .564-.238.564-.53V5.95c0-.292-.253-.42-.564-.42m2.74.879-1.62.854v1.656l1.62.781a.45.45 0 0 0 .405-.037.4.4 0 0 0 .193-.343V6.788a.41.41 0 0 0-.193-.342.45.45 0 0 0-.406-.037M7.143 9.125c.083 0 .163.024.232.067l.049.037L9.5 11.012v2.756c0 .927.64 1.7 1.5 1.92v.4a9 9 0 0 0-2.245 2.281L7.49 15.067l-.021-.043a.28.28 0 0 0-.23-.137.28.28 0 0 0-.193.07l-.046.054-.023.041-1.569 3.505-1.47-1.79-.031-.032a.275.275 0 0 0-.357-.006l-.04.04-.025.036-1.915 3.32h6.252a9 9 0 0 0-.339 1.028l-.016.002a5.56 5.56 0 0 0-3.219 1.72H1c-.552 0-1-.44-1-.982V10.107a.99.99 0 0 1 .925-.98L1 9.126zM2.95 12.268c-.76 0-1.379.63-1.379 1.403s.62 1.403 1.38 1.403 1.378-.63 1.378-1.403-.619-1.403-1.379-1.403"}),o.createElement("path",{fillOpacity:.4,d:"M28.143 9c.083 0 .163.024.232.067l.049.037 3.431 2.948a.42.42 0 0 1 .14.256l.005.06v9.4a.99.99 0 0 1-1 .982h-2.281a6.95 6.95 0 0 0-3.38-3.536h1.894c.297 0 .538-.281.538-.628s-.24-.629-.538-.629h-2.694c-.298 0-.539.282-.539.629q0 .084.018.163a5 5 0 0 0-.337-.074l-.269-.045-.018-.03A9 9 0 0 0 21 16.096v-.41a1.986 1.986 0 0 0 1.499-1.92V9zm-.293 6.443h-3.3c-.304 0-.55.281-.55.628 0 .323.212.588.486.625l.064.004h3.3c.304 0 .55-.281.55-.629 0-.347-.246-.628-.55-.628m.807-2.514H24.63a.629.629 0 0 0-.074 1.252l.074.005h4.028a.629.629 0 1 0 0-1.257"}),o.createElement("path",{d:"M16 16c2.726 0 5.252 1.586 6.503 4.062 2.918.03 5.283 2.47 5.283 5.466 0 3.172-1.393 4.545-2.788 5.11l-.131.05-.29.096-.287.076-.113.025-.222.042-.215.031-.207.022-.198.014-.186.006h-14.7l-.244-.012-.244-.023-.286-.04-.21-.04-.222-.05-.173-.047-.177-.054-.24-.086-.127-.051c-1.134-.478-2.312-1.522-2.312-3.801 0-2.319 1.84-4.206 4.102-4.206q.207 0 .416.022C9.162 18.87 12.276 16 16 16"}))))}},56385(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M2.725 1C1.772 1 1 1.78 1 2.74v26.52c0 .96.772 1.74 1.725 1.74h26.55c.953 0 1.725-.78 1.725-1.74V2.74c0-.46-.182-.904-.505-1.23a1.72 1.72 0 0 0-1.22-.51zm5.221 13.9v12.823c.014.59-.434 1.09-1.022 1.14a1.07 1.07 0 0 1-1.12-1.07V14.899a4.001 4.001 0 0 1 0-7.707V4.101a1.12 1.12 0 0 1 1.022-1.143 1.076 1.076 0 0 1 1.12 1.073v3.14a4.001 4.001 0 0 1 0 7.706zm9.063 5.36v7.456a1.117 1.117 0 0 1-1.025 1.14 1.07 1.07 0 0 1-1.12-1.07V20.26a4.001 4.001 0 0 1 0-7.71V4.1a1.12 1.12 0 0 1 1.025-1.142 1.076 1.076 0 0 1 1.12 1.073v8.5a4.001 4.001 0 0 1 0 7.71zm9.175 4.027v3.43c.013.59-.434 1.089-1.022 1.14a1.07 1.07 0 0 1-1.12-1.07v-3.5a4.001 4.001 0 0 1 0-7.71V4.101a1.12 1.12 0 0 1 1.021-1.143 1.076 1.076 0 0 1 1.12 1.073v12.527a4.001 4.001 0 0 1 0 7.71z",opacity:.4}),o.createElement("path",{fillRule:"nonzero",d:"M25.114 17.847a2.575 2.575 0 1 0 0 5.15 2.575 2.575 0 0 0 0-5.15M15.936 13.823a2.575 2.575 0 1 0-.006 5.151 2.575 2.575 0 0 0 .006-5.15M6.89 8.46a2.579 2.579 0 1 0-.007 5.157 2.579 2.579 0 0 0 .006-5.158"}))))}},18051(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m9.158 11.8.237.355.061.085.075.097.066.078a2.33 2.33 0 0 0 1.752.786l.118-.003.149-.013.11-.015.1-.017.173-.043c.458-.132.864-.4 1.164-.765l.071-.094.356 1.245.032.097.038.108.04.097a2.36 2.36 0 0 0 1.928 1.393l.147.008.181-.003.124-.01.1-.01.175-.032a2.34 2.34 0 0 0 1.597-1.242l.85-1.701 9.727-.001v2.866a2.484 2.484 0 0 0-3.232.493 2.44 2.44 0 0 0-.57 1.449 2.5 2.5 0 0 0-1.445.402l-.158.113v-3.196l-.012-.18-.009-.078-.033-.178-.044-.152a1.83 1.83 0 0 0-.88-1.028l-.16-.074-.166-.06a1.84 1.84 0 0 0-1.684.33l-.125.11-5.47 5.348H9.5L9.499 19H6a3 3 0 0 1-2.995-2.824L3 16v-3.8h4.85l.101-.003.114-.007.1-.01.185-.033q.37-.082.692-.271zM25.529 1a3 3 0 0 1 2.995 2.824L28.53 4v3.502L17.35 7.501l-.104.003-.12.009-.104.01-.175.032-.062.015-.675-2.365-.032-.099L16 4.902a2.36 2.36 0 0 0-1.928-1.392l-.172-.009-.174.003-.119.01-.106.011-.173.033a2.35 2.35 0 0 0-1.582 1.245l-.709 1.415-.07-.073a2.37 2.37 0 0 0-1.564-.643l-.143.002-.116.008-.1.01-.186.033a2.36 2.36 0 0 0-1.394.895L6.674 7.5 2.999 7.5 3 4a3 3 0 0 1 2.824-2.995L6 1z"}),o.createElement("path",{d:"m21.055 14.095-5.902 5.77H11v5.895h4.406l5.657 5.153a.34.34 0 0 0 .36.06c.122-.052.2-.17.2-.3V14.327a.33.33 0 0 0-.205-.302.34.34 0 0 0-.363.07m6.758 2.301c1.94 1.58 3.187 4.052 3.187 6.331 0 2.275-1.247 4.747-3.182 6.327a.98.98 0 0 1-.623.223.98.98 0 0 1-.75-.348.95.95 0 0 1 .13-1.352c1.502-1.228 2.478-3.146 2.478-4.85 0-1.708-.975-3.624-2.477-4.848a.95.95 0 0 1-.13-1.354.984.984 0 0 1 1.367-.129m-2.6 2.294c1.467 1.053 2.289 2.49 2.289 4.037 0 1.549-.822 2.986-2.292 4.04a.983.983 0 0 1-1.358-.215.953.953 0 0 1 .216-1.341c.977-.7 1.487-1.532 1.487-2.484 0-.95-.51-1.782-1.488-2.484a.95.95 0 0 1-.214-1.34.98.98 0 0 1 1.36-.213M13.84 5l.087.003a.86.86 0 0 1 .701.506l.04.108 1.399 4.899.523-1.046a.85.85 0 0 1 .64-.46l.12-.01h12.5l.107.007a.85.85 0 0 1 0 1.687l-.107.007H17.875l-1.265 2.53a.85.85 0 0 1-.644.46l-.123.01-.073-.004a.86.86 0 0 1-.699-.506l-.039-.107-1.4-4.898-1.522 3.044a.85.85 0 0 1-.588.453l-.11.016-.063.002a.83.83 0 0 1-.631-.282l-.075-.097-1.335-2-.778 1.038a.85.85 0 0 1-.567.333l-.113.008h-6a.85.85 0 0 1-.107-1.694l.107-.006h5.574l1.246-1.66a.86.86 0 0 1 .575-.332L9.36 7a.87.87 0 0 1 .625.285l.073.094 1.186 1.78L13.09 5.47a.85.85 0 0 1 .632-.462z"}))))}},40573(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M21.99 22.997c.502-.006.931.362 1.003.86v6.15a1 1 0 0 1-.886.993H10.004A1 1 0 0 1 9 30.13v-6.14c.004-.505.383-.93.886-.989h3.325v1.064l.021.172a2.66 2.66 0 0 0 2.625 2.246h.257a2.643 2.643 0 0 0 2.64-2.335v-1.15zM13.99 1a1 1 0 0 1 1.003.872v6.135a1 1 0 0 1-.886.986h-3.296V7.914a2.657 2.657 0 0 0-5.304.208v.875H2.004A1.004 1.004 0 0 1 1 8.122V1.986A1 1 0 0 1 1.886 1zm16 0h.117c.465.048.836.411.893.875v6.247a1 1 0 0 1-.882.871h-3.622V7.914a2.66 2.66 0 0 0-5.289-.082v1.165h-3.321a1.01 1.01 0 0 1-.882-.875v-6.25A1 1 0 0 1 17.886 1z",opacity:.4}),o.createElement("path",{d:"M23.857 6.997A1.143 1.143 0 0 1 25.007 8v6.429a3.05 3.05 0 0 1-2.896 2.825H17.95a.78.78 0 0 0-.668.65v6.089a1.154 1.154 0 0 1-1.157 1.004h-.257a1.15 1.15 0 0 1-1.154-1.004v-5.996a.77.77 0 0 0-.671-.747h-3.96A3.054 3.054 0 0 1 7 14.422v-6.3a1.14 1.14 0 0 1 1.143-1.125A1.15 1.15 0 0 1 9.296 8v6.247c.008.38.294.696.672.742h12.036a.77.77 0 0 0 .667-.642V8c.077-.59.591-1.025 1.186-1.003"}))))}},85096(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M27.68 3.35a1 1 0 0 1 .994.884l.007.117v13.754l-3.055 1.659h-.539l.001-1.606-.009-.213-.016-.16-.02-.128-.049-.194c-.358-1.262-1.428-1.892-2.692-1.957l-.184-.006-4.323.002-.047-.093c-.41-.801-1.757-1.285-3.622-1.954l-.821-.296v-1.454c.186-.2.658-.794.704-1.717.13-.097.233-.28.294-.529.094-.395.044-.864-.252-1.125l.067-.17c.22-.541.628-1.55.468-2.334-.18-.885-1.495-1.281-2.719-1.281-.894 0-1.982.22-2.293.824-.343.031-.607.165-.783.398-.485.64-.126 1.801.067 2.425l.04.13c-.305.26-.357.734-.26 1.133.06.249.163.432.293.53.045.904.506 1.438.704 1.627v1.543l-.822.296c-1.865.67-3.213 1.153-3.621 1.954-.46.904-.57 1.34-.595 1.73a.89.89 0 0 0 .884.896l3.023-.001-.002.048v1.682H4.317a1 1 0 0 1-.993-.883l-.007-.117V4.351a1 1 0 0 1 .884-.994l.116-.006z"}),o.createElement("path",{d:"m23.588 18.158-.007-.137c-.068-.663-.64-.98-1.357-1.017L22.08 17H11.51l-.145.004c-.717.037-1.288.354-1.357 1.017l-.007.137v11.384l.007.14c.069.692.64 1.245 1.357 1.311l.145.007h10.57l.145-.007c.717-.066 1.289-.619 1.357-1.311l.007-.14zm6.228 1.176a1.2 1.2 0 0 0-.28.04l-.135.047-4.33 2.353v4.56l4.33 2.151.146.05q.098.025.198.033l.1.005.134-.008a1.2 1.2 0 0 0 .507-.183 1.13 1.13 0 0 0 .507-.818l.007-.126v-6.971l-.007-.125a1.13 1.13 0 0 0-.508-.818 1.2 1.2 0 0 0-.53-.185z"}),o.createElement("path",{d:"m23.588 18.158-.007-.137-.02-.128c-.116-.532-.587-.81-1.185-.877l-.152-.012L22.08 17H11.51l-.145.004-.141.01c-.603.066-1.08.344-1.196.879l-.02.128-.007.137v11.384l.007.14.02.136a1.49 1.49 0 0 0 1.196 1.156l.14.02.146.006h10.57l.145-.007.142-.02a1.49 1.49 0 0 0 1.195-1.155l.02-.136.007-.14zm6.228 1.176a1 1 0 0 0-.187.02l-.092.02-.136.047-4.33 2.353v4.56l4.33 2.151.146.05.098.02.1.013.1.005.134-.008.133-.023q.198-.046.374-.16c.25-.164.422-.414.486-.696l.021-.122.007-.126v-6.971l-.007-.125-.02-.122a1.14 1.14 0 0 0-.488-.696 1.2 1.2 0 0 0-.39-.164l-.14-.021z"}),o.createElement("path",{d:"M29.95 1c.54 0 .987.407 1.044.928l.006.114.001 16.054a2.7 2.7 0 0 0-.904-.25l-.23-.011h-.09l-.046.002V3.287a1 1 0 0 0-1-1H3.27a1 1 0 0 0-1 1v16.542a1 1 0 0 0 1 1H8.5L8.5 22H2.05c-.541 0-.987-.406-1.044-.928L1 20.958V2.042c0-.536.41-.98.936-1.036L2.05 1z"}))))}},19915(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M7.907 3.005a21.5 21.5 0 0 0-.762 4.944v.781q.057 1.149.285 2.277H2.5a1.5 1.5 0 0 1-1.5-1.5V4.505a1.5 1.5 0 0 1 1.5-1.5zm10.027 0-2.22 8.002h-.43L13.08 3.005zm11.566 0a1.5 1.5 0 0 1 1.5 1.5v5.002a1.5 1.5 0 0 1-1.5 1.5h-5.939c.202-1.007.304-2.031.304-3.058a21.4 21.4 0 0 0-.752-4.944z",opacity:.4}),o.createElement("path",{d:"M26.518 25.794a3.669 3.669 0 1 0-3.669 3.712 3.694 3.694 0 0 0 3.67-3.712m-22.048 0a3.669 3.669 0 1 0 3.68-3.709 3.694 3.694 0 0 0-3.666 3.709zm13.214 0a5.22 5.22 0 0 1 1.934-4.063 14.7 14.7 0 0 1-4.117-1.569 14.7 14.7 0 0 1-4.135 1.587 5.22 5.22 0 0 1-3.217 9.257 5.212 5.212 0 0 1-.216-10.417h.216a13.4 13.4 0 0 0 6.167-1.51 13.68 13.68 0 0 1-5.679-11.13c0-1.34.676-5.544 1.569-6.744a.492.492 0 0 1 .871.162l4.417 16.048 4.453-16.048a.488.488 0 0 1 .867-.166c.897 1.204 1.551 5.357 1.551 6.745a13.68 13.68 0 0 1-5.682 11.132 13.4 13.4 0 0 0 5.733 1.486h.433a5.212 5.212 0 1 1-5.15 5.23z"}))))}},67418(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd",transform:"translate(2 1)"},o.createElement("path",{d:"M26.876 11.764c.823.822 1.497.543 1.497-.622V2.118C28.373.948 27.425 0 26.255 0h-9.024c-1.165 0-1.444.674-.622 1.496z"}),o.createElement("ellipse",{cx:6.452,cy:7.274,fillRule:"nonzero",opacity:.4,rx:2.591,ry:2.629}),o.createElement("path",{fillRule:"nonzero",d:"M21.448 22.55a1.412 1.412 0 0 1 0 2.354L13.966 30h11.94a1.853 1.853 0 0 0 1.85-1.85v-7.92h-9.714zM9.974 20.23H0v7.924A1.853 1.853 0 0 0 1.85 30h8.117zM26.058 13.652l-.537-.537v2.001a.985.985 0 0 1-.985.985h-3.444l-3.49-9.11a.51.51 0 0 0-.467-.335.53.53 0 0 0-.444.23L13.722 13.5l-2.738-3.339a.508.508 0 0 0-.795.004L6.755 16.1h-3.26c-.5 0-.921-.372-.982-.868V4.165a.98.98 0 0 1 .981-.989h12.092l-.865-.86a3.6 3.6 0 0 1-1.03-1.744H1.849A1.853 1.853 0 0 0 0 2.425v16.482h9.974v-1.486a1.412 1.412 0 0 1 2.227-1.186l3.883 2.661H27.73v-4.235a3.6 3.6 0 0 1-1.673-1.01",opacity:.4}),o.createElement("path",{d:"m11.908 17.88 8.404 5.732a.088.088 0 0 1 0 .148l-8.404 5.732a.092.092 0 0 1-.14-.078V17.958a.092.092 0 0 1 .14-.078"}))))}},82083(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.5 29v1.333q.002.351.105.668L4 31a1 1 0 0 1-1-1v-1zM29 1a2 2 0 0 1 2 2v10.319l-3.07-2.688a1 1 0 0 0-.69-.602l-.02-.017a2.08 2.08 0 0 0-1.363-.512h-10.19c-1.197 0-2.167.97-2.167 2.167V16h-.64a.5.5 0 0 0-.09.992l.09.008h.64v1h-.14a1 1 0 0 0-.117 1.993l.117.007h.14v1h-.14a1 1 0 0 0-.117 1.993l.117.007h.14v1h-.14a1 1 0 0 0-.117 1.993l.117.007h.14v2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zM9.28 24H4a1 1 0 0 0-.117 1.993L4 26h5.28a1 1 0 0 0 0-2m0-3H4a1 1 0 0 0-.117 1.993L4 23h5.28a1 1 0 0 0 0-2m0-3H4a1 1 0 0 0-.117 1.993L4 20h5.28a1 1 0 0 0 0-2m.5-2H3.5a.5.5 0 0 0-.09.992L3.5 17h6.28a.5.5 0 1 0 0-1M5 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4m4.28-4H4a1 1 0 0 0-.117 1.993L4 8h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 8h5.28a1 1 0 0 0 0-2M28 6h-5.28a1 1 0 0 0-.117 1.993L22.72 8H28a1 1 0 0 0 0-2M9.28 3H4a1 1 0 0 0-.117 1.993L4 5h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 5h5.28a1 1 0 0 0 0-2M28 3h-5.28a1 1 0 0 0-.117 1.993L22.72 5H28a1 1 0 0 0 0-2"}),o.createElement("path",{d:"M25.857 11a.57.57 0 0 1 .292.08l.083.06 4.575 4.003a.58.58 0 0 1 .185.332l.008.096v14.762a.67.67 0 0 1-.568.66l-.099.007H15.667a.67.67 0 0 1-.66-.568L15 30.333V11.667c0-.335.247-.612.568-.66l.099-.007zM20 16v10l7.333-5z"}))))}},43547(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd",transform:"translate(2 1)"},o.createElement("path",{d:"M26.876 11.764c.823.822 1.497.543 1.497-.622V2.118C28.373.948 27.425 0 26.255 0h-9.024c-1.165 0-1.444.674-.622 1.496z"}),o.createElement("ellipse",{cx:6.452,cy:7.274,fillRule:"nonzero",opacity:.4,rx:2.591,ry:2.629}),o.createElement("path",{d:"M12.452 23.499a.9.9 0 0 0-.353-.152 2.1 2.1 0 0 0-.53-.053h-.868v1.461h.978q.249.01.49-.05a.8.8 0 0 0 .307-.15.53.53 0 0 0 .156-.24q.043-.151.042-.308a.8.8 0 0 0-.05-.268.6.6 0 0 0-.172-.24"}),o.createElement("path",{d:"M0 20.23v7.924A1.853 1.853 0 0 0 1.85 30h24.056a1.853 1.853 0 0 0 1.85-1.85v-7.92zm4.493 7.01a2.146 2.146 0 1 1-.007-4.292 2.146 2.146 0 0 1 .007 4.292m8.4.388-1.013-1.966h-1.179v1.966H9.46v-5.24h2.135c.395-.01.788.038 1.168.144.265.072.512.2.724.374.16.139.28.316.353.515.067.176.102.363.102.55a1.41 1.41 0 0 1-.91 1.44l1.22 2.224zm6.236 0h-4.16v-5.24h4.111v.93h-2.845v1.148h2.683v.946h-2.683v1.292h3.029zm5.86-1.037c-.122.237-.291.446-.498.614-.23.184-.494.323-.777.41-.344.1-.7.149-1.059.144-.41.007-.817-.06-1.203-.198a2.35 2.35 0 0 1-.868-.557 2.3 2.3 0 0 1-.526-.869 3.4 3.4 0 0 1-.18-1.126c-.005-.39.06-.78.194-1.147a2.5 2.5 0 0 1 .557-.864c.25-.245.55-.432.88-.55a3.3 3.3 0 0 1 1.164-.192c.337-.005.673.037.999.124.255.071.495.191.706.353.192.155.353.345.473.561q.182.353.26.741l-1.249.141a1.36 1.36 0 0 0-.353-.727 1.16 1.16 0 0 0-.84-.264c-.421-.027-.83.149-1.1.473-.282.392-.42.87-.393 1.351-.03.481.112.957.403 1.342.263.309.653.481 1.059.469a1.2 1.2 0 0 0 .854-.261c.2-.2.325-.463.353-.745h1.351c-.02.27-.09.533-.208.777"}),o.createElement("path",{d:"m26.058 13.652-.537-.537v2.001a.985.985 0 0 1-.985.985h-3.444l-3.49-9.11a.51.51 0 0 0-.467-.335.53.53 0 0 0-.444.23L13.722 13.5l-2.738-3.339a.508.508 0 0 0-.795.004L6.755 16.1h-3.26c-.5 0-.921-.372-.982-.868V4.165a.98.98 0 0 1 .981-.989h12.092l-.865-.86a3.6 3.6 0 0 1-1.03-1.744H1.849A1.853 1.853 0 0 0 0 2.425v16.482h27.755v-4.235a3.6 3.6 0 0 1-1.697-1.02",opacity:.4}))))}},39271(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16 1c8.284 0 15 6.716 15 15q0 .666-.057 1.318a4.2 4.2 0 0 0-2.612-.909h-.184q.007-.203.007-.409c0-6.712-5.442-12.154-12.154-12.154S3.846 9.288 3.846 16c0 2.356.67 4.555 1.83 6.417a3.74 3.74 0 0 0 .385 3.112l.069.104 1.786 3.005C3.756 25.97 1 21.308 1 16 1 7.716 7.716 1 16 1m-4.17 7.557v1.995a6.7 6.7 0 0 0-2.649 5.344c0 1.523.507 2.927 1.361 4.054a3.9 3.9 0 0 0-3.285.393 9.7 9.7 0 0 1-1.076-4.447 9.72 9.72 0 0 1 5.994-8.977 4 4 0 0 0-.344 1.638m13.747 6.515.001.035a3.5 3.5 0 0 0-.656-.062h-1.309l-.1-.122a3.7 3.7 0 0 0-1.164-.894 6.73 6.73 0 0 0-2.404-3.49V8.557c0-.586-.125-1.144-.349-1.647a9.72 9.72 0 0 1 5.98 8.162"}),o.createElement("path",{d:"M18.444 8.557v10.716a.341.341 0 0 0 .675.068l.007-.068v-4.091h1.705c.654 0 1.234.311 1.608.79l.096.136v3.165a.341.341 0 0 0 .675.068l.007-.068v-2.728h1.705c.654 0 1.234.312 1.608.792l.096.134v5.21a.341.341 0 0 0 .675.07l.007-.07V17.91h1.023a2.73 2.73 0 0 1 2.722 2.561l.005.166v4.228c0 1.163-.142 2.321-.422 3.45l-.129.482-.63 2.204H11.106l-1.844-3.036L7.4 24.835c-.621-.877-.514-2.127.287-2.928.787-.787 2.115-.876 3.008-.23l.138.109 2.498 2.14V8.557a2.557 2.557 0 0 1 5.113 0"}))))}},34361(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M11.984 30.274c.28.044.53.206.3.172-.037.022.006.038.068.052l.098.02.044.011c0-.03.245-.044.133-.083q.414.013.814.122-.002.016-.031.025l-.057.016c-.035.01-.052.026.02.062q.556.005 1.107-.054a1 1 0 0 0 .422.197c-.181.058-.03.078.157.088s.397 0 .334.044a.93.93 0 0 1 .554.05V31a19.6 19.6 0 0 1-3.203-.304c-.132-.044-.103-.103-.314-.142-.078 0 0 .034-.122.03-.074-.09-.206-.104-.466-.212 0-.059.162 0 .142-.098m9.755-.314c.03 0-.034.06-.044.04a14.2 14.2 0 0 1-5.527.995c-.035-.059.034-.088.054-.132.284.059.215-.06.436-.074.093.255 1.025.059 1.148-.064.152-.044.162.04 0 .04.278.056.565.056.843 0 .157-.045-.078-.03 0-.089a.64.64 0 0 1 .49.035c.246-.05.334-.143.491-.098.098-.06.196-.128.295-.192a7.3 7.3 0 0 0 1.814-.46m-9.196.064c.084.025.005.015-.054 0 0 .118.49.162.726.24.069-.093-.49-.093-.348-.196.157.044.162 0 .319.04.068.083.333.068.627.132 0 .049.182.054.148.108.183-.047.375-.047.559 0 .196.039.333.103.186.152-.157-.044-.687-.064-.98-.147.053-.064-.104-.089-.202-.123-.196 0 0 .059-.118.074q.18.064.368.093a.3.3 0 0 1-.216 0c0 .108.3.063.49.137a6 6 0 0 1-.98-.083c0-.03.04-.064-.04-.084-.19-.03.08.098-.068.064a5 5 0 0 0-.682-.216.85.85 0 0 1 .383.03 1.3 1.3 0 0 0-.25-.118c0-.05 0-.132.132-.103m-2.084-.495a10 10 0 0 1 1.5.598l-.44-.113c-.153-.049-.31-.098-.457-.152a2 2 0 0 1-.603-.333m-.726-.025c.441.069.824.456 1.206.53l.025-.005c.118.108-.343-.064-.441-.142-.05.088-.398-.113-.373 0-.054-.103-.427-.275-.417-.383m5.591.162v.01c-.088.103-.441-.035-.49.068.436.03.98.05.662.157.216 0 .265.035.49 0 0-.044 0-.073.103-.078s-.083 0-.054.073c.346.027.695.005 1.035-.063-.382 0-.755.098-.878-.03a1.3 1.3 0 0 1-.868-.137m2.462-.235a5 5 0 0 1-.667.029c-.172.054-.343.049-.53.059v-.004l-.016.006c-.07.02-.227.061-.028.086-.034-.069.432-.073.353 0-.078.074-.49.044-.402.059.089.015.3 0 .31 0 .009 0-.123 0-.104.044.417-.049.24.147.53.147a.5.5 0 0 1 .186-.206.5.5 0 0 0 .32.054c.156-.06.322-.09.49-.088.093-.113-.265 0-.221-.064-.157 0-.25.084-.304 0l.25-.034c-.03-.044-.142-.044-.167-.088m-4.39.068v.01l.042.04.096.075c.062.05.11.097.078.145-.117-.03-.23-.064-.26 0q.204.04.412.04c.054-.06-.117-.114.07-.104l.062.023.173.03a.2.2 0 0 1 .063.02c.06.035.054-.117.172-.132.127.06.314.113.407.054-.103-.044-.103 0-.206 0 .04-.049-.098-.049-.098-.088-.201 0-.461-.03-.56 0-.097.03.143.083 0 .074 0-.079-.127 0-.254-.054.03-.118-.113-.064-.196-.133m.82-.015c.049.04-.157.05 0 .074.157.025.377.044.583.064q.291.048.584 0c-.069.068.118.059.25.064-.04 0-.069.044-.049.088.105-.009.315.02.382-.01l.01-.01h-.02c-.06-.001-.15-.009-.122-.054.157 0 .216-.059.152-.113a2.1 2.1 0 0 1-.706-.063c-.088 0-.142.063-.255.063-.329 0-.49-.088-.81-.103m-2.502-.838c.172.078.069.137.093.186.143.079.221 0 .25.05-.058.053.05.088 0 .141-.077-.051-.18-.02-.13-.057l.005-.004-.114-.033c-.184-.043-.282-.02-.462-.126 0 .03-.03.049-.073.054.343.068.333.103.73.21l.026.026.02.054.022.023.061.018.017-.018c.055-.018.195.014.203-.029.01-.054-.152 0-.143-.059h.153q.173.118.372.182c-.113-.03-.063.044-.162 0-.098-.044-.098-.079-.181-.118-.03.142.226.172.186.334q.285.03.56.107c0-.068-.221-.112-.074-.161-.074 0-.186-.03-.196-.06.078-.058-.157-.068-.079-.127q.196.064.397.093c-.049-.083-.26-.132-.073-.166q-.06 0-.044-.044c-.147.044-.28-.035-.412 0-.133.034-.093-.045-.084-.079.01-.034.177.05.197.03a.8.8 0 0 0-.28-.123h.108c-.083-.034-.128-.088-.24-.074 0 .069.117.113.166.172h-.157c-.083-.123-.348-.23-.318-.358-.143-.03-.29-.079-.344-.044m11.913.01q-.91.559-1.912.927c0-.03.044-.07 0-.094.235-.034.49-.23.598-.166.088-.138.343-.133.417-.285.069-.03.064 0 .083.04l.175-.091.166-.1a2 2 0 0 0-.15.068c.207-.211.378-.152.623-.3m-12.197.284c-.098.05.25.083.225.133-.024.049-.264-.074-.225.024.147.03.309.079.456.103.03.108.177.113.49.206a.44.44 0 0 0-.161-.18l-.073-.038a.1.1 0 0 1-.06-.016l-.001-.002-.018-.004c0 .03.063.068 0 .054-.064-.015-.138-.074-.089-.152-.152-.054-.162 0-.24-.07 0 .09-.147 0-.304-.058m6.376-.049c-.103 0-.093.03-.196 0 0 .034 0 .064-.089.088-.088.025-.039-.044-.103-.044-.137.074.167.03.162.093q-.25.078-.49.182c0-.044-.177 0-.25 0 0-.064-.152-.034-.103-.108a2.1 2.1 0 0 0-.638.118c-.137-.054 0-.123.093-.147-.206.034-.25-.089-.338-.035.157.04.073.025-.098 0-.05.069.215 0 .196.074-.098 0-.064.049-.196.039.034-.059-.089-.054-.05-.113a1.2 1.2 0 0 0-.44.044c.122 0 .17 0 .244.03-.166 0 0 .039-.103.068.182.04.221 0 .25-.029a.23.23 0 0 1 .148.034c-.04 0-.255.069-.103.098.044-.058.078 0 .2 0s0-.088.148-.073c0 .044 0 .088.049.108.191 0 .177-.06.3-.084.063.025-.07.02-.07.06l-.014.009c.088 0 .157.054.196 0h-.098c.142 0 .122-.098.343-.093-.127.078.23 0 .3.03.039.008.055.017.06.025l-.002.008.024-.01.07-.024c.058.05.029.118-.089.162a.7.7 0 0 1 .25 0c-.068-.078.133-.088.084-.162l-.114-.002c-.053-.003-.093-.011-.087-.032.01-.034.068-.069.19-.074.025.054-.122.108.06.103.108-.039-.064-.034.044-.058a.64.64 0 0 1 .412.073c.083 0 .294 0 .294-.064 0-.063-.123 0-.059-.03a1.2 1.2 0 0 1 .353 0c.133-.038-.137 0-.063-.078.166-.049.19 0 .343-.054 0-.117-.824-.063-.839.099.187-.045.26-.05.353 0a.9.9 0 0 0-.392.063c.025-.083-.294-.078-.128-.171-.039.063.113 0 .202 0-.05-.103-.29 0-.354-.064.074 0 .167 0 .138-.059m-7.946-.692q.219.094.403.246c-.084 0 0 .049-.128 0 .113.073-.098.103.079.186.053 0 .132.025.22.064.07.049.156.068.24.054v.049c.128.059.108 0 .192.083a.27.27 0 0 1 0-.28c-.196-.039-.28-.112-.402-.097 0-.024-.023-.048-.054-.073l-.101-.073a.3.3 0 0 1-.042-.036c0 .079-.083.03-.186-.034s-.21-.138-.22-.089m-3.58-1.5c.334.191.378.49.795.814.088.088 0-.05-.054-.098.103-.03.358.299.421.417.05.039.054 0 .079 0q.26.297.569.544.197.144.371.314l.166.174-.139-.115a7 7 0 0 0-.491-.373c-.197-.132-.403-.324-.687-.54 0-.073-.21-.26-.441-.49a3.8 3.8 0 0 1-.589-.647m10.442 1.805c-.088.063-.24 0-.324.073a3.2 3.2 0 0 0-.706 0c.026.044.323.009.268.109l-.023.025.019.005.038-.01c.072-.017.159-.029.24-.038l.01-.002-.081-.025c.064 0 .044-.034.093-.04.373-.029.412.07.387.128q.183-.061.373-.098c0-.083-.113-.123-.294-.127m-5.322-.56a.64.64 0 0 0 .238.152l.045.012c.017.024.034.057-.032.057.25.074.235.128.24.177.191 0 .167-.098.113-.201.122.058.146.016.15-.015l.001-.012-.088-.003c.03-.054-.323-.162-.338-.152s.083.054.069.084c-.015.029-.069 0-.138 0 .118 0-.245-.172-.26-.099m.918-.838.024.01c.133 0 0-.05.142-.054.04 0-.049.108.044.166-.093.04-.186 0-.26 0 0 .06.295.04.27.138a.7.7 0 0 0-.21-.04c.048.05.029.103.088.143-.1.039-.21.039-.31 0a.5.5 0 0 0-.047-.074l-.004-.006h.062l.137.02c-.047-.04-.107-.03-.168-.038l-.058-.016-.03-.038c-.092-.115-.16-.215.109-.192-.084-.078-.216-.024-.358-.093.132-.103.28.025.569.074M7.26 23.584q.22.323.49.604l.31.343c.093.123.22.235.348.363.03 0 .181.083.103-.03-.157-.044-.221-.122-.437-.348.059.03.093 0 .069-.064-.025-.063-.113-.127-.142-.112-.03.014.103.117.058.127-.235-.27-.436-.441-.181-.324a2.7 2.7 0 0 0-.618-.559m-4.267-1.657q.086.205.206.392s0-.226-.059-.216c-.034-.122.098.04.04-.137.088.078.034.206.161.348-.054 0 .093.397.162.49a.12.12 0 0 1 0 .133c-.03-.157-.03-.128-.113-.191 0 .073.113.27 0 .245s-.073-.133-.117-.22l.058.064.048.07-.031-.092c-.11-.273-.39-.69-.355-.886m.181-.854q.03.184.094.358.074.254.19.49c.084.177.173.364.26.535q.113.255.26.49c.138 0-.166-.323.05-.146-.157-.148-.297-.453-.434-.785l-.165-.402a5 5 0 0 0-.255-.54m25.146.912c-.064-.068-.137-.176-.28-.176-.048 0-.068.069-.102.098-.067-.054-.037-.09.006-.13l.028-.026v-.001l.005-.03c.006-.019.02-.025.034-.03l.014-.005-.017.03-.03.033-.006.003.008.017q.014.012.065.021c.07.015.06-.068.099-.078s-.03.068 0 .083.034-.03.044-.064-.044-.054-.015-.093l-.01-.005h-.108c0 .032-.01.044-.023.051l-.008.002a.07.07 0 0 0 .007-.048c-.035 0 0 .064-.064 0-.123.172-.137.393-.27.535a.07.07 0 0 1 0-.084c-.039 0-.034.045-.059 0-.024-.044-.034.04-.049.06-.108-.172 0-.413-.108-.59 0 0 .06 0 .07-.068-.147.047-.244-.01-.246-.138l-.001-.001-.01-.014c-.02-.032-.06-.105-.112-.122l-.03-.005c-.005-.025-.019-.042-.053-.044a.4.4 0 0 0 .025-.141l.001-.027.012-.022c.01-.026.019-.053.014-.075l-.01-.015a.3.3 0 0 0-.013.069l-.003.043-.006.015-.015.03c-.064-.063 0-.102 0-.18l.03.01.007.012.027-.047s0 .022.018.04l.024.013-.001.012c-.006.057-.004.115-.01.16l-.009.027c.037.01.033.105.08.062v-.084a.2.2 0 0 1 .055-.039.6.6 0 0 0 .073.206c.034-.108-.03-.181-.049-.27-.049 0 0 .05-.04.044-.038-.004-.063-.049-.068-.083s.03-.127.025-.181l-.034.061.013-.05.002-.032-.013-.025c-.003-.023.005-.051.011-.08l.006-.041.009.002.004-.085c.007-.126.019-.243.09-.349.03-.039 0-.039-.04-.064.07 0 .04-.122.084-.21.088.029.05.117.088.171.04.054.054-.054.094-.064.039-.01-.089-.112-.074-.206-.191 0-.26.305-.23.442-.04.044-.04-.044-.06-.054-.029.113.045.127 0 .28a.74.74 0 0 1 0-.412h.055c0-.045-.025-.064 0-.108a.06.06 0 0 0-.05 0c0-.114.05-.278.03-.425l-.008-.028-.026-.008a.03.03 0 0 0 .014-.014l.003-.01-.012-.045c-.05 0 0 .069-.035.113-.04-.064-.108-.108-.098-.196l-.03.044-.013.007.025.033c.02.033.034.068.023.107.074-.054.034.044 0 .103a.2.2 0 0 1-.034-.079c-.02 0-.024.006-.022.014l.017.032a.04.04 0 0 1 .005.018 1.8 1.8 0 0 1-.206-.608c-.074.044-.054.201-.177.177.142-.113.147-.29.186-.388.034-.084-.04-.024-.06.02l-.003.013v-.003l-.005-.009c.006-.047.068-.09.064-.153-.003-.047-.022-.07-.054-.083l-.032-.011.008.013.033.012c-.034.04.03.108-.034.157l.004-.006-.023-.044-.007-.016-.01.014a.5.5 0 0 0-.062.307c-.108-.03.064-.324 0-.407 0 0-.02.02-.031.04l-.006.016-.006-.015c.002-.04.052-.105.083-.142l.014-.017h.01c0-.142.088-.167.054-.299 0 .064 0 .093-.069.059l-.008.031.012.053a.3.3 0 0 1 .003.053l-.007.034c-.008.014-.032.02-.055.025l-.014.003-.01-.015a.6.6 0 0 1-.024-.174v-.054a.06.06 0 0 0 .036.007l.029-.01-.03-.041c.063 0 .053 0 .048-.089.113.06 0-.063.123-.049-.03-.049-.034-.27.069-.245 0-.044 0-.054-.069-.054.088-.044-.04-.24.103-.26-.069-.054-.044-.162-.059-.176a.245.245 0 0 0-.049-.285 1.6 1.6 0 0 0-.083-.49 5 5 0 0 0-.172-.49 5 5 0 0 1-.191-.462 2 2 0 0 1-.157-.49c.041 0 .052.035.064.07l.011.03.033.032c.032-.024.033-.152.103-.103-.035-.147-.138-.196-.157-.304.108-.054.073.113.162.034 0 .123.186.103.215.24.03-.127-.088-.254 0-.406.03 0 .045.034.099 0 .058.083.103.186.186.225a.6.6 0 0 0-.157-.348c-.03 0-.054.034-.062.061l-.001.007-.006-.01c-.028-.036-.077-.084-.112-.092-.06-.015-.05.044-.089.024a.7.7 0 0 0-.235-.319.74.74 0 0 1-.245-.299.5.5 0 0 0-.201 0 4 4 0 0 0-.314-.49c-.069.044.034.054 0 .098-.035.044-.03-.04-.069 0q.116.196.275.358c-.069 0-.094-.069-.177-.044a3 3 0 0 1-.142-.324c.03 0 .049-.034.054-.059s0 0-.03 0 0 .03 0 .05a2.8 2.8 0 0 1-.309-.491h.04a1.5 1.5 0 0 1-.143-.3 1.3 1.3 0 0 0-.2-.303q.319.352.549.77a7.5 7.5 0 0 0-.75-1.305c-.094-.137-.275-.191-.3-.363a.24.24 0 0 1 .196.083V11.5q.109.095.192.21l.014.021.04.05q.027.036.048.078l.01.024-.018-.019.048.093c-.069.058 0-.108-.084-.06 0 .089.113.133.167.266.04.029.034 0 .074 0l.039.068c-.034.03-.03-.068-.074 0 .035.172.192.295.27.442a.2.2 0 0 0-.162-.285.5.5 0 0 1-.044-.122c.162.034.216.186.373.2-.054.055 0 .113.04.163-.05.053-.124-.064-.084.044-.064 0 0-.05-.064-.054-.137.171.226.147.216.309 0 .039.073-.044.073 0-.117 0 .074.127.108.152.035.024.035-.06 0-.098.054.049.138.049.177.127.064-.054-.044-.088 0-.147.093.059.098.137.191.196 0-.073-.024-.093-.059-.171.098.029.113.068.103.132s.035 0 .054 0c.01 0-.005-.04-.024-.088l-.04-.103-.014-.044a.07.07 0 0 0 .054 0 1.1 1.1 0 0 1-.255-.305.54.54 0 0 0-.275-.264c-.093-.221-.319-.314-.461-.52-.054 0 0 .059-.064.078-.118-.21-.324-.309-.353-.52 0-.024.04 0 .049 0s0-.054 0-.083c-.083-.044-.088-.083-.152-.177a.054.054 0 0 1 .059-.044c0-.039-.103-.083 0-.142-.059-.132-.152-.064-.23-.044-.08.02-.094-.226-.202-.133-.059-.078-.127-.122-.2-.088-.128-.127-.09-.343-.3-.412.044-.073-.034-.064-.03-.137a.53.53 0 0 1-.343-.113c0 .04.06.069 0 .113a2.4 2.4 0 0 0-.323-.201c0 .054-.054 0-.099.059-.044.059 0-.044.03-.05a.19.19 0 0 1-.147-.034.2.2 0 0 1 0-.054c-.064 0-.128-.142-.192-.063 0-.07-.156-.133-.161-.162-.005-.03 0 0-.06.049 0-.138-.156-.054-.176-.216-.049 0 0 .049-.034.074s-.054-.07 0-.079c-.05 0-.04-.049-.069-.074s-.147 0-.171-.058l-.006-.018-.008-.006c-.013-.014-.026-.035-.055-.06 0 .108-.088.035-.152.03l.01.024.025.014.024.004.03.016.018.006q.016.007.027.017l.001.004.052.04q.062.053.137.1l-.025-.005a.2.2 0 0 1-.129-.046l-.037-.035v.003c-.089-.083-.207-.108-.256-.182-.191.099-.23-.152-.417-.161a1.3 1.3 0 0 0-.338-.29c-.132-.088-.285-.176-.451-.29.166-.117-.383-.122-.393-.289a.152.152 0 0 1-.2-.117c-.099.044-.187 0-.28-.074a.6.6 0 0 0-.32-.117.5.5 0 0 1 .28 0 .26.26 0 0 0 .25 0q.227.086.462.147c0-.04 0-.05-.04-.074-.039-.024.05 0 .089 0s0 .069-.03.113a.1.1 0 0 0 .084 0 .5.5 0 0 0-.05-.186s.118.083.133 0c.04.036.093.058.147.063-.049 0 0 .069 0 .118a.13.13 0 0 0 .182-.044c0 .047.069.072.146.093l.043.01v.032a.05.05 0 0 0 .017.032c.039.034.127.029.186.063 0-.065-.106-.154-.183-.165l-.028.002-.003-.002c-.062-.066-.176-.106-.247-.153 0-.064.157-.079.093-.128.034 0 .093-.03.103 0 0-.093.137 0 .196-.093.054.157.196.03.275.078-.04.064.113.103.123.03 0 .059.054.122.122.068-.049-.029-.098-.083-.167-.137.054-.073.054-.04.094 0l.008-.038-.023-.011.016-.005-.008-.017c-.014-.02-.03-.042-.018-.071.074.049.133.069.177 0 .025.073.04.046.066.02l.002-.004-.013-.008-.046-.028a.1.1 0 0 1 .024-.024l.029-.009-.033-.02a1 1 0 0 0-.133-.057l-.054-.017.006-.01-.01-.005-.025.007-.058-.019c-.239-.066-.482-.109-.59-.253.173 0 .374.118.575.108-.054-.108-.206-.03-.221-.127 0 .063-.103.029-.123-.045 0 0-.029.079-.098.04.113-.03-.044-.074 0-.157.054.044.069 0 .118 0-.034.083.03 0 .059 0 .03 0 0 .068.034.098.035.03.216.137.344.088 0 .03.053.059.053.093 0 .028.022-.042.054-.081l.019-.018.002-.004c-.031 0-.054 0-.027-.017l.005-.004-.014-.008q-.01-.004-.012-.01l.005-.004c-.02.005-.025.009-.002.009 0 .034-.083 0-.04-.044a.08.08 0 0 0-.083 0c0 .049.064 0 0 .049-.117-.03-.171-.035-.245-.123.137-.039.441.142.55.035 0 .053.156.142.21.049.084.117.31.093.49.176 0-.064-.088-.03-.127-.078.084-.06.128.049.226.073a.03.03 0 0 1 .034 0c0-.068-.059-.044.04-.059l-.039-.023-.01.023a.3.3 0 0 0-.094-.034l-.032-.004a.07.07 0 0 0 .026-.048V7.1c-.185-.107-.319-.16-.499-.259.034-.044.309.064.358.079.05.014.069-.064.177 0-.03.039-.084 0-.108 0-.025 0 .088.03.132.078a.24.24 0 0 1 .294.079c-.058.058-.078-.079-.142-.03.034.069.133.157.201.118.069-.04-.078-.044 0-.079.044.089.098.04.167.07-.083.038.113.073.157.082 0 .099-.118 0-.157 0 .113.162.446.187.672.334a4 4 0 0 0-.39-.29l-.201-.124.046-.008c.026-.012.041-.03.054-.034 0 .103.172.137.32.23l-.006-.027.005-.026.008.03c.02.025.076.007.115.038 0 .03-.059 0-.079.034.089.084.094 0 .152 0 .06 0 0 .074 0 .108.045-.063.157 0 .255.064 0-.059-.098-.044-.137-.113-.04-.068.236.108.177 0 0-.027.037.014.067.037l.012.007-.021.001-.058.024.047.019-.014.008h-.01c-.02-.002-.04 0-.048.012q.04.057.1.089l.034.012c.027.04.053.056.088.052l-.001-.045c0 .103.157.083.235.21.033-.028-.054-.053-.03-.08l.028-.017-.027-.005s.044 0 .024-.03.094.035.143.079h.005l-.03.01-.014.01.035.019a.4.4 0 0 1 .067.05c0 .068-.058-.035-.083 0-.025.034.157.048.191.141l.01-.008.023-.016c-.03-.023-.07-.06-.096-.064l.053-.054c-.023.051.038.074.064.101l.004.009.01-.003a.1.1 0 0 1 .04.006c.054.025-.04.054-.049.059.07.055.156.085.245.083v-.068c0-.025.064.039.094 0-.025.078 0 .152-.074.157.015.029.036.039.06.045l.014.002.004.016.006-.002.01.016c.014.023.028.047.048.057l.035.003c-.027-.024-.034-.058-.05-.074l-.011-.005.022.008c.026.013.052.038.073.09v-.112q.136.2.328.348c.054-.03-.029-.069.045-.093.068.049.132.21.206.142.058.059 0 .083.103.172.014-.022.014-.031.006-.039l-.046-.035c-.039-.04.079-.064.113 0 .035.064-.04 0-.054 0-.012 0 .03.063.06.07l.011-.005-.005.006-.016.004.022.022c.018.015.036.024.046.006-.079.05.03.088.103.123.044-.054-.108-.044 0-.084l.145.144.02.014.013.019.144.146.168.168.132.124.046.039.082.136q.154.24.336.462l.19.215a14 14 0 0 0-.673-.917l.115.146.042.035q.135.12.29.216s0 .03-.035.044c-.034.015.05.05.084 0a.5.5 0 0 0 .112.226.7.7 0 0 0 .167.176c-.108-.054.059.167-.054.201 0 .03.108.074.074.118a.27.27 0 0 1 .2.123c-.043.166.148.323.28.49 0 .04 0 .05-.044.044q.243.381.447.785c-.079.03-.094-.123-.148-.162 0 .103.138.211.182.343v-.083c0-.034.127.123.049.118q.227.553.338 1.143c.094 0 0-.089.074-.089.098.27.147.49.201.672s.088.397.172.652c.063 0 .054-.039.063-.073a.1.1 0 0 1 .026.088l-.002.007.007-.017c.012-.025.029-.044.053-.044-.054.216-.037.443.049.648.049-.045 0-.177.073-.197-.039.238-.039.48 0 .716a.09.09 0 0 0 .079.035c0 .071 0 .294.062.372l.024.017v.027c-.006.068-.023.138.027.167-.074.245-.106.5-.093.756a4 4 0 0 1-.089.794c.03.084.079.152 0 .255-.078.103.054.074.06.133-.08.152.038.23 0 .373.107 0 0-.226.092-.236.03.142-.024.358.084.437.039-.118-.074-.177 0-.339.058.059.024.187.142.196-.05 0 0 .084-.034.084-.035 0 0-.074-.04-.098-.063.186 0 .627-.117.235h-.098c.107-.015-.054.285.058.388l-.01-.005c-.06-.09.008.094.039.177l.004.012a.1.1 0 0 0-.038-.023c-.073-.024-.044.177-.068.24.059 0 .098-.029.171 0 .035-.058-.054-.029 0-.092.054.034.07.093.035.186 0 0 0-.044-.025-.054-.024-.01 0 .059-.03.103s.055 0 .065 0-.05.123 0 .172c-.035 0-.138-.128-.162 0a.235.235 0 0 1-.05-.314c-.058.012-.067.054-.063.102l.011.097c.001.031-.003.059-.026.075q.054.006.089.05c0 .068-.089.029-.079.127-.059 0-.04 0-.088-.03-.03.113-.064.246-.177.29 0 .044-.034.093 0 .108-.078.083 0-.196-.078-.069-.04-.034.049-.064.039-.137.054 0 .083 0 .123-.025.039-.083 0-.181.068-.235.069-.054 0 .044.044.054.03-.069 0-.084 0-.147 0-.064-.083 0-.098-.05-.006-.019.003-.023.017-.02l.001-.001.003-.032.004-.069q.014.027.044.034a.54.54 0 0 0 .03-.27c-.04 0 .024.133-.06.094.07-.275.157-.49.06-.638 0-.043.046-.017.06-.063l.003-.049v.063c.079-.078-.069-.137-.049-.235a2.6 2.6 0 0 1-.201.642 2 2 0 0 0-.098.314l-.027.101-.007.041.006-.01c.012-.014.025-.026.033-.049.023.024.015.095-.024.112h-.024q-.006.064-.006.114h-.088c.034.133-.045.201 0 .29.142-.084.098-.383.274-.422 0 .093-.049.117-.034.2.01.056.033.038.05.006l.006-.016-.002.011c-.003.023-.001.044.015.044-.094.069-.187.108-.192.26-.073.068-.117 0-.162.162-.034 0-.029-.04-.068-.044-.04-.005 0 .068.059.078-.157.04-.098.24-.25.314.034.049.083 0 .063.108.05-.079.098-.157.142-.245.023.044-.024.107-.035.184l.001.018-.025.037c-.044.082-.069.2-.196.212-.068 0 0 0 0-.064s-.117.04-.098-.059c-.039 0-.034.079-.068.079l-.014-.005-.013-.025a.04.04 0 0 0-.017-.012l-.032-.007-.003.066q0 .037.01.076a.07.07 0 0 0-.049-.04c-.069.113.044.27-.098.314 0 .035.054.054.064.089s-.054.039-.064.098a.55.55 0 0 0-.24-.103c.054.063.16.155.114.242l-.02.023c.045-.01.083.045.087.068l.005.02c-.035.027-.068-.024-.094-.055l-.014-.014.015-.018zM2.043 17.758c.063.054.098 0 .19.039v.427c0 .152.045.299.065.446s-.045-.172-.094-.098c0-.064.025-.05.045-.064 0-.118-.084 0-.118-.034a.8.8 0 0 0 0-.226c0-.122-.059-.015-.088-.044a2.2 2.2 0 0 0 0-.446m22.732-7.5a.03.03 0 0 1 0 .035c0 .04.079 0 .044.054-.034.054-.113.064-.162.044.054.059.074 0 .04.079.039 0 .059.063.103 0 .044-.064-.054 0 0-.064s.034-.069.078 0l.017.034-.002.018.005.002c.054.044-.03.054-.05.083-.019.03.094.03.064.083s-.058-.049-.088-.083c-.049.074-.083.093-.206 0-.039 0-.073 0-.118.034.099 0-.029.05.07.138.097.088.038-.035.087 0-.054 0 0 .049 0 .073.094-.034.192.069.197.147.044-.044.088-.083.063-.132-.063.059-.157-.074-.132-.118s.04 0 .054 0c.015 0 .059 0 .088.064.03.064 0-.064.03-.088a.6.6 0 0 0 .235.039c-.034.034 0 .074-.059.108s-.044-.03-.073 0q.092.106.206.191c-.094 0-.108-.093-.206-.127-.054.063-.054.054-.118.063.069.099.118.07.181.187.084-.05 0-.05 0-.088.04.002.078.022.103.054l.014-.009.009-.037c.004-.01.013-.014.036.001.06.04 0 .035 0 .054 0 .02.088.03.152-.044 0 .069.064 0 .093.044.03.044.054.147.128.123l.004-.003.052.024c.074.035.15.077.15.165.064-.073.083.044.147 0a1.7 1.7 0 0 0-.32-.286l-.106-.067.029-.02c-.162-.171-.343-.26-.52-.49 0-.118-.211-.235-.319-.284m-3.81-2.5c.039.043.092.083.097.137l.02-.008-.002.013c.009.041.104.046.125.034a.16.16 0 0 0-.103-.05l-.004-.003.016-.005c.065-.005.116.058.199.058a.06.06 0 0 1 0-.069c.162.064.309.16.431.285-.049.039 0 .054 0 .083-.088-.044-.113-.196-.25-.181 0 .107.177.152.24.22.06 0 0-.044.04-.088.073.034.23.103.22.172v.005c.128 0 .285.21.402.171-.078-.049-.166-.078-.186-.157.079.044.093 0 .152.089.064-.094-.123-.152-.167-.123 0-.123-.147-.157-.245-.191-.118-.182-.373-.167-.618-.314-.118.068-.216-.157-.368-.079M6.54 6.094c-.098.103-.147.132-.157.068q-.491.475-.927.999l-.284.353.137-.102c.214-.187.369-.434.642-.67 0-.025-.049-.035 0-.08.05-.044.103 0 .197-.112-.064-.03.181-.201.147-.245-.035-.045.108-.064.181-.128.074-.064.128-.127.064-.083m5.415-3.4a.17.17 0 0 0 .088-.073q-.449.15-.917.211c-.035-.04.191-.098.122-.132l-.2.083c.029.103-.035.157-.03.23h.01c.23-.097.377-.107.436-.225 0 .034.147-.034.133.03a1.4 1.4 0 0 0-.432.24c.196-.044.834-.29 1.172-.422 0-.079-.304.078-.382.059m8.877-1.108v-.02c.078.074-.182 0-.167.035q.348.06.701.079c-.053.058-.274.029-.44.029a1 1 0 0 0 .588.069c.054 0 .049.049.157.063-.064.035-.403.113-.089.177l-.549-.034c-.206 0-.437-.03-.677-.035.304-.044.697 0 .824-.127a5 5 0 0 1-.79-.191h.113a3 3 0 0 0-.431-.079c.117-.083.54.069.76.034m.544-.19.76.136a1 1 0 0 0-.318-.103c.29.019.576.08.848.182h.015c-.034 0-.069 0 0 .034a5 5 0 0 1-.667-.064c.078.025.333.089.363.167-.339-.054-.535-.304-.736-.255-.093-.034-.294-.044-.265-.098m2.134 25.459-.001.004-.073.05a9 9 0 0 1-.567.361l-.283.161.296-.135q.297-.145.574-.324-.173.22-.407.368c0-.03.054-.073.049-.103a.2.2 0 0 0-.142.054c0 .103-.079 0-.3.162-.073.083 0 .069-.152.132 0 .02.014.024.028.026h.002l-.167.102c.008.098.242-.036.285-.119l.004-.018.027-.016c.087-.05.173-.089.327-.19.063.03.22-.074.402-.206.181-.133.377-.314.554-.422 0 .015-.022.037-.052.061l-.093.074.342-.212.177-.123q.082-.054.174-.107l.016-.008-.246.208-.292.223-.011.002c.022-.023.05-.056.062-.07l.006-.009a1.8 1.8 0 0 1-.343.22c.012.016 0 .04-.019.065l-.023.027.269-.188.059-.047.024-.001c.06.011-.14.148.077.057a.9.9 0 0 0-.157.215c.133-.112.221-.112.275-.073-.04.122-.225.186-.368.29-.049-.03.138-.207-.088-.03 0-.05.098-.128.118-.187-.064 0-.216.133-.074 0-.061-.004-.085-.042-.157.01l-.048.043.025-.036q.016-.02.035-.04l.009-.012-.093.066q-.183.123-.373.238l-.382.22.21-.1q.21-.106.406-.237a1.03 1.03 0 0 1-.49.295c-.079.044-.079.073-.162.117.034.054.255-.127.329-.137-.24.167 0 .108-.25.265.093 0 .328-.162.397-.137.068.024.073-.079.054-.103-.02-.025-.211.053-.192.083-.107 0 .216-.157.358-.29.084 0 .054.231.255 0 .148-.058-.137.148-.073.167a1.35 1.35 0 0 1-.52.24c-.186.236-.564.315-.942.53-.093 0 0 0-.034-.063-.123.073-.25.147-.186.2-.079 0-.098-.039-.221 0-.123.04-.093.08-.064.113.03.035.152-.063.25-.073l.035.069c-.157.058-.147-.04-.324.044 0-.03-.05-.06 0-.094-.069 0-.348.148-.324 0-.15.104-.316.183-.49.236-.169.04-.326.117-.461.226a.8.8 0 0 0 .319-.03c-.113.064 0 .044-.079.088-.078.045-.103 0-.118 0l-.245.084.046.002.024.004-.05.016-.189.053.034-.013c.041-.013.092-.027.086-.048-.01-.034-.28.074-.397.094-.118.02-.098.122.03.108-.06.073-.207.034-.172-.03-.074 0-.103.108-.143.059-.132 0 .045-.054.079-.098q-.203.03-.393.113c-.083 0-.25-.044-.309 0-.063-.093.25 0 .437-.143-.147 0-.618 0-.647.123.107-.044.142.069-.03.118 0-.025.04-.04.04-.064-.128 0-.153.064-.256.044-.088.093.226.044.074.103 0 .04.181 0 .255-.03-.034.08-.147.04-.3.074.16.05.332.05.491 0-.132 0-.122-.063-.132-.127a.6.6 0 0 0 .206 0c-.162.059-.074.054-.138.103.153 0 .236-.05.368 0-.088.103-.333.103-.49.162q.421-.009.834-.103c0-.079-.236 0-.128-.084.113 0 .187 0 .177.069l.206-.054c.039-.025-.044-.118.162-.182 0 .089.103.054 0 .123.161 0 .362-.059.524-.083 0 .127-.265.108-.54.22-.058-.044-.298.045-.426.04-.127-.005 0 .049.069.039-.172 0-.427.088-.692.142l-.234.048-.179.029.046-.003h.176l-.042.014.096-.009q.283-.033.562-.094l.133-.034c.038.028.181-.005.065.064q.187-.015.363-.079l-.025-.006.07-.013c0-.064-.133-.035-.182-.064q.242-.068.49-.108.256-.055.49-.167c.07.05-.19.094-.294.138.103 0 .098 0 .074.054l.245-.118c.137.147.76-.142.775-.079q.125-.058.26-.088h-.358c-.142 0-.034.093-.23.147-.079 0-.27.05-.344 0 .23-.059.584-.225.824-.26 0 .035-.069 0-.152.064.387-.037.76-.165 1.089-.373-.083 0-.285.128-.324.089-.068.044.03 0 0 .049q-.305.03-.588.147a2.3 2.3 0 0 1 .716-.255q.23-.155.49-.255c0 .023-.025.047-.015.04l.014-.01-.057.054c-.064.039-.144.043-.221.117 0 .052.24-.097.207-.034l-.022.027h.003l.046-.024-.053.03.005-.006-.112.057-.155.077-.071.034c-.05.025-.032.018.127-.053.074-.02.191-.098.265-.098-.015-.03.127-.089.127-.118a2 2 0 0 1-.125.072l-.006.002.034-.026c.023-.019.046-.038.093-.063.039.03.171-.044.274-.078-.191.191-.838.407-.853.49a1.4 1.4 0 0 1-.285.054c-.044.142-.49.24-.657.265q-.281.127-.574.225l-.172.052c.178.02.557-.121.712-.164q-.195.115-.412.181c-.162.064-.3.103-.245.128a7 7 0 0 0-.83.103.38.38 0 0 1 .32-.074.6.6 0 0 0 .206-.095l.019-.014-.191.047q-.301.067-.608.101c0-.029.083-.053.088-.083-.069 0-.137.044-.21.059.033 0 .063 0 .068.04a.5.5 0 0 0-.135-.009l-.162.009c-.105.004-.194 0-.194-.055a.37.37 0 0 0-.24.147c.069.084.422-.137.387 0h-.054c-.187.07-.388.097-.588.079a.064.064 0 0 0-.074-.059c.074-.04.3-.059.25-.118-.353.025-.652.128-1.054.133a.3.3 0 0 1-.196.162c-.108 0 .147-.07-.059-.07q-.109.063-.201.148c-.152 0-.226-.098-.123-.157q.186.017.373 0c-.765-.034-1.378.093-2.119 0-.122.04.098.064.054.133-.191 0-.162-.06-.157-.113-.186-.044-.23 0-.372.044-.143.044-.398-.103-.265 0-.27 0-.201-.123-.466-.147 0-.06.265 0 .422 0a3.8 3.8 0 0 0-1.035-.162c0 .118.27.073.49.132-.275.035.186.113.04.157-.585-.197-1.303-.226-1.931-.393l-.241-.077c-.028-.028-.293-.158-.36-.158q.218.004.422.079c-.103-.069-.338-.108-.181-.147-.108-.035-.167-.03-.167 0a4 4 0 0 0-.446-.177c-.028-.021-.028-.032-.02-.04l.036-.02c.01-.008.01-.02-.016-.043a.84.84 0 0 1-.437-.2c-.05-.03-.054.048.027.09l.047.017a5 5 0 0 1-.49-.201c.083 0 .102-.04-.074-.098.059 0 .078-.04.137-.04a1 1 0 0 0-.402-.151c0 .044.21.112.226.152-.089.029-.157-.035-.265-.069 0 .04.142.093.064.118.078.054.294.117.284.152q.06.015.123 0c.176.088-.044.039.063.127.108.089.25.093.49.196-.029 0-.2-.058-.176 0a12 12 0 0 0-1.182-.578c-.108 0 .162.108.123.132s-.285-.103-.49-.206c0 .044-.064.03-.07.108-.156-.078-.161-.245-.235-.181 0-.035-.063-.079-.122-.133l-.211-.162c.132.04.093 0 0-.088l.132.078q.15.078.27.197c-.098-.138-.235-.295-.343-.442-.056-.036-.118-.083-.159-.095l-.026-.003-.128-.086.112.1a.02.02 0 0 1 .016-.014l.02.013q.083.052.17.1c.044.078-.019.04-.1-.014l-.102-.068c-.066-.043-.122-.071-.122-.036 0-.049-.25-.191-.167-.21l.157.119.012.007-.04-.036c-.144-.138-.261-.268-.408-.405-.035 0-.05 0-.089-.054-.039-.053.084.123 0 .143-.112-.084-.049-.098-.083-.147-.034-.05-.083-.025-.142-.074-.042-.035.008.018.057.067l.05.05c.04.04-.121-.117-.152-.088l-.004.017.017.015c.109.093.225.172.31.197l.022.003.119.124q.134.13.287.238c.162.113.265.181.137.113-.265-.138-.45-.378-.642-.461 0 .068.118.068.2.171-.025.033-.059.02-.083.017l-.012.001-.038-.03-.234-.189c-.172-.142-.343-.314-.432-.397.025-.037.118.052.145.03l.001-.007-.132-.124a16 16 0 0 1-.283-.277 8 8 0 0 0-.57-.618c.094.152-.146-.039-.068.064a1.1 1.1 0 0 1-.358-.319s0 .06.03.118c.205.088.274.422.573.696-.186-.083-.387-.412-.49-.49a1.2 1.2 0 0 0-.28-.466c.094 0-.073-.186.05-.113-.216-.176-.197-.274-.368-.382-.054-.152.181.108.294.24a1.9 1.9 0 0 0-.57-.696 8 8 0 0 0-.593-.883c0-.06.089.068.118.049.03-.02-.04-.088-.069-.142-.083.083-.318-.334-.392-.447-.073-.113-.137 0-.049-.093-.078-.083-.167-.24-.226-.24q.143.206.263.425l.114.221a1 1 0 0 1-.102-.126c0 .147.157.24.216.372 0 0-.04-.088-.074-.147s.113.098.152.093c.074.275-.21-.034-.274-.073.034-.098-.196-.368-.211-.49-.103 0-.187-.393-.314-.442-.04-.137-.152-.387-.201-.564-.113-.044-.26-.407-.373-.49-.064-.153-.093-.305-.04-.339-.053-.196-.097-.127-.151-.29 0-.048 0-.215-.044-.215-.04-.162.068.04.093 0a.26.26 0 0 0 0-.22c-.04-.074-.103-.074-.088.029a.9.9 0 0 1-.128-.265c0-.108-.034-.22-.049-.329-.025-.216-.04-.402-.108-.451a1.8 1.8 0 0 0-.108-.49c-.044 0 .035.186.05.264a.1.1 0 0 1 .005.033l-.013-.03a.3.3 0 0 0-.027-.052h-.034v-.059c0-.014-.089-.186-.113-.367.044-.05.064-.147 0-.388-.069 0 .064.319 0 .285a2.4 2.4 0 0 1-.079-.638c0-.078 0 0-.054 0a.5.5 0 0 1 0-.382c-.063 0-.098-.133-.098-.427-.063.245.05.701 0 .878a2.2 2.2 0 0 1-.039-.682q.03-.341 0-.682c-.027.086-.047.028-.065-.056l-.022-.105c-.01-.052-.022-.097-.036-.108-.058.073 0 .112 0 .28-.027-.04-.03-.124-.029-.22l.003-.097c.024-.03.042-.083.085-.052v.206l.002-.034c.008-.07.042.087.072.044v-.54c-.071.063-.058.348-.143.22l-.012-.021v-.025a1 1 0 0 0-.007-.085c.088 0 0-.378.132-.437 0 .138 0 .28.054.27q.034-.357.025-.716.014-.316.069-.628a.8.8 0 0 0-.099.373v.485c-.058-.029-.053.133-.073.211-.074 0 0-.45-.074-.436 0-.157.064-.245.123-.265.034-.422.177-.937 0-.98 0 .058.034.063 0 .166 0-.118-.054.03-.074.157-.063 0-.063-.172-.058-.339h.073q-.005-.274.04-.544c.093.034.127-.392.205-.461 0-.074-.044-.083-.039-.177-.03 0-.044.133-.064.211-.068 0 0-.21-.083-.24 0 .152-.177.49-.201.8-.069.18-.054-.158 0-.221-.05 0-.054.083-.074 0-.02-.084.054-.069.074-.157s0-.177-.069-.128q.093-.26.118-.534c0-.108.03-.216.054-.329q.044-.173.108-.338c.054.039.108.083.196 0 .034.132-.137.363-.04.402.109-.172.202-.564.315-.726.049 0 0 .123 0 .23.024 0 .047-.02.07-.046l.067-.086c-.05-.093.113-.172.113-.368-.04 0-.084.098-.128.128a3.1 3.1 0 0 1 .294-.839c.076-.157.153-.305.228-.46l.11-.236v.073c.07-.122.128-.24.05-.22.167-.275.294-.442.407-.628.113-.187.235-.378.432-.667-.098.034-.143.19-.216.255.04-.16-.08-.032-.179.134l-.027.045.13-.259q.284-.535.664-1.01c.167-.225.349-.436.49-.651l.156-.209.077-.091-.048.034c-.157.13-.373.446-.434.403.206-.245.402-.451.613-.687.21-.235.446-.49.74-.784-.039 0-.166.137-.171.058.166-.152.088-.093.044-.117.073 0 .235-.152.255-.054l.29-.255c0-.05-.094.01-.195.097l-.049.042.072-.085c.078-.103.348-.221.358-.353.063 0 .186-.094.328-.211 0 .058-.171.176-.039.127 0-.078.422-.338.417-.181.052-.03.07-.048.075-.062l.005-.037c.005-.014.021-.03.072-.058.152-.084-.074.108.069.088.135-.17.301-.314.49-.422-.108 0-.407.3-.515.314.059-.078.167-.108.3-.24-.045 0-.226.152-.324.21-.099.06-.128 0-.108-.058s.063 0 .088.03c.169-.173.373-.307.598-.393 0-.05-.196.078-.098-.05-.073 0-.108.104-.196.109 0-.044.201-.138.21-.182.148-.078.35-.166.491-.255l.144-.09c.093-.061.17-.126.18-.194.186-.118.177 0 .368-.133.191-.132-.064 0-.034-.063q.371-.14.72-.329.285-.144.59-.245c.151-.074.063-.113-.035-.084q.256-.12.525-.21c.063 0 .078.039.093.083.431-.137.49-.29.755-.314.132-.05.059-.098.123-.147.063-.05.397-.172.377-.088-.122.034-.24.083-.363.127.236-.04.56-.152.805-.191l.122-.157a.43.43 0 0 1 .275-.034c.078-.03-.025 0 0-.054.162-.06.378-.118.613-.182s.49-.113.716-.181c.226-.069.108-.05.211-.064q.368-.053.726-.147c.27-.054.554-.118.848-.147 0 .034.05.029.113.029a1 1 0 0 1-.373.118c.26 0 .49-.064.77-.06 0-.048-.19-.024-.333 0 0-.04.044-.072.111-.098l.071-.024h.01c.122 0 .362 0 .436-.093l-.04.003.06-.013c.151 0 .146.128-.045.172.39.017.78-.02 1.158-.113.245.054.49 0 .608.079q.451-.04.902 0c.31.024.564.029.55-.079.098.044.098 0 .274.03-.152-.079.201-.06-.044-.099q.226-.036.451 0c-.098 0-.104.005-.075.015l.063.017c.05.014.107.033.115.057.167.039.113-.035.285 0-.04.042-.148.05-.272.05l-.19-.001c0 .108.491.132.584.24l-.637-.103a3.5 3.5 0 0 0-.574-.069c.22.064.432.143.701.206.122.048-.097.011-.192-.022l-.027-.011.057.037c.095.04.244.044.314.075.089.04-.171.054 0 .088-.068 0-.328-.068-.54-.073-.048-.079.187 0 .226-.045a3 3 0 0 0-.313-.166.7.7 0 0 0-.427-.06c.162.05.25.114.2.212-.151-.03-.141 0-.274 0 .035.049.31.034.265.103a1.25 1.25 0 0 0-.76-.035s.132 0 .216.035c.083.034-.157.049.049.064-.103 0-.192 0-.329.029q.18.069.373.069c-.044 0-.564 0-.755.044a.9.9 0 0 0 .49.064c-.132.078-.628 0-.647.137q.319.025.637 0c.133 0-.054.049-.162.03-.196.137.358.127.25.186.167 0 .148-.064.373 0 0-.054-.392 0-.309-.084.697 0 1.658.304 1.992.221.338.005.672.08.98.22-.044.03-.26-.058-.22 0-.04-.073-.26-.132-.49-.176 0 .059.146.107.316.15l.174.041c-.103.03-.172.177.162.216-.07.128-.304 0-.49.05.038.063.22.107.279.166.147.049.108 0 .255 0-.064.044-.152 0 .034.083-.034 0-.064 0-.064.045-.093 0-.368-.094-.456-.074 0 .034.128.054.079.098a.5.5 0 0 0-.143-.054c.074.079.089.069-.068.079.21.117-.079.196.402.25 0 .034-.069 0-.069.059a.68.68 0 0 0-.49 0c-.138-.05 0-.07-.079-.094 0 .167-.343.182-.652.192s-.598.044-.49.19c-.099 0-.344-.058-.344.045-.25-.098-.422 0-.71-.034-.099 0 .176.117-.148.063 0 .089.127.123.319.123 0 0-.093 0-.093.025 0 .024.166-.025.235-.03.059.142-.338.118-.574.157 0-.034.137-.03.098-.088a.7.7 0 0 0 .142.03c-.039-.08-.225-.099-.27-.167a.94.94 0 0 0-.49.088s.044 0 .044.039q.246-.036.49 0c0 .069-.333 0-.235.118-.044 0-.074-.017-.086-.037l-.007-.022-.011.024c-.037.038-.155.07-.254.103-.117.04-.23.089-.245.138-.265.03-.49.068-.819.088.084.088-.328.069-.216.177-.338.066-.672.127-1.014.188l-.521.092-.114-.009q-.165-.006-.327.013c-.059.128-.731.015-.74.22l.249-.055-.135.043q-.088.025-.179.042l-.598.147a8 8 0 0 1-1.01.226q.24-.097.49-.157a1.2 1.2 0 0 0-.27.04c-.098 0-.2.063-.313.102-.226.079-.49.182-.716.24 0 .035.053 0 .063.035q.237-.118.49-.196c.046.032-.08.062-.072.096l.006.006-.024-.001a.7.7 0 0 0-.184.06l.002-.001-.141.049q-.182.069-.351.163c-.054 0-.334.03-.334.133-.113.059-.118 0-.226.044.045-.054.211-.093.31-.186a1 1 0 0 1-.32.068 1 1 0 0 1-.313.177c-.064-.147-.314.03-.265-.113-.025-.03-.123 0-.22.074-.056.051-.052.064-.033.068l.047.004c.022.004.031.02-.015.075.152-.054.03.113.236-.044l.034.063q-.346.117-.672.28c.034 0 .098-.04.108 0-.157.064-.353.26-.584.343a.6.6 0 0 1 .304-.191c0-.04-.045-.022-.102.01l-.12.07c-.058.03-.104.043-.106-.006.324-.118.034-.064.225-.236-.058-.049-.245.079-.367.108-.123.03.034.054 0 .128a.28.28 0 0 1-.216-.079c-.157.118.122 0-.108.167.04 0 .049.03.103 0a2 2 0 0 1-.446.392.44.44 0 0 1 .176-.22c-.088.029-.22.132-.186.205-.162.108-.221.24-.358.285-.138.044.068.083-.079.186.103 0 .29-.166.363-.122-.157.034-.583.49-.534.27 0 0-.074.044-.113.073 0-.108.162-.132.225-.147a.2.2 0 0 0 0-.206c-.078.054-.058.103 0 .059.03.059-.206.117-.19.196-.094.069-.109 0-.197.049s-.044.108-.177.21l.064.07c-.083 0-.083.171-.225.22.029-.068.186-.152.107-.21a4.2 4.2 0 0 0-.824.72c-.053.094.118 0-.029.152 0-.039 0-.127-.103-.03q-.085.166-.22.29a1.1 1.1 0 0 0-.226.339.13.13 0 0 0 .06-.026l.018-.019c-.013-.01-.003-.036 0-.083.05-.054.069 0 .142-.122 0 .039-.054.122 0 .132q-.104.118-.171.26c.073-.069.377-.319.328-.422.074 0 .32-.324.285-.167-.098 0-.407.398-.442.55a.4.4 0 0 1-.166.093.2.2 0 0 0 0 .108c-.108.073-.167.108-.201 0l.008-.011-.02.022c-.07.086-.139.224-.136.298a1 1 0 0 0-.161.152q-.093.133-.167.274c.044.153 0 .349.03.52a1.5 1.5 0 0 0-.187.246c0-.133-.118.073-.083-.089-.123.152-.128.49-.05.456-.044.157-.093.054-.137.133a.36.36 0 0 1 .054-.216c-.04 0-.162.157-.142.226.02.068-.079 0-.118.093-.04 0 .003-.082.007-.122l-.007-.02-.008.019c-.025.022-.104.002-.149.108-.073.23.084.074.093.226-.045 0-.055 0-.066.093l-.005.042-.01.028-.013.006c-.052.032-.112.153-.117.037-.063.2.05.059 0 .24-.049.182-.112.211-.161.368-.025.078-.011.087.01.08l.037-.017q.018-.009.026 0a.7.7 0 0 1-.162.192c-.039.137.025.127 0 .235l-.076.186-.027.089a.3.3 0 0 0-.043.093l-.015.06h.017l-.027.146q-.05.27-.133.53c.05.034.035.176.093.191.06.015-.039.034-.058.04-.02.004 0 .117 0 .137.098-.147.122-.246.23-.196-.044.098-.132.289-.172.206l-.039.632v.53c0 .123.03 0 .074.044s-.05.216 0 .177c0 .096-.054.11-.073.041l-.006-.041-.018.091a.7.7 0 0 0 .018.276c.03.123.069.24.094.339-.054.083-.045.176 0 .353-.138-.22-.118-.29-.133-.657-.073.059-.034.299-.152.186a.4.4 0 0 0 0 .23c0 .089.074.03.069.177.068 0 0-.186.083-.142.033.018.04.026.039.03l-.01.006.01.003c0 .201-.088.339-.142.285 0 .127-.123.26 0 .368v-.113c0-.054 0-.103.03-.074 0 .147 0 .123.058.22.06.099 0-.17.064-.146.03.108.05.27.108.255a3 3 0 0 0-.069-.437c.06-.088.084 0 .148 0q-.002.104.034.201.024.075.031.153l.003.076.003-.067c.012-.128.066-.036.14-.083 0 .176.068.157.093.29-.108 0 0 .137-.045.186-.029-.099-.088-.064-.132-.108.027.13.075.257.142.372-.059.079.089.275 0 .32q.085.11.147.235c.04 0-.034-.152-.044-.216.06.064.084.078.123 0 .044.127 0 .127 0 .186 0 .044.036.088.066.14l.027.055v-.01a.5.5 0 0 0-.03-.16c-.029-.064.07.059.055 0 .083.093-.099.24.034.397 0 .098-.083-.04-.108-.103 0 .074.044.24 0 .24.123.108.083.094.078.206-.004.1.104-.051.163.097l.005.02-.022-.019q-.025-.016-.037-.003l-.006.023c.06.01.103.226.162.216-.042-.137.016-.059.052-.035l.012.004.026.061c.038.096.062.188.048.244.088.197.083 0 .142.079q.086.127.147.27c-.113-.098-.054.063-.059.176.079.064.05-.049.133 0 0 .089.063.093.112.24.05.148-.093.08 0 .256.05.083 0-.074.084-.045.142.295.191.202.29.393-.104 0 .063.22-.055.132 0-.054-.044-.166-.103-.147.059.123.182.412.314.49 0-.063-.093-.083-.088-.156.005-.074 0-.044.083-.05l.007.02.03.022c.043.045.096.14.135.17-.036.029-.087-.044-.135-.11l-.037-.101q.043.135.112.258l.04.065-.02-.03c-.093 0 .162.379 0 .177-.044.035.128.27.187.31.059-.07-.093-.143 0-.202.109.218.051-.025.123.056l.005.007c.046.037.098.102.127.094.04.055-.016.054-.044.068l-.01.01-.042-.09-.028-.048c-.02.003-.029.021-.03.046l-.001.013.025.016c.047.052.062.187.115.142a.6.6 0 0 0 .064.118c0 .044-.064-.03-.108-.083s.005.02.02.049c0 0-.079-.079-.123-.133l.003-.001-.005-.006-.014-.025.043.094c.072.13.18.236.312.306 0-.147 0-.034.058-.044.06-.01-.044-.05-.093-.152-.049-.103.084.049.113.024 0 .084.03.094.118.187-.054 0-.177-.035-.157.068.137.04.377.58.559.53q.103.112.044.142c-.04.02.118.074.201.162q.052.053.092.102l.026.037.011.002c.028.002.025-.01-.07-.097a.06.06 0 0 0 .056.014l.012-.006-.043-.05c-.056-.063-.106-.112-.138-.12-.064-.014.03 0 .04-.039-.094-.142-.099 0-.187-.132l.054-.05q.119.093.196.221c.044.064.079.108.118.099.059.05.049.07.022.089l-.012.007.018.024.01.025-.038-.042.01-.007-.004-.006-.03-.027-.016.008.014.017.058.07.011.012-.002-.02-.002-.004.032.035c.124.129.269.248.302.309-.04 0-.157-.152-.23-.21-.06-.048-.065-.02-.09-.007l-.019.005.002.022c.026.043.115.119-.007.082.094.137.064 0 .138.059.073.059 0 0 0 .074l.2.197-.04-.012c-.035-.008-.062-.01-.058.015l.015.035.025-.025c.014.03.047.068.086.103l.052.042.011.025c.032.06.089.142.062.169q.121.075.2.191c.07.044.143.079.168 0q.062.14.108.29l.209.179-.052-.076a.8.8 0 0 0-.133-.133c.03 0 .128.093.167.093.02 0 0-.022-.03-.05l-.068-.057-.03-.025c-.049-.044.113 0 .143-.03.039.07.103.246.24.28.059.059 0 .03-.034.044.107.093.215.054.142.108l.181.137c-.039-.068-.068-.23-.24-.28 0-.083.353.202.402.217-.044-.079-.054-.06 0-.084q.045.053.098.098l.088.064c.054.04.089.074.05.098q.072.052.152.093c.068-.03-.099-.073 0-.103.098-.03.176.133.171.06.054.141.432.19.49.303a.18.18 0 0 1-.156-.049c-.098.079.117.182-.04.187.118.063.133 0 .192.083s.078-.074.225 0c0 .088 0 .113.098.216l.06.043h.004l.027.034h-.076a1 1 0 0 0-.137.02l.04-.102c-.173-.04-.305-.118-.212-.162a2.3 2.3 0 0 1-.392-.132c0 .063 0 .063-.05.098-.038-.108-.156-.079-.235-.079.04.093.157.054.23.098-.087 0 0 .074-.107.03l.088.103q.049.015.098 0c-.098-.054 0-.04-.034-.118.034.044.132.078.177.118s-.099 0-.04.088q.148.043.3.064l-.113-.064a.4.4 0 0 1 .215.044.5.5 0 0 0 .172.177c.085.062.19.092.294.083 0-.03-.088-.049-.068-.083-.084-.03-.167-.05-.25-.084q.25.01.49.079c-.152-.044-.24.068 0 .122.059 0 .05-.034.064-.058a.4.4 0 0 1-.133 0c.07-.05.344.049.373-.035.03-.083-.21-.064-.147-.117.124.018.18.05.223.081l.014.011h.268c-.039-.068-.122-.034-.2-.102 0-.028.09-.011.124-.019l.004-.004c.076.018.24.056.17.096.113.035.093 0 .143-.03s-.07.08-.148.065c.064.029-.029.088.113.098.025.039-.142.054 0 .093-.039 0-.083 0-.132-.025 0 0 .044.045 0 .035.026.025.213.081.18.118l-.028.014-.021-.008c-.063-.04.015-.088-.166-.075 0-.027-.029-.05-.057-.071l-.019-.017-.125.008q-.137.004-.274-.009l.441.138q.145.048.313.1l.091.026-.015.004c-.057.004-.151-.019-.203-.028l-.002-.001-.01.006c-.008.007-.01.017.017.035.07.044.064.074.035.103l-.001.023.006.004.001.003.046.007c.075-.006.093-.085.183-.008-.196.035-.098.128-.225.206.176.04 0 0 .053-.044q.14.016.28 0c-.03 0 .04.103-.059.089a.24.24 0 0 0-.083-.07c0 .07-.187.09-.24 0 0 .065-.099.04 0 .094a.7.7 0 0 0-.295 0q.361.015.706.123c0-.069-.318-.069-.264-.152.25.093.206 0 .387 0 0 0 0 .044.034.059-.073 0-.127 0-.049.029.079.03.197 0 .285 0s.098.186.22.152c-.088 0 .074-.074.153-.074.212.074.44.09.662.05.083 0 .103.058.088.112.162 0 .24.074.338 0-.343 0 .094-.063 0-.073-.19 0-.21-.108-.372-.143a.42.42 0 0 1 .28 0c0-.058-.138-.058-.28-.063a.36.36 0 0 1-.334.073c0-.043.1-.045.16-.065l.033-.017-.017-.003-.058-.003c-.174.002-.272.094-.22.172-.09-.05-.207 0-.231-.054.045.02.097.02.142 0-.172-.05-.304 0-.373-.074.059 0 .103.044.142 0-.054-.034-.132-.064-.132-.108.147.035.113.128.368.128a4 4 0 0 0-.304-.255c.157-.03.27.039.284-.064-.176-.034-.196.054-.324 0 0 .127-.26 0-.328 0 .127.064.049.162 0 .226.044-.054-.24-.187-.03-.118.05-.088-.274-.098-.309-.118.103 0-.034-.068.06-.088-.193-.019-.158-.027-.124-.042l.01-.007.05.012c.096.012-.015-.088.053-.105 0-.044-.073 0-.132-.04-.05-.033.065-.042.176-.016h.001l-.054.026.059.009-.006.008c-.009.032.028.083.055.106q.22.01.436-.04c.162-.033.329-.033.49 0l-.001-.005c.012.016.011.026.002.04h.137q-.012-.052-.088-.091l-.012-.005h.034c.139.004.308.02.252-.046a.7.7 0 0 1 .226 0c-.084.059 0 .078.04.132-.153 0-.197 0-.227.04.113.068.285 0 .408 0 0 .053.073.039 0 .073.122 0 .093-.034.137-.05-.142-.029.034-.068-.177-.078.03 0 .103 0 .093-.054a.5.5 0 0 1-.309-.122 2.4 2.4 0 0 1-.49-.034 1.3 1.3 0 0 1-.446-.143q.195.056.397.044c0-.039-.157 0-.216-.044.098-.054.25.044.31 0 .048.098.406.123.568.074 0 .073.339.127.172.157.117.054.28 0 .402 0 .123 0-.069.044-.088.073l.104.01h.105l.027-.01h-.104a.4.4 0 0 1 .139-.04l.037-.005q.007-.025-.027-.044l-.007-.005c-.046.007-.095.016-.142.016 0-.059-.098-.059-.088-.113.324 0 .176-.137.49-.083q-.036.066-.132 0c.098.127.392-.03.49.127h-.181l.021.003.011.021c.033.025.124.023.218.015q.003-.026-.034-.032h-.001l.092-.022a.6.6 0 0 0 .095-.044 1 1 0 0 0-.54-.083c.07-.103.388-.044.393-.054a.8.8 0 0 0 .534.044c-.112.123-.039.113.025.22-.103-.053-.069 0-.128.055h.182c.147 0-.177.03-.177.054s.05 0 .05.049c.235-.044.225-.034.446-.088 0 0-.187-.035-.054-.07h-.27v-.185c.123 0 .157 0 .093.044q.207-.056.378-.187c-.103 0-.422.128-.613.04q.323-.066.652-.079c0-.123.123 0 .196-.152a.2.2 0 0 1 .138.034c.078 0 0-.068.117-.078a.7.7 0 0 0-.26 0c.079-.059.363-.064.456-.128.035.054.202 0 .31 0 0 .03-.035.044-.03.064s.108 0 .172 0-.138 0-.103-.054c.034-.054.147 0 .122-.049a4 4 0 0 1 .74-.064c0-.063.197-.093.29-.093-.294.22-.314.402-.677.623l.031.008.063-.008c-.04 0-.26.069-.29.142.228-.023.449-.087.653-.191-.054 0-.192 0-.226.034-.201 0 .172-.073.157-.108-.015-.034.235.064.083.128.108 0 .093 0 .074.074.172-.054 0 0 .069-.084.176-.04.152.04.083.113s-.314.034-.25.123l-.22.063c-.045-.054.21-.059.068-.098-.142.069-.167.084-.201.138-.035.054-.054-.05-.187 0 .03.034-.108.078-.304.112 0 .035.064.03.059.064.074-.059.49-.191.49-.093.275-.088.417-.103.417-.226.045 0 .045 0 .06.025q.729-.218 1.426-.525.742-.33 1.413-.785c-.078 0-.22.123-.294.138.017-.06-.008-.059-.051-.043l-.074.03-.042.013q.188-.13.387-.236c.04 0-.034.064-.093.108h.06c.298-.186.49-.196.686-.392-.079 0-.226.103-.265.039.157-.167.431-.21.29-.083.2-.05.068-.133.244-.138.099-.073-.103-.049.054-.147.334-.083.64-.252.888-.49.152-.138.314-.29.49-.447.177-.157.31-.328.491-.49 0 .034-.132.235 0 .118-.11.182-.262.336-.441.45-.359.45-.784.842-1.26 1.163.068.093.24-.22.347-.181-.044.034-.058.059-.058.078-.084-.03-.3.3-.383.211q-.106.131-.245.226c-.06-.06-.24.059-.451.196l-.103.066-.01.021a.3.3 0 0 1-.132.071l-.005.001-.152.087-.212.102-.029.04c.159-.031.308-.098.437-.197 0 .055-.217.156-.248.212l.001.007-.102.048a1 1 0 0 1-.117.037c-.045.098-.31.23-.363.329l.49-.245c.157-.084.27-.172.25-.211.103-.054.358-.142.417-.25-.087.048-.111.06-.11.05l.001-.002.056-.03c.157-.09.346-.205.475-.278l.11-.062.03-.015q.005-.002-.013.012l-.066.045-.125.083c.069 0 .177-.063.265-.137.088-.073.167-.132.191-.069-.206.226-.353.226-.49.354h.073q.163-.126.295-.22l.032-.024.02-.02c.035-.03.079-.059.119-.084l.054-.033.03-.02.126-.089-.017.03c-.034.04-.1.097-.104.126l-.019.013a.2.2 0 0 1-.044.034l-.024.012-.169.117q-.132.088-.269.178l-.118.079.249-.153-.004.01.025.01c-.034 0-.044.034 0 0l-.01.005-.113.08q-.12.088-.23.189l-.001-.084.067-.046z"}),o.createElement("path",{d:"M12.582 12.348c-.117.04-.397.574-.49.628.152-.084.441-.618.49-.628m-.578.75c-.167.368-.3.49-.437.82q.163-.44.437-.82m-.49.854c-.045.152-.153.382-.241.672a.9.9 0 0 1 .069-.304l.078-.197c.05-.063.079-.122.108-.181zm-.491 1.275c.034-.36.127-.71.274-1.04a8.5 8.5 0 0 1 .49-1.015 7.2 7.2 0 0 0-.74 2.055zm10.437 2.59v-.045c0-.014.034.06.049.079s-.044 0-.05.049a.2.2 0 0 0-.048-.079.4.4 0 0 0-.113-.058c-.035 0-.044-.045 0-.03s.127 0 .122.054c-.004.054.054.005.064.03zm.112.313c-.029.04 0 .103 0 .152 0 .05-.044-.137.02-.152zm-10.848-2.393c.008-.401.086-.798.23-1.172.005.358-.216.72-.23 1.172m10.378 1.722c0 .127-.192.122-.177.19a.2.2 0 0 1-.074 0h-.107c.137-.063.225-.078.358-.19m-1.555 4.659c-.28.192-.588.341-.912.441q.183-.106.382-.176.278-.116.54-.265zm-8.926-5.96c-.035.094 0 .06 0 .187v-.044.093-.284c-.04.024-.025.049 0 .049m10.79 1.276a.083.083 0 0 1 .117-.025c.04.02.07.055.079.099-.084.044-.103-.074-.187-.074zm-.128 3.291c0-.098.113-.108.147-.21.04 0-.064.141-.093.195-.03.054-.024-.01-.044.015zM10.46 15.958l.098-.545c.01.094.015.535-.098.545m1.211 4.36c0-.034.255.378.314.417s0-.06-.044-.093q.139.152.23.338a1 1 0 0 1-.25-.25 4 4 0 0 1-.25-.412m-.652-6.597c.064 0 0 .113 0 .128-.069.171-.108.167-.167.319q.056-.235.167-.447m2.943 8.858s-.079 0-.148-.03-.137-.103-.2-.137c.004-.083.21.137.333.167zm7.896-4.713c-.04.029-.03-.074-.044-.098-.015-.025.054 0 .03.034-.025.034.058 0 .053.069-.02-.005-.04-.054-.04-.005m-11.305-.555.069.25c0 .094.039.192.058.3q.046.315.148.618a1.3 1.3 0 0 1-.103-.236l-.098-.368a1.5 1.5 0 0 1-.074-.564m2.722 4.905c-.025.064-.21-.162-.265-.147-.093-.142.182.073.245.132zm-2.796-6.803q.012.226-.034.447a1.2 1.2 0 0 1 .034-.447m9.48 6.71c0 .064-.176.152-.328.235q.147-.142.329-.235M16.125 8.547l.044-.04c.044-.039-.069 0-.108 0 .044-.088.167-.078.294-.151a.5.5 0 0 1-.23.19m2.133 9.402a2.7 2.7 0 0 1-.716.216q.346-.146.716-.216m-2.943-9.451c.123-.123.368-.152.574-.26a2 2 0 0 1-.579.26zM17.59 7.13a1.5 1.5 0 0 1 .417-.113 1.2 1.2 0 0 1-.422.113zm-1.5.103c.087-.084.289-.06.49-.128a2 2 0 0 1-.496.128zm.49-.344c.186-.108.632-.176.74-.27.035.04-.073.084-.225.128a24 24 0 0 1-.515.142m.98 9.81c-.24.093 0-.118-.058-.158.166-.02-.035.133.073.167zM15.806 6.81c.291-.189.633-.285.98-.275-.328.098-.657.182-.98.275m1.82 9.676c-.207.079.122-.117-.084-.044 0-.059.181-.073.127 0 .363-.142 0 0-.044.044m-3.012-9.411a6 6 0 0 1 1.123-.452 7 7 0 0 1-.613.28c-.16.082-.333.14-.51.172m2.898 8.96c-.186.093-.107 0-.147-.039a.8.8 0 0 0 .182-.054q-.059.045-.035.088zm-3.384-9.318c-.245.166-.49.27-.73.412q.332-.27.73-.422zM7.477 17.92c0 .058.191.618.113.564a1.4 1.4 0 0 1-.06-.27q.005-.06 0-.118zm-.275-2.232c-.001-.37.045-.74.137-1.099.04-.176.074-.289.079-.264s-.034.196-.108.593a5 5 0 0 0-.108.77m12.262-1.187h-.143c.147 0 .147-.078.368-.123 0 0-.088.054-.157.089-.068.034-.093.014-.078.034zm-12.34 1.02a2.7 2.7 0 0 1 .059-.598c.049-.201.103-.373.117-.461.006.155-.017.31-.068.456q-.081.297-.108.603m12.1-1.089a.6.6 0 0 1 .195-.132l.23-.103.295-.123a1 1 0 0 1-.338.192l-.206.083zm.52 11.63c.264-.138.857-.34 1.24-.555-.394.225-.81.409-1.24.55zm5.615-6.45c0-.314.059-.393.073-.658.025.035-.01.741-.073.653zM12.656 12.71a3.7 3.7 0 0 1-.461.618c.03-.167.29-.402.461-.618m1.824-2.398c0-.045.187-.138.143-.167-.368.235-.452.49-.687.657.378-.167.81-.667 1.084-.804-.23.215-.584.49-.922.79q-.42.381-.888.7c-.309.378-.593.599-.809.869q.37-.524.853-.942c-.176.09-.33.217-.45.373q-.197.24-.437.436A8 8 0 0 1 13.612 11a4.5 4.5 0 0 0-1.245 1.123q.357-.457.784-.848c-.251.17-.478.374-.672.608-.117.142-.235.28-.328.402l-.191.255-.25.353c-.094.148-.207.31-.3.49a6.4 6.4 0 0 0-.466.982c.03 0 .06-.113.089-.182-.099.3-.226.672-.32 1.025l-.058.26c0 .084 0 .162-.034.236a1.4 1.4 0 0 0 0 .368c-.079.024 0-.33-.054-.29.108-.333.108-.765.26-1.255-.045 0-.079.063-.118.157q-.03.133-.093.255c.044.058.063-.152.103-.182.054.196-.187.236-.196.623a.5.5 0 0 1 0-.255 1.47 1.47 0 0 0-.079.893c-.034-.07-.044.034-.049.176s0 .324 0 .412c-.05-.122-.054-.04-.03.084.025.122.064.294.07.353.004.058.043.25.063.387l.098.49c.04.162.064.324.108.491s.098.28.147.392c0-.122.118.079.054-.137.04 0 .079.216.123.304s-.084.123.03.339c0-.099.038 0 .097.142q.084.28.23.534c0-.068-.264-.49-.171-.49.069.196.074.176.108.304 0-.059.078-.074.04-.196q.11.355.269.691s-.059-.078-.093-.132c0 .034.064.157 0 .132q.089.11.152.236.066.106.167.181c.162.38.41.715.725.981h-.078c.157.103.358.339.613.535l.181.162.197.127q.165.119.358.191l.21.148q.125.085.26.147.253.127.525.196c.03-.03-.196-.113-.225-.093 0-.089.49.103.652.147h.22l.187.03h.162c0-.045-.108-.04-.201-.055s-.191 0-.211-.039c.113 0 .118 0 .147-.03.137.094.216.03.319.055-.074 0-.054.058.275.054 0 .044-.197 0-.28 0a.5.5 0 0 0 .284 0q.137-.045.28-.054l-.142.063q.12-.006.24 0 .22-.102.461-.127c-.034.054-.23.078-.368.108.093.088.383-.06.49 0 .114 0-.063-.04-.102-.04a.22.22 0 0 1 .176 0q.151.015.295-.039h-.383c.24-.122.868-.127 1.045-.274a3.9 3.9 0 0 0 1.334-.49c.103-.06.078 0 .162 0 .423-.23.803-.53 1.123-.889 0 .035-.06.113-.152.187.181-.074.215-.255.348-.383.044 0 0 .069-.069.123.292-.266.534-.582.716-.932.157-.295.254-.619.285-.952 0-.049 0-.078.044-.122a.4.4 0 0 0 .054-.236c0-.161-.04 0-.064-.103.05-.088 0-.362.079-.426a1 1 0 0 1-.045-.348v-.074a.2.2 0 0 0 0-.05.06.06 0 0 0-.039-.053c.05-.034.044-.113 0-.186a.6.6 0 0 1 0-.24.9.9 0 0 1 .074.269.6.6 0 0 0-.04-.338c-.029-.113-.068-.206-.034-.246.035-.039-.068-.088-.064-.181a.5.5 0 0 1-.19-.05.45.45 0 0 0-.226 0c.029 0 .093 0 .161.05.07.049.133.064.182.078-.054.03 0 .152-.034.246 0-.094 0-.113-.045-.108a.5.5 0 0 1-.093.03c0-.084-.068-.123-.142-.114-.074.01-.128.035-.108 0-.069 0-.078.074-.147.074s.069 0 .034.064c-.044 0-.093.044-.122.03-.03-.016.034-.03.059-.045s-.113 0-.211 0c.078 0 0 .034-.103.064a.4.4 0 0 0-.133.059l-.049.029a.1.1 0 0 0-.034.03v.053q-.24.096-.49.162c-.03-.049.362-.127.333-.171-.03-.045-.55.2-.437.25-.25.034-.22-.084-.245-.123-.024-.04-.03.05-.103.079s.162 0 .157.058c-.176.05-.22 0-.235-.088-.151.086-.318.141-.49.162 0 0 .063-.04.107-.064-.04-.03-.29.108-.412.142-.04-.029-.275.054-.147-.044-.21.064-.216.113-.402.177-.05-.079-.226-.044-.069-.172.138-.039-.073.147.113.113s.132-.152.309-.24c.177-.089-.147.117-.142.157a16 16 0 0 0 1.814-.662c-.652.147-1.216.49-1.47.402.25 0 .205-.201.519-.206 0-.054.132-.054.333-.167a8 8 0 0 0-1.265.49.6.6 0 0 1 .216-.122c-.03-.03-.255.093-.304.078.064-.063.29-.098.044-.059.319-.186.682-.264 1.035-.441a.75.75 0 0 0-.594.191c-.063 0 0-.127-.382.05q.316-.19.667-.3c0-.044-.059-.03-.084-.044-.147.05-.284.103-.274.147a.74.74 0 0 0-.363.098c-.069-.03.064-.078.024-.108.143-.054.04.05 0 .069.452-.167 0-.152.55-.314a1.5 1.5 0 0 0-.304.079c-.07-.05.206-.123.196-.177-.329 0-.319.137-.56.098.197-.064.265-.064.158-.103.196-.108.058.044.196 0 .113-.196-.525.147-.78.22 0-.078.3-.176.348-.132.283-.176.59-.31.912-.397 0-.069-.27.059-.372.069-.06.113-.211.049-.49.162 0-.079-.153 0-.168-.079-.127.064 0 .108-.26.182-.063 0 .256-.192-.034-.084 0-.03.226-.127 0-.039.177-.142-.186-.03.201-.177a.7.7 0 0 0-.343.152c-.108 0-.123-.039-.216-.034s-.309.147-.358.098a1.5 1.5 0 0 0 .353-.117c-.235.063.157-.143.216-.123s-.23-.098.172-.245c-.147.098-.182.216.127.147.31-.069-.083-.123.25-.216-.03 0-.117 0-.245.059-.127.059.402-.167.52-.206q-.108.077-.196.176.232-.086.456-.196c.186-.03-.23.138-.392.192.034 0 .068 0 .078.029-.132.059-.083 0-.196 0-.255.118.157.078-.206.162a1.8 1.8 0 0 0 .54-.167c-.25.04.49-.235.514-.22-.073-.045-.186 0-.044-.104-.245.133-.152.04-.078-.029-.103.034-.113.069-.226.108a.28.28 0 0 1 .162-.103c-.137 0-1.079.368-.569.078-.127.098.074.06.26 0-.118 0-.25-.059-.397 0-.147.06.03-.098.147-.137 0-.074-.216.054-.083-.049a.8.8 0 0 0-.32.206c-.22.054-.22 0-.49.127a.34.34 0 0 0 .142-.156c.089-.035.221-.074.221-.108.315-.023.621-.114.898-.265-.128 0-.265.117-.412.137.372-.206.55-.324.436-.427.128-.049.564-.21.334-.171a1.3 1.3 0 0 1 .53-.182c.088-.088-.177 0 0-.127-.108 0-.216.127-.334.167-.118.039 0-.03 0-.05-.275.128 0 .079-.392.192-.333.331-.74.579-1.187.72-.187.03.421-.151.26-.18q-.18.046-.354.117l-.029-.069c.074 0 .064 0 .079.03.107-.04.117-.069.225-.108 0-.054-.137 0-.25.034 0-.044.216-.113.206-.157-.157.04-.177.152-.284.128 0-.05.343-.147.24-.23s-.255.087-.29.112c-.186.074.344-.186.373-.245.128-.05.054.064.098.078q.534-.251 1.094-.441c-.03 0-.083 0-.186.03.142-.099.27-.089.456-.197-.035.083.078.05.196 0a.5.5 0 0 0 .088-.049l.044-.03.064-.034a.4.4 0 0 0 .142-.117c.255-.099-.196.132.192-.035l-.172.089c.157 0 .319-.197.53-.206 0-.108-.339.117-.555.132.03-.044.285-.128.162-.142-.299.098-.112.108-.25.176-.196 0-.235.093-.49.143 0 0 .108-.054.103-.079q-.211.058-.407.157c0 .03-.094.083-.206.162-.113.078 0-.059.103-.079-.29.06.132-.093.137-.157q-.295.18-.618.3c-.059.068 0 .108.113.117-.31.094-.285-.054-.133-.171a.6.6 0 0 0 .304-.074v-.034s-.117.024-.112.044c-.084 0 0-.03.044-.059-.172.04-.319.128-.535.167 0-.054.402-.138.393-.191q-.48.21-.981.362a10 10 0 0 0 1.147-.593c-.044.074.368-.093.461-.177-.073-.029-.142.084-.24.074a4 4 0 0 1 .544-.235l.452-.172q.216-.08.421-.186v-.094c.25-.056.469-.205.614-.417q.209-.105.431-.181c.167-.049.275-.083.108-.069l.186-.044h.177q.18-.015.358 0 .348 0 .687.084c.499.126.95.396 1.3.775-.045 0-.094-.045-.104 0-.328-.324-.667-.49-.613-.525a4 4 0 0 0-.627-.211c-.216-.05-.383-.05-.398 0a2.6 2.6 0 0 0-.922.078q-.227.054-.431.167c-.064.04-.03.054.161 0-.225.113-.54.172-.49.27.103 0 .402-.142.745-.23.32-.086.652-.118.981-.094a1.3 1.3 0 0 0-.24-.034h-.338q-.435.047-.844.2a2.7 2.7 0 0 1 .746-.225h.279c.353 0 .613.035.579.069.321.037.63.142.907.309q.267.18.49.412c0-.04-.23-.226-.27-.28q.148.09.27.211.187.168.315.383l-.084-.157c-.04-.044-.073-.093-.113-.142a2 2 0 0 0-.289-.275 1.8 1.8 0 0 0-.593-.324c0-.068.186 0 .465.182q.236.164.427.377.209.259.358.555a1.5 1.5 0 0 0-.407-.638.5.5 0 0 1 .137.103.5.5 0 0 1 .089.093l.088.138a.7.7 0 0 0-.142-.26c-.069-.094-.133-.172-.093-.182.27.255.176.294.299.49l.167.275.088.138.044.073a.5.5 0 0 1 .03.088l.235.756.186.843.137.903c.035.314 0 .348 0 .26l-.058-.49c-.103-.72-.28-1.427-.53-2.11a.4.4 0 0 0-.088-.171s-.054-.03-.089-.06c-.073-.127-.19-.298-.176-.333a.6.6 0 0 1-.128-.113 1 1 0 0 1-.083-.117 2 2 0 0 0-.142-.182q.17.2.294.432.118.197.216.343a1 1 0 0 1 .049.079l.034.083.059.167.123.309q.136.367.22.75.144.623.197 1.26c-.074-.284 0 .295-.074 0 .044.25.04.57.069.692.029.123-.05-.03-.04-.157a9 9 0 0 1-.132 1.59q-.143.692-.358 1.368c-.137.294-.265.49-.49.892a.46.46 0 0 1 .083-.235c-.27.353-.31.745-.648 1.064.04-.103.216-.328.187-.378q-.234.39-.55.717a.9.9 0 0 0 .236-.157q-.33.418-.736.765c-.117.098-.196.157-.167.127.03-.03.167-.147.447-.426a4 4 0 0 0-.329.27c-.127.102-.265.235-.402.333-.27.216-.49.373-.535.324a6.7 6.7 0 0 1-1.78.98q-.962.36-1.962.589c-.088.093.31-.069.226 0l-.402.059c-.128 0-.3.04-.452.064l-.49.063h-.49a5.7 5.7 0 0 1-.918 0 3.4 3.4 0 0 1-.775-.152H14.5l-.304-.073a5 5 0 0 1-.628-.201l-.588-.26c-.182-.089-.344-.182-.49-.24 0-.06-.084-.104-.168-.153l-.137-.078a.7.7 0 0 1-.127-.108 1.2 1.2 0 0 1-.383-.206l-.226-.157-.24-.177c-.069-.073-.083-.122-.069-.156-.152-.123-.142-.025-.235-.074-.093-.05-.113-.113-.191-.201-.079-.088-.172-.167-.201-.167 0-.098-.246-.309-.49-.564a4.5 4.5 0 0 1-.545-.74c.122.122.417.52.613.745 0-.05-.093-.142-.054-.152l-.432-.49a4 4 0 0 1-.309-.491c-.21-.226.084.206 0 .177-.132-.211-.264-.393-.353-.57l-.255-.49c-.171-.314-.28-.618-.49-.98h.068a.6.6 0 0 1-.073-.128c-.054-.093 0 .034-.054 0-.079-.177-.128-.358-.191-.535 0-.088 0-.034.054 0-.04-.132-.079-.206-.108-.186a2.6 2.6 0 0 0-.133-.55c.025.035.05.064.074.054-.069-.117-.05-.044-.088-.264v.152c-.054-.246-.06-.084 0 .073-.094-.122-.079-.353-.103-.49.044.044.034.122.049.206.073-.133-.216-.53-.148-.76.079.117-.024.161.079.416q.005-.218-.04-.431c0-.226-.078-.49-.117-.672q0 .23.054.456c0 .235-.083-.324-.088-.451-.05 0-.03.176-.045.24-.093-.118 0-.49-.063-.54-.064-.048.078.025.054-.308q.045.146.059.299a1.2 1.2 0 0 0-.054-.427 1.2 1.2 0 0 1-.07-.49c.05.166.045-.344.05-.535-.034 0-.03.191-.04.304v-.245a1.4 1.4 0 0 1 .06-.363c.049.206.068-.103.058.309.054-.284.079-.49.123-.726q.056-.377.152-.745c-.13.326-.213.67-.245 1.02 0-.24.024-.187-.064-.089.064-.27.113-.539.201-.882 0 .21.074-.03.128-.275s-.108.167-.03-.088q-.175.381-.255.794c.035-.216.103-.456.167-.716s.157-.53.26-.785c.186-.52.412-.98.525-1.324a1 1 0 0 1-.069.216q.225-.336.407-.696c.113-.138-.088.26-.118.353.04-.035.099-.138.123-.098.235-.452.29-.427.535-.849a.86.86 0 0 1-.26.427c.216-.137.71-.932.932-.981.063-.088-.064.03 0-.079-.103.099-.197.152-.32.285.06-.157.275-.31.442-.55.079.025-.103.109-.206.285.128-.078.412-.451.456-.343.108-.147.295-.24.329-.353.113-.118 0 .049-.069.122.128-.049.108-.191.32-.363-.33.118-.379.383-.722.56a14.1 14.1 0 0 1 3.105-2.291c.353-.26.755-.446 1.182-.55q.281-.171.593-.279c-.309.201-1.064.52-1.167.726a13.1 13.1 0 0 0-2.943 2.045c.343-.24.49-.49.942-.775-.314.3.23-.068-.118.177q.614-.473 1.29-.854-.16.062-.3.162.271-.215.575-.382c.21-.108.397-.172.446-.133.338-.215.456-.132.844-.387.117-.044 0 .034-.108.073.108 0 .515-.225.632-.21.118.014-.068-.064.162-.128 0 .04-.073.078-.098.118.334-.118.177-.128.49-.206.035.059-.049 0-.18.083.356-.009.709-.068 1.049-.176.152 0-.246.088-.437.142.03.044.358-.093.339 0a6 6 0 0 0-.437.127c0 .044.216-.034.383-.078-.079.03-.167.132-.054.054q-.69.335-1.413.593c.182-.044.236-.088.265-.034.078-.034.162-.069.162-.093 0-.025.225-.03.412-.084.13-.049.269-.07.407-.059a1 1 0 0 0 .407-.176c.088 0 .196 0 .196.03a5 5 0 0 0-1.04.402q.279-.036.535-.148c-.034.094-.167.084-.324.187.187-.03.49-.177.255 0 .221-.044.093-.084.275-.123 0 .03-.083.074 0 .054-.137.059-.25.123-.358.182l-.324.171-.387.196-.245.113-.295.142c.417-.186.834-.318 1.197-.52 0 0-.064.04-.103.06-.04.019.294-.099.343-.08-.49.158-1.015.491-1.402.61 0-.035.068-.03.157-.08-.164.04-.319.11-.457.207-.142.088-.284.19-.49.299.22-.079.535-.255.863-.402-.245.176-.569.372-.951.608q-.652.4-1.251.878a21 21 0 0 1 1.388-.898c.132-.068 0 .074-.128.128.045 0 .265-.162.32-.152.053.01-.207.132-.285.2.181-.058.515-.269.628-.298.112-.03.024-.054.024-.079a5 5 0 0 1 .49-.25c-.053.098-.294.108-.348.201.25-.078.334-.152.643-.255a.54.54 0 0 0-.226.064c.34-.166.702-.285 1.074-.353-.059.054-.225.103-.294.161.166-.026.324-.086.466-.176.128 0-.275.147-.338.21-.064.065-.06-.048-.177 0-.118.05-.49.256-.677.393q.163-.041.319-.103c.054-.04-.054-.04.186-.122a.86.86 0 0 1-.446.343q.21-.068.412-.162a1 1 0 0 0 .334-.177c.093 0-.143.157-.148.216.138 0 .177-.044.079.054.152-.049.073-.088.23-.132q-.193.196-.441.319s.147-.06.162-.03-.652.27-.638.378a4.2 4.2 0 0 0-1.182.834c.339-.162.75-.49 1.025-.663-.078.118-.534.334-.578.462q.236-.105.426-.28c.138-.098.245-.167.26-.093.069-.035.133-.074.128-.093.088.034-.363.304-.461.441 0-.03.03-.054 0-.074-.31.143-.417.344-.555.403m-.902.549c-.181.206-.387.255-.387.363.127-.128.367-.226.387-.363m-2.648 3.325c.044-.167.2-.431.2-.53-.029.06-.058.113-.078.079.22-.392.49-.829.079-.25.034-.054.147-.29.054-.147-.094.142-.133.265-.182.372-.049.108-.098.206-.127.295-.03.088-.064.176-.089.265a1.6 1.6 0 0 0-.044.28c.088-.173.157-.491.187-.364m10.829 3.188v-.078c0-.025-.064-.074-.118-.04-.054.035.059.182.118.118m-12.87 4.247c-.132-.225-.255-.627-.348-.632q.124.344.348.632m2.026-12.428q.297-.234.544-.52a4 4 0 0 1-.49.368c.064-.005-.084.123-.054.152m2.246 1.928c.442-.402-.142.034-.274.25q.123-.14.274-.25m-1.182 1.152c.268-.416.599-.788.981-1.103q.534-.42 1.02-.893-.62.394-1.162.893a5.7 5.7 0 0 0-.912 1.06c.078-.123 0 .117-.099.132.089.005.148-.118.172-.089m.785-.863a8 8 0 0 0-.687.75q.21-.178.383-.392c.162-.171.304-.333.304-.358m3.541 11.962h-.098.093-.289a3 3 0 0 0-.304-.112c-.098 0-.197-.03-.295-.03h-.314q.24.085.49.118h.227c.156 0 .299.069.436.069.128.016.257 0 .378-.045-.108 0-.177.054-.192 0-.014-.054.373 0 .192-.044a.9.9 0 0 1-.29 0s.04.04-.024.044zm4.345-5.939a.7.7 0 0 0-.28.147c.03-.078-.2.044-.17.069.156-.04.44-.138.46-.216zm.035 0c.03 0 .068-.03.078 0s-.068.025-.064.049c.108-.049.25-.083.275-.167-.064.06-.235.06-.28.103zm-3.14 5.787c.231-.108.437-.122.575-.196-.206.05-.574.079-.564.182zm-7.194-6.174a9.7 9.7 0 0 1 0-1.761 2.3 2.3 0 0 0-.059.583c0 .202 0 .358-.03.33.04.416.064.808.123 1.152 0 .083.03.171.044.26l.054.255.079.412c0-.28 0 .152.088.206-.044-.084-.044-.24 0-.118q.054.375.152.74.107.277.245.54l.123.235.132.221q.132.238.23.49a.8.8 0 0 1 .246.295.8.8 0 0 0 .22.29c-.078-.09-.112-.163-.092-.192.02-.03.058.083.073.073-.304-.387-.98-1.397-.76-1.334-.05-.289-.28-.534-.441-.98a5 5 0 0 1-.148-.49l-.112-.52c-.089-.34-.103-.555-.157-.59s.044-.2-.01-.097m11.442.117s-.054-.098-.137-.122a.16.16 0 0 0-.191.03.24.24 0 0 1 .166 0q.09.031.162.092m-11.364-2.33c-.034.143-.093.344-.039.359a1 1 0 0 0 .04-.358m1.844 6.666a.5.5 0 0 0 .143.142l-.044-.059a1.1 1.1 0 0 0-.28-.274q.086.1.181.19m6.91 1.27c.187-.113.491-.27.035-.054-.049.064-.274.079-.28.162q.117-.069.246-.108m2.316-1.672q.206-.32.329-.682-.155.331-.383.618a3.6 3.6 0 0 0-.378.52c-.467.388-.972.73-1.505 1.02.049.04-.094.103-.157.162q-.26.06-.49.196c-.06-.059-.491.157-.683.201 0 0 0 .034-.039.05a2 2 0 0 1-.216.063c-.52.147.49-.074.535-.147.3-.04.338-.128.81-.319.039.04.137-.05.264-.069 0-.03.236-.162.373-.309.04.054.245-.117.294-.21.074.053.49-.295.535-.383 0 0-.035.064 0 .078.108-.147.103-.132.235-.19q.184-.266.412-.491s-.049-.03 0-.074c.05-.044.034-.162.064-.044zm-.981-3.806c-.093.059-.309.122-.27.167.182-.084.334-.133.285-.177zm-9.382 2.594a1 1 0 0 1-.221-.407c-.04-.093-.074-.191-.118-.284a1.6 1.6 0 0 0-.113-.26c.103.333 0 0-.054-.04a3 3 0 0 0 .094.339.6.6 0 0 0 .127.235c0-.058-.064-.142-.049-.161q.085.22.196.431c.03.064.06.128.089.182a1 1 0 0 1 .058.142c-.039-.034-.098-.172-.127-.118.077.106.129.229.152.358-.059-.083-.059-.225-.133-.245.035.074 0 .074 0 .123 0-.035-.053-.094-.068-.089q.106.256.25.49c.078.143.191.26.28.427a.2.2 0 0 1-.03-.112c.201.367.27.264.49.583 0-.03.07 0 .089 0q-.089-.117-.059 0c-.088-.098-.343-.358-.157-.216-.118-.171-.23-.255-.152-.088a1 1 0 0 0-.078-.083c0-.103-.27-.329-.118-.25a1.5 1.5 0 0 1-.172-.226.8.8 0 0 1-.108-.245c.035.059.064.113.084.078-.035-.132-.162-.186-.123-.309.054.089.23.388.186.275-.117-.235-.24-.451-.215-.53m.613 1.349c0 .196-.23-.27-.074.059a1 1 0 0 0-.123-.118c.148.24-.088-.083-.107-.064.1.115.175.25.215.398.04-.05.368.431.28.2a.8.8 0 0 1-.26-.352c.03.03.069.083.083.073.015-.01-.068-.083-.054-.098l.172.216a.2.2 0 0 1 .113.049c.162.137-.294-.255-.245-.363m.034.461q.126.13.235.275c.079.083.148.152.201.157-.049-.064-.215-.192-.181-.211.113.127.358.343.275.196 0 0-.128-.088-.118-.118s.078.079.093.069a4 4 0 0 0-.28-.216 1.4 1.4 0 0 0-.225-.152m.152-.49c-.059-.074-.093-.084-.113-.05q.124.133.196.118l-.235-.328c0 .215-.181-.128-.304-.25q.099.195.226.372c.083 0 .083.074.117 0 .04.054.123.133.113.162zm-1.5-2.943c0-.123-.07-.584-.118-.383.053.074.049.329.117.427zm-.27-.755c.083.313.156.632.25.941 0 0-.05 0-.074-.039.069.265.191.427.206.593 0 0 .044-.029.069.035q.048.222.137.431.056.136.162.236c-.098-.226-.177-.402-.24-.56l-.138-.43c-.044-.138-.093-.26-.132-.413l-.133-.525s.035-.039.04-.068a1.7 1.7 0 0 0-.206-.49s.044 0 .063.043a4 4 0 0 1-.112-.564c-.089-.073 0 .27-.03.265a2.4 2.4 0 0 1 0-.49 1.1 1.1 0 0 0-.04-.358q-.032.211 0 .421c-.048-.068-.033 0-.097-.049.075.165.112.344.108.525a.9.9 0 0 0 .166.54zm2.707-7c-.113.045-.079.08 0 0 .304-.303.579-.45.765-.676a5 5 0 0 0-.417.309 3 3 0 0 0-.348.368m1.962-1.505c.222-.053.43-.155.608-.3-.192.07-.25.104-.245.143a.55.55 0 0 0-.339.142zm-4.733 5.92c-.03.284-.074.544-.103.745q.158-.512.235-1.044c-.088.299-.054.299-.132.299m-.133 1.172c.064.064.06-.358.044-.373-.034.226-.02.182-.044.368zm1.928-4.65c-.138.182-.255.246-.27.368q.174-.158.27-.372zm2.34-2.089c.18-.152.401-.186.49-.304a1.3 1.3 0 0 0-.49.304m-4.145 5.45c-.05 0-.113.2-.098.26h.059c.03-.119-.015-.114.039-.26m-.196 1.28v.376a1 1 0 0 0 0-.274c.034-.108.024-.186 0-.103m.441-2.183c.05-.123.142-.324.201-.437s.06-.147-.054.079a2.3 2.3 0 0 0-.26.672s-.112.132-.068.152a1 1 0 0 1 .083-.147c0 .029 0 .063 0 0q.03-.165.098-.32m-.373 1.432c0 .137-.024.27-.083.206 0 .083-.03.2 0 .22 0-.063 0-.156.04-.161.038-.005 0 .063.029.059l.03-.255c.009-.089.014-.148-.016-.07m.123-.873c0 .093-.103.309-.069.324.03-.099.069 0 .094-.143-.03-.03.004-.157-.025-.181m.907 5.885c0-.034-.049-.098-.068-.088.103.186.171.314.112.128.103.147.04.137.074.22 0-.044.064.044.108.118s.093.132.054.049c-.04-.083-.211-.437-.29-.49.02.034.03.034.01.034zm-.367-.45v-.065s.142.329.083.152c0-.044-.044-.103-.03-.112.015-.01.03.058.04.044s-.098-.28-.128-.255c-.03.024-.073.166.035.22zm.333.534c-.083-.128-.128-.334-.216-.402q.076.21.216.387zm9.044-3.468a2.8 2.8 0 0 0-.81.314v.034c.074 0 .148 0 .177-.063-.088 0 .128-.054.216-.128-.03.03-.108.118.079.03-.128-.045.564-.236.338-.202zm-1.54-.181c0 .034.083 0 .088.044.084-.034.216-.074.226-.108-.157.049-.128-.02-.314.049zm.956-.633a1.3 1.3 0 0 1 .29-.113c-.03-.044.21-.132 0-.068.034.068-.275.073-.29.166zm.167-.265c-.088.04-.412.187-.21.142 0-.063.269-.054.279-.127-.025.005-.074.005-.069-.03zm-.78.226c.069-.089-.318.068-.299.093.142-.054.206-.04.3-.108zm-.314.059c0-.03.064-.04.118-.045s.172-.122.196-.176a1 1 0 0 1-.181.049c.152.015-.31.186-.133.157zm.354-.3q.13.01.26 0c.112-.039.117-.068.225-.107.594-.26-.422.166-.196 0h.059c.005 0-.339.044-.348.093zM8.237 17.625a7 7 0 0 1-.108-.686q.002.247.044.49c0 .137.035.226 0 .206.03.23.005.167.064-.01m.52 2.364c.157.334.191.525.363.878a2.6 2.6 0 0 0-.363-.878m.525 1.182c.078.118.2.432.23.344l-.181-.363zm.431.785c-.064-.054-.083-.044-.059.04s.148.22.094.102c-.03-.044-.079-.113-.064-.122.098.171.28.304.191.117-.034 0-.108-.2-.226-.343-.088.088-.392-.652-.431-.623q.108.253.245.49.102.187.25.339m3.669 3.237c.03 0-.059-.069-.04-.093a3 3 0 0 1-.426-.187l-.417-.21c-.25-.167-.49-.324-.74-.49l-.33-.285a4 4 0 0 1-.318-.3l-.29-.309q-.149-.15-.279-.318c-.069 0-.04 0-.186-.113.181.314.686.76.26.427q.298.344.677.598c-.07-.113-.344-.28-.354-.353l.878.74c.187.133.378.27.57.398q.282.177.588.314c.093-.05-.177-.064-.177-.138q.314.119.584.319m6.866-10.265s0 .034.089 0v-.054c-.113.059-.707.29-.408.216 0-.045.113-.04.25-.098.015-.015-.004-.03.079-.07zm-7.764-6.95c.265-.206.407-.26.49-.353q-.151.072-.293.162c-.099.068-.187.142-.197.191m-1.8 1.55c.079 0 .25-.182.31-.27-.099.098-.192.172-.31.27m-.46 13.433c.151.138.186.314.274.329-.054-.113.353.348.378.334-.06-.064 0-.045.03 0a6 6 0 0 1-.398-.383c-.123-.157-.23-.28-.285-.265zm.74.79c.078.054.343.265.309.304-.137-.122-.147-.172-.23-.176.397.313.583.598.921.71a1.8 1.8 0 0 1-.367-.24c-.04-.122-.098-.122.103 0a7 7 0 0 0-.736-.598M10.248 9.98c0 .069-.422.378-.49.584.142-.201.289-.324.166-.133.137-.108.437-.534.324-.45m-1.182 1.707c.127-.245.647-.878.765-1.158-.103.094-.309.393-.108.182a5 5 0 0 0-.657.976m3.03 12.977c.232.184.495.323.776.412a4 4 0 0 1-.427-.22 2 2 0 0 0-.348-.192M8.709 20.99c.118.23.196.22.348.54a7 7 0 0 0-.338-.756c-.118-.275-.221-.52-.177-.628.05.285.074.162.172.304-.103-.26-.152-.27-.147-.387 0 0-.04-.044-.064-.123-.054.03-.044.167-.142 0a1.6 1.6 0 0 1-.098-.333c-.04 0 0 .113-.05 0a2.4 2.4 0 0 0-.132-.49 1.5 1.5 0 0 0-.152-.408q.135.645.343 1.27a1 1 0 0 1-.034-.21c0 .083.142.402.088.19 0-.078-.068-.186-.054-.2q.062.175.098.358l.05.24c.009.125.048.246.112.353-.088-.171 0-.142-.034-.22.118.274.078.152.064.053q.12.321.28.623a.5.5 0 0 0-.133-.176m-.849-2.786c.079.05.147.589.226.579-.132-.31-.128-.756-.216-.863.05.27-.01.083-.01.284m.893 2.53q.056.135.132.256c.045.064.089.113.128.162a4 4 0 0 1-.22-.49c-.035-.02 0 .068-.035.073zm1.197 1.904c-.177-.128-.49-.785-.648-.844.182.226.23.31.417.574-.059 0 .118.255.084.294-.216-.24-.349-.574-.55-.755a6.5 6.5 0 0 0 1.231 1.604 2 2 0 0 0-.147-.182l-.176-.206a1.9 1.9 0 0 1-.3-.417c.187.255 0-.068.123.089q.172.276.417.49a7 7 0 0 1-.579-.736c.265.31.265.25.133.089zm4.546 3.148c-.054 0-.078-.039-.059-.053a2 2 0 0 1-.52-.113 3 3 0 0 0-.49-.147l.226.078q.158.064.323.108.26.08.525.127zM9.233 11.073c-.098.078-.29.49-.344.451.373-.569 1.016-1.153 1.34-1.623-.192.171-.452.49-.619.662.03-.044.084-.113.069-.123-.079.098-.27.23-.304.388q.068-.084.152-.152c-.054.078-.113.152-.162.23 0-.054-.137.069-.275.245a1.7 1.7 0 0 0-.309.56c0-.133-.063-.035-.152.117q-.104.214-.25.402.171-.281.29-.588a7 7 0 0 0-.422.829c0 .039.088-.079.049.024-.04.103-.098.182-.157.304a1 1 0 0 0-.093.304c.2-.588.569-.98.588-1.167q.163-.198.304-.412c.118-.181.24-.363.3-.47zm-1.344 3.144c-.109.39-.168.792-.177 1.196q.04-.47.172-.922.134-.42.206-.858c.122-.103.176-.775.358-.858.04-.162-.201.117-.191.23.058 0-.04.201-.133.456q-.14.316-.191.658c0-.099.064-.064 0 .078-.005-.02.005-.078-.04 0zm-.098 3.286c-.089-.53-.157-1.138-.06-.143 0 0-.043.03 0 .152.045.123.128.628.119.432-.108-.436-.02-.245-.054-.461zm.274 1.373q.062.306.201.584a2 2 0 0 0-.093-.32 1.5 1.5 0 0 0-.103-.293zm3.06 5.253c-.043.049.241.25.295.343q.223.066.427.177c-.162-.157-.363-.246-.49-.417-.128 0 .186.166.137.181-.201-.073.02-.03-.363-.304zm1.472 1.03c0-.054-.137-.118-.27-.206l-.392-.275c.188.192.409.348.652.461zm-4.904-7.357c0 .088.039.172.054.245l.039.177c0 .098.049.166.103.186l-.064-.26a2 2 0 0 1-.049-.255l-.088-.49-.079-.52-.054-.633q-.028.513.06 1.02c.058.378.141.692.068.535zm.819-5.542c-.054-.044-.334.618-.334.72q.186-.346.324-.715zm.868 10.02q.196.265.338.564c.03-.089.343.436.348.284a2.6 2.6 0 0 1-.363-.427 1.9 1.9 0 0 0-.323-.421m3.433 3.124c0 .103.687.343.701.309a1.7 1.7 0 0 0-.309-.128 1 1 0 0 1-.176-.063 2 2 0 0 1-.226-.143zm-1.471-.917c.098 0-.403-.393-.447-.402q.202.202.427.377zm-1.168-.952c.133.123.363.407.432.422-.24-.206-.343-.436-.451-.446zm12.173-9.809c.054 0 .216 0 .388.059s.348.083.402.088a1.4 1.4 0 0 0-.397-.137 1 1 0 0 0-.412-.05zm2.899 3.924c-.044-.196-.083-.49-.152-.82l-.123-.49c0-.078-.039-.162-.063-.24l-.079-.22c.064.176.137.558.226.916q.06.422.171.834zm-6.896-.353c.19.002.377-.05.54-.147-.103.078-.589.25-.56.127zm-7.298-1.472c0-.365.06-.728.177-1.074-.054.304-.167.579-.196 1.064zm.981-3.173c.093-.152.137-.137.182-.127l-.368.49q-.151.185-.236.407c-.063-.034.06-.201.182-.368s.274-.363.245-.412zm-1.23 4.468c.043 0 .068.152.087.265.02.113 0 .157-.054-.083-.034-.118.02-.074-.034-.182m.568-3.433c.044 0-.25.378-.27.588-.039-.122.22-.544.211-.671.098-.152-.02.215.059.058zm9.049 8.019q.254-.234.53-.442-.244.236-.53.417zm-9.907-5.65c.039-.084 0 .167 0 .29v-.094.093-.083c0-.084-.005-.177 0-.206m4.497 7.023c-.113-.103-.284-.044-.412-.113 0-.024.069 0 .123 0q.089.008.176 0c.064.064.069.03.167.084 0 .034-.044.039-.103.03s0-.016.05 0m5.11-1.157c-.063 0 .133-.098.295-.211s.29-.201.142-.079q-.21.158-.436.29m-9.637-5.238c.025-.074 0 .274 0 .338s0-.226-.054-.186c-.005-.113.064-.06.054-.152m2.855 5.596c.039 0 .2.127.29.171a2 2 0 0 1-.374-.171c.05 0 .147.054.084 0m8.254-1.879c-.044.035 0-.039.059-.127a.45.45 0 0 0 .088-.24c.05-.035 0 .039 0 .137q-.06.124-.147.23M16.006 8.21h-.064c.079-.089.157-.084.368-.157 0 0-.103.049-.093.073-.236.059-.02.025-.211.108zm2.045 9.353c.088-.054.034-.099.074-.148.19 0-.05.157.073.192a.8.8 0 0 0-.181.049c.03-.025.054-.054.039-.074s-.152.04-.24.069c.078 0 .078 0-.05.044-.039 0 .246-.137.285-.108zM16.403 7.419c.093-.03.29-.196.285-.113.078-.03.039-.059.039-.093.073 0 .108 0 .117-.044.138.049-.039.157-.44.25m.716 9.147c-.064 0-.04 0 0 0-.024-.123-.427.044-.54 0 .104-.044.133-.025.241-.074-.079-.083-.28 0-.206-.181.093 0 .074.034.245-.054-.122.113 0 .176.339 0-.128.083-.216.142 0 .069 0 .049-.192.083-.23.088l.029.073a.7.7 0 0 0 .328-.093c-.04.064-.201.123-.206.172m-.78-10.33c-.127.084-.358.03-.54.143.045 0 .26-.147 0-.049-.038-.064.359-.054.54-.093m-3.02.889c-.594.49-1.472.907-2.174 1.51 0-.054-.333.25-.093 0a12 12 0 0 1 2.266-1.51M10.07 9.577c-.216.226-.549.618-.863 1.01-.152.196-.294.393-.422.56-.127.166-.225.313-.294.402.444-.727.974-1.398 1.58-1.997zm7.391 5.836a1.6 1.6 0 0 1-.338.152c.034-.088-.23.06-.206 0 .191-.098.353-.122.544-.152m7.784 3.394c.064.04-.03 1.03.044.57.054.2-.078.235-.088.568 0-.034 0-.225.03-.456.029-.23.024-.52.014-.706zm-7.087-4.375c.059-.088.333-.19.49-.289s.064.044.197 0c-.167.079-.461.167-.687.29"}))))}},42306(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 1c8.284 0 15 6.716 15 15s-6.716 15-15 15S1 24.284 1 16C1.01 7.72 7.72 1.01 16 1m-1.435 6A1.56 1.56 0 0 0 13 8.565V19h9.365a1.565 1.565 0 1 0 0-3.13h-6.236V8.566A1.565 1.565 0 0 0 14.565 7"})))}},67900(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M25 5a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm-9.317 5.127h-1.157l1.576 6.423 1.312.012 3.14-6.435H19.39a.57.57 0 0 0-.32.096.5.5 0 0 0-.192.215s-1.635 3.86-1.714 4.039q-.12.269-.212.546c0-.184-.85-4.585-.85-4.585a.37.37 0 0 0-.135-.224.46.46 0 0 0-.283-.087m9.187 0h-3.83l-.797 6.435h3.841l.142-1.11h-2.399l.195-1.594h1.816l.139-1.07h-1.822l.192-1.553h2.382zm-15.274-.012h-1.44l-.794 6.435h3.598l.147-1.137H8.943zm4.348 0h-1.448l-.787 6.435h1.443z"}),o.createElement("path",{fillOpacity:.4,d:"M29 1a2 2 0 0 1 2 2v21a2 2 0 0 1-2 2H18v2.965h5.091c.552 0 .999.455.999 1.017S23.643 31 23.09 31H8.921c-1.228.029-1.325-1.92-.117-2.035.024-.004.302-.006.718-.007h.388l.439-.001.968.001 2.184.005h.266l.1.001H14V26H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2Zm-1 2H4a1 1 0 0 0-1 1v19a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1"}))))}},88670(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M11.04 19.265c.436 0 .86.052 1.263.153l.298.084 3.003 2.54-.007.009c.56 1.07.66 2.28.258 3.513C14.86 28.612 11.19 31 7.498 31c-2.377 0-4.573-.954-6.349-2.76a.516.516 0 0 1 .384-.881c2.832.142 3.515-1.503 4.095-3.345l.105-.337c.264-.856.513-1.664.97-2.287.963-1.31 2.624-2.125 4.337-2.125m15.281-17.2c.947-1.22 2.553-1.405 3.725-.486l.147.124.025.026a3.22 3.22 0 0 1 .097 4.09l-.13.153-12.963 14.271-.024-.03-2.986-2.558z"})))}},23147(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m3.127 13.57.09.008a.583.583 0 0 1 .476.647l-.775 6.181-.014.196c.001.59.21 1.093.582 1.466l1.375 1.378.147.132c.4.31.828.456 1.269.456h.936a.956.956 0 0 1 .946 1.099l-.038.25a1 1 0 0 1-.989.85H4.331a2 2 0 0 1-1.75-1.03l-1.205-2.177a3 3 0 0 1-.309-2.085l1.49-6.92a.57.57 0 0 1 .57-.452m19.335-5.672a1.514 1.514 0 0 1 .138 3.02l-.138.007h-5.26a1 1 0 0 1-.504-.137l-.53-.309a1 1 0 0 0-.441-.134l-6.078-.381a1 1 0 0 0-1.011.683l-.334 1 11.413.86c-2.835.133-5.102 2.441-5.102 5.283 0 1.3.667 2.766 1.969 4.49l-.149-.03c-2.063-.401-3.652-.378-4.829.16a5.3 5.3 0 0 0-2.328 2.055l1.32-8.59a2 2 0 0 0-1.468-2.238l-.15-.034-.345-.063-.155-.033-1.692-.304-3.902-.711.083-.379a1 1 0 0 1 .939-.789l.113.002 2.066.155 1.235-2.476a2 2 0 0 1 1.79-1.107zM5.734 14.03l2.57.46a1.5 1.5 0 0 1 1.218 1.701l-1.036 6.841h-2.21a1 1 0 0 1-.608-.206l-.1-.087-1.374-1.378a1 1 0 0 1-.292-.7l.008-.131.707-5.632a1 1 0 0 1 1.117-.868m24.286.723a1 1 0 0 1 1 1v6.15a1 1 0 0 1-1 1h-.766a5.4 5.4 0 0 0-.86-.493 4.9 4.9 0 0 0-1.508-.394l-.423-.615a.5.5 0 0 1-.088-.283v-4.57a.5.5 0 0 1 .098-.297l.955-1.295a.5.5 0 0 1 .403-.203zm-4.806 4.044v1.976a.5.5 0 0 1-.5.5h-.638c.575-.893.956-1.713 1.138-2.476M20.071 2.996l4.527 2.613a2 2 0 0 1 .314 3.24 2.515 2.515 0 0 0-2.45-1.951H18.83l-.759-.438a.5.5 0 0 1-.183-.683l1.5-2.598a.5.5 0 0 1 .683-.183m-1.31-1.912c.325.188.422.632.215.99l-2.25 3.898c-.207.358-.64.497-.966.308-.326-.188-.422-.631-.215-.99l2.25-3.897c.207-.359.64-.497.965-.309"}),o.createElement("path",{d:"m26.171 23.476.239.008q.815.042 1.36.29c1.932.885 2.769 3.14 1.867 5.037a3.85 3.85 0 0 1-2.995 2.156l-.211.022-.193.01h-.194a3.9 3.9 0 0 1-1.539-.355q-1.527-.698-3.15-4.052l-.156-.325-.285-.628-.1-.229-.186-.439-.144-.349.722-.226.69-.202.332-.091.324-.086.625-.151.387-.086q1.523-.319 2.607-.304m-12.336 0 .25.001q1.026.022 2.407.315l.331.074.625.151.324.086.333.091.69.202.721.226-.144.35-.286.667-.285.628-.155.325q-1.624 3.353-3.151 4.052c-.437.2-.892.313-1.345.346l-.194.009h-.194c-1.417-.038-2.76-.842-3.4-2.188-.9-1.897-.064-4.152 1.869-5.036q.624-.285 1.604-.299M19.977 14c2.133 0 3.862 1.697 3.862 3.79q0 1.725-2.627 4.77l-.234.267-.243.272-.496.537-.262.276-.262-.276-.495-.537-.244-.272q-2.86-3.235-2.86-5.037c0-2.093 1.728-3.79 3.861-3.79"}))))}},98507(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m3.127 13.57.09.008a.583.583 0 0 1 .476.647l-.775 6.181-.014.196c.001.59.21 1.093.582 1.466l1.013 1.016v3.148h-.168a2 2 0 0 1-1.75-1.03l-1.205-2.176a3 3 0 0 1-.309-2.085l1.49-6.92a.57.57 0 0 1 .57-.452m19.335-5.672a1.514 1.514 0 0 1 .138 3.02l-.138.007h-5.26a1 1 0 0 1-.504-.137l-.53-.309a1 1 0 0 0-.441-.134l-6.078-.381a1 1 0 0 0-1.011.683l-.334 1 12.578.947a1 1 0 0 1 .921.912l.178 2.087a3.446 3.446 0 0 0-1.94 4.684 7 7 0 0 0-.646-.296 6.9 6.9 0 0 0-1.914-.448l-.34-.024-.384-.009H14.3l-.176.005a3 3 0 0 0-2.819 2.819l-.005.176-.001 3.436-.007.008a1 1 0 0 1-.573.28l-.13.009-.224-.001.001-3.799-.005-.172a2.9 2.9 0 0 0-.513-1.494l.75-4.893a2 2 0 0 0-1.468-2.237l-.15-.034-.345-.063-.155-.033-1.692-.304-3.902-.711.083-.379a1 1 0 0 1 .939-.789l.113.002 2.066.155 1.235-2.476a2 2 0 0 1 1.79-1.107zM5.734 14.03l2.57.46a1.5 1.5 0 0 1 1.218 1.701l-.566 3.734a2.934 2.934 0 0 0-4.376 1.822l-.386-.386a1 1 0 0 1-.292-.7l.008-.131.707-5.632a1 1 0 0 1 1.117-.868m24.286.723a1 1 0 0 1 1 1v4.004a2 2 0 0 0-.807-.25l-.176-.008h-1.8l-.203.01-.207.032a2.34 2.34 0 0 0-1.3.706l-.12.14-.032.042v-3.881a.5.5 0 0 1 .098-.297l.955-1.295a.5.5 0 0 1 .403-.203zm-5.306 1.63a.5.5 0 0 1 .5.5v3.098a2 2 0 0 0-.296-.197 2.3 2.3 0 0 0-.766-.254l-.203-.022-.168-.008-1.96-.001-.19.009a2 2 0 0 0-.718.209l-.018.01a2.4 2.4 0 0 1-.17-.899 2.44 2.44 0 0 1 2.438-2.445zM20.071 2.996l4.527 2.613a2 2 0 0 1 .314 3.24 2.515 2.515 0 0 0-2.45-1.951H18.83l-.759-.438a.5.5 0 0 1-.183-.683l1.5-2.598a.5.5 0 0 1 .683-.183m-1.31-1.912c.325.188.422.632.215.99l-2.25 3.898c-.207.358-.64.497-.966.308-.326-.188-.422-.631-.215-.99l2.25-3.897c.207-.359.64-.497.965-.309"}),o.createElement("path",{d:"M7.433 21c.792 0 1.433.642 1.433 1.433v6.121h1.911a1.223 1.223 0 1 1 0 2.446H7.5A1.5 1.5 0 0 1 6 29.5v-7.067C6 21.642 6.642 21 7.433 21m16.292 0 .112.004a.9.9 0 0 1 .357.095.8.8 0 0 1 .246.217l.066.098 1.514 2.574 1.488-2.563.072-.103a.82.82 0 0 1 .547-.315l.11-.007h1.8a.5.5 0 0 1 .418.775l-2.632 4.005 2.714 4.46a.5.5 0 0 1-.427.76h-1.92l-.125-.01a.84.84 0 0 1-.415-.169 1.2 1.2 0 0 1-.238-.252l-.059-.096-1.525-2.675-1.546 2.695-.07.104q-.088.118-.205.215a.8.8 0 0 1-.425.18L23.46 31h-1.756a.5.5 0 0 1-.425-.764L24 25.87l-2.602-4.102A.5.5 0 0 1 21.82 21zm-6.968 0 .313.008q.958.045 1.773.367.951.377 1.632 1.046.681.671 1.055 1.59.372.916.372 1.986 0 1.075-.372 1.992a4.7 4.7 0 0 1-1.054 1.592 4.8 4.8 0 0 1-1.634 1.047 5.6 5.6 0 0 1-1.81.366l-.283.006H14.3a1.5 1.5 0 0 1-1.5-1.5v-7a1.5 1.5 0 0 1 1.5-1.5zm-.008 2.018h-1.432v5.964h1.432q.615 0 1.096-.207t.815-.592q.331-.386.51-.939.177-.554.177-1.247 0-.687-.177-1.241a2.7 2.7 0 0 0-.51-.939 2.2 2.2 0 0 0-.815-.592 2.6 2.6 0 0 0-.856-.198z"}))))}},14485(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M22.462 7.898a1.514 1.514 0 0 1 .138 3.02l-.138.007h-5.26a1 1 0 0 1-.504-.137l-.53-.309a1 1 0 0 0-.441-.134l-6.078-.381a1 1 0 0 0-1.011.683l-.334 1 12.578.947a1 1 0 0 1 .921.912l.178 2.087a3.45 3.45 0 0 0-2.16 2.422 12 12 0 0 0-.59-.015 2.025 2.025 0 0 0-1.12 3.71 2.026 2.026 0 0 0-.603 3.645 2.03 2.03 0 0 0-1.198.881l.105.007a1 1 0 0 1-.709-.293l-.413-.414a1 1 0 0 0-.707-.293H12.41a1 1 0 0 0-.703.29l-.416.41a1 1 0 0 1-.573.281l-.13.009H9.007l1.591-10.359a2 2 0 0 0-1.468-2.237l-.15-.034-.345-.063-.155-.033-1.692-.304-3.902-.711.083-.379a1 1 0 0 1 .939-.789l.113.002 2.066.155 1.235-2.476a2 2 0 0 1 1.79-1.107zM3.127 13.569l.09.01a.583.583 0 0 1 .476.646l-.775 6.181-.014.196c.001.59.21 1.093.582 1.466l1.375 1.378.147.132c.4.31.828.456 1.269.456h.936a.956.956 0 0 1 .946 1.099l-.038.25a1 1 0 0 1-.989.85H4.331a2 2 0 0 1-1.75-1.03l-1.205-2.177a3 3 0 0 1-.309-2.085l1.49-6.92a.57.57 0 0 1 .57-.452m2.607.462.052.008 2.518.452a1.5 1.5 0 0 1 1.218 1.701l-1.036 6.841h-2.21a1 1 0 0 1-.608-.206l-.1-.087-1.374-1.378a1 1 0 0 1-.292-.7l.008-.131.707-5.632a1 1 0 0 1 1.117-.868m24.286.723a1 1 0 0 1 1 1v6.15a1 1 0 0 1-1 1h-1.76a10.9 10.9 0 0 0-1.884-2.187v-4.168a.5.5 0 0 1 .097-.297l.955-1.295a.5.5 0 0 1 .403-.203zm-5.306 1.63a.5.5 0 0 1 .5.5v2.933a10.7 10.7 0 0 0-4.384-1.699 2.44 2.44 0 0 1 2.333-1.734zM20.071 2.996l4.527 2.613a2 2 0 0 1 .314 3.24 2.515 2.515 0 0 0-2.45-1.951H18.83l-.759-.438a.5.5 0 0 1-.183-.683l1.5-2.598a.5.5 0 0 1 .683-.183m-1.31-1.912c.325.188.422.632.215.99l-2.25 3.898c-.207.358-.64.497-.966.308-.326-.188-.422-.631-.215-.99l2.25-3.897c.207-.359.64-.497.965-.309"}),o.createElement("path",{d:"M18.025 26.289a3.69 3.69 0 0 1 3.686 3.686c0 .464-.308.856-.731.982l-.108.026-.097.013-.089.004-.09-.004-.096-.013-.123-.03a1.03 1.03 0 0 1-.628-.572l-.044-.122-.024-.096-.015-.093-.008-.199-.012-.116-.026-.144a1.64 1.64 0 0 0-1.24-1.233l-.144-.026-.111-.01-.188-.007-.097-.013-.108-.026a1.026 1.026 0 0 1 .293-2.007m.603-3.645a6.735 6.735 0 0 1 6.728 6.728c0 .464-.309.856-.732.983l-.108.026-.097.013-.088.003-.089-.003-.097-.013-.108-.026a1.03 1.03 0 0 1-.731-.983 4.684 4.684 0 0 0-4.678-4.677 1.025 1.025 0 0 1 0-2.05M19.231 19c5.387 0 9.77 4.382 9.77 9.769 0 .464-.31.856-.733.982l-.108.026-.097.013-.088.004-.089-.004-.096-.013-.109-.026a1.03 1.03 0 0 1-.731-.982c0-4.256-3.463-7.719-7.719-7.719a1.025 1.025 0 0 1 0-2.05"}))))}},22372(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M22.462 9.898a1.514 1.514 0 0 1 .138 3.02l-.138.007h-5.26a1 1 0 0 1-.504-.137l-.53-.309a1 1 0 0 0-.441-.134l-6.078-.381a1 1 0 0 0-1.011.683l-.334 1 12.578.947a1 1 0 0 1 .921.912l.178 2.087a3.45 3.45 0 0 0-2.257 3.236c0 1.692 1.218 3.1 2.824 3.39l.251 2.93a1 1 0 0 1-.911 1.082l-.084.004-5.389.008a1 1 0 0 1-.709-.293l-.413-.414a1 1 0 0 0-.707-.293H12.41a1 1 0 0 0-.703.29l-.416.41a1 1 0 0 1-.573.281l-.13.009H9.007l1.591-10.359a2 2 0 0 0-1.468-2.237l-.15-.034-.345-.063-.155-.033-1.692-.304-3.902-.711.083-.379a1 1 0 0 1 .939-.789l.113.002 2.066.155 1.235-2.476a2 2 0 0 1 1.79-1.107zM3.127 15.569l.09.01a.583.583 0 0 1 .476.646l-.775 6.181-.014.196c.001.59.21 1.093.582 1.466l1.375 1.378.147.132c.4.31.828.456 1.269.456h.936a.956.956 0 0 1 .946 1.099l-.038.25a1 1 0 0 1-.989.85H4.331a2 2 0 0 1-1.75-1.03l-1.205-2.177a3 3 0 0 1-.309-2.085l1.49-6.92a.57.57 0 0 1 .57-.452m26.893 1.185a1 1 0 0 1 1 1v6.15a1 1 0 0 1-1 1h-2.262a.5.5 0 0 1-.412-.217l-.883-1.285a.5.5 0 0 1-.088-.283v-4.57a.5.5 0 0 1 .098-.297l.955-1.295a.5.5 0 0 1 .403-.203zm-5.306 1.63a.5.5 0 0 1 .5.5v3.89a.5.5 0 0 1-.5.5h-1.551a2.44 2.44 0 0 1-2.439-2.445 2.44 2.44 0 0 1 2.439-2.445zM20.071 4.996l4.527 2.613a2 2 0 0 1 .314 3.24 2.515 2.515 0 0 0-2.45-1.951H18.83l-.759-.438a.5.5 0 0 1-.183-.683l1.5-2.598a.5.5 0 0 1 .683-.183"}),o.createElement("path",{fillOpacity:.4,d:"m5.786 16.04 2.518.451a1.5 1.5 0 0 1 1.218 1.701l-1.036 6.841h-2.21a1 1 0 0 1-.608-.206l-.1-.087-1.374-1.378a1 1 0 0 1-.292-.7l.008-.131.707-5.632a1 1 0 0 1 1.17-.86M18.76 3.083c.326.188.423.632.216.99l-2.25 3.898c-.207.358-.64.497-.966.308-.326-.188-.422-.631-.215-.99l2.25-3.897c.207-.359.64-.497.965-.309"}))))}},9987(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m13 5 .004 4.55c-1.452.269-2.49 1.488-2.497 2.943L10.495 15H2.016c-.507 0-.936-.384-.995-.879l-.007-.116L1.007 5z"}),o.createElement("path",{d:"M2.415 2.55a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0M2.51 1c-.826 0-1.499.666-1.503 1.5L1 4h12l.007-1.5A1.495 1.495 0 0 0 11.52 1z"}),o.createElement("path",{fillOpacity:.4,d:"m31 5 .007 9.005c0 .501-.385.93-.882.988l-.117.007h-2.507l-.001-1.107.007-1.385-.007-.217c-.146-1.605-1.438-2.79-2.981-2.79L14.009 9.5 14.008 5z"}),o.createElement("path",{d:"M15.415 2.55a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0M15.523 1a1.51 1.51 0 0 0-1.516 1.5L14 4h17l.007-1.5A1.49 1.49 0 0 0 29.506 1z"}),o.createElement("path",{fillOpacity:.4,d:"m31 20 .007 10.005a.995.995 0 0 1-.88.989L30.01 31H2.012a1 1 0 0 1-.991-.879l-.007-.116L1.007 20h9.504l.003 4.006.01.205c.157 1.34 1.228 2.29 2.492 2.29h11.99l.204-.01c1.34-.155 2.298-1.223 2.297-2.487l-.003-4.005z"}),o.createElement("path",{d:"m10.508 16 .002 3H1l.007-1.5A1.51 1.51 0 0 1 2.523 16zm18.998 0c.84 0 1.505.672 1.501 1.5L31 19h-3.497l-.003-3Zm-26.341.8a.751.751 0 0 0 0 1.5.75.75 0 0 0 0-1.5m2.333 0a.751.751 0 0 0 0 1.5.75.75 0 0 0 0-1.5m2.333 0a.751.751 0 0 0 0 1.5.75.75 0 0 0 0-1.5"}),o.createElement("path",{fillOpacity:.4,d:"m26 15 .007 9.005c0 .501-.386.93-.884.988l-.117.007h-11.99c-.507 0-.936-.384-.995-.879l-.007-.116L12.007 15z"}),o.createElement("path",{d:"M13.415 12.55a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0M13.51 11c-.826 0-1.499.666-1.503 1.5L12 14h14l.007-1.5A1.495 1.495 0 0 0 24.52 11z"}))))}},50595(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m15 5 .006 7.493a1.5 1.5 0 0 1-1.354 1.495l-.145.006L2.514 14c-.829 0-1.5-.671-1.501-1.5L1.007 5z"}),o.createElement("path",{d:"M2.415 2.55a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0M1 2.5V4h14.007V2.5a1.5 1.5 0 0 0-1.5-1.5H2.5A1.5 1.5 0 0 0 1 2.5"}),o.createElement("path",{fillOpacity:.4,d:"m31 5 .006 7.493a1.5 1.5 0 0 1-1.354 1.494l-.145.007-10.993.005c-.829 0-1.5-.67-1.501-1.499L17.007 5z"}),o.createElement("path",{d:"M18.415 2.55a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0M17 2.5V4h14.007V2.5a1.5 1.5 0 0 0-1.5-1.5H18.5A1.5 1.5 0 0 0 17 2.5"}),o.createElement("path",{fillOpacity:.4,d:"m31 20 .006 9.493a1.5 1.5 0 0 1-1.354 1.494l-.145.006L2.514 31c-.828 0-1.5-.672-1.501-1.5L1.007 20z"}),o.createElement("path",{d:"M2.415 17.55a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0M1 17.5V19h30.007v-1.5a1.5 1.5 0 0 0-1.5-1.5H2.5A1.5 1.5 0 0 0 1 17.5"}))))}},66404(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m13 5 .007 9.005c0 .501-.386.93-.884.988l-.117.007h-9.99c-.507 0-.936-.384-.995-.879l-.007-.116L1.007 5zM7.226 6c-.52 0-1.152.13-1.333.49a.6.6 0 0 0-.455.235c-.23.31-.133.828-.028 1.209l.09.307c-.177.154-.207.435-.151.672.034.148.095.256.17.314.027.537.295.853.41.966v.914l-1.131.42-.383.153c-.538.23-.917.457-1.07.763-.267.535-.33.794-.345 1.025 0 .294.23.532.514.532h6.972a.523.523 0 0 0 .514-.532c-.016-.237-.092-.499-.355-1.025-.153-.306-.531-.534-1.07-.763l-.382-.154-1.13-.419v-.862c.107-.119.382-.47.408-1.018.076-.058.136-.166.171-.314.055-.234.026-.513-.146-.668l.135-.35c.12-.331.248-.773.176-1.135-.105-.525-.87-.76-1.58-.76"}),o.createElement("path",{d:"M2.415 2.55a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0M2.51 1c-.826 0-1.499.666-1.503 1.5L1 4h12l.007-1.5A1.495 1.495 0 0 0 11.52 1z"}),o.createElement("path",{fillOpacity:.4,d:"m31 5 .007 9.005c0 .501-.385.93-.882.988l-.117.007H15.014c-.506 0-.934-.384-.993-.879l-.007-.116L14.007 5zm-2.007 1-12.975.013-.118.006a1.01 1.01 0 0 0-.883.875l-.007.115L15 13.005l.007.116c.053.457.422.82.878.872L16 14h3.561l2.096-3.59.044-.06a.304.304 0 0 1 .4-.033l.053.05 1.609 1.937 1.718-3.791.037-.062a.305.305 0 0 1 .49.014l.034.064L28.164 14h.832l.117-.007c.461-.054.827-.421.88-.875l.007-.115V6.997l-.007-.116a1 1 0 0 0-.882-.873zM18.5 7c.827 0 1.5.673 1.5 1.5s-.673 1.5-1.5 1.5S17 9.327 17 8.5 17.673 7 18.5 7"}),o.createElement("path",{d:"M15.415 2.55a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.333 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0M15.523 1a1.51 1.51 0 0 0-1.516 1.5L14 4h17l.007-1.5A1.49 1.49 0 0 0 29.506 1z"}),o.createElement("path",{fillOpacity:.4,d:"m30.996 20 .007 10.004a.995.995 0 0 1-.88.99l-.117.006H2.01a1 1 0 0 1-.992-.88l-.007-.116L1.003 20zm-1.5 1h-14a.5.5 0 0 0-.492.41l-.008.09v8a.5.5 0 0 0 .41.492l.09.008h14a.5.5 0 0 0 .492-.41l.008-.09v-8a.5.5 0 0 0-.5-.5M5.503 27.5h-2a.5.5 0 0 0-.492.41l-.008.09v1a.5.5 0 0 0 .41.491l.09.008h2a.5.5 0 0 0 .492-.41l.008-.09v-1a.5.5 0 0 0-.41-.491zm7 0h-5a.5.5 0 0 0-.492.41l-.008.09v1a.5.5 0 0 0 .41.491l.09.008h5a.5.5 0 0 0 .492-.41l.008-.09v-1a.5.5 0 0 0-.41-.491zm-7-3h-2a.5.5 0 0 0-.492.41l-.008.09v1a.5.5 0 0 0 .41.491l.09.008h2a.5.5 0 0 0 .492-.41l.008-.09v-1a.5.5 0 0 0-.41-.491zm5 0h-3a.5.5 0 0 0-.492.41l-.008.09v1a.5.5 0 0 0 .41.491l.09.008h3a.5.5 0 0 0 .492-.41l.008-.09v-1a.5.5 0 0 0-.41-.491zm-5-3h-2a.5.5 0 0 0-.492.41l-.008.09v1a.5.5 0 0 0 .41.491l.09.009h2a.5.5 0 0 0 .492-.41l.008-.09v-1a.5.5 0 0 0-.41-.492zm7 0h-5a.5.5 0 0 0-.492.41l-.008.09v1a.5.5 0 0 0 .41.491l.09.009h5a.5.5 0 0 0 .492-.41l.008-.09v-1a.5.5 0 0 0-.41-.492z"}),o.createElement("path",{fillOpacity:.4,d:"M24.114 22.578c0-.402-.355-.578-.79-.578h-5.537c-.436 0-.79.176-.79.578v5.692c0 .402.354.73.79.73h5.537c.435 0 .79-.328.79-.73zm3.045.632-2.269 1.176v2.28l2.269 1.076a.64.64 0 0 0 .568-.052.56.56 0 0 0 .27-.471v-3.486c0-.19-.101-.366-.27-.472a.64.64 0 0 0-.568-.051"}),o.createElement("path",{d:"M2.41 17.55a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.334 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0m2.334 0a.751.751 0 0 1 1.5 0 .75.75 0 0 1-1.5 0M2.519 16a1.51 1.51 0 0 0-1.515 1.5L.996 19h30l.008-1.5a1.49 1.49 0 0 0-1.501-1.5z"}))))}},55375(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29 1a2 2 0 0 1 2 2v26a2 2 0 0 1-2 2H18a2 2 0 0 1-2-2v-2.996q.23-.141.439-.323l.167-.156 6.92-7.114c.162-.17.296-.338.413-.518l.062-.103.102-.188c.058-.105.105-.202.15-.317l.035-.097.064-.203q.057-.163.093-.376a3.4 3.4 0 0 0-.01-1.276l-.013-.062-.03-.124-.041-.137a3 3 0 0 0-.102-.305l-.053-.124-.05-.1-.13-.247-.068-.114a4 4 0 0 0-.262-.354l-.113-.127-6.922-7.12q-.301-.308-.65-.523L16 3a2 2 0 0 1 2-2z"}),o.createElement("path",{d:"M12.924 7.565a1.836 1.836 0 0 1 2.532-.112l.12.112 6.88 7.075.082.092.078.099.076.109.131.247.034.076.03.084.066.226.01.048c.049.25.049.508.003.74l-.019.088-.089.285-.034.077-.038.073-.102.188a2 2 0 0 1-.148.198l-.085.095-6.875 7.07-.12.112a1.836 1.836 0 0 1-2.532-.112 1.95 1.95 0 0 1-.549-1.364c0-.45.153-.888.437-1.237l.112-.126 3.675-3.78H2.875l-.146-.005C1.762 17.846 1 17.014 1 16s.762-1.846 1.729-1.923l.146-.005h13.724l-3.674-3.78-.115-.129a1.97 1.97 0 0 1 .114-2.598"}))))}},33300(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M21.2 18.702c.186.187.301.434.323.698v.109c-.003.184-.05.365-.14.527l-.058.098-.064.084-.067.072-.07.065-.087.064-.095.061a1.12 1.12 0 0 1-1.334-.19 5.12 5.12 0 0 0-7.238 0 1.117 1.117 0 0 1-1.915-.792h.01v-.11c.025-.259.14-.502.325-.686a7.37 7.37 0 0 1 10.41 0m2.352-3.286c.193.188.312.437.338.704v.109a1.1 1.1 0 0 1-.137.527l-.058.098-.067.084-.064.072-.073.065-.084.064-.098.061c-.436.241-.98.164-1.331-.19a8.455 8.455 0 0 0-11.945 0 1.117 1.117 0 0 1-1.915-.795l-.005-.006v-.106c.024-.26.139-.502.323-.687 4.177-4.167 10.94-4.167 15.116 0M12.82 22.783v-.109c.025-.262.141-.507.33-.692a4.034 4.034 0 0 1 5.716 0c.187.186.302.432.324.695v.109c-.002.185-.05.366-.14.528l-.058.097-.067.084-.064.073-.073.067-.083.064-.11.064a1.12 1.12 0 0 1-.962.042l-.104-.05-.095-.056-.083-.062-.16-.14-.097-.08-.117-.081a1.8 1.8 0 0 0-1.954 0l-.115.08-.095.079-.15.14-.084.067-.095.058a1.117 1.117 0 0 1-1.675-.982z"}),o.createElement("path",{fillRule:"nonzero",d:"M31 15.444c0-1.71-2.764-2.85-4.265-2.922C26.315 6.886 21.763 3 15.962 3S5.61 6.889 5.187 12.527C3.677 12.631 1 13.758 1 15.444v4.863c0 1.77 2.945 2.923 4.715 2.926H8.41v-4.941a2.23 2.23 0 0 1-1.415-2.083v-.212a2.26 2.26 0 0 1 .645-1.37q.37-.363.76-.693V12.52H7.084c.447-4.419 4.322-7.64 8.877-7.64s8.43 3.221 8.88 7.64h-1.253v1.415q.39.33.759.693c.372.375.6.869.648 1.395v.218c-.004.369-.1.73-.28 1.052v.025l-.103.168-.128.167-.132.146-.142.13-.17.13-.168.103-.025.013a2 2 0 0 1-.254.12v4.947c-.067 1.625-1.786 3.274-3.405 3.411q-.698.048-1.396 0c-.064 0-.59-1.58-.896-1.583H13.83c-.559 0-.885 1.58-.885 1.58a21 21 0 0 0 0 1.463s.371 1.817.938 1.82h3.944c.327 0 .863-1.817.957-1.82.723-.02.416 0 1.396 0a4.98 4.98 0 0 0 4.871-4.14c.05-.279.07-.477.092-.728h1.142c1.77 0 4.712-1.156 4.715-2.926z",opacity:.4}))))}},31960(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m13.258 29 4.257 2H4a1 1 0 0 1-1-1v-1zM29 29.348V30a1 1 0 0 1-1 1h-2.516zM29 1a2 2 0 0 1 2 2l.001 10.669a3 3 0 0 0-.143-.073L28 12.254V11a1 1 0 0 0-1.993-.117L26 11v.315l-3.285-1.544a2.86 2.86 0 0 0-2.43 0l-8.143 3.825a2.86 2.86 0 0 0-1.642 2.586v9.708c0 .817.348 1.58.932 2.112L3 28a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zM9.28 24H4a1 1 0 0 0-.117 1.993L4 26h5.28a1 1 0 0 0 0-2m0-3H4a1 1 0 0 0-.117 1.993L4 23h5.28a1 1 0 0 0 0-2m0-3H4a1 1 0 0 0-.117 1.993L4 20h5.28a1 1 0 0 0 0-2m.5-2H3.5a.5.5 0 0 0-.09.992L3.5 17h6.28a.5.5 0 1 0 0-1M5 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4m4.28-4H4a1 1 0 0 0-.117 1.993L4 8h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 8h5.28a1 1 0 0 0 0-2M28 6h-5.28a1 1 0 0 0-.117 1.993L22.72 8H28a1 1 0 0 0 0-2M9.28 3H4a1 1 0 0 0-.117 1.993L4 5h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 5h5.28a1 1 0 0 0 0-2M28 3h-5.28a1 1 0 0 0-.117 1.993L22.72 5H28a1 1 0 0 0 0-2"}),o.createElement("path",{d:"m20.923 11.129-8.143 3.825c-.476.223-.78.702-.78 1.228v9.708c0 .526.304 1.005.78 1.229l8.143 3.825c.366.172.788.172 1.154 0l8.143-3.825c.476-.224.78-.703.78-1.229v-9.708c0-.526-.304-1.005-.78-1.228l-8.143-3.825a1.36 1.36 0 0 0-1.154 0m-1.31 17.268-5.384-2.529a.68.68 0 0 1-.39-.614V18.32a.68.68 0 0 1 .967-.614l5.385 2.53c.238.111.39.35.39.613v6.934a.68.68 0 0 1-.967.614m-3.971-12.856 5.57-2.616a.68.68 0 0 1 .577 0l5.569 2.616a.346.346 0 0 1 0 .626l-5.57 2.617a.68.68 0 0 1-.577 0l-5.569-2.617a.346.346 0 0 1 0-.626m13.13 10.327-5.386 2.53a.68.68 0 0 1-.967-.615V20.85c0-.263.152-.502.39-.614l5.385-2.53a.68.68 0 0 1 .967.615v6.934a.68.68 0 0 1-.39.614"}))))}},60635(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M14.5 29v2H4a1 1 0 0 1-1-1v-1zM29 1a2 2 0 0 1 2 2v12.481l-4.462-4.395a2.04 2.04 0 0 0-1.43-.586h-8.572c-1.12 0-2.036.903-2.036 2.028V16h-1.64a.5.5 0 0 0-.09.992l.09.008h1.64v1h-1.14a1 1 0 0 0-.117 1.993l.117.007h1.14v1h-1.14a1 1 0 0 0-.117 1.993l.117.007h1.14v1h-1.14a1 1 0 0 0-.117 1.993l.117.007h1.14v2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zM9.28 24H4a1 1 0 0 0-.117 1.993L4 26h5.28a1 1 0 0 0 0-2m0-3H4a1 1 0 0 0-.117 1.993L4 23h5.28a1 1 0 0 0 0-2m0-3H4a1 1 0 0 0-.117 1.993L4 20h5.28a1 1 0 0 0 0-2m.5-2H3.5a.5.5 0 0 0-.09.992L3.5 17h6.28a.5.5 0 1 0 0-1M5 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4m4.28-4H4a1 1 0 0 0-.117 1.993L4 8h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 8h5.28a1 1 0 0 0 0-2M28 6h-5.28a1 1 0 0 0-.117 1.993L22.72 8H28a1 1 0 0 0 0-2M9.28 3H4a1 1 0 0 0-.117 1.993L4 5h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 5h5.28a1 1 0 0 0 0-2M28 3h-5.28a1 1 0 0 0-.117 1.993L22.72 5H28a1 1 0 0 0 0-2"}),o.createElement("path",{d:"M25.107 12c.142 0 .279.056.378.154l.915.902 1.072 1.055.299.295 1.15 1.133 1.922 1.893c.1.1.157.233.157.374v12.666c0 .292-.24.528-.536.528H16V12.528c0-.292.24-.528.536-.528Zm.015 7.284a.41.41 0 0 0-.383.21l-2.201 3.976-1.254-1.236a.412.412 0 0 0-.658.105l-2.054 4.046a.4.4 0 0 0 .018.395.41.41 0 0 0 .35.191h9.035a.41.41 0 0 0 .342-.18.4.4 0 0 0 .038-.378l-2.875-6.879a.41.41 0 0 0-.358-.25m-4.95-2.833c-.907 0-1.643.726-1.643 1.618s.736 1.619 1.642 1.619 1.643-.726 1.643-1.619c0-.892-.737-1.618-1.643-1.618"}))))}},99197(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M10.5 29v.56l.005.163.019.181c.052.398.178.768.364 1.097L4 31a1 1 0 0 1-1-1v-1zM29 29v1a1 1 0 0 1-1 1l-1.417.001a2.762 2.762 0 0 0 .233-1.9L26.787 29zm0-28a2 2 0 0 1 2 2v8.881a2.9 2.9 0 0 0-1.225-.373l-.223-.008h-13.39l-.163.005-.181.018c-1.438.188-2.515 1.335-2.598 2.74l-.006.177.001 5.735a2.316 2.316 0 0 0-2.71 2.117l-.005.158V28H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zM9.28 24H4a1 1 0 0 0-.117 1.993L4 26h5.28a1 1 0 0 0 0-2m0-3H4a1 1 0 0 0-.117 1.993L4 23h5.28a1 1 0 0 0 0-2m0-3H4a1 1 0 0 0-.117 1.993L4 20h5.28a1 1 0 0 0 0-2m.5-2H3.5a.5.5 0 0 0-.09.992L3.5 17h6.28a.5.5 0 1 0 0-1M5 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4m4.28-4H4a1 1 0 0 0-.117 1.993L4 8h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 8h5.28a1 1 0 0 0 0-2M28 6h-5.28a1 1 0 0 0-.117 1.993L22.72 8H28a1 1 0 0 0 0-2M9.28 3H4a1 1 0 0 0-.117 1.993L4 5h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 5h5.28a1 1 0 0 0 0-2M28 3h-5.28a1 1 0 0 0-.117 1.993L22.72 5H28a1 1 0 0 0 0-2"}),o.createElement("path",{d:"M12.814 21.64c.42 0 .766.316.81.722l.005.088v3.87c0 1.15.904 2.09 2.043 2.156l.128.004h8.324c.7 0 1.266.564 1.266 1.26 0 .661-.511 1.203-1.162 1.256l-.104.004H13.448a1.445 1.445 0 0 1-1.444-1.333L12 29.56v-7.11c0-.447.365-.81.814-.81M29.552 13c.764 0 1.389.587 1.444 1.333l.004.107v11.52c0 .76-.59 1.381-1.34 1.436l-.108.004h-13.39a1.445 1.445 0 0 1-1.444-1.333l-.004-.107V14.44c0-.76.59-1.381 1.34-1.436l.108-.004zm-10.455 2.2H17.77a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h1.001a.5.5 0 0 0 .5-.5v-5.252l-.006-.282a9 9 0 0 0-.048-.63l2.606 5.147q.121.24.326.364a.9.9 0 0 0 .467.123h.308q.262 0 .467-.123a.87.87 0 0 0 .326-.364l2.592-5.14q-.04.486-.04.905V24.7a.5.5 0 0 0 .5.5h1.001a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-1.327l-.164.007a.7.7 0 0 0-.198.041.45.45 0 0 0-.158.106.8.8 0 0 0-.138.203l-2.511 5.051q-.135.268-.262.553-.128.285-.242.587a13 13 0 0 0-.238-.577l-.127-.276-2.65-5.338a.8.8 0 0 0-.138-.203.45.45 0 0 0-.158-.106.7.7 0 0 0-.198-.041z"}))))}},72420(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M15.952 31H4a1 1 0 0 1-1-1v-1h10.454a11 11 0 0 0 2.154 1.79zm13.049-1.454L29 30a1 1 0 0 1-1 1h-.952c.705-.412 1.36-.9 1.953-1.454M29 1a2 2 0 0 1 2 2v12.952a11 11 0 0 0-9.5-5.452c-6.075 0-11 4.925-11 11 0 2.432.79 4.68 2.125 6.5H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zM9.28 24H4a1 1 0 0 0-.117 1.993L4 26h5.28a1 1 0 0 0 0-2m0-3H4a1 1 0 0 0-.117 1.993L4 23h5.28a1 1 0 0 0 0-2m0-3H4a1 1 0 0 0-.117 1.993L4 20h5.28a1 1 0 0 0 0-2m.5-2H3.5a.5.5 0 0 0-.09.992L3.5 17h6.28a.5.5 0 1 0 0-1M5 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4m4.28-4H4a1 1 0 0 0-.117 1.993L4 8h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 8h5.28a1 1 0 0 0 0-2M28 6h-5.28a1 1 0 0 0-.117 1.993L22.72 8H28a1 1 0 0 0 0-2M9.28 3H4a1 1 0 0 0-.117 1.993L4 5h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 5h5.28a1 1 0 0 0 0-2M28 3h-5.28a1 1 0 0 0-.117 1.993L22.72 5H28a1 1 0 0 0 0-2"}),o.createElement("path",{d:"M21.5 12a9.5 9.5 0 1 1 0 19 9.5 9.5 0 0 1 0-19m0 1.583a7.917 7.917 0 1 0 0 15.834 7.917 7.917 0 0 0 0-15.834m-6.43 9.905 2.706 2.707a10 10 0 0 1-1.041.055 6.7 6.7 0 0 1-1.666-2.762m.204-4.547 6.106 6.106a9.5 9.5 0 0 1-1.549.692l-5.016-5.017a6.7 6.7 0 0 1 .46-1.78m2.04-2.71 6.673 6.673a9.6 9.6 0 0 1-1.123 1.117l-6.666-6.665a6.8 6.8 0 0 1 1.116-1.125m3.342-1.408 5.064 5.064a9.5 9.5 0 0 1-.7 1.541l-6.132-6.132a6.7 6.7 0 0 1 1.768-.473m2.723.214a6.7 6.7 0 0 1 2.871 1.697v.016q0 .556-.062 1.095z"}))))}},87131(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M29 1a2 2 0 0 1 2 2v23a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zM9.28 24H4a1 1 0 0 0-.117 1.993L4 26h5.28a1 1 0 0 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993l.117.007h5.28a1 1 0 0 0 0-2M28 24h-5.28a1 1 0 0 0-.117 1.993l.117.007H28a1 1 0 0 0 0-2M9.28 21H4a1 1 0 0 0-.117 1.993L4 23h5.28a1 1 0 0 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993l.117.007h5.28a1 1 0 0 0 0-2M28 21h-5.28a1 1 0 0 0-.117 1.993l.117.007H28a1 1 0 0 0 0-2M9.28 18H4a1 1 0 0 0-.117 1.993L4 20h5.28a1 1 0 0 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993l.117.007h5.28a1 1 0 0 0 0-2M28 18h-5.28a1 1 0 0 0-.117 1.993l.117.007H28a1 1 0 0 0 0-2M9.78 16H3.5a.5.5 0 0 0-.09.992L3.5 17h6.28a.5.5 0 1 0 0-1m9.36 0h-6.28a.5.5 0 0 0-.09.992l.09.008h6.28a.5.5 0 1 0 0-1m9.36 0h-6.28a.5.5 0 0 0-.09.992l.09.008h6.28a.5.5 0 1 0 0-1M27 10a1 1 0 0 0-.993.883L26 11v2a1 1 0 0 0 1.993.117L28 13v-2a1 1 0 0 0-1-1M5 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4m4.28-4H4a1 1 0 0 0-.117 1.993L4 8h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 8h5.28a1 1 0 0 0 0-2M28 6h-5.28a1 1 0 0 0-.117 1.993L22.72 8H28a1 1 0 0 0 0-2M9.28 3H4a1 1 0 0 0-.117 1.993L4 5h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 5h5.28a1 1 0 0 0 0-2M28 3h-5.28a1 1 0 0 0-.117 1.993L22.72 5H28a1 1 0 0 0 0-2"}),o.createElement("path",{fillOpacity:.4,d:"M29 29v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-1z"}))))}},62858(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m3 29 8.65.001q.325.271.67.534c.726.554 1.469 1.046 2.226 1.466L4 31a1 1 0 0 1-1-1zm26 .283V30a1 1 0 0 1-1 1l-1.546.001c.757-.42 1.5-.912 2.227-1.466zM29 1a2 2 0 0 1 2 2v19.678l-.285-.287A21.5 21.5 0 0 0 27.817 20L28 20a1 1 0 0 0 0-2h-4.237a11.1 11.1 0 0 0-3.263-.5c-1.108 0-2.197.174-3.263.5H13.36a1 1 0 0 0-.156 1.988 18 18 0 0 0-.884.635 21.6 21.6 0 0 0-2.24 1.972.98.98 0 0 0 .2-.595 1 1 0 0 0-1-1H4a1 1 0 0 0-.117 1.993L4 23h5.28a1 1 0 0 0 .606-.204l-.128.131-.36.39-.292.333-.183.222L8.83 24H4a1 1 0 0 0-.117 1.993L4 26h4.734q.078.147.185.28l.185.226.36.408.294.316.163.17q.293.303.606.601L3 28a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zM9.28 18H4a1 1 0 0 0-.117 1.993L4 20h5.28a1 1 0 0 0 0-2m.5-2H3.5a.5.5 0 0 0-.09.992L3.5 17h6.28a.5.5 0 1 0 0-1m9.36 0h-6.28a.5.5 0 0 0-.09.992l.09.008h6.28a.5.5 0 1 0 0-1m9.36 0h-6.28a.5.5 0 0 0-.09.992l.09.008h6.28a.5.5 0 1 0 0-1M27 10a1 1 0 0 0-.993.883L26 11v2a1 1 0 0 0 1.993.117L28 13v-2a1 1 0 0 0-1-1M5 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4m4.28-4H4a1 1 0 0 0-.117 1.993L4 8h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 8h5.28a1 1 0 0 0 0-2M28 6h-5.28a1 1 0 0 0-.117 1.993L22.72 8H28a1 1 0 0 0 0-2M9.28 3H4a1 1 0 0 0-.117 1.993L4 5h5.28a1 1 0 1 0 0-2m9.36 0h-5.28a1 1 0 0 0-.117 1.993L13.36 5h5.28a1 1 0 0 0 0-2M28 3h-5.28a1 1 0 0 0-.117 1.993L22.72 5H28a1 1 0 0 0 0-2"}),o.createElement("path",{d:"M20.5 19c5.704 0 10.217 5.573 10.406 5.809a.43.43 0 0 1 0 .54c-.19.236-4.702 5.809-10.406 5.809-5.703 0-10.216-5.573-10.405-5.809a.43.43 0 0 1 0-.54C10.283 24.573 14.797 19 20.5 19m0 1.997c-2.269 0-4.113 1.83-4.113 4.082s1.844 4.082 4.113 4.082 4.113-1.83 4.113-4.082-1.844-4.082-4.113-4.082m0 1.042c1.689 0 3.063 1.364 3.063 3.04s-1.374 3.04-3.063 3.04-3.062-1.364-3.062-3.04 1.373-3.04 3.062-3.04"}))))}},95232(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m22.7 10.833.067.067v1.767c-.6.433-1 1.1-1 1.866 0 1.467 1.4 2.5 3 2.5s3-1.033 3-2.5c0-.766-.4-1.433-1-1.866V10.9l.1-.067c.466-.333.833-.8 1.066-1.333.767.5 1.3 1.3 1.367 2.267l1.233 14.1c.1 1.1-.7 2.066-1.8 2.166H3c-1.1 0-2-.9-2-2v-.2l1.467-15c.066-.8.6-1.466 1.333-1.733v.867c0 1.633 1.267 3 2.867 3h10.266c1.6 0 2.867-1.367 2.867-3v-1h1.633c.234.766.667 1.4 1.267 1.866M18.1 15H5.367a.52.52 0 0 0-.4.333l-1.1 8.767c0 .433.333.8.766.867h14.1c.5-.067.9-.434.9-.9v-.034l-1.1-8.7c0-.2-.2-.333-.433-.333m8.4 5h-3.567a1.864 1.864 0 0 0-1.866 1.867v.233l.033.133a1.98 1.98 0 0 0 1.967 1.734h3.566A1.864 1.864 0 0 0 28.5 22.1v-.233l-.033-.134c-.1-1-.967-1.733-1.967-1.733"}),o.createElement("path",{d:"M16.933 1c1.034 0 1.867.9 1.867 2v7c0 1.1-.833 2-1.867 2H6.667C5.633 12 4.8 11.1 4.8 10V3c0-1.1.833-2 1.867-2zM16.3 2.5h-9c-.567 0-1 .433-1 1v6c0 .567.433 1 1 1h9c.5 0 .933-.367 1-.867V3.5c0-.567-.467-1-1-1"}),o.createElement("path",{d:"M15.8 3.5h-8c-.267 0-.5.233-.5.5v5c0 .267.233.5.5.5h8c.267 0 .5-.233.5-.5V4c0-.267-.233-.5-.5-.5M5.867 16.433l-.9 6.967a.52.52 0 0 0 .433.567c.033 0 .033.033.067.033H18.1c.267 0 .5-.2.5-.467v-.066l-.9-7a.505.505 0 0 0-.5-.434H6.367c-.267-.033-.467.167-.5.4M26.767 31H4.933c-1.1 0-2-.9-2-2H28.6c.033 1.033-.767 1.9-1.833 2M26.5 21c.467 0 .867.3.967.767l.033.1.033.133v.133c0 .467-.333.834-.766.867H23.1a.966.966 0 0 1-.967-.767l-.033-.1-.033-.133v-.133c0-.467.333-.834.766-.867zM25.8 11.367V13.2c.6.267 1 .733 1 1.3 0 .833-.9 1.5-2 1.5s-2-.667-2-1.5c0-.567.4-1.033 1-1.3v-1.833c.333.1.667.133 1 .133a3.4 3.4 0 0 0 1-.133m-1-5.867c1.367 0 2.5 1.133 2.5 2.5s-1.133 2.5-2.5 2.5A2.52 2.52 0 0 1 22.3 8c0-1.367 1.1-2.5 2.5-2.5",opacity:.4}))))}},19942(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillRule:"nonzero",d:"M4.969 14.129h6.568c1.087 0 1.969.881 1.969 1.969v6.567a1.97 1.97 0 0 1-1.97 1.97H4.97A1.97 1.97 0 0 1 3 22.664v-6.567c0-1.088.882-1.97 1.969-1.97",opacity:.4}),o.createElement("path",{d:"M11.306 3.377a.4.4 0 0 1 .325.253l1.875 4.881v1.026a1.97 1.97 0 0 1-1.97 1.969H4.97A1.97 1.97 0 0 1 3 9.536c.004.374.117.741.325 1.055l2.562-4.468.042-.052a.397.397 0 0 1 .615 0l2.11 2.57 2.277-5.093a.4.4 0 0 1 .375-.171M5.672 1.924A1.438 1.438 0 1 1 4.256 3.36a1.43 1.43 0 0 1 1.416-1.436M11.537 1c1.087 0 1.969.882 1.969 1.969v.01a1.97 1.97 0 0 0-1.973-1.953H4.97A1.97 1.97 0 0 0 3 2.97C3 1.882 3.882 1 4.969 1z"}),o.createElement("path",{d:"M25.977 1a1.953 1.953 0 0 1 1.969 1.969v6.564c.005.8-.477 1.522-1.217 1.823-.46-.12-.932-.18-1.406-.18H20.07c-.475 0-.947.06-1.406.18a1.97 1.97 0 0 1-1.22-1.823V2.97a1.97 1.97 0 0 1 1.952-1.953z",opacity:.4}),o.createElement("path",{d:"M18.407 24.292a1.54 1.54 0 0 1 .621-.37v-.466a1.63 1.63 0 0 1-.439-1.12v-5.421a1.65 1.65 0 0 1 1.627-1.475h5.263a1.627 1.627 0 0 1 1.643 1.627v5.325l.05.055h.237a1.78 1.78 0 0 1 1.536.885c.093-.324.14-.66.14-.999v-5.47a3.61 3.61 0 0 0-3.606-3.388h-5.471a3.61 3.61 0 0 0-3.388 3.606v5.474a3.6 3.6 0 0 0 1.34 2.603c.058-.327.213-.63.447-.866"}),o.createElement("path",{d:"M21.202 19.71v5.878l-1.035-.885a.976.976 0 0 0-1.301.052.944.944 0 0 0-.118 1.21c.088.153 2.23 3.795 3.076 4.924.053.07.136.112.225.111h5.08a.28.28 0 0 0 .273-.205l.911-3.19c.15-.529.227-1.076.228-1.627v-1.75a1.133 1.133 0 0 0-1.132-1.13h-.423v1.985a.143.143 0 0 1-.284 0v-2.167a.85.85 0 0 0-.706-.381h-.7v1.126c0 .08-.064.143-.143.143a.143.143 0 0 1-.14-.143V22.36a.84.84 0 0 0-.706-.384h-.706v1.693a.143.143 0 0 1-.14.143.143.143 0 0 1-.143-.143v-4.492a1.123 1.123 0 0 0-2.116.534M10.456 22.85l-.706-.253v-1.243c.366-.408.58-.93.605-1.478a.78.78 0 0 0 .25-.452.98.98 0 0 0-.214-.977c.016-.045.036-.097.059-.146.185-.465.537-1.328.4-1.998-.156-.762-1.282-1.1-2.33-1.1-.768 0-1.7.188-1.953.706a.89.89 0 0 0-.67.325c-.417.547-.108 1.543.055 2.08 0 .036.026.075.036.11a.98.98 0 0 0-.225.977c.021.181.105.35.238.475.017.525.234 1.024.605 1.396v1.322c-.244.087-.478.175-.706.253-.844.267-1.66.612-2.438 1.032.372.478.944.757 1.55.755h6.564a1.95 1.95 0 0 0 1.467-.65c-.56-.404-1.464-.73-2.587-1.133"}),o.createElement("path",{fillOpacity:.4,d:"m5.887 6.123.042-.052a.397.397 0 0 1 .615 0l2.11 2.57 2.277-5.093a.397.397 0 0 1 .7.082l1.875 4.881V2.98a1.97 1.97 0 0 0-1.973-1.953H4.97A1.97 1.97 0 0 0 3 2.97v6.564c.004.377.117.744.325 1.058zm-.215-4.199A1.438 1.438 0 1 1 4.256 3.36a1.43 1.43 0 0 1 1.416-1.436"}),o.createElement("path",{d:"M25.062 4.665c-.362.016-.716.11-1.038.276.138-.332.231-.681.277-1.038 0-.95-.687-1.728-1.527-1.728s-1.513.778-1.513 1.715c.02.363.119.717.29 1.038a4 4 0 0 0-1.039-.276c-.95 0-1.728.69-1.728 1.526s.778 1.513 1.715 1.513c.362-.016.716-.11 1.039-.273a4 4 0 0 0-.277 1.035c0 .953.69 1.728 1.526 1.728s1.514-.775 1.514-1.715a2.5 2.5 0 0 0-.277-1.038c.332.138.681.23 1.038.276.954 0 1.728-.686 1.728-1.526s-.787-1.513-1.728-1.513m-3.837 1.513a1.536 1.536 0 1 1 1.536 1.536 1.53 1.53 0 0 1-1.536-1.536"}))))}},89407(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m15.015 11.816-1.969 2.565-4.01-5.223H3.07c-.857 0-1.552-.707-1.552-1.58C1.517 6.708 2.212 6 3.07 6h7.481zm3.939 5.13 4.527 5.896h5.967c.857 0 1.552.707 1.552 1.58 0 .871-.695 1.578-1.552 1.578h-7.48l-4.983-6.49z"}),o.createElement("path",{d:"M22.964 9.158h5.967c.857 0 1.552-.707 1.552-1.58 0-.871-.695-1.578-1.552-1.578H21.45L8.519 22.842H2.552c-.857 0-1.552.707-1.552 1.58C1 25.292 1.695 26 2.552 26h7.48z"}))))}},86795(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FFF",fillOpacity:.4,d:"m22.167 22.086 4.882-.001c.2.085.371.23.484.419l3.004 7.817a.5.5 0 0 1-.467.679H1.526a.5.5 0 0 1-.467-.68l3.005-7.816c.113-.19.284-.334.484-.42l5.284.002-.098.075-.162.134C8.892 22.886 8.5 23.62 8.5 24.5c0 2.568 3.436 4 7.5 4s7.5-1.432 7.5-4l-.006-.187-.02-.197c-.106-.775-.537-1.427-1.208-1.955z"}),o.createElement("path",{fill:"#FFF",d:"M29.5 1c.778 0 1.42.583 1.493 1.326l.007.141V19.12c0 .762-.596 1.39-1.356 1.46l-.144.007H18l.001 1.555c2.33.344 3.999 1.27 3.999 2.358 0 1.38-2.686 2.5-6 2.5s-6-1.12-6-2.5c0-1.088 1.67-2.014 4-2.358v-1.555H2.5c-.78 0-1.42-.582-1.493-1.326L1 19.12V2.467c0-.761.595-1.389 1.356-1.46L2.5 1zm-1.312 1.813H3.813a1 1 0 0 0-1 1v14.125a1 1 0 0 0 1 1h24.375a1 1 0 0 0 1-1V3.813a1 1 0 0 0-1-1"}),o.createElement("path",{fill:"#FFF",fillOpacity:.4,d:"M26.687 4.312a1 1 0 0 1 1 1v11.125a1 1 0 0 1-1 1h-3.501l-3.544-9.255a.53.53 0 0 0-.476-.34.53.53 0 0 0-.45.233l-.043.08-2.972 6.639-2.782-3.391a.524.524 0 0 0-.81.002l-.05.07-3.436 5.962H5.312a1 1 0 0 1-.993-.883l-.007-.117V5.312a1 1 0 0 1 1-1ZM8.317 5.799c-1.45 0-2.632 1.2-2.632 2.673s1.181 2.672 2.632 2.672 2.632-1.2 2.632-2.672-1.181-2.673-2.632-2.673"}))))}},20847(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M29 1a2 2 0 0 1 2 2v21a2 2 0 0 1-2 2H18v2.965h5.091c.552 0 .999.455.999 1.017S23.643 31 23.09 31H8.921c-1.228.029-1.325-1.92-.117-2.035.024-.004.302-.006.718-.007h.388l.439-.001.968.001 2.184.005h.266l.1.001H14V26H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2Zm-1 2H4a1 1 0 0 0-1 1v19a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1"}),o.createElement("path",{fillRule:"nonzero",d:"M27 6v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1M27 12v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1M9 6v2a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1M9 12v2a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1M15 18v3a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1M15 6v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1M15 12v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1M21 6v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1M21 12v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1M27 18v3a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1",opacity:.4}))))}},24631(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m12.503 16-1.061 1.833a1.5 1.5 0 1 0 .066 2.276q.125.123.28.213l1.184.693q-.043.494-.028.986H1.998A.995.995 0 0 1 1 21.008v-4.018a1 1 0 0 1 .998-.99zM31 20.457v.552a1 1 0 0 1-.939.99q.015-.493-.026-.981zM5.5 17.5a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 5.5 17.5M30.002 9c.55 0 .998.444.998.991v4.018a1 1 0 0 1-.998.991h-.047l-.266-.464c-.181-.318-.47-.56-.812-.687l-.15-.046c-.4-.105-.83-.043-1.19.174l-1.118.676q-.49-.324-1.092-.636V12.56c0-.86-.696-1.56-1.556-1.56h-.154a1.497 1.497 0 0 0-2.235 0h-1.817c-.86 0-1.556.7-1.556 1.56v1.293a5.7 5.7 0 0 0-1.344.785l-1.196-.68a1.554 1.554 0 0 0-2.113.571l-.274.471H1.998A.995.995 0 0 1 1 14.01V9.99a1 1 0 0 1 .998-.99zM5.5 10.5a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 5.5 10.5m22 0a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 27.5 10.5m-17 0a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 10.5 10.5M22.275 1c.548 0 1.326.312 1.729.697l5.868 5.606c.405.387.279.697-.276.697H2.404c-.558 0-.68-.312-.276-.697l5.866-5.606C8.4 1.31 9.171 1 9.724 1z"}),o.createElement("path",{d:"M21.5 24.667a3.17 3.17 0 0 1-3.167-3.167 3.17 3.17 0 0 1 3.168-3.167 3.17 3.17 0 0 1 3.166 3.167 3.17 3.17 0 0 1-3.166 3.167m9.22-.668-1.76-1.022a7.5 7.5 0 0 0 0-2.491l1.76-1.023a.56.56 0 0 0 .203-.764l-2.102-3.665a.55.55 0 0 0-.768-.2l-1.683 1.017c-.52-.412-1.195-.813-2.044-1.211v-2.08c0-.31-.25-.56-.556-.56h-4.206a.56.56 0 0 0-.556.56v2.005c-1.053.304-1.645.755-2.234 1.287l-1.8-1.025a.554.554 0 0 0-.755.204l-2.124 3.665a.56.56 0 0 0 .2.766l1.75 1.022a7.5 7.5 0 0 0-.004 2.493l-1.763 1.022a.562.562 0 0 0-.205.765l2.103 3.666a.554.554 0 0 0 .752.209l1.841-1.03c.583.526 1.173.983 2.239 1.288v1.543c0 .31.249.56.556.56h4.206c.306 0 .556-.25.556-.56v-1.618c.85-.397 1.524-.797 2.046-1.212l1.68 1.019a.557.557 0 0 0 .769-.2l2.104-3.664a.56.56 0 0 0-.205-.766"}))))}},31830(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M14 1a2 2 0 0 1 2 2v9.571h-5.125C9.002 12.572 7.5 14.117 7.5 16c0 1.784 1.35 3.278 3.11 3.418l.206.01H16V29a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2z"}),o.createElement("path",{d:"M20.924 7.565a1.836 1.836 0 0 1 2.532-.112l.12.112 6.88 7.075.082.092.078.099.076.109.131.247.034.076.03.084.066.226.01.048c.049.25.049.508.003.74l-.019.088-.089.285-.034.077-.038.073-.102.188a2 2 0 0 1-.148.198l-.085.095-6.875 7.07-.12.112a1.836 1.836 0 0 1-2.532-.112 1.95 1.95 0 0 1-.549-1.364c0-.45.153-.888.437-1.237l.112-.126 3.675-3.78H10.875l-.146-.005C9.762 17.846 9 17.014 9 16s.762-1.846 1.729-1.923l.146-.005h13.724l-3.674-3.78-.115-.129a1.97 1.97 0 0 1 .114-2.598"}))))}},87483(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M19 7c6.627 0 12 5.373 12 12s-5.373 12-12 12c-5.449 0-10.05-3.632-11.514-8.607l2.003-1.365c.933 4.396 4.837 7.695 9.511 7.695 5.37 0 9.723-4.353 9.723-9.723S24.37 9.277 19 9.277a9.7 9.7 0 0 0-2.658.368l-2.307-1.573A11.96 11.96 0 0 1 19 7"}),o.createElement("path",{d:"M18.917 11.145a7.772 7.772 0 1 1-7.715 8.715L21.262 13l-2.707-1.847q.18-.008.362-.008"}),o.createElement("path",{d:"m1 1 17.6 12L1 25z"}))))}},77787(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M30.506 10.999a.5.5 0 0 1 .494.494v19.013a.5.5 0 0 1-.501.494H8.504a.495.495 0 0 1-.505-.49v-3.018a.494.494 0 0 1 .494-.49h19.013a.5.5 0 0 0 .494-.498V11.497a.49.49 0 0 1 .494-.498zM26.504 6a.487.487 0 0 1 .487.494v19.01a.51.51 0 0 1-.512.494H4.5a.494.494 0 0 1-.501-.49V22.49a.494.494 0 0 1 .498-.49h19.058a.5.5 0 0 0 .495-.499V6.495a.505.505 0 0 1 .5-.494z",opacity:.4}),o.createElement("path",{d:"M22.498 1a.5.5 0 0 1 .5.494v19.013a.494.494 0 0 1-.5.494H1.5A.5.5 0 0 1 1 20.507V1.494A.494.494 0 0 1 1.501 1zM11.5 3.001a7.5 7.5 0 1 0 0 15 7.5 7.5 0 0 0 0-15m0 1a6.501 6.501 0 1 1 0 13.001A6.501 6.501 0 0 1 11.5 4M9.001 7v6.998l6-3.498z"}))))}},56080(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M9.5 13a.5.5 0 0 1 .492.41l.008.09v1.498c0 .515.387.938.886.995l.116.007h1.238a9.5 9.5 0 0 0-2.597 4.214l-.104.373-.282.047c-2.713.526-4.757 2.97-4.757 5.881q.001.795.142 1.485H1.5a.5.5 0 0 1-.492-.41L1 27.5v-14a.5.5 0 0 1 .41-.492L1.5 13zm21 0a.5.5 0 0 1 .492.41l.008.09v7.178a7.14 7.14 0 0 0-4.346-2.722l-.296-.05-.047-.006-.197-.303a9.4 9.4 0 0 0-4.113-3.386L22 13.5a.5.5 0 0 1 .41-.492L22.5 13zm-11.497 0c.41 0 .767.253.919.614a9 9 0 0 0-1.063-.107L18.5 13.5l-.266.004-.275.012a9.07 9.07 0 0 0-4.452 1.483l-.51.001c-.505 0-.932-.386-.99-.883L12 14l.007-.117a.996.996 0 0 1 .874-.876l.116-.007zm7.996-3a1 1 0 0 1 .994.883L28 11l-.007.117a1 1 0 0 1-.877.876l-.117.007H5.001a1 1 0 0 1-.994-.883L4 11l.007-.117a1 1 0 0 1 .877-.876L5.001 10zm0-3a1 1 0 0 1 .994.883L28 8l-.007.117a1 1 0 0 1-.877.876L26.999 9H5.001a1 1 0 0 1-.994-.883L4 8l.007-.117a1 1 0 0 1 .877-.876L5.001 7zm0-3a1 1 0 0 1 .994.883L28 5l-.007.117a1 1 0 0 1-.877.876L26.999 6H5.001a1 1 0 0 1-.994-.883L4 5l.007-.117a1 1 0 0 1 .877-.876L5.001 4zm0-3a1 1 0 0 1 .994.883L28 2l-.007.117a1 1 0 0 1-.877.876L26.999 3H5.001a1 1 0 0 1-.994-.883L4 2l.007-.117a1 1 0 0 1 .877-.876L5.001 1z"}),o.createElement("path",{d:"M18.5 15c-3.95 0-7.252 3.062-7.708 7.053a4 4 0 0 0-.442-.023C7.952 22.03 6 24.042 6 26.515c0 2.432 1.249 3.545 2.452 4.055l.134.054.255.092.187.058.184.05.235.053.223.042.304.043.259.025.258.012 15.59.001.199-.007.21-.014.22-.024.228-.033.235-.044.12-.027.303-.081.308-.103C29.43 30.1 31 28.652 31 25.163c0-3.195-2.508-5.798-5.602-5.83C24.07 16.692 21.392 15 18.5 15"}))))}},13876(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16.082 1.138a.52.52 0 0 1 .545-.102.48.48 0 0 1 .308.441v12.159c-3.377.592-6.158 3.066-7.227 6.368l-2.099-1.86H1V9.551h6.229ZM26.22 4.493C29.13 6.797 31 10.4 31 13.723c0 1.815-.56 3.717-1.544 5.444a7 7 0 0 0-2.652-1.18c.81-1.364 1.276-2.864 1.276-4.264 0-2.49-1.463-5.285-3.716-7.068a1.36 1.36 0 0 1-.196-1.974 1.505 1.505 0 0 1 2.052-.188m-3.902 3.344c2.202 1.535 3.435 3.63 3.435 5.885 0 .927-.208 1.827-.606 2.672a9.4 9.4 0 0 0-2.412-1.834q.098-.406.098-.838c0-1.385-.765-2.598-2.233-3.62a1.363 1.363 0 0 1-.32-1.956c.473-.625 1.387-.763 2.038-.309"}),o.createElement("path",{d:"M18.5 15c-3.95 0-7.252 3.062-7.708 7.053a4 4 0 0 0-.442-.023C7.952 22.03 6 24.042 6 26.515c0 2.432 1.249 3.545 2.452 4.055l.134.054.255.092.187.058.184.05.235.053.223.042.304.043.259.025.258.012 15.59.001.199-.007.21-.014.22-.024.228-.033.235-.044.12-.027.303-.081.308-.103C29.43 30.1 31 28.652 31 25.163c0-3.195-2.508-5.798-5.602-5.83C24.07 16.692 21.392 15 18.5 15"}))))}},65107(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M18.256 1c1.189 0 2.156.49 2.156 1.605v11.102A9 9 0 0 0 18.5 13.5l-.266.004-.275.012c-4.027.24-7.407 3.133-8.415 7.053l.043-.158H3.155c-1.136 0-2.07-.83-2.15-1.877L1 18.39V2.605C1 1.491 1.967 1 3.155 1Zm10.46 3.357a1.71 1.71 0 0 1 1.549.142c.46.294.735.783.735 1.308v9.666c0 .527-.275 1.016-.734 1.308a1.71 1.71 0 0 1-1.55.144L22.53 13.94V7.62Z"}),o.createElement("path",{d:"M18.5 15c-3.95 0-7.252 3.062-7.708 7.053a4 4 0 0 0-.442-.023C7.952 22.03 6 24.042 6 26.515c0 2.432 1.249 3.545 2.452 4.055l.134.054.255.092.187.058.184.05.235.053.223.042.304.043.259.025.258.012 15.59.001.199-.007.21-.014.22-.024.228-.033.235-.044.12-.027.303-.081.308-.103C29.43 30.1 31 28.652 31 25.163c0-3.195-2.508-5.798-5.602-5.83C24.07 16.692 21.392 15 18.5 15"}))))}},90573(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m22.924 24.57 2.358-1.608-2.358-1.604h3.803c.592 0 1.072-.48 1.072-1.071v-15c0-.592-.48-1.072-1.072-1.072H5.294c-.592 0-1.072.48-1.072 1.072v15c0 .592.48 1.071 1.072 1.071h3.74v3.212H4.215A3.21 3.21 0 0 1 1 21.358V4.215A3.215 3.215 0 0 1 4.215 1h23.57A3.215 3.215 0 0 1 31 4.215v17.143a3.21 3.21 0 0 1-3.215 3.212z",opacity:.4}),o.createElement("path",{d:"M10.642 31V14.928l11.785 8.034z"}))))}},15828(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M12.667 1c.184 0 .333.15.333.333v2.472a10 10 0 0 1 1.66.685l1.75-1.75c.13-.13.341-.13.472 0l2.378 2.377a.336.336 0 0 1 0 .472l-1.749 1.748c.284.509.52 1.084.683 1.663h2.473c.184 0 .333.15.333.333V12c0 .184-.15.333-.333.333h-2.432c-.092.734-.211 1.217-.352 1.591a1.7 1.7 0 0 0-1.433.483l-2.04 2.04-.106.116-.093.122c-.235.34-.333.744-.296 1.139l-.189.07-.302.107c-.156.055-.307.108-.424.154v1.707c-.31.31-.5.737-.5 1.21l.003-.072h-3.17a.334.334 0 0 1-.326-.266L9 20.667v-2.512A15 15 0 0 0 8.577 18c-.387-.136-.852-.299-1.236-.494L5.59 19.26a.343.343 0 0 1-.472 0L2.74 16.883a.334.334 0 0 1 0-.472l1.753-1.752c-.307-.597-.573-1.458-.717-2.326H1.333A.333.333 0 0 1 1 12V9.333C1 9.15 1.15 9 1.333 9H3.81c.139-.457.4-1.137.681-1.66L2.74 5.589a.33.33 0 0 1 0-.472L5.117 2.74c.131-.13.342-.13.472 0l1.75 1.75A9.7 9.7 0 0 1 9 3.806V1.333C9 1.15 9.15 1 9.333 1ZM11 7.667A3.337 3.337 0 0 0 7.667 11 3.337 3.337 0 0 0 11 14.333 3.337 3.337 0 0 0 14.333 11 3.337 3.337 0 0 0 11 7.667"}),o.createElement("path",{fillOpacity:.4,d:"M22.5 25.333a2.837 2.837 0 0 1-2.833-2.833 2.837 2.837 0 0 1 2.833-2.833 2.837 2.837 0 0 1 2.833 2.833 2.837 2.837 0 0 1-2.833 2.833m8.217-4.533h-2.102a6.6 6.6 0 0 0-.58-1.413L29.52 17.9a.283.283 0 0 0 0-.4L27.5 15.479a.284.284 0 0 0-.4 0l-1.489 1.488a8.4 8.4 0 0 0-1.411-.583v-2.1a.283.283 0 0 0-.283-.284h-2.834a.283.283 0 0 0-.283.283v2.102c-.384.114-.96.337-1.412.581L17.9 15.48a.284.284 0 0 0-.4 0l-2.021 2.02a.283.283 0 0 0 0 .401l1.488 1.489a8.6 8.6 0 0 0-.58 1.411h-2.104a.283.283 0 0 0-.283.283v2.267c0 .156.127.283.283.283h2.075c.123.738.35 1.47.61 1.977l-1.49 1.49a.28.28 0 0 0 0 .4l2.022 2.021a.29.29 0 0 0 .4 0l1.49-1.49c.326.166.721.305 1.05.42.133.047.26.092.36.13v2.136c0 .156.127.283.283.283h2.834a.283.283 0 0 0 .283-.283V28.58c.1-.038.228-.083.36-.13.33-.115.724-.254 1.049-.42l1.49 1.49c.111.11.29.11.401 0l2.021-2.02a.284.284 0 0 0 0-.401l-1.484-1.484c.262-.437.473-.874.613-1.983h2.067A.283.283 0 0 0 31 23.35v-2.267a.283.283 0 0 0-.283-.283"}))))}},72883(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M7.5 21A1.5 1.5 0 0 1 9 22.5v5A1.5 1.5 0 0 1 7.5 29h-5A1.5 1.5 0 0 1 1 27.5v-5A1.5 1.5 0 0 1 2.5 21zm22 0a1.5 1.5 0 0 1 1.5 1.5v5a1.5 1.5 0 0 1-1.5 1.5h-4.376l.639-2.237c.245-.86.37-1.748.37-2.64v-2.396l-.005-.179a3 3 0 0 0-.083-.548zm-22-10A1.5 1.5 0 0 1 9 12.5v5A1.5 1.5 0 0 1 7.5 19h-5A1.5 1.5 0 0 1 1 17.5v-5A1.5 1.5 0 0 1 2.5 11zm22 0a1.5 1.5 0 0 1 1.5 1.5v5a1.5 1.5 0 0 1-1.5 1.5h-5l-.063-.003a3 3 0 0 0-.785-.263A1.49 1.49 0 0 1 23 17.5v-5a1.5 1.5 0 0 1 1.5-1.5zM7.5 1A1.5 1.5 0 0 1 9 2.5v5A1.5 1.5 0 0 1 7.5 9h-5A1.5 1.5 0 0 1 1 7.5v-5A1.5 1.5 0 0 1 2.5 1zm22 0A1.5 1.5 0 0 1 31 2.5v5A1.5 1.5 0 0 1 29.5 9h-5A1.5 1.5 0 0 1 23 7.5v-5A1.5 1.5 0 0 1 24.5 1zm-11 0A1.5 1.5 0 0 1 20 2.5v5a1.5 1.5 0 0 1-.929 1.387A4.2 4.2 0 0 0 18 8.75h-4c-.37 0-.73.047-1.071.136A1.5 1.5 0 0 1 12 7.5v-5A1.5 1.5 0 0 1 13.5 1z"}),o.createElement("path",{d:"M18 10.25a2.75 2.75 0 0 1 2.745 2.582l.005.168v4q-.002.436-.128.83l.077.07a2.65 2.65 0 0 0-1.46-.733l.003-.027.002-.012v-.012q.006-.057.006-.116v-4c0-.69-.56-1.25-1.25-1.25h-4a1.25 1.25 0 0 0-1.244 1.122L12.75 13v4c0 .33.127.63.336.853v1.742a2.75 2.75 0 0 1-1.831-2.427L11.25 17v-4a2.75 2.75 0 0 1 2.582-2.745L14 10.25z"}),o.createElement("path",{d:"M14.587 15.545v8.047l-1.415-1.213a1.345 1.345 0 0 0-1.783.068c-.453.454-.514 1.163-.162 1.66.124.21 3.051 5.193 4.21 6.738a.39.39 0 0 0 .31.155H22.7a.39.39 0 0 0 .372-.28l1.248-4.369a8.1 8.1 0 0 0 .312-2.228v-2.396c0-.852-.693-1.545-1.546-1.545h-.58v2.704a.193.193 0 0 1-.385 0v-2.952a1.16 1.16 0 0 0-.966-.525h-.966v1.546a.193.193 0 0 1-.387 0V19.16a1.16 1.16 0 0 0-.966-.525h-.965v2.319a.193.193 0 0 1-.387 0v-6.142A1.54 1.54 0 0 0 16.133 14c-.852 0-1.546.693-1.546 1.545"}))))}},28409(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m30.374 12.977-3.537 3.183 3.537 3.188a1.88 1.88 0 0 1 .094 2.709 1.93 1.93 0 0 1-2.673.085l-5.078-4.583a1.88 1.88 0 0 1 0-2.8l5.081-4.582a1.93 1.93 0 0 1 2.673.091 1.88 1.88 0 0 1-.097 2.709M20.913 16.16a3.06 3.06 0 0 1 .463-1.61L12.5 8.506a8 8 0 0 0-1.178.884v.987q.125.08.241.171l.139.118a2.86 2.86 0 0 1 .212 4.026l-.59.66v9.263l10.053-6.843a3.06 3.06 0 0 1-.463-1.612"}),o.createElement("path",{d:"M8.733 11.815 7.46 13.24c.4-1.538 1.155-2.96 2.204-4.153a9.36 9.36 0 0 1 6.71-3.177 9.6 9.6 0 0 1 8.798 5.058l1.848-1.668q.17-.162.362-.295A12.6 12.6 0 0 0 25.22 6.35a12.38 12.38 0 0 0-8.95-3.342 12.23 12.23 0 0 0-8.756 4.15 13.14 13.14 0 0 0-3.01 6.053l-.883-1.258a1.44 1.44 0 0 0-2.01-.357 1.456 1.456 0 0 0-.345 2.022l3.221 4.618q.02.035.05.062.05.065.11.124.035.04.076.077a1.4 1.4 0 0 0 .36.224q.069.035.144.061.062.018.127.03.104.027.212.038h.212l.112-.017.115-.021q.095-.025.186-.062l.097-.041q.091-.045.177-.1l.073-.05q.069-.054.13-.116a.6.6 0 0 0 .08-.08l4.126-4.617a1.444 1.444 0 1 0-2.146-1.934zM24.677 20.916q-.422.625-.934 1.179a9.48 9.48 0 0 1-6.664 3.071 1.448 1.448 0 0 0 .086 2.894 12.12 12.12 0 0 0 8.694-3.993q.523-.572.975-1.203z",opacity:.4}))))}},49837(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M26.086 23.013a3.094 3.094 0 0 1-3.734.327 9.46 9.46 0 0 1-5.274 1.827 1.447 1.447 0 0 0 .085 2.888 12.12 12.12 0 0 0 8.693-3.993 12.8 12.8 0 0 0 1.768-2.428zM8.732 11.815l-1.273 1.42c.4-1.537 1.155-2.959 2.204-4.152a9.36 9.36 0 0 1 6.71-3.176 9.5 9.5 0 0 1 6.866 2.57l.1.096q.33-.072.667-.073a3.1 3.1 0 0 1 2.062.798l2.443 2.208a12.48 12.48 0 0 0-12.244-8.5 12.22 12.22 0 0 0-8.755 4.15 13.13 13.13 0 0 0-3.009 6.053L3.62 11.95a1.44 1.44 0 0 0-2.01-.356 1.456 1.456 0 0 0-.344 2.021l3.22 4.618q.021.035.05.062.052.064.11.124.036.04.076.076a1.4 1.4 0 0 0 .36.224q.07.036.144.062.063.018.127.03.104.027.212.038h.212l.112-.018.115-.02q.094-.026.186-.062l.097-.041q.091-.045.177-.1l.074-.05q.067-.055.13-.116a.6.6 0 0 0 .079-.08l4.125-4.617a1.444 1.444 0 1 0-2.145-1.93z",opacity:.4}),o.createElement("path",{d:"m22.718 12.973 3.536 3.183-3.536 3.188a1.877 1.877 0 0 0-.092 2.708c.722.742 1.902.78 2.67.086l5.078-4.583a1.877 1.877 0 0 0 0-2.8l-5.08-4.581a1.93 1.93 0 0 0-2.674.09 1.88 1.88 0 0 0 .098 2.709"}),o.createElement("path",{d:"m12.498 8.503 11.228 7.661-12.389 8.446v-9.265l.59-.66a2.86 2.86 0 0 0-.21-4.016l-.138-.118a3 3 0 0 0-.242-.171v-.99a8 8 0 0 1 1.161-.887"}))))}},68192(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.247 7.851 25.2 16 12 25l-.001-9.865.63-.702a3.043 3.043 0 0 0-.225-4.285l-.147-.125A3 3 0 0 0 12 9.84L12 8.796q.586-.534 1.248-.945"}),o.createElement("path",{d:"M27.455 24.415a13.16 13.16 0 0 1-9.253 4.252c-.861 0-1.539-.656-1.57-1.484-.03-.85.63-1.565 1.478-1.596 2.722-.1 5.24-1.26 7.094-3.267a10.21 10.21 0 0 0 2.719-7.36 10.2 10.2 0 0 0-3.251-7.137 10.1 10.1 0 0 0-7.312-2.735 9.97 9.97 0 0 0-7.142 3.38c-1.106 1.246-1.9 2.75-2.346 4.422l1.355-1.514a1.53 1.53 0 0 1 2.17-.116c.63.57.68 1.542.114 2.173l-4.4 4.916c-.058.06-.06.064-.085.084a1.4 1.4 0 0 1-.137.122c-.049.035-.049.035-.078.053a2 2 0 0 1-.188.109c-.063.028-.063.028-.106.043a1.24 1.24 0 0 1-.32.086c-.044.01-.044.01-.117.019l-.118.004c-.052 0-.052 0-.11-.004a2 2 0 0 1-.226-.039c-.056-.012-.056-.012-.133-.033a1 1 0 0 1-.155-.064 1.6 1.6 0 0 1-.382-.24c-.056-.053-.056-.053-.082-.081a2 2 0 0 1-.17-.197l-3.427-4.924a1.545 1.545 0 0 1 .377-2.145 1.53 1.53 0 0 1 2.139.38l.93 1.338c.515-2.437 1.604-4.64 3.203-6.441 2.407-2.709 5.72-4.277 9.321-4.41a13.17 13.17 0 0 1 9.517 3.558 13.28 13.28 0 0 1 4.227 9.28 13.3 13.3 0 0 1-3.536 9.568"}))))}},73380(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M2.538 14q.186 0 .36.029a1.9 1.9 0 0 1 .629.221q.137.079.245.179l-.233.434-.028.04a.3.3 0 0 1-.059.06.2.2 0 0 1-.117.033.3.3 0 0 1-.137-.04l-.166-.09a1.4 1.4 0 0 0-.212-.09.9.9 0 0 0-.271-.04q-.263 0-.391.112a.38.38 0 0 0-.129.303q0 .12.077.202.078.08.204.138t.287.106q.162.05.331.108.169.06.33.14.162.08.288.205a1 1 0 0 1 .204.303q.077.178.077.43 0 .279-.097.523a1.22 1.22 0 0 1-.734.709q-.27.104-.613.104-.188 0-.383-.039a2.3 2.3 0 0 1-.72-.277 1.5 1.5 0 0 1-.28-.215l.277-.437.036-.045.05-.036a.24.24 0 0 1 .118-.03q.083 0 .168.053l.19.116q.107.063.245.116a.9.9 0 0 0 .327.052q.255 0 .395-.112t.141-.355a.34.34 0 0 0-.077-.23.6.6 0 0 0-.203-.146 2 2 0 0 0-.287-.103 9 9 0 0 1-.329-.098 2.4 2.4 0 0 1-.329-.133.97.97 0 0 1-.49-.528 1.3 1.3 0 0 1-.077-.474q0-.227.091-.443t.268-.384a1.3 1.3 0 0 1 .435-.27q.257-.1.589-.101m3.64 0q.47 0 .856.16.386.157.66.435.274.276.425.653.15.375.15.81t-.15.813q-.15.377-.425.654-.274.279-.66.436a2.2 2.2 0 0 1-.856.158q-.47 0-.857-.158a2 2 0 0 1-.663-.436 1.95 1.95 0 0 1-.426-.654q-.15-.376-.15-.813t.15-.813q.15-.377.426-.653a2 2 0 0 1 .663-.434Q5.708 14 6.178 14m7.297 0q.47 0 .856.16.386.157.66.435a1.95 1.95 0 0 1 .475.793l.114-.14a1.8 1.8 0 0 0-.378.643 2.3 2.3 0 0 0-.12.742q0 .362.093.673l-.055.074-.129.145q-.274.279-.66.436a2.2 2.2 0 0 1-.856.158q-.47 0-.857-.158a2 2 0 0 1-.663-.436 1.95 1.95 0 0 1-.426-.654q-.15-.376-.15-.813t.15-.813q.15-.377.426-.653a2 2 0 0 1 .663-.434q.387-.158.857-.158m-3.823.044v3.284h1.494v.746H8.717v-4.03zm-3.474.728q-.27 0-.483.088a.96.96 0 0 0-.356.255 1.1 1.1 0 0 0-.223.405q-.077.24-.077.538 0 .302.077.54.078.24.223.406.144.166.356.253t.483.087.479-.087a.95.95 0 0 0 .355-.253 1.1 1.1 0 0 0 .223-.405q.077-.24.077-.541 0-.3-.077-.538a1.1 1.1 0 0 0-.223-.405.96.96 0 0 0-.355-.255q-.21-.088-.479-.088m7.297 0q-.27 0-.483.088a.96.96 0 0 0-.356.255 1.1 1.1 0 0 0-.223.405q-.078.24-.077.538 0 .302.077.54.078.24.223.406.144.166.356.253t.483.087.479-.087a.95.95 0 0 0 .355-.253 1.1 1.1 0 0 0 .223-.405q.077-.24.077-.541 0-.3-.077-.538a1.1 1.1 0 0 0-.223-.405.96.96 0 0 0-.355-.255q-.21-.088-.479-.088"}),o.createElement("path",{fillOpacity:.4,d:"M16.898 18.119q.147 0 .302-.021a1.6 1.6 0 0 0 .308-.075q.154-.053.3-.15.147-.094.28-.247l-.25-.307a.18.18 0 0 0-.154-.074.2.2 0 0 0-.129.038l-.112.085a.7.7 0 0 1-.148.083.6.6 0 0 1-.236.037.51.51 0 0 1-.439-.221q-.159-.222-.159-.634 0-.195.036-.352a.8.8 0 0 1 .11-.265.5.5 0 0 1 .19-.165.6.6 0 0 1 .273-.059.64.64 0 0 1 .362.099l.115.067a.2.2 0 0 0 .115.03q.066 0 .102-.027a.5.5 0 0 0 .075-.075l.227-.301a1.4 1.4 0 0 0-.46-.315 1.5 1.5 0 0 0-.591-.108q-.352 0-.619.113-.267.114-.448.311-.18.198-.274.468-.092.27-.092.58 0 .353.106.63.106.276.288.466.18.19.42.29t.502.099m2.285 0q.147 0 .267-.024.12-.023.227-.072.106-.048.206-.117.1-.07.207-.16l.061.157q.042.105.104.138a.4.4 0 0 0 .184.033h.393v-1.792q0-.246-.078-.454a1.009 1.009 0 0 0-.577-.593 1.2 1.2 0 0 0-.468-.084q-.362 0-.68.112a1.7 1.7 0 0 0-.576.341l.155.269a.3.3 0 0 0 .098.106.26.26 0 0 0 .15.043.4.4 0 0 0 .172-.033 3 3 0 0 0 .148-.075.781.781 0 0 1 .422-.108q.191 0 .295.112t.103.364v.122q-.492.01-.816.1a1.7 1.7 0 0 0-.514.22.716.716 0 0 0-.346.604q0 .194.061.341.06.148.173.248a.74.74 0 0 0 .272.15q.16.052.357.052m.271-.567a.4.4 0 0 1-.235-.06q-.08-.06-.08-.206 0-.075.037-.138a.3.3 0 0 1 .134-.114q.098-.049.263-.083.166-.032.423-.044v.399a.9.9 0 0 1-.251.188.7.7 0 0 1-.29.058m2.744.567q.294 0 .519-.072t.379-.202a.8.8 0 0 0 .23-.31 1 1 0 0 0 .078-.393.654.654 0 0 0-.207-.51 1 1 0 0 0-.213-.147q-.119-.06-.244-.103a5 5 0 0 0-.243-.08 2 2 0 0 1-.213-.077.5.5 0 0 1-.15-.092.17.17 0 0 1-.057-.133.2.2 0 0 1 .087-.173.43.43 0 0 1 .25-.062.7.7 0 0 1 .202.026q.089.026.159.057l.131.056q.061.027.122.027.058 0 .096-.022a.2.2 0 0 0 .07-.075l.194-.302a1 1 0 0 0-.186-.148 1.3 1.3 0 0 0-.232-.117 1.5 1.5 0 0 0-.573-.105q-.285 0-.498.073-.212.073-.354.198a.8.8 0 0 0-.211.289.9.9 0 0 0-.07.347q0 .197.057.335.06.138.153.233a.8.8 0 0 0 .214.158q.12.063.245.107.124.044.244.078.12.035.215.075a.5.5 0 0 1 .152.096.19.19 0 0 1 .058.14.23.23 0 0 1-.08.172.3.3 0 0 1-.11.057.6.6 0 0 1-.17.02.7.7 0 0 1-.233-.033 1 1 0 0 1-.162-.071l-.129-.072a.3.3 0 0 0-.134-.034.24.24 0 0 0-.13.032.3.3 0 0 0-.086.087l-.199.316q.083.075.2.14.115.064.253.111.136.048.283.075.147.028.293.028m2.683 0q.221 0 .43-.062.206-.063.373-.187l-.26-.407a.2.2 0 0 0-.049-.057.1.1 0 0 0-.062-.018.1.1 0 0 0-.049.01l-.044.022a.274.274 0 0 1-.134.032.16.16 0 0 1-.14-.065.27.27 0 0 1-.048-.164v-1.425h.697v-.586h-.697v-.839h-.448q-.155 0-.188.133l-.169.7-.456.089v.334q0 .084.047.126.047.043.113.043h.243v1.483q0 .19.056.345a.7.7 0 0 0 .162.265q.105.109.262.168t.361.06m2.473 0q.146 0 .309-.021a1.7 1.7 0 0 0 .323-.075q.162-.053.316-.15.153-.094.286-.247l-.249-.307a.18.18 0 0 0-.155-.074.3.3 0 0 0-.148.036l-.155.08q-.084.044-.192.08a.8.8 0 0 1-.257.036.65.65 0 0 1-.457-.162q-.177-.161-.218-.521h1.654q.058 0 .095-.014a.12.12 0 0 0 .06-.05.3.3 0 0 0 .03-.097 1.517 1.517 0 0 0-.087-.712 1.2 1.2 0 0 0-.265-.413 1.1 1.1 0 0 0-.407-.258 1.5 1.5 0 0 0-.521-.088q-.33 0-.591.113a1.3 1.3 0 0 0-.445.307q-.184.195-.283.451a1.5 1.5 0 0 0-.098.545q0 .382.115.67.114.287.313.48a1.3 1.3 0 0 0 .462.293q.264.098.565.098m.482-1.823h-1.07q.044-.263.182-.403a.52.52 0 0 1 .384-.14q.138 0 .235.048a.44.44 0 0 1 .242.296q.027.096.027.199m2.118 1.778v-1.759q.195-.36.532-.36.096 0 .16.013t.11.013a.15.15 0 0 0 .09-.024q.032-.024.043-.082l.111-.63a.5.5 0 0 0-.315-.094.72.72 0 0 0-.43.14q-.195.142-.353.385l-.047-.268a1 1 0 0 0-.026-.094.15.15 0 0 0-.045-.062.2.2 0 0 0-.072-.035.4.4 0 0 0-.106-.011h-.51v2.868z"}))))}},15529(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M29.786 3S7.605 5.374 7.605 12.286c0 5.865 12.297 4.26 12.425 7.052.17 3.695-15.307 6.982-17.421 7.33-2.114.35-1.537 1.747-1.537 1.747s.192.698 1.601.767 25.613-3.85 24.147-11.59c-.347-1.826-2.626-3.002-6.15-3.421-3.522-.42-6.467-1.257-6.531-2.373s1.69-3.265 15.306-6.564c.576-.139 1.716-.498 1.536-1.397-.191-.977-.939-.767-1.195-.837"})))}},52742(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"nonzero"},o.createElement("path",{d:"M6.585 11.333a10.55 10.55 0 0 1 8.625-5.725v2.36h-3.18v1.58h3.18v1.785h1.58V9.548h3.178v-1.58H16.79v-2.36a10.56 10.56 0 0 1 8.64 5.725h1.747a12.185 12.185 0 0 0-22.354 0zM25.43 21.033a10.55 10.55 0 0 1-8.64 5.727V24.4h3.178v-1.577H16.79v-1.79h-1.58v1.784h-3.18v1.578h3.18v2.36a10.54 10.54 0 0 1-8.625-5.722H4.823a12.188 12.188 0 0 0 22.354 0z",opacity:.4}),o.createElement("path",{d:"M29.883 12.17H2.117C1.5 12.17 1 12.67 1 13.287v5.791c0 .617.5 1.117 1.117 1.117h27.766c.617 0 1.117-.5 1.117-1.117v-5.79c0-.618-.5-1.118-1.117-1.118m-16.212 1.117h4.658v5.791H13.67zm-1.117 5.791h-4.66v-5.79h4.66zm6.892-5.79h4.66v5.79h-4.66zm-17.33 0h4.661v5.79h-4.66zm27.767 5.79h-4.66v-5.79h4.66z"}),o.createElement("path",{d:"M2.896 13.957h3.088v4.364H2.896zM14.436 13.957h3.088v4.364h-3.088zM25.977 13.957h3.088v4.364h-3.088z",opacity:.4}))))}},68402(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M21.607 1.22a8.8 8.8 0 0 1 4.003.958.627.627 0 0 1 .163.994l-3.86 3.957v2.63h2.448l3.956-3.943a.623.623 0 0 1 .998.158 8.74 8.74 0 0 1-.177 8.315l-.775-.774-.126-.115-.133-.102a1.875 1.875 0 0 0-2.392.217l-.712.711v-.851l-.006-.147a1.875 1.875 0 0 0-1.869-1.728h-2.25l-.147.006-.15.017A1.876 1.876 0 0 0 19 13.375v.852l-.713-.712-.126-.116a1.874 1.874 0 0 0-2.528.119l-2.118 2.118-.116.126-.101.133a1.876 1.876 0 0 0 .214 2.39l.715.715h-.852l-.147.006a1.875 1.875 0 0 0-1.728 1.869v2.25l.006.147.017.15c.041.255.133.493.266.703L6 29.915c-.59.59-1.374.914-2.208.914a3.1 3.1 0 0 1-2.207-.915 3.1 3.1 0 0 1-.913-2.211 3.12 3.12 0 0 1 .92-2.207l11.97-11.96c-1.475-3.294-.767-7.162 1.825-9.754a8.73 8.73 0 0 1 6.22-2.561"}),o.createElement("path",{d:"M22 25c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3-1.346 3-3 3m8.625-4.5h-2.141c-.15-.593-.34-1.25-.584-1.748l1.524-1.525a.375.375 0 0 0 0-.53l-2.122-2.121a.374.374 0 0 0-.53 0L25.248 16.1c-.498-.243-1.156-.434-1.748-.583v-2.142a.375.375 0 0 0-.375-.375h-2.25a.375.375 0 0 0-.375.375v2.142c-.593.15-1.25.34-1.748.583l-1.525-1.524a.374.374 0 0 0-.53 0l-2.122 2.12a.375.375 0 0 0 0 .531l1.525 1.525c-.242.497-.434 1.155-.585 1.748h-2.14a.375.375 0 0 0-.375.375v2.25c0 .207.168.375.375.375h2.14c.151.593.343 1.252.585 1.748l-1.525 1.525a.375.375 0 0 0 0 .53l2.122 2.121c.14.141.39.141.53 0l1.524-1.524c.497.242 1.156.434 1.749.585v2.14c0 .207.168.375.375.375h2.25a.375.375 0 0 0 .375-.375v-2.14c.593-.151 1.251-.343 1.748-.585l1.525 1.524a.374.374 0 0 0 .53 0l2.121-2.12a.374.374 0 0 0 0-.531L27.9 25.248c.242-.496.434-1.155.584-1.748h2.141a.375.375 0 0 0 .375-.375v-2.25a.375.375 0 0 0-.375-.375"}))))}},76397(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.211 15.527 22.347 1.151a.58.58 0 0 1 .437-.15c.158.013.306.091.41.218l2.662 3.227a.64.64 0 0 1-.065.88L13.812 16.003l11.977 10.67c.253.225.282.62.066.882l-2.661 3.227a.59.59 0 0 1-.848.069L6.21 16.477a.638.638 0 0 1 0-.95"})))}},79288(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M1.308 7.038a.5.5 0 0 1 .544.106l3.901 3.873c3.58-1.088 6.973-1.64 10.09-1.64C25.476 9.377 31 14.667 31 23.891a.5.5 0 0 1-1 0c0-6.177-4.635-7.1-7.397-7.1-2.679 0-5.766.805-8.764 2.277l4.384 3.883a.5.5 0 0 1-.331.875H1.5a.5.5 0 0 1-.5-.5V7.5c0-.2.122-.383.308-.46"})))}},60411(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M24.543 11.395a1.443 1.443 0 0 0-2.053.07l-5.99 6.472-5.99-6.471a1.443 1.443 0 0 0-2.053-.071 1.455 1.455 0 0 0-.07 2.046l7.051 7.618a1.445 1.445 0 0 0 2.124 0l7.05-7.618c.543-.584.512-1.5-.069-2.046"})))}},41577(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M1.806 7.697a2.547 2.547 0 0 1 3.623.124L16 19.241 26.57 7.822a2.547 2.547 0 0 1 3.624-.126 2.567 2.567 0 0 1 .123 3.612L17.874 24.751a2.55 2.55 0 0 1-3.747 0L1.684 11.308a2.567 2.567 0 0 1 .122-3.611"})))}},51065(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M25.789 15.527 9.653 1.151A.58.58 0 0 0 9.216 1a.6.6 0 0 0-.41.218L6.144 4.446a.64.64 0 0 0 .065.88l11.979 10.676L6.21 26.672a.64.64 0 0 0-.066.882l2.661 3.227a.59.59 0 0 0 .848.069L25.79 16.477a.638.638 0 0 0 0-.95"})))}},18892(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M30.692 7.038a.5.5 0 0 0-.544.106l-3.901 3.873c-3.58-1.088-6.973-1.64-10.09-1.64C6.524 9.377 1 14.667 1 23.891a.5.5 0 0 0 1 0c0-6.177 4.635-7.1 7.397-7.1 2.679 0 5.766.805 8.764 2.277l-4.384 3.883a.5.5 0 0 0 .331.875H30.5a.5.5 0 0 0 .5-.5V7.5a.5.5 0 0 0-.308-.46"})))}},80515(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.113 7.853a2.86 2.86 0 0 0 0-4.02 2.79 2.79 0 0 0-3.977 0L1.816 14.26a3 3 0 0 0-.353.441c-.066.113-.066.113-.098.178l-.039.073a1.8 1.8 0 0 0-.195.48 2 2 0 0 0-.075.273c-.074.368-.074.75-.005 1.091.016.093.037.167.066.252l.031.107c.024.082.024.082.065.19.032.082.066.147.107.222l.04.072c.046.09.046.09.114.205q.15.225.35.431l10.312 10.42a2.79 2.79 0 0 0 3.977 0c.534-.54.824-1.262.824-2.01s-.29-1.47-.824-2.01l-5.511-5.57h17.585c1.553 0 2.813-1.272 2.813-2.841s-1.26-2.842-2.813-2.842H10.602z"})))}},72920(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M21.367 24.305a1.443 1.443 0 0 0-.07-2.053l-6.472-5.99 6.47-5.99a1.443 1.443 0 0 0 .072-2.053 1.455 1.455 0 0 0-2.046-.07L11.703 15.2a1.445 1.445 0 0 0 0 2.124l7.618 7.05c.584.543 1.5.512 2.046-.069"})))}},35986(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M24.875 30.194a2.567 2.567 0 0 1-3.612.122L7.82 17.873a2.55 2.55 0 0 1 0-3.747L21.264 1.683a2.567 2.567 0 0 1 3.611.123 2.547 2.547 0 0 1-.126 3.624L13.33 16l11.42 10.57a2.547 2.547 0 0 1 .125 3.624"})))}},52947(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M2.088 7h27.824a1.088 1.088 0 0 1 .816 1.808L16.816 24.575a1.088 1.088 0 0 1-1.632 0L1.272 8.808A1.088 1.088 0 0 1 2.088 7"})))}},29548(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M29.912 24.943H2.088a1.088 1.088 0 0 1-.816-1.808L15.184 7.368a1.09 1.09 0 0 1 1.536-.096l.05.047 13.958 15.816a1.088 1.088 0 0 1-.816 1.808"})))}},58573(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M10.5 8A1.5 1.5 0 0 1 12 9.5v14a1.5 1.5 0 0 1-3 0v-14A1.5 1.5 0 0 1 10.5 8m13.125.457a1.497 1.497 0 0 1-.068 2.053L17.41 16.5l6.149 5.99c.562.546.592 1.47.067 2.053-.52.581-1.39.612-1.945.07l-7.238-7.051A1.48 1.48 0 0 1 14 16.5c0-.403.16-.788.442-1.062l7.238-7.05a1.334 1.334 0 0 1 1.945.069"})))}},48601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M22.5 8A1.5 1.5 0 0 0 21 9.5v14a1.5 1.5 0 0 0 3 0v-14A1.5 1.5 0 0 0 22.5 8m-13.125.457a1.497 1.497 0 0 0 .068 2.053l6.148 5.99-6.149 5.99a1.497 1.497 0 0 0-.067 2.053c.52.581 1.39.612 1.945.07l7.238-7.051c.282-.274.442-.659.442-1.062s-.16-.788-.442-1.062l-7.238-7.05a1.334 1.334 0 0 0-1.945.069"})))}},18194(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M23.99 16.492a2.7 2.7 0 0 1 3.819 0 2.7 2.7 0 0 1 0 3.817l-9.905 9.907a3 3 0 0 1-.42.34l-.238.131a2 2 0 0 1-.214.107l-.118.044-.316.094-.067.015c-.35.07-.712.07-1.037.004l-.122-.027-.325-.1-.075-.028-.107-.049-.366-.202a3 3 0 0 1-.41-.336l-9.898-9.9A2.698 2.698 0 0 1 6.1 15.7c.71 0 1.397.279 1.909.791l5.291 5.291V3.7a2.7 2.7 0 0 1 5.4 0v18.082z"})))}},38425(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M15.508 7.61a2.7 2.7 0 0 0 0-3.819 2.7 2.7 0 0 0-3.817 0l-9.907 9.906a3 3 0 0 0-.34.42l-.131.237a2 2 0 0 0-.107.214l-.044.119-.094.315-.015.068c-.07.35-.07.712-.004 1.036l.027.123.1.324.028.076.049.107.163.3.04.066q.143.213.335.41l9.9 9.897A2.698 2.698 0 0 0 16.3 25.5c0-.71-.279-1.396-.791-1.909l-5.291-5.29H28.3a2.7 2.7 0 0 0 0-5.4H10.218z"})))}},41924(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.492 7.61a2.7 2.7 0 0 1 0-3.819 2.7 2.7 0 0 1 3.817 0l9.907 9.906c.122.124.232.259.34.42l.131.237c.044.077.076.139.107.214l.044.119.094.315.015.068c.07.35.07.712.004 1.036l-.027.123-.1.324-.028.076-.049.107-.163.3-.04.066a3 3 0 0 1-.335.41l-9.9 9.897A2.698 2.698 0 0 1 15.7 25.5c0-.71.279-1.396.791-1.909l5.291-5.29H3.7a2.7 2.7 0 0 1 0-5.4h18.082z"})))}},55777(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M23.99 15.508a2.7 2.7 0 0 0 3.819 0 2.7 2.7 0 0 0 0-3.817l-9.905-9.907a3 3 0 0 0-.42-.34l-.238-.131a2 2 0 0 0-.214-.107l-.118-.044-.316-.094-.067-.015c-.35-.07-.712-.07-1.037-.004l-.122.027-.325.1-.075.028-.107.049-.366.202a3 3 0 0 0-.41.336l-9.898 9.9A2.698 2.698 0 0 0 6.1 16.3c.71 0 1.397-.279 1.909-.791l5.291-5.291V28.3a2.7 2.7 0 0 0 5.4 0V10.218z"})))}},1056(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M15.887 7.853a2.86 2.86 0 0 1 0-4.02 2.79 2.79 0 0 1 3.977 0l10.32 10.427c.126.13.241.272.353.441.066.113.066.113.098.178l.039.073a1.8 1.8 0 0 1 .195.48c.043.133.064.206.075.273.074.368.074.75.005 1.091a1.5 1.5 0 0 1-.066.252l-.031.107c-.024.082-.024.082-.065.19-.032.082-.066.147-.107.222l-.04.072c-.046.09-.046.09-.114.205q-.15.225-.35.431l-10.312 10.42a2.79 2.79 0 0 1-3.977 0 2.85 2.85 0 0 1-.824-2.01c0-.748.29-1.47.824-2.01l5.511-5.57H3.813C2.26 19.106 1 17.834 1 16.265s1.26-2.842 2.813-2.842h17.585z"})))}},52379(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M11.633 8.218a1.443 1.443 0 0 0 .07 2.054l6.472 5.99-6.47 5.99a1.443 1.443 0 0 0-.072 2.053c.546.58 1.461.612 2.046.07l7.618-7.051a1.445 1.445 0 0 0 0-2.124L13.68 8.15a1.455 1.455 0 0 0-2.046.068"})))}},27433(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M7.697 30.194a2.547 2.547 0 0 1 .124-3.623L19.241 16 7.822 5.43a2.547 2.547 0 0 1-.126-3.624 2.567 2.567 0 0 1 3.612-.123l13.443 12.443a2.55 2.55 0 0 1 0 3.747L11.308 30.316a2.567 2.567 0 0 1-3.611-.122"})))}},39436(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M24.543 21.13a1.443 1.443 0 0 1-2.053-.071l-5.99-6.472-5.99 6.47a1.443 1.443 0 0 1-2.053.072 1.455 1.455 0 0 1-.07-2.046l7.051-7.618a1.445 1.445 0 0 1 2.124 0l7.05 7.618c.543.584.512 1.5-.069 2.046"})))}},73126(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M30.194 24.875a2.547 2.547 0 0 1-3.623-.125L16 13.33 5.43 24.75a2.547 2.547 0 0 1-3.624.125 2.567 2.567 0 0 1-.123-3.611L14.126 7.82a2.55 2.55 0 0 1 3.747 0l12.443 13.443a2.567 2.567 0 0 1-.122 3.612"})))}},97874(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m7.781 12.024 9.153 9.153.001 7.128a.47.47 0 0 1-.226.4l-.074.038a.513.513 0 0 1-.54-.087l-8.486-7.512H1v-8.593h6.229zm18.44-4.53C29.128 9.796 31 13.398 31 16.722c0 2.478-1.044 5.115-2.782 7.251l-2.046-2.046c1.196-1.59 1.908-3.473 1.908-5.205 0-2.49-1.463-5.285-3.716-7.068a1.36 1.36 0 0 1-.196-1.974 1.505 1.505 0 0 1 2.052-.188m-3.903 3.343c2.202 1.535 3.435 3.63 3.435 5.885 0 1.288-.402 2.523-1.156 3.632l-2.103-2.103q.338-.725.339-1.529c0-1.385-.765-2.598-2.233-3.62a1.363 1.363 0 0 1-.32-1.956c.473-.625 1.387-.763 2.038-.309m-6.236-6.699a.52.52 0 0 1 .545-.102.48.48 0 0 1 .308.441l-.001 8.215-4.802-4.802Z"}),o.createElement("path",{d:"M2.338 4.459 27.54 29.662a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.005-2.126L4.46 2.338a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},1429(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"m16.082 4.138-8.853 8.413H1v8.593h6.609l8.486 7.512a.51.51 0 0 0 .54.087.48.48 0 0 0 .3-.438V4.477a.48.48 0 0 0-.308-.441.52.52 0 0 0-.545.102M26.22 7.493C29.13 9.797 31 13.4 31 16.723c0 3.316-1.87 6.919-4.773 9.223a1.5 1.5 0 0 1-.934.325c-.436 0-.848-.185-1.126-.508a1.36 1.36 0 0 1 .194-1.97c2.255-1.791 3.72-4.587 3.72-7.07 0-2.49-1.464-5.285-3.717-7.068a1.36 1.36 0 0 1-.196-1.974 1.505 1.505 0 0 1 2.052-.188m-3.902 3.344c2.202 1.535 3.435 3.63 3.435 5.885 0 2.258-1.233 4.353-3.438 5.89-.25.172-.548.264-.854.264a1.48 1.48 0 0 1-1.182-.577 1.364 1.364 0 0 1 .323-1.956c1.466-1.02 2.23-2.233 2.23-3.62 0-1.386-.764-2.599-2.232-3.622a1.363 1.363 0 0 1-.32-1.955c.473-.625 1.387-.763 2.038-.309"})))}},77862(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M10 1a2 2 0 0 1 1.995 1.85L12 3v3.4H6.5v9.936l5.5-.001v12.522a2 2 0 0 1-1.85 1.995l-.15.005H3a2 2 0 0 1-1.995-1.85L1 28.856V3a2 2 0 0 1 1.85-1.995L3 1zm12.19 15.76c.448.52 1.083.844 1.765.922a2.627 2.627 0 0 0 2.046 2.355L26 28.856a2 2 0 0 1-1.85 1.995l-.15.005h-7a2 2 0 0 1-1.995-1.85l-.005-.15V18.41l4.02 3.605c.308.277.694.441 1.098.478l.173.008c.259 0 .518-.051.762-.159a1.88 1.88 0 0 0 1.137-1.726Z"}),o.createElement("path",{d:"M20.01 1.111a.41.41 0 0 1 .434-.082c.15.06.246.2.246.356v19.23a.38.38 0 0 1-.24.353.405.405 0 0 1-.43-.07l-6.757-6.062H8V7.9h4.96Zm7.288 2.543C29.551 5.487 31 8.354 31 11c0 2.64-1.449 5.507-3.697 7.341-.203.168-.459.259-.723.259-.338 0-.657-.147-.873-.404a1.103 1.103 0 0 1 .151-1.569c1.746-1.425 2.88-3.65 2.88-5.627 0-1.982-1.133-4.206-2.878-5.626a1.104 1.104 0 0 1-.151-1.571 1.144 1.144 0 0 1 1.589-.15m-2.311 3.155c1.82 1.197 2.84 2.832 2.84 4.59 0 1.762-1.02 3.396-2.843 4.595a1.3 1.3 0 0 1-.706.206c-.387 0-.75-.166-.979-.45-.391-.488-.271-1.171.268-1.526 1.213-.795 1.845-1.742 1.845-2.824 0-1.08-.632-2.027-1.847-2.825-.538-.356-.657-1.04-.265-1.525.392-.488 1.148-.596 1.687-.241"}))))}},42704(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.498 7.062a2 2 0 0 1 1.495 1.775L15 9v19.857a2 2 0 0 1-1.85 1.995l-.15.005H6a2 2 0 0 1-1.995-1.85L4 28.856V14.5h4.304a2.564 2.564 0 0 0 2.557-2.403l.006-.162V9.797l1.932-1.414a1.71 1.71 0 0 0 .693-1.213zm5.002 8.931a1.7 1.7 0 0 0 .701 1.39l1.932 1.414v2.138a2.564 2.564 0 0 0 2.563 2.565H28v5.357a2 2 0 0 1-1.85 1.995l-.15.005h-7a2 2 0 0 1-1.995-1.85l-.005-.15V17.93a2 2 0 0 1 1.422-1.916Z"}),o.createElement("path",{d:"M9.367 4.964v-2.9C9.367 1.479 8.89 1 8.304 1H2.062C1.477 1 1 1.477 1 2.065v9.87C1 12.522 1.476 13 2.062 13h6.242c.586 0 1.063-.477 1.063-1.065V9.036l2.546-1.863a.214.214 0 0 0 0-.345zM22.633 13.964l-2.546 1.863a.214.214 0 0 0 0 .346l2.546 1.863v2.9c0 .587.477 1.064 1.063 1.064h6.242c.586 0 1.062-.478 1.062-1.065v-9.87c0-.588-.477-1.065-1.062-1.065h-6.242c-.587 0-1.063.478-1.063 1.065z"}))))}},56845(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m15.048 12.525-1.903 2.437L9.268 10H3.5a1.5 1.5 0 0 1 0-3h7.232zm3.807 4.873L23.232 23H29a1.5 1.5 0 0 1 0 3h-7.232l-4.816-6.165z"}),o.createElement("path",{d:"M22.732 10H28.5a1.5 1.5 0 0 0 0-3h-7.232l-12.5 16H3a1.5 1.5 0 0 0 0 3h7.232z"}))))}},60019(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M28.958 5H3.042C1.912 5 1 5.942 1 7.1l.006.156C1.083 8.341 1.963 9.2 3.042 9.2H13.93v12.6H3.041C1.913 21.8 1 22.742 1 23.9S1.912 26 3.042 26h25.916c1.13 0 2.042-.942 2.042-2.1l-.006-.156c-.077-1.085-.957-1.944-2.036-1.944H18.07V9.2h10.89C30.087 9.2 31 8.258 31 7.1S30.088 5 28.958 5"})))}},54693(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M27.851 14.472c-.494-2.058-1.758-4.116-3.487-5.55a1.47 1.47 0 0 1-.196-2.067 1.457 1.457 0 0 1 2.052-.196C29.13 9.07 31 12.844 31 16.325q0 .607-.075 1.22zM23.5 17.053l-1.13 1.129q.462-.87.464-1.857c0-1.451-.765-2.721-2.233-3.793a1.47 1.47 0 0 1-.32-2.047 1.456 1.456 0 0 1 2.038-.324c1.765 1.289 2.907 2.954 3.291 4.781zm-15.89 3.903H1v-9h6.229l8.853-8.811a.5.5 0 0 1 .853.355v20.116l-1.445 1.445-.6 2.645z"}),o.createElement("path",{d:"m16.435 25.973 3.894 3.504L15 31l.814-2.852zm7.064-7.506 4.033 4.034-6.344 6.344-4.246-3.822zM26.965 15 31 19.034l-2.727 2.728-4.034-4.034z"}))))}},59429(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16.082 3.145a.5.5 0 0 1 .853.355v24.956a.5.5 0 0 1-.84.367l-8.486-7.867H1v-9h6.229Zm6.236 7.016c1.573 1.148 2.651 2.596 3.139 4.19L22.81 16.74q.022-.205.022-.414c0-1.451-.765-2.721-2.233-3.793a1.47 1.47 0 0 1-.32-2.047 1.456 1.456 0 0 1 2.038-.324m3.902-3.502c2.122 1.759 3.691 4.242 4.385 6.808a4.4 4.4 0 0 0-3.17-.3 10.75 10.75 0 0 0-3.07-4.244 1.47 1.47 0 0 1-.197-2.068 1.457 1.457 0 0 1 2.052-.196"}),o.createElement("path",{d:"M30.225 19.069 25.87 23l4.36 3.935a2.32 2.32 0 0 1 .113 3.345 2.38 2.38 0 0 1-3.299.108l-6.272-5.66A2.33 2.33 0 0 1 20 23c0-.66.281-1.287.772-1.729l6.273-5.66a2.38 2.38 0 0 1 3.3.113 2.32 2.32 0 0 1-.12 3.345"}))))}},40328(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28.073 16.633q.007-.155.007-.308c0-2.608-1.463-5.534-3.716-7.402a1.47 1.47 0 0 1-.196-2.068 1.457 1.457 0 0 1 2.052-.196C29.13 9.07 31 12.844 31 16.325c0 .87-.118 1.76-.34 2.642zm-2.777-2.507a4.37 4.37 0 0 0-3.976-1 8 8 0 0 0-.72-.594 1.47 1.47 0 0 1-.32-2.047 1.456 1.456 0 0 1 2.038-.324c1.536 1.121 2.6 2.528 3.104 4.078zM16.082 3.145a.5.5 0 0 1 .853.355v24.956a.5.5 0 0 1-.84.367l-8.486-7.867H1v-9h6.229z"}),o.createElement("path",{d:"M20.775 19.069a2.32 2.32 0 0 1-.12-3.345 2.38 2.38 0 0 1 3.3-.113l6.273 5.66a2.325 2.325 0 0 1 .002 3.456l-6.273 5.661a2.38 2.38 0 0 1-3.299-.108 2.32 2.32 0 0 1 .114-3.345L25.132 23z"}))))}},37553(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M26.932 20.775 23 25.131l-3.934-4.36a2.32 2.32 0 0 0-3.346-.113 2.38 2.38 0 0 0-.108 3.3l5.661 6.272c.44.49 1.068.77 1.727.77.66 0 1.287-.28 1.73-.772l5.66-6.272a2.38 2.38 0 0 0-.113-3.301 2.32 2.32 0 0 0-3.345.12"}),o.createElement("path",{fillOpacity:.4,d:"M16.082 2.82a.5.5 0 0 1 .853.355v14.844a4.3 4.3 0 0 0-2.607 1.203 4.38 4.38 0 0 0-.199 6.077l2.755 3.051a.498.498 0 0 1-.789.148L7.609 20.63H1v-9h6.229Zm6.236 7.016c2.202 1.607 3.435 3.802 3.435 6.164 0 2.21-1.079 4.273-3.022 5.847l-1.966-2.178.063-.048c1.318-1.032 2.005-2.245 2.005-3.621 0-1.451-.765-2.721-2.233-3.793a1.47 1.47 0 0 1-.32-2.047 1.456 1.456 0 0 1 2.038-.324m3.902-3.502C29.13 8.746 31 12.519 31 16c0 .826-.106 1.669-.306 2.506a4.3 4.3 0 0 0-2.905-.417c.19-.701.291-1.406.291-2.089 0-2.608-1.463-5.534-3.716-7.402a1.47 1.47 0 0 1-.196-2.068 1.457 1.457 0 0 1 2.052-.196"}))))}},34088(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30 1a1 1 0 0 1 1 1v22.36A3.98 3.98 0 0 0 28 23a4 4 0 0 0-3.001 1.355L25 2a1 1 0 0 1 1-1ZM6 1a1 1 0 0 1 1 1v13.36A3.98 3.98 0 0 0 4 14a4 4 0 0 0-3.002 1.356L1 2a1 1 0 0 1 1-1Zm16 0a1 1 0 0 1 1 1v8.36A3.98 3.98 0 0 0 20 9a4 4 0 0 0-3.001 1.355L17 2a1 1 0 0 1 1-1Z"}),o.createElement("path",{d:"M28 24a3 3 0 0 0-2.995 2.824L25 27v3l.007.117a1 1 0 0 0 .876.876L26 31h4l.117-.007a1 1 0 0 0 .876-.876L31 30v-3l-.005-.176A3 3 0 0 0 28 24m-8-14a3 3 0 0 0-2.995 2.824L17 13v17l.007.117a1 1 0 0 0 .876.876L18 31h4l.117-.007a1 1 0 0 0 .876-.876L23 30V13l-.005-.176A3 3 0 0 0 20 10m-8-9a3 3 0 0 0-2.995 2.824L9 4v26l.007.117a1 1 0 0 0 .876.876L10 31h4l.117-.007a1 1 0 0 0 .876-.876L15 30V4l-.005-.176A3 3 0 0 0 12 1M4 15a3 3 0 0 0-2.995 2.824L1 18v12l.007.117a1 1 0 0 0 .876.876L2 31h4l.117-.007a1 1 0 0 0 .876-.876L7 30V18l-.005-.176A3 3 0 0 0 4 15"}))))}},20371(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m23.743 1-.001 11.5h-1.263V7.303l-12.635 5.17v14.105C9.844 28.934 7.78 31 5.422 31A4.427 4.427 0 0 1 1 26.578a4.43 4.43 0 0 1 4.422-4.422h3.159V7.202z"}),o.createElement("path",{d:"M29 14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H16a2 2 0 0 1-2-2V16a2 2 0 0 1 2-2Zm-4.274 2h-2.425L18 19.397l.928 1.16q.096.116.29.218t.44.102a.95.95 0 0 0 .597-.214l1.563-1.221q-.03.525-.029 1.007v6.554h-2.652V29H27v-1.997h-2.274z"}))))}},75773(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16.082 2.82a.5.5 0 0 1 .853.355v13.324L15.5 16.5a3 3 0 0 0-2.995 2.824l-.005.176c0 1.044.533 1.963 1.342 2.5a2.99 2.99 0 0 0-1.246 3.254l-4.987-4.623H1v-9h6.229ZM26.22 6.334C29.13 8.746 31 12.519 31 16q0 .437-.039.88a3 3 0 0 0-1.461-.38h-1.437a7 7 0 0 0 .017-.5c0-2.608-1.463-5.534-3.716-7.402a1.47 1.47 0 0 1-.196-2.068 1.457 1.457 0 0 1 2.052-.196m-3.902 3.502c2.202 1.607 3.435 3.802 3.435 6.164q0 .25-.019.5h-2.932q.03-.247.03-.5c0-1.451-.764-2.721-2.232-3.793a1.47 1.47 0 0 1-.32-2.047 1.456 1.456 0 0 1 2.038-.324"}),o.createElement("path",{d:"M29.5 31h-14a1.5 1.5 0 0 1 0-3h14a1.5 1.5 0 0 1 0 3m0-5h-14a1.5 1.5 0 0 1 0-3h14a1.5 1.5 0 0 1 0 3m0-5h-14a1.5 1.5 0 0 1 0-3h14a1.5 1.5 0 0 1 0 3"}))))}},2807(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m16.532 4.009.095.027a.48.48 0 0 1 .308.441v14.878A7.47 7.47 0 0 0 12 17.5a7.5 7.5 0 0 0-6.432 3.644H1v-8.593h6.229l8.853-8.413a.52.52 0 0 1 .545-.102Zm9.688 3.484C29.13 9.797 31 13.4 31 16.723c0 1.04-.184 2.107-.526 3.155a7.5 7.5 0 0 0-2.536-1.78q.142-.697.142-1.375c0-2.49-1.463-5.285-3.716-7.068a1.36 1.36 0 0 1-.196-1.974 1.505 1.505 0 0 1 2.052-.188m-3.902 3.344c2.202 1.535 3.435 3.63 3.435 5.885q0 .41-.054.81a7.478 7.478 0 0 0-3.059.347 3.5 3.5 0 0 0 .193-1.157c0-1.385-.765-2.598-2.233-3.62a1.363 1.363 0 0 1-.32-1.956c.473-.625 1.387-.763 2.038-.309"}),o.createElement("path",{d:"M25 28.5V28c1.654 0 3-1.346 3-3s-1.346-3-3-3-3 1.346-3 3 1.346 3 3 3zm-13 0V28c1.654 0 3-1.346 3-3s-1.346-3-3-3-3 1.346-3 3 1.346 3 3 3zm7-3.5c0-3.31 2.69-6 6-6s6 2.69 6 6-2.69 6-6 6H12c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6c0 1.07-.283 2.1-.805 3h2.61A5.97 5.97 0 0 1 19 25"}))))}},50737(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29 1a2 2 0 0 1 2 2v8a2 2 0 0 1-1.256 1.857A11.98 11.98 0 0 0 20.5 8.5a11.98 11.98 0 0 0-9.363 4.5H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2z"}),o.createElement("path",{d:"M9.836 15A11.9 11.9 0 0 0 8.5 20.5c0 4.514 2.503 8.453 6.195 10.501L3 31a2 2 0 0 1-2-2V17a2 2 0 0 1 2-2ZM31 26.305 31 29a2 2 0 0 1-2 2h-2.695A12.1 12.1 0 0 0 31 26.306"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m.137 5.318c-.682 0-1.234.553-1.234 1.235v2.985h-2.987a1.235 1.235 0 0 0 0 2.47h2.987v2.985a1.234 1.234 0 1 0 2.468 0v-2.986h2.986a1.235 1.235 0 0 0 0-2.469H21.87v-2.985c0-.682-.552-1.235-1.234-1.235"}))))}},5463(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M31 26.305V29a2 2 0 0 1-2 2h-2.695A12.1 12.1 0 0 0 31 26.306M29 1a2 2 0 0 1 2 2v11.695C28.953 11.004 25.015 8.5 20.5 8.5q-.763 0-1.5.093V3a2 2 0 0 1 2-2z"}),o.createElement("path",{d:"M15 1a2 2 0 0 1 2 2v6.02c-4.916 1.5-8.5 6.078-8.5 11.48 0 4.514 2.503 8.453 6.195 10.501L3 31a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m.137 5.318c-.682 0-1.234.553-1.234 1.235v2.985h-2.987a1.235 1.235 0 0 0 0 2.47h2.987v2.985a1.234 1.234 0 1 0 2.468 0v-2.986h2.986a1.235 1.235 0 0 0 0-2.469H21.87v-2.985c0-.682-.552-1.235-1.234-1.235"}))))}},9716(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16.082 3.145a.5.5 0 0 1 .853.355V19A4 4 0 0 0 17 27l-.065-.002v1.458a.5.5 0 0 1-.226.418l-.074.04a.5.5 0 0 1-.54-.091l-8.486-7.867H1v-9h6.229ZM26.22 6.659C29.13 9.07 31 12.844 31 16.325c0 .987-.151 1.998-.434 2.995A4 4 0 0 0 29 19h-1.389c.304-.893.47-1.803.47-2.675 0-2.608-1.464-5.534-3.717-7.402a1.47 1.47 0 0 1-.196-2.068 1.457 1.457 0 0 1 2.052-.196m-3.902 3.502c1.343.98 2.326 2.18 2.888 3.501A4 4 0 0 0 23 13c-.534 0-1.043.105-1.508.294a7 7 0 0 0-.892-.762 1.47 1.47 0 0 1-.32-2.047 1.456 1.456 0 0 1 2.038-.324"}),o.createElement("path",{d:"M25 29v-4h4a2 2 0 1 0 0-4h-4v-4a2 2 0 1 0-4 0v4h-4a2 2 0 1 0 0 4h4v4a2 2 0 1 0 4 0"}))))}},43889(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m23.743 1-.001 11.5h-1.263V7.303l-12.635 5.17v14.105C9.844 28.934 7.78 31 5.422 31A4.427 4.427 0 0 1 1 26.578a4.43 4.43 0 0 1 4.422-4.422h3.159V7.202z"}),o.createElement("path",{d:"M29 14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H16a2 2 0 0 1-2-2V16a2 2 0 0 1 2-2Zm-6.29 2q-.878 0-1.643.234t-1.358.71a4 4 0 0 0-.993 1.192q-.399.714-.54 1.677l1.441.256a3 3 0 0 0 .396.035q.369 0 .584-.177.215-.176.356-.573.088-.239.233-.442t.347-.353a1.7 1.7 0 0 1 1.02-.326q.746 0 1.112.41.364.411.364 1.178 0 .468-.114.887a4 4 0 0 1-.343.839q-.228.42-.58.852-.352.431-.826.909l-3.691 3.733a1.3 1.3 0 0 0-.37.53q-.105.29-.105.546V29h9v-1.589q0-.397-.255-.64-.255-.242-.694-.242h-2.39q-.414 0-.884.084-.47.083-.954.225l2.505-2.577q.51-.52.963-1.028.451-.508.795-1.05.343-.544.54-1.144.198-.6.198-1.306 0-.82-.285-1.505a3.3 3.3 0 0 0-.822-1.178 3.8 3.8 0 0 0-1.297-.772A5 5 0 0 0 22.71 16"}))))}},84584(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M8.055 13H3.448C2.648 13 2 12.328 2 11.5S2.648 10 3.448 10h6.014L16 18.607 22.538 10h6.014c.8 0 1.448.672 1.448 1.5s-.648 1.5-1.448 1.5h-4.607l-6.427 8.461a2 2 0 0 1-.324.336 1.887 1.887 0 0 1-2.712-.336z"})))}},19532(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m24.492 17.999.023-.16c-.564 4.664-4.789 7.987-9.437 7.422a8.49 8.49 0 0 1-7.319-6.908L7.701 18zM17.032 1a8.5 8.5 0 0 1 1.872.422v3.27a.935.935 0 0 0 1.864.108l.006-.109.001-2.344A8.3 8.3 0 0 1 24.34 7.55h-3.566a.935.935 0 0 0-.109 1.864l.11.006h3.741v1.871h-3.742a.935.935 0 0 0-.109 1.865l.11.006h3.741v1.943q0 .438-.045.864H7.723a8 8 0 0 1-.046-.864V13.16h3.742a.935.935 0 0 0 .11-1.864l-.11-.007H7.677V9.42h3.742a.935.935 0 0 0 .11-1.865l-.11-.007H7.854a8.3 8.3 0 0 1 3.565-5.201V4.69a.935.935 0 0 0 1.865.11l.006-.11v-3.27A8.5 8.5 0 0 1 15.163 1v3.691a.935.935 0 0 0 1.864.11l.006-.11z"}),o.createElement("path",{fillOpacity:.4,d:"M5.864 18c.539 5.08 4.773 9.057 9.963 9.19l.27.004c5.312 0 9.684-4.026 10.232-9.193h2.82C28.642 24.087 23.975 28.992 18 29.863L18 30a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-.167C8.117 28.886 3.545 24.022 3.045 18zm-1.46-4.839c.774 0 1.402.629 1.402 1.404V16H3v-1.435c0-.775.628-1.404 1.403-1.404m23.386 0c.775 0 1.404.629 1.404 1.404L29.193 16h-2.806v-1.435c0-.775.628-1.404 1.403-1.404"}))))}},42632(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.863 1c.284 0 .556.113.757.313l7.267 7.267A12 12 0 0 0 20.5 8.5c-6.62 0-12 5.382-12 12q0 .704.08 1.387L1.313 14.62A1.07 1.07 0 0 1 1 13.863V3.14A2.14 2.14 0 0 1 3.14 1zM7.165 6.955a2.206 2.206 0 1 0 3.12 3.12 2.206 2.206 0 0 0-3.12-3.12"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 4.1c-.722 0-1.308.586-1.308 1.308v3.784h-3.785a1.308 1.308 0 0 0 0 2.616h3.785v3.784a1.307 1.307 0 1 0 2.616 0v-3.784h3.784a1.308 1.308 0 0 0 0-2.616h-3.784v-3.784c0-.722-.586-1.307-1.308-1.307"}))))}},73315(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.863 1c.284 0 .556.113.757.313L30.847 17.54a.522.522 0 0 1-.26.882l-1.01.215a30 30 0 0 0-2.292-1.902C23.745 14.093 19.947 12.5 16 12.5s-7.745 1.593-11.284 4.235q-.37.278-.726.56L1.313 14.62A1.07 1.07 0 0 1 1 13.863V3.14A2.14 2.14 0 0 1 3.14 1zM7.165 6.955a2.206 2.206 0 1 0 3.12 3.12 2.206 2.206 0 0 0-3.12-3.12"}),o.createElement("path",{d:"M16 14c8.149 0 14.595 7.792 14.865 8.122.18.223.18.533 0 .756C30.595 23.208 24.149 31 16 31c-8.148 0-14.595-7.792-14.865-8.122a.596.596 0 0 1 0-.756C1.405 21.792 7.853 14 16 14m0 2.793c-3.24 0-5.875 2.559-5.875 5.707s2.634 5.707 5.875 5.707 5.875-2.559 5.875-5.707-2.634-5.707-5.875-5.707m0 1.457c2.413 0 4.375 1.906 4.375 4.25S18.413 26.75 16 26.75c-2.412 0-4.375-1.906-4.375-4.25s1.963-4.25 4.375-4.25"}))))}},37815(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M1.313 14.62A1.07 1.07 0 0 1 1 13.863V3.14A2.14 2.14 0 0 1 3.14 1h10.723c.284 0 .556.113.757.313L30.847 17.54a.522.522 0 0 1-.26.882l-10.02 2.146-2.145 10.019a.524.524 0 0 1-.882.26zm8.971-4.546a2.206 2.206 0 1 0-3.119-3.12 2.206 2.206 0 0 0 3.12 3.12"})))}},92610(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.02 1a1 1 0 0 1 .707.293L27.455 15.02a3.3 3.3 0 0 0-.547.442L23.5 18.87l-3.41-3.41a3.273 3.273 0 0 0-4.633.002 3.273 3.273 0 0 0 .002 4.628l3.41 3.41-3.41 3.41a3.3 3.3 0 0 0-.44.545L1.294 13.727A1 1 0 0 1 1 13.02V3a2 2 0 0 1 2-2zM5.76 6.564A2.061 2.061 0 1 1 8.677 9.48 2.061 2.061 0 0 1 5.76 6.564"}),o.createElement("path",{d:"m30.48 27.971-4.471-4.47 4.471-4.472a1.774 1.774 0 1 0-2.51-2.508l-4.47 4.47-4.471-4.471a1.773 1.773 0 1 0-2.51 2.509l4.472 4.471-4.471 4.471a1.774 1.774 0 1 0 2.509 2.51l4.471-4.472 4.471 4.471a1.773 1.773 0 0 0 2.51 0 1.774 1.774 0 0 0 0-2.509"}))))}},58690(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.863 1c.284 0 .556.113.757.313l9.186 9.187H12.963c-.76 0-1.385.581-1.456 1.324l-.007.141v12.841L1.313 14.62A1.07 1.07 0 0 1 1 13.863V3.14A2.14 2.14 0 0 1 3.14 1zM7.165 6.955a2.206 2.206 0 1 0 3.12 3.12 2.206 2.206 0 0 0-3.12-3.12"}),o.createElement("path",{d:"M16 19v5h-3v-5zm4 9h4v3h-4zm8 0v-2h3v5h-5v-3zm0-13h-2v-3h5v5h-3zm2.982 4L31 24h-3.006l-.018-5zM24 15h-4v-3h4zm-6 13v3h-5v-5h3v2zm-2-11h-3v-5h5v3h-2zm9.723 6.885L23.338 21.5l2.385-2.385a.946.946 0 1 0-1.339-1.337L22 20.162l-2.385-2.385a.946.946 0 1 0-1.338 1.338l2.385 2.385-2.385 2.385a.946.946 0 1 0 1.338 1.338L22 22.838l2.385 2.385a.945.945 0 1 0 1.338-1.338"}))))}},51275(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m1.277 5.52 18.542 18.542-1.397 6.525a.524.524 0 0 1-.882.26L1.313 14.62A1.07 1.07 0 0 1 1 13.863V5.201q.125.166.277.319M13.863 1c.284 0 .556.113.757.313L30.847 17.54a.522.522 0 0 1-.26.882l-6.525 1.397L5.52 1.277A3 3 0 0 0 5.2 1z"}),o.createElement("path",{d:"M2.333 2.333a1.507 1.507 0 0 1 2.012-.098l.114.103L29.662 27.54c.59.59.593 1.539.005 2.126a1.507 1.507 0 0 1-2.012.098l-.114-.103L2.338 4.46a1.5 1.5 0 0 1-.005-2.126"}))))}},66147(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.863 1c.284 0 .556.113.757.313L30.847 17.54a.522.522 0 0 1-.26.882l-1.01.215a30 30 0 0 0-2.292-1.902C23.745 14.093 19.947 12.5 16 12.5s-7.745 1.593-11.284 4.235q-.37.278-.726.56L1.313 14.62A1.07 1.07 0 0 1 1 13.863V3.14A2.14 2.14 0 0 1 3.14 1zM7.165 6.955a2.206 2.206 0 1 0 3.12 3.12 2.206 2.206 0 0 0-3.12-3.12"}),o.createElement("path",{d:"M16 14c8.149 0 14.595 7.792 14.865 8.122.18.223.18.533 0 .756C30.595 23.208 24.149 31 16 31c-8.148 0-14.595-7.792-14.865-8.122a.596.596 0 0 1 0-.756C1.405 21.792 7.853 14 16 14m0 2.793c-3.24 0-5.875 2.559-5.875 5.707s2.634 5.707 5.875 5.707 5.875-2.559 5.875-5.707-2.634-5.707-5.875-5.707m0 1.457c2.413 0 4.375 1.906 4.375 4.25S18.413 26.75 16 26.75c-2.412 0-4.375-1.906-4.375-4.25s1.963-4.25 4.375-4.25"}))))}},60508(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.02 1a1 1 0 0 1 .707.293L28.89 16.456a.487.487 0 0 1-.244.823l-.073.073-4.243-3.928a3.47 3.47 0 0 0-4.741.022l-.143.143a3.46 3.46 0 0 0 .169 4.923l4.049 3.749-6.385 6.385a.49.49 0 0 1-.823.244L1.293 13.727A1 1 0 0 1 1 13.02V3a2 2 0 0 1 2-2zM5.76 6.564A2.061 2.061 0 1 1 8.677 9.48 2.061 2.061 0 0 1 5.76 6.564"}),o.createElement("path",{d:"M20.535 14.62a1.96 1.96 0 0 0 .097 2.79l5.5 5.09-5.5 5.09a1.96 1.96 0 0 0-.096 2.791c.74.787 1.982.83 2.776.094l7.057-6.533a1.964 1.964 0 0 0 0-2.885l-7.058-6.532a1.97 1.97 0 0 0-2.776.095"}))))}},49524(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.02 1a1 1 0 0 1 .707.293l12.521 12.521-6.634 6.141a3.464 3.464 0 0 0-.002 5.088l.659.611-2.992 2.992a.49.49 0 0 1-.823.244L1.293 13.727A1 1 0 0 1 1 13.02V3a2 2 0 0 1 2-2zM5.76 6.564A2.061 2.061 0 1 1 8.677 9.48 2.061 2.061 0 0 1 5.76 6.564"}),o.createElement("path",{d:"M30.464 14.62c.75.793.708 2.048-.096 2.79l-5.5 5.09 5.5 5.09c.803.74.847 1.996.096 2.791-.74.787-1.982.83-2.776.094l-7.057-6.533a1.964 1.964 0 0 1 0-2.885l7.058-6.532a1.97 1.97 0 0 1 2.775.095"}))))}},13085(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.863 1c.284 0 .556.113.757.313l9.185 9.186-6.17.001-5.819 14.622L1.313 14.62A1.07 1.07 0 0 1 1 13.863V3.14A2.14 2.14 0 0 1 3.14 1zm10.871 10.428 6.113 6.112a.522.522 0 0 1-.26.882l-2.829.605zM7.165 6.955a2.206 2.206 0 1 0 3.12 3.12 2.206 2.206 0 0 0-3.12-3.12"}),o.createElement("path",{d:"M23.347 12 31 31.23h-3.555q-.597 0-.984-.277a1.44 1.44 0 0 1-.536-.713l-1.167-2.908h-7.516l-1.167 2.908q-.135.38-.53.685-.393.306-.963.306H11L18.653 12zM21 16.07a27 27 0 0 1-.448 1.534q-.23.705-.434 1.221L18.3 24.212h5.4l-1.818-5.414-.414-1.215q-.237-.698-.468-1.512"}))))}},83063(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.863 1c.284 0 .556.113.757.313L25.136 11.83l-.1.056c-.09.051-.108.062-.143.083l-.03.02c-.2.134-.352.26-.489.397l-3.874 3.9V14.5a3 3 0 0 0-2.823-2.995L17.5 11.5a3 3 0 0 0-3 3v8.124a2.99 2.99 0 0 0-3.125.714 3 3 0 0 0-.56.783L1.312 14.62A1.07 1.07 0 0 1 1 13.863V3.14A2.14 2.14 0 0 1 3.14 1zM7.165 6.955a2.206 2.206 0 1 0 3.12 3.12 2.206 2.206 0 0 0-3.12-3.12"}),o.createElement("path",{d:"M26.794 13.03a1 1 0 0 1 .109.029l.045.013a1 1 0 0 1 .261.112c.058.03.058.03.12.068q.127.084.233.191l3.999 4.026c.586.59.586 1.545 0 2.136a1.49 1.49 0 0 1-2.121 0L28 18.155V29.5a1.5 1.5 0 0 1-3 0V18.155l-1.44 1.45c-.585.59-1.534.59-2.12 0a1.516 1.516 0 0 1 0-2.136l3.999-4.026c.069-.07.146-.133.222-.184.072-.046.072-.046.108-.063a1.039 1.039 0 0 1 .286-.124l.02-.006.021-.007c.038-.012.038-.012.11-.03.195-.039.395-.039.588 0M17.5 13a1.5 1.5 0 0 1 1.5 1.5v11.345l1.44-1.45a1.49 1.49 0 0 1 2.12 0c.587.59.587 1.546 0 2.136l-3.998 4.026a1.5 1.5 0 0 1-.232.19c-.063.04-.063.04-.12.07a1.08 1.08 0 0 1-.262.112c-.013.002-.013.002-.045.012-.037.012-.037.012-.109.03-.193.039-.393.039-.588 0-.072-.018-.072-.018-.11-.03l-.021-.007-.02-.006a1 1 0 0 1-.286-.124c-.036-.017-.036-.017-.108-.063a1.5 1.5 0 0 1-.222-.184l-4-4.026a1.516 1.516 0 0 1 0-2.136 1.49 1.49 0 0 1 2.122 0l1.44 1.45V14.5a1.5 1.5 0 0 1 1.5-1.5"}))))}},84715(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13.02 1a1 1 0 0 1 .707.293L26.6 14.166a3.7 3.7 0 0 0-.814.762l-6.634 8.405-.317-.304a3.783 3.783 0 0 0-5.216 0 3.6 3.6 0 0 0-1.061 1.964L1.293 13.727A1 1 0 0 1 1 13.02V3a2 2 0 0 1 2-2zM5.76 6.564A2.061 2.061 0 1 1 8.677 9.48 2.061 2.061 0 0 1 5.76 6.564"}),o.createElement("path",{d:"m26.964 15.858-7.658 9.701-1.508-1.447a2.283 2.283 0 0 0-3.139 0c-.88.843-.879 2.219.002 3.061l3.337 3.203c.426.407.99.626 1.651.624l.057-.003c.683-.053 1.277-.37 1.662-.882l9.199-11.713c.726-.946.518-2.28-.466-2.978-.993-.705-2.39-.512-3.137.434"}))))}},40134(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#0BB",fillRule:"nonzero",d:"M16 0c3.701 0 7.13 2.171 8.829 5.56C28.789 5.602 32 8.944 32 13.044c0 2.153-.465 3.7-1.164 4.807a6.4 6.4 0 0 0-2.832-1.19c.628-.672.969-1.808.969-3.617 0-2.394-1.795-4.328-3.996-4.45l-.18-.006-1.846-.019-.828-1.65C20.929 4.534 18.538 3.026 16 3.026c-3.404 0-6.32 2.621-6.83 6.142l-.03.226-.34 2.98-2.983-.313a2 2 0 0 0-.249-.013c-1.375 0-2.541 1.205-2.541 2.73 0 1.325.353 1.912 1.036 2.291.475.264 1.062.396 1.558.43l.206.008 1.033-.001-.081.116-1.852 2.842-.351-.056C2.819 20.083 0 18.92 0 14.779c0-3.174 2.498-5.757 5.568-5.757q.282 0 .565.03C6.718 3.929 10.944 0 16 0"}),o.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M23.073 22.012c.468 0 .796.375.814.846v.26c0 .477-.313.867-.772.89h-.42V32h-1.96v-9.811h.01v-.177zm-9.33-3.931 2.915 4.36 2.985-4.36h7.359c2.771 0 5.052 2.302 4.997 5.13-.054 2.709-2.202 4.882-4.85 4.925h-.08l-.439-.022V32h-1.958v-9.988h2.324c.232 0 .455.093.62.26a.9.9 0 0 1 .256.583v.263a.9.9 0 0 1-.257.63.87.87 0 0 1-.573.259h-.412v2.05h.386a2.956 2.956 0 0 0 2.944-3.008c-.03-1.58-1.28-2.934-2.828-2.97H20.52l-3.131 4.527c-.186.214-.4.392-.731.392-.314 0-.537-.159-.718-.357l-.032-.035-2.165-3.427V32h-1.94V18.08zm-4.4.06.052.033c.434.297.56.887.292 1.338L5.45 25.978h3.479a.82.82 0 0 1 .812.788l.001.38a.823.823 0 0 1-.773.828l-4.828.001-2.349 3.583a.963.963 0 0 1-1.312.298l-.048-.031a1.01 1.01 0 0 1-.294-1.334l7.897-12.05a.97.97 0 0 1 .62-.422.96.96 0 0 1 .689.121"}))))}},14196(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(39155);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(null,arguments)}const i=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:800,height:800,viewBox:"0 0 1024 1024"},e),r.createElement("circle",{cx:512,cy:512,r:512,style:{fill:"#0091e2"}}),r.createElement("path",{d:"M827.3 461.5c-1.6-1.3-16.1-12.2-46.7-12.2-8.1 0-16.2.6-24.2 2.1-5.9-40.7-39.5-60.5-41-61.4l-8.2-4.8-5.4 7.8c-6.8 10.5-11.7 22-14.6 34.2-5.5 23.2-2.2 45 9.6 63.6-14.2 7.9-37.1 9.9-41.7 10H277c-9.9 0-17.9 8-17.9 17.9-.4 33.1 5.2 66 16.5 97.1 13 34.2 32.4 59.3 57.6 74.7 28.2 17.3 74.1 27.2 126.2 27.2 23.5.1 47-2.1 70.1-6.4 32.1-5.9 63-17.1 91.4-33.2 23.4-13.6 44.5-30.8 62.4-51.1 29.9-33.9 47.8-71.7 61.1-105.2h5.3c32.8 0 53-13.1 64.1-24.1 7.4-7 13.2-15.5 16.9-25l2.3-6.9zM312 489.9h50.7c2.4 0 4.4-2 4.4-4.4v-45.1c0-2.4-2-4.4-4.4-4.5H312c-2.4 0-4.4 2-4.4 4.4v45.2c0 2.5 2 4.4 4.4 4.4m69.9 0h50.7c2.4 0 4.4-2 4.4-4.4v-45.1c0-2.4-2-4.4-4.4-4.5h-50.7c-2.5 0-4.5 2-4.5 4.5v45.1c0 2.5 2 4.4 4.5 4.4m70.8.1h50.7c2.4 0 4.4-2 4.4-4.4v-45.1c0-2.4-2-4.4-4.4-4.5h-50.7c-2.4 0-4.4 2-4.4 4.4v45.2c0 2.4 2 4.3 4.4 4.4m70.1 0h50.7c2.4 0 4.4-2 4.5-4.4v-45.1c0-2.5-2-4.5-4.5-4.5h-50.7c-2.4 0-4.4 2-4.4 4.4v45.2c0 2.4 1.9 4.4 4.4 4.4m-141-65h50.7c2.4 0 4.4-2 4.4-4.5v-45.1c0-2.4-2-4.4-4.4-4.4h-50.7c-2.5 0-4.4 2-4.5 4.4v45.1c.1 2.5 2.1 4.5 4.5 4.5m70.9 0h50.7c2.4 0 4.4-2 4.4-4.5v-45.1c0-2.4-2-4.4-4.4-4.4h-50.7c-2.4 0-4.4 2-4.4 4.4v45.1c0 2.5 2 4.5 4.4 4.5m70.1 0h50.7c2.5 0 4.4-2 4.5-4.5v-45.1c0-2.5-2-4.4-4.5-4.4h-50.7c-2.4 0-4.4 2-4.4 4.4v45.1c0 2.5 1.9 4.5 4.4 4.5m0-64.9h50.7c2.5 0 4.5-2 4.5-4.5v-45.2c0-2.4-2-4.4-4.5-4.4h-50.7c-2.4 0-4.4 2-4.4 4.4v45.2c0 2.5 1.9 4.5 4.4 4.5M593.4 490h50.7c2.4 0 4.4-2 4.4-4.4v-45.1c0-2.5-2-4.4-4.4-4.5h-50.7c-2.4 0-4.4 2-4.4 4.4v45.2c0 2.4 2 4.4 4.4 4.4",style:{fill:"#fff"}}))}},19952(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16"},e),r||(r=o.createElement("path",{fill:"#4F1552",fillRule:"evenodd",d:"M15.918 6.012c-.647-2.07-4.715-2.635-9.086-1.26S-.56 8.917.087 10.987s4.714 2.635 9.085 1.261c3.902-1.227 6.725-3.583 6.827-5.547.008-.414-.052-.594-.081-.69"})))}},82130(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=i.createElement("defs",null,i.createElement("linearGradient",{id:"a",x1:"0%",x2:"100.002%",y1:"50%",y2:"50%"},i.createElement("stop",{offset:"0%",stopColor:"#16B3B5"}),i.createElement("stop",{offset:"100%",stopColor:"#113340"})),i.createElement("linearGradient",{id:"b",x1:"0%",x2:"99.985%",y1:"50.002%",y2:"50.002%"},i.createElement("stop",{offset:"0%",stopColor:"#6DD7C6"}),i.createElement("stop",{offset:"100%",stopColor:"#5BB585"})),i.createElement("linearGradient",{id:"c",x1:"1.046%",x2:"98.222%",y1:"38.668%",y2:"60.054%"},i.createElement("stop",{offset:"0%",stopColor:"#4CBCC8"}),i.createElement("stop",{offset:"100%",stopColor:"#1E789A"})))),o||(o=i.createElement("g",{fill:"none",fillRule:"nonzero",transform:"translate(1 1)"},i.createElement("circle",{cx:15,cy:15,r:15,fill:"url(#a)"}),i.createElement("path",{fill:"url(#b)",d:"M13.36 16.662a3.7 3.7 0 0 0-3.677-.746L.551 19.042c1.533 5.49 6.109 9.71 11.795 10.724l2.15-9.53a3.7 3.7 0 0 0-1.137-3.574"}),i.createElement("path",{fill:"url(#c)",d:"M15 .002A14.94 14.94 0 0 0 7.82 1.83l7.668 13.725a8.815 8.815 0 0 0 14.374 1.469Q30 16.016 30 15C30 6.716 23.285 0 15 0"}),i.createElement("path",{fill:"#FFF",d:"M9.321 8.1c-4.146 0-7.085 2.863-7.085 6.905 0 4.156 3.09 6.895 7.056 6.895 3.424 0 6.467-2.501 6.467-6.762q0-.501-.066-.998h-6.39v2.453h3.242C12.175 18.163 11.071 19 9.179 19c-1.979 0-3.671-1.436-3.671-3.995 0-2.32 1.53-3.918 3.66-3.918 1.238 0 2.179.457 2.844 1.17l2.264-2.226c-1.16-1.208-2.844-1.93-4.955-1.93"}),i.createElement("path",{fill:"#FFF",d:"M26.621 8.216h-3.277L18.25 18.654l-2.016-3.815q.005.15.005.3c0 1.159-.213 2.205-.6 3.12a7 7 0 0 1-.403.8l1.498 2.702h3.277z"}))))}},87705(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:263,height:66,viewBox:"0 0 263 66"},e),r||(r=i.createElement("defs",null,i.createElement("linearGradient",{id:"a",x1:"0%",x2:"100.002%",y1:"50%",y2:"50%"},i.createElement("stop",{offset:"0%",stopColor:"#16B3B5"}),i.createElement("stop",{offset:"100%",stopColor:"#113340"})),i.createElement("linearGradient",{id:"b",x1:"0%",x2:"99.985%",y1:"50.002%",y2:"50.002%"},i.createElement("stop",{offset:"0%",stopColor:"#6DD7C6"}),i.createElement("stop",{offset:"100%",stopColor:"#5BB585"})),i.createElement("linearGradient",{id:"c",x1:"1.046%",x2:"98.222%",y1:"38.668%",y2:"60.054%"},i.createElement("stop",{offset:"0%",stopColor:"#4CBCC8"}),i.createElement("stop",{offset:"100%",stopColor:"#1E789A"})))),o||(o=i.createElement("g",{fill:"none",fillRule:"nonzero",opacity:.9},i.createElement("g",{transform:"translate(1 1)"},i.createElement("circle",{cx:32,cy:32,r:32,fill:"url(#a)"}),i.createElement("path",{fill:"url(#b)",d:"M28.5 35.545a7.9 7.9 0 0 0-7.842-1.59L1.176 40.623c3.27 11.71 13.031 20.712 25.161 22.877l4.587-20.33a7.9 7.9 0 0 0-2.424-7.626"}),i.createElement("path",{fill:"url(#c)",d:"M32 .004a31.86 31.86 0 0 0-15.318 3.9l16.36 29.281a18.806 18.806 0 0 0 30.664 3.132c.194-1.43.292-2.872.292-4.316C64 14.328 49.674.004 32 .004"}),i.createElement("path",{fill:"#FFF",d:"M19.886 17.28c-8.846 0-15.117 6.108-15.117 14.731 0 8.866 6.593 14.71 15.053 14.71 7.305 0 13.797-5.336 13.797-14.426a16 16 0 0 0-.141-2.13H19.844V35.4h6.919c-.791 3.347-3.144 5.133-7.182 5.133-4.22 0-7.831-3.063-7.831-8.521 0-4.95 3.266-8.36 7.81-8.36 2.638 0 4.646.976 6.067 2.496l4.828-4.747c-2.474-2.577-6.066-4.12-10.57-4.12"}),i.createElement("path",{fill:"#FFF",d:"M56.791 17.527H49.8l-10.866 22.27-4.302-8.14q.011.32.012.638c0 2.474-.456 4.706-1.28 6.659a15 15 0 0 1-.86 1.706l3.196 5.763h6.99z"})),i.createElement("path",{fill:"#FFF",d:"M262 25.896h-5.87l-3.758 7.58-3.828-7.58h-6.161l7.088 13.147-5.766 10.62h5.87zM234.746 30c1.562 0 2.609.894 3.043 2.578h-6.126c.411-1.667 1.424-2.578 3.089-2.578m-.017-4.57c-5.114 0-8.632 3.676-8.632 8.986 0 5.26 3.586 8.778 8.873 8.778 3.105 0 5.662-1.014 7.413-2.768l-3.466-3.23c-1.064.962-2.42 1.477-3.673 1.477-1.853 0-3.159-.86-3.604-2.697h11.412q.113-.83.104-1.667c-.017-5.276-3.432-8.885-8.427-8.885M224.609 18h-5.372v24.748h5.372zm-7.07 0h-5.38v24.748h5.371zm-16.173 12.45c2.111 0 3.604 1.633 3.604 3.868s-1.493 3.865-3.604 3.865c-2.145 0-3.587-1.666-3.587-3.865s1.442-3.867 3.587-3.867m8.752-4.555h-5.2v1.821c-1.012-1.322-2.556-2.284-4.822-2.284-4.514 0-7.843 3.917-7.843 8.866 0 4.985 3.329 8.9 7.826 8.9 2.283 0 3.827-.946 4.84-2.27v1.822h5.2zm-14.295-7.201h-5.973l-6.282 18.149-6.247-18.15h-6.088l8.888 24.06h6.831zm-32.18 8.198c-2.764-1.066-4.515-1.443-7.244-1.443-4.582 0-7.276 2.044-7.276 5.636 0 3.024 1.888 4.71 5.938 5.31l.974.138c1.906.292 2.66.55 2.66 1.203 0 .722-.686 1.097-2.35 1.097-2.334 0-4.261-.584-5.938-1.585l-1.871 4.16c1.922 1.254 4.892 1.769 7.775 1.769 4.908 0 7.791-2.216 7.791-5.911 0-2.836-1.905-4.57-5.509-5.12l-1.235-.19c-1.649-.257-2.712-.429-2.712-1.15 0-.62.55-1.032 1.956-1.032 1.716.017 3.878.601 5.544 1.306zm-16.528 0c-2.764-1.066-4.514-1.443-7.243-1.443-4.582 0-7.278 2.044-7.278 5.636 0 3.024 1.888 4.71 5.939 5.31l.974.138c1.904.292 2.66.55 2.66 1.203 0 .722-.687 1.097-2.352 1.097-2.334 0-4.261-.584-5.938-1.585l-1.871 4.16c1.922 1.254 4.892 1.769 7.775 1.769 4.909 0 7.792-2.216 7.792-5.911 0-2.836-1.906-4.57-5.51-5.12l-1.235-.19c-1.647-.257-2.711-.429-2.711-1.15 0-.62.549-1.032 1.956-1.032 1.717.017 3.879.601 5.543 1.306zm-25.641 3.558c2.11 0 3.605 1.632 3.605 3.867 0 2.234-1.494 3.865-3.605 3.865-2.146 0-3.587-1.666-3.587-3.865s1.441-3.867 3.587-3.867m8.753-4.555h-5.2v1.821c-1.014-1.322-2.557-2.284-4.823-2.284-4.515 0-7.843 3.917-7.843 8.866 0 4.985 3.328 8.9 7.826 8.9 2.283 0 3.826-.946 4.84-2.27v1.822h5.195zm-19.377-.463c-2.059 0-3.62.773-4.6 2.405v-1.942h-5.147v16.859h5.371v-9.108c0-2.097 1.167-3.048 3.072-3.048a9 9 0 0 1 2.694.448l.498-5.364a7 7 0 0 0-1.888-.258M87.784 18.25C80.3 18.249 75 23.42 75 30.725c0 7.51 5.577 12.459 12.735 12.459 6.179 0 11.67-4.52 11.67-12.218q.001-.906-.121-1.804H87.749v4.433h5.853c-.67 2.835-2.66 4.348-6.075 4.348-3.57 0-6.625-2.595-6.625-7.218 0-4.193 2.763-7.08 6.608-7.08 2.23 0 3.93.825 5.131 2.113l4.085-4.023c-2.094-2.182-5.132-3.489-8.942-3.489"}))))}},92459(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:127,height:65,viewBox:"0 0 127 65"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#4F1552",d:"M126.057 14.562c-4.201.607-8.98 2.107-11.938 3.185 0 0-.241-2.085-.451-2.76-4.581-14.616-33.4-18.601-64.37-8.9C18.332 15.79-3.064 35.499 1.516 50.118c4.576 14.616 33.394 18.6 64.365 8.9 27.643-8.66 47.639-25.291 48.365-39.158 3.986-2.072 7.968-3.683 11.81-4.71z"}),o.createElement("path",{fill:"#FFFFFE",d:"M66.99 43.013 57.81 29.58H41.587s-2.059 7.249-2.053 7.244c3.296-2.42 10.04-2.412 10.04-2.412h4.187s1.691 1.908 1.114 4.219c-.605 2.413-2.355 5.594-6.776 7.684-7.554 3.572-20.11 2.925-23.407-5.915-1.82-4.885-.727-13.73 8.785-19.297 17.037-9.97 28.51-.15 28.51-.15l1.93-6.555s-3.868-.73-9.343-.83h-2.453c-6.767.13-15.219 1.357-21.937 5.743C13.82 29.969 17.387 41.546 17.426 41.717c2.122 9.779 17.88 16.445 32.748 8.167 6.035-3.362 8.68-8.357 8.68-8.357L67.25 54.17c8.575-13.76 32.613-35.044 58.806-39.608v-.566c-27.28 3.17-47.788 16.215-59.066 29.017"}))))}},58816(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#4F1552",d:"M30.777 11.44c-.992.143-2.121.497-2.82.752 0 0-.057-.492-.106-.652-1.083-3.452-7.89-4.394-15.206-2.102S.276 16.386 1.358 19.839s7.888 4.393 15.204 2.102c6.53-2.045 11.254-5.974 11.425-9.25.942-.489 1.882-.87 2.79-1.112z"}),o.createElement("path",{fill:"#FFFFFE",d:"m16.824 18.16-2.168-3.173h-3.832s-.487 1.713-.485 1.712c.778-.572 2.371-.57 2.371-.57h.99s.399.45.263.996c-.143.57-.557 1.322-1.601 1.815-1.784.844-4.75.691-5.53-1.397-.43-1.154-.17-3.243 2.076-4.558 4.024-2.355 6.734-.036 6.734-.036l.457-1.548s-.914-.172-2.207-.196h-.58c-1.598.03-3.595.32-5.182 1.357-3.865 2.517-3.023 5.252-3.014 5.292.502 2.31 4.224 3.885 7.736 1.93 1.426-.795 2.05-1.975 2.05-1.975l1.984 2.987c2.025-3.25 7.704-8.278 13.891-9.356v-.134c-6.444.75-11.288 3.83-13.953 6.854"}))))}},14763(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:260,height:60,viewBox:"0 0 260 60"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FFF",d:"M117.108 26.8c-3.467 0-5.704 2.003-5.704 5.414 0 4.052 2.53 5.574 5.867 5.574 3.254 0 5.761-2.054 5.761-5.574 0-2.905-2.002-5.414-5.924-5.414m5.87-1.225h1.972v13.334c0 5.117-4.136 6.402-7.787 6.402-6.32 0-6.935-3.018-7.091-4.51h1.812c.293 1.492.69 3.014 5.36 3.014 3.626 0 5.735-1.707 5.735-5.043v-2.476h-.056c-.747 1.413-2.56 3.144-6.131 3.144-3.523 0-7.365-1.81-7.365-7.226 0-3.68 2.35-7.067 7.576-7.067 2.694 0 4.987 1.014 5.92 3.12h.056zM127.405 25.574h1.973v3.174h.054c.72-1.653 2.027-3.6 5.307-3.6.56 0 .878.054 1.174.107v2.027a10.5 10.5 0 0 0-1.816-.163c-2.131 0-4.719 1.31-4.719 5.256v7.066h-1.973zM147.858 31.975c-.879.56-2.215.665-6.159 1.04-2.294.212-3.63.905-3.63 2.559 0 2.16 1.869 2.799 4.002 2.799 2.666 0 5.787-1.44 5.787-4.293zm-11.147-2.134c.292-2.906 1.867-4.693 6.613-4.693 4.642 0 6.348 1.438 6.348 4.106v7.252c0 1.148.322 1.55 1.093 1.55.347 0 .691-.028 1.04-.053v1.332c-.4.08-1.013.21-1.653.21-2 0-2.108-1.355-2.132-2.45h-.054c-.614.908-1.95 2.775-6.481 2.775-2.376 0-5.388-1.044-5.388-4.16 0-3.76 3.865-4.185 6.908-4.35 4.32-.239 4.853-.48 4.853-1.837 0-2-1.335-2.723-4.587-2.723-3.122 0-4.613.83-4.748 3.04zM163.817 29.68c-.506-2.238-1.894-2.88-4.774-2.88-2.08 0-3.998.453-3.998 2.375 0 1.439.93 1.734 5.146 2.292 4.237.559 6 1.31 6 4.001 0 2.748-2.241 4.401-6.592 4.401-4.399 0-7.011-1.44-7.011-4.772h1.815c.345 2.32 1.65 3.119 5.196 3.119 2.753 0 4.618-.562 4.618-2.642 0-1.387-.987-1.997-5.31-2.43-4.317-.421-5.837-1.436-5.837-3.89 0-2.399 1.944-4.107 5.973-4.107 4.506 0 6.348 1.628 6.588 4.532zM179.028 29.68c-.505-2.238-1.892-2.88-4.776-2.88-2.075 0-3.998.453-3.998 2.375 0 1.439.933 1.734 5.146 2.292 4.24.559 6 1.31 6 4.001 0 2.748-2.239 4.401-6.584 4.401-4.403 0-7.02-1.44-7.02-4.772h1.817c.345 2.32 1.653 3.119 5.203 3.119 2.748 0 4.612-.562 4.612-2.642 0-1.387-.985-1.997-5.307-2.43-4.32-.421-5.842-1.436-5.842-3.89 0-2.399 1.948-4.107 5.973-4.107 4.506 0 6.348 1.628 6.588 4.532zM199.14 25.574h2.131l-6.508 13.867h-2.134l-6.505-13.867h2.131l5.445 11.6zM212.99 31.975c-.879.56-2.213.665-6.16 1.04-2.293.212-3.628.905-3.628 2.559 0 2.16 1.87 2.799 4.001 2.799 2.67 0 5.787-1.44 5.787-4.293zm-11.145-2.134c.29-2.906 1.865-4.693 6.615-4.693 4.636 0 6.342 1.438 6.342 4.106v7.252c0 1.148.323 1.55 1.096 1.55.346 0 .694-.028 1.045-.053v1.332c-.404.08-1.017.21-1.657.21-2.003 0-2.104-1.355-2.135-2.45h-.055c-.612.908-1.946 2.775-6.48 2.775-2.37 0-5.388-1.044-5.388-4.16 0-3.76 3.869-4.185 6.91-4.35 4.317-.239 4.852-.48 4.852-1.837 0-2-1.332-2.723-4.586-2.723-3.12 0-4.615.83-4.75 3.04zM218.574 39.441h1.975v-19.2h-1.975zM224.789 39.441h1.973v-19.2h-1.973zM241.976 31.497c-.559-3.418-3.063-4.697-5.706-4.697-2.536 0-5.254 1.308-5.71 4.697zm1.626 3.519c-.798 2.451-2.877 4.854-7.464 4.854-5.683 0-7.55-3.977-7.55-7.361 0-3.867 2.371-7.361 7.55-7.361 3.57 0 7.81 1.546 7.81 7.84H230.56c0 2.883 2.055 5.228 5.578 5.228 3.304 0 4.8-1.095 5.494-3.2zM258.906 25.574l-7.522 16.453c-1.013 2.189-1.865 2.802-4.047 2.802-.616 0-1.312 0-1.9-.052v-1.655c.425.025.882.054 1.412.054 1.415 0 2.113-.322 2.754-1.706l.902-1.924-6.747-13.972h2.136l5.652 11.547 5.227-11.547z"}),o.createElement("path",{fill:"#601069",d:"M110.096 14.357c-3.645.526-7.788 1.826-10.354 2.76 0 0-.208-1.806-.39-2.392-3.97-12.675-28.96-16.13-55.811-7.717C16.688 15.419-1.863 32.512 2.107 45.186s28.956 16.128 55.81 7.717c23.968-7.509 41.306-21.93 41.936-33.954 3.458-1.796 6.91-3.193 10.243-4.083z"}),o.createElement("path",{fill:"#FFF",d:"m58.879 39.025-7.96-11.646H36.853s-1.786 6.284-1.78 6.279c2.857-2.097 8.705-2.088 8.705-2.088h3.63s1.467 1.651.966 3.656c-.523 2.093-2.041 4.85-5.874 6.663-6.552 3.096-17.438 2.536-20.296-5.13-1.58-4.236-.631-11.904 7.618-16.732 14.772-8.644 24.72-.129 24.72-.129l1.672-5.685s-3.353-.633-8.099-.718h-2.13c-5.865.112-13.194 1.175-19.02 4.978-14.189 9.242-11.096 19.28-11.062 19.43 1.84 8.478 15.502 14.258 28.396 7.08 5.233-2.916 7.525-7.247 7.525-7.247l7.28 10.964c7.436-11.93 28.28-30.387 50.992-34.343v-.493c-23.656 2.75-41.436 14.06-51.217 25.161"}))))}},228(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16"},e),r||(r=i.createElement("defs",null,i.createElement("linearGradient",{id:"a",x1:"100%",x2:"2.095%",y1:"50%",y2:"50%"},i.createElement("stop",{offset:"0%",stopColor:"#CE7DE8"}),i.createElement("stop",{offset:"100%",stopColor:"#8A6FC8"})))),o||(o=i.createElement("path",{fill:"url(#a)",fillRule:"evenodd",d:"M15.918 6.012c-.647-2.07-4.715-2.635-9.086-1.26S-.56 8.917.087 10.987s4.714 2.635 9.085 1.261c3.902-1.227 6.725-3.583 6.827-5.547.008-.414-.052-.594-.081-.69"})))}},28903(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:127,height:67,viewBox:"0 0 127 67"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M49.298 6.087c30.97-9.701 59.789-5.716 64.37 8.9.077.25.16.692.232 1.15-21.244 5.057-37.375 16.053-46.91 26.876L57.81 29.58H41.587s-2.059 7.249-2.053 7.244c3.11-2.282 9.288-2.405 9.977-2.412h4.25l.044.052.072.09c.37.484 1.482 2.138.998 4.077-.605 2.413-2.355 5.594-6.776 7.684-7.554 3.572-20.11 2.925-23.407-5.915-1.82-4.885-.727-13.73 8.785-19.297 17.037-9.97 28.51-.15 28.51-.15l1.93-6.555-.02-.004c-.312-.057-4.08-.73-9.323-.825h-2.453c-6.767.13-15.219 1.356-21.937 5.742C13.82 29.969 17.387 41.546 17.426 41.717c2.122 9.779 17.88 16.445 32.748 8.167 6.035-3.362 8.68-8.357 8.68-8.357L67.25 54.17c8.575-13.758 32.61-35.042 58.801-39.607l.006-.002v.59c-3.843 1.026-7.825 2.637-11.811 4.709-.726 13.867-20.722 30.499-48.365 39.158-30.971 9.7-59.79 5.716-64.365-8.9C-3.064 35.5 18.332 15.79 49.298 6.087"})))}},45658(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(39155);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(null,arguments)}const i=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20"},e))}},24334(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{d:"M0 4a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z"}),o.createElement("path",{fill:"#161E2B",d:"M0 4a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z"}),o.createElement("path",{stroke:"#1E2631",d:"M16 .5c.966 0 1.841.392 2.475 1.025A3.5 3.5 0 0 1 19.5 4v12c0 .966-.392 1.841-1.025 2.475A3.5 3.5 0 0 1 16 19.5H4a3.5 3.5 0 0 1-2.475-1.025A3.5 3.5 0 0 1 .5 16V4c0-.966.392-1.841 1.025-2.475A3.5 3.5 0 0 1 4 .5Z"}),o.createElement("path",{fill:"#FFF",d:"M5.27 11.54a1.27 1.27 0 1 1 0-2.54h9.459a1.27 1.27 0 1 1 .001 2.54z",opacity:.5}))))}},33041(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{d:"M0 4a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z"}),o.createElement("path",{fill:"#161E2B",d:"M0 4a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z"}),o.createElement("path",{stroke:"#1E2631",d:"M16 .5c.966 0 1.841.392 2.475 1.025A3.5 3.5 0 0 1 19.5 4v12c0 .966-.392 1.841-1.025 2.475A3.5 3.5 0 0 1 16 19.5H4a3.5 3.5 0 0 1-2.475-1.025A3.5 3.5 0 0 1 .5 16V4c0-.966.392-1.841 1.025-2.475A3.5 3.5 0 0 1 4 .5Z"}))))}},80541(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{d:"M0 4a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z"}),o.createElement("path",{fill:"#408FE0",d:"M0 4a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z"}),o.createElement("path",{stroke:"#1E2631",d:"M16 .5c.966 0 1.841.392 2.475 1.025A3.5 3.5 0 0 1 19.5 4v12c0 .966-.392 1.841-1.025 2.475A3.5 3.5 0 0 1 16 19.5H4a3.5 3.5 0 0 1-2.475-1.025A3.5 3.5 0 0 1 .5 16V4c0-.966.392-1.841 1.025-2.475A3.5 3.5 0 0 1 4 .5Z"}),o.createElement("path",{fill:"#FFF",d:"M15.551 5.275a1.22 1.22 0 0 0-1.724.184L7.8 12.955l-.178-.186-1.53-1.6a1.22 1.22 0 0 0-1.74-.005 1.217 1.217 0 0 0 0 1.712l2.732 2.762c.23.233.544.362.882.362l.048-.002c.351-.019.674-.185.89-.456l6.83-8.564a1.22 1.22 0 0 0-.183-1.703",opacity:.9}))))}},40563(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16 2c8.271 0 15 5.541 15 12.354q0 .165-.005.331C28.945 10.999 25.009 8.5 20.5 8.5c-6.62 0-12 5.382-12 12 0 2.161.574 4.19 1.577 5.944l-7.11 3.309a.624.624 0 0 1-.823-.846l3.012-6.015C2.473 20.586 1 17.57 1 14.354 1 7.54 7.729 2 16 2"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 4.1c-.722 0-1.308.586-1.308 1.308v3.784h-3.785a1.308 1.308 0 0 0 0 2.616h3.785v3.784a1.307 1.307 0 1 0 2.616 0v-3.784h3.784a1.308 1.308 0 0 0 0-2.616h-3.784v-3.784c0-.722-.586-1.307-1.308-1.307"}))))}},37581(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 2C7.729 2 1 7.541 1 14.354c0 3.216 1.473 6.231 4.156 8.539l-3.012 6.013a.623.623 0 0 0 .56.905.6.6 0 0 0 .262-.058l8.046-3.744c1.598.462 3.275.697 4.988.697 8.271 0 15-5.541 15-12.352C31 7.54 24.271 2 16 2"})))}},93475(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M15.943 1c1.264 0 2.413.232 3.333.695S21 2.737 21.575 3.548l.38.543c.439.64.846 1.31 1.114 2.121.345 1.043.575 2.085.805 3.36l.69-2.78.213-.738.357-1.27.157-.532q.038-.125.077-.24c.23-.695.46-1.275.69-1.622q.345-.522.69-.695c.229-.116.459-.232.804-.232H31q-1.38 4.865-3.103 9.035c-1.15 2.78-2.414 5.444-3.794 7.76v3.128c0 .927.115 1.853.345 2.548s.575 1.274.92 1.738c.46.463 1.034.579 1.839.579h1.839l-.46 2.896a.9.9 0 0 1-.23.579.8.8 0 0 1-.185.237l-.252.215q-.068.057-.137.127l-.151.082-.362.202c-.131.068-.269.133-.407.18-.246.082-.551.106-.915.112l-.464.003c-.805 0-1.494-.116-2.07-.463a3.5 3.5 0 0 1-1.379-1.506c-.344-.695-.574-1.506-.804-2.432l-.086-.737-.087-.813-.129-1.337-.043-.472c-1.954 2.548-3.908 4.401-5.977 5.791S10.77 31 8.586 31q-1.725 0-3.103-.695c-.92-.463-1.724-1.042-2.414-1.97-.632-.849-1.071-1.795-1.406-3.018l-.088-.34C1.23 23.703 1 22.08 1 20.344s.23-3.36.575-4.981c.345-1.622.804-3.127 1.494-4.633l.462-.924c.545-1.073 1.122-2.114 1.837-3.014.92-1.159 1.954-2.201 2.988-3.128 1.15-.81 2.3-1.506 3.564-2.085C13.184 1.232 14.563 1 15.943 1m.574 3.822c-1.38 0-2.643.348-3.908 1.159-1.264.81-2.299 1.853-3.218 3.243-.92 1.39-1.61 2.896-2.184 4.749-.575 1.737-.805 3.707-.805 5.56 0 2.297.308 3.975 1.02 5.227l.13.217c.804 1.39 1.954 1.969 3.448 1.969q1.38 0 2.759-.695c.92-.463 1.724-1.158 2.528-1.97q1.208-1.215 2.414-3.127c.805-1.158 1.494-2.548 2.184-4.054l.096-1.31c.075-1.103.134-2.214.134-3.207 0-1.39-.115-2.78-.345-3.938q-.345-1.738-1.38-2.78c-.689-.695-1.608-1.043-2.873-1.043"})))}},65e3(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.008 27c1.1 0 1.992.888 1.992 2a2 2 0 0 1-1.992 2H2.992A1.99 1.99 0 0 1 1 29a2 2 0 0 1 1.992-2z"}),o.createElement("path",{d:"M12 3h8v22h-8z"}))))}},48004(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M18 22v7.008a1.99 1.99 0 0 1-1.85 1.987L16 31a2 2 0 0 1-2-1.992V22zM16 1a2 2 0 0 1 2 1.992V10h-4V2.992c0-1.05.809-1.91 1.85-1.987z"}),o.createElement("path",{d:"M27 12v8H5v-8z"}))))}},38327(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M7 1a2 2 0 0 1 2 2l-.001 5h11.967l-4 4H8.999L9 22.087l3.601-3.6L27.647 3.44a1.507 1.507 0 0 1 2.126-.005 1.5 1.5 0 0 1-.004 2.126L14.725 20.607 11.33 24H21v-7.549l4-3.999V24h4a2 2 0 1 1 0 4h-4v1a2 2 0 1 1-4 0v-1H7a2 2 0 0 1-2-2l-.001-14H3a2 2 0 1 1 0-4h1.999L5 3a2 2 0 0 1 2-2"})))}},61940(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M1 2.992C1 1.892 1.888 1 3 1a2 2 0 0 1 2 1.992v26.016A1.99 1.99 0 0 1 3 31a2 2 0 0 1-2-1.992zM27 2.992C27 1.892 27.888 1 29 1a2 2 0 0 1 2 1.992v26.016A1.99 1.99 0 0 1 29 31a2 2 0 0 1-2-1.992z"}),o.createElement("path",{d:"M20 5v22h-8V5z"}))))}},71026(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.008 1C30.108 1 31 1.888 31 3a2 2 0 0 1-1.992 2H2.992A1.99 1.99 0 0 1 1 3a2 2 0 0 1 1.992-2zM29.008 27c1.1 0 1.992.888 1.992 2a2 2 0 0 1-1.992 2H2.992A1.99 1.99 0 0 1 1 29a2 2 0 0 1 1.992-2z"}),o.createElement("path",{d:"M27 12v8H5v-8z"}))))}},90903(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m9.62 23.785.115.17c.03.055.097.147.189.244.016.02.03.035.063.071.09.101.158.171.258.258l.15.12.07.049c.123.094.31.203.515.294a2.3 2.3 0 0 0 .602.191q.052.015.262.045c.139.013.139.013.203.017l.095.002.17-.004.134-.01c.055-.006.055-.006.139-.018l.106-.018.127-.026a3 3 0 0 0 .512-.166c.466-.21.832-.493 1.118-.85l.164-.184a4 4 0 1 1-4.992-.185m-2.745 1.214A5.5 5.5 0 0 0 6.5 27c0 .706.133 1.38.375 2H3a2 2 0 0 1-.15-3.995L3 25zm10.25 0 7.86.003a5.77 5.77 0 0 1-3.911 1.685A2.92 2.92 0 0 0 18.312 29h-1.187c.242-.62.375-1.294.375-2s-.133-1.38-.375-2M31 27a2 2 0 0 1-1.759 1.986l.129-.135a11.6 11.6 0 0 0 1.608-2.154Q31 26.845 31 27M20.67 15.314a5.8 5.8 0 0 1 4.225 1.6 4 4 0 0 1-6.603 2.03 2.9 2.9 0 0 0-1-2.41c.945-.75 2.111-1.176 3.377-1.22m-8.998-1.316q-.586.766-1.039 1.622a2.94 2.94 0 0 0-2.82.22 2.9 2.9 0 0 0-1.3 2.16H3a2 2 0 0 1-.15-3.995L3 14ZM11 1a4 4 0 1 1 0 8 4 4 0 0 1 0-8M5.875 2.999A5.5 5.5 0 0 0 5.5 5c0 .706.133 1.38.375 2H3a2 2 0 0 1-.15-3.995L3 3zm10.25 0L29 3a2 2 0 0 1 .15 3.995L29 7H16.125c.242-.62.375-1.294.375-2s-.133-1.381-.375-2.001"}),o.createElement("path",{d:"m11.16 18.309-.552-.82a1.433 1.433 0 0 0-1.972-.394 1.394 1.394 0 0 0-.399 1.947l2.742 4.077c.046.06.046.06.052.065.044.053.044.054.069.08a.917.917 0 0 0 .214.196q.12.091.276.16c.044.022.078.036.12.051.055.018.092.026.152.038a2 2 0 0 0 .19.032c.059.005.059.005.112.006.025-.002.041-.003.109-.004.079-.01.079-.01.112-.017.047-.007.047-.007.117-.022a1.417 1.417 0 0 0 .779-.49l3.166-3.558c.519-.582.46-1.47-.13-1.983a1.44 1.44 0 0 0-1.843-.03 7 7 0 0 1 1.036-1.489c1.307-1.44 3.12-2.27 5.107-2.34 1.95-.063 3.8.62 5.222 1.929a7.1 7.1 0 0 1 2.31 5.007 7.08 7.08 0 0 1-1.95 5.155 7.27 7.27 0 0 1-5.073 2.281c-.786.028-1.4.678-1.373 1.453a1.415 1.415 0 0 0 1.421 1.356l.075-.002a10.1 10.1 0 0 0 7.03-3.172 9.86 9.86 0 0 0 2.715-7.169 9.88 9.88 0 0 0-3.215-6.964 10.1 10.1 0 0 0-7.261-2.681c-2.765.095-5.299 1.258-7.127 3.271a10.15 10.15 0 0 0-2.23 4.031"}))))}},79377(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M5.5 5c0 .706.133 1.38.375 2H3a2 2 0 1 1 0-4l2.875-.001A5.5 5.5 0 0 0 5.5 5M29 3a2 2 0 1 1 0 4H16.125c.242-.62.375-1.294.375-2s-.133-1.381-.375-2.001Z"}),o.createElement("path",{d:"M11 1a4 4 0 1 1 0 8 4 4 0 0 1 0-8"}),o.createElement("path",{fillOpacity:.4,d:"M15.5 16c0 .706.133 1.38.375 2H3a2 2 0 1 1 0-4l12.875-.001A5.5 5.5 0 0 0 15.5 16M29 14a2 2 0 1 1 0 4h-2.875c.242-.62.375-1.294.375-2s-.133-1.381-.375-2.001Z"}),o.createElement("path",{d:"M21 12a4 4 0 1 1 0 8 4 4 0 0 1 0-8"}),o.createElement("path",{fillOpacity:.4,d:"M6.5 27c0 .706.133 1.38.375 2H3a2 2 0 1 1 0-4h3.875a5.5 5.5 0 0 0-.375 2M29 25a2 2 0 1 1 0 4H17.125c.242-.62.375-1.294.375-2s-.133-1.38-.375-2Z"}),o.createElement("path",{d:"M12 23a4 4 0 1 1 0 8 4 4 0 0 1 0-8"}))))}},88403(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M11.76 1c.172 0 .333.075.443.205l2.737 3.257h13.752A2.31 2.31 0 0 1 31 6.769v4.369a3.46 3.46 0 0 0-1.736-.627l-.274-.011H10.01l-.206.007-.113.008-.154.018c-1.667.253-2.9 1.583-3.026 3.215l-.01.216L6.5 27H2.73A1.73 1.73 0 0 1 1 25.27V3.125C1 1.952 1.952 1 3.126 1z"}),o.createElement("path",{d:"m28.99 12 .158.006c.935.073 1.69.79 1.83 1.71l.016.154.006.151V28.98l-.006.158c-.073.94-.785 1.7-1.7 1.84l-.154.017-.15.006H10.01l-.158-.006a2.015 2.015 0 0 1-1.83-1.71l-.016-.154L8 28.979V14.02l.006-.158c.073-.94.785-1.7 1.7-1.84l.154-.017.15-.006zm-11.168 4.5H11.8a.3.3 0 0 0-.3.3v9.4a.3.3 0 0 0 .3.3h1.8a.3.3 0 0 0 .3-.3v-3.292a.3.3 0 0 1 .3-.3h2.916a.3.3 0 0 0 .3-.3v-1.19a.3.3 0 0 0-.3-.3H14.2a.3.3 0 0 1-.3-.3v-1.934a.3.3 0 0 1 .3-.3h3.622a.3.3 0 0 0 .3-.3V16.8a.3.3 0 0 0-.3-.3m3.28 0H19.27a.3.3 0 0 0-.25.464l2.88 4.395-3.014 4.679a.3.3 0 0 0 .252.462h1.68a.55.55 0 0 0 .354-.113 1 1 0 0 0 .226-.258l2.047-3.5 2.062 3.5q.084.151.23.261.143.11.377.11h1.843a.3.3 0 0 0 .254-.46l-3.008-4.784 2.909-4.288a.3.3 0 0 0-.249-.468h-1.721q-.303 0-.48.288l-1.977 3.336-2.047-3.37a.5.5 0 0 0-.194-.196q-.11-.058-.343-.058"}))))}},98523(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16.2 1a.8.8 0 0 1 .525.197L23.13 6.8c.17.152.27.371.27.6l-.001 3.1h-13.39l-.205.007c-1.784.13-3.16 1.51-3.293 3.24l-.01.217L6.5 28.979l.001.021H1.933a.933.933 0 0 1-.927-.824L1 28.066V1.934C1 1.418 1.418 1 1.933 1Z"}),o.createElement("path",{d:"m28.99 12 .158.006c.935.073 1.69.79 1.83 1.71l.016.154.006.151V28.98l-.006.158c-.073.94-.785 1.7-1.7 1.84l-.154.017-.15.006H10.01l-.158-.006a2.015 2.015 0 0 1-1.83-1.71l-.016-.154L8 28.979V14.02l.006-.158c.073-.94.785-1.7 1.7-1.84l.154-.017.15-.006zm-11.168 4.5H11.8a.3.3 0 0 0-.3.3v9.4a.3.3 0 0 0 .3.3h1.8a.3.3 0 0 0 .3-.3v-3.292a.3.3 0 0 1 .3-.3h2.916a.3.3 0 0 0 .3-.3v-1.19a.3.3 0 0 0-.3-.3H14.2a.3.3 0 0 1-.3-.3v-1.934a.3.3 0 0 1 .3-.3h3.622a.3.3 0 0 0 .3-.3V16.8a.3.3 0 0 0-.3-.3m3.28 0H19.27a.3.3 0 0 0-.25.464l2.88 4.395-3.014 4.679a.3.3 0 0 0 .252.462h1.68a.55.55 0 0 0 .354-.113 1 1 0 0 0 .226-.258l2.047-3.5 2.062 3.5q.084.151.23.261.143.11.377.11h1.843a.3.3 0 0 0 .254-.46l-3.008-4.784 2.909-4.288a.3.3 0 0 0-.249-.468h-1.721q-.303 0-.48.288l-1.977 3.336-2.047-3.37a.5.5 0 0 0-.194-.196q-.11-.058-.343-.058"}))))}},97658(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 1c0 2.405 1.225 4.347 2.817 6.287l.465.555.724.837L21 9.818l.5.583.494.597C24.122 13.617 26 16.67 26 21.03c0 2.106-.551 3.773-1.395 5.09l-.162.243A10 10 0 0 1 16 31a10 10 0 0 1-8.453-4.655l-.06-.085c-.843-1.26-1.416-2.848-1.48-4.85L6 21q0-.177.006-.353c.11-4.301 2.063-7.31 4.215-9.91l.499-.593.502-.582 1.235-1.416.476-.557C14.645 5.547 16 3.529 16 1m6.5 18.5a1.5 1.5 0 0 0-1.473 1.215l-.02.14L21 21a5 5 0 0 1-4.783 4.995L16 26l-.144.007a1.5 1.5 0 0 0-.141 2.966l.14.02L16 29a8 8 0 0 0 7.996-7.75L24 21l-.007-.144A1.5 1.5 0 0 0 22.5 19.5"})))}},35410(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m23.517 21.333-1.242 1.433-.116.143-.114.163c-.585.9-.57 2.049-.006 2.929h-5.644a5 5 0 0 1-.25-.223L16 25.651a2.763 2.763 0 0 0-3.864.348L7.991 26a2.003 2.003 0 0 1-1.99-2.006v-2.66zM24.009 6C25.102 6 26 6.898 26 8.006V18.79c-.32.16-.611.383-.851.661l-.477.549h-.468l-3.14-5.47a1.73 1.73 0 0 0-1.558-.965A1.75 1.75 0 0 0 18 14.43l-2.28 3.91c-.605-.754-2.025-2.253-3.749-2.253-2.066 0-3.762 2.922-4.192 3.913H6v-5.842a2.6 2.6 0 0 0 .83-.644l2.874-3.317.116-.143a2.707 2.707 0 0 0-.468-3.744l-.147-.11-.122-.08.045-.036L9.24 6l6.233-.001q.221.173.423.372l.16.166.13.131a2.764 2.764 0 0 0 3.69.1c.26-.223.47-.484.624-.767ZM13.232 8.522a2.42 2.42 0 0 0-2.313 1.695 1.596 1.596 0 0 0-1.803 1.58c0 .85.671 1.541 1.496 1.541a1 1 0 0 0 .099-.005h2.504l.12.003c.626 0 1.215-.249 1.655-.701a2.4 2.4 0 0 0 .677-1.678 2.437 2.437 0 0 0-2.435-2.435"}),o.createElement("path",{d:"M27.329 20.003c.398.03.759.246.968.582l2.171 3.502a1.21 1.21 0 0 1-.433 1.689 1.26 1.26 0 0 1-1.695-.42l-.195-.314c-.973 2.828-3.453 5.12-6.503 5.814a9.2 9.2 0 0 1-2.056.233 9 9 0 0 1-6.207-2.468 1.207 1.207 0 0 1-.013-1.743 1.263 1.263 0 0 1 1.745-.012c1.58 1.5 3.81 2.102 5.968 1.61a6.6 6.6 0 0 0 4.225-3.142 1.263 1.263 0 0 1-1.737.151 1.206 1.206 0 0 1-.159-1.736l2.877-3.318c.258-.3.645-.456 1.044-.428M19.01 3.886a1.205 1.205 0 0 1-.108 1.74 1.263 1.263 0 0 1-1.741-.103c-1.564-1.703-3.965-2.437-6.263-1.913A6.82 6.82 0 0 0 6.64 6.65a6.1 6.1 0 0 0-.784 1.924l.817-.943a1.26 1.26 0 0 1 1.738-.153c.538.433.611 1.214.16 1.737l-2.876 3.318c-.242.28-.594.43-1.012.429a1.25 1.25 0 0 1-.965-.53l-2.5-3.59a1.21 1.21 0 0 1 .341-1.71 1.26 1.26 0 0 1 1.714.33l.216.308a8.6 8.6 0 0 1 1.023-2.39 9.32 9.32 0 0 1 5.823-4.15c3.18-.725 6.503.292 8.675 2.656"}))))}},65503(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m18.958 2.225 8.511 8.51A11.94 11.94 0 0 0 20.5 8.5c-6.62 0-12 5.382-12 12 0 2.596.828 5.001 2.233 6.966l-8.508-8.508a4.183 4.183 0 0 1 0-5.916L13.042 2.225a4.183 4.183 0 0 1 5.916 0"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 4.1c-.722 0-1.308.586-1.308 1.308v3.784h-3.785a1.308 1.308 0 0 0 0 2.616h3.785v3.784a1.307 1.307 0 1 0 2.616 0v-3.784h3.784a1.308 1.308 0 0 0 0-2.616h-3.784v-3.784c0-.722-.586-1.307-1.308-1.307"}))))}},26891(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m18.958 2.225 10.817 10.817a4.16 4.16 0 0 1 1.09 1.898 3.27 3.27 0 0 0-3.957.522L23.5 18.87l-3.41-3.41a3.273 3.273 0 0 0-4.633.002 3.273 3.273 0 0 0 .002 4.628l3.41 3.41-3.41 3.41a3.275 3.275 0 0 0-.52 3.954 4.17 4.17 0 0 1-1.897-1.09L2.225 18.959a4.183 4.183 0 0 1 0-5.916L13.042 2.225a4.183 4.183 0 0 1 5.916 0"}),o.createElement("path",{d:"m30.48 27.971-4.471-4.47 4.471-4.472a1.774 1.774 0 1 0-2.51-2.508l-4.47 4.47-4.471-4.471a1.773 1.773 0 1 0-2.51 2.509l4.472 4.471-4.471 4.471a1.774 1.774 0 1 0 2.509 2.51l4.471-4.472 4.471 4.471a1.773 1.773 0 0 0 2.51 0 1.774 1.774 0 0 0 0-2.509"}))))}},83913(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m18.958 2.225 10.817 10.817a4.184 4.184 0 0 1 .246 5.648l-5.69-5.266a3.47 3.47 0 0 0-4.885.165 3.46 3.46 0 0 0 .169 4.923l4.308 3.988-4.31 3.99a3.46 3.46 0 0 0-.961 3.561l-.034.029a4.184 4.184 0 0 1-5.576-.305L2.225 18.958a4.183 4.183 0 0 1 0-5.916L13.042 2.225a4.183 4.183 0 0 1 5.916 0"}),o.createElement("path",{d:"M20.535 14.62a1.96 1.96 0 0 0 .097 2.79l5.5 5.09-5.5 5.09a1.96 1.96 0 0 0-.096 2.791c.74.787 1.982.83 2.776.094l7.057-6.533a1.964 1.964 0 0 0 0-2.885l-7.058-6.532a1.97 1.97 0 0 0-2.776.095"}))))}},13321(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m18.958 2.225 10.817 10.817a4.183 4.183 0 0 1 0 5.916L18.958 29.775a4.184 4.184 0 0 1-5.61.277 3.46 3.46 0 0 0-.962-3.562l-4.31-3.99 4.309-3.988a3.46 3.46 0 0 0 .169-4.923 3.47 3.47 0 0 0-4.885-.165L1.98 18.691a4.184 4.184 0 0 1 .245-5.649L13.042 2.225a4.183 4.183 0 0 1 5.916 0"}),o.createElement("path",{d:"M11.465 14.62c.75.793.707 2.048-.097 2.79l-5.5 5.09 5.5 5.09c.804.74.848 1.997.096 2.792-.74.786-1.982.83-2.776.093l-7.057-6.532a1.964 1.964 0 0 1 0-2.886l7.058-6.532a1.97 1.97 0 0 1 2.776.095"}))))}},6362(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M1 2.992C1 1.892 1.888 1 3 1a2 2 0 0 1 2 1.992v26.016A1.99 1.99 0 0 1 3 31a2 2 0 0 1-2-1.992z"}),o.createElement("path",{d:"M29 12v8H7v-8z"}))))}},60165(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"m21.448 1.296.133.118 2.384 2.383 3.672-1.223a1.41 1.41 0 0 1 1.315.224l.133.118c.337.337.479.816.387 1.275l-.045.172-1.225 3.67 2.384 2.386c.382.382.51.943.341 1.448l-.067.166a1.41 1.41 0 0 1-1.252.8l-.179-.008-3.566-.395-2.044 3.68c-.222.399-.623.662-1.068.716l-.169.01q-.115 0-.198-.014a1.42 1.42 0 0 1-1.132-.916l-.05-.167-.362-1.577L4.623 30.376c-.352.355-.81.567-1.293.615l-.208.01a2.123 2.123 0 0 1-1.646-3.463l.145-.161 16.216-16.218-1.577-.362a1.42 1.42 0 0 1-1.047-1.01l-.035-.171a1.42 1.42 0 0 1 .567-1.34l.146-.095 3.678-2.045-.394-3.564a1.41 1.41 0 0 1 .637-1.345l.156-.087a1.42 1.42 0 0 1 1.48.156"})))}},12822(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M10 14.001V18l-7.008.001a1.99 1.99 0 0 1-1.987-1.85L1 16.001a2 2 0 0 1 1.992-2zm19.008 0c1.05 0 1.91.81 1.987 1.85l.005.15a2 2 0 0 1-1.992 2L22 18v-3.999z"}),o.createElement("path",{d:"M20 5v22h-8V5z"}))))}},40708(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M13 1c4.03 0 7.596 1.987 9.772 5.034A13.5 13.5 0 0 0 19 5.5C11.544 5.5 5.5 11.544 5.5 19c0 1.31.186 2.575.534 3.772A11.98 11.98 0 0 1 1 13C1 6.373 6.373 1 13 1"}),o.createElement("path",{d:"M19 7c6.627 0 12 5.373 12 12s-5.373 12-12 12S7 25.627 7 19 12.373 7 19 7m0 2C13.477 9 9 13.477 9 19s4.477 10 10 10 10-4.477 10-10S24.523 9 19 9"}),o.createElement("path",{fillOpacity:.4,d:"m10.877 21.512 3.419 3.419A12 12 0 0 1 12.98 25a8.5 8.5 0 0 1-2.104-3.488m.259-5.744 7.712 7.713q-.932.522-1.956.874l-6.336-6.337c.09-.788.289-1.543.58-2.25m2.577-3.424 8.429 8.43q-.65.763-1.42 1.411l-8.42-8.42a8.6 8.6 0 0 1 1.41-1.421m4.222-1.778 6.395 6.397q-.357 1.02-.883 1.946L15.7 11.164a8.4 8.4 0 0 1 2.234-.598m3.439.27A8.5 8.5 0 0 1 25 12.979V13q0 .7-.079 1.382z"}))))}},1677(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M15 1.033v29.934C7.182 30.453 1 23.948 1 16S7.182 1.547 15 1.033"}),o.createElement("path",{d:"m22 25 .117.007.112.02c.365.085.652.37.742.733l.022.123L23 26v4l-.007.117-.022.123c-.08.323-.316.584-.623.698l-.119.036-.112.02L22 31h-4l-.117-.007-.112-.02a1 1 0 0 1-.742-.733l-.022-.123L17 30v-4l.007-.117.02-.112c.085-.365.37-.652.733-.742l.123-.022L18 25zm8-4 .117.007.112.02c.365.085.652.37.742.733l.022.123L31 22v4l-.007.117-.022.123c-.08.323-.316.584-.623.698l-.119.036-.112.02L30 27h-4l-.117-.007-.112-.02a1 1 0 0 1-.742-.733l-.022-.123L25 26v-4l.007-.117.02-.112c.085-.365.37-.652.733-.742l.123-.022L26 21zm-8-4 .117.007.112.02c.365.085.652.37.742.733l.022.123L23 18v4l-.007.117-.022.123c-.08.323-.316.584-.623.698l-.119.036-.112.02L22 23h-4l-.117-.007-.112-.02a1 1 0 0 1-.742-.733l-.022-.123L17 22v-4l.007-.117.02-.112c.085-.365.37-.652.733-.742l.123-.022L18 17zm8-4 .117.007.112.02c.365.085.652.37.742.733l.022.123L31 14v4l-.007.117-.022.123c-.08.323-.316.584-.623.698l-.119.036-.112.02L30 19h-4l-.117-.007-.112-.02a1 1 0 0 1-.742-.733l-.022-.123L25 18v-4l.007-.117.02-.112c.085-.365.37-.652.733-.742l.123-.022L26 13zm-8-4 .117.007.112.02c.365.085.652.37.742.733l.022.123L23 10v4l-.007.117-.022.123c-.08.323-.316.584-.623.698l-.119.036-.112.02L22 15h-4l-.117-.007-.112-.02a1 1 0 0 1-.742-.733l-.022-.123L17 14v-4l.007-.117.02-.112c.085-.365.37-.652.733-.742l.123-.022L18 9zm8-4 .117.007.112.02c.365.085.652.37.742.733l.022.123L31 6v4l-.007.117-.022.123c-.08.323-.316.584-.623.698l-.119.036-.112.02L30 11h-4l-.117-.007-.112-.02a1 1 0 0 1-.742-.733l-.022-.123L25 10V6l.007-.117.02-.112c.085-.365.37-.652.733-.742l.123-.022L26 5zm-8-4 .117.007.112.02c.365.085.652.37.742.733l.022.123L23 2v4l-.007.117-.022.123c-.08.323-.316.584-.623.698l-.119.036-.112.02L22 7h-4l-.117-.007-.112-.02a1 1 0 0 1-.742-.733l-.022-.123L17 6V2l.007-.117.02-.112c.085-.365.37-.652.733-.742l.123-.022L18 1z"}))))}},19889(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M27 2.992C27 1.892 27.888 1 29 1a2 2 0 0 1 2 1.992v26.016A1.99 1.99 0 0 1 29 31a2 2 0 0 1-2-1.992z"}),o.createElement("path",{d:"M25 12v8H3v-8z"}))))}},8035(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M20 1c6.075 0 11 4.925 11 11 0 4.219-2.375 7.883-5.86 9.728V9.5h-4.974A10.45 10.45 0 0 0 14 7.5c-1.58 0-3.08.35-4.424.974C11.046 4.13 15.158 1 20 1"}),o.createElement("path",{fillOpacity:.4,d:"M14 9c1.241 0 2.424.251 3.5.706v16.588a9 9 0 0 1-1.461.474A8.5 8.5 0 0 0 5.232 15.961 9.004 9.004 0 0 1 14 9"}),o.createElement("path",{fillOpacity:.4,d:"M8 17a7 7 0 1 1 0 14 7 7 0 0 1 0-14"}),o.createElement("path",{d:"M23.64 11v16.294h7.412V31H19V11z"}))))}},1567(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20 1c6.075 0 11 4.925 11 11q0 .251-.011.5l-3.054.001-.339.012a2.7 2.7 0 0 0-.828.169c-.3.115-.568.292-.796.52-.14.14-.26.296-.37.47l-.11.188-1.157 2.276C23.455 11.226 19.163 7.5 14 7.5c-1.58 0-3.08.35-4.424.974C11.046 4.13 15.158 1 20 1"}),o.createElement("path",{d:"M14 9a9 9 0 0 1 8.962 9.838L21.55 21.61l-3.897-7.682a3 3 0 0 0-.516-.726 2.3 2.3 0 0 0-.796-.52 2.6 2.6 0 0 0-.792-.168l-.322-.012L10.5 12.5v3.375A8.5 8.5 0 0 0 8 15.5c-.97 0-1.9.162-2.768.461A9.004 9.004 0 0 1 14 9"}),o.createElement("path",{fillOpacity:.4,d:"M8 17c.881 0 1.724.163 2.5.46v13.08A7 7 0 1 1 8 17"}),o.createElement("path",{d:"M31.11 14v16.998h-3.477v-9.776l.008-.488q.01-.333.035-.69l.027-.362L23.2 28.42l-.114.192q-.185.27-.452.426-.284.168-.633.202l-.178.008h-.536l-.222-.013a1.432 1.432 0 0 1-1.066-.66l-.089-.155-4.527-8.75.041.407.03.404.012.261.01.48v9.776H12V14l3.174.001.285.01q.193.012.344.07.152.06.274.181.093.093.181.24l.059.105 4.604 9.073.22.47q.216.479.414.98.198-.513.42-.997l.225-.477.23-.463 4.363-8.586.079-.137q.078-.126.16-.208a.8.8 0 0 1 .275-.18q.1-.039.22-.057l.124-.013.285-.01z"}))))}},99783(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M24.522 16.073q.503.002.837.116.463.156.797.337l.801.434c.44.24.902.375 1.38.375.532 0 1.03-.14 1.453-.448l.11-.086q-.486.998-1.155 1.873a2 2 0 0 0-.112-.059 16 16 0 0 0-1.772-.749 38 38 0 0 0-1.123-.376l-.54-.167q-.403-.12-.74-.249a10 10 0 0 0-.134-.997q.09-.004.198-.004M20 1c5.93 0 10.765 4.694 10.992 10.57a8 8 0 0 0-.974-.654q-.781-.45-1.67-.77a10.7 10.7 0 0 0-1.882-.485 12 12 0 0 0-1.998-.161c-1.254 0-2.393.195-3.409.594l-.1.042A10.46 10.46 0 0 0 14 7.5c-1.58 0-3.08.35-4.424.974C11.046 4.13 15.158 1 20 1"}),o.createElement("path",{fillOpacity:.4,d:"M14 9c2.077 0 3.989.703 5.512 1.885a7.4 7.4 0 0 0-1.049.83 7.05 7.05 0 0 0-2.21 5.101c0 1.093.155 2.048.484 2.864.322.798.756 1.485 1.306 2.047a6.5 6.5 0 0 0 1.801 1.304q.605.297 1.232.53a9 9 0 0 1-.78.87 2.8 2.8 0 0 0-.959-.17 2.68 2.68 0 0 0-2 .888l-.086.105-.112.15-.063.093-.762 1.203a9 9 0 0 1-.275.068A8.5 8.5 0 0 0 5.232 15.961 9.004 9.004 0 0 1 14 9"}),o.createElement("path",{d:"M8 17a7 7 0 1 1 0 14 7 7 0 0 1 0-14M24.468 11q.9 0 1.753.141a9 9 0 0 1 1.618.416q.766.276 1.431.659.533.306.974.677l.215.189-1.129 2.109-.102.15q-.155.213-.32.333-.222.161-.572.161-.247 0-.524-.124l-.14-.07-.806-.437a6.7 6.7 0 0 0-1.028-.436 4.1 4.1 0 0 0-1.316-.195q-1.276 0-1.9.544-.625.545-.625 1.47 0 .592.376.981.376.39.987.672.49.225 1.09.421l.834.259q.532.168 1.078.36.819.29 1.605.679t1.397.994.987 1.47q.376.867.376 2.09 0 1.356-.47 2.538a5.9 5.9 0 0 1-1.363 2.062q-.894.88-2.203 1.383-1.31.504-2.975.504a9.5 9.5 0 0 1-1.86-.188 11 11 0 0 1-1.834-.53q-.886-.344-1.665-.813a7.3 7.3 0 0 1-1.118-.821L17 28.42l1.343-2.122.112-.15q.125-.141.305-.24a1.2 1.2 0 0 1 .577-.147q.322 0 .65.163l.163.092.927.564q.516.309 1.188.564t1.585.255q1.236 0 1.921-.544.685-.543.685-1.726 0-.684-.376-1.115a2.9 2.9 0 0 0-.987-.711 9 9 0 0 0-1.39-.497 42 42 0 0 1-1.599-.477 12 12 0 0 1-1.598-.645 5 5 0 0 1-1.39-1.007q-.612-.625-.988-1.558-.376-.934-.376-2.304 0-1.1.443-2.15.444-1.047 1.303-1.866.86-.82 2.11-1.31t2.86-.49"}))))}},48805(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M20 1c6.075 0 11 4.925 11 11 0 4.842-3.129 8.954-7.475 10.423A10.45 10.45 0 0 0 24.5 18c0-5.799-4.701-10.5-10.5-10.5-1.58 0-3.08.35-4.424.974C11.046 4.13 15.158 1 20 1"}),o.createElement("path",{d:"M14 9a9 9 0 0 1 2.039 17.768A8.5 8.5 0 0 0 5.232 15.961 9.004 9.004 0 0 1 14 9"}),o.createElement("path",{d:"M8 17a7 7 0 1 1 0 14 7 7 0 0 1 0-14"}))))}},71908(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 1c8.27 0 15 6.73 15 15s-6.73 15-15 15S1 24.27 1 16 7.73 1 16 1m4.5 22h-9a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5m3.902-3.578c-.222.532 0 1.137.497 1.409l.11.052 2.078.857.14.047q.144.039.291.039c.452 0 .864-.269 1.04-.69.222-.532 0-1.137-.497-1.408l-.11-.052-2.079-.858-.124-.043a1.127 1.127 0 0 0-1.346.647m-17.985-.645-.115.04-2.08.856-.118.057a1.115 1.115 0 0 0-.491 1.402 1.13 1.13 0 0 0 1.33.653l.14-.047 2.08-.855.117-.057c.416-.231.637-.696.562-1.156l-.028-.126-.043-.123-.057-.118a1.13 1.13 0 0 0-1.297-.526M22.814 7.03l-5.393 5.356-.136-.05a3.8 3.8 0 0 0-1.198-.19c-2.137 0-3.875 1.727-3.875 3.853s1.738 3.853 3.875 3.853 3.875-1.727 3.875-3.853l-.01-.266-.025-.242a4 4 0 0 0-.16-.693l-.046-.126 5.388-5.352a1.61 1.61 0 0 0-.002-2.292l-.124-.111a1.635 1.635 0 0 0-2.17.113m3.397 7.852-.13.008a1.12 1.12 0 0 0-.995 1.11c0 .576.439 1.05 1.003 1.111l.122.007 2.25.001.152-.011.13-.03c.51-.144.843-.576.843-1.077a1.12 1.12 0 0 0-1.002-1.111l-.123-.007zm-20.25 0h-2.25l-.13.007A1.12 1.12 0 0 0 2.585 16c0 .576.44 1.05 1.003 1.111l.122.007h2.25l.132-.008A1.12 1.12 0 0 0 7.086 16c0-.617-.503-1.118-1.125-1.118m-2.347-4.017c-.222.534.001 1.14.5 1.409l.11.052 2.078.856.139.047a1.13 1.13 0 0 0 1.33-.65 1.117 1.117 0 0 0-.498-1.41l-.11-.052-2.08-.856-.123-.043a1.13 1.13 0 0 0-1.346.647m23.592-.642-.116.04-2.078.853-.119.057a1.113 1.113 0 0 0-.49 1.404 1.12 1.12 0 0 0 1.33.652l.14-.048 2.076-.852.118-.056c.417-.23.638-.696.563-1.154l-.027-.125-.043-.123-.057-.118a1.13 1.13 0 0 0-1.297-.53M6.54 6.517a1.11 1.11 0 0 0-.086 1.482l.087.097 1.591 1.581.112.098a1.128 1.128 0 0 0 1.48-.098 1.113 1.113 0 0 0 .087-1.482l-.087-.098-1.592-1.581-.106-.093a1.13 1.13 0 0 0-1.486.094m4.382-2.91a1.116 1.116 0 0 0-.651 1.345l.04.115.862 2.067.059.121a1.124 1.124 0 0 0 1.41.484c.535-.219.809-.803.65-1.344l-.04-.115-.861-2.067-.057-.117a1.13 1.13 0 0 0-1.412-.488m8.915.496-.053.11-.863 2.064-.043.124a1.117 1.117 0 0 0 1.082 1.423c.406 0 .78-.217.98-.567l.06-.121.862-2.065.044-.124c.13-.456-.045-.94-.426-1.213l-.109-.069-.118-.057-.124-.042a1.13 1.13 0 0 0-1.292.537m-3.75-1.516c-.58 0-1.057.437-1.119.996l-.006.122-.001 2.235.007.13c.065.557.54.989 1.118.989.58 0 1.057-.437 1.118-.997l.007-.121V3.705l-.007-.13a1.12 1.12 0 0 0-1.117-.988"})))}},26359(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M22.75 2.606C27.64 5.081 31 10.156 31 16c0 8.27-6.73 15-15 15a14.97 14.97 0 0 1-11.171-5H7l.223-.007.15-.011.154-.017.207-.037C9.646 25.543 11 23.916 11 22c0-.727-.195-1.41-.535-2H11l.223-.007.15-.011.154-.017.207-.037C13.646 19.543 15 17.916 15 16c0-.727-.195-1.41-.535-2H15l.223-.007.15-.011.154-.017.207-.037C17.646 13.543 19 11.916 19 10c0-.727-.195-1.41-.535-2H19l.223-.007.15-.011.154-.017.207-.037C21.646 7.543 23 5.916 23 4c0-.474-.083-.93-.235-1.352Z"}),o.createElement("path",{d:"M7 20H3a2 2 0 0 0-.15 3.995L3 24h4l.15-.005a2 2 0 0 0 0-3.99zm4-6H6a2 2 0 0 0-.15 3.995L6 18h5l.15-.005a2 2 0 0 0 0-3.99zm4-6H8a2 2 0 0 0-.15 3.995L8 12h7l.15-.005a2 2 0 0 0 0-3.99zm4-6H5a2 2 0 0 0-.15 3.995L5 6h14l.15-.005a2 2 0 0 0 0-3.99z"}))))}},402(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.008 1C30.108 1 31 1.888 31 3a2 2 0 0 1-1.992 2H2.992A1.99 1.99 0 0 1 1 3a2 2 0 0 1 1.992-2z"}),o.createElement("path",{d:"M12 7h8v22h-8z"}))))}},61459(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m25.168 5.51-.153-.01h-5.69a1.5 1.5 0 0 0-1.5 1.5l.006.145A1.5 1.5 0 0 0 19.325 8.5h2.068l-5.991 5.992a1.5 1.5 0 0 0 1.06 2.56l.148-.007c.341-.033.664-.183.913-.432l5.991-5.992v2.07a1.5 1.5 0 0 0 3 0V7q0-.147-.03-.295l-.017-.07-.024-.079a1 1 0 0 0-.041-.127l-.028-.06-.085-.158-.021-.036a1.5 1.5 0 0 0-.421-.423l-.049-.03-.101-.055a1 1 0 0 0-.111-.054l-.061-.023-.171-.05-.042-.01z"}),o.createElement("path",{d:"M28 1a3 3 0 0 1 3 3v17a3 3 0 0 1-3 3H16.5v-2H28a1 1 0 0 0 .993-.883L29 21V4a1 1 0 0 0-.883-.993L28 3H12a1 1 0 0 0-.993.883L11 4v11.5H9V4a3 3 0 0 1 3-3z"}),o.createElement("path",{fillOpacity:.4,d:"M12 17a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3v-8a3 3 0 0 1 3-3z"}))))}},8609(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M19 25v6h-6v-6zm12 0v4.008c0 1.1-.898 1.992-1.992 1.992H25v-6zM7 25v6H2.992C1.892 31 1 30.102 1 29.008V25zm6-6v6H7v-6zm12 0v6h-6v-6zM7 13v6H1v-6zm12 0v6h-6v-6zm12 0v6h-6v-6zM13 7v6H7V7zm12 0v6h-6V7zM7 1v6H1V2.992C1 1.892 1.898 1 2.992 1zm12 0v6h-6V1zm10.008 0C30.108 1 31 1.898 31 2.992V7h-6V1z"}),o.createElement("path",{fillOpacity:.4,d:"M13 25v6H7v-6zm12 0v6h-6v-6zM7 19v6H1v-6zm12 0v6h-6v-6zm12 0v6h-6v-6zm-18-6v6H7v-6zm12 0v6h-6v-6zM7 7v6H1V7zm12 0v6h-6V7zm12 0v6h-6V7zM13 1v6H7V1zm12 0v6h-6V1z"}))))}},83708(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28 1a3 3 0 0 1 3 3v24c0 1.654-1.346 3-3 3H4c-1.654 0-3-1.346-3-3V4a3 3 0 0 1 3-3Zm-1 3H5a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h21.943a1 1 0 0 0 1-.998l.055-22A1 1 0 0 0 27 4"}),o.createElement("path",{d:"M8 6c.492 0 .942.178 1.29.472A3 3 0 0 0 10 11.1v9.8a3 3 0 0 0-.71 4.627 2 2 0 0 1-3.284-1.379L6 24V8a2 2 0 0 1 2-2m8.5 1a1.5 1.5 0 0 1 .144 2.993L16.5 10h-5a1.5 1.5 0 0 1-.144-2.993L11.5 7zm4 5a1.5 1.5 0 0 1 .144 2.993L20.5 15h-5a1.5 1.5 0 0 1-.144-2.993L15.5 12zm-.5 6.5a1.5 1.5 0 0 0-1.5-1.5h-5a1.5 1.5 0 0 0 0 3h5a1.5 1.5 0 0 0 1.5-1.5M16.5 22a1.5 1.5 0 0 1 .144 2.993L16.5 25h-5a1.5 1.5 0 0 1-.144-2.993L11.5 22z"}),o.createElement("path",{d:"M24 6a2 2 0 0 1 2 2v16a2 2 0 1 1-4 0v-7.901a2.999 2.999 0 0 0 0-5.198V8a2 2 0 0 1 2-2"}))))}},94097(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28 1a3 3 0 0 1 3 3v24c0 1.654-1.346 3-3 3H4c-1.654 0-3-1.346-3-3V4a3 3 0 0 1 3-3Zm-1 3H5a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h21.943a1 1 0 0 0 1-.998l.055-22A1 1 0 0 0 27 4"}),o.createElement("path",{d:"M20.368 20.737a2.632 2.632 0 0 1 0 5.263H8.632a2.632 2.632 0 1 1 0-5.263Zm3-7.369a2.632 2.632 0 1 1 0 5.264H11.632a2.632 2.632 0 0 1 0-5.264Zm-3-7.368a2.632 2.632 0 0 1 0 5.263H8.632a2.632 2.632 0 0 1 0-5.263Z"}))))}},25086(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28 1a3 3 0 0 1 3 3v24c0 1.654-1.346 3-3 3H4c-1.654 0-3-1.346-3-3V4a3 3 0 0 1 3-3Zm-1 3H5a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h21.943a1 1 0 0 0 1-.998l.055-22A1 1 0 0 0 27 4"}),o.createElement("path",{d:"M13.5 7a1.5 1.5 0 0 1 .144 2.993L13.5 10h-6a1.5 1.5 0 0 1-.144-2.993L7.5 7zm8 0a1.5 1.5 0 0 1 .144 2.993L21.5 10h-3a1.5 1.5 0 0 1-.144-2.993L18.5 7zm-11 5a1.5 1.5 0 0 1 .144 2.993L10.5 15h-3a1.5 1.5 0 0 1-.144-2.993L7.5 12zm14 0a1.5 1.5 0 0 1 .144 2.993L24.5 15h-6a1.5 1.5 0 0 1-.144-2.993L18.5 12zM15 18.5a1.5 1.5 0 0 0-1.5-1.5h-6a1.5 1.5 0 0 0 0 3h6a1.5 1.5 0 0 0 1.5-1.5m8 0a1.5 1.5 0 0 0-1.5-1.5h-3a1.5 1.5 0 0 0 0 3h3a1.5 1.5 0 0 0 1.5-1.5M11.5 22a1.5 1.5 0 0 1 .144 2.993L11.5 25h-4a1.5 1.5 0 0 1-.144-2.993L7.5 22zm13 0a1.5 1.5 0 0 1 .144 2.993L24.5 25h-6a1.5 1.5 0 0 1-.144-2.993L18.5 22z"}))))}},21620(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M13.5 15.5v5H2a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1zm5 0H30a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H18.5zm-5 8v5H7a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1zm5 0H27a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-8.5zm-1 7.5h-3V11.835l-.616-.256a5.5 5.5 0 1 1 4.232 0l-.616.256z"}),o.createElement("path",{d:"M17.5 31h-3V11.835l-.616-.256a5.5 5.5 0 1 1 4.232 0l-.616.256z"}))))}},16749(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M11.76 1c.172 0 .333.075.443.205l2.737 3.257h13.752A2.31 2.31 0 0 1 31 6.769v17.5A1.73 1.73 0 0 1 29.27 26h-5.928l3.588-3.562a1.93 1.93 0 0 0 .48-1.953l-.057-.157a1.935 1.935 0 0 0-1.788-1.192h-3.717v-6.704c0-1.07-.869-1.932-1.935-1.932h-7.826a1.933 1.933 0 0 0-1.935 1.932v6.704H6.435a1.931 1.931 0 0 0-1.36 3.305L8.658 26H2.731A1.73 1.73 0 0 1 1 24.27V3.125C1 1.952 1.952 1 3.126 1z"}),o.createElement("path",{d:"M25.565 20.636h-5.217v-8.204a.433.433 0 0 0-.435-.432h-7.826a.433.433 0 0 0-.435.432v8.204H6.435a.44.44 0 0 0-.402.267.43.43 0 0 0 .095.47l9.565 9.5a.43.43 0 0 0 .615 0l9.565-9.5a.43.43 0 0 0-.308-.737"}))))}},4773(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M17.286 1c.207 0 .406.075.562.21l5.535 4.844A3 3 0 0 0 22.666 8v6.334h-.662c-2.161 0-3.272 2.244-1.903 3.94l2.686 3.329a2.5 2.5 0 0 0-1.29.896 2.5 2.5 0 0 0-2-.999h-4.994c-.825 0-1.551.392-2.006 1a2.5 2.5 0 0 0-2-1H5.503A2.493 2.493 0 0 0 3 23.997v6.006c0 .354.075.692.209.998L2 31a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Z"}),o.createElement("path",{d:"M22.5 23.997c0-.55.438-.997 1.003-.997h4.994c.554 0 1.003.453 1.003.997v6.006c0 .55-.438.997-1.003.997h-4.994a1.004 1.004 0 0 1-1.003-.997zM13.5 23.997c0-.55.438-.997 1.003-.997h4.994c.554 0 1.003.453 1.003.997v6.006c0 .55-.438.997-1.003.997h-4.994a1.004 1.004 0 0 1-1.003-.997zm-9 0c0-.55.438-.997 1.003-.997h4.994c.554 0 1.003.453 1.003.997v6.006c0 .55-.438.997-1.003.997H5.503a1.004 1.004 0 0 1-1.003-.997zM24.164 8v7.834H22c-.91 0-1.306.79-.735 1.498l3.792 4.7c.504.625 1.379.623 1.882 0l3.792-4.7c.57-.706.18-1.498-.722-1.498h-2.124V8a1.5 1.5 0 0 0-1.5-1.5h-.722a1.5 1.5 0 0 0-1.5 1.5"}))))}},80372(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M9.5 13a.5.5 0 0 1 .492.41l.008.09v1.498c0 .515.387.938.886.995l.116.007h5.041a9 9 0 0 0-.845.837l-.422.513-.347.484-.312.496-.195.354-.259-.021a2.7 2.7 0 0 0-1.607.494 2.786 2.786 0 0 0-.683 3.872l1.928 2.767.266.311.306.271.327.213.29.142.51.153.354.053.286.001.37-.037.313-.07.27-.093.255-.118.245-.146.375-.3 2.596-2.883.216-.273a2.79 2.79 0 0 0 .029-3.127l-.07-.093.284-.148a3.6 3.6 0 0 1 1.418-.343 3.66 3.66 0 0 1 2.663.998 3.73 3.73 0 0 1 1.19 2.616 3.73 3.73 0 0 1-.995 2.7 3.67 3.67 0 0 1-2.165 1.152l-.42.04A2.77 2.77 0 0 0 20.036 28H1.5a.5.5 0 0 1-.492-.41L1 27.5v-14a.5.5 0 0 1 .41-.492L1.5 13zM31 25.636V27.5a.5.5 0 0 1-.41.492L30.5 28l-.55.001A9.3 9.3 0 0 0 31 25.636M30.5 13a.5.5 0 0 1 .492.41l.008.09v6.992a9.3 9.3 0 0 0-2.602-4.255 9.22 9.22 0 0 0-5.989-2.49L22 13.746V13.5a.5.5 0 0 1 .41-.492L22.5 13zm-11.497 0c.505 0 .932.386.99.883l.005.093A9.1 9.1 0 0 0 17.428 15L12.998 15c-.505 0-.932-.386-.99-.883L12 14l.007-.117a.996.996 0 0 1 .874-.876l.116-.007zm7.996-3a1 1 0 0 1 .994.883L28 11l-.007.117a1 1 0 0 1-.877.876l-.117.007H5.001a1 1 0 0 1-.994-.883L4 11l.007-.117a1 1 0 0 1 .877-.876L5.001 10zm0-3a1 1 0 0 1 .994.883L28 8l-.007.117a1 1 0 0 1-.877.876L26.999 9H5.001a1 1 0 0 1-.994-.883L4 8l.007-.117a1 1 0 0 1 .877-.876L5.001 7zm0-3a1 1 0 0 1 .994.883L28 5l-.007.117a1 1 0 0 1-.877.876L26.999 6H5.001a1 1 0 0 1-.994-.883L4 5l.007-.117a1 1 0 0 1 .877-.876L5.001 4zm0-3a1 1 0 0 1 .994.883L28 2l-.007.117a1 1 0 0 1-.877.876L26.999 3H5.001a1 1 0 0 1-.994-.883L4 2l.007-.117a1 1 0 0 1 .877-.876L5.001 1z"}),o.createElement("path",{d:"M21.786 15.124a7.77 7.77 0 0 0-5.558 2.629l-.387.472a8.2 8.2 0 0 0-1.17 2.146l-.027.074-.194-.165a1.4 1.4 0 0 0-1.602.005 1.41 1.41 0 0 0-.345 1.955l1.929 2.769.16.177.152.124.167.1.15.068.284.074.156.017.371-.038.271-.093.245-.146.17-.15 2.48-2.768a1.406 1.406 0 0 0-.104-1.98l-.203-.154a1.4 1.4 0 0 0-.69-.208l-.05.002.018-.024q.147-.202.314-.389a4.97 4.97 0 0 1 3.566-1.689 5.04 5.04 0 0 1 3.656 1.368c1 .934 1.577 2.2 1.627 3.573a5.1 5.1 0 0 1-1.36 3.685 5.05 5.05 0 0 1-3.548 1.633 1.404 1.404 0 0 0-1.35 1.455c.029.76.652 1.354 1.422 1.354a7.86 7.86 0 0 0 5.532-2.534 7.92 7.92 0 0 0 2.106-5.696 7.91 7.91 0 0 0-2.517-5.526 7.84 7.84 0 0 0-5.097-2.12z"}))))}},65703(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M9.5 13a.5.5 0 0 1 .492.41l.008.09v1.498c0 .515.387.938.886.995l.116.007h5.592a4.6 4.6 0 0 0-.01 1.222l.037.262c.04.263.098.529.172.808l.06.22c-.279.623-.314 1.346-.146 2.035l.056.204q.092.301.239.566l.094.156.043.23c.135.648.391 1.205.724 1.67l.076.101v.32l-1.293.464-.697.262-.478.192c-1.58.657-2.527 1.291-3.044 2.29-.19.369-.346.697-.473.999L1.5 28a.5.5 0 0 1-.492-.41L1 27.5v-14a.5.5 0 0 1 .41-.492L1.5 13zm21 0a.5.5 0 0 1 .492.41l.008.09-.001 13.247-.011-.02c-.42-.694-.973-1.152-2.073-1.665l-.373-.167-.202-.086-.435-.176-.48-.186-.53-.197-.89-.322-.375-.134v-.242l.018-.022c.347-.49.621-1.074.768-1.75l.057-.308.094-.154a3.1 3.1 0 0 0 .295-.772l.043-.198a3.2 3.2 0 0 0-.085-1.565l-.06-.162.08-.209c.103-.281.183-.534.26-.826.216-.811.285-1.56.137-2.274-.229-1.107-1.01-1.865-2.09-2.312zm-11.497 0q.196.002.37.072a3.3 3.3 0 0 0-.757.515l-.107.104-.077.025c-.5.177-.932.482-1.262.911q-.138.18-.243.374L12.997 15c-.505 0-.932-.386-.99-.883L12 14l.007-.117a.996.996 0 0 1 .874-.876l.116-.007zm7.996-3a1 1 0 0 1 .994.883L28 11l-.007.117a1 1 0 0 1-.877.876l-.117.007H5.001a1 1 0 0 1-.994-.883L4 11l.007-.117a1 1 0 0 1 .877-.876L5.001 10zm0-3a1 1 0 0 1 .994.883L28 8l-.007.117a1 1 0 0 1-.877.876L26.999 9H5.001a1 1 0 0 1-.994-.883L4 8l.007-.117a1 1 0 0 1 .877-.876L5.001 7zm0-3a1 1 0 0 1 .994.883L28 5l-.007.117a1 1 0 0 1-.877.876L26.999 6H5.001a1 1 0 0 1-.994-.883L4 5l.007-.117a1 1 0 0 1 .877-.876L5.001 4zm0-3a1 1 0 0 1 .994.883L28 2l-.007.117a1 1 0 0 1-.877.876L26.999 3H5.001a1 1 0 0 1-.994-.883L4 2l.007-.117a1 1 0 0 1 .877-.876L5.001 1z"}),o.createElement("path",{d:"M22.293 14c1.563 0 3.244.5 3.475 1.616.164.79-.138 1.761-.409 2.469l-.275.686c.378.33.443.921.321 1.419-.076.314-.209.544-.375.667a3.47 3.47 0 0 1-.72 1.954l-.128.153-.052.057v1.832l1.948.693.557.204.266.1.503.199c1.213.494 2.064.983 2.405 1.642l.21.418c.411.848.54 1.324.57 1.761a1.13 1.13 0 0 1-1.006 1.123L29.46 31H14.13A1.13 1.13 0 0 1 13 29.87l.02-.2c.049-.38.18-.827.528-1.554l.212-.425c.363-.703 1.307-1.212 2.65-1.74l.523-.2.558-.204 1.949-.694V22.91l-.118-.119c-.283-.307-.732-.944-.783-1.933-.166-.123-.298-.353-.375-.667-.123-.503-.056-1.101.333-1.428l-.145-.468c-.246-.818-.539-2.041.008-2.753q.34-.442 1.002-.502c.397-.762 1.788-1.039 2.93-1.039"}))))}},45821(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M22.5 16a.5.5 0 0 0-.5.5v1.498C22 18.55 21.544 19 20.998 19h-9.996A1 1 0 0 1 10 17.998V16.5a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h29a.5.5 0 0 0 .5-.5v-14a.5.5 0 0 0-.5-.5z"}),o.createElement("path",{fillOpacity:.4,d:"M12.997 16A.996.996 0 0 0 12 17c0 .552.453 1 .997 1h6.006c.55 0 .997-.444.997-1 0-.552-.453-1-.997-1zm-7.996-3a1 1 0 1 0 0 2h21.998a1 1 0 1 0 0-2zm0-3a1 1 0 1 0 0 2h21.998a1 1 0 1 0 0-2zm0-3a1 1 0 1 0 0 2h21.998a1 1 0 1 0 0-2zm0-3a1 1 0 1 0 0 2h21.998a1 1 0 1 0 0-2z"}))))}},41792(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M18.934 1c.218 0 .429.088.582.243l1.408 1.424 1.648 1.666.46.465 1.77 1.79 2.956 2.989a.84.84 0 0 1 .242.59l-.001 13.747-2.494-2.494a8.9 8.9 0 0 0 .913-3.58l.008-.377c0-4.944-4.019-8.963-8.963-8.963S8.5 12.519 8.5 17.463c0 4.945 4.019 8.963 8.963 8.963a8.9 8.9 0 0 0 3.956-.92L26.913 31H4.923V1.833c0-.46.37-.833.824-.833ZM3.44 3v25.999L.967 29V3.722c0-.365.266-.668.61-.715L1.674 3z"}),o.createElement("path",{d:"M17.463 10c4.116 0 7.463 3.347 7.463 7.463 0 1.522-.46 2.976-1.298 4.201l6.965 6.964a1.39 1.39 0 1 1-1.965 1.966l-6.964-6.965a7.42 7.42 0 0 1-4.2 1.297c-4.117 0-7.464-3.347-7.464-7.463S13.347 10 17.463 10m-.113 2.1a5.25 5.25 0 1 0 0 10.5 5.25 5.25 0 0 0 0-10.5"}))))}},21919(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M18.934 1c.181 0 .358.061.5.171l.082.072 1.408 1.424 1.648 1.666.46.465 1.77 1.79 2.956 2.989c.129.13.211.299.235.48l.007.11v.797a7.2 7.2 0 0 0-2.533-.464c-1.9 0-3.69.737-5.026 2.073l-.193.2q-.286.31-.53.645l-.211-.522a.628.628 0 0 0-1.09-.14l-.049.078-3.387 6.277-1.93-1.952a.62.62 0 0 0-.548-.18.63.63 0 0 0-.411.26l-.052.086-3.16 6.389a.65.65 0 0 0 .028.622.63.63 0 0 0 .445.296l.092.007 4.057-.001-1.992 1.99a3.43 3.43 0 0 0-1.01 2.428A3.4 3.4 0 0 0 11.097 31H4.923V1.833a.83.83 0 0 1 .72-.827L5.748 1zM28 24.174 28 30.167a.83.83 0 0 1-.72.827l-.104.006H16.859l6.361-6.362h.126a.63.63 0 0 0 .433-.172l-.039-.01a7.075 7.075 0 0 0 4.26-.282M3.44 3v25.999L.967 29V3.722c0-.365.266-.668.61-.715L1.674 3zm7.902 5.028c-1.394 0-2.528 1.146-2.528 2.555s1.134 2.556 2.528 2.556 2.527-1.146 2.527-2.556-1.133-2.555-2.527-2.555"}),o.createElement("path",{d:"M25.467 12a5.64 5.64 0 0 1 2.554.611.323.323 0 0 1 .137.437l-.041.06-2.258 2.589v1.831h1.426l2.586-2.578a.32.32 0 0 1 .512.08 5.57 5.57 0 0 1-1.022 6.496 5.54 5.54 0 0 1-3.942 1.632 5.6 5.6 0 0 1-2.055-.391l-.276-.118-7.782 7.783a1.93 1.93 0 0 1-1.37.568 1.93 1.93 0 0 1-1.37-.568A1.92 1.92 0 0 1 12 29.06a1.93 1.93 0 0 1 .454-1.244l.117-.126 7.79-7.783a5.57 5.57 0 0 1 1.14-6.274A5.57 5.57 0 0 1 25.468 12"}))))}},20915(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M21.934 1c.218 0 .429.088.582.243l1.408 1.424 1.648 1.666.46.465 1.77 1.79 2.956 2.989a.84.84 0 0 1 .242.59v20a.83.83 0 0 1-.824.833H7.923V1.833c0-.46.37-.833.824-.833Zm.023 11.501a.62.62 0 0 0-.589.333l-3.387 6.277-1.93-1.952a.62.62 0 0 0-.548-.18.64.64 0 0 0-.463.346l-3.16 6.389a.65.65 0 0 0 .028.622.63.63 0 0 0 .537.303h13.901a.63.63 0 0 0 .526-.284.64.64 0 0 0 .058-.598l-4.423-10.86a.63.63 0 0 0-.55-.396m-7.616-4.473c-1.394 0-2.528 1.146-2.528 2.555s1.134 2.556 2.528 2.556 2.527-1.146 2.527-2.556-1.133-2.555-2.527-2.555"}),o.createElement("path",{fillOpacity:.4,d:"M6.439 3v25.999L3.967 29V3.722c0-.398.317-.722.706-.722zM2.854 6v20H1V6.556C1 6.249 1.297 6 1.662 6z"}))))}},51257(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm-4.24 8.193-4.919 4.673h-3.46v4.774h3.671l4.715 4.174a.28.28 0 0 0 .3.048.27.27 0 0 0 .166-.243V9.38a.265.265 0 0 0-.17-.245.29.29 0 0 0-.303.057m5.632 1.864a.836.836 0 0 0-1.14.104.756.756 0 0 0 .109 1.097c1.251.99 2.064 2.543 2.064 3.926 0 1.38-.813 2.933-2.066 3.928a.756.756 0 0 0-.108 1.095c.154.18.384.282.626.282.19 0 .373-.064.519-.181 1.612-1.28 2.651-3.281 2.651-5.124 0-1.846-1.039-3.848-2.655-5.127m-2.168 1.857a.834.834 0 0 0-1.132.172.757.757 0 0 0 .178 1.086c.815.569 1.24 1.242 1.24 2.012s-.425 1.445-1.24 2.011a.76.76 0 0 0-.179 1.087.836.836 0 0 0 1.131.174c1.225-.854 1.91-2.018 1.91-3.272 0-1.253-.685-2.417-1.908-3.27"})))}},47338(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M18.186 2q.916.048 1.784.145l.65.08.634.093c4.482.718 7.602 2.431 7.741 4.494l.005.145-2 19c-.015 2-2.79 5-10.5 5-7.577 0-10.416-2.898-10.498-4.896L6 25.957l-2-19c0-1.043.76-2.002 2.074-2.794l.299 1.545c-.562.408-.873.835-.873 1.249 0 .535.518 1.091 1.427 1.599l.003.019.455.217.06.028a11 11 0 0 0 .768.324q.135.051.276.101l.13.045.109.038a19 19 0 0 0 .611.191l.054.016.096.027.215.06.073.02.048.012.197.05.11.028.527.122.018.004.27.058.163.031.365.071.235.04.36.061.097.014.179.028.526.07.089.013.613.068q.325.033.657.058l.05.004.106.008q.25.018.505.031l.13.007.202.01.142.005a31 31 0 0 0 .577.017h.064l.493.005a30 30 0 0 0 1.988-.067l.357-.026.56-.05.02-.002.265-.03.006.027.713-.112.278-.03-.003-.012.533-.083.284-.05.553-.106.269-.058.409-.095.098-.022.073-.019.221-.055.048-.012.02-.006.043-.011.285-.078.062-.018a18 18 0 0 0 .671-.208l.13-.045.12-.041a15 15 0 0 0 .44-.165l.096-.038a11 11 0 0 0 .791-.36l.053-.027.046-.024q.09-.048.177-.097l.037-.02c.866-.498 1.357-1.04 1.357-1.56 0-1.007-1.838-2.09-4.654-2.78l-.523-.122-.27-.057-.552-.107-.572-.096-.292-.045-.373-.05-.89-.289-.035-.184-.026-.104-.025-.08-.037-.101-.065-.133a1.4 1.4 0 0 0-.386-.438l-.123-.082zM12.88 15.006c-2.082 0-3.477 1.11-3.52 2.77-.044 1.538.787 2.4 2.783 2.74l.328.056c1.079.186 1.618.267 1.618.72 0 .427-.465.6-1.097.6-1.32 0-2.151-.477-2.84-.892L9 22.921c.992.707 2.405 1.079 3.96 1.079 1.848 0 3.701-.812 3.701-3.006 0-1.333-.911-2.194-2.702-2.542l-.28-.055c-.886-.174-1.772-.223-1.772-.713 0-.39.483-.564 1.116-.564 1.072 0 1.934.403 2.504.725l1.016-1.928c-1.506-.793-2.529-.91-3.663-.91M20.324 15c-1.425 0-2.355.545-3.068 1.295l1.227 1.513c.391-.422.955-.781 1.755-.781.632 0 1.047.235 1.047.7 0 .471-.508.738-1.178.738h-.973v1.983h.949c.737 0 1.35.254 1.35.757 0 .52-.538.768-1.195.768-.664 0-1.252-.26-1.73-.744l-1.264 1.488c.7.818 1.785 1.283 3.124 1.283 1.772 0 3.44-.83 3.44-2.585 0-.892-.508-1.58-1.407-1.946.793-.384 1.233-1.054 1.233-1.952 0-1.52-1.376-2.517-3.31-2.517"}),o.createElement("path",{fillOpacity:.4,d:"m14.285 1-.072.007-7.002 1.361-.081.024c-.18.07-.3.246-.297.44l.009.084.974 5.017c.517.247 1.145.48 1.856.685l.361.1.347.089.505.117.25.053.53.103.555.094.276.042.576.077.602.068.695.06q.7.053 1.414.07l.717.01.574-.006q.572-.012 1.133-.045l.558-.039.55-.05.184-.02-1.141-5.88-.025-.08a.4.4 0 0 0-.097-.137l-.068-.051-3.679-2.14-.065-.03-.068-.017zM19.593 4.578l.901 4.638.55-.085.267-.047.669-.13.628-.144.338-.086c.986-.262 1.83-.573 2.469-.906l.23-.125-.775-1.297-.042-.058a.4.4 0 0 0-.111-.089l-.066-.028z"}))))}},27768(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M6.96 3.96v23.685h3.903a12.1 12.1 0 0 0 3.17 2.96H4.493A.49.49 0 0 1 4 30.12V4.94c0-.54.441-.98.986-.98zm1.974 19.744q.285 1.024.738 1.968h-.738ZM18.83 1c.284 0 .672.14.882.313l7.592 6.246c.206.17.38.535.38.808l.001 2.527A11.94 11.94 0 0 0 20.5 8.5c-5.51 0-10.162 3.729-11.566 8.796V1.982c0-.533.438-.982.978-.982z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m5.086 5.414a1.413 1.413 0 0 0-2 .001L20.5 18.501l-3.086-3.087a1.413 1.413 0 1 0-2 2l3.087 3.086-3.087 3.086a1.414 1.414 0 1 0 2 2L20.5 22.5l3.086 3.086a1.413 1.413 0 1 0 2-2L22.5 20.5l3.086-3.086a1.414 1.414 0 0 0 0-2"}))))}},28268(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M6.96 3.96v23.685h3.904a12.1 12.1 0 0 0 3.17 2.96H4.492A.49.49 0 0 1 4 30.12V4.94c0-.54.441-.98.986-.98zm1.974 19.744q.285 1.024.738 1.968h-.738zM18.83 1c.284 0 .672.14.882.313l7.592 6.246c.206.17.38.535.38.808l.002 2.527A11.94 11.94 0 0 0 20.5 8.5c-5.51 0-10.162 3.729-11.566 8.796V1.982c0-.533.438-.982.978-.982z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m4.624 5.125a1.466 1.466 0 0 0-1.779.48l-4.839 6.665-1.002-1a1.465 1.465 0 0 0-2.071 0 1.477 1.477 0 0 0 0 2.089l2.215 2.212c.281.279.654.43 1.06.429h.025l.043-.003a1.48 1.48 0 0 0 1.096-.604l5.846-8.052a1.476 1.476 0 0 0-.086-1.844l-.027-.063-.215-.156-.155-.097c-.067-.036-.067-.036-.11-.056"}))))}},24266(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m19.712 1.313 7.592 6.246c.206.17.38.535.38.808V24.69c0 .542-.44.982-.981.982H8.934V1.982c0-.533.438-.982.978-.982h8.918c.284 0 .672.14.882.313"}),o.createElement("path",{fillOpacity:.4,d:"M6.96 3.96v23.685h17.764v1.974a.983.983 0 0 1-.986.986H4.492A.49.49 0 0 1 4 30.12V4.94c0-.54.441-.98.986-.98z"}))))}},56934(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1ZM16.19 21h-5.714c-.631 0-1.143.597-1.143 1.333 0 .684.442 1.248 1.01 1.325l.133.009h5.714c.632 0 1.143-.597 1.143-1.334 0-.736-.511-1.333-1.143-1.333m1.31-5h-7c-.644 0-1.167.597-1.167 1.333 0 .684.45 1.248 1.03 1.325l.137.009h7c.644 0 1.167-.597 1.167-1.334 0-.736-.523-1.333-1.167-1.333m3.833-5.667H10.667a1.333 1.333 0 0 0-.156 2.658l.156.009h10.666a1.333 1.333 0 1 0 0-2.667"})))}},78701(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm.079 6h-4.862L9 12.457l1.935 2.567c.219.284.485.498.8.675.38.213.804.318 1.245.318l.21-.01a2.6 2.6 0 0 0 .618-.132l.147-.057v4.756h-3.08v5.464h12.13v-5.464h-2.641z"}),o.createElement("path",{d:"M18.865 8.5v13.574h2.64v2.464h-9.13v-2.464h3.08v-8.085q0-.594.033-1.243l-1.815 1.507a1.2 1.2 0 0 1-.352.204 1.05 1.05 0 0 1-.853-.067 1.1 1.1 0 0 1-.335-.269l-1.078-1.43L16.049 8.5z"}))))}},49582(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm-3.89 6q-1.318 0-2.494.357a6.5 6.5 0 0 0-2.2 1.149 6.5 6.5 0 0 0-1.613 1.921q-.64 1.144-.853 2.607l-.212 1.441 3.239.573.136.021.254.03q.189.015.366.016c.631 0 1.21-.174 1.68-.558.419-.342.709-.807.91-1.374a.8.8 0 0 1 .097-.179.5.5 0 0 1 .108-.108.6.6 0 0 1 .169-.085.7.7 0 0 1 .215-.028l.155.004.117.009.001-.002.014.022c.03.057.061.193.061.447q0 .385-.09.71a3.3 3.3 0 0 1-.298.72 5.5 5.5 0 0 1-.572.833q-.39.479-.933 1.021l-4.623 4.657a3 3 0 0 0-.808 1.204c-.145.4-.222.798-.222 1.195v2.6h14.264v-3.48c0-.729-.265-1.391-.787-1.886l-.157-.138c-.486-.39-1.087-.576-1.744-.576H19.22l.273-.28q.658-.667 1.249-1.328a11.5 11.5 0 0 0 1.145-1.506q.527-.832.834-1.757a6.7 6.7 0 0 0 .323-2.099c0-.876-.157-1.699-.474-2.456a5.64 5.64 0 0 0-1.398-1.993 6.3 6.3 0 0 0-2.123-1.267q-1.21-.438-2.653-.437"}),o.createElement("path",{d:"M16.396 8.5q1.188 0 2.14.347a4.8 4.8 0 0 1 1.622.962q.67.615 1.028 1.469.358.852.358 1.875 0 .88-.247 1.628-.248.748-.677 1.425a10 10 0 0 1-.995 1.309 38 38 0 0 1-1.205 1.281l-3.135 3.212q.604-.175 1.194-.28a6.3 6.3 0 0 1 1.105-.105h2.992q.55 0 .869.302.32.303.319.798v1.98H10.5v-1.1a2 2 0 0 1 .132-.682q.132-.363.462-.66l4.62-4.653q.594-.594 1.034-1.133.44-.54.726-1.062t.429-1.045a4.2 4.2 0 0 0 .143-1.105q0-.957-.456-1.469-.457-.51-1.392-.511-.385 0-.704.11a2.1 2.1 0 0 0-.572.297 2 2 0 0 0-.434.44 2.3 2.3 0 0 0-.292.55q-.176.495-.445.715-.27.22-.732.22a3.325 3.325 0 0 1-.495-.044l-1.804-.319q.176-1.2.676-2.09a5 5 0 0 1 1.243-1.485 5 5 0 0 1 1.7-.886 7 7 0 0 1 2.057-.291"}))))}},54335(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm-3.29 6q-1.318 0-2.494.357a6.5 6.5 0 0 0-2.2 1.149 6.5 6.5 0 0 0-1.614 1.921q-.64 1.144-.852 2.607l-.212 1.441 3.238.573.136.021.254.03q.189.015.367.016l.208-.006.194-.02v3.351l-.185-.05a3 3 0 0 0-.668-.071q-.317 0-.633.055-.287.049-.563.153L9 19.733l.46 1.343q.441 1.284 1.065 2.26a6.6 6.6 0 0 0 1.575 1.723 6.2 6.2 0 0 0 2.085 1.018q1.1.303 2.437.302 1.333 0 2.573-.38a6.8 6.8 0 0 0 2.302-1.208 6.1 6.1 0 0 0 1.642-2.08c.414-.848.615-1.812.615-2.881l-.005-.25c-.05-1.324-.492-2.438-1.29-3.298l-.115-.12.074-.084a4.553 4.553 0 0 0 .845-1.697q.206-.779.205-1.723a5.4 5.4 0 0 0-.456-2.191 5.3 5.3 0 0 0-1.341-1.84 6.2 6.2 0 0 0-2.051-1.201C18.83 7.139 17.955 7 16.996 7"}),o.createElement("path",{d:"M16.996 8.5q1.188 0 2.112.335a4.7 4.7 0 0 1 1.562.908q.638.571.968 1.326.33.753.33 1.589 0 .76-.154 1.337a3.1 3.1 0 0 1-.457 1 2.9 2.9 0 0 1-.748.721 4.5 4.5 0 0 1-1.017.495q2.662.924 2.662 3.619 0 1.275-.462 2.222a4.6 4.6 0 0 1-1.238 1.573 5.3 5.3 0 0 1-1.798.94 7.2 7.2 0 0 1-2.134.314q-1.144 0-2.035-.248a4.7 4.7 0 0 1-1.584-.77 5.1 5.1 0 0 1-1.216-1.336q-.522-.814-.907-1.936l1.518-.616q.198-.088.39-.121t.38-.033q.351 0 .632.137a.94.94 0 0 1 .424.402q.495.913 1.05 1.325.555.414 1.304.413.571 0 .995-.192a2.2 2.2 0 0 0 .704-.495q.28-.303.424-.688t.143-.781q0-.517-.072-.93a1.2 1.2 0 0 0-.401-.709q-.33-.297-.996-.456t-1.853-.16v-2.354q1 0 1.617-.154.615-.154.951-.423.335-.27.446-.655t.11-.847q0-.946-.457-1.458-.456-.51-1.391-.511-.386 0-.704.11a2.1 2.1 0 0 0-.572.297 2 2 0 0 0-.435.44 2.3 2.3 0 0 0-.291.55q-.177.495-.446.715-.27.22-.731.22a3.325 3.325 0 0 1-.495-.044l-1.804-.319q.175-1.2.676-2.09a5 5 0 0 1 1.243-1.485 5 5 0 0 1 1.7-.886 7 7 0 0 1 2.057-.291"}))))}},12128(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm1.49 6h-5.51L8 18.112l.49 2.344.049.186c.147.484.434.888.832 1.193l.166.117.173.102c.352.19.742.288 1.15.288h4.946v3.685h5.97v-3.74l.026-.004.17-.047c.336-.107.641-.295.892-.57.366-.401.562-.908.562-1.451v-3.414h-1.65z"}),o.createElement("path",{d:"M20.276 18.301h1.65v1.914a.63.63 0 0 1-.17.44q-.17.187-.49.187h-.99v3.685h-2.97v-3.685H10.86a.93.93 0 0 1-.577-.198.84.84 0 0 1-.325-.495l-.352-1.683L17.02 8.5h3.256zm-2.97-4.18q0-.386.028-.83.027-.447.082-.919l-4.235 5.929h4.125z"}))))}},58577(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm2.677 6H11.99l-1.804 10.61 3.906 1.059.462-.182a4.2 4.2 0 0 1 1.563-.303c.454 0 .714.085.851.212.108.1.179.29.179.675q0 .404-.088.735c-.042.157-.1.279-.175.376a.6.6 0 0 1-.235.175c-.11.051-.284.085-.532.085-.284 0-.489-.031-.61-.078a3.3 3.3 0 0 1-.553-.264l-.635-.394a2.66 2.66 0 0 0-1.414-.408c-.41 0-.808.097-1.17.287-.35.184-.648.443-.888.764L9 22.811l.944.92q.52.505 1.145.943a8.6 8.6 0 0 0 3 1.325 8 8 0 0 0 1.83.204c1.07 0 2.072-.172 2.997-.52a7.2 7.2 0 0 0 2.445-1.507 7 7 0 0 0 1.617-2.329c.388-.9.579-1.885.579-2.941a6.9 6.9 0 0 0-.43-2.445 5.9 5.9 0 0 0-1.336-2.093l-.227-.216a6.2 6.2 0 0 0-1.605-1.042l-.291-.123.085-.002a4.4 4.4 0 0 0 1.063-.172 3.1 3.1 0 0 0 1.198-.655c.33-.3.58-.662.739-1.074q.212-.555.21-1.176z"}),o.createElement("path",{d:"M21.463 8.5v1.408q0 .352-.11.638-.11.285-.347.5a1.6 1.6 0 0 1-.621.33 3.2 3.2 0 0 1-.924.116h-3.828l-.451 2.651q.45-.077.869-.116.418-.038.814-.038 1.265 0 2.233.385a4.7 4.7 0 0 1 1.628 1.05q.66.666.995 1.563.336.896.336 1.919 0 1.286-.457 2.349a5.5 5.5 0 0 1-1.27 1.831 5.7 5.7 0 0 1-1.942 1.194q-1.126.423-2.47.423-.78 0-1.49-.165a7.2 7.2 0 0 1-2.48-1.094 7.6 7.6 0 0 1-.957-.787l1.056-1.408q.165-.22.385-.335t.473-.116q.33 0 .621.182l.638.395q.346.215.809.391.462.176 1.144.176t1.166-.226.786-.616.44-.913.138-1.116q0-1.166-.66-1.777-.66-.61-1.87-.61a5.7 5.7 0 0 0-2.112.407l-2.112-.572L13.257 8.5z"}))))}},4034(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm3.222 6.5H17.26l-.264.007a4 4 0 0 0-1.47.359c-.537.25-.98.589-1.302 1.028l-3.604 4.867-.247.348q-.84 1.215-1.309 2.421a8 8 0 0 0-.564 2.931q-.001 1.525.484 2.841a6.6 6.6 0 0 0 1.467 2.344 6.65 6.65 0 0 0 2.329 1.528c.895.355 1.885.529 2.962.529 1.062 0 2.05-.182 2.954-.551a7.1 7.1 0 0 0 2.328-1.514 6.8 6.8 0 0 0 1.515-2.253c.355-.855.533-1.76.533-2.704 0-1.025-.178-1.949-.547-2.76a5.9 5.9 0 0 0-1.455-2.004 5.9 5.9 0 0 0-2.032-1.178l-.309-.097-.299-.079z"}),o.createElement("path",{d:"M16.842 14.874q.87 0 1.716.286.847.285 1.518.88.67.594 1.084 1.502.411.907.412 2.139 0 1.122-.418 2.128a5.3 5.3 0 0 1-1.183 1.76 5.6 5.6 0 0 1-1.842 1.194q-1.078.44-2.387.44-1.342 0-2.409-.424a5.15 5.15 0 0 1-1.81-1.182 5.1 5.1 0 0 1-1.133-1.815Q10 20.726 10 19.461q0-1.2.462-2.387t1.364-2.42l3.608-4.873q.242-.33.726-.556Q16.645 9 17.26 9h3.036l-4.752 5.676q-.11.12-.215.248l-.203.247a4.8 4.8 0 0 1 1.716-.297m-3.564 5.049q0 .594.143 1.067t.44.814.748.523q.45.18 1.067.181.528 0 .984-.198.457-.198.787-.544t.523-.814q.192-.468.192-1.018 0-.615-.181-1.1a2.25 2.25 0 0 0-.512-.814 2.2 2.2 0 0 0-.797-.506 2.9 2.9 0 0 0-1.04-.176q-.517 0-.946.181a2.1 2.1 0 0 0-.742.523 2.5 2.5 0 0 0-.49.814 3 3 0 0 0-.176 1.067"}))))}},66675(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm2.978 6H9v3.744c0 .324.074.639.214.93q.175.366.462.653.305.304.698.477l.173.068c.232.08.476.12.723.12h4.316L9.088 26.027h4.91c.776 0 1.47-.199 2.038-.628.48-.363.853-.822 1.104-1.361l5.595-11.85a9 9 0 0 0 .311-.78c.152-.43.218-.918.218-1.478z"}),o.createElement("path",{d:"M21.764 8.5v1.43q0 .605-.132.979t-.253.638L15.78 23.405a2.1 2.1 0 0 1-.649.797q-.43.325-1.133.325h-2.486l5.72-11.473a6 6 0 0 1 .5-.847q.27-.375.589-.715H11.27q-.154 0-.291-.06a.8.8 0 0 1-.242-.165.9.9 0 0 1-.171-.242.64.64 0 0 1-.066-.281V8.5z"}))))}},28132(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1ZM16.22 7c-.92 0-1.784.139-2.583.42-.8.283-1.507.678-2.112 1.186a5.6 5.6 0 0 0-1.463 1.876 5.4 5.4 0 0 0-.534 2.385c0 1.084.246 2.056.75 2.89l.15.229.145.198-.157.153-.193.209q-.185.212-.343.446a4.9 4.9 0 0 0-.684 1.524 6.4 6.4 0 0 0-.196 1.6c0 .933.183 1.803.554 2.595.37.788.896 1.466 1.57 2.022.653.539 1.424.949 2.303 1.232q1.29.415 2.793.414 1.504.002 2.793-.414c.879-.283 1.65-.693 2.303-1.232a5.8 5.8 0 0 0 1.57-2.022c.37-.792.554-1.662.554-2.595q0-.842-.205-1.613a5 5 0 0 0-.686-1.511l-.165-.228-.117-.147a5 5 0 0 0-.254-.28l-.156-.15.146-.197.076-.112.073-.116c.511-.834.76-1.809.76-2.895a5.4 5.4 0 0 0-.534-2.385 5.6 5.6 0 0 0-1.463-1.876 6.7 6.7 0 0 0-2.112-1.185A7.7 7.7 0 0 0 16.22 7"}),o.createElement("path",{d:"M16.22 24.879q-1.275 0-2.332-.341-1.056-.34-1.81-.962a4.3 4.3 0 0 1-1.165-1.502q-.413-.88-.413-1.958 0-.649.149-1.226.148-.579.473-1.056.324-.48.835-.853.512-.374 1.238-.627-1.1-.495-1.633-1.375-.534-.88-.534-2.112 0-.934.385-1.733a4.1 4.1 0 0 1 1.078-1.38 5.2 5.2 0 0 1 1.645-.918A6.2 6.2 0 0 1 16.22 8.5q1.133 0 2.085.335.951.336 1.644.919a4.1 4.1 0 0 1 1.078 1.38q.385.798.385 1.733 0 1.232-.539 2.112-.54.88-1.628 1.375a4.8 4.8 0 0 1 1.226.627q.512.375.837.852.324.48.478 1.057.154.576.154 1.226 0 1.078-.413 1.958a4.3 4.3 0 0 1-1.166 1.502q-.753.621-1.809.962t-2.332.341m0-2.574q.572 0 .99-.176t.688-.479.396-.714.126-.886q0-.517-.11-.946a1.8 1.8 0 0 0-.363-.732 1.7 1.7 0 0 0-.677-.473q-.423-.17-1.05-.17t-1.05.17a1.7 1.7 0 0 0-.677.473 1.8 1.8 0 0 0-.363.732q-.11.429-.11.946 0 .472.127.886.126.412.396.715.27.301.682.478.411.176.995.176m0-7.172q.572 0 .935-.187t.572-.495q.21-.308.286-.704.077-.396.077-.814 0-.374-.099-.726a1.65 1.65 0 0 0-.325-.622 1.64 1.64 0 0 0-.582-.434 2.05 2.05 0 0 0-.864-.165q-.517 0-.869.165t-.578.434-.324.622a2.7 2.7 0 0 0-.099.726q0 .418.077.814t.286.704q.21.308.572.495.363.187.935.187"}))))}},82853(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm-3.499 6c-1.039 0-2.002.177-2.878.535A7 7 0 0 0 11.652 9a6.55 6.55 0 0 0-1.48 2.192 6.8 6.8 0 0 0-.517 2.632c0 .996.173 1.892.532 2.679.346.76.809 1.409 1.387 1.932a5.7 5.7 0 0 0 1.912 1.151l.293.098.147.043.147.04.262.06L9 26.203h6.357l.259-.007a3.9 3.9 0 0 0 1.441-.353c.542-.252.983-.595 1.295-1.047l3.446-4.894.285-.42q.277-.423.516-.857.379-.685.645-1.432.267-.748.415-1.56.15-.83.15-1.754c0-.971-.158-1.878-.48-2.712a6.4 6.4 0 0 0-1.423-2.217 6.4 6.4 0 0 0-2.256-1.453C18.787 7.163 17.83 7 16.787 7"}),o.createElement("path",{d:"M15.555 18.455q-.78 0-1.562-.28a4.2 4.2 0 0 1-1.413-.853 4.3 4.3 0 0 1-1.029-1.441q-.396-.87-.396-2.057 0-1.09.402-2.057a5.05 5.05 0 0 1 1.144-1.694 5.5 5.5 0 0 1 1.776-1.15q1.035-.423 2.31-.423 1.3 0 2.321.396a4.9 4.9 0 0 1 1.733 1.111 4.9 4.9 0 0 1 1.089 1.7q.38.984.38 2.172a8.3 8.3 0 0 1-.479 2.81q-.225.633-.545 1.21-.318.578-.715 1.139l-3.454 4.906q-.219.319-.693.539a2.5 2.5 0 0 1-1.067.22h-3.146l5.082-6.072.292-.358q.137-.17.27-.346-.495.264-1.079.396a5.5 5.5 0 0 1-1.22.132m3.498-4.884q0-.584-.17-1.028a2.05 2.05 0 0 0-.473-.743 2 2 0 0 0-.732-.451 2.8 2.8 0 0 0-.935-.154q-.516 0-.918.181a2 2 0 0 0-.682.501q-.28.32-.429.753a2.9 2.9 0 0 0-.149.941q0 2.398 2.222 2.398 1.09 0 1.678-.654.588-.655.588-1.744"}))))}},429(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M19.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643v5.892h-.098l-.014-.146c-.223-1.781-1.702-3.103-3.474-3.103h-2.828l-.204.006-.193.02-.196.03a3.51 3.51 0 0 0-2.887 3.069l-.01.124h-3.22l-.203.01-.172.027c-1.185.222-2.001 1.192-2.001 2.339l.005.162.017.16a2.376 2.376 0 0 0 2.353 2.053h.107V30l.01.203.025.173q.06.331.19.625L4 31a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Z"}),o.createElement("path",{d:"M20.053 14.34c0-.501.417-.908.903-.908h2.088c.463 0 .844.348.897.802l.006.107a.914.914 0 0 1-.903.908h-2.088a.903.903 0 0 1-.897-.802zm3.36-2.34a2 2 0 0 1 1.995 1.85l.006.15v1.25h4.71a.875.875 0 0 1 .11 1.743l-.11.007h-1.607v13a1 1 0 0 1-.883.993l-.117.007H16.483a1 1 0 0 1-.994-.883L15.483 30V17h-1.608a.875.875 0 0 1-.11-1.744l.11-.007h4.711V14a2 2 0 0 1 1.85-1.995l.15-.005zm2.285 6.15a.75.75 0 0 0-.745.65l-.007.102v8.445a.753.753 0 0 0 1.498.102l.007-.102v-8.445a.753.753 0 0 0-.753-.753m-7.078 0a.75.75 0 0 0-.746.65l-.007.102v8.445a.753.753 0 0 0 1.498.102l.007-.102v-8.445a.753.753 0 0 0-.752-.753m3.539 0a.75.75 0 0 0-.746.65l-.007.102v8.445a.753.753 0 0 0 1.499.102l.007-.102v-8.445a.753.753 0 0 0-.753-.753"}))))}},39342(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643v2.649A12.44 12.44 0 0 0 20.5 8C13.605 8 8 13.605 8 20.5c0 4.399 2.281 8.273 5.724 10.501L5 31a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 4.1c-.722 0-1.308.586-1.308 1.308v3.784h-3.785a1.308 1.308 0 0 0 0 2.616h3.785v3.784a1.307 1.307 0 1 0 2.616 0v-3.784h3.784a1.308 1.308 0 0 0 0-2.616h-3.784v-3.784c0-.722-.586-1.307-1.308-1.307"}))))}},83339(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M20.848 1.21a.86.86 0 0 0-.562-.21H5a1 1 0 0 0-1 1v28a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V7.857a.86.86 0 0 0-.29-.643z"})))}},38723(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M11.76 1c.172 0 .333.075.443.205l2.737 3.257h13.752A2.31 2.31 0 0 1 31 6.769v6.955C28.773 10.282 24.899 8 20.5 8 13.605 8 8 13.605 8 20.5c0 1.973.459 3.84 1.276 5.5H2.73A1.73 1.73 0 0 1 1 24.27V3.125C1 1.952 1.952 1 3.126 1z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 4.1c-.722 0-1.308.586-1.308 1.308v3.784h-3.785a1.308 1.308 0 0 0 0 2.616h3.785v3.784a1.307 1.307 0 1 0 2.616 0v-3.784h3.784a1.308 1.308 0 0 0 0-2.616h-3.784v-3.784c0-.722-.586-1.307-1.308-1.307"}))))}},23044(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M11.76 1c.172 0 .333.075.443.205l2.737 3.257h13.752A2.31 2.31 0 0 1 31 6.769l.001 2.328A3.46 3.46 0 0 0 29.05 8.5h-14.9l-.204.006-.193.02c-1.781.223-3.103 1.701-3.103 3.474v6.684a2.445 2.445 0 0 0-3.15 2.341V27H2.73A1.73 1.73 0 0 1 1 25.27V3.125C1 1.952 1.952 1 3.126 1z"}),o.createElement("path",{d:"M9.945 20.08c.487 0 .888.369.94.842l.005.103v4.515a2.52 2.52 0 0 0 2.372 2.516l.148.004h9.66a1.47 1.47 0 0 1 .12 2.935l-.12.005H10.68a1.68 1.68 0 0 1-1.675-1.555L9 29.32v-8.295c0-.522.423-.945.945-.945M29.05 10a2 2 0 0 1 1.995 1.85l.005.15v12.8a2 2 0 0 1-1.85 1.995l-.15.005h-14.9a2 2 0 0 1-1.995-1.85l-.005-.15V12A2 2 0 0 1 14 10.005l.15-.005zM22 12.5l-1.854 4.087-4.146.591 3 2.87-1.108 4.452L22 22.187l4.108 2.313L25 20.048l3-2.87-4.146-.591z"}))))}},42151(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.157 10a1 1 0 0 1 .983 1.18l-.02.088-1.811 6.519.001-4.287h-4.862l-6.503 5.457 1.935 2.567c.219.284.485.498.8.675.38.213.804.318 1.245.318l.21-.01a2.6 2.6 0 0 0 .619-.132l.146-.057L22.899 27H3a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 10zM10.326 1a.5.5 0 0 1 .383.178L13.081 4H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 23.476V2.842C1 1.825 1.825 1 2.842 1z"}),o.createElement("path",{d:"M27.81 15v13.574h2.64v2.464h-9.13v-2.464h3.08v-8.085q0-.594.033-1.243l-1.815 1.507a1.2 1.2 0 0 1-.352.203 1.05 1.05 0 0 1-.852-.066 1.1 1.1 0 0 1-.336-.269L20 19.191 24.994 15z"}))))}},70644(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.157 10a1 1 0 0 1 .983 1.18l-.02.088-1.168 4.21a6 6 0 0 0-.28-.274 6.3 6.3 0 0 0-2.123-1.267q-1.21-.438-2.653-.437-1.318 0-2.494.357a6.5 6.5 0 0 0-2.2 1.149 6.5 6.5 0 0 0-1.613 1.921q-.64 1.145-.853 2.607l-.212 1.441 3.239.573.136.021.254.03q.189.015.366.016c.631 0 1.21-.174 1.68-.558.419-.342.709-.807.91-1.374a.8.8 0 0 1 .097-.179.5.5 0 0 1 .108-.108.6.6 0 0 1 .169-.085.7.7 0 0 1 .215-.028l.155.004.117.009.001-.002.014.022c.03.057.061.193.061.447q0 .385-.09.71a3.3 3.3 0 0 1-.298.72 5.5 5.5 0 0 1-.572.833q-.39.479-.933 1.021L19.228 27H3a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 10zM10.326 1a.5.5 0 0 1 .383.178L13.081 4H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 23.476V2.842C1 1.825 1.825 1 2.842 1z"}),o.createElement("path",{d:"M24.896 15q1.188 0 2.14.347a4.8 4.8 0 0 1 1.622.962q.67.615 1.028 1.468t.358 1.876q0 .88-.247 1.628-.248.749-.677 1.425a10 10 0 0 1-.995 1.309 38 38 0 0 1-1.205 1.281l-3.135 3.212q.604-.175 1.194-.28a6.3 6.3 0 0 1 1.105-.105h2.992q.55 0 .869.302.32.303.319.798v1.98H19v-1.1a2 2 0 0 1 .132-.682q.132-.363.462-.66l4.62-4.653q.593-.594 1.034-1.133.44-.54.726-1.062t.429-1.044a4.2 4.2 0 0 0 .143-1.106q0-.957-.456-1.469-.458-.51-1.392-.511-.385 0-.704.11a2.1 2.1 0 0 0-.572.297 2 2 0 0 0-.434.44 2.3 2.3 0 0 0-.292.55q-.176.495-.446.715t-.731.22a3.325 3.325 0 0 1-.495-.044l-1.804-.319q.176-1.2.677-2.09a5 5 0 0 1 1.243-1.485 5 5 0 0 1 1.699-.886A7 7 0 0 1 24.896 15"}))))}},15573(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.157 10a1 1 0 0 1 .983 1.18l-.02.088-1.124 4.05a6 6 0 0 0-.205-.192 6.2 6.2 0 0 0-2.051-1.2c-.789-.287-1.665-.426-2.624-.426q-1.318 0-2.494.357a6.5 6.5 0 0 0-2.2 1.149 6.5 6.5 0 0 0-1.613 1.921q-.64 1.145-.853 2.607l-.212 1.441 3.239.573.136.021.254.03q.189.015.366.016l.208-.006.194-.02v3.351l-.185-.05a3 3 0 0 0-.668-.071q-.316 0-.633.055-.285.049-.563.153l-2.972 1.206.264.767H3a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 10zM10.326 1a.5.5 0 0 1 .383.178L13.081 4H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 23.476V2.842C1 1.825 1.825 1 2.842 1z"}),o.createElement("path",{d:"M25.116 15q1.188 0 2.112.335a4.7 4.7 0 0 1 1.562.908q.638.572.968 1.326.33.753.33 1.589 0 .759-.154 1.336a3.1 3.1 0 0 1-.457 1.002 2.9 2.9 0 0 1-.747.72 4.5 4.5 0 0 1-1.018.495q2.662.924 2.662 3.619 0 1.275-.462 2.222a4.6 4.6 0 0 1-1.238 1.573 5.3 5.3 0 0 1-1.798.94 7.2 7.2 0 0 1-2.134.314q-1.144 0-2.035-.248a4.7 4.7 0 0 1-1.584-.77 5.1 5.1 0 0 1-1.216-1.336q-.522-.814-.907-1.936l1.518-.616q.198-.088.39-.121.193-.033.38-.033.352 0 .633.137a.94.94 0 0 1 .423.402q.495.913 1.05 1.325.555.414 1.304.413.572 0 .995-.192a2.2 2.2 0 0 0 .704-.495q.282-.303.424-.688t.143-.781q0-.517-.072-.93a1.2 1.2 0 0 0-.401-.709q-.33-.297-.995-.456-.666-.16-1.854-.16v-2.354q1 0 1.617-.154.616-.154.951-.424.336-.27.446-.654.11-.385.11-.847 0-.945-.456-1.457-.458-.512-1.392-.512-.385 0-.704.11a2.1 2.1 0 0 0-.572.297 2 2 0 0 0-.434.44 2.3 2.3 0 0 0-.292.55q-.176.495-.445.715-.27.22-.732.22a3.325 3.325 0 0 1-.495-.044l-1.804-.319q.176-1.2.676-2.09a5 5 0 0 1 1.244-1.485 5 5 0 0 1 1.699-.886A7 7 0 0 1 25.116 15"}))))}},60298(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.157 10a1 1 0 0 1 .983 1.18l-.02.088-.95 3.419V13.5h-5.51l-8.266 11.112.49 2.344.011.044H3a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 10zM10.326 1a.5.5 0 0 1 .383.178L13.081 4H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 23.476V2.842C1 1.825 1.825 1 2.842 1z"}),o.createElement("path",{d:"M28.67 24.801h1.65v1.914a.63.63 0 0 1-.17.44q-.17.187-.49.187h-.99v3.685H25.7v-3.685h-6.446a.93.93 0 0 1-.578-.198.84.84 0 0 1-.324-.495L18 24.966 25.414 15h3.256zm-2.97-4.18q0-.386.027-.83.028-.446.083-.919l-4.235 5.929H25.7z"}))))}},2267(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.157 10a1 1 0 0 1 .983 1.18l-.02.088-.62 2.232H21l-1.805 10.61L23.1 25.17l.462-.182a4.2 4.2 0 0 1 1.563-.303c.455 0 .714.085.851.212.108.1.179.29.179.675q0 .404-.088.735c-.042.157-.1.279-.175.376a.6.6 0 0 1-.234.175c-.11.051-.285.085-.533.085-.284 0-.488-.031-.61-.078a3.3 3.3 0 0 1-.553-.264l-.635-.394a2.66 2.66 0 0 0-1.414-.408c-.41 0-.807.097-1.17.287-.35.184-.648.443-.888.764l-.114.151H3a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 10zM10.326 1a.5.5 0 0 1 .383.178L13.081 4H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 23.476V2.842C1 1.825 1.825 1 2.842 1z"}),o.createElement("path",{d:"M30.472 15v1.408q0 .352-.11.638t-.346.5a1.6 1.6 0 0 1-.622.33 3.2 3.2 0 0 1-.924.116h-3.828l-.451 2.651q.45-.077.869-.116.418-.038.814-.038 1.265 0 2.233.385a4.7 4.7 0 0 1 1.628 1.05q.66.666.995 1.563.336.896.336 1.919 0 1.286-.456 2.349a5.5 5.5 0 0 1-1.271 1.831 5.7 5.7 0 0 1-1.941 1.194q-1.128.423-2.47.423-.781 0-1.49-.165a7.2 7.2 0 0 1-2.481-1.094 7.6 7.6 0 0 1-.957-.787l1.056-1.408q.165-.22.385-.335t.473-.116q.33 0 .621.182l.639.395q.345.215.808.391t1.144.176q.682 0 1.166-.226.484-.225.786-.616.303-.39.44-.913.138-.522.138-1.116 0-1.166-.66-1.777-.66-.61-1.87-.61a5.7 5.7 0 0 0-2.112.407l-2.112-.572L22.266 15z"}))))}},20904(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.157 10a1 1 0 0 1 .983 1.18l-.02.088-.62 2.232h-4.24l-.264.007a4 4 0 0 0-1.47.359c-.537.25-.98.589-1.302 1.028l-3.604 4.867-.247.348q-.84 1.215-1.309 2.421a8 8 0 0 0-.564 2.931q0 .798.132 1.54L3 27a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 10zM10.326 1a.5.5 0 0 1 .383.178L13.081 4H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 23.476V2.842C1 1.825 1.825 1 2.842 1zm19.177 16.086-.81 2.918q-.317-.151-.655-.265l-.309-.097-.299-.079z"}),o.createElement("path",{d:"M25.842 20.874q.87 0 1.716.286.847.286 1.518.88.67.593 1.084 1.502.411.907.412 2.139 0 1.122-.418 2.128a5.3 5.3 0 0 1-1.183 1.76 5.6 5.6 0 0 1-1.842 1.194q-1.078.44-2.387.44-1.343 0-2.409-.424a5.15 5.15 0 0 1-1.81-1.182 5.1 5.1 0 0 1-1.133-1.815Q19 26.726 19 25.461q0-1.2.462-2.387t1.364-2.42l3.608-4.873q.242-.33.726-.556.485-.225 1.1-.225h3.036l-4.752 5.676q-.11.12-.215.248l-.203.247a4.8 4.8 0 0 1 1.716-.297m-3.564 5.049q0 .594.143 1.067t.44.814.748.523q.45.18 1.067.181.528 0 .985-.198t.786-.544.523-.814.192-1.018q0-.615-.181-1.1a2.25 2.25 0 0 0-.512-.814 2.2 2.2 0 0 0-.797-.506 2.9 2.9 0 0 0-1.04-.176q-.517 0-.946.181a2.1 2.1 0 0 0-.742.523 2.5 2.5 0 0 0-.49.814 3 3 0 0 0-.176 1.067"}))))}},86297(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.157 10a1 1 0 0 1 .983 1.18l-.02.088-.62 2.232h-12v3.744c0 .324.074.639.214.93q.175.366.462.653.305.304.698.477l.173.068c.232.08.476.12.723.12h4.316L21.343 27H3a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 10zM10.326 1a.5.5 0 0 1 .383.178L13.081 4H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 23.476V2.842C1 1.825 1.825 1 2.842 1z"}),o.createElement("path",{d:"M31.264 15v1.43q0 .605-.132.979-.132.375-.253.638L25.28 29.905a2.1 2.1 0 0 1-.649.797q-.43.325-1.133.325h-2.486l5.72-11.473a6 6 0 0 1 .5-.847q.27-.375.589-.715H20.77q-.155 0-.291-.06a.8.8 0 0 1-.242-.165.9.9 0 0 1-.171-.242.64.64 0 0 1-.066-.281V15z"}))))}},16478(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.157 10a1 1 0 0 1 .983 1.18l-.02.088-1.198 4.319a6 6 0 0 0-.507-.48 6.7 6.7 0 0 0-2.112-1.186 7.7 7.7 0 0 0-2.583-.421c-.92 0-1.784.139-2.583.42-.8.283-1.507.678-2.112 1.186a5.6 5.6 0 0 0-1.463 1.876 5.4 5.4 0 0 0-.534 2.385c0 .975.199 1.86.607 2.636l.144.254.148.229.146.198-.157.153-.193.209q-.185.212-.343.446a4.9 4.9 0 0 0-.684 1.524 6.4 6.4 0 0 0-.196 1.6q0 .195.01.385L3 27a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 10zM10.326 1a.5.5 0 0 1 .383.178L13.081 4H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 23.476V2.842C1 1.825 1.825 1 2.842 1z"}),o.createElement("path",{d:"M24.72 31.379q-1.276 0-2.332-.341-1.056-.34-1.81-.962a4.3 4.3 0 0 1-1.165-1.502Q19 27.694 19 26.616q0-.649.148-1.226.15-.579.474-1.056.324-.48.835-.853.512-.374 1.238-.627-1.1-.495-1.634-1.375t-.533-2.112q0-.934.385-1.733a4.1 4.1 0 0 1 1.078-1.38 5.2 5.2 0 0 1 1.645-.919A6.2 6.2 0 0 1 24.72 15q1.133 0 2.085.335.951.336 1.644.919a4.1 4.1 0 0 1 1.078 1.38q.385.798.385 1.733 0 1.232-.539 2.112-.54.88-1.628 1.375a4.8 4.8 0 0 1 1.226.627q.512.375.837.852.324.48.478 1.057.154.576.154 1.226 0 1.078-.413 1.958a4.3 4.3 0 0 1-1.166 1.502q-.753.621-1.809.962t-2.332.341m0-2.574q.572 0 .99-.176t.688-.479.396-.714.126-.886q0-.517-.11-.946a1.8 1.8 0 0 0-.363-.732 1.7 1.7 0 0 0-.677-.473q-.423-.17-1.05-.17t-1.05.17a1.7 1.7 0 0 0-.677.473 1.8 1.8 0 0 0-.363.732q-.11.429-.11.946 0 .472.127.886.126.412.396.715.27.301.681.478.413.176.996.176m0-7.172q.572 0 .935-.187t.572-.495q.21-.308.286-.704.077-.396.077-.814 0-.374-.099-.726a1.65 1.65 0 0 0-.325-.622 1.64 1.64 0 0 0-.582-.434 2.05 2.05 0 0 0-.864-.165q-.517 0-.869.165t-.578.434-.324.622a2.7 2.7 0 0 0-.099.726q0 .418.077.814t.286.704.572.495.935.187"}))))}},79055(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.157 10a1 1 0 0 1 .983 1.18l-.02.088-1.209 4.353-.16-.17a6.3 6.3 0 0 0-1.934-1.32l-.323-.134c-.862-.334-1.819-.497-2.862-.497q-1.562-.001-2.879.535a7 7 0 0 0-2.256 1.465 6.55 6.55 0 0 0-1.481 2.192 6.8 6.8 0 0 0-.516 2.632c0 .996.173 1.892.531 2.679.347.76.81 1.409 1.387 1.932a5.7 5.7 0 0 0 1.614 1.034l.299.117.292.098.147.043.147.04.263.06-.564.673H3a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 10zM10.326 1a.5.5 0 0 1 .383.178L13.081 4H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 23.476V2.842C1 1.825 1.825 1 2.842 1z"}),o.createElement("path",{d:"M23.4 24.955q-.78 0-1.562-.28a4.2 4.2 0 0 1-1.414-.853 4.3 4.3 0 0 1-1.028-1.441Q19 21.511 19 20.324q0-1.09.401-2.057a5.05 5.05 0 0 1 1.145-1.694 5.5 5.5 0 0 1 1.776-1.15Q23.357 15 24.632 15q1.298 0 2.321.396a4.9 4.9 0 0 1 1.733 1.111 4.9 4.9 0 0 1 1.088 1.7q.38.984.38 2.172a8.3 8.3 0 0 1-.479 2.81q-.225.633-.544 1.21-.32.578-.715 1.139l-3.454 4.906q-.22.319-.693.539a2.5 2.5 0 0 1-1.067.22h-3.146l5.082-6.072q.155-.187.291-.358.138-.17.27-.346-.495.264-1.078.396a5.5 5.5 0 0 1-1.221.132m3.498-4.884q0-.583-.17-1.029a2.05 2.05 0 0 0-.474-.742 2 2 0 0 0-.731-.451 2.8 2.8 0 0 0-.935-.154q-.516 0-.919.181a2 2 0 0 0-.681.501q-.28.32-.43.754a2.9 2.9 0 0 0-.148.94q0 2.398 2.222 2.398 1.089 0 1.677-.655.59-.654.589-1.743"}))))}},29349(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M10.326 3a.5.5 0 0 1 .383.178L13.081 6H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 25.476V4.842C1 3.825 1.825 3 2.842 3z"}),o.createElement("path",{d:"M30.157 12a1 1 0 0 1 .983 1.18l-.02.088-4.167 15a1 1 0 0 1-.842.725L25.99 29H3a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 12z"}))))}},96595(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.157 12a1 1 0 0 1 .983 1.18l-.02.088-1.729 6.225-2.893-.413-1.677-3.696a2 2 0 0 0-2.647-.995l-.162.082a2 2 0 0 0-.833.913L19.5 19.08l-3.694.527a2 2 0 0 0-1.698 2.262l.03.165a2 2 0 0 0 .567.998l2.628 2.513L16.473 29H3a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 12zM10.326 3a.5.5 0 0 1 .383.178L13.081 6H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 25.476V4.842C1 3.825 1.825 3 2.842 3z"}),o.createElement("path",{d:"M22.793 15.755a.5.5 0 0 1 .618.17l.044.079 2.017 4.445 4.51.643a.5.5 0 0 1 .334.788l-.06.068L27 25.064l1.197 4.81a.5.5 0 0 1-.648.594l-.082-.037L23 27.916l-4.467 2.515a.5.5 0 0 1-.744-.467l.014-.09L19 25.064l-3.257-3.116a.5.5 0 0 1 .188-.835l.087-.02 4.51-.644 2.017-4.445a.5.5 0 0 1 .248-.25"}))))}},18153(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M10.326 3a.5.5 0 0 1 .383.178l.776.924-1.465.285-.168.044-.166.065-.073.036-.135.09c-.429.31-.65.75-.645 1.222l.014.175.866 4.481h-3.38a2.5 2.5 0 0 0-2.44 1.958L1 25.476V4.842C1 3.825 1.825 3 2.842 3zm11.927 3H25a2 2 0 0 1 2 1.96l-4.625-1.505-.036-.184-.026-.104-.025-.081z"}),o.createElement("path",{d:"m17.213 4.007-7.002 1.361-.081.024-.073.036a.47.47 0 0 0-.218.322l-.006.082.009.084.889 4.584h11.411l-.785-4.041-.024-.079-.026-.05-.033-.045-.038-.041-.068-.051-3.679-2.14-.065-.03-.068-.017L17.285 4zM27.65 9.22l-5.057-1.642.567 2.922h5.369l-.66-1.104-.041-.058-.052-.05-.06-.039zM30.157 12a1 1 0 0 1 .983 1.18l-.02.088-4.167 15a1 1 0 0 1-.842.725L25.99 29H3a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 12z"}))))}},69350(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M9.5 21c0 2.2.617 4.254 1.688 6.001L3 27a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 10h11.3C12.925 11.44 9.5 15.82 9.5 21m.826-20a.5.5 0 0 1 .383.178L13.081 4H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 23.476V2.842C1 1.825 1.825 1 2.842 1zm19.83 9a1 1 0 0 1 .984 1.18l-.02.088-.823 2.962a11.52 11.52 0 0 0-5.93-4.23z"}),o.createElement("path",{d:"M21 11c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10m-7.333 10a7.333 7.333 0 0 0 11.407 6.099L14.9 16.926A7.3 7.3 0 0 0 13.667 21M21 13.667a7.3 7.3 0 0 0-3.663.979l10.017 10.017A7.333 7.333 0 0 0 21 13.666"}))))}},50102(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M10.36 12a8.92 8.92 0 0 0-1.86 5.463c0 4.945 4.019 8.963 8.963 8.963a8.9 8.9 0 0 0 3.62-.763l.336-.157L24.913 29H3a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 12zm-.034-9a.5.5 0 0 1 .383.178L13.081 6H25a2 2 0 0 1 2 2v2.5h-3.897a8.92 8.92 0 0 0-5.64-2c-2.136 0-4.099.75-5.64 2h-5.49a2.5 2.5 0 0 0-2.44 1.958L1 25.476V4.842C1 3.825 1.825 3 2.842 3zm14.24 9h5.59a1 1 0 0 1 .984 1.18l-.02.088-2.993 10.773-2.622-2.621a8.9 8.9 0 0 0 .913-3.58l.008-.377A8.92 8.92 0 0 0 24.566 12"}),o.createElement("path",{d:"M17.463 10c4.116 0 7.463 3.347 7.463 7.463 0 1.522-.46 2.976-1.298 4.201l6.965 6.964a1.39 1.39 0 1 1-1.965 1.966l-6.964-6.965a7.42 7.42 0 0 1-4.2 1.297c-4.117 0-7.464-3.347-7.464-7.463S13.347 10 17.463 10m-.113 2.1a5.25 5.25 0 1 0 0 10.5 5.25 5.25 0 0 0 0-10.5"}))))}},99389(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M11.76 1c.172 0 .333.075.443.205l2.737 3.257h13.752A2.31 2.31 0 0 1 31 6.769v17.5A1.73 1.73 0 0 1 29.27 26l-3.045.002-.153-.12-.26-.216c-2.226-1.885-3.72-4.385-4.222-7.642l-.061-.439h.706a2.078 2.078 0 0 0 1.602-3.405l-5.776-6.93a2.08 2.08 0 0 0-1.407-.74l-.183-.01a2.08 2.08 0 0 0-1.601.735l-5.878 6.93a2.08 2.08 0 0 0-.293 2.227l.073.142a2.08 2.08 0 0 0 1.81 1.051h.938l.009.075c.371 3.362 1.62 6.129 3.574 8.34H2.731A1.73 1.73 0 0 1 1 24.27V3.125C1 1.952 1.952 1 3.126 1z"}),o.createElement("path",{d:"M16.461 8c.14 0 .271.05.375.137l.073.073 5.776 6.93a.574.574 0 0 1-.355.937l-.095.008h-2.322c.18 6.061 3.203 9.578 5.98 11.539l.376.257.187.122.369.23.361.212.353.195.341.178.33.162.314.146.299.13.28.117.384.149.229.082.297.1.303.093.232.063a.58.58 0 0 1 .452.562l-.005.072a.58.58 0 0 1-.59.506l-.52-.03-.573-.052-.587-.068-.506-.07-.366-.056-.588-.103-.415-.08-.433-.091-.222-.05-.455-.108-.468-.12-.48-.133a25 25 0 0 1-.489-.146l-.498-.16-.251-.086-.507-.182a22 22 0 0 1-.768-.304l-.515-.223c-4.208-1.89-8.449-5.509-8.825-12.425l-.018-.428h-2.339a.58.58 0 0 1-.527-.334.57.57 0 0 1 .026-.537l.055-.078 5.878-6.93A.58.58 0 0 1 16.46 8"}))))}},79620(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m1 5.239 11.848 11.847a20 20 0 0 0-3.071 1.967A24.6 24.6 0 0 0 7.06 21.49l-.357.379c-.332.36-.59.661-.77.888a2.004 2.004 0 0 0-.004 2.483l.208.254q.189.226.444.506L2.731 26A1.73 1.73 0 0 1 1 24.27zM11.76 1c.172 0 .333.075.443.205l2.737 3.257h13.752A2.31 2.31 0 0 1 31 6.769l.002 14.784-.062-.064a24.6 24.6 0 0 0-2.716-2.436c-2.652-2.038-5.49-3.335-8.454-3.528L5.244 1z"}),o.createElement("path",{d:"m13.971 18.21 1.895 1.896A5 5 0 0 0 14 24c0 2.758 2.242 5 5 5a5 5 0 0 0 3.894-1.866l2.137 2.137C23.271 30.26 21.214 31 19 31c-5.489 0-10.013-4.55-11.434-6.15l-.161-.184a12 12 0 0 1-.297-.355.5.5 0 0 1 0-.622c.027-.033.128-.16.297-.355l.16-.184c.954-1.073 3.305-3.475 6.406-4.94m2.964 2.965 4.89 4.89A3.497 3.497 0 0 1 15.5 24c0-1.158.566-2.187 1.435-2.825m13.5 1.975.16.184c.17.196.27.322.297.355a.5.5 0 0 1 0 .622c-.027.033-.128.16-.297.355l-.16.184c-.172.193-.388.428-.645.693l-8.219-8.22c4.297 1.068 7.672 4.485 8.863 5.827M1.939 1.936a1.507 1.507 0 0 1 2.012-.098l.114.103L29.27 27.145c.59.59.592 1.538.004 2.126a1.507 1.507 0 0 1-2.012.098l-.114-.103L1.944 4.062a1.5 1.5 0 0 1-.005-2.126"}))))}},55635(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M11.76 1c.172 0 .333.075.443.205l2.737 3.257h13.752A2.31 2.31 0 0 1 31 6.769l.002 14.784-.062-.064a24.6 24.6 0 0 0-2.716-2.436C25.343 16.84 22.242 15.5 19 15.5s-6.342 1.339-9.223 3.553A24.6 24.6 0 0 0 7.06 21.49l-.357.379c-.332.36-.59.661-.77.888a2.004 2.004 0 0 0-.004 2.483l.208.254q.189.226.444.506L2.731 26A1.73 1.73 0 0 1 1 24.27V3.125C1 1.952 1.952 1 3.126 1z"}),o.createElement("path",{d:"M19 17c5.49 0 10.014 4.55 11.434 6.15l.161.184c.17.196.27.322.297.355a.5.5 0 0 1 0 .622c-.027.033-.128.16-.297.355l-.16.184C29.013 26.45 24.49 31 19 31c-5.489 0-10.013-4.55-11.434-6.15l-.161-.184a12 12 0 0 1-.297-.355.5.5 0 0 1 0-.622c.027-.033.128-.16.297-.355l.16-.184C8.988 21.55 13.512 17 19 17m0 2c-2.758 0-5 2.242-5 5s2.242 5 5 5 5-2.242 5-5-2.242-5-5-5m0 1.5c1.93 0 3.5 1.57 3.5 3.5s-1.57 3.5-3.5 3.5-3.5-1.57-3.5-3.5 1.57-3.5 3.5-3.5"}))))}},46043(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16.2 1a.8.8 0 0 1 .525.197L23.13 6.8c.17.152.27.371.27.6l-.001 1.1H14.15l-.204.006-.193.02c-1.781.223-3.103 1.701-3.103 3.474v6.684a2.445 2.445 0 0 0-3.15 2.341L7.499 29H1.933a.933.933 0 0 1-.927-.824L1 28.066V1.934C1 1.418 1.418 1 1.933 1Z"}),o.createElement("path",{d:"M9.945 20.08c.45 0 .826.314.922.735l.017.107.006.103v4.515l.005.166a2.52 2.52 0 0 0 2.203 2.335l.164.015.148.004h9.66l.17.01q.25.03.47.136l.14.078.023.015a1.469 1.469 0 0 1-.543 2.678l-.14.018-.12.005H10.68l-.146-.006a1.68 1.68 0 0 1-1.513-1.406l-.016-.143L9 29.32v-8.295l.006-.11a.945.945 0 0 1 .939-.835M29.05 10l.157.006a2 2 0 0 1 1.819 1.683l.019.162.005.149v12.8l-.006.157a2 2 0 0 1-1.683 1.819l-.162.019-.149.005h-14.9l-.157-.006a2 2 0 0 1-1.819-1.683l-.019-.162-.005-.149V12l.006-.157a2 2 0 0 1 1.683-1.819l.162-.019.149-.005zm-4.894 3.5H19a.5.5 0 0 0-.5.5v9.199a.5.5 0 0 0 .5.5h1.38a.5.5 0 0 0 .5-.5V19.73h2.573a.914.914 0 0 0 0-1.827H20.88V15.32h3.276a.91.91 0 0 0 0-1.82"}))))}},81983(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M28.138 8.76a.862.862 0 0 1 .848 1.017l-.017.075-3.593 12.933a.86.86 0 0 1-.726.625l-.105.006H18.5L18.5 21a2.5 2.5 0 1 0-5 0v2.415l-8.776.001a.86.86 0 0 1-.862-.862l.005-.094.016-.093L6.757 9.435a.86.86 0 0 1 .741-.67l.1-.006z"}),o.createElement("path",{fillOpacity:.4,d:"M11.04 1a.43.43 0 0 1 .33.153l2.046 2.433h10.276c.952 0 1.724.773 1.724 1.725v2.155H7.598c-1.01 0-1.885.702-2.104 1.688L3 20.38V2.588C3 1.711 3.711 1 4.588 1z"}),o.createElement("path",{d:"M7.5 29q.001.518.112 1.001L2 30a1 1 0 0 1 0-2h5.611a4.5 4.5 0 0 0-.111 1m16.889-1H30a1 1 0 0 1 0 2l-5.612.001a4.5 4.5 0 0 0 0-2.001M16 20a1 1 0 0 1 1 1v3.5h-2V21a1 1 0 0 1 1-1"}),o.createElement("path",{fillOpacity:.4,d:"M20 26a3 3 0 0 1 0 6h-8a3 3 0 0 1 0-6z"}))))}},14820(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm-.597 12.222a.6.6 0 0 0-.504.262l-.049.089-3.329 7.434-3.118-3.797-.066-.069a.587.587 0 0 0-.841.072l-.055.079-4.06 7.041h16.666l-4.11-10.729-.045-.091a.59.59 0 0 0-.489-.29m-9.098-5.555c-1.612 0-2.924 1.335-2.924 2.976 0 1.64 1.312 2.976 2.924 2.976s2.925-1.336 2.925-2.976-1.313-2.976-2.925-2.976"})))}},10834(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M17.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V21.5h-1.497c-.825 0-1.551.392-2.006 1a2.5 2.5 0 0 0-1.282-.895l2.687-3.33c1.363-1.69.27-3.94-1.89-3.94h-.623V8a3 3 0 0 0-3-3h-.723a3 3 0 0 0-3 3v6.334h-.662c-2.161 0-3.272 2.244-1.903 3.94l2.686 3.329a2.5 2.5 0 0 0-1.29.896 2.5 2.5 0 0 0-2-.999H5.503A2.493 2.493 0 0 0 3 23.997v6.006c0 .354.075.692.209.998L2 31a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Z"}),o.createElement("path",{d:"M13.5 23.997c0-.55.438-.997 1.003-.997h4.994c.554 0 1.003.453 1.003.997v6.006c0 .55-.438.997-1.003.997h-4.994a1.004 1.004 0 0 1-1.003-.997zM4.5 23.997c0-.55.438-.997 1.003-.997h4.994c.554 0 1.003.453 1.003.997v6.006c0 .55-.438.997-1.003.997H5.503a1.004 1.004 0 0 1-1.003-.997zm18 0c0-.55.438-.997 1.003-.997h4.994c.554 0 1.003.453 1.003.997v6.006c0 .55-.438.997-1.003.997h-4.994a1.004 1.004 0 0 1-1.003-.997zM15.164 8v7.834H13c-.91 0-1.306.79-.735 1.498l3.792 4.7c.504.625 1.379.623 1.882 0l3.792-4.7c.57-.706.18-1.498-.722-1.498h-2.124V8a1.5 1.5 0 0 0-1.5-1.5h-.722a1.5 1.5 0 0 0-1.5 1.5"}))))}},26768(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M15.167 1c.22 0 .433.088.588.243l8.333 8.334a.83.83 0 0 1 .245.59v1.544a8.95 8.95 0 0 0-6.87-3.211C12.52 8.5 8.5 12.519 8.5 17.463c0 4.945 4.019 8.963 8.963 8.963a8.9 8.9 0 0 0 3.956-.92l2.914 2.914v1.747a.834.834 0 0 1-.729.827L23.5 31H1V1.833c0-.46.373-.833.833-.833Z"}),o.createElement("path",{d:"M17.463 10c4.116 0 7.463 3.347 7.463 7.463 0 1.522-.46 2.976-1.298 4.201l6.965 6.964a1.39 1.39 0 1 1-1.965 1.966l-6.964-6.965a7.42 7.42 0 0 1-4.2 1.297c-4.117 0-7.464-3.347-7.464-7.463S13.347 10 17.463 10m-.113 2.1a5.25 5.25 0 1 0 0 10.5 5.25 5.25 0 0 0 0-10.5"}))))}},27859(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16.2 1c.155 0 .305.045.433.128l.092.069L23.13 6.8c.142.127.235.3.262.487l.008.113.001 4.225a9.4 9.4 0 0 0-1.562-.125l-.246.003c-1.47.033-2.782.37-3.613 1.15l-.097.096-.1.033a2.8 2.8 0 0 0-1.297.936c-.576.749-.72 1.657-.603 2.683l.038.275c.043.275.103.553.18.847l.073.265-.015.03c-.285.638-.322 1.383-.148 2.093l.058.21q.125.414.352.759l.047.256c.14.675.407 1.254.752 1.737l.098.129v.431l-1.361.487-.712.266-.594.238c-1.655.687-2.645 1.35-3.179 2.383-.468.905-.736 1.575-.87 2.194L1.933 29a.933.933 0 0 1-.927-.824L1 28.066V1.934c0-.478.36-.873.824-.927L1.934 1zm-4.822 17.667H6.044c-.589 0-1.066.557-1.066 1.244 0 .638.412 1.164.942 1.236l.124.009h5.334c.589 0 1.066-.558 1.066-1.245s-.477-1.244-1.066-1.244M12.6 14H6.067c-.602 0-1.09.557-1.09 1.244 0 .639.421 1.165.963 1.237l.127.008H12.6c.601 0 1.089-.557 1.089-1.245 0-.687-.488-1.244-1.089-1.244m3.578-5.289H6.222a1.244 1.244 0 0 0-.145 2.48l.145.009h9.956a1.244 1.244 0 0 0 0-2.489"}),o.createElement("path",{d:"M21.84 13c1.655 0 3.435.529 3.68 1.71.172.837-.147 1.866-.434 2.615l-.138.349-.154.378c.401.349.47.975.341 1.502-.081.332-.222.576-.397.706a3.67 3.67 0 0 1-.842 2.167l-.111.125v1.94l2.024.72.568.207.535.203c1.464.571 2.493 1.116 2.886 1.874l.223.443c.368.76.522 1.237.58 1.647l.023.218c0 .62-.47 1.129-1.073 1.19l-.123.006H13.196c-.66 0-1.196-.535-1.196-1.196l.019-.2c.051-.408.191-.89.573-1.684l.213-.424c.345-.669 1.187-1.171 2.386-1.672l.499-.201.534-.203 1.481-.532 1.113-.396v-2.059l-.124-.125c-.3-.326-.775-1-.83-2.048-.175-.13-.315-.374-.396-.706-.13-.532-.06-1.166.353-1.512l-.148-.476-.1-.344c-.227-.84-.408-1.926.102-2.59.24-.312.596-.49 1.06-.532.422-.807 1.894-1.1 3.104-1.1"}))))}},82237(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16.2 1c.155 0 .305.045.433.128l.092.069L23.13 6.8c.142.127.235.3.262.487l.008.113v8.235l-4.887 6.575-.175-.179a3.96 3.96 0 0 0-5.669 0 4.12 4.12 0 0 0 .004 5.754L13.865 29H1.933a.933.933 0 0 1-.927-.824L1 28.066V1.934c0-.478.36-.873.824-.927L1.934 1zm-4.822 17.667H6.044c-.589 0-1.066.557-1.066 1.244 0 .638.412 1.164.942 1.236l.124.009h5.334c.589 0 1.066-.558 1.066-1.245s-.477-1.244-1.066-1.244M12.6 14H6.067c-.602 0-1.09.557-1.09 1.244 0 .639.421 1.165.963 1.237l.127.008H12.6c.601 0 1.089-.557 1.089-1.245 0-.687-.488-1.244-1.089-1.244m3.578-5.289H6.222a1.244 1.244 0 0 0-.145 2.48l.145.009h9.956a1.244 1.244 0 0 0 0-2.489"}),o.createElement("path",{d:"M26.469 14.022a2.497 2.497 0 0 1 3.52-.516c1.058.798 1.319 2.289.625 3.405l-.123.18-9.505 12.854a2.5 2.5 0 0 1-1.68 1.03l-.251.025c-.67.002-1.25-.21-1.708-.606l-.149-.138-3.456-3.523a2.62 2.62 0 0 1-.002-3.651 2.457 2.457 0 0 1 3.396-.125l.131.125 1.405 1.43z"}))))}},15525(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M17.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643v.98A12.4 12.4 0 0 0 20.5 8C13.605 8 8 13.605 8 20.5c0 4.399 2.281 8.273 5.724 10.501L2 31a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 3.5c-.733 0-1.334.58-1.334 1.304v7.94l-1.897-1.83c-.518-.5-1.354-.5-1.872 0a1.285 1.285 0 0 0 0 1.857l4.014 3.872 1.088 1.051 1.09-1.049 4.014-3.874a1.285 1.285 0 0 0 0-1.857 1.35 1.35 0 0 0-.937-.375c-.347 0-.682.13-.935.375l-1.898 1.831v-7.941c0-.724-.6-1.304-1.334-1.304"}))))}},42527(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M5.138 5.138V8.24H4.103v19.656h6.953A12.1 12.1 0 0 0 14.694 31H1.517a.52.52 0 0 1-.509-.424L1 30.483V5.655c0-.254.183-.465.424-.509l.093-.008zm3.417 16.518q.103 1.065.385 2.069H7.724a1.035 1.035 0 0 1 0-2.07Zm.32-4.139q-.26 1.006-.34 2.07h-.81a1.035 1.035 0 0 1 0-2.07Zm1.97-4.137a12 12 0 0 0-1.23 2.068h-1.89a1.035 1.035 0 0 1 0-2.069ZM12.363 1q.303 0 .58.034c.06.007.115.02.173.03q.185.027.359.068c.062.016.119.037.178.055q.155.046.3.106.082.036.162.077.135.066.258.143.071.046.14.097a2.3 2.3 0 0 1 .506.511q.049.066.093.136.07.119.126.247.036.074.068.153.048.131.084.27l.032.142h2.647c.254 0 .465.183.509.424l.008.093v5.066c-1.6.258-3.096.833-4.42 1.658H6.69a.52.52 0 0 1-.51-.424l-.008-.093V3.586c0-.254.184-.465.425-.509l.093-.008h2.615a2.4 2.4 0 0 1 .115-.412q.031-.078.067-.153.055-.128.127-.247.043-.07.092-.136a2.3 2.3 0 0 1 .29-.33 2.3 2.3 0 0 1 .357-.278q.122-.077.257-.143.08-.04.163-.077.143-.059.3-.106c.059-.018.115-.04.178-.055q.173-.042.359-.069.084-.017.172-.029.278-.034.58-.034M23.24 5.138c.254 0 .465.183.51.424l.008.093V8.95A12 12 0 0 0 20.5 8.5l.155.002v-.26h-1.034V5.137z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m4.312 14.34H18.76c-.104 0-.189.133-.189.298V26.7c0 .165.085.299.189.299h6.052c.104 0 .188-.134.188-.299v-2.063c0-.165-.084-.299-.188-.299M17.142 14h-.998c-.08 0-.144.089-.144.199v12.576c0 .11.065.198.144.198h.997c.08 0 .145-.089.145-.198V16.66h4.001c-.08 0-.144.089-.144.198v3.49H18.76c-.104 0-.189.133-.189.298v2.063c0 .165.085.299.189.299h6.052c.104 0 .188-.134.188-.299v-2.063c0-.165-.084-.299-.188-.299h-2.383V16.86c0-.11-.065-.198-.145-.198h-.047c.106 0 .192-.067.192-.15V15.48c0-.083-.086-.15-.192-.15h-4.951V14.2c0-.11-.065-.199-.145-.199"}))))}},5564(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M5.138 5.138V8.24H4.103v19.656h6.953A12.1 12.1 0 0 0 14.694 31H1.517a.52.52 0 0 1-.509-.424L1 30.483V5.655c0-.254.183-.465.424-.509l.093-.008zm3.417 16.518q.103 1.065.385 2.069H7.724a1.035 1.035 0 0 1 0-2.07Zm.32-4.139q-.26 1.006-.34 2.07h-.81a1.035 1.035 0 0 1 0-2.07Zm1.97-4.137a12 12 0 0 0-1.23 2.068h-1.89a1.035 1.035 0 0 1 0-2.069ZM12.363 1q.303 0 .58.034c.06.007.115.02.173.03q.185.027.359.068c.062.016.119.037.178.055q.155.046.3.106.082.036.162.077.135.066.258.143.071.046.14.097a2.3 2.3 0 0 1 .506.511q.049.066.093.136.07.119.126.247.036.074.068.153.048.131.084.27l.032.142h2.647c.254 0 .465.183.509.424l.008.093v5.066c-1.6.258-3.096.833-4.42 1.658H6.69a.52.52 0 0 1-.51-.424l-.008-.093V3.586c0-.254.184-.465.425-.509l.093-.008h2.615a2.4 2.4 0 0 1 .115-.412q.031-.078.067-.153.055-.128.127-.247.043-.07.092-.136a2.3 2.3 0 0 1 .29-.33 2.3 2.3 0 0 1 .357-.278q.122-.077.257-.143.08-.04.163-.077.143-.059.3-.106c.059-.018.115-.04.178-.055q.173-.042.359-.069.084-.017.172-.029.278-.034.58-.034M23.24 5.138c.254 0 .465.183.51.424l.008.093V8.95A12 12 0 0 0 20.5 8.5l.155.002v-.26h-1.034V5.137z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m5.086 5.414a1.413 1.413 0 0 0-2 .001L20.5 18.501l-3.086-3.087a1.413 1.413 0 1 0-2 2l3.087 3.086-3.087 3.086a1.414 1.414 0 1 0 2 2L20.5 22.5l3.086 3.086a1.413 1.413 0 1 0 2-2L22.5 20.5l3.086-3.086a1.414 1.414 0 0 0 0-2"}))))}},29707(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M5.138 5.138V8.24H4.103v19.656h6.953A12.1 12.1 0 0 0 14.694 31H1.517a.52.52 0 0 1-.509-.424L1 30.483V5.655c0-.254.183-.465.424-.509l.093-.008zm3.417 16.518q.103 1.065.385 2.069H7.724a1.035 1.035 0 0 1 0-2.07Zm.32-4.139q-.26 1.006-.34 2.07h-.81a1.035 1.035 0 0 1 0-2.07Zm1.97-4.137a12 12 0 0 0-1.23 2.068h-1.89a1.035 1.035 0 0 1 0-2.069ZM12.363 1q.303 0 .58.034c.06.007.115.02.173.03q.185.027.359.068c.062.016.119.037.178.055q.155.046.3.106.082.036.162.077.135.066.258.143.071.046.14.097a2.3 2.3 0 0 1 .506.511q.049.066.093.136.07.119.126.247.036.074.068.153.048.131.084.27l.032.142h2.647c.254 0 .465.183.509.424l.008.093v5.066c-1.6.258-3.096.833-4.42 1.658H6.69a.52.52 0 0 1-.51-.424l-.008-.093V3.586c0-.254.184-.465.425-.509l.093-.008h2.615a2.4 2.4 0 0 1 .115-.412q.031-.078.067-.153.055-.128.127-.247.043-.07.092-.136a2.3 2.3 0 0 1 .29-.33 2.3 2.3 0 0 1 .357-.278q.122-.077.257-.143.08-.04.163-.077.143-.059.3-.106c.059-.018.115-.04.178-.055q.173-.042.359-.069.084-.017.172-.029.278-.034.58-.034M23.24 5.138c.254 0 .465.183.51.424l.008.093V8.95A12 12 0 0 0 20.5 8.5l.155.002v-.26h-1.034V5.137z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m.543 4h-1.086c-.087 0-.157.096-.157.215l-.001 1.255h-2.594c-.113 0-.205.145-.205.323v2.236c0 .179.092.324.205.324l2.594-.001v1.441h-2.594l-.047.01c-.09.033-.158.161-.158.314v2.236l.005.074c.022.143.103.25.2.25l2.594-.001v1.441h-2.594l-.047.01c-.09.033-.158.16-.158.314v2.236l.005.074c.022.143.103.249.2.249h6.59l.047-.009c.09-.033.158-.161.158-.314V24.44l-.005-.074c-.022-.143-.103-.25-.2-.25h-2.596v-1.441h2.596l.047-.008c.09-.034.158-.162.158-.315v-2.236l-.005-.074c-.022-.143-.103-.25-.2-.25h-2.596v-1.441h2.596c.113 0 .205-.144.205-.323v-2.236c0-.178-.092-.323-.205-.323h-2.596l.001-1.255c0-.119-.07-.215-.157-.215"}))))}},28017(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M5.138 5.138V8.24H4.103v19.656h6.953A12.1 12.1 0 0 0 14.694 31H1.517a.52.52 0 0 1-.509-.424L1 30.483V5.655c0-.254.183-.465.424-.509l.093-.008zm3.417 16.518q.103 1.065.385 2.069H7.724a1.035 1.035 0 0 1 0-2.07Zm.32-4.139q-.26 1.006-.34 2.07h-.81a1.035 1.035 0 0 1 0-2.07Zm1.97-4.137a12 12 0 0 0-1.23 2.068h-1.89a1.035 1.035 0 0 1 0-2.069ZM12.363 1q.303 0 .58.034c.06.007.115.02.173.03q.185.027.359.068c.062.016.119.037.178.055q.155.046.3.106.082.036.162.077.135.066.258.143.071.046.14.097a2.3 2.3 0 0 1 .506.511q.049.066.093.136.07.119.126.247.036.074.068.153.048.131.084.27l.032.142h2.647c.254 0 .465.183.509.424l.008.093v5.066c-1.6.258-3.096.833-4.42 1.658H6.69a.52.52 0 0 1-.51-.424l-.008-.093V3.586c0-.254.184-.465.425-.509l.093-.008h2.615a2.4 2.4 0 0 1 .115-.412q.031-.078.067-.153.055-.128.127-.247.043-.07.092-.136a2.3 2.3 0 0 1 .29-.33 2.3 2.3 0 0 1 .357-.278q.122-.077.257-.143.08-.04.163-.077.143-.059.3-.106c.059-.018.115-.04.178-.055q.173-.042.359-.069.084-.017.172-.029.278-.034.58-.034M23.24 5.138c.254 0 .465.183.51.424l.008.093V8.95A12 12 0 0 0 20.5 8.5l.155.002v-.26h-1.034V5.137z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m4.624 5.125a1.466 1.466 0 0 0-1.779.48l-4.839 6.665-1.002-1a1.465 1.465 0 0 0-2.071 0 1.477 1.477 0 0 0 0 2.089l2.215 2.212c.281.279.654.43 1.06.429h.025l.043-.003a1.48 1.48 0 0 0 1.096-.604l5.846-8.052a1.476 1.476 0 0 0-.086-1.844l-.027-.063-.215-.156-.155-.097c-.067-.036-.067-.036-.11-.056"}))))}},18436(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M5.138 5.138V8.24H4.103v19.656h6.953A12.1 12.1 0 0 0 14.694 31H1.517a.52.52 0 0 1-.509-.424L1 30.483V5.655c0-.254.183-.465.424-.509l.093-.008zm3.417 16.518q.103 1.065.385 2.069H7.724a1.035 1.035 0 0 1 0-2.07Zm.32-4.139q-.26 1.006-.34 2.07h-.81a1.035 1.035 0 0 1 0-2.07Zm1.97-4.137a12 12 0 0 0-1.23 2.068h-1.89a1.035 1.035 0 0 1 0-2.069ZM12.363 1q.303 0 .58.034c.06.007.115.02.173.03q.185.027.359.068c.062.016.119.037.178.055q.155.046.3.106.082.036.162.077.135.066.258.143.071.046.14.097a2.3 2.3 0 0 1 .506.511q.049.066.093.136.07.119.126.247.036.074.068.153.048.131.084.27l.032.142h2.647c.254 0 .465.183.509.424l.008.093v5.066c-1.6.258-3.096.833-4.42 1.658H6.69a.52.52 0 0 1-.51-.424l-.008-.093V3.586c0-.254.184-.465.425-.509l.093-.008h2.615a2.4 2.4 0 0 1 .115-.412q.031-.078.067-.153.055-.128.127-.247.043-.07.092-.136a2.3 2.3 0 0 1 .29-.33 2.3 2.3 0 0 1 .357-.278q.122-.077.257-.143.08-.04.163-.077.143-.059.3-.106c.059-.018.115-.04.178-.055q.173-.042.359-.069.084-.017.172-.029.278-.034.58-.034M23.24 5.138c.254 0 .465.183.51.424l.008.093V8.95A12 12 0 0 0 20.5 8.5l.155.002v-.26h-1.034V5.137z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m2.808 3c-.1 0-.193.044-.256.119l-3.3 3.917a.32.32 0 0 0-.045.346.33.33 0 0 0 .302.188h1.327c-.193 6.38-6.018 7.772-6.078 7.786a.33.33 0 0 0-.255.358.33.33 0 0 0 .337.286c.099-.002 9.738-.296 9.99-8.43h1.337c.13 0 .247-.074.302-.189a.32.32 0 0 0-.047-.348l-3.358-3.917a.34.34 0 0 0-.256-.116"}))))}},4974(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M9.138 5.138V8.24H8.103v19.656h16.552V8.24h-1.034V5.138h3.62c.286 0 .518.232.518.517v24.828a.517.517 0 0 1-.518.517H5.517A.517.517 0 0 1 5 30.483V5.655c0-.285.232-.517.517-.517zM16.363 1q.303 0 .58.034c.06.007.115.02.173.03q.185.027.359.068c.062.016.119.037.178.055q.155.046.3.106.082.036.162.077.135.066.258.143.072.046.14.097a2.3 2.3 0 0 1 .506.511q.049.066.093.136.07.119.126.247.036.074.068.153.074.196.116.412h2.647c.285 0 .517.232.517.517v6.207a.517.517 0 0 1-.517.517h-11.38a.517.517 0 0 1-.517-.517V3.586c0-.285.232-.517.518-.517h2.615a2.4 2.4 0 0 1 .115-.412q.031-.078.067-.153.055-.128.127-.247.043-.07.092-.136a2.3 2.3 0 0 1 .29-.33 2.3 2.3 0 0 1 .357-.278q.122-.077.257-.143.08-.04.163-.077.143-.059.3-.106c.059-.018.115-.04.178-.055q.173-.042.359-.069.084-.017.172-.029.278-.034.58-.034"}),o.createElement("path",{d:"M21.889 14.414c0 .571-.463 1.034-1.035 1.034h-9.13a1.035 1.035 0 0 1 0-2.069h9.13c.572 0 1.035.464 1.035 1.035m0 4.138c0 .57-.463 1.034-1.035 1.034h-9.13a1.035 1.035 0 0 1 0-2.069h9.13c.572 0 1.035.464 1.035 1.035m0 4.138c0 .57-.463 1.034-1.035 1.034h-9.13a1.035 1.035 0 0 1 0-2.069h9.13c.572 0 1.035.463 1.035 1.035"}))))}},62704(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"nonzero"},o.createElement("path",{fill:"#00005B",d:"M6.313 1h19.375C28.625 1 31 3.436 31 6.449V25.55C31 28.564 28.625 31 25.688 31H6.313C3.375 31 1 28.564 1 25.551V6.45C1 3.436 3.375 1 6.313 1"}),o.createElement("path",{fill:"#99F",d:"M7.125 22.637V9.22c0-.09.04-.143.13-.143.222 0 .43 0 .73-.013.312-.013.638-.013.99-.026.351-.013.729-.013 1.133-.026C10.51 9 10.902 9 11.293 9c1.068 0 1.954.13 2.683.404.651.221 1.25.586 1.745 1.068.417.417.743.925.951 1.485.195.547.3 1.107.3 1.693q0 1.68-.782 2.774a4.46 4.46 0 0 1-2.097 1.589c-.886.326-1.862.443-2.93.443-.313 0-.521 0-.652-.013-.13-.013-.312-.013-.56-.013v4.18c.013.092-.052.17-.143.183H7.281c-.104 0-.156-.052-.156-.17zm2.84-11.032v4.376c.182.013.351.026.507.026h.69c.509 0 1.017-.078 1.498-.234a2.24 2.24 0 0 0 1.068-.69c.274-.326.404-.769.404-1.342a2.14 2.14 0 0 0-.3-1.16 1.9 1.9 0 0 0-.911-.742 3.8 3.8 0 0 0-1.537-.26c-.339 0-.638 0-.886.013-.26-.013-.442 0-.534.013m8.882.768h2.28c.13 0 .234.092.273.209.039.104.065.208.078.325a4.3 4.3 0 0 1 .091.873c.391-.456.86-.834 1.394-1.12.599-.339 1.29-.508 1.98-.508.09-.013.169.052.182.143v2.592c0 .104-.065.143-.208.143a5.7 5.7 0 0 0-1.407.13 5.4 5.4 0 0 0-1.094.352 2 2 0 0 0-.664.482v6.643c0 .13-.052.182-.17.182h-2.566c-.104.013-.195-.052-.208-.156v-7.268c0-.313 0-.638-.013-.977s-.013-.677-.026-1.016c0-.3-.026-.586-.052-.885a.12.12 0 0 1 .091-.144c0-.013.026-.013.04 0"}))))}},30942(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M27.83 20.503c.397.03.758.246.967.582l2.172 3.502a1.21 1.21 0 0 1-.434 1.689 1.26 1.26 0 0 1-1.694-.42l-.195-.314c-.973 2.828-3.454 5.12-6.503 5.814a9.2 9.2 0 0 1-2.056.233 9 9 0 0 1-6.208-2.468 1.207 1.207 0 0 1-.012-1.743 1.263 1.263 0 0 1 1.745-.012c1.58 1.5 3.809 2.102 5.967 1.61a6.6 6.6 0 0 0 4.226-3.142 1.263 1.263 0 0 1-1.738.151 1.206 1.206 0 0 1-.158-1.736l2.876-3.318c.258-.3.645-.456 1.044-.428M19.51 4.386a1.205 1.205 0 0 1-.107 1.74 1.263 1.263 0 0 1-1.742-.103C16.097 4.32 13.697 3.586 11.4 4.11A6.82 6.82 0 0 0 7.14 7.149a6.1 6.1 0 0 0-.785 1.925l.817-.943a1.26 1.26 0 0 1 1.739-.153c.537.433.61 1.214.159 1.737l-2.875 3.318c-.243.28-.594.43-1.013.429a1.25 1.25 0 0 1-.965-.53l-2.5-3.59a1.21 1.21 0 0 1 .341-1.71 1.26 1.26 0 0 1 1.715.33l.215.308a8.6 8.6 0 0 1 1.023-2.39 9.32 9.32 0 0 1 5.823-4.15c3.18-.725 6.504.292 8.676 2.656"}),o.createElement("path",{fillOpacity:.4,d:"M11.732 5.573c1.775-.405 3.627.16 4.825 1.464l.129.131a2.764 2.764 0 0 0 3.69.1c.303-.259.536-.569.695-.906l3.692 3.242a.7.7 0 0 1 .23.428l.007.1V20.7l-2.225 2.566-.115.143-.115.163a2.705 2.705 0 0 0 .195 3.203l.071.079-.197.122-.26.14a5 5 0 0 1-1.108.398l.054-.015-2.411.002a4.96 4.96 0 0 1-2.058-1.055l-.186-.168-.144-.127a2.763 2.763 0 0 0-3.682.153 2.7 2.7 0 0 0-.714 1.196H8.636A1.64 1.64 0 0 1 7 25.857V14.335q.178-.144.33-.321l2.875-3.317.115-.143a2.707 2.707 0 0 0-.468-3.744l-.147-.11-.122-.08.046-.036.235-.176a5.3 5.3 0 0 1 1.868-.835m4.41 14.927h-4.285c-.473 0-.857.447-.857 1 0 .512.33.935.757.993l.1.007h4.286c.473 0 .857-.448.857-1 0-.553-.384-1-.857-1m.983-4h-5.25c-.483 0-.875.447-.875 1 0 .512.338.935.773.993l.102.007h5.25c.483 0 .875-.448.875-1 0-.553-.392-1-.875-1m2.875-4h-8a1 1 0 0 0-.117 1.993L12 14.5h8a1 1 0 1 0 0-2"}))))}},97873(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16.2 1a.8.8 0 0 1 .525.197L23.13 6.8c.17.152.27.371.27.6l-.001 3.1h-11.39l-.205.007c-1.784.13-3.16 1.51-3.293 3.24l-.01.217L8.5 28.979l.001.021H1.933a.933.933 0 0 1-.927-.824L1 28.066V1.934C1 1.418 1.418 1 1.933 1Z"}),o.createElement("path",{d:"m28.99 12 .158.006c.935.073 1.69.79 1.83 1.71l.016.154.006.151V28.98l-.006.158c-.073.94-.785 1.7-1.7 1.84l-.154.017-.15.006H12.01l-.158-.006a2.015 2.015 0 0 1-1.83-1.71l-.016-.154-.006-.151V14.02l.006-.158c.073-.94.785-1.7 1.7-1.84l.154-.017.15-.006zm-8.513 3.5H17.5a1 1 0 0 0-1 1v10.223a1 1 0 0 0 1 1h.836a1 1 0 0 0 1-1v-3.522h.721q.327 0 .508.101.18.1.314.336l2.03 3.548q.31.537 1.024.537h1.675a.5.5 0 0 0 .427-.76l-2.136-3.493a2.1 2.1 0 0 0-.432-.512 2.7 2.7 0 0 0-.532-.352 4.1 4.1 0 0 0 1.052-.58q.457-.351.772-.8t.474-.978.16-1.124q0-.78-.269-1.443a2.9 2.9 0 0 0-.86-1.15q-.591-.486-1.527-.758-.935-.273-2.26-.273m0 2.122q1.098 0 1.623.454.524.453.524 1.258 0 .403-.117.75a1.55 1.55 0 0 1-.378.609 1.8 1.8 0 0 1-.667.407q-.407.147-.985.147h-.641a.5.5 0 0 1-.5-.5v-2.625a.5.5 0 0 1 .5-.5z"}))))}},50736(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M5.375 1v2.5H4.75V6h2.5V3.5h-.625V1h3.75v2.5H9.75V6h2.5V3.5h-.625V1h3.75v2.5h-.625V6h2.5V3.5h-.625V1h3.75v2.5h-.625V6h2.5V3.5h-.625V1h3.75c.345 0 .625.28.625.625V16.5H5.5a2 2 0 0 0-1.995 1.85l-.005.15V31H1.625a.625.625 0 0 1-.618-.533L1 30.375V1.625C1 1.28 1.28 1 1.625 1zm15 12.5H6.625a.625.625 0 0 0 0 1.25h13.75a.625.625 0 0 0 0-1.25m0-3.75H6.625a.625.625 0 0 0 0 1.25h13.75a.625.625 0 0 0 0-1.25"}),o.createElement("path",{d:"M14.12 18q.586 0 1.145.091.563.092 1.073.273.507.18.95.433.34.194.63.428l.187.16.327.3-.921 1.694-.1.14a1.4 1.4 0 0 1-.289.283c-.194.14-.426.204-.68.204-.229 0-.454-.065-.676-.185l-.48-.257a3.5 3.5 0 0 0-.528-.221 2 2 0 0 0-.606-.086c-.383 0-.632.07-.762.183-.12.103-.178.236-.178.443 0 .09.02.141.064.186q.146.151.42.277.246.112.552.213l.21.065q.485.144.99.32.525.182 1.027.429.556.271.988.695.447.436.715 1.05.275.63.274 1.465 0 .911-.323 1.716a4.1 4.1 0 0 1-.95 1.418q-.624.606-1.519.946-.89.338-1.992.337a6.4 6.4 0 0 1-1.228-.122 7.3 7.3 0 0 1-2.285-.868 5 5 0 0 1-.717-.515l-.207-.191-.326-.322 1.077-1.679.1-.129q.143-.157.335-.26c.192-.106.403-.159.624-.159.274 0 .54.083.792.237l.547.33q.264.156.622.29.3.114.747.115c.374 0 .633-.073.795-.2.122-.096.193-.271.193-.577 0-.14-.03-.226-.083-.287a1.2 1.2 0 0 0-.4-.28 5 5 0 0 0-.747-.263q-.48-.13-.981-.29-.533-.168-1.038-.413a3.6 3.6 0 0 1-.992-.71 3.4 3.4 0 0 1-.715-1.11q-.268-.663-.267-1.579 0-.769.311-1.496.314-.731.915-1.297.6-.565 1.453-.895.856-.33 1.927-.33m-5.228.127v12.746H5V18.127zm13.538 0h3.578L31 30.873l-2.98-.001-.166-.009a1.5 1.5 0 0 1-.727-.26q-.3-.214-.458-.534l-.07-.165-.56-1.636h-3.641l-.58 1.689-.07.15q-.151.265-.416.467a1.45 1.45 0 0 1-.754.29l-.171.009h-2.968zm1.79 4.813-.803 2.356h1.605z"}))))}},92403(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12.5 21H6.625a.625.625 0 0 0 0 1.25H12.5v2.5H6.625a.625.625 0 0 0-.618.533L6 25.375c0 .345.28.625.625.625H12.5v5H1.625a.625.625 0 0 1-.618-.533L1 30.375V1.625C1 1.28 1.28 1 1.625 1h3.75v2.5H4.75V6h2.5V3.5h-.625V1h3.75v2.5H9.75V6h2.5V3.5h-.625V1h3.75v2.5h-.625V6h2.5V3.5h-.625V1h3.75v2.5h-.625V6h2.5V3.5h-.625V1h3.75c.345 0 .625.28.625.625V16.5H14.5c-.632 0-1.195.293-1.561.75H6.625a.625.625 0 0 0 0 1.25H12.5zm7.875-7.5H6.625a.625.625 0 0 0 0 1.25h13.75a.625.625 0 0 0 0-1.25m0-3.75H6.625a.625.625 0 0 0 0 1.25h13.75a.625.625 0 0 0 0-1.25"}),o.createElement("path",{d:"M17.833 18v9.776h4.506V31H14V18zM31 18v3.207h-3.422L27.58 31h-3.833l-.001-9.793h-3.42V18z"}))))}},92323(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M10.326 1a.5.5 0 0 1 .383.178L13.081 4H25a2 2 0 0 1 2 2v2.5H6.333a2.5 2.5 0 0 0-2.44 1.958L1 23.476V2.842C1 1.825 1.825 1 2.842 1z"}),o.createElement("path",{d:"M30.157 10a1 1 0 0 1 .983 1.18l-.02.088-2.111 7.6a7 7 0 0 0-2.65-.962l-.048-.006-.197-.303C24.4 15.066 21.552 13.5 18.5 13.5l-.266.004-.275.012c-4.027.24-7.407 3.133-8.415 7.053l-.005.018-.282.047c-2.713.526-4.757 2.97-4.757 5.881q0 .249.014.486L3 27a1 1 0 0 1-1-1l.006-.11.018-.107 3.333-15a1 1 0 0 1 .86-.776L6.334 10z"}),o.createElement("path",{d:"M18.5 15c2.892 0 5.57 1.692 6.898 4.333 3.094.032 5.602 2.635 5.602 5.83 0 3.49-1.57 4.938-3.096 5.504l-.308.103-.304.08-.12.028-.234.044-.229.033-.22.024-.209.014-.198.007h-15.59l-.26-.013-.258-.025-.304-.043-.223-.042-.235-.054-.184-.05-.187-.057-.255-.092-.134-.054C7.25 30.06 6 28.947 6 26.515c0-2.473 1.952-4.485 4.35-4.485q.22 0 .442.023C11.248 18.062 14.55 15 18.5 15m-2.791 6c-1.776 0-2.965.921-3.002 2.3-.037 1.276.67 1.992 2.373 2.275l.28.046.178.03c.801.135 1.202.216 1.202.567 0 .355-.397.5-.936.5-1.126 0-1.834-.397-2.42-.742l-.984 1.595.201.13c.83.503 1.952.766 3.177.766 1.575 0 3.155-.674 3.155-2.496 0-1.106-.777-1.822-2.304-2.11l-.238-.046-.151-.028c-.702-.123-1.36-.185-1.36-.564 0-.324.411-.468.95-.468.915 0 1.65.334 2.136.602l.867-1.6-.27-.133c-1.14-.54-1.956-.624-2.854-.624m5.852 0c-1.216 0-2.009.453-2.617 1.075l1.047 1.254.104-.103a1.99 1.99 0 0 1 1.392-.544c.54 0 .894.195.894.58 0 .391-.434.613-1.005.613h-.83v1.645h.81l.132.003c.569.028 1.02.238 1.02.624 0 .432-.46.638-1.02.638a2.06 2.06 0 0 1-1.476-.617l-1.079 1.234.133.141c.598.591 1.472.924 2.532.924 1.513 0 2.935-.69 2.935-2.145 0-.74-.433-1.311-1.2-1.614.677-.32 1.052-.875 1.052-1.62 0-1.26-1.174-2.088-2.824-2.088"}))))}},42086(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M17.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643v.98A12.4 12.4 0 0 0 20.5 8C13.605 8 8 13.605 8 20.5c0 4.399 2.281 8.273 5.724 10.501L2 31a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m4.166 10.54c-.347 0-.682.13-.935.374l-1.898 1.831v-7.941c0-.724-.6-1.304-1.334-1.304-.732 0-1.333.58-1.333 1.304v7.94l-1.897-1.83c-.518-.5-1.354-.5-1.872 0a1.285 1.285 0 0 0 0 1.857l4.014 3.872 1.088 1.051 1.09-1.049 4.014-3.874a1.285 1.285 0 0 0 0-1.857 1.35 1.35 0 0 0-.937-.375"}))))}},41242(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M29.008 1C30.102 1 31 1.893 31 2.995V22l-9 9H2.995A2 2 0 0 1 1 29.008V2.992C1 1.898 1.892 1 2.992 1Zm-1.006 19h-7.004a.997.997 0 0 0-.998.998v7.004c0 .552.316.682.706.292l7.588-7.588c.386-.386.26-.706-.292-.706"})))}},10950(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M18.09 7a.54.54 0 0 1 .296.088l.063.048 4.367 3.859c.097.087.16.207.178.335l.006.078v3.993l-.372.402-.137.162-.107.155c-.67 1.045-.56 2.343.237 3.208l.131.132.158.137.09.067v4.05c0 .71-.57 1.286-1.273 1.286H10.273A1.28 1.28 0 0 1 9 23.714V16.6l.372-.401.137-.162.106-.146.074-.114.093-.182c.434-.913.342-1.923-.211-2.686l-.117-.15-.145-.156-.124-.117-.098-.083L9 12.337V8.286c0-.678.52-1.233 1.178-1.282L10.273 7zm-1.976 11.4h-3.428c-.379 0-.686.358-.686.8 0 .41.265.748.606.795l.08.005h3.428c.379 0 .686-.358.686-.8s-.307-.8-.686-.8m.786-3.2h-4.2c-.387 0-.7.358-.7.8 0 .41.27.748.618.795l.082.005h4.2c.387 0 .7-.358.7-.8s-.313-.8-.7-.8m2.3-3.2h-6.4a.8.8 0 0 0-.093 1.595l.093.005h6.4a.8.8 0 1 0 0-1.6"}),o.createElement("path",{fillOpacity:.4,d:"M27.436 13.334c.305 0 .597.127.804.352l2.903 3.136.081.099a1.099 1.099 0 0 1-.801 1.743l-.121.002a1.1 1.1 0 0 1-.767-.352l-.521-.562V28l-.005.175a3.005 3.005 0 0 1-2.819 2.82l-.175.005h-20l-.176-.006a3.005 3.005 0 0 1-2.82-2.819l-.005-.175V22.5l.007-.147a1.5 1.5 0 0 1 .96-1.254q.25-.099.533-.1l.15.008q.222.022.421.105l.056.024a1.5 1.5 0 0 1 .873 1.364V27l.007.117a1 1 0 0 0 .994.883h17.942l.117-.006a1 1 0 0 0 .883-.991l.019-9.38-.64.692-.112.106a1.1 1.1 0 0 1-.534.235l-.12.01a1.099 1.099 0 0 1-.841-1.845l2.903-3.135.093-.09q.1-.084.214-.143l.117-.051q.182-.068.38-.068M26.015 1l.176.005a3 3 0 0 1 2.818 2.818l.006.176v5.488l-.007.141a1.51 1.51 0 0 1-.904 1.246l-.072.028-.128.042a1.5 1.5 0 0 1-.928-.04l-.048-.019a1.51 1.51 0 0 1-.933-1.398l.017-4.485-.006-.117A1 1 0 0 0 25.015 4h-18l-.117.007a1 1 0 0 0-.883.994l-.002 9.387.65-.701.093-.09a1.095 1.095 0 0 1 1.365-.047l.099.083.087.093a1.1 1.1 0 0 1 .046 1.354l-.081.099-2.903 3.136-.095.091q-.101.086-.216.143l-.114.05a1.1 1.1 0 0 1-1.09-.194l-.094-.09L.857 15.18l-.081-.098a1.1 1.1 0 0 1 .133-1.448 1.094 1.094 0 0 1 1.463-.036l.093.09.548.593L3.015 4l.005-.176a3 3 0 0 1 2.818-2.818L6.014 1z"}))))}},73790(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M20.286 1c.207 0 .406.075.562.21l6.862 6.004c.184.163.29.398.29.643V30a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm-3.032 9.608h-8.39c-.66 0-1.197.272-1.197.892v8.769c0 .62.537 1.123 1.197 1.123h8.39c.66 0 1.197-.504 1.197-1.123v-8.77c0-.619-.537-.891-1.197-.891m5.81 1.865-3.437 1.812v3.512l3.438 1.658a.95.95 0 0 0 .86-.08.86.86 0 0 0 .408-.727v-5.37a.86.86 0 0 0-.408-.726.95.95 0 0 0-.86-.08"})))}},30636(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29 11a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V18.296l5.165.001v-5.99l3.01 4.634c.128.193.259.357.4.506q.29.3.66.5.372.195.805.279.375.072.824.071H28.5v-3.455c0-.724-.263-1.383-.781-1.875-.508-.482-1.165-.711-1.89-.711h-1.29l.24-.245q.646-.661 1.23-1.313l-.275.302zm-11.274 0-2.308 2.33c-.154.137-.3.3-.429.484L13.16 11z"}),o.createElement("path",{d:"M4.665 7.38h.585q.813 0 1.171-.511l3.556-5.17q.294-.424.667-.576.375-.152.916-.152h3.188l-4.684 6.398a3.1 3.1 0 0 1-1.073.955q.412.152.753.419.342.265.624.711l4.77 7.343h-3.274q-.314 0-.537-.043a1.4 1.4 0 0 1-.385-.13 1.1 1.1 0 0 1-.281-.213 2 2 0 0 1-.228-.287l-3.578-5.508a1.08 1.08 0 0 0-.493-.429q-.299-.125-.808-.125h-.89v6.735H1V.971h3.665zM21.709.796q1.17 0 2.109.342a4.7 4.7 0 0 1 1.599.95q.66.61 1.014 1.45a4.75 4.75 0 0 1 .352 1.853q0 .869-.244 1.607a6.3 6.3 0 0 1-.667 1.407 10 10 0 0 1-.98 1.293q-.56.624-1.188 1.265l-3.09 3.172q.596-.174 1.176-.277t1.09-.103h2.949q.542 0 .857.298.315.3.314.788v1.955H15.897v-1.086q0-.315.13-.674.131-.359.456-.651l4.554-4.595q.585-.586 1.019-1.119.434-.532.715-1.048.283-.516.423-1.032t.141-1.092q0-.945-.45-1.45t-1.371-.505q-.38 0-.694.109-.315.108-.564.293a2 2 0 0 0-.428.435q-.18.249-.288.543-.173.487-.439.706-.266.217-.72.217-.109 0-.234-.01a3 3 0 0 1-.255-.034l-1.778-.315q.174-1.184.667-2.063a5 5 0 0 1 1.225-1.467 5 5 0 0 1 1.675-.874A7 7 0 0 1 21.71.797"}))))}},62467(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M14.112 1a1 1 0 0 1 1 .993v12.132a.99.99 0 0 1-.992.993H1.988a.985.985 0 0 1-.99-.993l.034-12.132A.996.996 0 0 1 2.036 1ZM8.209 3.168H4.296c-.603 0-1.093.49-1.093 1.093v3.913a1.094 1.094 0 0 0 2.187 0v-2.82h2.82a1.094 1.094 0 0 0 0-2.186M29.994 1a1 1 0 0 1 1.001.993v12.132a.99.99 0 0 1-.993.993H17.87a.985.985 0 0 1-.99-.993l.035-12.132A.996.996 0 0 1 17.919 1Zm-5.902 2.168h-3.913c-.604 0-1.094.49-1.094 1.093v3.913a1.094 1.094 0 0 0 2.187 0v-2.82h2.82a1.094 1.094 0 0 0 0-2.186m5.902 13.714a1 1 0 0 1 1.001.993v12.132a.99.99 0 0 1-.993.993H17.87a.985.985 0 0 1-.99-.993l.035-12.132a.996.996 0 0 1 1.004-.993Zm-5.902 2.168h-3.913c-.604 0-1.094.49-1.094 1.093v3.913a1.094 1.094 0 0 0 2.187 0v-2.82h2.82a1.094 1.094 0 0 0 0-2.186m-9.98-2.168a1 1 0 0 1 1 .993v12.132a.99.99 0 0 1-.992.993H1.988a.985.985 0 0 1-.99-.993l.034-12.132a.996.996 0 0 1 1.004-.993ZM8.209 19.05H4.296c-.603 0-1.093.49-1.093 1.093v3.913a1.094 1.094 0 0 0 2.187 0v-2.82h2.82a1.094 1.094 0 0 0 0-2.186"})))}},80259(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M25 7.501C25 8.33 24.334 9 23.491 9H9.51A1.5 1.5 0 0 1 8 7.501V4.5C8 3.67 8.666 3 9.509 3H23.49A1.5 1.5 0 0 1 25 4.499zM8 1C6.346 1 5 2.346 5 4v7h23V4c0-1.654-1.346-3-3-3z"}),o.createElement("path",{d:"M16 12v9H5v-9zm-5.5 1.6-.113.007a.9.9 0 0 0-.787.893v1.1H8.5a.9.9 0 0 0-.9.9l.007.113a.9.9 0 0 0 .893.787h1.1v1.1a.9.9 0 0 0 .9.9l.113-.007a.9.9 0 0 0 .787-.893v-1.1h1.1a.9.9 0 0 0 .9-.9l-.007-.113a.9.9 0 0 0-.893-.787h-1.1v-1.1a.9.9 0 0 0-.9-.9M16 22v9H8.006A3.003 3.003 0 0 1 5 28.003V22zm-4.737 2.263-.864.864-.863-.864a.9.9 0 0 0-1.273 0l-.08.093a.9.9 0 0 0 .08 1.18l.863.863-.863.865a.9.9 0 0 0 .637 1.535l.118-.007a.9.9 0 0 0 .518-.256l.864-.863.863.863a.9.9 0 0 0 1.273 0l.08-.092a.9.9 0 0 0-.08-1.18l-.863-.865.863-.863a.9.9 0 0 0-1.273-1.273M28 12v9H17v-9zm-3.431 3.5h-4.138c-.514 0-.931.403-.931.9s.417.9.931.9h4.138c.514 0 .931-.403.931-.9s-.417-.9-.931-.9M28 22v6.003A3.005 3.005 0 0 1 24.994 31H17v-9zm-3.431 5h-4.138c-.514 0-.931.403-.931.9s.417.9.931.9h4.138c.514 0 .931-.403.931-.9s-.417-.9-.931-.9m0-3h-4.138c-.514 0-.931.403-.931.9s.417.9.931.9h4.138c.514 0 .931-.403.931-.9s-.417-.9-.931-.9"}))))}},97545(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.015 2c1.102 0 2 .898 2 2v17c0 1.104-.898 2-2 2h-4v-3h3V5l-4.559.001a10.02 10.02 0 0 0-8.73 0H4.015v15h9v3h-10c-1.104 0-2-.898-2-2V4c0-1.104.897-2 2-2Z"}),o.createElement("path",{d:"M22.503 17c.825 0 1.497.67 1.497 1.498v11.004A1.5 1.5 0 0 1 22.503 31h-7.006C14.672 31 14 30.33 14 29.502V18.498A1.5 1.5 0 0 1 15.497 17Zm-4.518 10h-2v2h2zm4 0h-2v2h2zm-4-4h-2v2h2zm4 0h-2v2h2zm-4-4h-2v2h2zm4 0h-2v2h2zm.184-7.066c-.197 0-.392-.058-.56-.171a4.53 4.53 0 0 0-5.035 0 1.001 1.001 0 0 1-1.121-1.657 6.54 6.54 0 0 1 7.278.001 1.001 1.001 0 0 1-.562 1.827M13.925 6.63a9 9 0 0 1 10.332 0 1 1 0 1 1-1.15 1.636 7 7 0 0 0-8.032 0 1 1 0 0 1-1.15-1.636m3.09 6.951a3.98 3.98 0 0 1 4.153 0 1 1 0 0 1-1.042 1.708 1.98 1.98 0 0 0-2.07 0 .998.998 0 0 1-1.375-.333 1 1 0 0 1 .334-1.375"}))))}},21716(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M28.015 22h-24V4h24zm-13 2a1.001 1.001 0 0 1 2 0 1.001 1.001 0 0 1-2 0M3.515 1a2.503 2.503 0 0 0-2.5 2.5v20c0 1.379 1.121 2.5 2.5 2.5h8.778l-1.125 3H6.996A.996.996 0 0 0 6 30c0 .552.451 1 .999 1h17.997A1 1 0 0 0 26 30c0-.552-.438-1-.99-1H20.86l-1.125-3h8.779c1.378 0 2.5-1.121 2.5-2.5v-20c0-1.378-1.122-2.5-2.5-2.5z"})))}},4295(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M15 29v-6h2v6h7a1 1 0 0 1 0 2H8a1 1 0 0 1 0-2zM1 30a1 1 0 1 1 2 0 1 1 0 0 1-2 0m3 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0m22 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0m3 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0M24.004 1.697l5.868 5.606c.405.387.279.697-.276.697H2.404c-.558 0-.68-.312-.276-.697l5.866-5.606C8.4 1.31 9.171 1 9.724 1h12.55c.55 0 1.327.312 1.73.697M4 19c0 .826.672 1.5 1.5 1.5.827 0 1.5-.674 1.5-1.5a1.5 1.5 0 0 0-3 0m22 0c0 .826.672 1.5 1.5 1.5.826 0 1.5-.674 1.5-1.5a1.5 1.5 0 0 0-3 0m-5 0c0 .826.672 1.5 1.5 1.5.826 0 1.5-.674 1.5-1.5a1.5 1.5 0 0 0-3 0m-5 0c0 .826.672 1.5 1.5 1.5.826 0 1.5-.674 1.5-1.5a1.5 1.5 0 0 0-3 0M1.998 16h28.004c.55 0 .998.444.998.991v4.018a1 1 0 0 1-.998.991H1.998A.995.995 0 0 1 1 21.01V16.99a1 1 0 0 1 .998-.99M4 12c0 .826.672 1.5 1.5 1.5.827 0 1.5-.674 1.5-1.5a1.5 1.5 0 0 0-3 0m22 0c0 .826.672 1.5 1.5 1.5.826 0 1.5-.674 1.5-1.5a1.5 1.5 0 0 0-3 0m-5 0c0 .826.672 1.5 1.5 1.5.826 0 1.5-.674 1.5-1.5a1.5 1.5 0 0 0-3 0m-5 0c0 .826.672 1.5 1.5 1.5.826 0 1.5-.674 1.5-1.5a1.5 1.5 0 0 0-3 0M1.998 9h28.004c.55 0 .998.444.998.991v4.018a1 1 0 0 1-.998.991H1.998A.995.995 0 0 1 1 14.01V9.99a1 1 0 0 1 .998-.99"})))}},87095(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m23.73 14.875-3.902 3.96-14.88.001a.99.99 0 0 0-.985.875l-.006.115c0 .547.443.99.99.99h12.929l-1.97 2-.525 1.963H3.476A2.48 2.48 0 0 1 1 22.303V17.35a2.48 2.48 0 0 1 2.476-2.476zM24.49 2c1.325 0 2.625 1.004 2.96 2.287l2.472 9.474-2.834-2.278-2.37 2.402H3.477c-.775 0-1.489.258-2.067.69.044-.198.09-.387.136-.557l2.692-9.745C4.589 2.998 5.9 2 7.222 2Z"}),o.createElement("path",{d:"m19.05 22.012-1.368 1.369L21.705 27l6.01-6.01-3.821-3.823zm-3.209 7.032 5.05-1.443-3.689-3.32zm11.337-15.16-2.584 2.584 3.822 3.823L31 17.706z"}))))}},44741(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m8.757 13 2 2H9.5v2h3v-.257L14.757 19H14.5v2h2.257l2.743 2.743V25h1.257l2 2H7v2h17.757l1.723 1.723q.153.152.32.278L2 31a1 1 0 0 1-1-1V14a1 1 0 0 1 1-1zm8.486 0H30a1 1 0 0 1 1 1l.001 12.8a3 3 0 0 0-.278-.32L27.5 23.257V23h-.257l-2-2H27.5v-2h-3v1.257L21.243 17H22.5v-2h-3v.257zM7.5 23h-3v2h3zm5 0h-3v2h3zm5 0h-3v2h3zm-10-4h-3v2h3zm5 0h-3v2h3zm-5-4h-3v2h3zm20 0h-3v2h3zM20.288 1c.516 0 .933.417.933.933v.432c0 .201.165.366.366.366h5.625a3.966 3.966 0 0 1 3.961 3.961 3.966 3.966 0 0 1-3.961 3.962H15.529q-.286.002-.541.09l-1.384-1.383a3.5 3.5 0 0 1 1.925-.573h11.683a2.1 2.1 0 0 0 2.096-2.096 2.1 2.1 0 0 0-2.096-2.096h-5.625c-1.23 0-2.231-1-2.231-2.23v-.433c0-.516.417-.933.932-.933"}),o.createElement("path",{d:"M2.333 2.333a1.507 1.507 0 0 1 2.012-.098l.114.103L29.662 27.54c.59.59.593 1.539.005 2.126a1.507 1.507 0 0 1-2.012.098l-.114-.103L2.338 4.46a1.5 1.5 0 0 1-.005-2.126"}))))}},81104(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M12 13v-.683a3.53 3.53 0 0 1 3.529-3.529h11.683a2.1 2.1 0 0 0 2.096-2.096 2.1 2.1 0 0 0-2.096-2.096h-5.625c-1.23 0-2.231-1-2.231-2.23v-.433a.932.932 0 1 1 1.865 0v.432c0 .201.165.366.366.366h5.625a3.966 3.966 0 0 1 3.961 3.961 3.966 3.966 0 0 1-3.961 3.962H15.529c-.917 0-1.664.746-1.664 1.663V13H30a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V14a1 1 0 0 1 1-1zM7 27v2h18v-2zm-2.5-4v2h3v-2zm0-4v2h3v-2zm0-4v2h3v-2zm5 8v2h3v-2zm0-4v2h3v-2zm0-4v2h3v-2zm5 8v2h3v-2zm0-4v2h3v-2zm0-4v2h3v-2zm5 8v2h3v-2zm0-4v2h3v-2zm0-4v2h3v-2zm5 8v2h3v-2zm0-4v2h3v-2zm0-4v2h3v-2z"})))}},79106(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M10.5 5.4a1.5 1.5 0 0 1 .835 2.746.1.1 0 0 1-.02.017l-.157.086A10 10 0 0 0 6 17c0 4.51 2.986 8.323 7.09 9.57l-1.076 2.808C6.784 27.695 3 22.789 3 17c0-4.87 2.677-9.114 6.686-11.36.234-.152.514-.24.814-.24m11 0c.3 0 .58.088.814.24C26.323 7.886 29 12.13 29 17c0 1.177-.156 2.317-.45 3.401L25.146 11.5h-.792a10.05 10.05 0 0 0-3.669-3.337.1.1 0 0 1-.02-.017A1.499 1.499 0 0 1 21.5 5.4M16 1c1.105 0 2 .9 2 1.992v7.016a1.99 1.99 0 0 1-1.85 1.987L16 12c-1.105 0-2-.9-2-1.992V2.992C14 1.892 14.888 1 16 1"}),o.createElement("path",{d:"M31 31h-3.2q-.537 0-.885-.253a1.3 1.3 0 0 1-.482-.649l-1.05-3.138h-6.766l-1.05 3.138q-.122.346-.476.624t-.867.278H13l6.887-18h4.226zm-11.43-6.881h4.86l-1.636-4.93-.373-1.105A28 28 0 0 1 22 16.706q-.196.754-.403 1.396a20 20 0 0 1-.39 1.112z"}))))}},11222(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M21.5 5.4c.3 0 .58.088.814.24C26.323 7.886 29 12.13 29 17c0 2.241-.567 4.35-1.566 6.19l-2.243-2.243c.486-1.13.77-2.368.805-3.667L26 17a10 10 0 0 0-5.316-8.837.1.1 0 0 1-.02-.017A1.499 1.499 0 0 1 21.5 5.4M16 1c1.105 0 2 .9 2 1.992v7.016a1.99 1.99 0 0 1-1.771 1.98L14 9.756V2.992C14 1.892 14.888 1 16 1m-5.5 4.4a1.5 1.5 0 0 1 1.333 2.19L9.81 5.567l.02-.011c.202-.1.429-.157.669-.157M16 27.144V27c1.93 0 3.734-.547 5.263-1.495l2.165 2.165a12.94 12.94 0 0 1-7.121 2.326L16 30C8.82 30 3 24.18 3 17c0-2.759.86-5.316 2.333-7.424l2.162 2.161A9.95 9.95 0 0 0 6 17c0 5.523 4.477 10 10 10z"}),o.createElement("path",{d:"M2.338 4.459 27.54 29.662a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.005-2.126L4.46 2.338a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},26112(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M10.5 5.4a1.5 1.5 0 0 1 .835 2.746.1.1 0 0 1-.02.017l-.157.086A10 10 0 0 0 6 17c0 5.523 4.477 10 10 10v3C8.82 30 3 24.18 3 17c0-4.87 2.677-9.114 6.686-11.36.234-.152.514-.24.814-.24m11 0c.3 0 .58.088.814.24C26.323 7.886 29 12.13 29 17c0 7.18-5.82 13-13 13v-3c5.523 0 10-4.477 10-10a10 10 0 0 0-5.316-8.837.1.1 0 0 1-.02-.017A1.499 1.499 0 0 1 21.5 5.4M16 1c1.105 0 2 .9 2 1.992v7.016a1.99 1.99 0 0 1-1.85 1.987L16 12c-1.105 0-2-.9-2-1.992V2.992C14 1.892 14.888 1 16 1"})))}},85490(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M23.075 9.632c.277.198.589.351.925.446v3.715l-2.543-2.543zM21.922 8c.096.336.248.648.446.925l-1.618 1.618L18.207 8zm8.932 12.647L25 14.793v-4.606c1.585-.092 2.848-1.426 2.848-3.056 0-1.67-1.328-2.978-3.022-2.978A3.023 3.023 0 0 0 21.813 7h-4.606l-5.853-5.853a.5.5 0 0 0-.707 0C5.502 6.291 5.076 14.383 9.37 19.984L1.11 30.186A.499.499 0 0 0 1.5 31H19a.5.5 0 0 0 .38-.826l-5.347-6.237a14.16 14.16 0 0 0 6.653 1.647c3.828 0 7.44-1.502 10.168-4.23a.5.5 0 0 0 0-.707"})))}},80667(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M4 10v13H2a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1zm26 0a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H13V10z"}),o.createElement("path",{d:"M6 8h5v17H6z"}))))}},86295(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M4 10v13H2a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1zm26 0a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H13V10zm-1.5 2h-13a.5.5 0 0 0-.5.5v8a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.5"}),o.createElement("path",{d:"M6 8h5v17H6z"}))))}},4471(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M5.286 22.477C2.564 21.486 1 20.162 1 18.885v-3.331c.949.917 2.424 1.721 4.286 2.358v-1.205C2.564 15.717 1 14.393 1 13.116V9.784c.949.918 2.424 1.722 4.286 2.359v-1.205C2.564 9.947 1 8.623 1 7.346 1 3.788 7.59 1 16 1s15 2.788 15 6.346c0 1.277-1.564 2.6-4.286 3.592v1.205c1.862-.637 3.337-1.441 4.286-2.359v3.332c0 1.277-1.564 2.6-4.286 3.591v1.205c1.862-.637 3.337-1.44 4.286-2.358v3.33c0 1.278-1.564 2.602-4.286 3.593v1.204c1.862-.637 3.337-1.44 4.286-2.358v3.33C31 28.214 24.41 31 16 31S1 28.212 1 24.654v-3.331c.949.917 2.424 1.721 4.286 2.358zM17.789 8.532a.41.41 0 0 0-.445.088l-5.595 5.595H9.061c-.9 0-1.632.732-1.632 1.632v2.45c0 .9.732 1.632 1.632 1.632h2.688l5.595 5.594a.407.407 0 0 0 .697-.288V8.909c0-.165-.1-.314-.252-.377m4.185 3.327a.408.408 0 1 0-.52.63c1.398 1.154 2.301 2.952 2.301 4.583 0 1.627-.904 3.426-2.301 4.583a.41.41 0 0 0 .52.629c1.578-1.306 2.597-3.352 2.597-5.212 0-1.864-1.02-3.91-2.597-5.213m-1.653 2.026a.408.408 0 0 0-.48.66c.668.486 1.465 1.318 1.465 2.526 0 1.21-.797 2.042-1.465 2.528a.407.407 0 1 0 .48.66c1.162-.844 1.801-1.975 1.801-3.188 0-1.21-.64-2.342-1.8-3.186"})))}},87028(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M30 10a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1zm-16.5 7.5h-10a.5.5 0 0 0-.5.5v2.5a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V18a.5.5 0 0 0-.5-.5m10 .5h-2a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5m-5 0h-2a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5m10 0h-2a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5m-15-6h-10a.5.5 0 0 0-.5.5V15a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5v-2.5a.5.5 0 0 0-.5-.5m10 0h-2a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5m5 0h-2a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5m-10 0h-2a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5"})))}},28376(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M5.286 22.477C2.564 21.486 1 20.162 1 18.885v-3.331c.949.917 2.424 1.721 4.286 2.358v-1.205C2.564 15.717 1 14.393 1 13.116V9.784c.949.918 2.424 1.722 4.286 2.359v-1.205C2.564 9.947 1 8.623 1 7.346 1 3.788 7.59 1 16 1s15 2.788 15 6.346c0 1.277-1.564 2.6-4.286 3.592v1.205c1.862-.637 3.337-1.441 4.286-2.359v3.332c0 1.277-1.564 2.6-4.286 3.591v1.205c1.862-.637 3.337-1.44 4.286-2.358v3.33c0 1.278-1.564 2.602-4.286 3.593v1.204c1.862-.637 3.337-1.44 4.286-2.358v3.33C31 28.214 24.41 31 16 31S1 28.212 1 24.654v-3.331c.949.917 2.424 1.721 4.286 2.358zM7.429 7.429V9.57h4.273V7.43zm5.359 0V9.57h6.44V7.43zm7.508 0V9.57h4.275V7.43zm-12.867 15v2.142h4.273V22.43zm5.359 0v2.142h6.44V22.43zm7.508 0v2.142h4.275V22.43zM7.429 10.65v10.701H24.57v-10.7z"})))}},17562(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M1.2 18.885c0 2.556 6.501 4.992 14.8 4.992s14.8-2.436 14.8-4.992v-2.882c-2.656 2.232-8.311 3.659-14.8 3.659s-12.144-1.427-14.8-3.66zm0 5.769c0 3.4 6.489 6.146 14.8 6.146s14.8-2.745 14.8-6.146v-2.882c-2.656 2.233-8.311 3.659-14.8 3.659S3.856 24.005 1.2 21.77zm0-11.538c0 2.556 6.501 4.992 14.8 4.992s14.8-2.436 14.8-4.992v-2.883c-2.656 2.233-8.311 3.66-14.8 3.66s-12.144-1.427-14.8-3.66zm14.8-.778c8.299 0 14.8-2.435 14.8-4.992 0-3.4-6.489-6.146-14.8-6.146S1.2 3.945 1.2 7.346c0 2.557 6.501 4.992 14.8 4.992"})))}},53966(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m8 12.242 2.285 2.285v13.011c0 .595.45 1.085 1.029 1.148l.126.006h9.12c.638 0 1.154-.516 1.154-1.154v-1.581L24 28.243v.45A2.31 2.31 0 0 1 21.692 31H10.308A2.31 2.31 0 0 1 8 28.692zm8 9.527a2.297 2.297 0 0 1 2.286 2.308A2.297 2.297 0 0 1 16 26.385a2.297 2.297 0 0 1-2.286-2.308A2.297 2.297 0 0 1 16 21.769M21.692 1A2.31 2.31 0 0 1 24 3.308v16.449l-2.286-2.286V4.461c0-.594-.45-1.084-1.028-1.147l-.126-.006h-9.12c-.638 0-1.154.516-1.154 1.154l-.001 1.579L8 3.756v-.448A2.31 2.31 0 0 1 10.308 1zm-3.417 4.615c.637 0 1.154.517 1.154 1.154v1.154c0 .637-.517 1.154-1.154 1.154h-4.55c-.195 0-.379-.049-.54-.134l-.479-.479a1.15 1.15 0 0 1-.135-.54V6.768c0-.637.517-1.154 1.154-1.154z"}),o.createElement("path",{d:"M2.338 4.459 27.54 29.662a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.005-2.126L4.46 2.338a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},36452(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M21.692 1A2.31 2.31 0 0 1 24 3.308v25.384A2.31 2.31 0 0 1 21.692 31H10.308A2.31 2.31 0 0 1 8 28.692V3.308A2.31 2.31 0 0 1 10.308 1zM20.56 3.308h-9.12c-.638 0-1.154.516-1.154 1.154v23.076c0 .638.516 1.154 1.154 1.154h9.12c.638 0 1.154-.516 1.154-1.154V4.462c0-.638-.516-1.154-1.154-1.154M16 21.769a2.297 2.297 0 0 1 2.286 2.308A2.297 2.297 0 0 1 16 26.385a2.297 2.297 0 0 1-2.286-2.308A2.297 2.297 0 0 1 16 21.769m2.275-16.154c.637 0 1.154.517 1.154 1.154v1.154c0 .637-.517 1.154-1.154 1.154h-4.55a1.154 1.154 0 0 1-1.154-1.154V6.77c0-.637.517-1.154 1.154-1.154z"})))}},80842(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M26.027 15.384a8.5 8.5 0 0 0-2.057-.354c.85-.42 1.545-.895 2.057-1.41zm-10.858 6.587a8.5 8.5 0 0 0-.147 1.54c0 1.216.26 2.37.722 3.418a30 30 0 0 1-2.223.084c-7.013 0-12.506-2.416-12.506-5.503v-2.888C3.01 20.629 7.796 22.01 13.52 22.01q.839-.001 1.648-.04m-1.648-.96c-7.48 0-12.506-2.329-12.506-4.503V13.62c1.996 2.007 6.781 3.388 12.506 3.388 1.79 0 3.485-.136 5.034-.383a8.53 8.53 0 0 0-3.14 4.333q-.918.05-1.894.052m0-5.003c-7.48 0-12.506-2.328-12.506-4.502V8.617c1.996 2.007 6.781 3.389 12.506 3.389s10.51-1.382 12.506-3.389v2.889c0 2.174-5.026 4.502-12.506 4.502m0-5.003c-7.48 0-12.506-2.328-12.506-4.502 0-3.085 5.493-5.502 12.506-5.502 7.012 0 12.506 2.417 12.506 5.502 0 2.174-5.026 4.502-12.506 4.502"}),o.createElement("path",{d:"M23.511 16.007c4.138 0 7.504 3.367 7.504 7.504 0 4.138-3.366 7.504-7.504 7.504-4.137 0-7.503-3.366-7.503-7.504 0-4.137 3.366-7.504 7.503-7.504m-.067 5.003a.9.9 0 0 0-.668.293l-2.924 3.173a.917.917 0 0 0 .043 1.287c.368.349.95.329 1.293-.045l2.256-2.448 2.257 2.448a.906.906 0 0 0 1.293.045.917.917 0 0 0 .043-1.287l-2.924-3.173a.9.9 0 0 0-.669-.293"}))))}},2353(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M1.015 18.622C3.01 20.629 7.796 22.01 13.52 22.01q.839-.001 1.648-.04a8.5 8.5 0 0 0-.147 1.54c0 1.216.26 2.37.722 3.418a30 30 0 0 1-2.223.084c-6.892 0-12.316-2.334-12.501-5.344l-.005-.159zm0-5.002c1.996 2.007 6.781 3.388 12.506 3.388 1.79 0 3.485-.136 5.034-.383a8.53 8.53 0 0 0-3.14 4.333q-.918.05-1.894.052c-7.35 0-12.33-2.247-12.502-4.387l-.004-.115zm25.012-5.003v2.889c0 2.174-5.026 4.502-12.506 4.502-7.35 0-12.33-2.247-12.502-4.388l-.004-.114V8.617c1.996 2.007 6.781 3.389 12.506 3.389s10.51-1.382 12.506-3.389m0 5.003v1.764a8.5 8.5 0 0 0-2.057-.354c.85-.42 1.545-.895 2.057-1.41M13.52 1c7.012 0 12.506 2.418 12.506 5.503 0 2.174-5.026 4.502-12.506 4.502S1.015 8.677 1.015 6.503c0-3.085 5.493-5.502 12.506-5.502"}),o.createElement("path",{d:"M23.511 16.007c4.138 0 7.504 3.367 7.504 7.504 0 4.138-3.366 7.504-7.504 7.504-4.137 0-7.503-3.366-7.503-7.504 0-4.137 3.366-7.504 7.503-7.504m3.483 5.252a.907.907 0 0 0-1.293.045l-2.256 2.448-2.257-2.448a.906.906 0 0 0-1.293-.045.917.917 0 0 0-.043 1.287l2.924 3.173a.91.91 0 0 0 1.337 0l2.924-3.173a.917.917 0 0 0-.043-1.287"}))))}},56800(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16 23.825a3.543 3.543 0 0 1 3.54 3.539A3.543 3.543 0 0 1 16 30.903a3.543 3.543 0 0 1-3.54-3.54A3.543 3.543 0 0 1 16 23.826m-3.254-6.84 2.766 2.765a8.45 8.45 0 0 0-3.881 1.195l-.28.175-.678.462-1.852-2.61.39-.277a11.7 11.7 0 0 1 3.535-1.71M16 8.763c3.558 0 6.987 1.004 9.969 2.917l.37.244.753.521-1.86 2.622-.39-.276a15.2 15.2 0 0 0-8.62-2.816L13.216 8.97A19 19 0 0 1 16 8.763m-9.09 2.386 2.376 2.374q-.745.365-1.45.812l-.347.226-.725.501-1.854-2.612.39-.277q.784-.555 1.61-1.024M16 1C20.92 1 25.66 2.408 29.77 5.085l.423.282.806.56-1.86 2.622-.39-.277A21.9 21.9 0 0 0 16 4.21c-2.249 0-4.452.336-6.555.99l-2.52-2.52A25.2 25.2 0 0 1 16 1M1.404 5.643l2.308 2.308-.071.048-.787.546L1 5.93l.39-.277z"}),o.createElement("path",{d:"m2.444 4.562 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.565 2.44a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},19391(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 23.825a3.543 3.543 0 0 0-3.54 3.539A3.543 3.543 0 0 0 16 30.903a3.543 3.543 0 0 0 3.54-3.54A3.543 3.543 0 0 0 16 23.826m-.001-7.299c2.183 0 4.293.6 6.15 1.747l.325.208.706.484-1.861 2.624-.39-.276a8.47 8.47 0 0 0-4.93-1.577c-1.55 0-3.048.417-4.368 1.209l-.28.175-.678.462-1.852-2.61.39-.277a11.67 11.67 0 0 1 6.788-2.169m0-7.763c3.558 0 6.987 1.004 9.969 2.917l.37.244.753.521-1.86 2.622-.39-.276A15.2 15.2 0 0 0 16 11.973a15.2 15.2 0 0 0-8.164 2.362l-.347.226-.725.501-1.854-2.612.39-.277a18.4 18.4 0 0 1 10.7-3.41m0-7.763C20.92 1 25.66 2.408 29.77 5.085l.423.282.806.56-1.86 2.622-.39-.277A21.9 21.9 0 0 0 16 4.21 21.9 21.9 0 0 0 4.035 7.737L3.641 8l-.787.546L1 5.93l.39-.277A25.1 25.1 0 0 1 15.999 1"})))}},67061(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FFF",fillOpacity:.4,d:"M14.5 18.667c0 1.098.17 2.214.501 3.333H1.998A.995.995 0 0 1 1 21.01V16.99a1 1 0 0 1 .998-.99L14.91 16a8.9 8.9 0 0 0-.409 2.667m-9-1.167a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 5.5 17.5m5 0a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 10.5 17.5M30.002 9c.55 0 .998.444.998.991v3.24a9.5 9.5 0 0 0-2.398-2.248 1.5 1.5 0 0 0-.746-.44 9 9 0 0 0-4.19-1.043c-3.687 0-6.936 2.29-8.377 5.5H2A.995.995 0 0 1 1 14.01V9.99a1 1 0 0 1 .998-.99zM5.5 10.5a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 5.5 10.5m5 0a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 10.5 10.5M22.275 1c.548 0 1.326.312 1.729.697l5.868 5.606c.405.387.279.697-.276.697H2.404c-.558 0-.68-.312-.276-.697l5.866-5.606C8.4 1.31 9.171 1 9.724 1z"}),o.createElement("path",{fill:"#FFF",d:"M23.667 22.667a3.337 3.337 0 0 1-3.334-3.334A3.337 3.337 0 0 1 23.667 16 3.337 3.337 0 0 1 27 19.333a3.337 3.337 0 0 1-3.333 3.334m0-11.667C19.51 11 16 14.511 16 18.667c0 2.805 1.295 5.819 3.745 8.715 1.838 2.173 3.65 3.499 3.726 3.554a.33.33 0 0 0 .392 0c.076-.055 1.887-1.381 3.725-3.554 2.45-2.896 3.745-5.91 3.745-8.715 0-4.156-3.51-7.667-7.666-7.667"}))))}},90175(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M12.595 1c1.06 0 1.933.81 2.032 1.845l.01.197v9.553c0 1.06-.81 1.933-1.846 2.032l-.196.01H3.042c-1.06 0-1.934-.81-2.033-1.846L1 12.595V3.042c0-1.06.81-1.934 1.845-2.033L3.042 1zM7.682 3.727l-.154.01a1.23 1.23 0 0 0-1.073 1.218v1.5h-1.5c-.678 0-1.228.55-1.228 1.227l.01.154a1.23 1.23 0 0 0 1.218 1.073h1.5v1.5c0 .678.55 1.227 1.227 1.227l.154-.01a1.23 1.23 0 0 0 1.073-1.217v-1.5h1.5c.678 0 1.227-.55 1.227-1.227l-.01-.154a1.23 1.23 0 0 0-1.217-1.073h-1.5v-1.5c0-.678-.55-1.228-1.227-1.228m4.913 13.637c1.06 0 1.933.81 2.032 1.845l.01.196v9.553c0 1.06-.81 1.934-1.846 2.033l-.196.009H3.042c-1.06 0-1.934-.81-2.033-1.845L1 28.958v-9.553c0-1.06.81-1.933 1.845-2.032l.197-.01zm-3.736 3.768L7.68 22.31l-1.176-1.178a1.23 1.23 0 0 0-1.736 0l-.11.126c-.365.48-.329 1.17.11 1.61l1.177 1.176-1.177 1.179a1.228 1.228 0 0 0 .869 2.094l.16-.01c.264-.035.513-.154.707-.349l1.178-1.177 1.177 1.177c.234.234.545.36.869.36.322 0 .634-.127.867-.36l.11-.125c.365-.481.329-1.171-.11-1.61l-1.177-1.179 1.177-1.177a1.228 1.228 0 0 0-1.736-1.735M28.96 1c1.059 0 1.933.81 2.032 1.845l.009.197v9.553c0 1.06-.81 1.933-1.845 2.032l-.197.01h-9.553c-1.06 0-1.933-.81-2.032-1.846l-.01-.196V3.042c0-1.06.81-1.934 1.846-2.033L19.405 1zm-1.956 5.455h-5.642c-.701 0-1.27.55-1.27 1.227s.569 1.227 1.27 1.227h5.642c.701 0 1.27-.55 1.27-1.227 0-.678-.569-1.227-1.27-1.227m1.955 10.909c1.06 0 1.934.81 2.033 1.845l.009.196v9.553c0 1.06-.81 1.934-1.845 2.033l-.197.009h-9.553c-1.06 0-1.933-.81-2.032-1.845l-.01-.197v-9.553c0-1.06.81-1.933 1.846-2.032l.196-.01zm-1.955 7.5h-5.642c-.701 0-1.27.55-1.27 1.227 0 .678.569 1.227 1.27 1.227h5.642c.701 0 1.27-.55 1.27-1.227 0-.678-.569-1.227-1.27-1.227m0-4.091h-5.642c-.701 0-1.27.55-1.27 1.227 0 .678.569 1.227 1.27 1.227h5.642c.701 0 1.27-.55 1.27-1.227 0-.678-.569-1.227-1.27-1.227"})))}},80963(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M28.007 5A3 3 0 0 1 31 8.005v16.284C31 25.784 29.812 27 28.353 27H3.647C2.187 27 1 25.784 1 24.289V8.142C1 6.402 2.343 5 4 5ZM23 12H9c-2.206 0-4 1.794-4 4s1.794 4 4 4 4-1.794 4-4c0-.732-.212-1.41-.556-2h7.112A3.96 3.96 0 0 0 19 16c0 2.206 1.794 4 4 4s4-1.794 4-4-1.794-4-4-4M9 14c1.102 0 2 .898 2 2s-.898 2-2 2-2-.898-2-2 .898-2 2-2m14 0c1.102 0 2 .898 2 2s-.898 2-2 2-2-.898-2-2 .898-2 2-2"})))}},47185(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M23.424 1.332c.394.411.422 1.055.084 1.498l-.084.098-3.275 3.413.028.024a6.7 6.7 0 0 1 1.38 1.646l.153.271.142.283h5.035c2.134 0 3.891 1.7 4.094 3.865l.014.21.005.208v13.87c0 2.289-1.734 4.165-3.908 4.277l-.205.005H5.113c-2.2 0-4-1.807-4.108-4.07L1 26.718V12.848c0-2.29 1.734-4.166 3.908-4.277l.205-.006h5.031a6.7 6.7 0 0 1 1.45-1.995l.228-.206.027-.023-3.274-3.413a1.16 1.16 0 0 1-.155-1.391l.072-.107.084-.099a1.06 1.06 0 0 1 1.447-.087l.094.088 3.692 3.849.3-.103q.614-.195 1.251-.262l.32-.025.32-.008q.806.001 1.583.206l.308.09.298.102 3.693-3.85a1.06 1.06 0 0 1 1.542.001M25 11.565H7a3 3 0 0 0-3 3v10.428c0 1.656 1.343 3 3 3l18.001.005c1.657.002 3-1.341 3-2.998V14.565a3 3 0 0 0-3-3"}),o.createElement("path",{fillOpacity:.4,d:"m26.209 12.971.107.088c.42.365.684.903.684 1.503V25.03l-.004.12a2 2 0 0 1-1.846 1.844l-.149.005h-.272l-3.158-6.124a1.9 1.9 0 0 0-1.559-1.046l-.155-.006c-.68 0-1.315.362-1.657.943l-2.509 4.265c-.664-.822-2.226-2.457-4.123-2.457-1.966 0-3.627 2.93-4.346 4.42L7 26.993a2 2 0 0 1-2-2V14.564a2 2 0 0 1 .795-1.595l.001-.002.111-.077a2 2 0 0 1 1.084-.321H25.01c.45 0 .866.15 1.2.402m-13.254 1.35a2.66 2.66 0 0 0-2.544 1.85 1.748 1.748 0 0 0-1.983 1.724c0 .926.738 1.68 1.645 1.68a1 1 0 0 0 .109-.005h2.755q.065.003.13.003c.69 0 1.338-.271 1.822-.765.48-.489.744-1.14.744-1.83 0-1.465-1.2-2.657-2.678-2.657"}))))}},2898(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M23.602 23.296a5.898 5.898 0 0 0 0-11.796H8.398a5.898 5.898 0 0 0 0 11.796zm-15.204 1.5a7.398 7.398 0 1 1 0-14.796h15.204a7.398 7.398 0 1 1 0 14.796zm10.204-3h-5.204a4.398 4.398 0 0 1 0-8.796h5.204a4.398 4.398 0 0 1 0 8.796M20.5 17.28c0 .392.33.72.75.72s.75-.328.75-.72c0-1.803-1.483-3.28-3.321-3.28h-.93a.734.734 0 0 0-.749.722.7.7 0 0 0 .21.499c.14.139.333.22.54.22l.929-.001c.997 0 1.821.82 1.821 1.84"})))}},33045(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M10.102 23.602a5.898 5.898 0 0 0 11.796 0V8.398a5.898 5.898 0 0 0-11.796 0zm-1.5-15.204a7.398 7.398 0 1 1 14.796 0v15.204a7.398 7.398 0 1 1-14.796 0zm8 12h-1.204a4.398 4.398 0 0 1 0-8.796h1.204a4.398 4.398 0 0 1 0 8.796m1.898-4.516c0 .392.33.72.75.72s.75-.328.75-.72c0-1.803-1.483-3.28-3.321-3.28h-.93a.734.734 0 0 0-.749.722.7.7 0 0 0 .21.499c.14.138.333.22.54.22l.929-.001c.997 0 1.821.82 1.821 1.84"})))}},36891(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M22.25 5c.887 0 1.738.543 2.395 1.527l.039.068L25.76 8.75h2.044c2.641 0 3.195 1.51 3.195 2.778v12.986c0 1.897-1.164 2.986-3.195 2.986H4.195C2.164 27.5 1 26.411 1 24.514V11.528c0-1.16.46-2.52 2.516-2.743l.019-.677c0-.982.86-1.858 1.84-1.858h1.18c1.036 0 1.945.876 1.945 1.875v.625h3.438l1.687-2.25C14.262 5.543 15.113 5 16 5Zm-3.125 5c-4.135 0-7.5 3.364-7.5 7.5s3.365 7.5 7.5 7.5 7.5-3.364 7.5-7.5-3.365-7.5-7.5-7.5m0 1.25a6.257 6.257 0 0 1 6.25 6.25 6.257 6.257 0 0 1-6.25 6.25 6.257 6.257 0 0 1-6.25-6.25 6.257 6.257 0 0 1 6.25-6.25m0 1.875A4.38 4.38 0 0 0 14.75 17.5a4.38 4.38 0 0 0 4.375 4.375A4.38 4.38 0 0 0 23.5 17.5a4.38 4.38 0 0 0-4.375-4.375M6 11.25a2.503 2.503 0 0 0-2.5 2.5c0 1.379 1.121 2.5 2.5 2.5s2.5-1.121 2.5-2.5-1.121-2.5-2.5-2.5m0 1.25c.689 0 1.25.56 1.25 1.25C7.25 14.439 6.689 15 6 15s-1.25-.561-1.25-1.25c0-.69.561-1.25 1.25-1.25"})))}},69978(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M11.04 19.265c.436 0 .86.052 1.263.153l.298.084 3.003 2.54-.007.009c.56 1.07.66 2.28.258 3.513C14.86 28.612 11.19 31 7.498 31c-2.377 0-4.573-.954-6.349-2.76a.516.516 0 0 1 .384-.881c2.832.142 3.515-1.503 4.095-3.345l.105-.337c.264-.856.513-1.664.97-2.287.963-1.31 2.624-2.125 4.337-2.125m15.281-17.2c.947-1.22 2.553-1.405 3.725-.486l.147.124.025.026a3.22 3.22 0 0 1 .097 4.09l-.13.153-12.963 14.271-.024-.03-2.986-2.558z"})))}},99733(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M12.015 12.004q-.089 0-.178-.004H8.08a1 1 0 0 1-.148.007c-1.237 0-2.244-1.037-2.244-2.311a2.394 2.394 0 0 1 2.704-2.37 3.625 3.625 0 0 1 3.47-2.543 3.656 3.656 0 0 1 3.652 3.652c0 .95-.36 1.845-1.015 2.517a3.44 3.44 0 0 1-2.484 1.052M3.005 1c-1.1 0-1.99.89-1.99 1.991V23h2.668c.644-1.487 3.19-6.87 6.288-6.87 2.586 0 4.716 2.249 5.622 3.379l3.421-5.864a2.62 2.62 0 0 1 2.26-1.297 2.6 2.6 0 0 1 2.337 1.446L28.321 23h2.693V2.99c0-1.1-.898-1.991-1.991-1.991zM1.015 28.994c0 1.108.898 2.006 1.992 2.006h26.016c1.1 0 1.992-.887 1.992-2.006V24h-30z"}))))}},2943(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"m21.493 7.25 4.413 7.173a.62.62 0 0 1 .032.597l-7.5 15.625a.63.63 0 0 1-.563.355h-1.25V17.186a3.13 3.13 0 0 0 2.5-3.06A3.13 3.13 0 0 0 16 11a3.13 3.13 0 0 0-3.125 3.125 3.13 3.13 0 0 0 2.5 3.061V31h-1.25a.63.63 0 0 1-.563-.355l-7.5-15.625a.62.62 0 0 1 .03-.597l4.415-7.173zm-5.493 5c1.034 0 1.875.841 1.875 1.875A1.877 1.877 0 0 1 16 16a1.877 1.877 0 0 1-1.875-1.875c0-1.034.841-1.875 1.875-1.875M21.386 6l2.047-4.095A.625.625 0 0 0 22.875 1H8.5a.624.624 0 0 0-.53.956L10.497 6z"})))}},48919(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.457 26.974 29.094 31l-2.505-.231c.225-.457.366-.964.402-1.5L27 29v-2h2q.231 0 .457-.026m-21.015-.297 6.983.001c.414.178.865.287 1.337.315L17 27h2v2q.002.563.147 1.079L8.212 29.065zm4.92-5.344A4 4 0 0 0 13 23c0 .997.365 1.908.968 2.609H2l.003-4.276zM26.217 1v13.621a4 4 0 0 0-6.82.642l-1.754-4.58a.53.53 0 0 0-.476-.342.53.53 0 0 0-.45.234l-.043.08-2.972 6.639-2.782-3.391a.524.524 0 0 0-.81.002l-.05.07-3.623 6.29H2.004l.02-19.241zm1.053 8.468.198.017.083.007.007-.008L31 9.802l-.842 9.368a4 4 0 0 0-.918-.163L29 19h-1.732zM8.317 5.299c-1.45 0-2.632 1.2-2.632 2.673s1.181 2.672 2.632 2.672 2.632-1.2 2.632-2.672-1.181-2.673-2.632-2.673"}),o.createElement("path",{d:"M25 29v-4h4a2 2 0 1 0 0-4h-4v-4a2 2 0 1 0-4 0v4h-4a2 2 0 1 0 0 4h4v4a2 2 0 1 0 4 0"}))))}},47253(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m27.557 9.484-.007.008-.281-.024v17.21H8.442l-.23 2.387L29.094 31 31 9.802z"}),o.createElement("path",{d:"M26.216 21.333v4.276H2l.003-4.276zm0-20.333v19.264h-4.904l-3.67-9.582a.53.53 0 0 0-.476-.34.53.53 0 0 0-.493.313L13.7 17.294l-2.782-3.391a.527.527 0 0 0-.86.073l-3.623 6.288H2.004l.02-19.24zM8.317 5.3c-1.45 0-2.632 1.199-2.632 2.672s1.181 2.672 2.632 2.672 2.632-1.2 2.632-2.672-1.181-2.673-2.632-2.673"}))))}},16119(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m23.881 19 .034.093a2.71 2.71 0 0 0 2.501 1.738l.205-.007.173-.017.15-.024.23-.059c.443-.129.8-.331 1.101-.61q.556-.51 1.027-1.09A2 2 0 0 1 31 21v8a2 2 0 0 1-2 2H18a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zM24 13a2 2 0 0 1 1.85 1.241 4.9 4.9 0 0 1-1.241 1.815l-.155.155c-.338.365-.567.81-.67 1.289H18a3.5 3.5 0 0 0-3.5 3.5v4H13l-.071-.003-1.898-1.645A2 2 0 0 1 11 23v-8a2 2 0 0 1 2-2zm-6.168-6 3.118 2.704.05.04V11.5h-8A3.5 3.5 0 0 0 9.5 15v4H8a2 2 0 0 1-2-2v-.143q.244-.312.537-.582a2.75 2.75 0 0 0 .868-1.69l.017-.228.002-.16-.005-.125-.015-.163-.023-.15-.037-.177-.04-.147-.073-.197a2.7 2.7 0 0 0-1.23-1.407L6 9a2 2 0 0 1 2-2zM14 1a2 2 0 0 1 2 2v2.5H8A3.5 3.5 0 0 0 4.5 9v2.508c-.6.045-1.174.29-1.63.708q-.33.304-.63.633A2 2 0 0 1 1 11V3a2 2 0 0 1 2-2z"}),o.createElement("path",{d:"M4.715 13a1.2 1.2 0 0 0-.829.32 8.97 8.97 0 0 0-2.824 5.57l-.032.318-.02.32-.01.307.005.432.019.346q.049.693.206 1.383a9.32 9.32 0 0 0 4.15 5.823q.649.4 1.338.678l.347.131.35.115.355.1-.308.215-.12.094-.104.106a1.2 1.2 0 0 0-.224.373l-.044.137-.028.141-.012.126.003.152.022.151q.046.228.177.434c.2.308.512.497.845.546l.126.012.127-.002.127-.015.125-.028.124-.043.12-.057.115-.072 3.59-2.5.113-.09.1-.1a1.3 1.3 0 0 0 .225-.358l.046-.134.031-.14.016-.143-.007-.154-.02-.147-.034-.14a1.3 1.3 0 0 0-.109-.255l-.073-.115-.087-.105-.1-.097-3.317-2.875-.108-.083-.114-.07a1.2 1.2 0 0 0-.365-.125l-.126-.015-.126-.002-.126.012c-.292.042-.57.192-.772.443a1.3 1.3 0 0 0-.22.412l-.036.148-.019.151-.001.126.013.144.03.14q.037.141.107.27l.078.124.093.117.108.106.943.817-.285-.07-.282-.083a6.2 6.2 0 0 1-1.358-.631 6.82 6.82 0 0 1-3.155-4.923l-.033-.333-.015-.333-.001-.265.012-.294.024-.292a6.47 6.47 0 0 1 2.042-4.08c.188-.175.311-.394.367-.628l.026-.142.01-.144-.006-.126-.022-.15-.04-.147a1.3 1.3 0 0 0-.232-.406 1.2 1.2 0 0 0-.66-.399l-.124-.021zM23.043 1a1.2 1.2 0 0 0-.379.045l-.123.043-.12.057-.116.071-3.59 2.501-.113.09-.1.1a1.3 1.3 0 0 0-.225.358l-.046.134-.031.14-.015.143.006.154.02.146.034.14q.042.136.109.256l.074.115.086.105.1.096 3.318 2.876.108.083.136.082c.14.071.291.113.443.126l.152.004.125-.012.125-.024c.245-.063.474-.204.647-.419a1.3 1.3 0 0 0 .22-.412l.037-.149.018-.15.002-.126-.014-.144-.03-.14a1.3 1.3 0 0 0-.107-.27l-.077-.124-.093-.117-.109-.106-.943-.817.285.069.282.084c.468.151.924.362 1.358.631a6.82 6.82 0 0 1 3.155 4.923l.033.333.016.333v.265l-.011.294-.025.292a6.47 6.47 0 0 1-2.041 4.08 1.25 1.25 0 0 0-.368.628l-.026.142-.01.144.006.126.022.15.041.147c.05.145.127.283.231.405.21.246.491.387.785.421l.126.008.126-.006.15-.024c.2-.045.39-.141.553-.29a8.97 8.97 0 0 0 2.824-5.57l.032-.318.02-.32.01-.307-.005-.432-.018-.346a9 9 0 0 0-.207-1.383 9.32 9.32 0 0 0-4.15-5.823 9 9 0 0 0-1.338-.678l-.347-.131-.35-.115-.355-.1.309-.215.119-.094.104-.106c.098-.111.173-.238.225-.373l.043-.137.029-.141.01-.126-.002-.152-.021-.152c-.031-.15-.09-.297-.178-.433a1.22 1.22 0 0 0-.721-.521l-.124-.025z"}))))}},64154(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#4B4B4B",fillRule:"evenodd"},o.createElement("path",{d:"m1 10.53 7.378 2.087 6.996 6.997.001 6.215a.624.624 0 0 0 1.243.093l.007-.093-.001-4.965 4.047 4.046-4.466 1.555a.6.6 0 0 1-.343.02l-.067-.02-14.375-5a.63.63 0 0 1-.412-.492L1 20.875zm30-.175v10.52c0 .233-.13.443-.33.55l-.09.04-3.614 1.256-8.633-8.633zM16.053 6.002l.104.019L29.49 9.498l-12.164 3.583-5.908-5.907 4.425-1.153.104-.019zM4.69 8.93l1.877 1.877-4.352-1.23zM2.444 4.562l25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.565 2.44a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},84505(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m1 10.53 7.378 2.087 6.996 6.997.001 6.215a.624.624 0 0 0 1.243.093l.007-.093-.001-4.965 4.047 4.046-4.466 1.555a.6.6 0 0 1-.343.02l-.067-.02-14.375-5a.63.63 0 0 1-.412-.492L1 20.875zm30-.175v10.52c0 .233-.13.443-.33.55l-.09.04-3.614 1.256-8.633-8.633zM16.053 6.002l.104.019L29.49 9.498l-12.164 3.583-5.908-5.907 4.425-1.153.104-.019zM4.69 8.93l1.877 1.877-4.352-1.23z"}),o.createElement("path",{d:"m2.444 4.562 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.565 2.44a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},78284(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 1c8.272 0 15 6.729 15 15s-6.727 15-15 15S1 24.272 1 16 7.728 1 16 1m7.452 7.545a1.864 1.864 0 0 0-2.636.001L16 13.362l-4.816-4.816a1.865 1.865 0 1 0-2.637 2.638L13.363 16l-4.816 4.816a1.864 1.864 0 0 0 0 2.637 1.865 1.865 0 0 0 2.637 0L16 18.638l4.816 4.815a1.865 1.865 0 1 0 2.636-2.638L18.638 16l4.816-4.816c.729-.727.729-1.91-.002-2.639"})))}},30356(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M5.68 30.197a2.74 2.74 0 0 1-3.877 0 2.74 2.74 0 0 1 0-3.877L12.123 16 1.803 5.68a2.74 2.74 0 0 1-.002-3.875 2.74 2.74 0 0 1 3.88-.002L16 12.123 26.317 1.805a2.741 2.741 0 1 1 3.879 3.875L19.877 16l10.32 10.32a2.741 2.741 0 1 1-3.877 3.877L16 19.877z"})))}},68361(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M12.87 3.26h6v2.87h-6zM20.652 1c.264 0 .478.214.478.478V6.13h7.61a1 1 0 0 1 1 1v.261a1 1 0 0 1-1 1h-2.827v22.13a.48.48 0 0 1-.478.479H6.305a.48.48 0 0 1-.479-.478V8.392H3a1 1 0 0 1-1-1V7.13a1 1 0 0 1 1-1h7.609V1.478c0-.264.214-.478.478-.478Zm.917 9.71c-.64 0-1.16.519-1.16 1.16v13.39a1.16 1.16 0 0 0 2.32 0V11.87c0-.641-.52-1.16-1.16-1.16m-10.909 0c-.64 0-1.16.519-1.16 1.16v13.39a1.16 1.16 0 0 0 2.32 0V11.87c0-.641-.52-1.16-1.16-1.16m5.455 0c-.64 0-1.16.519-1.16 1.16v13.39a1.16 1.16 0 0 0 2.32 0V11.87c0-.641-.52-1.16-1.16-1.16"})))}},47969(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29 1a2 2 0 0 1 2 2v26.001a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2V20.46h2.563c2.042 0 3.716-1.563 3.918-3.559l.015-.2.005-.204c0-2.185-1.76-3.964-3.938-3.964H22V3a2 2 0 0 1 2-2z"}),o.createElement("path",{d:"M10.652 5.722 1.708 14.76a2.6 2.6 0 0 0-.307.383l-.118.217a2 2 0 0 0-.097.195l-.027.073-.089.288-.022.097c-.063.319-.063.649-.004.945l.024.112.117.365.043.097.148.276.035.058q.13.195.303.374l8.938 9.03a2.42 2.42 0 0 0 3.447 0 2.47 2.47 0 0 0 .714-1.741c0-.649-.252-1.275-.714-1.742l-4.777-4.827h15.241c1.346 0 2.438-1.103 2.438-2.463s-1.092-2.464-2.438-2.464H9.322l4.776-4.826a2.48 2.48 0 0 0 0-3.484 2.42 2.42 0 0 0-3.446 0"}))))}},3980(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M3 1a2 2 0 0 0-2 2v26.001a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V20.46H7.437c-2.042 0-3.716-1.563-3.918-3.559l-.015-.2-.005-.204c0-2.117 1.652-3.852 3.735-3.958l.203-.006H10V3a2 2 0 0 0-2-2z"}),o.createElement("path",{d:"M21.348 5.722a2.42 2.42 0 0 0-3.447 0 2.48 2.48 0 0 0-.118 3.355l.119.13 4.776 4.825H7.437c-1.346 0-2.438 1.104-2.438 2.464a2.453 2.453 0 0 0 2.277 2.458l.16.005h15.242l-4.777 4.827a2.47 2.47 0 0 0-.714 1.742c0 .648.252 1.274.714 1.741.912.921 2.362.961 3.32.12l.127-.12 8.938-9.03q.173-.179.303-.374l.035-.058.148-.276.043-.097.117-.365.024-.112c.047-.237.057-.496.026-.753l-.03-.192-.022-.097-.089-.288-.027-.073-.044-.097-.17-.315a3 3 0 0 0-.2-.266l-.108-.117z"}))))}},66411(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M5 18a4 4 0 1 1 0 8 4 4 0 0 1 0-8m22 0a4 4 0 1 1 0 8 4 4 0 0 1 0-8m-11 0a4 4 0 1 1 0 8 4 4 0 0 1 0-8M5 6a4 4 0 1 1 0 8 4 4 0 0 1 0-8m22 0a4 4 0 1 1 0 8 4 4 0 0 1 0-8M16 6a4 4 0 1 1 0 8 4 4 0 0 1 0-8"})))}},92721(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M10 23a4 4 0 1 1 0 8 4 4 0 0 1 0-8m12 0a4 4 0 1 1 0 8 4 4 0 0 1 0-8M10 12a4 4 0 1 1 0 8 4 4 0 0 1 0-8m12 0a4 4 0 1 1 0 8 4 4 0 0 1 0-8M10 1a4 4 0 1 1 0 8 4 4 0 0 1 0-8m12 0a4 4 0 1 1 0 8 4 4 0 0 1 0-8"})))}},39680(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m6.302 10.541 3.957 3.958a5.88 5.88 0 0 0 6.992 6.992l2.469 2.47c-1.186.338-2.432.539-3.72.539-8.148 0-14.595-8.021-14.865-8.361a.63.63 0 0 1 0-.778c.146-.184 2.106-2.623 5.167-4.82M16 7c8.149 0 14.595 8.021 14.865 8.361.18.229.18.549 0 .778-.15.19-2.23 2.777-5.456 5.024l-3.768-3.768a5.88 5.88 0 0 0-7.287-7.285L11.9 7.653A13.7 13.7 0 0 1 16 7m-4.373 8.869 4.255 4.253-.094-.002a4.38 4.38 0 0 1-4.161-4.251M16 11.375a4.38 4.38 0 0 1 4.36 4.739l-4.724-4.724q.18-.015.364-.015"}),o.createElement("path",{d:"M1.939 1.936a1.507 1.507 0 0 1 2.012-.098l.114.103L29.27 27.145c.59.59.592 1.538.004 2.126a1.507 1.507 0 0 1-2.012.098l-.114-.103L1.944 4.062a1.5 1.5 0 0 1-.005-2.126"}))))}},33311(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 7c8.149 0 14.595 8.021 14.865 8.361.18.229.18.549 0 .778-.27.34-6.716 8.361-14.865 8.361-8.148 0-14.595-8.021-14.865-8.361a.63.63 0 0 1 0-.778C1.405 15.021 7.853 7 16 7m0 2.875a5.88 5.88 0 0 0-5.875 5.875A5.88 5.88 0 0 0 16 21.625a5.88 5.88 0 0 0 5.875-5.875A5.88 5.88 0 0 0 16 9.875m0 1.5a4.38 4.38 0 0 1 4.375 4.375A4.38 4.38 0 0 1 16 20.125a4.38 4.38 0 0 1-4.375-4.375A4.38 4.38 0 0 1 16 11.375"})))}},1280(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M25.534 1c.343 0 .675.12.938.337.584.481.694 1.317.278 1.928l-.09.118-9.648 10.65a1.8 1.8 0 0 0-.57.383l-2.024 2.023-.11.12-.096.127a1.78 1.78 0 0 0 .21 2.278l.336.336h-.475l-.146.006a1.784 1.784 0 0 0-1.637 1.777v2.267l.006.146.019.151a1.784 1.784 0 0 0 1.758 1.486h.05l-1.597 1.583a.984.984 0 0 1-1.383 0 .96.96 0 0 1-.286-.685V14.124L1.34 3.384a1.45 1.45 0 0 1-.333-.786L1 2.453c0-.755.582-1.376 1.325-1.446L2.466 1z"}),o.createElement("path",{d:"M22.5 25.333a2.837 2.837 0 0 1-2.833-2.833 2.837 2.837 0 0 1 2.833-2.833 2.837 2.837 0 0 1 2.833 2.833 2.837 2.837 0 0 1-2.833 2.833m8.217-4.533h-2.102a6.6 6.6 0 0 0-.58-1.413L29.52 17.9a.283.283 0 0 0 0-.4L27.5 15.479a.284.284 0 0 0-.4 0l-1.489 1.488a8.4 8.4 0 0 0-1.411-.583v-2.1a.283.283 0 0 0-.283-.284h-2.834a.283.283 0 0 0-.283.283v2.102c-.384.114-.96.337-1.412.581L17.9 15.48a.284.284 0 0 0-.4 0l-2.021 2.02a.283.283 0 0 0 0 .401l1.488 1.489a8.6 8.6 0 0 0-.58 1.411h-2.104a.283.283 0 0 0-.283.283v2.267c0 .156.127.283.283.283h2.075c.123.738.35 1.47.61 1.977l-1.49 1.49a.28.28 0 0 0 0 .4l2.022 2.021a.29.29 0 0 0 .4 0l1.49-1.49c.326.166.721.305 1.05.42.133.047.26.092.36.13v2.136c0 .156.127.283.283.283h2.834a.283.283 0 0 0 .283-.283V28.58c.1-.038.228-.083.36-.13.33-.115.724-.254 1.049-.42l1.49 1.49c.111.11.29.11.401 0l2.021-2.02a.284.284 0 0 0 0-.401l-1.484-1.484c.262-.437.473-.874.613-1.983h2.067A.283.283 0 0 0 31 23.35v-2.267a.283.283 0 0 0-.283-.283"}))))}},6910(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M2.692 1h26.616c.396 0 .779.138 1.083.389.673.555.8 1.52.32 2.224l-.103.137-11.224 12.393v9.73l-4.842 4.8a1.135 1.135 0 0 1-1.596 0 1.11 1.11 0 0 1-.33-.79v-13.74L1.392 3.75a1.67 1.67 0 0 1-.384-.906L1 2.677c0-.872.671-1.588 1.53-1.67zh26.616z"})))}},7067(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m21.147 1.704-.329.151A19 19 0 0 0 17.272 4H5.015a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h21.942a1 1 0 0 0 1-.997l.055-22q0-.087-.014-.171a14 14 0 0 1 2.287-1.04l.348-.113.254-.073.098-.027q.017.121.024.245l.006.177v24a3.004 3.004 0 0 1-2.825 2.994l-.175.005h-24a3.004 3.004 0 0 1-2.995-2.824l-.006-.175V4a3 3 0 0 1 2.824-2.995L4.014 1h18.881q-.886.315-1.748.704"}),o.createElement("path",{d:"M21.256 21h3.758a1 1 0 0 1 .983.896l.005.116-.035 3a1 1 0 0 1-.885.982l-.115.006H7.015a1 1 0 0 1-.994-.883L6.015 25v-3a1 1 0 0 1 .883-.993L7.015 21h4.592l3.26 3.861a2.082 2.082 0 0 0 3.196-.014zm9.149-20c.299-.007.553.214.59.508L31 1.58c0 .237-.146.45-.366.538l-.519.15c-1.933.608-9.692 3.64-10.186 13.31l-.016.402h2.322a.579.579 0 0 1 .504.871l-.054.078-5.776 6.96a.585.585 0 0 1-.823.077l-.072-.072-5.878-6.96a.58.58 0 0 1 .351-.946l.095-.008h2.34C13.265 4.706 23.604 1.908 28.218 1.22l.343-.048A19 19 0 0 1 30.405 1"}))))}},24756(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(39155);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(null,arguments)}const i=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e))}},21306(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M6.523 15.95a1.8 1.8 0 0 1 2.562 0c.613.62.7 1.58.207 2.335l-.093.13-.114.128-3.624 3.665c-1.03 1.042-1.101 2.073-.241 3.1l.112.128.13.136.905.916c1.03 1.042 2.05 1.114 3.066.244l.127-.113.134-.13 3.624-3.666a1.8 1.8 0 0 1 2.563 0c.612.62.7 1.58.207 2.334l-.094.13-.113.128-3.625 3.666C11.02 30.33 9.55 31 8.031 31c-1.34 0-2.643-.521-3.793-1.515l-.214-.191-.219-.214-.906-.916C.494 25.73.368 22.506 2.564 19.977l.161-.18.174-.181zM25.113 9c3.074 0 5.65 2.85 5.873 5.976l.012.209.004.198v2.322c0 3.08-2.437 5.702-5.467 5.939l-.207.012-.216.005H20.13c-1 0-1.812-.82-1.812-1.833 0-.883.622-1.63 1.505-1.802l.15-.023.157-.008h4.983c1.097 0 2.108-.93 2.248-2.006l.013-.14.005-.144v-2.322c0-1.25-1.029-2.532-2.02-2.698l-.123-.015-.123-.005H20.13c-1 0-1.812-.82-1.812-1.832 0-.884.622-1.631 1.505-1.802l.15-.023.157-.008z"}),o.createElement("path",{fillOpacity:.4,d:"M5.543 2.93a1.85 1.85 0 0 0 0 2.62l2.315 2.315c.35.352.822.542 1.309.542s.958-.19 1.31-.542a1.85 1.85 0 0 0 0-2.62L8.16 2.932a1.853 1.853 0 0 0-2.5-.108zM14.852 1C13.829 1 13 1.83 13 2.852V5.63a1.852 1.852 0 1 0 3.704 0V2.852c0-1.023-.83-1.852-1.852-1.852M7.63 10H4.852a1.852 1.852 0 0 0 0 3.704H7.63a1.852 1.852 0 1 0 0-3.704"}))))}},3200(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M14.352 9.837c1.585 0 3.092.547 4.304 1.562l.224.195.218.21 1.1 1.099c.555.557.725 1.353.509 2.056l-1.278 1.275-.05.044-.054.045c-.501.147-1.05.098-1.531-.152l-.115-.108-.11-.09-.141-.107a4 4 0 0 0-.215-.138l-1.02-1.02c-.893-.895-2.424-.977-3.42-.231l-.138.112-.128.118-7.14 7.142a2.61 2.61 0 0 0-.24 3.412l.117.142.123.131 1.1 1.098c.893.894 2.423.977 3.418.23l.138-.111.127-.12 3.376-3.374a2.05 2.05 0 0 1 1.2-.585 8 8 0 0 0 1.829.725c.59.704.635 1.718.105 2.487l-.106.142-.124.137-3.374 3.372a6.67 6.67 0 0 1-4.747 1.967 6.66 6.66 0 0 1-4.304-1.562l-.224-.195-.218-.21-1.099-1.097c-2.484-2.483-2.619-6.457-.358-9.107l.174-.196.184-.191 7.14-7.142a6.68 6.68 0 0 1 4.748-1.965"}),o.createElement("path",{d:"M24.688.5c1.585 0 3.09.547 4.303 1.56l.224.196.22.21 1.098 1.1A6.67 6.67 0 0 1 32.5 8.311a6.66 6.66 0 0 1-1.562 4.304l-.196.224-.21.219-7.138 7.14a6.67 6.67 0 0 1-4.747 1.966 6.67 6.67 0 0 1-4.749-1.967c-.8-.803-.8-2.103.002-2.905a2.056 2.056 0 0 1 2.626-.229l.142.107.136.124c.893.894 2.423.976 3.42.23l.138-.112.128-.118 7.14-7.14a2.59 2.59 0 0 0 .763-1.843c0-.567-.179-1.105-.505-1.544l-.129-.16-.13-.14-1.098-1.098a2.6 2.6 0 0 0-1.843-.763c-.567 0-1.107.179-1.545.504l-.16.129-.138.13-3.085 3.084a2.053 2.053 0 0 1-3.135-2.627l.107-.142.124-.136 3.085-3.083A6.67 6.67 0 0 1 24.688.5"}))))}},79073(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m8.74 17.999-2.246 2.21-.166.169-.178.195-.17.204A6.646 6.646 0 0 0 5.876 29H3a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2zm21.392.353c.528.364.872.975.866 1.664l-.057 7a2 2 0 0 1-2 1.984l-10.428-.001 1.082-1.063.148-.156.091-.109.084-.11.114-.173.101-.177q.096-.18.167-.365l.046-.133.759-1.489a6.78 6.78 0 0 0 3.976-1.906ZM29.008 1a2 2 0 0 1 1.988 2.012l-.032 5.563a7 7 0 0 0-.262-.273l-.864-.85-.198-.186-.227-.197-.237-.186A6.82 6.82 0 0 0 25.048 5.5a6.8 6.8 0 0 0-4.79 1.952l-2.43 2.387-.146.156-.092.109-.084.11-.118.18a3.13 3.13 0 0 0-.396 2.334h-.084c-1.804 0-3.51.694-4.79 1.951L10.773 16H3a2 2 0 0 1-1.995-1.85L1 14V3a2 2 0 0 1 2-2Z"}),o.createElement("path",{d:"M16.908 14.228c1.249 0 2.435.424 3.39 1.21l.176.15.172.163.865.85c.438.432.572 1.048.402 1.592l-1.007.987-.04.034-.04.035a1.65 1.65 0 0 1-1.208-.118l-.09-.083-.086-.07-.112-.083a3 3 0 0 0-.169-.107l-.803-.79c-.703-.692-1.909-.755-2.693-.178l-.11.087-.1.092-5.623 5.528a1.994 1.994 0 0 0-.188 2.642l.091.11.097.101.866.85c.703.692 1.909.756 2.692.178l.109-.086.1-.093 2.659-2.612c.266-.26.6-.411.946-.453a6.4 6.4 0 0 0 1.438.562l-.076-.085.083.09c.458.545.492 1.326.077 1.92l-.084.11-.098.105-2.657 2.611A5.3 5.3 0 0 1 12.15 31a5.3 5.3 0 0 1-3.39-1.21l-.176-.15-.172-.163-.865-.849a5.14 5.14 0 0 1-.282-7.05l.137-.152.145-.148 5.623-5.529a5.3 5.3 0 0 1 3.739-1.521M25.048 7a5.3 5.3 0 0 1 3.389 1.208l.176.151.173.163.865.85a5.12 5.12 0 0 1 1.549 3.676c0 1.228-.43 2.393-1.23 3.332l-.154.173-.165.17-5.623 5.526a5.3 5.3 0 0 1-3.738 1.523 5.3 5.3 0 0 1-3.74-1.523 1.57 1.57 0 0 1 .002-2.25 1.64 1.64 0 0 1 2.068-.176l.112.083.107.096c.703.692 1.909.755 2.693.178l.11-.087.1-.092 5.622-5.527c.389-.382.602-.887.602-1.426 0-.44-.141-.856-.398-1.196l-.101-.123-.103-.108-.864-.851a2.06 2.06 0 0 0-1.452-.59c-.447 0-.872.138-1.217.39l-.125.1-.11.1-2.43 2.388c-.63.62-1.656.62-2.286-.001a1.57 1.57 0 0 1-.182-2.033l.084-.11.098-.105 2.43-2.387A5.3 5.3 0 0 1 25.048 7"}))))}},344(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M30.995 25v6H12v-6zm0-24v6H12V1zM7 25v6H1v-6zM7 1v6H1V1zm23.995 12v5.997H12V13zM7 13v5.997H1V13z"})))}},82680(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M3.721 18.721A2.72 2.72 0 0 1 1 16a2.72 2.72 0 0 1 2.721-2.721h24.555a2.72 2.72 0 1 1 .003 5.443z"})))}},46172(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M27.253 1.539A.616.616 0 0 0 26.627 1c-.183.004-18.063.557-18.53 15.877h-2.48a.614.614 0 0 0-.473 1.01l6.23 7.378a.617.617 0 0 0 .948-.005l6.123-7.377a.613.613 0 0 0-.477-1.006h-2.462C15.863 4.86 26.668 2.24 26.78 2.214a.616.616 0 0 0 .479-.599q-.001-.036-.005-.076"}),o.createElement("path",{fillOpacity:.4,d:"M30.203 23.58a1 1 0 0 1 1 1V30a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-5.42a1 1 0 0 1 1-1h5.87l2.29 2.71c.382.455.932.734 1.521.778l.178.006a2.21 2.21 0 0 0 1.687-.799l2.235-2.694z"}))))}},42967(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M5.576 31a.617.617 0 0 1-.626-.539l-.005-.076c0-.251.155-.478.388-.57l.521-.15c2-.623 10.307-3.822 10.826-14.132l.016-.41h-2.461a.614.614 0 0 1-.534-.923l.057-.083L19.88 6.74a.62.62 0 0 1 .872-.081l.077.076 6.23 7.377a.614.614 0 0 1-.373 1.002l-.1.009h-2.48C23.639 30.443 5.76 30.996 5.577 31"}),o.createElement("path",{fillOpacity:.4,d:"m24.333 8.42-2.29-2.71a2.2 2.2 0 0 0-1.521-.778l-.178-.006a2.2 2.2 0 0 0-1.569.667l-.118.132-2.235 2.694H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h28.203a1 1 0 0 1 1 1v5.42a1 1 0 0 1-1 1z"}))))}},69399(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M30.692 7.038a.5.5 0 0 0-.544.106l-3.901 3.873c-3.58-1.088-6.973-1.64-10.09-1.64C6.524 9.377 1 14.667 1 23.891a.5.5 0 0 0 1 0c0-6.177 4.635-7.1 7.397-7.1 2.679 0 5.766.805 8.764 2.277l-4.384 3.883a.5.5 0 0 0 .331.875H30.5a.5.5 0 0 0 .5-.5V7.5a.5.5 0 0 0-.308-.46"})))}},13360(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28.015 1a3 3 0 0 1 2.994 2.824l.006.177v10.72a12.1 12.1 0 0 0-3.018-3.585l.015-6.133a1 1 0 0 0-.998-1.002h-22a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h6.125a12.1 12.1 0 0 0 3.557 3H4.015a3.004 3.004 0 0 1-2.995-2.825l-.006-.175V4a3 3 0 0 1 2.824-2.995L4.014 1zm3 25.278v1.723a3.004 3.004 0 0 1-2.825 2.994l-.175.005-1.71.001a12.1 12.1 0 0 0 4.71-4.723m-21.179-.276L7.014 26a1 1 0 0 1-.993-.883L6.015 25v-3a1 1 0 0 1 .883-.993L7.015 21l1.495.001a11.9 11.9 0 0 0 1.326 5M8.666 18.5H7.015a1 1 0 0 1-.993-.883l-.006-.117v-3a1 1 0 0 1 .883-.993l.117-.007h3.743a11.94 11.94 0 0 0-2.091 5M25.015 6a1 1 0 0 1 .983.896l.005.116-.033 2.808A11.9 11.9 0 0 0 20.5 8.5c-2.756 0-5.298.933-7.326 2.5h-6.16a1 1 0 0 1-.993-.883L6.015 10V7a1 1 0 0 1 .883-.993l.117-.006z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 4.1c-.722 0-1.308.586-1.308 1.308v3.784h-3.785a1.308 1.308 0 0 0 0 2.616h3.785v3.784a1.307 1.307 0 1 0 2.616 0v-3.784h3.784a1.308 1.308 0 0 0 0-2.616h-3.784v-3.784c0-.722-.586-1.307-1.308-1.307"}))))}},59244(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M15.584 5.375c2.057 0 4.04.61 5.736 1.765l.625.425L7.566 21.944l-.425-.624a10.15 10.15 0 0 1-1.766-5.736c0-5.629 4.58-10.209 10.209-10.209M16.4 26.61c-2.055 0-4.04-.611-5.736-1.766l-.625-.425L24.42 10.04l.425.624A10.15 10.15 0 0 1 26.61 16.4c0 5.629-4.58 10.209-10.209 10.209M16 1C7.73 1 1 7.729 1 16s6.73 15 15 15c8.271 0 15-6.729 15-15S24.271 1 16 1"})))}},76515(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M22.287 28H6a2 2 0 1 1 0-4h11.946zm-4.34-10H6a2 2 0 1 1 0-4h16.287zM28 6a2 2 0 0 1-2 2H6a2 2 0 1 1 0-4h20a2 2 0 0 1 2 2"}),o.createElement("path",{d:"M30.367 11.73a2.3 2.3 0 0 1-.114 3.281L23.753 21l6.5 5.989a2.3 2.3 0 0 1 .113 3.283 2.34 2.34 0 0 1-3.28.11l-8.34-7.685a2.305 2.305 0 0 1 0-3.394l8.34-7.685a2.34 2.34 0 0 1 3.28.111"}))))}},89990(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M27.64 27.145a2 2 0 0 1-.633.583zM16.562 28H6a2 2 0 1 1 0-4h13.777l-2.046 1.886A3.78 3.78 0 0 0 16.56 28m3.215-10H6a2 2 0 1 1 0-4h10.562a3.8 3.8 0 0 0 1.17 2.116zm7.23-3.728c.25.146.467.346.633.582zM28 6a2 2 0 0 1-2 2H6a2 2 0 1 1 0-4h20a2 2 0 0 1 2 2"}),o.createElement("path",{d:"M18.633 11.73a2.3 2.3 0 0 0 .114 3.281l6.5 5.989-6.5 5.989a2.3 2.3 0 0 0-.113 3.283 2.34 2.34 0 0 0 3.28.11l8.34-7.685a2.305 2.305 0 0 0 0-3.394l-8.34-7.685a2.34 2.34 0 0 0-3.28.111"}))))}},8202(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M28 26a2 2 0 0 1-2 2H6a2 2 0 1 1 0-4h20a2 2 0 0 1 2 2m0-10a2 2 0 0 1-2 2H6a2 2 0 1 1 0-4h20a2 2 0 0 1 2 2m0-10a2 2 0 0 1-2 2H6a2 2 0 1 1 0-4h20a2 2 0 0 1 2 2"})))}},5914(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FFF",fillOpacity:.4,d:"M12.74 2.16a1.88 1.88 0 0 1 1.519 0l10.714 4.771c.626.28 1.026.876 1.026 1.532L26 13.138a11 11 0 0 0-2.5-.429v-1.541q-.002-.183-.084-.35c-.207-.411-.731-.588-1.172-.395l-6.988 3.066a.82.82 0 0 0-.506.744l-.001 2.049c-1.401 1.57-2.31 3.552-2.5 5.724v-7.773a.82.82 0 0 0-.506-.744l-6.988-3.066a.9.9 0 0 0-.374-.078c-.487 0-.881.368-.881.822v8.404a.82.82 0 0 0 .506.744l6.989 3.066a.9.9 0 0 0 .374.078c.398 0 .734-.246.843-.585 0 1.467.33 2.863.92 4.124a1.8 1.8 0 0 1-.392-.123L2.026 22.104C1.4 21.825 1 21.228 1 20.572V8.463c0-.656.4-1.253 1.026-1.532Zm.522 2.301a1.01 1.01 0 0 0-.774 0L5.017 7.587a.44.44 0 0 0-.223.198c-.109.207-.01.453.223.55l7.47 3.125c.246.103.53.103.775 0l7.47-3.125a.44.44 0 0 0 .223-.198c.11-.207.01-.453-.222-.55Z"}),o.createElement("path",{fill:"#FFF",d:"M23 14.563c4.652 0 8.438 3.785 8.438 8.437S27.652 31.438 23 31.438c-4.654 0-8.437-3.786-8.437-8.438s3.783-8.437 8.437-8.437m0 3.295c-.58 0-1.05.47-1.05 1.05v3.041h-3.043a1.051 1.051 0 0 0 0 2.102h3.042v3.04a1.05 1.05 0 1 0 2.102 0v-3.04h3.04a1.051 1.051 0 0 0 0-2.102h-3.04v-3.04c0-.58-.47-1.051-1.051-1.051"}))))}},74647(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M3.664 18.742A2.74 2.74 0 0 1 .923 16a2.74 2.74 0 0 1 2.741-2.741h9.594V3.664a2.74 2.74 0 0 1 2.74-2.741 2.74 2.74 0 0 1 2.743 2.742v9.594h9.592a2.741 2.741 0 1 1 .003 5.483H18.74v9.594a2.741 2.741 0 1 1-5.483 0v-9.594z"})))}},65968(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 1c8.27 0 15 6.73 15 15s-6.73 15-15 15C7.727 31 1 24.27 1 16S7.727 1 16 1m0 5.858a1.87 1.87 0 0 0-1.868 1.868v5.406H8.724a1.869 1.869 0 0 0 0 3.736h5.408v5.406a1.867 1.867 0 1 0 3.736 0v-5.406h5.406a1.869 1.869 0 0 0 0-3.736h-5.406V8.726A1.87 1.87 0 0 0 16 6.858"})))}},45059(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:32,height:24,fill:"none",viewBox:"0 0 32 24"},e),r||(r=i.createElement("path",{fill:"#7B8086",d:"M2.286 20.429a2 2 0 0 0 2 2h23.095a2 2 0 0 1-1.952 1.57H2a2 2 0 0 1-2-2V5.43a2 2 0 0 1 2-2h.286z"})),o||(o=i.createElement("path",{fill:"#D9D9D9",d:"M30 0a2 2 0 0 1 2 2v17.429a2 2 0 0 1-2 2H5.429a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zM5.715 4.571V19.43h24V4.57z"})))}},27032(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M4.545 25.415a13.3 13.3 0 0 1-3.536-9.568 13.28 13.28 0 0 1 4.227-9.28 13.17 13.17 0 0 1 9.517-3.558c3.601.133 6.914 1.701 9.321 4.41 1.599 1.8 2.688 4.004 3.202 6.44l.931-1.337a1.53 1.53 0 0 1 2.14-.38c.693.49.86 1.449.376 2.145l-3.427 4.924a1.929 1.929 0 0 1-.17.197c-.026.028-.026.028-.082.08a1.548 1.548 0 0 1-.382.24c-.057.028-.1.047-.155.065-.077.021-.077.021-.133.033a2 2 0 0 1-.226.039l-.11.004-.118-.004c-.073-.01-.073-.01-.117-.02a1.2 1.2 0 0 1-.32-.085c-.043-.015-.043-.015-.106-.043a2 2 0 0 1-.188-.109c-.03-.018-.03-.018-.078-.053a1.4 1.4 0 0 1-.137-.122c-.024-.02-.027-.023-.085-.084l-4.4-4.916a1.543 1.543 0 0 1 .114-2.173 1.53 1.53 0 0 1 2.17.116l1.355 1.514c-.445-1.672-1.24-3.176-2.346-4.421a9.97 9.97 0 0 0-7.142-3.381 10.1 10.1 0 0 0-7.312 2.735 10.2 10.2 0 0 0-3.25 7.138 10.21 10.21 0 0 0 2.718 7.36 10.1 10.1 0 0 0 7.094 3.266c.847.031 1.508.746 1.477 1.596-.03.828-.708 1.484-1.57 1.484a13.16 13.16 0 0 1-9.252-4.252"})))}},95776(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M26.5 1c.133 0 .26.053.354.146l4 4A.5.5 0 0 1 31 5.5v8.223a12.57 12.57 0 0 0-6-4.886V5c0-1.105-.893-2-1.995-2H8.995A1.99 1.99 0 0 0 7 5v6c0 1.105.893 2 1.995 2h1.51c-.686.912-1.25 1.92-1.668 3h-3.84A2 2 0 0 0 3 18.003v8.994A2 2 0 0 0 4.997 29h6.344A12.6 12.6 0 0 0 13.724 31L1.5 31a.5.5 0 0 1-.5-.5v-29a.5.5 0 0 1 .5-.5zM31 27.277V30.5a.5.5 0 0 1-.5.5h-3.224A12.6 12.6 0 0 0 31 27.278M8.498 17A12.5 12.5 0 0 0 8 20.5c0 2.813.933 5.41 2.505 7.501L5.002 28A.994.994 0 0 1 4 27.002v-9.004A1 1 0 0 1 5.002 17ZM23.01 4c.54 0 .991.446.991.997v3.501a12.52 12.52 0 0 0-6-.247V4.997c0-.544.444-.997.99-.997z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 4.1c-.722 0-1.308.586-1.308 1.308v3.784h-3.785a1.308 1.308 0 0 0 0 2.616h3.785v3.784a1.307 1.307 0 1 0 2.616 0v-3.784h3.784a1.308 1.308 0 0 0 0-2.616h-3.784v-3.784c0-.722-.586-1.307-1.308-1.307"}))))}},74087(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M26.5 1c.133 0 .26.053.354.146l4 4A.5.5 0 0 1 31 5.5l.001 7.392q-2.117-1.693-6-2.188L25 5c0-1.105-.893-2-1.995-2H8.995A1.99 1.99 0 0 0 7 5v6c0 1.105.893 2 1.995 2h2.873a6.5 6.5 0 0 0-1.368 1.578V16H4.997A2 2 0 0 0 3 18.003v8.994A2 2 0 0 0 4.997 29h6.119c.538.79 1.406 1.463 2.52 2H1.5a.5.5 0 0 1-.5-.5v-29a.5.5 0 0 1 .5-.5zM31 29.964v.536a.5.5 0 0 1-.5.5h-1.135A7.8 7.8 0 0 0 31 29.965M10.5 17v10.055q.001.492.136.946L5.002 28A.994.994 0 0 1 4 27.002v-9.004A1 1 0 0 1 5.002 17zM23.01 4c.539 0 .99.446.99.997v5.602a30 30 0 0 0-2.5-.099q-1.9 0-3.5.204V4.997c0-.544.444-.997.99-.997z"}),o.createElement("path",{d:"M12 23.352c0 1.64 4.173 3.204 9.5 3.204s9.5-1.563 9.5-3.204v-1.85c-1.705 1.433-5.335 2.348-9.5 2.348s-7.795-.915-9.5-2.348zm0 3.703C12 29.238 16.165 31 21.5 31s9.5-1.762 9.5-3.945v-1.85c-1.705 1.433-5.335 2.349-9.5 2.349s-7.795-.916-9.5-2.35zm0-7.406c0 1.64 4.173 3.204 9.5 3.204S31 21.29 31 19.649v-1.85c-1.705 1.433-5.335 2.348-9.5 2.348s-7.795-.915-9.5-2.349zm9.5-.5c5.327 0 9.5-1.563 9.5-3.204C31 13.762 26.835 12 21.5 12S12 13.762 12 15.945c0 1.641 4.173 3.205 9.5 3.205"}))))}},84123(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M26.5 1c.133 0 .26.053.354.146l4 4A.5.5 0 0 1 31 5.5l.001 6.147A4.48 4.48 0 0 0 28 10.5h-3V5c0-1.105-.893-2-1.995-2H8.995A1.99 1.99 0 0 0 7 5v6c0 1.105.893 2 1.995 2h1.973a4.5 4.5 0 0 0-.468 2v1H4.997A2 2 0 0 0 3 18.003v8.994A2 2 0 0 0 4.997 29l5.503-.001v.101c0 .704.215 1.358.582 1.901L1.5 31a.5.5 0 0 1-.5-.5v-29a.5.5 0 0 1 .5-.5zm-16 16v11H5.002A.994.994 0 0 1 4 27.002v-9.004A1 1 0 0 1 5.002 17zM23.01 4c.539 0 .99.446.99.997V10.5h-6V4.997c0-.544.444-.997.99-.997z"}),o.createElement("path",{d:"M28 12a3 3 0 0 1 2.995 2.824L31 15v14.1c0 .998-.773 1.818-1.752 1.894L29.1 31H13.9a1.903 1.903 0 0 1-1.894-1.752L12 29.1V15a3 3 0 0 1 2.824-2.995L15 12zm-13.1 1.9a1 1 0 0 0-1 1v13.2a1 1 0 0 0 1 1h13.165a1 1 0 0 0 1-.998l.033-13.2A1 1 0 0 0 28.1 13.9zm11.933 10.767a1 1 0 0 1 .983.895l.005.117-.014 1.166a1 1 0 0 1-.884.982l-.116.006h-10.64a1 1 0 0 1-.994-.883l-.006-.117v-1.166a1 1 0 0 1 1-1zm0-4.75a1 1 0 0 1 .983.895l.005.116-.014 1.167a1 1 0 0 1-.884.981l-.116.007h-10.64a1 1 0 0 1-.994-.883l-.006-.117v-1.167a1 1 0 0 1 .883-.993l.117-.007zm0-4.75a1 1 0 0 1 .983.895l.005.117-.014 1.166a1 1 0 0 1-.884.982l-.116.006h-10.64a1 1 0 0 1-.994-.883l-.006-.117v-1.166a1 1 0 0 1 1-1z"}))))}},16231(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M3 26.997A2 2 0 0 0 4.997 29h22.006A2 2 0 0 0 29 26.997v-8.994A2 2 0 0 0 27.003 16H4.997A2 2 0 0 0 3 18.003zm1 .005v-9.004A1 1 0 0 1 5.002 17h21.996a.994.994 0 0 1 1.002.998v9.004a1 1 0 0 1-1.002.998H5.002A.994.994 0 0 1 4 27.002M25 5c0-1.105-.893-2-1.995-2H8.995A1.99 1.99 0 0 0 7 5v6c0 1.105.893 2 1.995 2h14.01A1.99 1.99 0 0 0 25 11zm-1-.003v6.006a1 1 0 0 1-.99.997h-4.02a1 1 0 0 1-.99-.997V4.997c0-.544.444-.997.99-.997h4.02c.539 0 .99.446.99.997M1.5 1h25c.133 0 .26.053.354.146l4 4A.5.5 0 0 1 31 5.5v25a.5.5 0 0 1-.5.5h-29a.5.5 0 0 1-.5-.5v-29a.5.5 0 0 1 .5-.5"})))}},66202(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"m1.873 1.038 23.478 8.478a.652.652 0 0 1 .24 1.075l-5.408 5.41L30.81 26.624a.653.653 0 0 1 0 .922l-3.261 3.261a.65.65 0 0 1-.922 0L15.976 20.16l-6.062 5.454a.652.652 0 0 1-1.055-.277L1.033 1.858a.653.653 0 0 1 .84-.82"})))}},30170(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.008 1C30.108 1 31 1.898 31 2.992v26.016c0 1.1-.898 1.992-1.992 1.992H2.992C1.892 31 1 30.102 1 29.008V2.992C1 1.892 1.898 1 2.992 1zM28 4H4v24h24z"}),o.createElement("path",{d:"M20.601 8.463a1.473 1.473 0 0 0-2.073-.07l-7.057 6.532a1.464 1.464 0 0 0 0 2.15l7.057 6.533c.592.55 1.52.518 2.073-.07a1.46 1.46 0 0 0-.073-2.08L14.633 16l.396-.367 5.5-5.091a1.46 1.46 0 0 0 .072-2.079"}))))}},22545(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.008 1C30.108 1 31 1.898 31 2.992v26.016c0 1.1-.898 1.992-1.992 1.992H2.992C1.892 31 1 30.102 1 29.008V2.992C1 1.892 1.898 1 2.992 1zM28 4H4v24h24z"}),o.createElement("path",{d:"M11.399 8.463a1.473 1.473 0 0 1 2.073-.07l7.058 6.532a1.464 1.464 0 0 1 0 2.15l-7.058 6.533a1.473 1.473 0 0 1-2.072-.07 1.46 1.46 0 0 1 .072-2.08L17.368 16l-.397-.367-5.5-5.091a1.46 1.46 0 0 1-.072-2.079"}))))}},25272(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M13.716 3.935C14.828 3.454 15.878 3 17.876 3h6.874c1.379 0 2.5 1.121 2.5 2.5 0 .515-.156.992-.424 1.39A2.51 2.51 0 0 1 28.5 9.25c0 .515-.156.992-.424 1.39A2.51 2.51 0 0 1 29.75 13c0 .515-.156.992-.424 1.39A2.51 2.51 0 0 1 31 16.75c0 1.379-1.121 2.5-2.5 2.5h-7.874c.527 1.614 1.498 5.024.975 6.885-.796 2.84-2.453 3.06-2.94 3.06-1.16 0-2.036-.954-2.036-2.216 0-3.95-3.687-10-6.875-10a.625.625 0 0 1-.625-.625V5.729c0-.312.229-.575.536-.619 1.998-.286 3.09-.758 4.055-1.175M5 7.195a1 1 0 1 0 0-2 1 1 0 0 0 0 2M1.583 3h5.834c.322 0 .583.28.583.625v13.75c0 .345-.261.625-.583.625H1.583C1.261 18 1 17.72 1 17.375V3.625C1 3.28 1.261 3 1.583 3"})))}},18251(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M9.661 27.085c1.998.286 3.09.757 4.055 1.175 1.112.481 2.162.935 4.16.935h6.874c1.379 0 2.5-1.121 2.5-2.5a2.5 2.5 0 0 0-.424-1.39 2.51 2.51 0 0 0 1.674-2.36 2.5 2.5 0 0 0-.424-1.39 2.51 2.51 0 0 0 1.674-2.36 2.5 2.5 0 0 0-.424-1.39A2.51 2.51 0 0 0 31 15.445c0-1.379-1.121-2.5-2.5-2.5h-7.874c.527-1.614 1.498-5.024.975-6.885C20.805 3.22 19.148 3 18.661 3c-1.16 0-2.036.954-2.036 2.216 0 3.949-3.687 10-6.875 10a.625.625 0 0 0-.625.625v10.625c0 .311.229.575.536.619M5 25a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-3.417 4.195h5.834c.322 0 .583-.28.583-.625V14.82c0-.345-.261-.625-.583-.625H1.583c-.322 0-.583.28-.583.625v13.75c0 .345.261.625.583.625"})))}},72003(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#8BC675",d:"M16 1c8.272 0 15 6.729 15 15s-6.727 15-15 15S1 24.272 1 16 7.728 1 16 1"}),o.createElement("path",{fill:"#232B36",d:"M24.507 7.623a1.91 1.91 0 0 1 .128 2.403l-10.302 14.19c-.326.45-.83.733-1.406.78l-.086.004a1.92 1.92 0 0 1-1.377-.553l-3.903-3.9a1.91 1.91 0 0 1-.002-2.702 1.89 1.89 0 0 1 2.673 0l2.339 2.336 9.003-12.4a1.89 1.89 0 0 1 2.406-.566l.232.144.22.159c.018.044.047.074.075.105"}))))}},92757(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 1c8.272 0 15 6.729 15 15s-6.727 15-15 15S1 24.272 1 16 7.728 1 16 1M23.87 7.16a1.89 1.89 0 0 0-2.295.62l-9.003 12.4-2.34-2.336a1.89 1.89 0 0 0-2.672 0 1.91 1.91 0 0 0 .002 2.702l3.903 3.9c.36.358.84.554 1.377.553l.086-.004a1.9 1.9 0 0 0 1.406-.78l10.302-14.19a1.91 1.91 0 0 0-.128-2.403c-.028-.03-.057-.06-.075-.105l-.22-.16-.232-.143a2 2 0 0 0-.111-.054"})))}},93447(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M30.178 2.038a3.18 3.18 0 0 1 .214 4.005l-17.17 23.65a3.18 3.18 0 0 1-2.344 1.3l-.143.007c-.894.001-1.694-.325-2.295-.922l-6.506-6.5a3.183 3.183 0 0 1-.002-4.503 3.15 3.15 0 0 1 4.454 0l3.899 3.894L25.29 2.301a3.15 3.15 0 0 1 4.01-.942l.386.239.367.265c.03.074.079.124.125.175"})))}},19954(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m1 20 7.347 3.43a12.5 12.5 0 0 0 2.726 5.272L1 24zm0-8 7.952 3.713a12.4 12.4 0 0 0-.894 3.58L1 16zM16.219 1.044l14.5 6.5a.5.5 0 0 1 0 .913L27.278 10A12.43 12.43 0 0 0 20.5 8c-3.94 0-7.46 1.831-9.753 4.687L1.31 8.457a.5.5 0 0 1 0-.913l14.5-6.5a.5.5 0 0 1 .409 0"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 4.1c-.722 0-1.308.586-1.308 1.308v3.784h-3.785a1.308 1.308 0 0 0 0 2.616h3.785v3.784a1.307 1.307 0 1 0 2.616 0v-3.784h3.784a1.308 1.308 0 0 0 0-2.616h-3.784v-3.784c0-.722-.586-1.307-1.308-1.307"}))))}},9932(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M31 20v4l-15 7-15-7v-4l14.996 7zm0-8v4l-15 7-15-7v-4l14.996 7z"}),o.createElement("path",{d:"M1.31 8.457a.5.5 0 0 1 0-.913l14.5-6.5a.5.5 0 0 1 .409 0l14.5 6.5a.5.5 0 0 1 0 .913l-14.5 6.5a.5.5 0 0 1-.41 0z"}))))}},32474(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M27.455 25.415a13.16 13.16 0 0 1-9.253 4.252c-.861 0-1.539-.656-1.57-1.484-.03-.85.63-1.565 1.478-1.596 2.722-.1 5.24-1.26 7.094-3.267a10.21 10.21 0 0 0 2.719-7.36 10.2 10.2 0 0 0-3.251-7.137 10.1 10.1 0 0 0-7.312-2.735 9.97 9.97 0 0 0-7.142 3.38c-1.106 1.246-1.9 2.75-2.346 4.422l1.355-1.514a1.53 1.53 0 0 1 2.17-.116c.63.57.68 1.542.114 2.173l-4.4 4.916c-.058.06-.06.064-.085.084a1.4 1.4 0 0 1-.137.122c-.049.035-.049.035-.078.053a2 2 0 0 1-.188.109c-.063.028-.063.028-.106.043a1.24 1.24 0 0 1-.32.086c-.044.01-.044.01-.117.019l-.118.004c-.052 0-.052 0-.11-.004a2 2 0 0 1-.226-.039c-.056-.012-.056-.012-.133-.033a1 1 0 0 1-.155-.064 1.6 1.6 0 0 1-.382-.24c-.056-.053-.056-.053-.082-.081a2 2 0 0 1-.17-.197l-3.427-4.924a1.545 1.545 0 0 1 .377-2.145 1.53 1.53 0 0 1 2.139.38l.93 1.338c.515-2.437 1.604-4.64 3.203-6.441 2.407-2.709 5.72-4.277 9.321-4.41a13.17 13.17 0 0 1 9.517 3.558 13.28 13.28 0 0 1 4.227 9.28 13.3 13.3 0 0 1-3.536 9.568"})))}},58644(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m7.634 17.999-2.056 2.08-.168.175-.173.192-.173.207c-2.088 2.572-2.07 5.819-.022 8.346L3 29a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2zm23.335 5.703-.028 3.314a2 2 0 0 1-2 1.984l-11.745-.001 1.766-1.784.152-.168.102-.128.08-.113.121-.198a3.3 3.3 0 0 0 .378-1.042c.502.36 1.117.573 1.782.573h4.32l.216-.004.24-.013.233-.022a6.67 6.67 0 0 0 4.383-2.398m-4.61-5.703v1.478l-.003.078-.006.029-.018.059c-.065.144-.279.32-.436.32h-4.319l-.21.008-.155.016-.13.02-.197.044c-1.234.314-2.123 1.278-2.33 2.461a3.06 3.06 0 0 0-3.947.347l-3.141 3.176-.095.092-.066.057-.113.093c-.11.08-.165.064-.327-.093l-.934-.943-.091-.096-.057-.067-.088-.111c-.116-.162-.064-.228.236-.532l3.14-3.176.152-.167.103-.129.08-.113.105-.17c.492-.854.57-1.83.258-2.681zM29.009 1a2 2 0 0 1 1.987 2.012l-.059 10.02c-1.222-1.566-3.044-2.599-5.04-2.599h-4.32l-.21.009-.155.016-.13.02-.188.041c-1.42.358-2.387 1.576-2.387 3.003l.005.18.015.173A3.1 3.1 0 0 0 19.747 16h-6.342a3.094 3.094 0 0 0-.09-3.339 3.1 3.1 0 0 0 1.525-1.431 3.07 3.07 0 0 0 2.164.886 3.105 3.105 0 0 0 3.105-3.105V6.605l-.009-.213-.02-.183C19.851 4.64 18.553 3.5 17.003 3.5l-.177.005a3.105 3.105 0 0 0-2.928 3.1l-.001.639-1.632-1.631-.167-.154-.055-.048-.153-.118a3.11 3.11 0 0 0-3.82.14l-.15.136-.095.095-.104.115-.122.156c-.932 1.271-.814 2.98.275 4.07L9.171 11.3h-.834l-.213.008-.183.021c-1.569.227-2.709 1.526-2.709 3.076 0 .584.161 1.13.441 1.596L3 16a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2Z"}),o.createElement("path",{d:"M12.006 17.957c.53.537.607 1.37.18 2.023l-.081.113-.099.111-3.14 3.177c-.893.902-.955 1.796-.21 2.685l.097.112.112.118.785.794c.893.902 1.778.965 2.657.211l.11-.098.117-.113 3.14-3.177a1.56 1.56 0 0 1 2.221 0c.53.537.607 1.37.18 2.023l-.081.113-.099.111-3.14 3.177C13.682 30.419 12.407 31 11.091 31c-1.16 0-2.29-.452-3.287-1.313l-.185-.166-.19-.185-.786-.794c-2.084-2.109-2.193-4.903-.29-7.095l.14-.156.15-.157 3.141-3.177a1.56 1.56 0 0 1 2.221 0m13.89-6.024c2.665 0 4.897 2.47 5.091 5.18l.01.18.003.172v2.012c0 2.67-2.111 4.943-4.737 5.148l-.18.01-.187.004h-4.319a1.58 1.58 0 0 1-1.57-1.588c0-.766.539-1.413 1.304-1.562l.13-.02.136-.006h4.32c.95 0 1.825-.806 1.947-1.739l.011-.122.004-.125v-2.012c0-1.084-.891-2.194-1.75-2.338l-.107-.013-.106-.004h-4.319a1.58 1.58 0 0 1-1.57-1.588c0-.766.539-1.414 1.304-1.562l.13-.02.136-.007zm-15.152.867a1.605 1.605 0 0 1 0 3.21H8.337a1.605 1.605 0 1 1 0-3.21ZM9.038 6.58c.63-.531 1.574-.5 2.167.093l2.006 2.007a1.605 1.605 0 1 1-2.27 2.27L8.937 8.944a1.605 1.605 0 0 1 0-2.27ZM17.004 5c.886 0 1.605.719 1.605 1.605v2.407a1.605 1.605 0 1 1-3.21 0V6.605c0-.886.718-1.605 1.605-1.605"}))))}},86186(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m7.443 20.088 2.313 3.322.063.08.104.121.084.091.1.098.1.085a2.4 2.4 0 0 0 .463.3l.194.091.088.035.192.062.23.053.198.032.15.012.1.003.155-.003.024-.003-5.603 5.606a3.14 3.14 0 0 1-2.237.928c-.843 0-1.639-.33-2.236-.928A3.13 3.13 0 0 1 1 27.833c.002-.774.28-1.506.787-2.083l.144-.154zm13.288-6.296a6.42 6.42 0 0 1 4.659 1.744 6.6 6.6 0 0 1 1.399 1.872 8.7 8.7 0 0 1-1.492.74 2.69 2.69 0 0 0-.73-2.49 2.696 2.696 0 0 0-3.681-.125l-.136.127-.635.636-1.893-1.891a6.3 6.3 0 0 1 2.51-.613m8.824-8.314c.2.032.373.156.465.337a8.86 8.86 0 0 1 .29 7.472 12 12 0 0 0-1.387-1.545 11.7 11.7 0 0 0-3.681-2.333l3.768-3.753a.62.62 0 0 1 .545-.178M22.211 1c1.412 0 2.814.336 4.055.97a.635.635 0 0 1 .23.93l-.064.077-3.91 4.01v1.716q-.977-.131-1.98-.096c-2.22.083-4.318.784-6.104 2.014L13.3 9.484a8.9 8.9 0 0 1 2.61-5.889A8.84 8.84 0 0 1 22.21 1"}),o.createElement("path",{fillOpacity:.4,d:"M30.74 26.775c.17.38.26.797.26 1.226a2.99 2.99 0 0 1-.88 2.12A2.97 2.97 0 0 1 28 31a3 3 0 0 1-1.428-.36 11.7 11.7 0 0 0 2.96-2.319q.611-.662 1.108-1.397ZM16.929 15.23l3.186 3.187 1.696-1.696c.47-.47 1.23-.47 1.698 0a1.2 1.2 0 0 1-.001 1.697l-.424.424 3.927 3.928a6.6 6.6 0 0 1-1.281 2.028 6.43 6.43 0 0 1-3.262 1.914l-3.626-3.628-.423.424a1.197 1.197 0 0 1-1.7-.002 1.197 1.197 0 0 1 .004-1.696l1.695-1.696-.857-.858a2.6 2.6 0 0 0-1.171-3.528q.258-.265.539-.498M3.15 1.351a1.2 1.2 0 0 1 1.697 0l3.6 3.6a1.2 1.2 0 0 1 0 1.697l-.052.052 4.857 4.856a12 12 0 0 0-1.614 1.781L6.7 8.397l-.05.051a1.2 1.2 0 0 1-1.698 0l-3.6-3.6a1.2 1.2 0 0 1 0-1.697Z"}),o.createElement("path",{d:"M28.503 27.371a10.2 10.2 0 0 1-7.171 3.296 1.2 1.2 0 0 1-1.217-1.15 1.19 1.19 0 0 1 1.145-1.237 7.83 7.83 0 0 0 5.498-2.532 7.92 7.92 0 0 0 2.107-5.703 7.9 7.9 0 0 0-2.52-5.532 7.82 7.82 0 0 0-5.666-2.12 7.72 7.72 0 0 0-5.535 2.62 8.4 8.4 0 0 0-1.818 3.427l1.05-1.174a1.186 1.186 0 0 1 1.682-.09c.487.442.527 1.195.088 1.684l-3.41 3.81c-.045.048-.047.05-.066.065a1 1 0 0 1-.106.095l-.06.041a1 1 0 0 1-.146.084c-.049.022-.049.022-.082.034a.961.961 0 0 1-.248.066c-.034.008-.034.008-.091.015-.055.002-.07.002-.091.004l-.086-.004a2 2 0 0 1-.175-.03c-.044-.01-.044-.01-.103-.026a1 1 0 0 1-.12-.049 1.2 1.2 0 0 1-.296-.186c-.044-.04-.044-.04-.064-.063a2 2 0 0 1-.131-.153l-2.656-3.816a1.197 1.197 0 0 1 .292-1.662 1.187 1.187 0 0 1 1.658.294l.721 1.037c.399-1.889 1.243-3.596 2.481-4.991a10.1 10.1 0 0 1 7.225-3.418 10.2 10.2 0 0 1 7.375 2.758 10.3 10.3 0 0 1 3.276 7.192 10.3 10.3 0 0 1-2.74 7.414"}))))}},85980(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m11.858 15.677 4.439 4.437-.635.636a2.7 2.7 0 0 0-.305.362l-8.959 8.961a3.14 3.14 0 0 1-2.237.928c-.843 0-1.639-.33-2.236-.928A3.13 3.13 0 0 1 1 27.833a3.16 3.16 0 0 1 .93-2.237zM22.211 1c1.412 0 2.814.336 4.055.97a.635.635 0 0 1 .166 1.007l-3.91 4.01v2.665H25l4.009-3.996a.631.631 0 0 1 1.01.16 8.85 8.85 0 0 1-1.622 10.317 8.8 8.8 0 0 1-3.101 2.015 2.69 2.69 0 0 0-.73-2.49 2.697 2.697 0 0 0-3.817.002l-.635.636L13.3 9.484a8.9 8.9 0 0 1 2.61-5.889A8.84 8.84 0 0 1 22.21 1"}),o.createElement("path",{d:"M20.115 18.417 8.396 6.7l.052-.052a1.2 1.2 0 0 0 0-1.697l-3.6-3.6a1.2 1.2 0 0 0-1.697 0l-1.8 1.8a1.2 1.2 0 0 0 0 1.697l3.6 3.6a1.2 1.2 0 0 0 1.697 0l.051-.05 11.719 11.716-1.695 1.696a1.197 1.197 0 0 0 .847 2.049c.316 0 .62-.123.85-.351l.422-.424 7.037 7.038c.565.565 1.32.878 2.121.878.802 0 1.557-.313 2.12-.88a2.99 2.99 0 0 0 .88-2.119c0-.802-.313-1.558-.88-2.123l-7.036-7.036.424-.424c.47-.47.47-1.23.001-1.696a1.2 1.2 0 0 0-1.698-.001z"}))))}},53491(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M1 18h13v13H1zm17 0h13v13H18zM1 1h13v13H1zm17 0h13v13H18z"})))}},36498(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M8.695 26.39h5.762V11.268q0-1.11.062-2.325l-3.396 2.82q-.329.267-.658.38-.33.113-.638.113-.534 0-.957-.236-.42-.237-.627-.505L6.226 8.84 15.568 1h5.267v25.39h4.939V31H8.695z"})))}},14958(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M2.676 23.046h3.91V12.781q0-.755.042-1.578l-2.304 1.913a1.5 1.5 0 0 1-.447.258 1.3 1.3 0 0 1-.433.077q-.363 0-.65-.16a1.4 1.4 0 0 1-.425-.343L1 11.133 7.34 5.81h3.576v17.235h3.352v3.129H2.676zM31 15.993q0 2.668-.573 4.623-.572 1.955-1.585 3.24T26.44 25.77a7.2 7.2 0 0 1-3.01.628q-1.62 0-2.996-.628-1.375-.63-2.38-1.914-1.007-1.285-1.572-3.24t-.566-4.623q0-2.668.566-4.623.565-1.955 1.571-3.24 1.005-1.285 2.381-1.907 1.376-.621 2.996-.621t3.01.621 2.402 1.907 1.585 3.24.573 4.623m-4.47 0q0-2.109-.265-3.457t-.705-2.116-.999-1.054a2.46 2.46 0 0 0-1.13-.286q-.574 0-1.125.286-.552.285-.978 1.054t-.684 2.116q-.258 1.348-.259 3.457 0 2.123.259 3.464.258 1.34.684 2.116.426.774.978 1.061t1.124.286q.573 0 1.131-.286.56-.286 1-1.061.438-.775.704-2.116t.266-3.464"}))))}},18241(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.489 1q2.2 0 3.961.642 1.762.64 3.004 1.782a7.7 7.7 0 0 1 1.904 2.719q.663 1.579.662 3.472 0 1.63-.458 3.014a12 12 0 0 1-1.252 2.638 18.4 18.4 0 0 1-1.844 2.423q-1.048 1.171-2.23 2.373l-5.804 5.947a21 21 0 0 1 2.21-.52 12 12 0 0 1 2.046-.193h5.54q1.018 0 1.61.56.59.56.59 1.477V31H5.572v-2.037q0-.59.245-1.262.245-.673.855-1.222l8.554-8.615a28 28 0 0 0 1.915-2.098q.814-.998 1.344-1.966t.794-1.934a7.7 7.7 0 0 0 .265-2.047q0-1.772-.845-2.72-.846-.945-2.577-.946-.713 0-1.303.203-.59.205-1.06.55-.468.347-.804.815a4.3 4.3 0 0 0-.54 1.018q-.326.917-.824 1.324-.499.408-1.355.407-.203 0-.438-.02a6 6 0 0 1-.478-.061l-3.34-.59q.325-2.22 1.252-3.87t2.302-2.75a9.3 9.3 0 0 1 3.146-1.64Q14.453 1 16.49 1"})))}},3440(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.786 1q2.175 0 3.868.615 1.692.614 2.861 1.662a7 7 0 0 1 1.773 2.427q.605 1.38.605 2.912 0 1.39-.283 2.448-.282 1.058-.836 1.833t-1.37 1.32a8.2 8.2 0 0 1-1.863.907q4.875 1.692 4.875 6.628 0 2.337-.846 4.07t-2.266 2.881-3.295 1.723-3.908.574q-2.096 0-3.728-.453a8.6 8.6 0 0 1-2.9-1.41q-1.271-.958-2.227-2.449-.957-1.491-1.662-3.546l2.78-1.128q.363-.16.715-.222.353-.06.695-.06.645 0 1.159.252.512.252.776.735.906 1.672 1.924 2.428t2.387.756q1.048 0 1.824-.353a4 4 0 0 0 1.289-.907q.513-.554.776-1.259a4.1 4.1 0 0 0 .262-1.43q0-.948-.131-1.703a2.22 2.22 0 0 0-.736-1.3q-.604-.543-1.823-.835-1.219-.293-3.395-.293v-4.311q1.834 0 2.962-.282t1.742-.776.816-1.199q.202-.705.202-1.551 0-1.732-.836-2.67-.837-.937-2.549-.937-.705 0-1.29.202-.583.202-1.047.544a3.6 3.6 0 0 0-.796.806q-.332.463-.534 1.007-.323.907-.816 1.31-.493.402-1.34.403-.2 0-.433-.02a6 6 0 0 1-.473-.06L6.39 9.703q.321-2.196 1.239-3.828.916-1.632 2.276-2.72a9.2 9.2 0 0 1 3.113-1.622Q14.772 1 16.786 1"})))}},20911(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M24.442 19.346h3.089v3.583q0 .473-.32.823-.319.35-.916.35h-1.853V31h-5.56v-6.898H6.818q-.598 0-1.081-.37a1.57 1.57 0 0 1-.608-.927l-.659-3.15L18.347 1h6.095zm-5.56-7.824q0-.72.052-1.555.051-.834.155-1.72L11.16 19.347h7.722z"})))}},58334(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M25.145 3.607q0 .651-.204 1.181t-.642.927-1.15.61q-.714.215-1.711.215H14.35l-.835 4.908a21 21 0 0 1 1.61-.214 16 16 0 0 1 1.506-.071q2.343 0 4.135.713 1.793.712 3.014 1.945a8.1 8.1 0 0 1 1.843 2.892q.621 1.66.621 3.554 0 2.383-.845 4.348a10.1 10.1 0 0 1-2.352 3.391q-1.507 1.425-3.595 2.21T14.88 31a12.2 12.2 0 0 1-2.76-.305 13.184 13.184 0 0 1-4.593-2.026 14 14 0 0 1-1.771-1.457l1.955-2.607q.305-.408.713-.621.407-.214.875-.214.611 0 1.151.336l1.181.733a9 9 0 0 0 1.497.723q.856.326 2.118.326t2.16-.418a3.9 3.9 0 0 0 1.456-1.14 4.7 4.7 0 0 0 .814-1.69q.255-.968.255-2.068 0-2.158-1.222-3.289-1.222-1.13-3.463-1.13-1.995 0-3.91.753l-3.91-1.059L9.95 1h15.194z"})))}},70429(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M17.955 11.876q1.61 0 3.177.53a8.1 8.1 0 0 1 2.811 1.629q1.242 1.1 2.006 2.78.765 1.68.764 3.961 0 2.078-.774 3.94a9.8 9.8 0 0 1-2.19 3.26q-1.415 1.395-3.41 2.21-1.998.813-4.42.814-2.486 0-4.46-.784-1.977-.784-3.351-2.19-1.375-1.405-2.098-3.36t-.723-4.297q0-2.22.856-4.42.855-2.2 2.525-4.48l6.68-9.023q.448-.61 1.344-1.028T18.73 1h5.621l-8.798 10.51q-.204.223-.397.457l-.377.459a9 9 0 0 1 1.497-.408 9.4 9.4 0 0 1 1.68-.142m-6.599 9.348q0 1.1.265 1.976t.815 1.507q.55.63 1.385.967t1.975.336a4.5 4.5 0 0 0 1.823-.366 4.4 4.4 0 0 0 1.456-1.009q.611-.641.968-1.507a4.9 4.9 0 0 0 .356-1.884q0-1.14-.336-2.036a4.2 4.2 0 0 0-.947-1.507 4.1 4.1 0 0 0-1.476-.937 5.4 5.4 0 0 0-1.925-.326 4.45 4.45 0 0 0-1.752.336q-.794.336-1.374.967-.581.632-.907 1.507-.326.876-.326 1.976"})))}},41884(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M26.542 1v2.677q0 1.133-.247 1.832t-.473 1.195L15.342 28.9a3.9 3.9 0 0 1-1.216 1.493q-.803.607-2.12.607H7.351L18.06 9.524q.432-.885.937-1.585.504-.7 1.101-1.338H6.9a1.3 1.3 0 0 1-.546-.114 1.5 1.5 0 0 1-.453-.309 1.6 1.6 0 0 1-.319-.453 1.2 1.2 0 0 1-.123-.525V1z"})))}},44123(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 31q-2.337 0-4.271-.625-1.935-.624-3.315-1.763a7.8 7.8 0 0 1-2.135-2.75q-.756-1.612-.756-3.586 0-1.188.272-2.246.271-1.058.867-1.935a6.4 6.4 0 0 1 1.53-1.561q.937-.685 2.267-1.149-2.014-.906-2.992-2.518-.977-1.612-.977-3.868 0-1.713.705-3.174A7.6 7.6 0 0 1 9.17 3.297q1.269-1.068 3.012-1.682Q13.925 1 16 1t3.818.615 3.012 1.682a7.6 7.6 0 0 1 1.975 2.528Q25.51 7.286 25.51 9q0 2.256-.988 3.868-.987 1.612-2.981 2.518 1.31.464 2.246 1.149a6.4 6.4 0 0 1 1.531 1.561 6.3 6.3 0 0 1 .877 1.935q.282 1.058.282 2.246 0 1.975-.756 3.586a7.8 7.8 0 0 1-2.135 2.75q-1.38 1.14-3.315 1.763Q18.337 31 16 31m0-4.715q1.047 0 1.813-.322.765-.323 1.26-.876.493-.555.725-1.31a5.5 5.5 0 0 0 .232-1.622q0-.947-.202-1.733a3.35 3.35 0 0 0-.665-1.34q-.464-.554-1.239-.866T16 17.904t-1.924.312-1.24.867q-.462.554-.664 1.34a7 7 0 0 0-.202 1.732q0 .866.232 1.622t.725 1.31q.495.554 1.25.876t1.823.322m0-13.136q1.048 0 1.713-.342.665-.343 1.047-.907.383-.564.524-1.29.141-.725.141-1.49 0-.685-.181-1.33-.182-.645-.595-1.139a3 3 0 0 0-1.067-.795q-.655-.303-1.582-.303-.947 0-1.592.303-.645.301-1.057.795-.414.494-.595 1.139-.18.645-.181 1.33 0 .765.14 1.49.142.726.525 1.29t1.047.907q.666.342 1.713.342"})))}},2154(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M13.82 19.432a8.5 8.5 0 0 1-2.891-.52 7.8 7.8 0 0 1-2.617-1.578q-1.171-1.059-1.905-2.668-.732-1.609-.733-3.809 0-2.016.744-3.808a9.35 9.35 0 0 1 2.118-3.137q1.374-1.344 3.289-2.128Q13.739 1 16.102 1q2.403 0 4.297.733 1.894.734 3.208 2.057a9 9 0 0 1 2.016 3.147q.703 1.823.703 4.022 0 1.466-.234 2.75a15.7 15.7 0 0 1-.652 2.454 15 15 0 0 1-1.008 2.24 23 23 0 0 1-1.324 2.108l-6.395 9.084q-.408.59-1.283.998-.876.407-1.976.407H7.63l9.41-11.242q.285-.347.54-.662.254-.316.498-.642a8 8 0 0 1-1.996.733 10.2 10.2 0 0 1-2.26.245m6.477-9.043q0-1.08-.315-1.904a3.8 3.8 0 0 0-.876-1.375 3.7 3.7 0 0 0-1.354-.835 5.1 5.1 0 0 0-1.732-.285q-.957 0-1.7.336a3.7 3.7 0 0 0-1.263.927 4.1 4.1 0 0 0-.794 1.395 5.4 5.4 0 0 0-.275 1.741q0 4.44 4.114 4.44 2.017 0 3.106-1.212 1.09-1.212 1.09-3.228"})))}},13922(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M19.521 1h-7.042L1 31h5.373q.855 0 1.445-.463.472-.371.697-.814l.097-.226 1.75-5.23h11.276l1.75 5.23q.224.66.804 1.08.483.353 1.186.411l.29.012H31zM16 7.177q.346 1.236.702 2.296l.62 1.843 2.728 8.215h-8.1l2.727-8.174q.153-.39.316-.855l.335-.998q.346-1.071.672-2.327"})))}},34289(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.782 32q2.878 0 5.118-.736 2.24-.735 3.766-2.042a8.7 8.7 0 0 0 2.318-3.064q.79-1.757.79-3.8 0-2.7-1.515-4.425-1.516-1.724-4.678-2.493 1.449-.527 2.481-1.241 1.033-.714 1.692-1.592a6.1 6.1 0 0 0 .966-1.878 7 7 0 0 0 .307-2.076q0-1.975-.67-3.58-.67-1.602-2.14-2.723-1.472-1.12-3.8-1.735T15.772 0H4v32zM15.29 13.463h-3.866V5.557h4.35q1.251 0 2.162.197.912.198 1.505.66.593.46.878 1.218t.286 1.9q0 1.164-.362 1.933a2.8 2.8 0 0 1-1.055 1.208q-.69.438-1.68.615-.988.175-2.218.175M16.65 26.4h-5.228v-7.972h5.184q1.406 0 2.328.263.922.264 1.482.747t.791 1.186.23 1.582q0 .768-.197 1.515a3.24 3.24 0 0 1-.725 1.34q-.527.593-1.46.966-.934.373-2.405.373"})))}},98336(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M17.305 31q3.647 0 6.316-1.179a11.2 11.2 0 0 0 4.443-3.495l-2.7-2.841a1.3 1.3 0 0 0-.463-.312 1.4 1.4 0 0 0-.484-.091q-.302 0-.584.13a2.4 2.4 0 0 0-.524.333 8.3 8.3 0 0 1-1.199.877 6.6 6.6 0 0 1-2.67.886q-.765.09-1.692.09a7.4 7.4 0 0 1-3.022-.624 7.1 7.1 0 0 1-2.468-1.823q-1.058-1.2-1.672-2.952-.615-1.752-.615-4.01 0-2.154.615-3.888.614-1.733 1.712-2.951a7.4 7.4 0 0 1 2.63-1.874q1.53-.655 3.384-.655 1.068 0 1.864.161.796.162 1.39.393.594.233 1.028.504.433.272.796.504.362.231.685.393.322.16.685.16.543 0 .846-.231.302-.232.524-.514l2.296-3.082a11.3 11.3 0 0 0-1.893-1.582 13 13 0 0 0-2.338-1.229 15 15 0 0 0-2.73-.806A16 16 0 0 0 18.353 1q-3.405 0-6.226 1.108-2.82 1.108-4.846 3.103-2.024 1.994-3.153 4.745Q3 12.706 3 15.99q0 3.223.987 5.974.987 2.75 2.831 4.755t4.493 3.143T17.305 31"})))}},64223(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M13.654 31q3.5 0 6.373-1.122t4.91-3.13q2.04-2.008 3.161-4.756 1.122-2.749 1.122-6.002 0-3.233-1.122-5.982t-3.16-4.746q-2.04-1.997-4.911-3.13Q17.154 1 13.654 1H2v30zm0-5.353H9.001V6.353h4.653q1.998 0 3.562.67a7.2 7.2 0 0 1 2.646 1.915q1.08 1.245 1.658 3.037.576 1.79.576 4.015 0 2.244-.576 4.035-.577 1.792-1.658 3.037a7.2 7.2 0 0 1-2.646 1.915q-1.564.67-3.562.67"})))}},35790(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M25.314 1v5.353H13v7.001h9.43v5.148h-9.43v7.145h12.313V31H6V1z"})))}},84141(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M26.314 1v5.353H14v7.598h10.254v5.374H14V31H7V1z"})))}},13763(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M11.96 31V20.973h3.623q3.11 0 5.385-.752t3.757-2.09a8.26 8.26 0 0 0 2.204-3.212q.72-1.874.72-4.118 0-2.08-.7-3.871a8.1 8.1 0 0 0-2.172-3.11q-1.472-1.317-3.747-2.068T15.583 1H5v30zm3.623-15.278H11.96V6.209h3.623q1.318 0 2.276.33t1.585.937.937 1.451a5.4 5.4 0 0 1 .309 1.874q0 2.327-1.194 3.624t-3.913 1.297"})))}},71258(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M15.673 8.226q.778 0 1.467-.29.688-.29 1.207-.778.52-.49.819-1.138.3-.65.3-1.387 0-.759-.3-1.417a3.74 3.74 0 0 0-2.026-1.937A3.9 3.9 0 0 0 15.673 1a3.6 3.6 0 0 0-1.418.28 3.74 3.74 0 0 0-1.966 1.936Q12 3.874 12 4.633q0 .738.29 1.387.289.649.798 1.138t1.167.778q.66.29 1.418.29M18.747 31V10.301h-6.188V31z"})))}},81188(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.057 31q3.339 0 6.085-1.052 2.744-1.053 4.712-3.003t3.056-4.743Q31 19.41 31 15.93q0-3.452-1.09-6.216t-3.056-4.7q-1.968-1.937-4.712-2.976Q19.397 1 16.057 1q-3.369 0-6.128 1.038T5.175 5.013Q3.18 6.95 2.09 9.713 1 12.48 1 15.93q0 3.48 1.09 6.272 1.089 2.793 3.085 4.743t4.754 3.003Q12.69 31 16.057 31m0-6.455q-3.114 0-4.557-2.118-1.443-2.12-1.443-6.441T11.5 9.559q1.443-2.104 4.557-2.104 3.027 0 4.457 2.104 1.43 2.106 1.43 6.427 0 4.322-1.43 6.44-1.43 2.12-4.457 2.12"})))}},52005(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 1c8.271 0 15 6.729 15 15 0 3.734-1.37 7.286-3.866 10.05l-.278.301C23.984 29.262 19.925 31 16 31c-3.79 0-7.713-1.628-10.574-4.37l-.305-.304A14.93 14.93 0 0 1 1 16C1 7.729 7.729 1 16 1m1.844 6.429h-3.688L8.143 23.143h2.814q.448 0 .757-.243a1.3 1.3 0 0 0 .365-.426l.051-.118.917-2.74h5.906l.917 2.74q.117.345.421.566.254.184.621.215l.152.006h2.793zM16 10.664q.18.647.368 1.203l.325.965 1.429 4.303h-4.244l1.429-4.281q.08-.205.165-.448l.176-.523q.181-.56.352-1.219"})))}},81215(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M15.673 8.226q.778 0 1.467-.29.688-.29 1.207-.778.52-.49.819-1.138.3-.65.3-1.387 0-.759-.3-1.417a3.74 3.74 0 0 0-2.026-1.937A3.9 3.9 0 0 0 15.673 1a3.6 3.6 0 0 0-1.418.28 3.74 3.74 0 0 0-1.966 1.936Q12 3.874 12 4.633q0 .738.29 1.387.289.649.798 1.138t1.167.778q.66.29 1.418.29M18.747 31V10.301h-6.188V31z"})))}},85457(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.057 31q3.339 0 6.085-1.052 2.744-1.053 4.712-3.003t3.056-4.743Q31 19.41 31 15.93q0-3.452-1.09-6.216t-3.056-4.7q-1.968-1.937-4.712-2.976Q19.397 1 16.057 1q-3.369 0-6.128 1.038T5.175 5.013Q3.18 6.95 2.09 9.713 1 12.48 1 15.93q0 3.48 1.09 6.272 1.089 2.793 3.085 4.743t4.754 3.003Q12.69 31 16.057 31m0-6.455q-3.114 0-4.557-2.118-1.443-2.12-1.443-6.441T11.5 9.559q1.443-2.104 4.557-2.104 3.027 0 4.457 2.104 1.43 2.106 1.43 6.427 0 4.322-1.43 6.44-1.43 2.12-4.457 2.12"})))}},80410(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M6 18.016c.842.28 1.738.446 2.668.478q-.167.979-.168 2.006a11.96 11.96 0 0 0 3.38 8.342A3 3 0 0 1 6 28zM9 1a8 8 0 0 1 8 8v.02A12.05 12.05 0 0 0 9.02 17H9A8 8 0 1 1 9 1"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 4.1c-.722 0-1.308.586-1.308 1.308v3.784h-3.785a1.308 1.308 0 0 0 0 2.616h3.785v3.784a1.307 1.307 0 1 0 2.616 0v-3.784h3.784a1.308 1.308 0 0 0 0-2.616h-3.784v-3.784c0-.722-.586-1.307-1.308-1.307"}))))}},54455(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13 18.016q.516.172 1.058.285L19 23.242 19 28a3 3 0 0 1-6 0zM16 1a8 8 0 0 1 4.109 14.866L9.134 4.89A8 8 0 0 1 16 1"}),o.createElement("path",{d:"M2.333 2.333a1.507 1.507 0 0 1 2.012-.098l.114.103L29.662 27.54c.59.59.593 1.539.005 2.126a1.507 1.507 0 0 1-2.012.098l-.114-.103L2.338 4.46a1.5 1.5 0 0 1-.005-2.126"}))))}},45595(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M19 18.016V28a3 3 0 0 1-6 0v-9.984a9.5 9.5 0 0 0 3 .484 9.5 9.5 0 0 0 3-.484M16 1c1.669 0 3.218.51 4.5 1.385v1.963l.005.121.023.222.032.158.048.166c.199.599.659 1.085 1.26 1.309l.028.009 1.88.78a8 8 0 1 1-15.552-.001l1.879-.78.031-.01A2.11 2.11 0 0 0 11.5 4.349V2.385A7.96 7.96 0 0 1 16 1"}),o.createElement("path",{d:"M10 1H1v30h9v-3.802a.61.61 0 0 0-.343-.55l-.093-.035L4 24.304V7.242l5.564-2.31a.6.6 0 0 0 .428-.484l.008-.1zm21 0h-9v3.348l.008.1a.6.6 0 0 0 .335.45l.093.035L28 7.242v17.062l-5.564 2.309-.093.035a.61.61 0 0 0-.335.45l-.008.1V31h9z"}))))}},40835(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M19 18.016V28a3 3 0 0 1-6 0v-9.984a9.5 9.5 0 0 0 3 .484 9.5 9.5 0 0 0 3-.484M16 1a8 8 0 1 1 0 16 8 8 0 0 1 0-16"})))}},62430(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M26 18.016V28a3 3 0 0 1-6 0v-9.661q.073-.138.134-.28l-.135-.043A9.5 9.5 0 0 0 23 18.5a9.5 9.5 0 0 0 3-.484M23 1a8 8 0 1 1-2.55 15.585l.003-.085a3.97 3.97 0 0 0-1.274-2.912l-4.144-3.836A8 8 0 0 1 23 1"}),o.createElement("path",{d:"M1.674 2.78a2.46 2.46 0 0 0 .122 3.503L12.834 16.5 1.794 26.718a2.46 2.46 0 0 0-.12 3.503 2.48 2.48 0 0 0 3.491.118L18.16 18.311a2.465 2.465 0 0 0 0-3.622L5.165 2.66a2.48 2.48 0 0 0-3.491.118"}))))}},79338(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12 18.016V28a3 3 0 0 1-6 0v-9.984a9.5 9.5 0 0 0 3 .484 9.5 9.5 0 0 0 3-.484M9 1a8 8 0 0 1 7.8 9.789l-3.026 2.799a3.96 3.96 0 0 0-1.262 2.6A8 8 0 1 1 9 1"}),o.createElement("path",{d:"M31.28 2.78a2.46 2.46 0 0 1-.122 3.503L20.119 16.5l11.04 10.218a2.46 2.46 0 0 1 .12 3.503 2.48 2.48 0 0 1-3.491.118L14.793 18.311a2.465 2.465 0 0 1 0-3.622L27.788 2.66a2.48 2.48 0 0 1 3.491.118"}))))}},32257(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12 1a2 2 0 0 1 1.943 1.524c-.39.74-.61 1.582-.61 2.476s.22 1.736.609 2.476A2 2 0 0 1 12 9H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zM21 12a2 2 0 0 1 2 2v.376a2.8 2.8 0 0 0-.735.118 2.8 2.8 0 0 0-.931-.72c-1.421-.681-3.108-.05-3.759 1.387L15.382 20H12l-.077-.001.89-.827.153-.154.123-.15c.86-1.117.795-2.631-.14-3.62a2.77 2.77 0 0 0-2.522-.827 5 5 0 0 0-.37-.897A2 2 0 0 1 12 12ZM5 12a4 4 0 0 1 3.925 3.227L3.93 19.855A4.002 4.002 0 0 1 5 12M19 1c1.322 0 2.494.641 3.223 1.63A5.3 5.3 0 0 0 21.667 5c0 .851.2 1.656.554 2.37A4 4 0 1 1 19 1M27 1a4 4 0 1 1 0 8 4 4 0 0 1 0-8"}),o.createElement("path",{d:"M20.685 15.127c.656.315.94 1.118.634 1.794l-5.912 13.05a1.296 1.296 0 0 1-1.743.652c-.657-.315-.94-1.118-.634-1.794l5.912-13.05a1.296 1.296 0 0 1 1.743-.652m-10.618 1.087a1.27 1.27 0 0 1 1.79.06c.483.512.455 1.32-.063 1.798l-5.658 5.24 5.659 5.242c.517.477.545 1.285.061 1.796a1.27 1.27 0 0 1-1.789.061l-6.66-6.17a1.265 1.265 0 0 1 0-1.858Zm13.866 0 6.66 6.17a1.265 1.265 0 0 1 0 1.857l-6.66 6.17a1.27 1.27 0 0 1-1.79-.06 1.264 1.264 0 0 1 .062-1.797l5.659-5.242-5.658-5.24a1.264 1.264 0 0 1-.063-1.797 1.27 1.27 0 0 1 1.79-.061"}))))}},62289(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd",transform:"translate(1 1)"},o.createElement("path",{d:"M11 0a2 2 0 0 1 1.943 1.524c-.39.74-.61 1.582-.61 2.476s.22 1.736.609 2.476A2 2 0 0 1 11 8H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zM11 11a2 2 0 0 0-1.943 1.524c.39.74.61 1.582.61 2.476a5.3 5.3 0 0 1-.609 2.476A2 2 0 0 0 11 19h9a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2z"}),o.createElement("path",{fillOpacity:.4,d:"M4 11a4 4 0 1 0 0 8 4 4 0 0 0 0-8M18 0c1.322 0 2.494.641 3.223 1.63A5.3 5.3 0 0 0 20.667 4c0 .851.2 1.656.554 2.37A4 4 0 1 1 18 0M26 0a4 4 0 1 1 0 8 4 4 0 0 1 0-8"}),o.createElement("rect",{width:13,height:8,y:21,rx:2,transform:"matrix(-1 0 0 1 13 0)"}))))}},50028(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.008 1c1.044 0 1.91.812 1.987 1.843l.005.149v26.016c0 1.044-.812 1.91-1.843 1.987l-.149.005H2.992a1.996 1.996 0 0 1-1.987-1.843L1 29.008V2.992c0-1.044.812-1.91 1.843-1.987L2.992 1zM27 4.143H5.001a1 1 0 0 0-.994.884L4 5.144v5.855L3.3 11v10.057l.7-.001v6.086a1 1 0 0 0 .884.994l.117.007h21.998a1 1 0 0 0 .994-.884l.007-.117V17.044q.361-.421.564-.947.26-.681.26-1.465a3.8 3.8 0 0 0-.257-1.403 3.1 3.1 0 0 0-.566-.932L28 5.144a1 1 0 0 0-1-1.001"}),o.createElement("path",{d:"M8.42 16.374q.11.21.213.437.102.227.196.464a9 9 0 0 1 .199-.472q.105-.23.216-.445l2.068-4.07a.7.7 0 0 1 .113-.164.4.4 0 0 1 .13-.085.6.6 0 0 1 .163-.033q.091-.006.213-.006h1.427v8.057H11.71v-4.634q0-.337.033-.73L9.61 18.835a.7.7 0 0 1-.269.293.74.74 0 0 1-.384.1h-.254a.74.74 0 0 1-.385-.1.7.7 0 0 1-.268-.293l-2.145-4.147a7 7 0 0 1 .044.735v4.634H4.3V12h1.427q.12 0 .213.006.09.005.163.033a.4.4 0 0 1 .13.085.7.7 0 0 1 .113.164zm8.134.99v2.693h-1.869V12h2.842q.852 0 1.463.202.611.201 1.006.556.396.354.584.835.188.48.188 1.04 0 .602-.194 1.105a2.2 2.2 0 0 1-.591.863q-.399.36-1.01.561-.61.202-1.446.202zm0-1.41h.973q.73 0 1.051-.349.32-.348.32-.973 0-.276-.082-.503a1 1 0 0 0-.252-.39 1.1 1.1 0 0 0-.426-.251 1.9 1.9 0 0 0-.61-.089h-.974zm7.056 1.41v2.693h-1.869V12h2.843q.851 0 1.462.202.611.201 1.007.556.395.354.583.835.188.48.188 1.04 0 .602-.194 1.105a2.2 2.2 0 0 1-.591.863q-.399.36-1.01.561-.61.202-1.445.202zm0-1.41h.974q.729 0 1.05-.349.32-.348.32-.973 0-.276-.082-.503a1 1 0 0 0-.252-.39 1.1 1.1 0 0 0-.425-.251 1.9 1.9 0 0 0-.611-.089h-.974z"}))))}},9834(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M31 9v13h-3V9zM3.833 9l5.413 8.62V9h2.698v13H9.117l-5.43-8.594V22H1V9zm15.641 0q1.521 0 2.768.49 1.248.492 2.133 1.357a6 6 0 0 1 1.373 2.057q.487 1.191.487 2.592 0 1.41-.487 2.6a6.1 6.1 0 0 1-1.373 2.062 6.2 6.2 0 0 1-2.133 1.356 7.4 7.4 0 0 1-2.392.478l-.376.008h-5.062V9zm-.055 2.284h-2.007v8.432h2.007q.861 0 1.536-.292.675-.293 1.14-.837.468-.545.715-1.328.25-.783.25-1.763 0-.972-.25-1.755a3.8 3.8 0 0 0-.714-1.328 3.1 3.1 0 0 0-1.141-.837q-.675-.292-1.536-.292"})))}},27257(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M24.071 29.792c-1.627 1.58-3.422 1.333-5.134.588-1.82-.76-3.482-.807-5.404 0-2.393 1.033-3.663.733-5.104-.588C.293 21.416 1.494 8.656 10.741 8.175c2.243.12 3.813 1.24 5.134 1.333 1.963-.399 3.843-1.543 5.944-1.393 2.525.205 4.414 1.201 5.675 2.994-5.194 3.122-3.963 9.967.807 11.889-.954 2.507-2.18 4.984-4.233 6.815zM15.695 8.085C15.452 4.363 18.469 1.3 21.939 1c.478 4.293-3.902 7.506-6.244 7.085"})))}},1880(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M27 1a4 4 0 0 1 4 4v22a4 4 0 0 1-4 4H5a4 4 0 0 1-4-4V5a4 4 0 0 1 4-4zM15.702 8H10v15.75h6.191q1.395 0 2.48-.362 1.084-.363 1.824-1.005a4.3 4.3 0 0 0 1.122-1.508q.383-.865.383-1.87 0-1.33-.734-2.179-.735-.848-2.266-1.227a5.3 5.3 0 0 0 1.202-.61 3.5 3.5 0 0 0 .82-.784q.318-.432.467-.924t.15-1.022q0-.973-.325-1.762a3.23 3.23 0 0 0-1.037-1.34q-.714-.552-1.84-.854Q17.307 8 15.701 8m.404 9.07q.681 0 1.128.13.447.129.718.367.272.238.383.583.112.346.112.779 0 .378-.096.746-.095.367-.351.66a1.84 1.84 0 0 1-.707.475q-.453.183-1.165.183h-2.532V17.07Zm-.404-6.335q.607 0 1.048.097.441.098.729.324.287.228.425.6.138.374.139.935 0 .573-.176.952-.175.378-.51.594a2.2 2.2 0 0 1-.814.303q-.48.087-1.075.086h-1.872v-3.891Z"})))}},96940(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M22.906 5.336a.445.445 0 0 1 .224.587l-.879 1.96c.965.493 1.87 1.142 2.676 1.948L26.5 8.26a.445.445 0 0 1 .63.629l-1.602 1.6c.721.853 1.29 1.79 1.7 2.78l2.235-1.01a.446.446 0 0 1 .366.811l-2.294 1.036.091.297a9.5 9.5 0 0 0-5.262-1.584 9.5 9.5 0 0 0-6.426 2.492l-1.39-1.392 6.544-6.544q.176.064.352.135l.875-1.95a.444.444 0 0 1 .587-.223m-15.834 14.8a10.75 10.75 0 0 1 .048-5.701c-.877.096-1.975-.172-2.629-.583a2.225 2.225 0 0 1-2.84-.25 2.227 2.227 0 0 1-.001-3.146 2.227 2.227 0 0 1 3.145 0c.742.742.844 1.879.319 2.735.682.356 1.924.51 2.343.249a10.6 10.6 0 0 1 2.371-3.612 10.6 10.6 0 0 1 3.612-2.372c.261-.418.107-1.66-.248-2.343a2.225 2.225 0 0 1-2.736-.317 2.227 2.227 0 0 1 0-3.146 2.227 2.227 0 0 1 3.145 0c.773.773.854 1.974.251 2.84.411.654.68 1.753.583 2.63 1.86-.53 3.835-.545 5.701-.049zm6.847-5.59 1.39 1.392a9.5 9.5 0 0 0-2.49 6.426c0 1.944.583 3.753 1.584 5.263l-.298-.091-1.036 2.293a.444.444 0 1 1-.81-.366l1.008-2.235a10.6 10.6 0 0 1-2.778-1.7l-1.6 1.6a.444.444 0 1 1-.63-.63l1.573-1.572a10.7 10.7 0 0 1-1.95-2.675l-1.957.88a.446.446 0 0 1-.365-.812l1.95-.876a13 13 0 0 1-.136-.352z"}),o.createElement("path",{d:"M22.364 14.636c4.26 0 7.727 3.467 7.727 7.728s-3.467 7.727-7.727 7.727c-4.261 0-7.728-3.467-7.728-7.727 0-4.261 3.467-7.728 7.728-7.728m3.366 4.033a.86.86 0 0 0-1.199.172l-3.98 5.242-.957-.955a.844.844 0 0 0-1.194 0 .86.86 0 0 0 0 1.215l1.657 1.653c.162.16.376.248.616.248l.037-.002a.85.85 0 0 0 .63-.349l4.562-6.04a.84.84 0 0 0-.172-1.184"}))))}},18174(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M27.296 8.486a.459.459 0 0 1 .65.648l-1.652 1.651c.744.879 1.33 1.846 1.754 2.865l2.304-1.04a.46.46 0 0 1 .378.836l-2.366 1.068c1.178 3.67.389 7.835-2.37 10.83L14.97 14.323l6.748-6.748q.183.066.364.138l.902-2.01a.458.458 0 1 1 .837.375l-.907 2.02c.995.51 1.928 1.178 2.76 2.01zM7.261 20.734a11.1 11.1 0 0 1 .05-5.88c-.904.1-2.037-.177-2.71-.6a2.294 2.294 0 0 1-2.93-.259 2.297 2.297 0 0 1 0-3.244 2.296 2.296 0 0 1 3.243 0c.765.766.87 1.938.328 2.821.704.367 1.985.525 2.416.256a10.95 10.95 0 0 1 2.446-3.724 10.95 10.95 0 0 1 3.725-2.446c.269-.432.11-1.712-.256-2.416a2.295 2.295 0 0 1-2.821-.328 2.297 2.297 0 0 1-.001-3.244 2.296 2.296 0 0 1 3.244.001c.797.797.88 2.035.259 2.929.423.674.7 1.807.601 2.71a11.1 11.1 0 0 1 5.88-.05zm.452 1.348q-.072-.18-.14-.363l6.75-6.749 11.023 11.023c-2.996 2.76-7.162 3.548-10.831 2.371l-1.07 2.366a.457.457 0 1 1-.836-.378l1.041-2.304a11 11 0 0 1-2.865-1.754l-1.65 1.65a.458.458 0 1 1-.649-.649l1.622-1.621a11 11 0 0 1-2.01-2.76l-2.02.907a.46.46 0 0 1-.376-.837z"})))}},23201(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20.515 1c4.4 0 7.383 3.98 7.496 7.777l.004.224v4h3v18h-21V28.5H23a2.5 2.5 0 0 0 2.495-2.336L25.5 26v-8a2.5 2.5 0 0 0-2.336-2.495L23 15.5H10.015l.15-.005A2.5 2.5 0 0 0 12.5 13h.515V9c0-3.862 3.014-8 7.5-8m0 2.5c-2.758 0-5 2.614-5 5.5v4h10V9c0-2.886-2.243-5.5-5-5.5"}),o.createElement("path",{d:"M23 17a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1ZM4.943 18H2v8h3.196q.72 0 1.279-.184.56-.185.942-.51.381-.327.579-.767.198-.438.198-.95 0-.674-.38-1.106-.378-.43-1.169-.623.363-.132.62-.31.26-.18.423-.398.165-.22.242-.47t.077-.519a2.3 2.3 0 0 0-.168-.895 1.64 1.64 0 0 0-.535-.68q-.368-.28-.95-.434T4.943 18m5.612 0H8.699l2.476 3.887L8.6 26h1.735q.165 0 .274-.09a.8.8 0 0 0 .176-.206l1.494-2.592q.055-.088.098-.209l1.604 2.8a.7.7 0 0 0 .178.21.46.46 0 0 0 .294.087h1.856l-2.564-4.195L16.254 18h-1.78q-.234 0-.372.23l-1.395 2.395a3 3 0 0 0-.08.137q-.035.066-.063.137l-1.592-2.696a.4.4 0 0 0-.151-.156.6.6 0 0 0-.266-.047m11.618 0h-5.15v8h1.866v-3.113h2.735v-1.433h-2.735v-2.026h3.284zM5.152 22.607q.351 0 .582.066a1 1 0 0 1 .37.186q.141.12.198.297.058.176.058.395 0 .192-.05.379a.8.8 0 0 1-.181.335.95.95 0 0 1-.365.242 1.6 1.6 0 0 1-.601.093H3.856v-1.993Zm-.209-3.218q.313 0 .54.05a.9.9 0 0 1 .377.164.7.7 0 0 1 .22.305q.07.19.071.475 0 .291-.09.483a.7.7 0 0 1-.264.302 1.2 1.2 0 0 1-.42.154q-.247.045-.555.044h-.966v-1.977ZM10 11H2a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1m0-5H2a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1m0-5H2a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1"}))))}},11660(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M23.607 1.508c4.25 1.632 6.137 6.651 4.655 10.882l-.09.244L27.649 14h3.367v17h-21l-.001-2.501H23l.164-.005a2.5 2.5 0 0 0 2.33-2.33L25.5 26v-8a2.5 2.5 0 0 0-2.336-2.495L23 15.5H10.014a2.5 2.5 0 0 0 2.278-1.5H24.97l.869-2.262c1.174-3.06-.141-6.75-3.128-7.896-2.92-1.12-6.277.632-7.525 3.568l-.083.207-.269.7L12.5 7.42l.269-.7c1.643-4.28 6.504-6.876 10.838-5.213"}),o.createElement("path",{d:"M23 17a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1ZM4.943 18H2v8h3.196q.72 0 1.279-.184.56-.185.942-.51.381-.327.579-.767.198-.438.198-.95 0-.674-.38-1.106-.378-.43-1.169-.623.363-.132.62-.31.26-.18.423-.398.165-.22.242-.47t.077-.519a2.3 2.3 0 0 0-.168-.895 1.64 1.64 0 0 0-.535-.68q-.368-.28-.95-.434T4.943 18m5.612 0H8.699l2.476 3.887L8.6 26h1.735q.165 0 .274-.09a.8.8 0 0 0 .176-.206l1.494-2.592q.055-.088.098-.209l1.604 2.8a.7.7 0 0 0 .178.21.46.46 0 0 0 .294.087h1.856l-2.564-4.195L16.254 18h-1.78q-.234 0-.372.23l-1.395 2.395a3 3 0 0 0-.08.137q-.035.066-.063.137l-1.592-2.696a.4.4 0 0 0-.151-.156.6.6 0 0 0-.266-.047m11.618 0h-5.15v8h1.866v-3.113h2.735v-1.433h-2.735v-2.026h3.284zM5.152 22.607q.351 0 .582.066a1 1 0 0 1 .37.186q.141.12.198.297.058.176.058.395 0 .192-.05.379a.8.8 0 0 1-.181.335.95.95 0 0 1-.365.242 1.6 1.6 0 0 1-.601.093H3.856v-1.993Zm-.209-3.218q.313 0 .54.05a.9.9 0 0 1 .377.164.7.7 0 0 1 .22.305q.07.19.071.475 0 .291-.09.483a.7.7 0 0 1-.264.302 1.2 1.2 0 0 1-.42.154q-.247.045-.555.044h-.966v-1.977ZM10 11H2a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1m0-5H2a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1m0-5H2a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1"}))))}},19594(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12.769 6.72c1.643-4.28 6.504-6.875 10.838-5.212s6.209 6.845 4.566 11.126L27.648 14h3.367v17h-21l-.001-2.501H23a2.5 2.5 0 0 0 2.495-2.336L25.5 26v-8a2.5 2.5 0 0 0-2.5-2.5H10.014V14H24.97l.869-2.262c1.174-3.06-.141-6.75-3.128-7.896s-6.434.715-7.608 3.775l-.269.7L12.5 7.42Z"}),o.createElement("path",{d:"M23 17a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1ZM4.943 18H2v8h3.196q.72 0 1.279-.184.56-.185.942-.51.381-.327.579-.767.198-.438.198-.95 0-.674-.38-1.106-.378-.43-1.169-.623.363-.132.62-.31.26-.18.423-.398.165-.22.242-.47t.077-.519a2.3 2.3 0 0 0-.168-.895 1.64 1.64 0 0 0-.535-.68q-.368-.28-.95-.434T4.943 18m5.612 0H8.699l2.476 3.887L8.6 26h1.735q.165 0 .274-.09a.8.8 0 0 0 .176-.206l1.494-2.592q.055-.088.098-.209l1.604 2.8a.7.7 0 0 0 .178.21.46.46 0 0 0 .294.087h1.856l-2.564-4.195L16.254 18h-1.78q-.234 0-.372.23l-1.395 2.395a3 3 0 0 0-.08.137q-.035.066-.063.137l-1.592-2.696a.4.4 0 0 0-.151-.156.6.6 0 0 0-.266-.047m11.618 0h-5.15v8h1.866v-3.113h2.735v-1.433h-2.735v-2.026h3.284zM5.152 22.607q.351 0 .582.066a1 1 0 0 1 .37.186q.141.12.198.297.058.176.058.395 0 .192-.05.379a.8.8 0 0 1-.181.335.95.95 0 0 1-.365.242 1.6 1.6 0 0 1-.601.093H3.856v-1.993Zm-.209-3.218q.313 0 .54.05a.9.9 0 0 1 .377.164.7.7 0 0 1 .22.305q.07.19.071.475 0 .291-.09.483a.7.7 0 0 1-.264.302 1.2 1.2 0 0 1-.42.154q-.247.045-.555.044h-.966v-1.977Z"}))))}},47520(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16.515 1c4.4 0 7.383 3.98 7.496 7.777l.004.224v4h3v18h-21L6.014 28.5H23a2.5 2.5 0 0 0 2.495-2.336L25.5 26v-8a2.5 2.5 0 0 0-2.5-2.5H6.014V13h3V9c0-3.862 3.015-8 7.5-8m0 2.5c-2.758 0-5 2.614-5 5.5v4h10V9c0-2.886-2.243-5.5-5-5.5"}),o.createElement("path",{d:"M23 17a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1ZM4.943 18H2v8h3.196q.72 0 1.279-.184.56-.185.942-.51.381-.327.579-.767.198-.438.198-.95 0-.674-.38-1.106-.378-.43-1.169-.623.363-.132.62-.31.26-.18.423-.398.165-.22.242-.47t.077-.519a2.3 2.3 0 0 0-.168-.895 1.64 1.64 0 0 0-.535-.68q-.368-.28-.95-.434T4.943 18m5.612 0H8.699l2.476 3.887L8.6 26h1.735q.165 0 .274-.09a.8.8 0 0 0 .176-.206l1.494-2.592q.055-.088.098-.209l1.604 2.8a.7.7 0 0 0 .178.21.46.46 0 0 0 .294.087h1.856l-2.564-4.195L16.254 18h-1.78q-.234 0-.372.23l-1.395 2.395a3 3 0 0 0-.08.137q-.035.066-.063.137l-1.592-2.696a.4.4 0 0 0-.151-.156.6.6 0 0 0-.266-.047m11.618 0h-5.15v8h1.866v-3.113h2.735v-1.433h-2.735v-2.026h3.284zM5.152 22.607q.351 0 .582.066a1 1 0 0 1 .37.186q.141.12.198.297.058.176.058.395 0 .192-.05.379a.8.8 0 0 1-.181.335.95.95 0 0 1-.365.242 1.6 1.6 0 0 1-.601.093H3.856v-1.993Zm-.209-3.218q.313 0 .54.05a.9.9 0 0 1 .377.164.7.7 0 0 1 .22.305q.07.19.071.475 0 .291-.09.483a.7.7 0 0 1-.264.302 1.2 1.2 0 0 1-.42.154q-.247.045-.555.044h-.966v-1.977Z"}))))}},40183(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m12 16.24 3.56 3.56a8 8 0 0 0-.172 1.695q0 1.55.475 2.872.474 1.323 1.36 2.286a6.2 6.2 0 0 0 2.16 1.511q1.274.547 2.882.547 1.084 0 1.989-.216l1.833 1.832c.303.303.656.528 1.033.675L14.01 31l-.158-.006a2.015 2.015 0 0 1-1.83-1.71l-.016-.154-.006-.151zm18.947 13.207a2.02 2.02 0 0 1-1.493 1.499l-.022.005a2.993 2.993 0 0 0 1.515-1.504M1 21.572c1.898 1.596 5.328 2.78 9.5 3.325v4.082l.007.205c.027.372.107.727.234 1.056-5.627-.833-9.58-3.026-9.736-5.626L1 24.454zM28.99 12l.158.006c.935.073 1.69.79 1.83 1.71l.016.154.006.151.002 13.085a3 3 0 0 0-.501-.836l-.172-.186-8.894-8.895a4.2 4.2 0 0 1 1.315-.198q.512 0 .896.077.382.078.668.19.285.11.494.242l.383.242q.174.111.329.189a.7.7 0 0 0 .33.077q.262 0 .406-.111a1.5 1.5 0 0 0 .177-.16l.075-.087 1.104-1.482a5.4 5.4 0 0 0-.91-.76 6 6 0 0 0-1.124-.592 7.3 7.3 0 0 0-1.313-.387 7.6 7.6 0 0 0-1.496-.14q-1.637 0-2.993.532a8 8 0 0 0-.494.214L16.245 12zM18.965 23.205l2.73 2.732a3.412 3.412 0 0 1-1.856-1.095 4.2 4.2 0 0 1-.804-1.42zM1 15.803c1.898 1.595 5.328 2.78 9.5 3.325v4.202c-5.49-.745-9.337-2.588-9.495-4.522L1 18.685zm0-5.77c1.644 1.383 4.438 2.456 7.867 3.073L10.5 14.74v2.821c-5.49-.745-9.338-2.588-9.496-4.522L1 12.916zm.424-4.37 5.407 5.408C3.266 10.123 1 8.656 1 7.146c0-.511.147-1.008.424-1.483m29.176 4.37v.86a3.5 3.5 0 0 0-.768-.291q.418-.275.768-.569M15.8 1c8.311 0 14.8 2.745 14.8 6.146 0 1.233-1.512 2.438-4.008 3.355L14.745 10.5l-8.18-8.178C9.078 1.494 12.275 1 15.8 1"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},98195(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M1 21.572c1.898 1.596 5.328 2.78 9.5 3.325v4.082l.007.205c.027.372.107.727.234 1.056C5 29.39 1 27.124 1 24.454Zm0-5.77c1.898 1.596 5.328 2.78 9.5 3.326v4.202C4.893 22.57 1 20.663 1 18.685Zm0-5.769c1.908 1.604 5.362 2.791 9.56 3.333q-.035.187-.05.382l-.009.216v3.597C4.894 16.801 1 14.894 1 12.916ZM15.8 1c8.311 0 14.8 2.745 14.8 6.146 0 1.233-1.512 2.438-4.008 3.355L14.01 10.5l-.206.007a3.57 3.57 0 0 0-2.578 1.375C5.232 11.192 1 9.209 1 7.146 1 3.746 7.489 1 15.8 1m14.8 9.033v.86a3.5 3.5 0 0 0-.768-.291q.418-.275.768-.569"}),o.createElement("path",{d:"m28.99 12 .158.006c.935.073 1.69.79 1.83 1.71l.016.154.006.151V28.98l-.006.158c-.073.94-.785 1.7-1.7 1.84l-.154.017-.15.006H14.01l-.158-.006a2.015 2.015 0 0 1-1.83-1.71l-.016-.154-.006-.151V14.02l.006-.158c.073-.94.785-1.7 1.7-1.84l.154-.017.15-.006zm-6.221 2.289q-1.637 0-2.993.532a6.8 6.8 0 0 0-2.33 1.492 6.8 6.8 0 0 0-1.516 2.281q-.542 1.323-.542 2.901 0 1.55.475 2.872.474 1.323 1.36 2.286a6.2 6.2 0 0 0 2.16 1.511q1.274.547 2.882.547 1.753 0 3.037-.566a5.4 5.4 0 0 0 2.136-1.68l-1.298-1.367a.63.63 0 0 0-.736-.13q-.136.063-.252.16a4 4 0 0 1-.577.42 3.2 3.2 0 0 1-1.283.427q-.368.045-.814.044-.774 0-1.453-.3a3.4 3.4 0 0 1-1.186-.877 4.2 4.2 0 0 1-.804-1.42q-.296-.842-.296-1.927 0-1.035.296-1.87a4.2 4.2 0 0 1 .823-1.418q.528-.586 1.264-.901a4.1 4.1 0 0 1 1.628-.315q.512 0 .896.077.382.078.668.19.285.11.494.242l.383.242q.174.111.329.189a.7.7 0 0 0 .33.077q.262 0 .406-.111.145-.112.252-.247l1.104-1.482a5.4 5.4 0 0 0-.91-.76 6 6 0 0 0-1.124-.592 7.3 7.3 0 0 0-1.313-.387 7.6 7.6 0 0 0-1.496-.14"}))))}},58203(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M21.897 1c.887 0 1.607.53 1.607 1.184v11.107H9.037c-.887 0-1.607.531-1.607 1.185v3.106H2.607c-.887 0-1.607-.53-1.607-1.185V2.517l6.058 6.059H3.223v2.14h7.493V3.212H8.573v3.85L2.514 1.001 2.607 1z"}),o.createElement("path",{fillOpacity:.4,d:"M29.393 14.363H10.108c-.887 0-1.607.53-1.607 1.184v14.21c0 .654.72 1.184 1.607 1.184h19.285c.887 0 1.607-.53 1.607-1.184v-14.21c0-.653-.72-1.184-1.607-1.184"}))))}},51086(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M27.74 11v16.927h3.292V31H19.646v-3.073h3.841V17.845q0-.495.018-1.018l.023-.532-2.263 1.88a1.5 1.5 0 0 1-.44.253q-.219.075-.424.075-.356 0-.638-.157a1.6 1.6 0 0 1-.341-.249l-.078-.087L18 16.226 24.228 11z"}),o.createElement("path",{fillOpacity:.4,d:"M9.562 1q.921 0 1.736.166.814.165 1.522.456.708.29 1.304.697.596.405 1.056.896l-1.281 1.747-.088.103q-.092.1-.204.188-.17.13-.472.131a.8.8 0 0 1-.382-.091 4 4 0 0 1-.382-.223l-.444-.285a3.4 3.4 0 0 0-.573-.286 4.7 4.7 0 0 0-.775-.222 5.2 5.2 0 0 0-1.04-.092q-1.033 0-1.887.371a4.14 4.14 0 0 0-1.467 1.062 4.9 4.9 0 0 0-.955 1.673q-.342.981-.342 2.203 0 1.28.342 2.272.343.993.933 1.673a3.96 3.96 0 0 0 3.062 1.387q.516 0 .944-.051.426-.053.792-.177.364-.125.696-.326.332-.2.669-.496.135-.115.292-.189a.76.76 0 0 1 .595-.023q.136.053.259.177l1.506 1.61-.203.256a6.25 6.25 0 0 1-2.275 1.725Q11.01 18 8.978 18q-1.866 0-3.343-.645a7.2 7.2 0 0 1-2.506-1.781q-1.028-1.136-1.578-2.695T1 9.494q0-1.86.63-3.42a8 8 0 0 1 1.758-2.688A7.9 7.9 0 0 1 6.09 1.628Q7.663 1 9.562 1m7.145 16.003.614.814h-.613zm3.821-15.82v6.953h6.652V1.183H31v16.634h-1.761V9.5h-5.557l-1.531 1.284h-1.623v1.362l-3.821 3.207V1.183z"}))))}},34061(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M9.562 1q.921 0 1.736.166.814.165 1.522.456.708.29 1.304.697.596.405 1.056.896l-1.281 1.747-.088.103q-.092.1-.204.188-.17.13-.472.131a.8.8 0 0 1-.382-.091 4 4 0 0 1-.382-.223l-.444-.285a3.4 3.4 0 0 0-.573-.286 4.7 4.7 0 0 0-.775-.222 5.2 5.2 0 0 0-1.04-.092q-1.033 0-1.887.371a4.14 4.14 0 0 0-1.467 1.062 4.9 4.9 0 0 0-.955 1.673q-.342.981-.342 2.203 0 1.28.342 2.272.343.993.933 1.673a3.96 3.96 0 0 0 3.062 1.387q.516 0 .944-.051.426-.053.792-.177.364-.125.696-.326.332-.2.669-.496.135-.115.292-.189a.76.76 0 0 1 .595-.023q.136.053.259.177l1.506 1.61-.203.256a6.25 6.25 0 0 1-2.275 1.725Q11.01 18 8.978 18q-1.866 0-3.343-.645a7.2 7.2 0 0 1-2.506-1.781q-1.028-1.136-1.578-2.695T1 9.494q0-1.86.63-3.42a8 8 0 0 1 1.758-2.688A7.9 7.9 0 0 1 6.09 1.628Q7.663 1 9.562 1m10.966.183v6.953h6.652V1.183H31l.001 11.677a6.6 6.6 0 0 0-1.12-1.347c-.698-.645-1.534-1.143-2.494-1.494q-1.429-.52-3.144-.519-1.57 0-2.966.425a7.7 7.7 0 0 0-2.588 1.359 7.7 7.7 0 0 0-1.897 2.27l-.085.159V1.183z"}),o.createElement("path",{d:"M24.243 11q1.46 0 2.629.428 1.168.427 1.993 1.188.824.76 1.263 1.812.44 1.053.44 2.315a6.4 6.4 0 0 1-.304 2.01 8 8 0 0 1-.832 1.758 12 12 0 0 1-1.223 1.616q-.463.52-.967 1.05l-.512.532-3.852 3.964q.744-.216 1.467-.346a8 8 0 0 1 1.035-.12l.323-.009h3.675q.676 0 1.068.374.343.326.386.835l.006.149V31H17v-1.358q0-.393.162-.842.13-.358.415-.664l.153-.15 5.675-5.744q.73-.733 1.27-1.398.541-.665.893-1.31.351-.645.527-1.29.175-.645.175-1.365 0-1.181-.56-1.812-.561-.632-1.71-.632-.473 0-.865.136-.391.135-.703.367a2.4 2.4 0 0 0-.533.543 2.9 2.9 0 0 0-.358.679q-.217.61-.548.882-.33.272-.898.272a3 3 0 0 1-.29-.014l-.158-.017-.16-.024-2.217-.393q.216-1.48.831-2.58a6.2 6.2 0 0 1 1.527-1.833 6.2 6.2 0 0 1 2.088-1.093 8.6 8.6 0 0 1 2.527-.36"}))))}},86700(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M9.562 1q.921 0 1.736.166.814.165 1.522.456.708.29 1.304.697.596.405 1.056.896l-1.281 1.747-.088.103q-.092.1-.204.188-.17.13-.472.131a.8.8 0 0 1-.382-.091 4 4 0 0 1-.382-.223l-.444-.285a3.4 3.4 0 0 0-.573-.286 4.7 4.7 0 0 0-.775-.222 5.2 5.2 0 0 0-1.04-.092q-1.033 0-1.887.371a4.14 4.14 0 0 0-1.467 1.062 4.9 4.9 0 0 0-.955 1.673q-.342.981-.342 2.203 0 1.28.342 2.272.343.993.933 1.673a3.96 3.96 0 0 0 3.062 1.387q.516 0 .944-.051.426-.053.792-.177.364-.125.696-.326.332-.2.669-.496.135-.115.292-.189a.76.76 0 0 1 .595-.023q.136.053.259.177l1.506 1.61-.203.256a6.25 6.25 0 0 1-2.275 1.725Q11.01 18 8.978 18q-1.866 0-3.343-.645a7.2 7.2 0 0 1-2.506-1.781q-1.028-1.136-1.578-2.695T1 9.494q0-1.86.63-3.42a8 8 0 0 1 1.758-2.688A7.9 7.9 0 0 1 6.09 1.628Q7.663 1 9.562 1m10.966.183v6.953h6.652V1.183H31l.003 11.274a6.4 6.4 0 0 0-.956-1.06c-.672-.598-1.479-1.063-2.411-1.399-.93-.335-1.967-.498-3.108-.498q-1.57 0-2.966.42c-.964.291-1.83.74-2.59 1.342a7.7 7.7 0 0 0-1.903 2.25 8 8 0 0 0-.362.729V1.183z"}),o.createElement("path",{d:"M24.528 11q1.462 0 2.6.41 1.137.41 1.922 1.108.786.698 1.192 1.618t.406 1.941q0 .927-.19 1.632-.189.705-.561 1.222a3.5 3.5 0 0 1-.921.88 5.5 5.5 0 0 1-1.253.605Q31 21.544 31 24.835q0 1.558-.569 2.713t-1.523 1.92a6.5 6.5 0 0 1-2.214 1.15 9 9 0 0 1-2.626.382q-1.41 0-2.505-.302a5.8 5.8 0 0 1-1.95-.94 6.3 6.3 0 0 1-1.496-1.632 10.4 10.4 0 0 1-.978-1.98L17 25.761l1.868-.753q.244-.107.481-.147t.467-.04q.434 0 .779.167.345.169.521.49.609 1.115 1.293 1.62.683.503 1.605.503.703 0 1.225-.235a2.7 2.7 0 0 0 .866-.605q.345-.369.522-.84a2.7 2.7 0 0 0 .176-.953q0-.631-.088-1.135a1.48 1.48 0 0 0-.494-.866q-.407-.363-1.226-.558-.728-.173-1.964-.192l-.317-.002V19.34q1.232 0 1.99-.188.759-.188 1.171-.517a1.56 1.56 0 0 0 .549-.8q.135-.47.135-1.033 0-1.155-.562-1.78t-1.713-.625q-.474 0-.866.135a2.6 2.6 0 0 0-.704.362 2.4 2.4 0 0 0-.535.538 3 3 0 0 0-.286.493l-.073.178q-.216.604-.548.873-.332.27-.9.269a3 3 0 0 1-.292-.014l-.157-.016-.16-.024-2.221-.39q.216-1.463.832-2.551.617-1.088 1.53-1.814a6.2 6.2 0 0 1 2.092-1.081A8.7 8.7 0 0 1 24.528 11"}))))}},92915(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M9.562 1q.921 0 1.736.166.814.165 1.522.456.708.29 1.304.697.596.405 1.056.896l-1.281 1.747-.088.103q-.092.1-.204.188-.17.13-.472.131a.8.8 0 0 1-.382-.091 4 4 0 0 1-.382-.223l-.444-.285a3.4 3.4 0 0 0-.573-.286 4.7 4.7 0 0 0-.775-.222 5.2 5.2 0 0 0-1.04-.092q-1.033 0-1.887.371a4.14 4.14 0 0 0-1.467 1.062 4.9 4.9 0 0 0-.955 1.673q-.342.981-.342 2.203 0 1.28.342 2.272.343.993.933 1.673a3.96 3.96 0 0 0 3.062 1.387q.516 0 .944-.051.426-.053.792-.177.364-.125.696-.326.332-.2.669-.496.135-.115.292-.189a.76.76 0 0 1 .595-.023q.136.053.259.177l1.506 1.61-.203.256a6.25 6.25 0 0 1-2.275 1.725Q11.01 18 8.978 18q-1.866 0-3.343-.645a7.2 7.2 0 0 1-2.506-1.781q-1.028-1.136-1.578-2.695T1 9.494q0-1.86.63-3.42a8 8 0 0 1 1.758-2.688A7.9 7.9 0 0 1 6.09 1.628Q7.663 1 9.562 1m10.966.183v6.953h6.652V1.183H31v16.634h-.186l.001-8.317h-6.317l-.955 1.284h-3.015v4.052l-2.218 2.981h-1.602V1.183z"}),o.createElement("path",{d:"M29.315 23.23h2.06v2.39q0 .315-.214.548-.213.234-.61.234h-1.236V31h-3.706v-4.598h-8.044q-.399 0-.72-.248a1.05 1.05 0 0 1-.406-.617l-.439-2.1L25.252 11h4.063zm-3.706-5.216q0-.48.034-1.036t.103-1.146l-5.285 7.399h5.148z"}))))}},56068(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M11 25.636c2.436 1.28 7.781 1.614 10 1.614.51 0 1.183-.017 1.948-.06l3.139 3.137q.128.128.266.237a25 25 0 0 1-1.796.254l-.314.03-.317.027-.497.039-.314.02q-.265.016-.526.029-.277.012-.558.02-.111.004-.223.006-.405.01-.808.011-.404-.001-.808-.011-.111-.002-.223-.006-.28-.008-.558-.02-.26-.014-.526-.03a26 26 0 0 1-.811-.058 34 34 0 0 1-.719-.067c-3.37-.37-6.194-1.278-6.348-2.8L11 27.874zm20 0 .002 1.47a3 3 0 0 0-.673-1.022l-.103-.106q.422-.158.774-.342m-20-3.75c1.916 1.007 5.63 1.428 8.21 1.562l2.542 2.544Q21.382 26 21 26c-5.569 0-9.593-1.193-9.98-1.834l-.02-.04zM1 20.695c1.856.997 5.437 1.414 8.371 1.523l.379.013v3.743c-4.325-.151-8.562-1.095-8.744-2.973L1 22.875zm30 1.19v2.22c-.093.244-.72.57-1.765.883l-2.008-2.007c1.46-.248 2.833-.6 3.773-1.095m-17.138-3.783 4.02 4.02c-4.011-.333-6.695-1.24-6.882-1.747 0-.827.707-1.449 1.785-1.913l.074-.003q.46-.195 1.003-.357m7.946-.842.223.006q.28.009.558.021.26.013.526.029a26 26 0 0 1 .811.059 34 34 0 0 1 .719.067c3.455.378 6.334 1.324 6.352 2.918-.173.431-2.004 1.117-4.859 1.533l-4.638-4.64zM1 16.945c2.109 1.134 6.449 1.517 9.533 1.552-.441.463-.723 1.01-.774 1.657l-.009.22v.608c-5.35-.148-8.491-1.215-8.738-1.818L1 19.123zm0-3.75c2.103 1.13 6.426 1.515 9.509 1.552l2.362 2.364q-.146.052-.287.109c-.51.017-1.033.03-1.584.03-6.116 0-9.73-1.19-9.988-1.835L1 15.375zm20 0V16c-.212 0-.463.002-.745.008l-1.927-1.925c1.048-.225 1.98-.516 2.672-.888M1 9.445c1.28.689 3.385 1.1 5.53 1.326l2.694 2.694c-5.036-.2-7.98-1.22-8.212-1.8L1 11.625zm20 0v2.177c-.07.378-1.381.97-3.745 1.388l-2.2-2.198c2.287-.215 4.582-.634 5.945-1.367m0-3.75v2.177c-.098.53-2.64 1.481-7.1 1.783l-2.41-2.408c3.083-.037 7.407-.421 9.51-1.552m-20 0q.37.198.823.367l3.254 3.254c-2.486-.405-3.907-1.005-4.065-1.4L1 7.874zM11 1c4.815 0 9.996.977 10 3.122C20.88 4.76 17.245 6 11 6q-.389 0-.762-.006L5.675 1.43C7.302 1.14 9.177 1 11 1"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},37907(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M31 25.636v2.24c0 1.602-2.887 2.552-6.355 2.932q-.045.004-.087.01-.315.03-.632.057l-.497.039-.314.02q-.265.016-.526.029-.277.012-.558.02-.111.004-.223.006-.405.01-.808.011-.404-.001-.808-.011-.111-.002-.223-.006-.28-.008-.558-.02-.26-.014-.526-.03a26 26 0 0 1-.811-.058 34 34 0 0 1-.719-.067c-3.466-.38-6.355-1.33-6.355-2.933v-2.239c2.436 1.28 7.781 1.614 10 1.614s7.564-.334 10-1.614m0-3.75v2.22c-.25.652-4.323 1.893-10 1.893-5.569 0-9.593-1.193-9.98-1.834l-.02-.04v-2.24c2.436 1.282 7.781 1.615 10 1.615s7.564-.333 10-1.614M1 20.695c1.856.997 5.437 1.414 8.371 1.523l.379.013v3.743c-4.325-.151-8.562-1.095-8.744-2.973L1 22.875zm20-3.445q.404 0 .808.01l.223.006q.28.009.558.021.26.013.526.029a26 26 0 0 1 .811.059 34 34 0 0 1 .719.067c3.455.378 6.334 1.324 6.352 2.918-.262.653-4.328 1.89-9.997 1.89-5.69 0-9.767-1.247-10-1.875 0-.827.707-1.449 1.785-1.913l.074-.003c1.157-.49 2.752-.825 4.496-1.017q.045-.003.087-.01a34 34 0 0 1 1.443-.116q.265-.016.526-.029l.17-.006.169-.006A31 31 0 0 1 21 17.25m-20-.305c2.109 1.134 6.449 1.517 9.533 1.552-.441.463-.723 1.01-.774 1.657l-.009.22v.608c-5.35-.148-8.491-1.215-8.738-1.818L1 19.123zm20-3.75V16c-1.655 0-5.66.125-8.416 1.22-.51.017-1.033.03-1.584.03-6.116 0-9.73-1.19-9.988-1.835L1 15.375v-2.18c2.218 1.192 6.903 1.555 10 1.555s7.782-.363 10-1.555m0-3.75v2.177c-.117.637-3.753 1.878-10 1.878-6.116 0-9.73-1.19-9.988-1.835L1 11.625v-2.18C3.218 10.637 7.903 11 11 11s7.782-.363 10-1.555m0-3.75v2.177c-.117.637-3.753 1.878-10 1.878-6.116 0-9.73-1.19-9.988-1.835L1 7.875v-2.18C3.218 6.887 7.903 7.25 11 7.25s7.782-.363 10-1.555M11 1c4.815 0 9.996.977 10 3.122C20.88 4.76 17.245 6 11 6 4.754 6 1.118 4.759 1 4.125 1 1.977 6.184 1 11 1"})))}},79047(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28 1a3 3 0 0 1 3 3v24c0 1.654-1.346 3-3 3H4c-1.654 0-3-1.346-3-3V4a3 3 0 0 1 3-3Zm-1 3H5a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h21.943a1 1 0 0 0 1-.998l.055-22A1 1 0 0 0 27 4"}),o.createElement("path",{d:"M8 6c.492 0 .942.178 1.29.472A2.999 2.999 0 0 0 10 11.1V20.9a3 3 0 0 0-.71 4.627 2 2 0 0 1-3.284-1.379L6 24V8a2 2 0 0 1 2-2M16.5 7a1.5 1.5 0 0 1 .144 2.993L16.5 10h-5a1.5 1.5 0 0 1-.144-2.993L11.5 7zM20.5 12a1.5 1.5 0 0 1 .144 2.993L20.5 15h-5a1.5 1.5 0 0 1-.144-2.993L15.5 12zM20 18.5a1.5 1.5 0 0 0-1.5-1.5h-5a1.5 1.5 0 0 0 0 3h5a1.5 1.5 0 0 0 1.5-1.5M16.5 22a1.5 1.5 0 0 1 .144 2.993L16.5 25h-5a1.5 1.5 0 0 1-.144-2.993L11.5 22z"}),o.createElement("path",{d:"M24 6a2 2 0 0 1 2 2v16a2 2 0 1 1-4 0v-7.901a2.999 2.999 0 0 0 0-5.198V8a2 2 0 0 1 2-2"}))))}},6005(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28 1a3 3 0 0 1 3 3v24c0 1.654-1.346 3-3 3H4c-1.654 0-3-1.346-3-3V4a3 3 0 0 1 3-3Zm-1 3H5a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h21.943a1 1 0 0 0 1-.998l.055-22A1 1 0 0 0 27 4"}),o.createElement("path",{d:"M20.368 6H8.632a2.632 2.632 0 0 0 0 5.263h11.736a2.632 2.632 0 0 0 0-5.263m3 7.368H11.632a2.632 2.632 0 0 0 0 5.264h11.736a2.632 2.632 0 1 0 0-5.264m-3 7.369H8.632a2.632 2.632 0 1 0 0 5.263h11.736a2.632 2.632 0 1 0 0-5.263"}))))}},32928(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M19 1a3 3 0 0 1 3 3v2.5h-2.295a18 18 0 0 0-1.535-.995l-.457-.256-.258-.138-.46-.232-.48-.227-.477-.212-.491-.203-.705-.268-.497-.173-.262-.087-.493-.154-.255-.075-.594-.164-.586-.147-.456-.105-.437-.093-.42-.081-.587-.103-.547-.084-.494-.066-.565-.062-.704-.058-.305-.016L7.6 2.5a2.054 2.054 0 0 0-2.084 1.796l-.013.16c-.003.938.511 1.692 1.29 2.002l.14.048.467.135.193.063.03.01A4.5 4.5 0 0 0 4.5 11v11H4a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3z"}),o.createElement("path",{fillOpacity:.4,d:"M28 8a3 3 0 0 1 3 3v17a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V11a3 3 0 0 1 3-3h1.309l.135.082.377.249.284.2.323.242.259.204c2.214 1.798 3.713 4.234 4.205 7.453l.046.336h-.59c-.794 0-1.517.456-1.858 1.172a2.06 2.06 0 0 0 .082 1.914l.066.104.052.074.074.098 5.501 6.628a2.06 2.06 0 0 0 2.897.269l.097-.089.07-.068.089-.097 5.598-6.63a2.054 2.054 0 0 0-1.235-3.347l-.123-.015-.09-.008-.124-.005h-.83l-.01-.106c-.413-3.555-1.858-6.43-4.125-8.662z"}),o.createElement("path",{d:"m7.567 4 .257.012.66.054.533.058.465.062.515.078.56.098.395.077.412.087.427.098.551.138.57.157.231.068.47.147.238.078.48.167.22.08.439.17.442.183.443.196.443.21.442.223.22.117.439.245c3.417 1.977 6.48 5.345 6.782 11.077l.016.386h2.227l.091.008a.55.55 0 0 1 .387.826l-.053.074-5.597 6.629-.07.068a.555.555 0 0 1-.713-.003l-.07-.07-5.5-6.628-.052-.074a.55.55 0 0 1 .39-.823l.09-.007h2.212l-.015-.369c-.257-5.103-2.637-8.268-5.024-10.174l-.194-.152-.341-.255-.17-.121-.17-.117-.418-.276-.411-.251-.321-.185-.313-.17-.45-.228-.286-.135-.404-.179-.25-.104-.344-.133-.393-.14-.238-.077-.468-.135a.55.55 0 0 1-.341-.417L7 4.553l.004-.069a.554.554 0 0 1 .47-.479z"}))))}},95852(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M24.817 24.282h-5.94l-.654 2.818h7.249zM4.308 14H1.864a.864.864 0 1 1 0-1.728h2.392L5.839 9.94a.976.976 0 0 1 1.341-.265.94.94 0 0 1 .269 1.317l-.246.362h7.83V9.545c0-.524.433-.95.967-.95h.904V5.82H7.112a.96.96 0 0 1-.966-.95c0-.525.432-.95.966-.95h9.793A.96.96 0 0 1 17.87 3a.96.96 0 0 1 .966.92h10.26c.534 0 .967.424.967.949s-.433.95-.966.95h-10.26v2.777h.904c.534 0 .967.425.967.95v1.822c4.371.262 8.42 3.903 8.42 7.369 0 2.402-.822 4.542-2.221 5.273l.858 3.09h1.44a.97.97 0 0 1 .827-.46c.534 0 .967.426.967.95 0 .847-.573 1.41-1.435 1.41H13.661a.96.96 0 0 1-.967-.95c0-.524.433-.95.967-.95h2.266l.92-3.179c-1.307-.682-2.3-1.96-3.032-3.659a15.5 15.5 0 0 1-1.026-3.557l-5.297-1.644a.94.94 0 0 1-.245 1.202.98.98 0 0 1-1.358-.15zm21.515 4.737c0-2.165-2.006-4.137-4.21-4.137a.464.464 0 0 0-.467.46v3.677c0 .253.21.46.467.46h3.743a.464.464 0 0 0 .467-.46"})))}},49494(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FFF",d:"M25 29v-4h4a2 2 0 1 0 0-4h-4v-4a2 2 0 1 0-4 0v4h-4a2 2 0 1 0 0 4h4v4a2 2 0 1 0 4 0"}),o.createElement("path",{fill:"#FFF",fillOpacity:.4,d:"M19.58 0c-1.535 1.602-1.735 4.14-1.134 6.276.6 2.136 1.869 4.005 3.004 5.941q.268.457.525.916a4 4 0 0 0-2.97 3.662L19 17v2h-.863l-.337-.533a18 18 0 0 1-.296-.483c-.94-1.663-1.307-3.036-1.022-4.273l.616-2.667-2.19 1.642c-1.767 1.325-3.048 3.316-3.577 5.506l-.075.34a9 9 0 0 0-.146 1.036l-.004.05-.702.835c-1.195 1.418-1.898 3.206-1.909 4.978l.005.312c0 1.6.68 3.17 1.781 4.441a11.4 11.4 0 0 1-1.45-1.076c-1.468-1.669-2.937-3.405-3.871-5.474-.935-2.203-1.202-4.74-.735-7.144.468-2.403 1.536-4.673 3.071-6.61-.133 1.67.468 3.406 1.603 4.674-.668-3.204.4-6.676 2.537-9.213S16.509 1.135 19.58 0m6.076 10.949c1.202 1.469 1.87 2.937 2.203 4.807.19 1.068.25 2.158.23 3.245L27 19v-2a4 4 0 0 0-1.38-3.023c.232-1.007.296-2.038.036-3.028"}),o.createElement("path",{fill:"#FFF",fillOpacity:.4,d:"M15.508 13.486c-.4 1.736.267 3.472 1.135 5.007q.15.255.312.509a4 4 0 0 0-.154 7.994L17 27h2v2c0 .705.183 1.368.503 1.943-1.579 1.042-3.584 1.421-5.597.635-2.337-.934-4.407-3.27-4.407-5.875-.066-1.669.601-3.338 1.67-4.606.066 1.268.8 2.47 1.802 3.204-.868-1.802-1.135-3.939-.668-5.875.468-1.936 1.603-3.738 3.205-4.94"}))))}},96110(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}),o.createElement("path",{fillOpacity:.4,d:"M17 29.636A.682.682 0 0 1 17 31h-1.364a.682.682 0 0 1 0-1.364Zm1.364-2.727a.682.682 0 0 1 0 1.364h-4.091a.682.682 0 0 1 0-1.364ZM8.004 12.244l11.382 11.383-.083.03-.258.087v1.12a.68.68 0 0 1-.58.674l-.101.007h-4.091a.68.68 0 0 1-.675-.58l-.007-.101v-1.12a8.855 8.855 0 0 1-5.587-11.5m8.314-5.79c4.887 0 8.864 3.977 8.864 8.864a8.8 8.8 0 0 1-1.189 4.43L11.888 7.643a8.8 8.8 0 0 1 4.43-1.188m13.637 8.182a.682.682 0 0 1 .1 1.357l-.1.007h-2.728a.682.682 0 0 1-.1-1.356l.1-.008zm-24.546 0a.682.682 0 0 1 .1 1.357l-.1.007H2.682a.682.682 0 0 1-.1-1.356l.1-.008zM27.405 4.23c.24.24.264.614.072.88l-.072.084-2.892 2.895a.685.685 0 0 1-.964 0 .68.68 0 0 1-.072-.88l.072-.085 2.892-2.894a.68.68 0 0 1 .964 0M16.318 1c.342 0 .626.252.675.581l.007.1V4.41a.682.682 0 0 1-1.356.1l-.008-.1V1.682c0-.377.306-.682.682-.682"}))))}},36145(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.318 6.455c4.887 0 8.864 3.976 8.864 8.863 0 3.769-2.38 7.09-5.879 8.338l-.258.088v1.12a.68.68 0 0 1-.58.674l-.101.007h-4.091a.68.68 0 0 1-.675-.58l-.007-.101v-1.12a8.855 8.855 0 0 1-6.136-8.426c0-4.887 3.976-8.863 8.863-8.863m13.637 8.181a.682.682 0 0 1 0 1.364h-2.728a.682.682 0 0 1 0-1.364Zm-24.546 0a.682.682 0 0 1 0 1.364H2.682a.682.682 0 0 1 0-1.364ZM27.405 4.23c.24.24.264.614.072.88l-.072.084-2.892 2.895a.685.685 0 0 1-.964 0 .68.68 0 0 1-.072-.88l.072-.085 2.892-2.894a.68.68 0 0 1 .964 0M6.108 4.16l.085.071 2.892 2.894a.682.682 0 0 1-.88 1.036l-.084-.072-2.892-2.894a.682.682 0 0 1 .88-1.036M16.318 1c.377 0 .682.305.682.682v2.727a.682.682 0 0 1-1.364 0V1.682c0-.377.306-.682.682-.682M17 29.636h-1.364a.682.682 0 0 0 0 1.364H17a.682.682 0 0 0 0-1.364m1.364-2.727h-4.091a.682.682 0 0 0 0 1.364h4.09a.682.682 0 0 0 0-1.364"})))}},56444(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m13.597 17.837 3.665 3.665-6.35 9.281a.5.5 0 0 1-.317.208L10.5 31a.501.501 0 0 1-.481-.637zM12.761 17H9.5a.502.502 0 0 1-.487-.613l.592-2.543zM23.5 1a.501.501 0 0 1 .419.773L17.92 11H23.5a.499.499 0 0 1 .413.783l-3.204 4.681-9.499-9.499 1.303-5.578a.5.5 0 0 1 .401-.38L13 1Z"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},89163(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M23.5 11h-5.58l5.999-9.227a.501.501 0 0 0-.42-.773H13a.5.5 0 0 0-.486.387l-3.5 15A.502.502 0 0 0 9.5 17h4.337l-3.818 13.363a.501.501 0 0 0 .894.42l13-19A.501.501 0 0 0 23.5 11"})))}},39295(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M6.523 15.95a1.8 1.8 0 0 1 2.562 0c.613.62.7 1.58.207 2.335l-.093.13-.114.128-3.624 3.665c-1.03 1.042-1.101 2.073-.241 3.1l.112.128.13.136.905.916c1.03 1.042 2.05 1.114 3.066.244l.127-.113.134-.13 3.624-3.666a1.8 1.8 0 0 1 2.563 0c.612.62.7 1.58.207 2.334l-.094.13-.113.128-3.625 3.666C11.02 30.33 9.55 31 8.031 31c-1.34 0-2.643-.521-3.793-1.515l-.214-.191-.219-.214-.906-.916C.494 25.73.368 22.506 2.564 19.977l.161-.18.174-.181zM25.113 9c3.074 0 5.65 2.85 5.873 5.976l.012.209.004.198v2.322c0 3.08-2.437 5.702-5.467 5.939l-.207.012-.216.005H20.13c-1 0-1.812-.82-1.812-1.833 0-.883.622-1.63 1.505-1.802l.15-.023.157-.008h4.983c1.097 0 2.108-.93 2.248-2.006l.013-.14.005-.144v-2.322c0-1.25-1.029-2.532-2.02-2.698l-.123-.015-.123-.005H20.13c-1 0-1.812-.82-1.812-1.832 0-.884.622-1.631 1.505-1.802l.15-.023.157-.008z"}),o.createElement("path",{fillOpacity:.4,d:"M5.543 2.93a1.85 1.85 0 0 0 0 2.62l2.315 2.315c.35.352.822.542 1.309.542s.958-.19 1.31-.542a1.85 1.85 0 0 0 0-2.62L8.16 2.932a1.853 1.853 0 0 0-2.5-.108zM14.852 1C13.829 1 13 1.83 13 2.852V5.63a1.852 1.852 0 1 0 3.704 0V2.852c0-1.023-.83-1.852-1.852-1.852M7.63 10H4.852a1.852 1.852 0 0 0 0 3.704H7.63a1.852 1.852 0 1 0 0-3.704"}))))}},99775(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M21 13.203v14.53L11 29.88V15.35l2.5-.537V20a2.5 2.5 0 1 0 5 0v-6.26zM29.637 15.523 23 13.233V27.78l6.363 2.195A.4.4 0 0 0 29.5 30a.45.45 0 0 0 .301-.12.66.66 0 0 0 .199-.484V16.103c0-.269-.148-.506-.363-.58M1.227 13.205a.62.62 0 0 0-.227.482V26.98c0 .27.17.506.415.581L9 29.851V15.303l-7.272-2.197a.55.55 0 0 0-.5.1"}),o.createElement("path",{d:"M16 1c2.481 0 4.5 2.03 4.5 4.526a4.53 4.53 0 0 1-2.571 4.083q-.441.211-.928.324L17 20a1 1 0 0 1-2 0V9.933a4.5 4.5 0 0 1-.929-.324A4.53 4.53 0 0 1 11.5 5.526C11.5 3.03 13.519 1 16 1"}))))}},42737(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.5 1c.778 0 1.42.583 1.493 1.326l.007.141V18.12c0 .762-.596 1.39-1.356 1.46l-.144.007-.261-.001V9.5h-1.052V3.813H3.814v13.125l12.844-.001 1.49 1.976c.23.299.514.53.852.724L19 22.522l2.986-.001v1.916H8.583a.958.958 0 0 1-.112-1.909l.112-.006H13v-2.935H2.5c-.78 0-1.42-.582-1.493-1.326L1 18.12V2.467c0-.761.595-1.389 1.356-1.46L2.5 1z"}),o.createElement("path",{d:"M27.74 11v16.927h3.292V31H19.646v-3.073h3.841V17.845q0-.495.018-1.018l.023-.532-2.263 1.88a1.5 1.5 0 0 1-.44.253q-.219.075-.424.075-.356 0-.638-.157a1.6 1.6 0 0 1-.341-.249l-.078-.087L18 16.226 24.228 11z"}))))}},85634(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.5 1c.778 0 1.42.583 1.493 1.326l.007.141.001 10.393a6.6 6.6 0 0 0-1.12-1.347 7.1 7.1 0 0 0-1.692-1.152l-.002-6.549H3.814v13.126l11.931-.001-.168 1.151 3.648.648a5.6 5.6 0 0 0 .87.078c.704 0 1.339-.192 1.85-.612.391-.32.684-.746.903-1.263l1.921-.002-.005.199q-.024.378-.116.713a4.5 4.5 0 0 1-.397.967 7 7 0 0 1-.496.77L19 19.587v2.935l2.021-.001-1.894 1.916H8.583a.958.958 0 0 1-.112-1.909l.112-.006H13v-2.935H2.5c-.78 0-1.42-.582-1.493-1.326L1 18.12V2.467c0-.761.595-1.389 1.356-1.46L2.5 1z"}),o.createElement("path",{d:"M24.243 11q1.46 0 2.629.428 1.168.427 1.993 1.188.824.76 1.263 1.812.44 1.053.44 2.315a6.4 6.4 0 0 1-.304 2.01 8 8 0 0 1-.832 1.758 12 12 0 0 1-1.223 1.616q-.463.52-.967 1.05l-.512.532-3.852 3.964q.744-.216 1.467-.346a8 8 0 0 1 1.035-.12l.323-.009h3.675q.676 0 1.068.374.343.326.386.835l.006.149V31H17v-1.358q0-.393.162-.842.13-.358.415-.664l.153-.15 5.675-5.744q.73-.733 1.27-1.398.541-.665.893-1.31.351-.645.527-1.29.175-.645.175-1.365 0-1.181-.56-1.812-.561-.632-1.71-.632-.473 0-.865.136-.391.135-.703.367a2.4 2.4 0 0 0-.533.543 2.9 2.9 0 0 0-.358.679q-.217.61-.548.882-.33.272-.898.272a3 3 0 0 1-.29-.014l-.158-.017-.16-.024-2.217-.393q.216-1.48.831-2.58a6.2 6.2 0 0 1 1.527-1.833 6.2 6.2 0 0 1 2.088-1.093 8.6 8.6 0 0 1 2.527-.36"}))))}},89363(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.5 1c.778 0 1.42.583 1.493 1.326l.007.141.001 9.988a6.4 6.4 0 0 0-.954-1.058 7 7 0 0 0-1.858-1.178l-.002-6.406H3.814v13.125l12.191-.001-.16 1.09 3.659.643a6 6 0 0 0 .868.076l.231-.007q.228-.015.445-.057l.166-.041-.001.945-2.212.001v2.935l2.212-.001v1.102l-.185-.08a3.3 3.3 0 0 0-1.21-.222q-.36 0-.72.062a3.5 3.5 0 0 0-.628.17l-2.197.884h-7.69a.958.958 0 0 1-.11-1.909l.11-.006H13v-2.935H2.5c-.78 0-1.42-.582-1.493-1.326L1 18.12V2.467c0-.761.595-1.389 1.356-1.46L2.5 1z"}),o.createElement("path",{d:"M24.528 11q1.462 0 2.6.41 1.137.41 1.922 1.108.786.698 1.192 1.618t.406 1.941q0 .927-.19 1.632-.189.705-.561 1.222a3.5 3.5 0 0 1-.921.88 5.5 5.5 0 0 1-1.253.605Q31 21.544 31 24.835q0 1.558-.569 2.713t-1.523 1.92a6.5 6.5 0 0 1-2.214 1.15 9 9 0 0 1-2.626.382q-1.41 0-2.505-.302a5.8 5.8 0 0 1-1.95-.94 6.3 6.3 0 0 1-1.496-1.632 10.4 10.4 0 0 1-.978-1.98L17 25.761l1.868-.753q.244-.107.481-.147t.467-.04q.434 0 .779.167.345.169.521.49.609 1.115 1.293 1.62.683.503 1.605.503.703 0 1.225-.235a2.7 2.7 0 0 0 .866-.605q.345-.369.522-.84a2.7 2.7 0 0 0 .176-.953q0-.631-.088-1.135a1.48 1.48 0 0 0-.494-.866q-.407-.363-1.226-.558-.728-.173-1.964-.192l-.317-.002V19.34q1.232 0 1.99-.188.759-.188 1.171-.517a1.56 1.56 0 0 0 .549-.8q.135-.47.135-1.033 0-1.155-.562-1.78t-1.713-.625q-.474 0-.866.135a2.6 2.6 0 0 0-.704.362 2.4 2.4 0 0 0-.535.538 3 3 0 0 0-.286.493l-.073.178q-.216.604-.548.873-.332.27-.9.269a3 3 0 0 1-.292-.014l-.157-.016-.16-.024-2.221-.39q.216-1.463.832-2.551.617-1.088 1.53-1.814a6.2 6.2 0 0 1 2.092-1.081A8.7 8.7 0 0 1 24.528 11"}))))}},66796(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.5 1c.778 0 1.42.583 1.493 1.326l.007.141V18.12c0 .255-.067.495-.184.704L30.815 9.5h-2.628V3.813H3.814v13.125l15.152-.001-4.571 6.146.283 1.354H8.583a.958.958 0 0 1-.112-1.909l.112-.006H13v-2.935H2.5c-.78 0-1.42-.582-1.493-1.326L1 18.12V2.467c0-.761.595-1.389 1.356-1.46L2.5 1z"}),o.createElement("path",{d:"M29.315 23.23h2.06v2.39q0 .315-.214.548-.213.234-.61.234h-1.236V31h-3.706v-4.598h-8.044q-.399 0-.72-.248a1.05 1.05 0 0 1-.406-.617l-.439-2.1L25.252 11h4.063zm-3.706-5.216q0-.48.034-1.036t.103-1.146l-5.285 7.399h5.148z"}))))}},17090(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M31 26.8c0 2.317-1.883 4.2-4.2 4.2a4.204 4.204 0 0 1-4.2-4.2 4.2 4.2 0 0 1 2.912-3.994A6.005 6.005 0 0 0 19.6 17.8h-2.4v4.979c1.75.522 3 2.142 3 4.021 0 2.317-1.883 4.2-4.2 4.2a4.204 4.204 0 0 1-4.2-4.2 4.205 4.205 0 0 1 3-4.021V17.8h-2.4a6.01 6.01 0 0 0-5.912 5.006A4.2 4.2 0 0 1 9.4 26.8c0 2.317-1.883 4.2-4.2 4.2A4.204 4.204 0 0 1 1 26.8a4.2 4.2 0 0 1 3.073-4.042C4.59 18.596 8.143 15.4 12.4 15.4h2.4V9.221a4.2 4.2 0 0 1-3-4.021C11.8 2.884 13.684 1 16 1s4.2 1.884 4.2 4.2c0 1.88-1.25 3.5-3 4.022V15.4h2.4c4.257 0 7.81 3.196 8.327 7.358A4.2 4.2 0 0 1 31 26.8"})))}},98346(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M16.625 10.593v18.236a.624.624 0 1 1-1.25 0V10.598L1 6.53v17.345c0 .267.169.503.42.59l14.375 5a.6.6 0 0 0 .41 0l14.375-5a.625.625 0 0 0 .42-.59V6.355z"}),o.createElement("path",{fillOpacity:.7,d:"M16 9.454c.014 0 .025.007.039.008L29.49 5.498 16.158 2.021a.6.6 0 0 0-.316 0L2.215 5.576l13.741 3.887c.015-.001.029-.009.044-.009"}))))}},39445(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M23.274 1.031a1.995 1.995 0 0 1 2.32 1.617L26.8 9.5H6.005A3.503 3.503 0 0 0 2.5 12.99v2.658L.974 6.989a2 2 0 0 1 1.48-2.281l.146-.031Z"}),o.createElement("path",{d:"M29.267 11c1.114 0 2.006.891 2.006 1.99v16.02c0 1.092-.898 1.99-2.006 1.99H6.005A1.994 1.994 0 0 1 4 29.01V12.99C4 11.899 4.898 11 6.005 11Zm-2.437 6.364q-.852 0-1.542.266t-1.176.746-.748 1.14-.262 1.45q0 .774.274 1.435.273.66.755 1.143.482.482 1.14.755.66.273 1.434.274.43 0 .806-.044a5 5 0 0 0 .707-.135 3.6 3.6 0 0 0 1.005-.45l.183-.127V20.84h-2.508v.9q0 .126.087.209.066.06.17.077l.072.005h.698v1.07q-.233.096-.494.155a2.8 2.8 0 0 1-.6.058 2.1 2.1 0 0 1-.821-.157 1.8 1.8 0 0 1-.649-.458 2.1 2.1 0 0 1-.428-.736 3 3 0 0 1-.155-.997q0-.51.14-.923a2.1 2.1 0 0 1 .4-.709q.258-.296.626-.457.369-.163.828-.163.247 0 .446.025a2.3 2.3 0 0 1 .728.215q.172.085.366.201a.57.57 0 0 0 .3.097q.111 0 .206-.058a.5.5 0 0 0 .114-.097l.048-.063.475-.721a3.2 3.2 0 0 0-1.083-.678 4 4 0 0 0-.714-.199 4.5 4.5 0 0 0-.828-.072m-18.523.077H5.818v7.054h1.637v-2.358h.852q.731 0 1.266-.176.535-.177.883-.492.349-.314.518-.755t.17-.968q0-.49-.165-.91t-.51-.732a2.5 2.5 0 0 0-.882-.486 3.8 3.8 0 0 0-1.038-.172zm6.7 0h-1.675l-2.73 7.054h1.278q.203 0 .344-.109a.6.6 0 0 0 .158-.178l.03-.066.417-1.23h2.682l.416 1.23a.51.51 0 0 0 .44.347l.103.006h1.268zm3.099 0h-1.443l2.557 4.372v2.682h1.636v-2.682l2.556-4.372H21.96a.53.53 0 0 0-.337.114.7.7 0 0 0-.116.114l-.045.063-.035.063-.987 2.052q-.116.243-.218.45a4 4 0 0 0-.175.417 5 5 0 0 0-.179-.412l-.144-.294-.078-.16-.998-2.053a.74.74 0 0 0-.203-.255.5.5 0 0 0-.238-.093zm-3.936 1.453q.082.29.167.54l.103.303.045.13.648 1.931h-1.927l.65-1.922q.073-.184.154-.435.082-.252.16-.547m-5.863-.228q.31 0 .535.077a1 1 0 0 1 .373.22.9.9 0 0 1 .22.342q.072.199.072.44 0 .548-.28.853-.281.305-.92.305h-.852v-2.237z"}))))}},48427(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m11.365 19.496 1.27 1.27c.23.23.234.601.01.837l-.195.202a96 96 0 0 1-4.297 4.178 90 90 0 0 1-5.911 4.981.77.77 0 0 1-1.018-.066.766.766 0 0 1-.062-1.013 98 98 0 0 1 4.978-5.914 95 95 0 0 1 3.44-3.563l.947-.92a.6.6 0 0 1 .838.008m-4.3-8.192 13.737 13.74a1.5 1.5 0 0 1-2.137.064l-11.694-11.7-.052-.057a1.5 1.5 0 0 1 .103-2.007zm13.003-5.598 6.172 6.172c.22.22.235.572.034.81l-4.277 5.064-7.802-7.802 5.064-4.278c.237-.2.59-.186.81.034m2.31-4.464 8.38 8.38a.825.825 0 0 1 0 1.166l-.716.716c-.717.718-1.823.66-2.54-.058l-6.948-6.948c-.718-.717-.776-1.823-.058-2.54l.716-.716a.825.825 0 0 1 1.166 0"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},94536(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M8.153 25.983a90 90 0 0 1-5.911 4.981.77.77 0 0 1-1.018-.066.766.766 0 0 1-.062-1.013 98 98 0 0 1 4.978-5.914 95 95 0 0 1 3.44-3.563l.947-.92a.6.6 0 0 1 .838.008l1.27 1.27c.23.23.234.601.01.837l-.195.202a96 96 0 0 1-4.297 4.178m3.49-14.475 8.955 8.956a3.355 3.355 0 0 1 .614 3.902l-.175.341a1.5 1.5 0 0 1-2.372.4l-11.694-11.7-.052-.056a1.5 1.5 0 0 1 .48-2.282l.34-.174a3.355 3.355 0 0 1 3.903.613m14.631 1.18-4.962 5.876a.6.6 0 0 1-.844.07l-.037-.033-7.085-7.086a.6.6 0 0 1 0-.847l5.913-4.996c.237-.2.59-.186.81.034l6.171 6.172c.22.22.235.572.034.81m4.484-3.066a.825.825 0 0 1 0 1.166l-.716.716c-.717.718-1.823.66-2.54-.058l-6.948-6.948c-.718-.717-.776-1.823-.058-2.54l.716-.716a.825.825 0 0 1 1.166 0z"})))}},91303(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M21.004 9c.512 0 .932.386.99.883L22 10l-.007.117a1 1 0 0 1-.876.876L21 11h-1v4.15a.5.5 0 0 0 .11.312l4.582 5.726 4.636 5.076c.334.366.611 1.035.663 1.572l.009.173-.005.176a2.995 2.995 0 0 1-2.812 2.81l-.176.005H5.993a2.99 2.99 0 0 1-2.988-2.815L3 28.01l.009-.175a3.1 3.1 0 0 1 .554-1.438l.11-.132 4.637-5.077 4.58-5.725a.5.5 0 0 0 .11-.312V11h-1a.997.997 0 0 1-.993-.883L11 10l.007-.117a.995.995 0 0 1 .872-.876L11.996 9zM18 11h-3v4.676a1 1 0 0 1-.22.625l-4.908 6.135-.085.1-4.638 5.077-.016.024-.046.093-.067.16-.014.044-.005.096.006.095a.99.99 0 0 0 .87.868l.116.007h21.014c.485 0 .894-.352.975-.768l.014-.105.004-.118c0-.05-.08-.266-.126-.358l-.023-.038-4.636-5.076-.085-.1-4.91-6.136a1 1 0 0 1-.22-.625z"}),o.createElement("path",{fillOpacity:.4,d:"M11.021 22.756q1.906-1.691 4.758.101L16 23q2.893 1.929 5.768-.089l.213-.155 4.088 4.403a.5.5 0 0 1-.277.832l-.09.008H7.297a.5.5 0 0 1-.422-.769l.056-.071zM9 4c1.104 0 2 .897 2 2s-.896 2-2 2c-1.102 0-2-.897-2-2s.898-2 2-2m7.45-3a2.753 2.753 0 0 1 2.75 2.75 2.753 2.753 0 0 1-2.75 2.75 2.753 2.753 0 0 1-2.75-2.75A2.753 2.753 0 0 1 16.45 1m8.05 0c.828 0 1.5.673 1.5 1.5S25.329 4 24.5 4c-.826 0-1.5-.673-1.5-1.5S23.675 1 24.5 1"}))))}},26667(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m21.202 18.995.01.46.015.451.015.598c.013.941-.029 2.051-.323 2.933-.317.952-1.207 2.15-1.811 2.792l-.125.13-4.456 4.456a.63.63 0 0 1-1.075-.418l.003-.1.6-5.235c.332-.102.638-.284.888-.537l.978-.978.091-.1.059-.07.082-.108.095-.151c.145-.257.229-.538.25-.82.503-.08.987-.314 1.374-.702l3.094-3.092a.63.63 0 0 1 .236.49m-8.03-8.392c.285 0 .456.099.559.218l-3.321 3.33-.145.16-.119.162c-.222.33-.362.689-.42 1.05a2 2 0 0 0-1.266.582l-.975.977-.08.087-.067.078-.075.096-.1.152q-.072.12-.127.247l-5.312.8a.632.632 0 0 1-.605-.992l.066-.077 4.456-4.457c.61-.609 1.88-1.637 2.883-1.973.677-.225 1.807-.335 2.795-.39l.57-.025.508-.015.581-.009z"}),o.createElement("path",{fillOpacity:.4,d:"m8.195 20.799 3.02 3.02c.428.993.094 2.217-.956 3.27-.388.386-1.136.78-2.015 1.146l-.541.216q-.278.106-.562.209l-.57.198-.286.095-.565.181-.546.168-.76.222-1.02.279-.562.143a.62.62 0 0 1-.596-.165.63.63 0 0 1-.168-.596l.143-.563.211-.79.207-.732.244-.811.18-.566.094-.287.197-.572c.472-1.33 1.023-2.582 1.566-3.125 1.03-1.03 2.287-1.363 3.285-.94"}),o.createElement("path",{d:"M9.94 17.021a.5.5 0 0 0-.346.082l-.073.061-.974.977-.067.078a.63.63 0 0 0 .001.734l.067.078 4.438 4.44.075.064q.122.088.271.111l.1.008.1-.008a.6.6 0 0 0 .27-.111l.075-.065.983-.983.059-.07a.5.5 0 0 0-.001-.569l-.058-.069-4.632-4.616a.5.5 0 0 0-.227-.13zM16.164 20.826l.117-.013a1 1 0 0 0 .436-.195l.095-.083L28.586 8.762l.13-.14c.55-.646 1.01-1.803 1.372-2.99l.088-.298.153-.549.07-.27.131-.528.06-.253.107-.48.091-.436.107-.547.096-.537a.63.63 0 0 0-.527-.727L30.365 1l-.1.009-.536.096-.547.107-.671.143-.499.114-.527.13-.544.146c-1.375.381-2.814.901-3.563 1.54l-.14.13-11.766 11.794-.084.095a1 1 0 0 0 .002 1.225l.084.095 3.924 3.912c.21.21.491.307.766.29"}))))}},76047(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.375 1c.345 0 .625.28.625.625l.001 17.91A4 4 0 0 0 29 19h-2v-2c0-1.507-.834-2.82-2.066-3.502l1.691.002a.625.625 0 0 0 0-1.25h-12.5a.625.625 0 0 0 0 1.25l6.94-.002A4 4 0 0 0 19.127 16H14c-.276 0-.5.28-.5.625s.224.625.5.625h5V19h-2a4 4 0 1 0 0 8h2v2c0 .729.195 1.413.536 2.001L1.625 31A.625.625 0 0 1 1 30.375V1.625C1 1.28 1.28 1 1.625 1Zm.626 25.464L31 30.375c0 .345-.28.625-.625.625l-3.91.001c.34-.588.535-1.272.535-2.001v-2h2c.729 0 1.413-.195 2.001-.536M10.375 21h-5a.625.625 0 0 0-.625.625v5c0 .345.28.625.625.625h5c.345 0 .625-.28.625-.625v-5a.625.625 0 0 0-.625-.625m0-8.125h-5a.625.625 0 0 0-.625.625v5c0 .345.28.625.625.625h5c.345 0 .625-.28.625-.625v-5a.625.625 0 0 0-.625-.625m0-8.125h-5a.625.625 0 0 0-.625.625v5c0 .345.28.625.625.625h5c.345 0 .625-.28.625-.625v-5a.625.625 0 0 0-.625-.625m16.25 3.75h-8.75a.625.625 0 0 0 0 1.25h8.75a.625.625 0 0 0 0-1.25"}),o.createElement("path",{d:"M25 29v-4h4a2 2 0 1 0 0-4h-4v-4a2 2 0 1 0-4 0v4h-4a2 2 0 1 0 0 4h4v4a2 2 0 1 0 4 0"}))))}},47261(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M26.625 9.75h-8.75a.625.625 0 0 1 0-1.25h8.75a.625.625 0 0 1 0 1.25m0 3.75h-12.5a.625.625 0 0 1 0-1.25h12.5a.625.625 0 0 1 0 1.25m0 3.75h-12.5a.625.625 0 0 1 0-1.25h12.5a.625.625 0 0 1 0 1.25m0 3.75h-12.5a.625.625 0 0 1 0-1.25h12.5a.625.625 0 0 1 0 1.25m-3.75 3.75h-8.75a.625.625 0 0 1 0-1.25h8.75a.625.625 0 0 1 0 1.25M11 10.375c0 .345-.28.625-.625.625h-5a.625.625 0 0 1-.625-.625v-5c0-.345.28-.625.625-.625h5c.345 0 .625.28.625.625zm0 8.125c0 .345-.28.625-.625.625h-5a.625.625 0 0 1-.625-.625v-5c0-.345.28-.625.625-.625h5c.345 0 .625.28.625.625zm0 8.125c0 .345-.28.625-.625.625h-5a.625.625 0 0 1-.625-.625v-5c0-.345.28-.625.625-.625h5c.345 0 .625.28.625.625zM30.375 1H1.625A.625.625 0 0 0 1 1.625v28.75c0 .345.28.625.625.625h28.75c.345 0 .625-.28.625-.625V1.625A.625.625 0 0 0 30.375 1"})))}},69276(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m18.865 23.105 6.606 6.606A3.94 3.94 0 0 1 22.553 31H4.947a3.947 3.947 0 1 1 0-7.895zM8.063 12.302l7.644 7.645h-6.26a3.95 3.95 0 0 1-3.942-3.744L5.5 16a3.95 3.95 0 0 1 2.563-3.698m18.99-.25a3.947 3.947 0 1 1 0 7.895h-2.86l-7.896-7.895ZM22.553 1a3.947 3.947 0 1 1 0 7.895l-9.414-.001L5.244 1ZM1.012 5.253l3.63 3.63a3.95 3.95 0 0 1-3.63-3.63"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},77744(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m5.93 25.239.207.254a24.555 24.555 0 0 0 3.64 3.454A20 20 0 0 0 13.019 31L4.947 31a3.947 3.947 0 1 1 0-7.895h.765a2 2 0 0 0 .217 2.134m21.123-13.186a3.947 3.947 0 0 1 1.768 7.477q-.292-.242-.597-.477C25.343 16.84 22.242 15.5 19 15.5s-6.342 1.339-9.223 3.553q-.529.406-1.022.832a3.947 3.947 0 0 1 .693-7.832ZM22.553 1a3.947 3.947 0 1 1 0 7.895H4.947a3.947 3.947 0 0 1 0-7.895Z"}),o.createElement("path",{d:"M19 17c5.49 0 10.014 4.55 11.434 6.15l.161.184c.17.196.27.322.297.355a.5.5 0 0 1 0 .622c-.027.033-.128.16-.297.355l-.16.184C29.013 26.45 24.49 31 19 31c-5.489 0-10.013-4.55-11.434-6.15l-.161-.184a12 12 0 0 1-.297-.355.5.5 0 0 1 0-.622c.027-.033.128-.16.297-.355l.16-.184C8.988 21.55 13.512 17 19 17m0 2c-2.758 0-5 2.242-5 5s2.242 5 5 5 5-2.242 5-5-2.242-5-5-5m0 1.5c1.93 0 3.5 1.57 3.5 3.5s-1.57 3.5-3.5 3.5-3.5-1.57-3.5-3.5 1.57-3.5 3.5-3.5"}))))}},80922(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M22.553 1H4.947a3.947 3.947 0 0 0 0 7.895h17.606a3.947 3.947 0 1 0 0-7.895m4.5 11.053H9.447a3.947 3.947 0 1 0 0 7.894h17.606a3.947 3.947 0 1 0 0-7.894m-4.5 11.052H4.947a3.947 3.947 0 1 0 0 7.895h17.606a3.947 3.947 0 1 0 0-7.895"})))}},7973(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28 1a3 3 0 0 1 3 3v24c0 1.654-1.346 3-3 3H4c-1.654 0-3-1.346-3-3V4a3 3 0 0 1 3-3Zm-1 3H5a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h21.943a1 1 0 0 0 1-.998l.055-22A1 1 0 0 0 27 4"}),o.createElement("path",{d:"M13.5 7a1.5 1.5 0 0 1 .144 2.993L13.5 10h-6a1.5 1.5 0 0 1-.144-2.993L7.5 7zM21.5 7a1.5 1.5 0 0 1 .144 2.993L21.5 10h-3a1.5 1.5 0 0 1-.144-2.993L18.5 7zM10.5 12a1.5 1.5 0 0 1 .144 2.993L10.5 15h-3a1.5 1.5 0 0 1-.144-2.993L7.5 12zM24.5 12a1.5 1.5 0 0 1 .144 2.993L24.5 15h-6a1.5 1.5 0 0 1-.144-2.993L18.5 12zM15 18.5a1.5 1.5 0 0 0-1.5-1.5h-6a1.5 1.5 0 0 0 0 3h6a1.5 1.5 0 0 0 1.5-1.5M23 18.5a1.5 1.5 0 0 0-1.5-1.5h-3a1.5 1.5 0 0 0 0 3h3a1.5 1.5 0 0 0 1.5-1.5M11.5 22a1.5 1.5 0 0 1 .144 2.993L11.5 25h-4a1.5 1.5 0 0 1-.144-2.993L7.5 22zM24.5 22a1.5 1.5 0 0 1 .144 2.993L24.5 25h-6a1.5 1.5 0 0 1-.144-2.993L18.5 22z"}))))}},52760(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M29 3a2 2 0 0 1 2 2v5H1V5a2 2 0 0 1 2-2h2v1.5a2.5 2.5 0 0 0 5 0V3h12v1.5a2.5 2.5 0 1 0 5 0V3zm2 8v18a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V11zm-3 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V14a1 1 0 0 0-1-1"}),o.createElement("path",{fillOpacity:.4,d:"M7.5 1A1.5 1.5 0 0 1 9 2.5v2a1.5 1.5 0 0 1-3 0v-2A1.5 1.5 0 0 1 7.5 1m17 0A1.5 1.5 0 0 1 26 2.5v2a1.5 1.5 0 0 1-3 0v-2A1.5 1.5 0 0 1 24.5 1M10.804 21.538a.5.5 0 0 1 .5.5V27.5a.5.5 0 0 1-.5.5H4.5a.5.5 0 0 1-.5-.5v-5.462a.5.5 0 0 1 .5-.5zm8.348 0a.5.5 0 0 1 .5.5V27.5a.5.5 0 0 1-.5.5h-6.304a.5.5 0 0 1-.5-.5v-5.462a.5.5 0 0 1 .5-.5zm8.348 0a.5.5 0 0 1 .5.5V27.5a.5.5 0 0 1-.5.5h-6.304a.5.5 0 0 1-.5-.5v-5.462a.5.5 0 0 1 .5-.5zM10.804 14a.5.5 0 0 1 .5.5v5.462a.5.5 0 0 1-.5.5H4.5a.5.5 0 0 1-.5-.5V14.5a.5.5 0 0 1 .5-.5zm8.348 0a.5.5 0 0 1 .5.5v5.462a.5.5 0 0 1-.5.5h-6.304a.5.5 0 0 1-.5-.5V14.5a.5.5 0 0 1 .5-.5zm8.348 0a.5.5 0 0 1 .5.5v5.462a.5.5 0 0 1-.5.5h-6.304a.5.5 0 0 1-.5-.5V14.5a.5.5 0 0 1 .5-.5z"}))))}},77567(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m10.33 14.569 15.187 15.188-.212.748a.68.68 0 0 1-.556.488l-.1.007H12.376a.68.68 0 0 1-.545-.273C9.785 28 4.62 19.207 4.4 18.835c-.622-.877-.515-2.127.286-2.928.829-.829 2.257-.883 3.146-.121l2.498 2.14zm7.5-5.387c.714 0 1.34.37 1.705.926v3.165a.341.341 0 0 0 .682 0v-2.728h1.705c.713 0 1.339.371 1.704.926v5.21a.341.341 0 0 0 .682 0V11.91h1.023a2.73 2.73 0 0 1 2.727 2.727v4.228c0 1.33-.185 2.652-.55 3.932l-.104.362-11.278-11.277v-2.7ZM13.059 1c1.034 0 1.924.585 2.386 1.435v8.764L10.33 6.086V3.727a2.73 2.73 0 0 1 2.562-2.722Z"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},93916(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M10.33 3.727v14.2l-2.497-2.141c-.89-.762-2.317-.708-3.146.121-.8.8-.908 2.051-.287 2.928.22.372 5.385 9.165 7.43 11.892a.68.68 0 0 0 .546.273H24.65a.68.68 0 0 0 .656-.495l2.202-7.709c.366-1.28.551-2.603.551-3.932v-4.228a2.73 2.73 0 0 0-2.727-2.727h-1.023v4.773a.341.341 0 0 1-.682 0v-5.21a2.04 2.04 0 0 0-1.704-.927h-1.705v2.728a.341.341 0 0 1-.682 0v-3.165a2.04 2.04 0 0 0-1.704-.926h-1.705v4.09a.341.341 0 0 1-.682 0V2.436A2.72 2.72 0 0 0 13.058 1a2.73 2.73 0 0 0-2.727 2.727"})))}},19668(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M25 14.006V6.54a1 1 0 0 0-.993-.994H7.993A.994.994 0 0 0 7 6.54v7.467a1 1 0 0 0 .993.994h16.014a.994.994 0 0 0 .993-.994M21.495 24h2.01c.28 0 .495-.223.495-.498v-4.004a.49.49 0 0 0-.495-.498h-2.01a.493.493 0 0 0-.495.498v4.004c0 .283.222.498.495.498m-13 .09h2.01c.28 0 .495-.226.495-.506v-4.077a.496.496 0 0 0-.495-.507h-2.01a.497.497 0 0 0-.495.507v4.077c0 .288.222.507.495.507M26.91 6.144h3.1c.553 0 .991.443.991.99v4.35a.5.5 0 0 1-.5.498h-1.727a.49.49 0 0 1-.5-.494V7.524h-1.364V26.58c0 1.074-1.121 2.21-2.182 2.21v1.657a.55.55 0 0 1-.545.552h-4.273a.55.55 0 0 1-.545-.552V28.79h-6.728v1.658a.55.55 0 0 1-.545.552H7.818a.55.55 0 0 1-.545-.552V28.79c-1.06 0-2.182-1.135-2.182-2.209V7.524H3.727v3.963a.493.493 0 0 1-.5.494H1.5a.493.493 0 0 1-.5-.498v-4.35c0-.551.443-.99.99-.99h3.1v-3.14C5.09 1.896 5.985 1 7.086 1h17.83a2 2 0 0 1 1.994 2.003z"})))}},92356(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:184,height:23,viewBox:"0 0 128 16"},e),r||(r=i.createElement("path",{fill:"gray",d:"M6.4 4.8A3.2 3.2 0 1 1 3.2 8a3.2 3.2 0 0 1 3.2-3.2m12.8 0A3.2 3.2 0 1 1 16 8a3.2 3.2 0 0 1 3.2-3.2m12.8 0A3.2 3.2 0 1 1 28.8 8 3.2 3.2 0 0 1 32 4.8m12.8 0A3.2 3.2 0 1 1 41.6 8a3.2 3.2 0 0 1 3.2-3.2m12.8 0A3.2 3.2 0 1 1 54.4 8a3.2 3.2 0 0 1 3.2-3.2m12.8 0A3.2 3.2 0 1 1 67.2 8a3.2 3.2 0 0 1 3.2-3.2m12.8 0A3.2 3.2 0 1 1 80 8a3.2 3.2 0 0 1 3.2-3.2m12.8 0A3.2 3.2 0 1 1 92.8 8 3.2 3.2 0 0 1 96 4.8m12.8 0a3.2 3.2 0 1 1-3.2 3.2 3.2 3.2 0 0 1 3.2-3.2m12.8 0a3.2 3.2 0 1 1-3.2 3.2 3.2 3.2 0 0 1 3.2-3.2"})),o||(o=i.createElement("g",null,i.createElement("path",{fill:"gray",d:"M-42.7 3.84A4.16 4.16 0 0 1-38.54 8a4.16 4.16 0 0 1-4.16 4.16A4.16 4.16 0 0 1-46.86 8a4.16 4.16 0 0 1 4.16-4.16m12.8-.64A4.8 4.8 0 0 1-25.1 8a4.8 4.8 0 0 1-4.8 4.8A4.8 4.8 0 0 1-34.7 8a4.8 4.8 0 0 1 4.8-4.8m12.8-.64A5.44 5.44 0 0 1-11.66 8a5.44 5.44 0 0 1-5.44 5.44A5.44 5.44 0 0 1-22.54 8a5.44 5.44 0 0 1 5.44-5.44"}),i.createElement("animateTransform",{attributeName:"transform",calcMode:"discrete",dur:"1170ms",repeatCount:"indefinite",type:"translate",values:"23 0;36 0;49 0;62 0;74.5 0;87.5 0;100 0;113 0;125.5 0;138.5 0;151.5 0;164.5 0;178 0"}))))}},66039(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M16.007 1C7.743 1 1.014 7.73 1.014 16S7.74 30.996 16.007 31C7.716 31 1 24.284 1 16S7.716 1 16 1zm2.358.186.098.015a14.97 14.97 0 0 1 8.387 4.441l.134.144.02.109a1 1 0 0 1 .01.105c0 1.12-.913 3.696-3.434 4.957-2.522-.63-5.044 1.261-4.413 1.261s1.26 2.522 1.26 2.522c.631.63 1.892 0 1.892 0 .366.365.426.798.303 1.256l-6.603-2.384a1.868 1.868 0 0 0-2.41 2.345l3.249 9.747c-.86.383-1.792.383-2.104.383-.63 0-1.892-2.52-1.892-3.152 0-.63.631-1.26.631-1.89s-1.26-1.892-1.26-1.892c0-2.522-1.893-1.89-3.784-1.89-1.76 0-1.882-2.187-1.89-2.489v-.062c.006-.374.146-4.414 3.151-5.016 3.152-.63 3.152.631 3.152.631 1.261 1.26 3.783 0 5.044 0 0 0 .63-4.413-.63-3.783-1.262.631-2.392.143-2.522-1.26C14.57 3.312 20.014 2 21.014 2q.217.002.442.027a15 15 0 0 0-3.09-.841m0 0-.436-.063q.117.014.233.032zl-.436-.062zm-.47-.067-.218-.026zl-.436-.05zm-.499-.055-.311-.025.29.022-.134-.01zm-.537-.04-.157-.008zl-.315-.014zm-.408-.018L16.025 1l.341.004-.128-.002z"}),o.createElement("path",{fillOpacity:.4,d:"M16.014 1c1.92 0 3.754.367 5.442 1.027A4 4 0 0 0 21.014 2c-1 0-6.444 1.312-6.26 3.284.13 1.403 1.26 1.891 2.521 1.26 1.261-.63.631 3.783.631 3.783-1.26 0-3.783 1.26-5.044 0v-.01c-.009-.12-.17-1.217-3.152-.62-3.005.6-3.145 4.64-3.151 5.015v.062c.008.302.13 2.488 1.89 2.488 1.891 0 3.783-.63 3.783 1.891 0 0 1.261 1.261 1.261 1.891s-.63 1.261-.63 1.891 1.26 3.152 1.891 3.152c.312 0 1.244 0 2.104-.383l1.187 3.562a1.87 1.87 0 0 0 1.664 1.275c-1.183.3-2.42.46-3.695.46-8.27 0-15-6.73-15-15 0-8.272 6.73-15 15-15m7.433 26.925.684.684a15 15 0 0 1-3.188 1.56q.064-.05.125-.103zm4.56-4.424 1.938-1.938a15 15 0 0 1-1.322 2.554zl1.938-1.938zM26.985 5.786A14.94 14.94 0 0 1 31.015 16c0 1.318-.172 2.597-.492 3.816l-.009-.046a1.88 1.88 0 0 0-1.192-1.354l-6.7-2.42c.123-.458.062-.89-.303-1.256 0 0-1.26.63-1.892 0 0 0-.629-2.522-1.26-2.522-.63 0 1.891-1.89 4.413-1.26C26.101 9.695 27.014 7.118 27.014 6c0-.068-.015-.14-.029-.214"}),o.createElement("path",{d:"m15.51 15.022 13.304 4.805a.37.37 0 0 1 .136.609L25.885 23.5l6.021 6.021a.37.37 0 0 1 0 .523l-1.847 1.847a.37.37 0 0 1-.523 0l-6.035-6.034-3.435 3.091a.37.37 0 0 1-.598-.157l-4.435-13.305a.37.37 0 0 1 .476-.465"}))))}},19670(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M27 1a4 4 0 0 1 4 4v22a4 4 0 0 1-4 4H5a4 4 0 0 1-4-4V5a4 4 0 0 1 4-4zm-10.17 9h-1.527a1 1 0 0 0-.587.18.77.77 0 0 0-.321.444l-1.44 5.388q-.165.624-.337 1.196-.171.572-.326 1.139-.09-.567-.2-1.145a50 50 0 0 0-.243-1.19l-1.152-5.376a.7.7 0 0 0-.32-.451 1.13 1.13 0 0 0-.632-.173H7L10.565 22h2.656q.565 0 .731-.601l1.66-5.954q.123-.405.216-.803.094-.399.172-.804.077.393.177.786t.21.798l1.639 5.977q.088.324.243.462a.54.54 0 0 0 .377.139h2.79L25 10.012h-2.613q-.33 0-.592.173a.7.7 0 0 0-.315.45l-1.218 5.377q-.144.635-.271 1.208a18 18 0 0 0-.216 1.15 38 38 0 0 0-.305-1.168 53 53 0 0 1-.315-1.19l-1.373-5.388a.76.76 0 0 0-.326-.445A1.08 1.08 0 0 0 16.83 10"})))}},38778(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M1.01 15 1 5.248l12-1.63V15zM15 3.328 30.996 1v14H15zM31 17l-.004 14L15 28.75V17zM13 28.495 1.01 26.85V17H13z"})))}},56674(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m30.007 25 .115.007a1 1 0 0 1 .871.87l.007.114v4.018l-.007.116a.99.99 0 0 1-.87.868l-.116.007H13.993l-.133-.009a1 1 0 0 1-.776-.588 2.626 2.626 0 0 0 .124-5.018 1 1 0 0 1 .667-.378l.118-.007zM7.575 15a2.626 2.626 0 0 0 5.1 0h5.332l.115.007a1 1 0 0 1 .871.87l.007.114v4.018l-.007.116a.99.99 0 0 1-.87.868l-.116.007H8.425a2.63 2.63 0 0 0-2.203-1.977l-.181-.018L5.875 19c-1.176 0-2.17.773-2.505 1.838L3.325 21H1.993l-.115-.007a1 1 0 0 1-.871-.87L1 20.01v-4.018l.007-.116a.99.99 0 0 1 .87-.868L1.994 15zM30.007 1l.115.007a1 1 0 0 1 .871.87L31 1.99v4.018l-.007.116a.99.99 0 0 1-.87.868L30.006 7h-9.832a2.626 2.626 0 0 0-5.1 0h-1.082l-.115-.007a1 1 0 0 1-.871-.87L13 6.01V1.991l.007-.116a.99.99 0 0 1 .87-.868L13.994 1z"}),o.createElement("path",{d:"M5.875 20.5c.58 0 1.057.439 1.118 1.002l.007.123V26l.007.102c.045.332.31.596.641.641l.102.007h4.625l.123.007a1.125 1.125 0 0 1 0 2.236l-.123.007H7.75l-.176-.005a3.003 3.003 0 0 1-2.819-2.819L4.75 26v-4.375l.007-.123A1.125 1.125 0 0 1 5.875 20.5M17.625 6.5c.58 0 1.057.439 1.118 1.002l.007.123V9.75l-.005.176a3.003 3.003 0 0 1-2.819 2.819l-.176.005H12l-.102.007a.75.75 0 0 0-.641.641l-.007.102v.875l-.007.123a1.125 1.125 0 0 1-2.236 0L9 14.375V13.5l.005-.176a3.003 3.003 0 0 1 2.819-2.819L12 10.5h3.75l.102-.007a.75.75 0 0 0 .641-.641l.007-.102V7.625l.007-.123A1.125 1.125 0 0 1 17.625 6.5"}))))}},42700(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m15.52 25 .235.396.827 1.376.408.671.6.976.54.866.332.523.309.478.285.433.189.281h-5.252l-.133-.009a1 1 0 0 1-.776-.588 2.626 2.626 0 0 0 .124-5.018 1 1 0 0 1 .667-.378l.118-.007zm-9.645-4.5c.58 0 1.057.439 1.118 1.002l.007.123V26l.007.102c.045.332.31.596.641.641l.102.007h4.625l.123.007a1.125 1.125 0 0 1 0 2.236l-.123.007H7.75l-.176-.005a3.003 3.003 0 0 1-2.819-2.819L4.75 26v-4.375l.007-.123A1.125 1.125 0 0 1 5.875 20.5m1.7-5.5a2.626 2.626 0 0 0 5.1 0h5.332l.115.007q.212.026.388.131l-.001 4.567-.072-.026c-1.043-.349-2.253-.108-3.063.702l-.133.142A3 3 0 0 0 14.9 21H8.425a2.63 2.63 0 0 0-2.203-1.978l-.181-.018L5.875 19c-1.176 0-2.17.773-2.505 1.838L3.325 21H1.993l-.115-.007a1 1 0 0 1-.871-.87L1 20.01v-4.018l.007-.116a.99.99 0 0 1 .87-.868L1.994 15zm10.05-8.5c.58 0 1.057.439 1.118 1.002l.007.123V9.75l-.005.176a3.003 3.003 0 0 1-2.819 2.819l-.176.005H12l-.102.007a.75.75 0 0 0-.641.641l-.007.102v.875l-.007.123a1.125 1.125 0 0 1-2.236 0L9 14.375V13.5l.005-.176a3.003 3.003 0 0 1 2.819-2.819L12 10.5h3.75l.102-.007a.75.75 0 0 0 .641-.641l.007-.102V7.625l.007-.123A1.125 1.125 0 0 1 17.625 6.5M30.007 1l.115.007a1 1 0 0 1 .871.87L31 1.99v4.018l-.007.116a.99.99 0 0 1-.87.868L30.006 7h-9.832a2.626 2.626 0 0 0-5.1 0h-1.082l-.115-.007a1 1 0 0 1-.871-.87L13 6.01V1.991l.007-.116a.99.99 0 0 1 .87-.868L13.994 1z"}),o.createElement("path",{d:"M21.737 12c.6 0 1.124.311 1.432.778l.08.13v6.865a.216.216 0 0 0 .423.057l.008-.057v-2.591h1.08c.401 0 .759.185.996.474l.083.112v2.005a.216.216 0 0 0 .424.057l.008-.057v-1.728h1.08c.4 0 .759.186.996.474l.083.113v3.3a.216.216 0 0 0 .424.057l.008-.057v-3.023h.648a1.73 1.73 0 0 1 1.72 1.579l.007.148v2.678c0 .721-.086 1.44-.257 2.141l-.092.35-1.395 4.881a.43.43 0 0 1-.334.306l-.081.008h-7.773a.43.43 0 0 1-.345-.173l-.194-.265-.215-.31-.36-.534-.528-.817-.707-1.125-1.124-1.836-1.578-2.645c-.394-.555-.326-1.347.18-1.854.491-.49 1.311-.553 1.876-.166l.117.09 1.583 1.355v-8.993c0-.952.774-1.727 1.727-1.727"}))))}},2327(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M21.993 23a1 1 0 0 1 1 .876l.007.115v6.019c0 .5-.389.926-.89.984l-.117.006H10.007a1 1 0 0 1-1-.875L9 30.01V23.99c0-.501.389-.926.89-.984l.117-.007h3.207v.875l.01.206.024.174c.226 1.324 1.33 2.245 2.623 2.245l.125-.004.133.004c1.35 0 2.492-1.003 2.64-2.336l.014-.206V23zm-8-22a1 1 0 0 1 1 .875l.007.116v6.018c0 .501-.389.926-.89.984L13.994 9h-3.179v-.875l-.009-.206C10.65 6.503 9.507 5.5 8.157 5.5 6.7 5.5 5.5 6.666 5.5 8.125V9H2.007a1 1 0 0 1-1-.875L1 8.009V1.991c0-.501.389-.926.89-.984L2.006 1zm16 0 .118.007c.5.058.889.483.889.984v6.018l-.007.116a1 1 0 0 1-1 .875H26.5v-.875l-.01-.206C26.336 6.503 25.194 5.5 23.844 5.5s-2.493 1.003-2.641 2.336l-.014.206-.001.958h-3.18l-.118-.007C17.39 8.935 17 8.51 17 8.01V1.991l.007-.116a1 1 0 0 1 1-.875z"}),o.createElement("path",{d:"M23.843 7c.596 0 1.087.439 1.15 1.002l.007.123v6.125l-.005.176c-.09 1.515-1.341 2.73-2.9 2.819l-.18.005h-3.858l-.104.007a.76.76 0 0 0-.66.641l-.007.102v5.875l-.007.123a1.146 1.146 0 0 1-1.277.995 1.146 1.146 0 0 1-1.281-.996l-.007-.122V18a.76.76 0 0 0-.667-.743l-.104-.007h-3.857c-1.642 0-2.987-1.25-3.08-2.824L7 14.25V8.125C7 7.504 7.518 7 8.157 7c.597 0 1.088.439 1.15 1.002l.007.123v6.125c0 .379.291.693.667.743l.105.007h11.828l.105-.007a.76.76 0 0 0 .66-.641l.007-.102V8.125l.007-.123A1.146 1.146 0 0 1 23.843 7"}))))}},19319(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M18.23 27h-4.242a.49.49 0 0 0-.488.488v.319c0 1.44 1.17 2.612 2.608 2.612a2.614 2.614 0 0 0 2.609-2.612v-.319a.49.49 0 0 0-.488-.488m7.263-1.99c-1.111-.48-1.897-.872-1.897-1.576v-4.468c0-2.783-1.604-5.097-4.309-6.25C19.114 11.194 18 9.5 16.001 9.5s-3.115 1.693-3.287 3.217c-2.705 1.15-4.309 3.465-4.309 6.249v4.468c0 .704-.786 1.097-1.897 1.576l-.215.093a.46.46 0 0 0-.28.529c.053.215.26.368.5.368h18.973c.24 0 .45-.153.502-.368a.46.46 0 0 0-.28-.53z"}),o.createElement("path",{d:"M19.845 4.694c4.215 0 7.644 3.411 7.644 7.605 0 .663-.54 1.201-1.207 1.201a1.203 1.203 0 0 1-1.206-1.2c0-2.87-2.348-5.205-5.231-5.205a1.204 1.204 0 0 1-1.207-1.2c0-.663.54-1.2 1.207-1.2m0-3.694C25.996 1 31 5.978 31 12.098c0 .663-.54 1.2-1.207 1.2a1.204 1.204 0 0 1-1.207-1.2c0-4.795-3.922-8.697-8.741-8.697a1.204 1.204 0 0 1-1.207-1.2c0-.663.54-1.201 1.207-1.201m-7.7 3.694C7.929 4.694 4.5 8.105 4.5 12.3c0 .663.54 1.201 1.207 1.201s1.207-.538 1.207-1.2c0-2.87 2.347-5.205 5.23-5.205.667 0 1.207-.537 1.207-1.2s-.54-1.2-1.206-1.2M12.155 1C6.004 1 1 5.978 1 12.098c0 .663.54 1.2 1.207 1.2.666 0 1.207-.537 1.207-1.2 0-4.795 3.922-8.697 8.741-8.697.667 0 1.207-.537 1.207-1.2S12.822 1 12.155 1"}))))}},17712(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M19.5 27a.5.5 0 0 1 .5.5c0 2.355-1.145 3.5-3.5 3.5S13 29.855 13 27.5a.5.5 0 0 1 .5-.5ZM5.92 10.158l15.578 15.58-19.997.001a.5.5 0 0 1-.48-.358l-.017-.081a.5.5 0 0 1 .375-.546C3.849 24.136 5 23.178 5 21.739v-7c0-1.627.322-3.179.918-4.58M16 1a4.25 4.25 0 0 1 4.172 3.338C24.33 6.01 27 10.061 27 14.739v7c0 1.439 1.15 2.397 3.62 3.015a.5.5 0 0 1-.12.985l-.517-.001L9.716 5.472q.856-.594 1.835-1.02l.275-.115A4.31 4.31 0 0 1 16 1"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},48782(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M30.622 24.754C28.15 24.136 27 23.178 27 21.739v-7c0-4.678-2.671-8.729-6.83-10.401A4.25 4.25 0 0 0 16.002 1a4.31 4.31 0 0 0-4.175 3.337C7.67 6.008 5 10.06 5 14.739v7c0 1.439-1.151 2.397-3.622 3.015a.5.5 0 0 0 .122.985h29a.5.5 0 0 0 .12-.985M19.5 27h-6a.5.5 0 0 0-.5.5c0 2.355 1.145 3.5 3.5 3.5s3.5-1.145 3.5-3.5a.5.5 0 0 0-.5-.5"})))}},29330(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("g",{fillOpacity:.4},o.createElement("path",{d:"M11.905 20.6v3.052c-.183.116-.48.26-.99.48l-.218.094a2 2 0 0 0-1.15 1.373L7 25.6a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1zm2.502-7a7.93 7.93 0 0 0-2.458 5H7a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1Zm10.602-7a1 1 0 0 1 .987 1.012l-.035 3a1 1 0 0 1-.582.897C24.653 9.768 23.069 8.5 21 8.5c-2.105 0-3.71 1.313-4.418 3.1H7a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1Z"}),o.createElement("path",{d:"m30.717 23.97-.12-.056a9 9 0 0 1-.35-.174l-.078-.043-.074-.045v-4.186q0-.158-.006-.314l.006.314a8.7 8.7 0 0 0-.144-1.56 8 8 0 0 0-.253-.99 7.85 7.85 0 0 0-1.548-2.735l-.16-.178.022-9a1 1 0 0 0-.998-1.002h-22a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1H17l.001.306a4.2 4.2 0 0 0 .235 1.372l.075.195a5 5 0 0 0 .176.372 4 4 0 0 0 .4.61l.12.145H4.016a3.004 3.004 0 0 1-2.995-2.825l-.006-.175V4a3 3 0 0 1 2.824-2.995L4.014 1h24a3 3 0 0 1 2.995 2.824l.005.176-.001 20.1-.11-.047zm-5.735 5.71a4.1 4.1 0 0 0 .235-1.373V28h1.74l.017-.002 3.512.001.16-.006.016-.001-.176.007a2 2 0 0 0 .501-.062l.028-.007V28a3.004 3.004 0 0 1-2.825 2.994l-.176.005-3.804.001.12-.145a4.1 4.1 0 0 0 .576-.98l.001-.002Z"})),o.createElement("path",{d:"M23.23 27.5h-4.242a.49.49 0 0 0-.488.488v.319c0 1.44 1.17 2.612 2.608 2.612a2.614 2.614 0 0 0 2.609-2.612v-.319a.49.49 0 0 0-.488-.488m7.262-1.99c-1.111-.48-1.897-.872-1.897-1.576v-4.468c0-2.783-1.604-5.097-4.309-6.25C24.114 11.694 23 10 21.001 10s-3.115 1.693-3.287 3.217c-2.705 1.15-4.309 3.465-4.309 6.249v4.468c0 .704-.786 1.097-1.897 1.576l-.215.093a.46.46 0 0 0-.28.529c.053.215.26.368.5.368h18.973c.24 0 .45-.153.502-.368a.46.46 0 0 0-.28-.53z"}))))}},14666(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 1c8.271 0 15 6.729 15 15 0 3.867-1.47 7.54-4.138 10.342q-.004.004-.006.009C23.984 29.262 19.925 31 16 31c-3.917 0-7.975-1.738-10.856-4.648l-.002-.003-.004-.004-.001-.001-.003-.003-.001-.001-.002-.002-.002-.002-.007-.008-.001-.002A14.93 14.93 0 0 1 1 16C1 7.729 7.729 1 16 1m1.844 6.429h-3.688L8.143 23.143h2.814q.448 0 .757-.243.31-.243.416-.544l.917-2.74h5.906l.917 2.74q.117.345.421.566t.773.22h2.793zM16 10.664q.18.647.368 1.203l.325.965 1.429 4.303h-4.244l1.429-4.281q.16-.41.341-.971T16 10.664"})))}},31656(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12.518 23.625a10.43 10.43 0 0 0 1.618 5H6c-1.641 0-2.5-1.258-2.5-2.5s.859-2.5 2.5-2.5ZM16 3a3.13 3.13 0 0 1 3.125 3.125 3.13 3.13 0 0 1-1.909 2.879l3.436 3.76c-4.468 1.024-7.856 4.905-8.134 9.611H6.625a.626.626 0 0 1-.606-.471L3.447 11.745A2.5 2.5 0 0 1 1 9.25c0-1.379 1.121-2.5 2.5-2.5S6 7.871 6 9.25a2.49 2.49 0 0 1-1.004 1.99L9.1 15.227l5.685-6.223a3.13 3.13 0 0 1-1.909-2.879A3.13 3.13 0 0 1 16 3m12.5 3.75c1.379 0 2.5 1.121 2.5 2.5a2.5 2.5 0 0 1-2.41 2.491l-.528 2.061a10.4 10.4 0 0 0-2.614-1.014l1.586-1.523A2.49 2.49 0 0 1 26 9.25c0-1.379 1.121-2.5 2.5-2.5"}),o.createElement("path",{d:"M23 14c4.963 0 9 4.037 9 9s-4.037 9-9 9-9-4.037-9-9 4.037-9 9-9m3.92 4.696a1.004 1.004 0 0 0-1.395.201l-4.635 6.106-1.115-1.113a.983.983 0 0 0-1.391 0 1 1 0 0 0 0 1.416l1.93 1.925a1 1 0 0 0 .717.288l.043-.002a1 1 0 0 0 .733-.406l5.314-7.035a.98.98 0 0 0-.2-1.38"}))))}},27778(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m19.384 23.624 5 5L6 28.625c-1.576 0-2.43-1.159-2.496-2.35l-.004-.15c0-1.242.859-2.5 2.5-2.5zM2.657 6.896l3.195 3.194a2.53 2.53 0 0 1-.856 1.15L9.1 15.227 10 14.24l8.135 8.136H6.625a.63.63 0 0 1-.576-.382l-.03-.09-2.572-10.158A2.5 2.5 0 0 1 1 9.25c0-1.083.692-2.007 1.657-2.354M16 3a3.13 3.13 0 0 1 3.125 3.125 3.13 3.13 0 0 1-1.909 2.879l5.688 6.226 4.13-3.965A2.49 2.49 0 0 1 26 9.25c0-1.379 1.121-2.5 2.5-2.5S31 7.871 31 9.25a2.5 2.5 0 0 1-2.41 2.491l-2.576 10.027L14.05 9.805l.734-.801a3.13 3.13 0 0 1-1.903-2.677l-.006-.202A3.13 3.13 0 0 1 16 3"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},96360(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M28.5 6.75a2.503 2.503 0 0 0-2.5 2.5c0 .83.41 1.56 1.034 2.015l-4.13 3.965-5.688-6.226a3.13 3.13 0 0 0 1.909-2.879A3.13 3.13 0 0 0 16 3a3.13 3.13 0 0 0-3.125 3.125c0 1.293.789 2.403 1.909 2.879l-5.685 6.224-4.103-3.988A2.49 2.49 0 0 0 6 9.25c0-1.379-1.121-2.5-2.5-2.5A2.503 2.503 0 0 0 1 9.25a2.5 2.5 0 0 0 2.448 2.495l2.57 10.159c.072.277.32.471.607.471h18.75a.625.625 0 0 0 .605-.47l2.61-10.164A2.5 2.5 0 0 0 31 9.25c0-1.379-1.121-2.5-2.5-2.5M26 23.625H6c-1.641 0-2.5 1.258-2.5 2.5s.859 2.5 2.5 2.5h20c1.633 0 2.486-1.258 2.486-2.5s-.854-2.5-2.486-2.5"})))}},87843(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},o.createElement("circle",{cx:15,cy:15,r:15,fill:"#FF4452"}),o.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M15.003 20.968h.006-.006m.065 3.259h-.037a2.14 2.14 0 0 1-2.13-2.093 2.12 2.12 0 0 1 .598-1.517 2.12 2.12 0 0 1 1.503-.65c1.18 0 2.138.932 2.159 2.093a2.133 2.133 0 0 1-2.093 2.167m-1.94-17.325a1.902 1.902 0 0 1 3.805 0v9.13a1.902 1.902 0 0 1-3.805 0z"}))))}},14978(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.253 1c8.124 0 14.6 6.473 14.743 14.74.069 3.993-1.471 7.788-4.338 10.687C23.81 29.306 20.03 30.928 16.01 31l-.266.001C7.623 31 1.147 24.527 1.002 16.26c-.069-3.993 1.473-7.788 4.34-10.686 2.847-2.878 6.628-4.502 10.646-4.573Zm-.251 19.968a2.12 2.12 0 0 0-1.503.649c-.396.409-.609.95-.599 1.517a2.14 2.14 0 0 0 2.13 2.093h.038a2.133 2.133 0 0 0 2.093-2.167c-.02-1.161-.98-2.092-2.16-2.092M16.03 6c-1.05 0-1.903.852-1.903 1.902v9.13a1.902 1.902 0 0 0 3.805 0v-9.13C17.933 6.852 17.08 6 16.03 6"})))}},98062(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=i.createElement("defs",null,i.createElement("linearGradient",{id:"a",x1:"50%",x2:"50%",y1:"100%",y2:"0%"},i.createElement("stop",{offset:"0%",stopColor:"#FAAB7C"}),i.createElement("stop",{offset:"100%",stopColor:"#FFCB75"})))),o||(o=i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{fill:"#FFF",fillOpacity:.4,d:"M28.015 1a3 3 0 0 1 2.994 2.824l.006.176v13.288a3 3 0 0 0-.374-.08l-2.66-.378.031-11.827a1 1 0 0 0-.998-1.002h-22a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h8.825l-.403 1.612-.034.154c-.087.46-.044.88.096 1.235L4.015 31a3.004 3.004 0 0 1-2.995-2.824l-.006-.175V4a3 3 0 0 1 2.824-2.995L4.014 1zM21.5 28.92 25.212 31h-7.425zm9.515-7.492V28a3 3 0 0 1-1.392 2.532c.039-.282.022-.592-.06-.92l-1.374-5.494zM11.537 21l3.273 3.118-.472 1.883H7.015a1 1 0 0 1-.994-.884L6.015 25v-3a1 1 0 0 1 .883-.993L7.015 21zm7.2-7.5-1.366 2.996-5.012.712-.165.028c-.802.164-1.354.657-1.58 1.264h-3.6a1 1 0 0 1-.993-.883l-.006-.117v-3a1 1 0 0 1 .883-.993l.117-.007zm6.277 0a1 1 0 0 1 .983.895l.005.117-.024 2.034-.35-.05-1.366-2.996zm0-7.5a1 1 0 0 1 .983.896l.005.116-.035 3a1 1 0 0 1-.885.982l-.115.007h-1.895c-.817-1.146-2.328-1.144-3.144 0H7.015a1 1 0 0 1-.994-.884L6.015 10V7a1 1 0 0 1 .883-.993l.117-.006z"}),i.createElement("path",{fill:"url(#a)",d:"m21.958 12.06 2.646 5.806 5.826.827c.616.088.754.503.309.927l-4.216 4.015 1.585 6.341c.15.596-.16.838-.7.535L21.5 27.2l-5.907 3.311c-.536.3-.85.058-.701-.535l1.585-6.341-4.216-4.015c-.445-.424-.307-.84.309-.927l5.826-.827 2.646-5.806c.253-.556.662-.559.916 0"}))))}},19101(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M4.25 1C3.56 1 3 1.56 3 2.25v27.5a1.25 1.25 0 0 0 2.5 0V2.25C5.5 1.56 4.94 1 4.25 1m24.755 3.495a.63.63 0 0 0-.543-.106c-.039.01-3.86 1.036-6.812 1.036h-.002c-1.013 0-1.793-.119-2.317-.354-.625-.28-.706-.652-.706-.946 0-.855-.44-2.291-3.38-2.291-3.218 0-7.88 1.632-8.078 1.7a.63.63 0 0 0-.417.59v15a.623.623 0 0 0 .833.59c.047-.015 4.657-1.63 7.663-1.63 2.129 0 2.129.783 2.129 1.04 0 1.173.753 2.57 4.34 2.57h.002c3.109 0 6.909-1.003 7.069-1.047a.624.624 0 0 0 .464-.603V4.99a.63.63 0 0 0-.245-.496"})))}},20997(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m1.903 6.141 19.786 19.79C18.59 28.593 16.004 29.997 16 30c0 0-7.982-4.331-12.721-12.228-2.695-4.49-2.79-8.694-1.376-11.63m5.345-4.067C12.654 1.284 16 7.075 16 7.075s3.346-5.79 8.752-5.001c5.405.79 8.709 7.801 3.97 15.698a30.4 30.4 0 0 1-2.8 3.903L6.475 2.233q.378-.101.772-.159"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},12745(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 7.075s-3.346-5.79-8.752-5.001c-5.405.79-8.709 7.801-3.97 15.698C8.019 25.669 16 30 16 30c.008-.004 7.985-4.335 12.721-12.228 4.74-7.897 1.436-14.908-3.97-15.698C19.347 1.284 16 7.075 16 7.075"})))}},20140(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#408FE0",d:"M16 1c8.271 0 15 6.729 15 15 0 3.734-1.37 7.286-3.866 10.05l-.278.301C23.984 29.262 19.925 31 16 31c-3.79 0-7.713-1.628-10.574-4.37l-.305-.304A14.93 14.93 0 0 1 1 16C1 7.729 7.729 1 16 1"}),o.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M13.701 11.293h2.417l.162.008c.591.064 1.084.471 1.265 1.045l.036.135.023.157.007.136v9.763h2.157l.137.008c.754.081 1.331.714 1.331 1.473 0 .657-.434 1.225-1.068 1.419l-.13.034-.158.022-.137.007h-7.275l-.137-.009A1.486 1.486 0 0 1 11 24.018c0-.656.434-1.225 1.069-1.418l.13-.034.157-.023.137-.006h2.132v-8.281h-.949l-.137-.009a1.486 1.486 0 0 1-1.33-1.473c0-.656.433-1.225 1.068-1.418l.13-.034.157-.023zM15.514 5.5a2.09 2.09 0 0 1 2.097 2.082 2.09 2.09 0 0 1-2.097 2.082 2.09 2.09 0 0 1-2.097-2.082c0-1.15.941-2.082 2.097-2.082"}))))}},23220(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#408FE0",d:"M16 1c8.271 0 15 6.729 15 15 0 3.734-1.37 7.286-3.866 10.05l-.278.301C23.984 29.262 19.925 31 16 31c-3.79 0-7.713-1.628-10.574-4.37l-.305-.304A14.93 14.93 0 0 1 1 16C1 7.729 7.729 1 16 1"}),o.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M13.701 11.293h2.417l.162.008c.591.064 1.084.471 1.265 1.045l.036.135.023.157.007.136v9.763h2.157l.137.008c.754.081 1.331.714 1.331 1.473 0 .657-.434 1.225-1.068 1.419l-.13.034-.158.022-.137.007h-7.275l-.137-.009A1.486 1.486 0 0 1 11 24.018c0-.656.434-1.225 1.069-1.418l.13-.034.157-.023.137-.006h2.132v-8.281h-.949l-.137-.009a1.486 1.486 0 0 1-1.33-1.473c0-.656.433-1.225 1.068-1.418l.13-.034.157-.023zM15.514 5.5a2.09 2.09 0 0 1 2.097 2.082 2.09 2.09 0 0 1-2.097 2.082 2.09 2.09 0 0 1-2.097-2.082c0-1.15.941-2.082 2.097-2.082"}))))}},35159(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 1c8.271 0 15 6.729 15 15 0 3.734-1.37 7.286-3.866 10.05l-.278.301C23.984 29.262 19.925 31 16 31c-3.79 0-7.713-1.628-10.574-4.37l-.305-.304A14.93 14.93 0 0 1 1 16C1 7.729 7.729 1 16 1m.118 10.293h-2.417l-.137.006-.157.023-.13.034a1.485 1.485 0 0 0-1.069 1.418c0 .76.578 1.392 1.331 1.473l.137.008h.95v8.282h-2.133l-.137.006-.158.023-.13.034A1.485 1.485 0 0 0 11 24.018c0 .76.578 1.393 1.331 1.473l.137.008 7.275.001.137-.007.158-.022.13-.034a1.485 1.485 0 0 0 1.068-1.419c0-.759-.577-1.392-1.331-1.473l-.137-.008H17.61v-9.763l-.006-.136-.023-.157-.036-.135A1.49 1.49 0 0 0 16.28 11.3zM15.514 5.5a2.09 2.09 0 0 0-2.097 2.082c0 1.149.941 2.082 2.097 2.082a2.09 2.09 0 0 0 2.097-2.082A2.09 2.09 0 0 0 15.514 5.5"})))}},83039(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M8.594 1v2.308h-.577v2.307h2.365V3.308h-.577V1h3.461v2.308h-.577v2.307h2.308V3.308h-.577V1h3.462v2.308h-.577v2.307h2.307V3.308h-.576V1h3.461v2.308h-.577v2.307h2.308V3.308h-.577V1h3.08c.824 0 1.5.675 1.5 1.508v26.984c0 .84-.67 1.508-1.498 1.508H5.497A1.505 1.505 0 0 1 4 29.492V2.508C4 1.668 4.674 1 5.504 1zm2.55 18.423-2.158 2.97-.235-.234c-.401-.4-1.049-.4-1.449 0a1.03 1.03 0 0 0 0 1.458L8.388 24.7c.163.163.372.263.598.291L9.15 25h.023c.319-.026.593-.179.77-.424l2.861-3.94.07-.111a1.03 1.03 0 0 0-.058-1.084l-.034-.043-.03-.075-.177-.128-.094-.06-.092-.046a1.025 1.025 0 0 0-1.244.335M23.5 21h-8a1.5 1.5 0 0 0 0 3h8a1.5 1.5 0 0 0 0-3M11.144 9.423l-2.158 2.97-.235-.234c-.401-.4-1.049-.4-1.449 0a1.03 1.03 0 0 0 0 1.458L8.388 14.7c.163.163.372.263.598.291L9.15 15h.023c.319-.026.593-.179.77-.424l2.861-3.94.07-.111a1.03 1.03 0 0 0-.058-1.084l-.034-.043-.03-.075-.177-.128-.094-.06-.092-.046a1.025 1.025 0 0 0-1.244.335M23.5 11h-8a1.5 1.5 0 0 0 0 3h8a1.5 1.5 0 0 0 0-3"})))}},68188(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M7.875 21.625c1.379 0 2.5 1.121 2.5 2.5s-1.121 2.5-2.5 2.5a2.503 2.503 0 0 1-2.5-2.5c0-1.379 1.121-2.5 2.5-2.5m2.5 9.375c5.169 0 9.375-4.205 9.375-9.375a9.26 9.26 0 0 0-.85-3.891l3.609-3.609h2.241v-2.241l.259-.259h2.241V9.384l.259-.259h2.241V6.884L31 5.634V1h-4.634l-12.1 12.1a9.26 9.26 0 0 0-3.891-.85C5.206 12.25 1 16.456 1 21.625 1 26.795 5.206 31 10.375 31"})))}},60409(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m8.253 12.492 11.255 11.256C18.543 27.898 14.814 31 10.375 31 5.206 31 1 26.795 1 21.625c0-4.44 3.103-8.169 7.253-9.133m-.378 9.133a2.503 2.503 0 0 0-2.5 2.5c0 1.379 1.121 2.5 2.5 2.5s2.5-1.121 2.5-2.5-1.121-2.5-2.5-2.5M31 1v4.634l-1.25 1.25v2.241h-2.241l-.259.259v2.241h-2.241l-.259.259v2.241h-2.241l-2.07 2.069-4.634-4.633L26.366 1z"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},30964(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28.015 1a3 3 0 0 1 2.994 2.824l.005.176v12.3h-.657v-1.433l-.004-.23-.012-.242c-.132-1.956-1-3.774-2.34-5.051l.011-4.341a1 1 0 0 0-.998-1.002h-22a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1H14.5v3H4.015a3.004 3.004 0 0 1-2.995-2.825l-.006-.175V4a3 3 0 0 1 2.824-2.995L4.014 1zM14.498 21v5H7.014a1 1 0 0 1-.993-.883L6.015 25v-3a1 1 0 0 1 .883-.993L7.015 21zm2.269-7.5a7.6 7.6 0 0 0-.125 1.367l-.001 1.433H14.5v2.2H7.014a1 1 0 0 1-.994-.883l-.006-.117v-3a1 1 0 0 1 .883-.993l.117-.007ZM25.014 6a1 1 0 0 1 .983.896l.005.116-.012.997A6.3 6.3 0 0 0 23.5 7.5l-.237.004-.24.014c-2.287.17-4.211 1.56-5.33 3.482H7.014a1 1 0 0 1-.993-.883L6.015 10V7a1 1 0 0 1 .883-.993l.117-.006z"}),o.createElement("path",{d:"M23.5 9c3.204 0 5.357 3.034 5.357 5.867V17.8H31V31H16V17.8h2.143v-2.933C18.143 12.034 20.296 9 23.5 9m0 1.833c-1.97 0-3.571 1.917-3.571 4.034V17.8h7.142v-2.933c0-2.117-1.602-4.034-3.571-4.034"}))))}},63119(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.515 1c4.486 0 7.5 4.138 7.5 8v4h3v18h-21V13h3V9c0-3.862 3.014-8 7.5-8m0 2.5c-2.758 0-5 2.614-5 5.5v4h10V9c0-2.886-2.243-5.5-5-5.5"})))}},46003(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M20.97 14H6.015v17h21V14h-3.367l.525-1.366c1.643-4.28-.233-9.462-4.566-11.126s-9.195.932-10.838 5.213l-.269.7 2.334.896.269-.7c1.174-3.06 4.62-4.921 7.608-3.775s4.302 4.836 3.128 7.896z"})))}},76952(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M3.754 6.72C5.397 2.44 10.26-.154 14.592 1.509s6.21 6.845 4.566 11.126L18.633 14h.69a2 2 0 0 0-.023.282v.475l-.34-.34-.119-.11a1.784 1.784 0 0 0-2.4.108l-2.023 2.023-.11.12-.096.127a1.78 1.78 0 0 0 .21 2.278l.336.336h-.475l-.146.006a1.784 1.784 0 0 0-1.637 1.777v2.267l.006.146.019.151a1.784 1.784 0 0 0 1.758 1.486h.89l.036.113-.791.793-.118.13a1.78 1.78 0 0 0 .118 2.392l2.021 2.02.12.11.126.096q.2.136.422.214H1V14h14.956l.868-2.263c1.175-3.06-.141-6.75-3.128-7.896s-6.433.715-7.608 3.775l-.269.7-2.334-.896ZM19.3 30.243v.475l.006.146q.006.069.017.138h-1.03c.245-.086.474-.225.668-.42z"}),o.createElement("path",{d:"M22.5 25.333a2.837 2.837 0 0 1-2.833-2.833 2.837 2.837 0 0 1 2.833-2.833 2.837 2.837 0 0 1 2.833 2.833 2.837 2.837 0 0 1-2.833 2.833m8.217-4.533h-2.102a6.6 6.6 0 0 0-.58-1.413L29.52 17.9a.283.283 0 0 0 0-.4L27.5 15.479a.284.284 0 0 0-.4 0l-1.489 1.488a8.4 8.4 0 0 0-1.411-.583v-2.1a.283.283 0 0 0-.283-.284h-2.834a.283.283 0 0 0-.283.283v2.102c-.384.114-.96.337-1.412.581L17.9 15.48a.284.284 0 0 0-.4 0l-2.021 2.02a.283.283 0 0 0 0 .401l1.488 1.489a8.6 8.6 0 0 0-.58 1.411h-2.104a.283.283 0 0 0-.283.283v2.267c0 .156.127.283.283.283h2.075c.123.738.35 1.47.61 1.977l-1.49 1.49a.28.28 0 0 0 0 .4l2.022 2.021a.29.29 0 0 0 .4 0l1.49-1.49c.326.166.721.305 1.05.42.133.047.26.092.36.13v2.136c0 .156.127.283.283.283h2.834a.283.283 0 0 0 .283-.283V28.58c.1-.038.228-.083.36-.13.33-.115.724-.254 1.049-.42l1.49 1.49c.111.11.29.11.401 0l2.021-2.02a.284.284 0 0 0 0-.401l-1.484-1.484c.262-.437.473-.874.613-1.983h2.067A.283.283 0 0 0 31 23.35v-2.267a.283.283 0 0 0-.283-.283"}))))}},26875(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 1c8.27 0 15 6.73 15 15s-6.73 15-15 15S1 24.27 1 16 7.73 1 16 1m8.59 8.182H7.41l-.112.006a.94.94 0 0 0-.843.928v9.96l.006.109a.95.95 0 0 0 .948.825h6.682v1.867H11.28l-.099.008a.61.61 0 0 0 .099 1.212h9.44l.099-.008a.61.61 0 0 0-.099-1.212h-2.81V21.01h6.68l.112-.006a.94.94 0 0 0 .843-.928v-9.96l-.006-.11a.95.95 0 0 0-.948-.824m-.834 1.79v8.352H8.244v-8.352z"})))}},64882(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M13.202 1c6.5 0 11.68 5.178 11.795 11.791q.018 1.112-.166 2.188h-4.247l-.149.005A1.823 1.823 0 0 0 18.76 16.8l-.001 4.62h-2.391a1.822 1.822 0 0 0-1.282 3.118l.207.207q-.947.196-1.928.243l-.356.011-.213.001C6.298 25 1.118 19.822 1.002 13.209c-.056-3.195 1.178-6.231 3.471-8.55a12.23 12.23 0 0 1 8.16-3.647l.357-.011zm-.2 15.974c-.46.007-.887.193-1.203.52s-.487.759-.479 1.213c.016.876.701 1.595 1.56 1.668l.144.006h.03a1.706 1.706 0 0 0 1.675-1.733A1.715 1.715 0 0 0 13 16.974M13.023 5c-.793 0-1.445.608-1.515 1.383l-.006.139v7.303a1.522 1.522 0 0 0 3.037.139l.006-.139V6.522c0-.84-.681-1.522-1.522-1.522"}),o.createElement("path",{d:"M26.423 16.478c.156 0 .287.11.317.257l.007.065v6.12h3.892c.131 0 .25.08.3.2.04.096.03.204-.023.29l-.047.06-7.136 7.087a.325.325 0 0 1-.408.042l-.05-.042-7.136-7.086a.32.32 0 0 1 .152-.541l.077-.01h3.892V16.8c0-.155.111-.285.259-.315l.065-.007z"}))))}},80985(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M13.202 1c6.5 0 11.68 5.178 11.794 11.791q.016.952-.117 1.878a1.81 1.81 0 0 0-1.42.203l-.148.104-.06.047-.134.12-7.087 7.136a1.825 1.825 0 0 0-.229 2.291l.035.05c-.802.204-1.629.329-2.47.368l-.357.01-.213.002C6.298 25 1.118 19.822 1.002 13.209c-.056-3.195 1.178-6.231 3.471-8.55a12.23 12.23 0 0 1 8.16-3.647l.357-.011zm-.2 15.974c-.46.007-.887.193-1.203.52s-.487.759-.479 1.213c.016.876.7 1.595 1.56 1.668l.144.006h.03a1.706 1.706 0 0 0 1.675-1.733A1.715 1.715 0 0 0 13 16.974M13.023 5c-.793 0-1.445.608-1.515 1.383l-.006.139v7.303a1.522 1.522 0 0 0 3.037.139l.006-.139V6.522c0-.84-.681-1.522-1.522-1.522M24.242 16.152a.32.32 0 0 1 .48.2l.01.078v3.892h6.12l.065.006c.122.026.22.12.248.242l.009.076v5.838l-.007.066a.32.32 0 0 1-.24.25l-.075.009h-6.12V30.7l-.01.076a.32.32 0 0 1-.48.2l-.06-.047-7.087-7.136-.042-.05a.32.32 0 0 1 0-.357l.042-.051L24.18 16.2z"}))))}},32324(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M13.202 1c6.5 0 11.68 5.178 11.794 11.791q.019 1.1-.162 2.165l-.12-.084a1.82 1.82 0 0 0-1.483-.187l-.164.06c-.54.224-.937.692-1.073 1.255l-.032.175-.01.077-.01.178v2.391h-4.62l-.152.008-.064.007-.152.023a1.82 1.82 0 0 0-1.404 1.364l-.031.173-.009.076-.01.174V24.7q-1.046.236-2.135.288l-.356.01-.213.002C6.298 25 1.118 19.822 1.002 13.209c-.056-3.195 1.178-6.231 3.471-8.55a12.23 12.23 0 0 1 8.16-3.647l.357-.011zm-.2 15.974c-.46.007-.887.193-1.203.52s-.487.759-.479 1.213c.016.876.7 1.595 1.56 1.668l.144.006h.03a1.706 1.706 0 0 0 1.675-1.733A1.715 1.715 0 0 0 13 16.974M13.023 5c-.793 0-1.445.608-1.515 1.383l-.006.139v7.303a1.522 1.522 0 0 0 3.037.139l.006-.139V6.522c0-.84-.681-1.522-1.522-1.522"}),o.createElement("path",{d:"M23.641 16.13a.32.32 0 0 1 .223-.01l.068.032.06.048 7.087 7.136.042.05a.33.33 0 0 1 .03.301l-.03.057-.042.05-7.086 7.136-.06.048a.32.32 0 0 1-.455-.13l-.026-.07-.01-.077v-3.892h-6.12l-.075-.01a.32.32 0 0 1-.217-.179l-.023-.07-.007-.066v-5.838l.009-.076a.33.33 0 0 1 .178-.218l.07-.024.065-.006h6.12V16.43l.01-.077a.32.32 0 0 1 .19-.223"}))))}},73537(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M13.202 1c6.5 0 11.68 5.178 11.795 11.791.018 1.059-.105 2.1-.361 3.104a1.82 1.82 0 0 0-2.137-.094l-.124.091-.05.042-.108.096-7.135 7.087a1.82 1.82 0 0 0-.48 1.75q-.61.091-1.237.12L13.01 25l-.213.001C6.298 25 1.118 19.822 1.002 13.209c-.056-3.195 1.178-6.231 3.471-8.55a12.23 12.23 0 0 1 8.16-3.647l.357-.011zm-.2 15.974c-.46.007-.887.193-1.203.52s-.487.759-.479 1.213c.016.876.701 1.595 1.56 1.668l.144.006h.03a1.706 1.706 0 0 0 1.675-1.733A1.715 1.715 0 0 0 13 16.974M13.023 5c-.793 0-1.445.608-1.515 1.383l-.006.139v7.303a1.522 1.522 0 0 0 3.037.139l.006-.139V6.522c0-.84-.681-1.522-1.522-1.522"}),o.createElement("path",{d:"M23.503 17q.096 0 .179.053l.051.042 7.136 7.086.047.06a.32.32 0 0 1-.2.481l-.077.01h-3.892v6.12l-.007.065a.32.32 0 0 1-.242.248l-.075.009h-5.839l-.065-.007a.32.32 0 0 1-.25-.24l-.009-.075v-6.12h-3.892l-.077-.01a.32.32 0 0 1-.2-.48l.048-.06 7.135-7.087.051-.042a.32.32 0 0 1 .178-.053"}))))}},98448(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M26.423 16.478c.156 0 .287.11.317.257l.007.065v6.12h3.892c.131 0 .25.08.3.2.04.096.03.204-.023.29l-.047.06-7.136 7.087a.325.325 0 0 1-.408.042l-.05-.042-7.136-7.086a.32.32 0 0 1 .152-.541l.077-.01h3.892V16.8c0-.155.111-.285.259-.315l.065-.007z"}),o.createElement("path",{d:"M13.78 1.184c.337.17.61.443.78.78l6.506 13.014h-.482l-.149.006A1.823 1.823 0 0 0 18.76 16.8l-.001 4.62h-2.391a1.822 1.822 0 0 0-1.282 3.118l.464.462H2.744a1.744 1.744 0 0 1-1.56-2.523L11.44 1.964a1.744 1.744 0 0 1 2.34-.78M13 19.374c-.46.007-.886.193-1.202.52s-.487.759-.479 1.213a1.71 1.71 0 0 0 1.704 1.674h.03a1.706 1.706 0 0 0 1.675-1.733A1.715 1.715 0 0 0 13 19.374M13.024 7.4c-.84 0-1.521.681-1.521 1.522v7.303a1.522 1.522 0 0 0 3.043 0V8.922c0-.84-.681-1.522-1.522-1.522"}))))}},59199(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M24.242 16.152a.32.32 0 0 1 .48.2l.01.078v3.892h6.12l.065.006c.122.026.22.12.248.242l.009.076v5.838l-.007.066a.32.32 0 0 1-.24.25l-.075.009h-6.12V30.7l-.01.076a.32.32 0 0 1-.48.2l-.06-.047-7.087-7.136-.042-.05a.32.32 0 0 1 0-.357l.042-.051L24.18 16.2z"}),o.createElement("path",{d:"M13.78 1.184c.337.17.61.443.78.78l7.247 14.497-5.777 5.818a1.825 1.825 0 0 0-.229 2.291l.091.123.042.051.096.107.148.149H2.744a1.744 1.744 0 0 1-1.56-2.523L11.44 1.964a1.744 1.744 0 0 1 2.34-.78M13 19.374c-.46.007-.886.193-1.202.52s-.487.759-.479 1.213a1.71 1.71 0 0 0 1.704 1.674h.03a1.706 1.706 0 0 0 1.675-1.733A1.715 1.715 0 0 0 13 19.374M13.024 7.4c-.84 0-1.521.681-1.521 1.522v7.303a1.522 1.522 0 0 0 3.043 0V8.922c0-.84-.681-1.522-1.522-1.522"}))))}},9754(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M13.78 1.184c.337.17.61.443.78.78l7.382 14.766v2.091h-4.62l-.152.008-.064.007-.152.023a1.82 1.82 0 0 0-1.404 1.364l-.031.173-.009.076-.01.174V25H2.744a1.744 1.744 0 0 1-1.56-2.523L11.44 1.964a1.744 1.744 0 0 1 2.34-.78M13 19.374c-.46.007-.886.193-1.202.52s-.487.759-.479 1.213a1.71 1.71 0 0 0 1.704 1.674h.03a1.706 1.706 0 0 0 1.675-1.733A1.715 1.715 0 0 0 13 19.374M13.024 7.4c-.84 0-1.521.681-1.521 1.522v7.303a1.522 1.522 0 0 0 3.043 0V8.922c0-.84-.681-1.522-1.522-1.522"}),o.createElement("path",{d:"M23.641 16.13a.32.32 0 0 1 .223-.01l.068.032.06.048 7.087 7.136.042.05a.33.33 0 0 1 .03.301l-.03.057-.042.05-7.086 7.136-.06.048a.32.32 0 0 1-.455-.13l-.026-.07-.01-.077v-3.892h-6.12l-.075-.01a.32.32 0 0 1-.217-.179l-.023-.07-.007-.066v-5.838l.009-.076a.33.33 0 0 1 .178-.218l.07-.024.065-.006h6.12V16.43l.01-.077a.32.32 0 0 1 .19-.223"}))))}},33187(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M23.503 17q.096 0 .179.053l.051.042 7.136 7.086.047.06a.32.32 0 0 1-.2.481l-.077.01h-3.892v6.12l-.007.065a.32.32 0 0 1-.242.248l-.075.009h-5.839l-.065-.007a.32.32 0 0 1-.25-.24l-.009-.075v-6.12h-3.892l-.077-.01a.32.32 0 0 1-.2-.48l.048-.06 7.135-7.087.051-.042a.32.32 0 0 1 .178-.053M13.78 1.184c.337.17.61.443.78.78l7.239 14.481-6.717 6.672a1.82 1.82 0 0 0-.44 1.884L2.744 25a1.744 1.744 0 0 1-1.56-2.523L11.44 1.964a1.744 1.744 0 0 1 2.34-.78M13 19.374c-.46.007-.886.193-1.202.52s-.487.759-.479 1.213a1.71 1.71 0 0 0 1.704 1.674h.03a1.706 1.706 0 0 0 1.675-1.733A1.715 1.715 0 0 0 13 19.374M13.024 7.4c-.84 0-1.521.681-1.521 1.522v7.303a1.522 1.522 0 0 0 3.043 0V8.922c0-.84-.681-1.522-1.522-1.522"}))))}},79812(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.253 1c8.124 0 14.6 6.473 14.743 14.74.069 3.993-1.471 7.788-4.338 10.687-2.752 2.783-6.377 4.392-10.246 4.56l-.4.012-.267.001C7.623 31 1.147 24.527 1.002 16.26c-.069-3.993 1.473-7.788 4.34-10.686 2.752-2.783 6.377-4.393 10.245-4.56l.4-.013zM8.01 13q-.634 0-1.188.24-.555.238-.96.637-.406.399-.634.957A3.1 3.1 0 0 0 5 16.01q0 .637.228 1.186t.633.947q.406.399.96.628.555.23 1.189.229.615 0 1.168-.23.555-.228.95-.627.397-.4.634-.947A2.95 2.95 0 0 0 11 16.01q0-.618-.238-1.176a3 3 0 0 0-.633-.957 3 3 0 0 0-.95-.638Q8.623 13 8.008 13m8 0q-.634 0-1.188.24-.555.238-.96.637-.406.399-.634.957A3.1 3.1 0 0 0 13 16.01q0 .637.228 1.186t.633.947q.406.399.96.628.555.23 1.189.229.615 0 1.168-.23.555-.228.95-.627.397-.4.634-.947A2.95 2.95 0 0 0 19 16.01q0-.618-.238-1.176a3 3 0 0 0-.633-.957 3 3 0 0 0-.95-.638q-.555-.24-1.17-.239m8 0q-.634 0-1.188.24-.555.238-.96.637-.406.399-.634.957A3.1 3.1 0 0 0 21 16.01q0 .637.228 1.186t.633.947q.407.399.96.628.555.23 1.189.229.615 0 1.168-.23.555-.228.95-.627.397-.4.634-.947A2.95 2.95 0 0 0 27 16.01q0-.618-.238-1.176a3 3 0 0 0-.633-.957 3 3 0 0 0-.95-.638q-.555-.24-1.17-.239"})))}},76363(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M28.375 1c.346 0 .625.279.625.625v9.08c0 8.51-4.677 16.259-12.209 20.222a.61.61 0 0 1-.581 0A22.79 22.79 0 0 1 4 10.705v-9.08C4 1.279 4.28 1 4.625 1Zm-4.318 5.135a1.576 1.576 0 0 0-1.912.516l-7.503 10.334-1.949-1.947a1.575 1.575 0 0 0-2.227 0 1.59 1.59 0 0 0 .001 2.251l3.253 3.25c.3.298.7.462 1.148.461.025 0 .025 0 .071-.003.48-.04.9-.275 1.172-.65l8.585-11.825a1.59 1.59 0 0 0-.107-2.003c-.023-.025-.047-.05-.063-.088l-.183-.132-.193-.12z"})))}},32683(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.253 1c8.124 0 14.6 6.473 14.743 14.74.069 3.993-1.471 7.788-4.338 10.687C23.81 29.306 20.03 30.928 16.01 31l-.266.001C7.623 31 1.147 24.527 1.002 16.26c-.069-3.993 1.473-7.788 4.34-10.686 2.847-2.878 6.628-4.502 10.646-4.573Zm-.733 20.163q-.51 0-.962.194a2.5 2.5 0 0 0-.771.51q-.337.328-.52.779a2.5 2.5 0 0 0-.185.942q0 .507.185.952.186.444.52.77.33.323.777.506.451.184.956.184.493 0 .942-.184a2.34 2.34 0 0 0 1.288-1.27q.195-.447.195-.958 0-.496-.194-.949a2.4 2.4 0 0 0-.514-.768 2.4 2.4 0 0 0-.768-.514 2.4 2.4 0 0 0-.95-.194M16.062 6q-.874 0-1.633.158-.755.158-1.406.435-.645.275-1.207.648a9.5 9.5 0 0 0-1.012.775l-.304.268 1.108 1.758.086.111c.241.279.56.413.935.413.234 0 .466-.085.7-.24q.115-.075.259-.162l.314-.182a4 4 0 0 1 .774-.322q.435-.139 1.102-.14.429 0 .787.119.344.112.581.316.233.199.363.474.128.268.128.628 0 .58-.225.984-.248.452-.62.808a8 8 0 0 1-.864.71q-.509.363-.952.745-.473.408-.793.88c-.244.362-.365.784-.365 1.255v.11l.004.08.015.105.26 2.504h3.017l.36-2.286.024-.11.033-.088a1 1 0 0 1 .203-.282q.305-.305.732-.628l.957-.731q.547-.422 1.014-.993.48-.588.79-1.37.319-.808.318-1.873 0-1.105-.402-2.013A4.4 4.4 0 0 0 20 7.31a5.1 5.1 0 0 0-1.742-.977A6.9 6.9 0 0 0 16.062 6"})))}},59718(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"m7.964 20.28-4.768 2.684 1.286-5.167L1 14.466l4.812-.687 2.152-4.743 2.152 4.743 4.813.687-3.483 3.33 1.287 5.168zm16.072 0-4.769 2.684 1.287-5.167-3.483-3.331 4.813-.687 2.152-4.743 2.152 4.743 4.812.687-3.482 3.33 1.286 5.168z"})))}},65047(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M5.535 18.787 2.43 20.535l.837-3.365L1 15l3.134-.446 1.4-3.089 1.402 3.089 3.134.447-2.268 2.169.838 3.365zm10.465 0-3.105 1.748.838-3.365L11.465 15l3.134-.446L16 11.465l1.401 3.089 3.134.447-2.268 2.169.838 3.365zm10.465 0-3.105 1.748.838-3.365L21.93 15l3.134-.446 1.401-3.089 1.401 3.089 3.134.447-2.267 2.169.837 3.365z"})))}},43859(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 25.217 5.73 31 8.5 19.87 1 12.695l10.365-1.478L16 1l4.635 10.217L31 12.695l-7.5 7.175L26.27 31z"})))}},89405(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#8BC675",d:"M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1"}),o.createElement("path",{fill:"#232B36",d:"M22.868 11.126 14.012 22.85a1.66 1.66 0 0 1-1.222.678l-.072.003c-.465 0-.881-.17-1.195-.48l-3.215-3.21a1.67 1.67 0 0 1-.002-2.359 1.64 1.64 0 0 1 2.318 0l1.859 1.855 7.725-10.176a1.673 1.673 0 0 1 2.327-.335 1.634 1.634 0 0 1 .333 2.299"}))))}},64696(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m28.222 8-24.444.003A2.784 2.784 0 0 0 1 10.783v11.103a2.78 2.78 0 0 0 2.778 2.78h24.444A2.784 2.784 0 0 0 31 21.886V10.78A2.78 2.78 0 0 0 28.222 8"}),o.createElement("path",{d:"M28.222 9.666c.57 0 1.04.43 1.104.984l.008.13v11.106a1.12 1.12 0 0 1-.982 1.106l-.13.007H3.778c-.57 0-1.04-.43-1.104-.983l-.008-.13V10.783c0-.564.43-1.04.982-1.106l.13-.007z"}),o.createElement("path",{d:"M6.867 18.884h2.8l-.184 1.486H4.822l1.028-8.324h1.862zm5.45 1.486h-1.874l1.017-8.324h1.874zm1.77-8.324h1.498q.24 0 .382.115a.48.48 0 0 1 .177.29l.869 4.588q.051.28.123.632.07.35.117.71.12-.36.274-.705.154-.346.274-.637l1.942-4.587a.66.66 0 0 1 .249-.28.8.8 0 0 1 .194-.091.7.7 0 0 1 .22-.035h1.508l-4.09 8.324h-1.691zm13.197 1.434h-3.079l-.251 2.011h2.36l-.184 1.383h-2.348l-.251 2.062h3.102l-.183 1.434h-4.97l1.028-8.324h4.959z"}))))}},73599(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m1.015 5.254 2.602 2.603a2.34 2.34 0 0 0-1.11 1.818L2.5 9.85v.85l.006.162.016.159c.118.86.706 1.567 1.493 1.87V27a1 1 0 0 0 1 1H23.76l2.326 2.326c.303.303.657.529 1.034.675L4.015 31a3.004 3.004 0 0 1-2.995-2.824l-.006-.175zm27-4.253a3 3 0 0 1 2.994 2.823l.006.176.001 23.143a3 3 0 0 0-.687-1.06l-2.203-2.202q.06-.028.12-.06l.133-.076.142-.094.134-.103a2.33 2.33 0 0 0 .557-2.92l-.093-.154-1.142-1.747.015-6.24.913-1.292.098-.151c.215-.36.33-.772.33-1.194 0-.93-.545-1.727-1.328-2.109l.007-2.738A1 1 0 0 0 27.014 4H8.246l-3-3zM8.031 12.27l3.325 3.324v6.155c0 .47-.393.85-.876.85H8.909a.863.863 0 0 1-.877-.85zm8.136 8.136 2.096 2.098a.84.84 0 0 1-.41.095h-1.54a.863.863 0 0 1-.876-.85c0-.164.049-.325.141-.463zM18.254 9q.329 0 .484.08a.73.73 0 0 1 .275.265l2.744 4.344a.178.178 0 0 0 .3-.002l2.646-4.295q.25-.392.68-.392h1.573c.484 0 .876.38.876.85a.83.83 0 0 1-.153.48l-3.56 5.046a.17.17 0 0 0-.003.187l3.748 5.732a.835.835 0 0 1-.27 1.173.9.9 0 0 1-.47.132h-.28l-8.47-8.471-2.596-3.81a.835.835 0 0 1 .248-1.178.9.9 0 0 1 .483-.141zM7.31 11.55H4.876A.863.863 0 0 1 4 10.7v-.85a.86.86 0 0 1 .768-.844zM14.513 9q.162.001.305.053c-.22.45-.25.98-.06 1.461L13.244 9z"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},44617(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M14.513 9q.162.001.305.053a1.82 1.82 0 0 0 .133 1.829l.242.354a.89.89 0 0 1-.68.314h-2.981a.173.173 0 0 0-.175.17v10.03c0 .47-.393.85-.876.85H8.909a.863.863 0 0 1-.877-.85V11.72a.173.173 0 0 0-.175-.17h-2.98A.863.863 0 0 1 4 10.7v-.85c0-.47.392-.85.876-.85zm3.74 0q.33 0 .485.08a.73.73 0 0 1 .275.265l2.744 4.344a.178.178 0 0 0 .3-.002l2.646-4.295q.25-.392.68-.392h1.573c.484 0 .876.38.876.85a.83.83 0 0 1-.153.48l-3.56 5.046a.17.17 0 0 0-.003.187l3.748 5.732a.835.835 0 0 1-.27 1.173.9.9 0 0 1-.47.132h-1.782q-.33 0-.534-.15a1.2 1.2 0 0 1-.324-.354l-2.764-4.514a.178.178 0 0 0-.302 0l-2.745 4.514q-.12.195-.32.35a.8.8 0 0 1-.498.154h-1.541a.863.863 0 0 1-.876-.85c0-.164.049-.325.141-.463l3.74-5.585a.17.17 0 0 0 0-.186l-3.541-5.197a.835.835 0 0 1 .248-1.178.9.9 0 0 1 .483-.141z"}),o.createElement("path",{fillOpacity:.4,d:"M28.015 1a3 3 0 0 1 2.994 2.824l.006.176v24a3.004 3.004 0 0 1-2.825 2.995l-.175.005h-24a3.004 3.004 0 0 1-2.995-2.824l-.006-.175V4a3 3 0 0 1 2.824-2.995L4.014 1zm-1 3h-22a1 1 0 0 0-1 1v2.66A2.35 2.35 0 0 0 2.5 9.85v.85l.006.162.016.159c.118.86.706 1.567 1.493 1.87V27a1 1 0 0 0 1 1h21.942a1 1 0 0 0 1-.998l.009-3.055q.216-.081.413-.203l.142-.094.134-.103a2.333 2.333 0 0 0 .464-3.074l-1.142-1.747.015-6.24.913-1.292.098-.151c.215-.36.33-.772.33-1.194 0-.93-.545-1.727-1.328-2.109l.007-2.738A1 1 0 0 0 27.015 4"}))))}},81249(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28.015 1a3 3 0 0 1 2.994 2.824l.005.176v13.032l-.332.001.045-.204c.604-2.959-.462-6.066-2.725-7.85l.01-3.976a1 1 0 0 0-.998-1.002h-22a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1H14.5v3H4.015a3.004 3.004 0 0 1-2.995-2.825l-.006-.175V4a3 3 0 0 1 2.824-2.995L4.014 1zM14.498 21v5H7.014a1 1 0 0 1-.993-.883L6.015 25v-3a1 1 0 0 1 .883-.993L7.015 21zm10.515-7.5a1 1 0 0 1 .983.895l.005.117-.017 1.57q-.038.135-.087.267l-.256.684H14.5V18.5l-7.485.001a1 1 0 0 1-.994-.883l-.006-.117v-3a1 1 0 0 1 .883-.993l.117-.007h9.237l-.398 1.064 4.459 1.757.726-1.944c.122-.325.29-.62.493-.878zm0-7.5a1 1 0 0 1 .983.896l.005.116-.01.867C22.801 6.77 19.3 8.188 17.418 11H7.015a1 1 0 0 1-.994-.884L6.015 10V7a1 1 0 0 1 .883-.993l.117-.006z"}),o.createElement("path",{d:"M26.683 18.534H16V31h15V18.534h-2.405l.375-1.003c1.174-3.139-.166-6.938-3.261-8.158s-6.568.683-7.742 3.822l-.192.513 1.667.657.192-.513c.84-2.244 3.301-3.609 5.435-2.768s3.073 3.546 2.234 5.79z"}))))}},92222(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FFCB75",d:"m17.95 2.205 12.82 25.64A2.18 2.18 0 0 1 28.82 31H3.18a2.18 2.18 0 0 1-1.95-3.154l12.82-25.64a2.18 2.18 0 0 1 3.9 0m-1.947 19.763h.006-.006"}),o.createElement("path",{fill:"#4B4B4B",d:"M16.068 28.227h-.037a2.14 2.14 0 0 1-2.13-2.093 2.12 2.12 0 0 1 .598-1.517 2.12 2.12 0 0 1 1.503-.65c1.18 0 2.138.932 2.159 2.093a2.133 2.133 0 0 1-2.093 2.167m-1.94-17.325a1.902 1.902 0 0 1 3.805 0v9.13a1.902 1.902 0 0 1-3.805 0z"}))))}},15658(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M15.41 1.331c.221-.441.946-.441 1.166 0l14.29 28.58a.652.652 0 0 1-.518 1.048H1.652a.65.65 0 0 1-.583-.944ZM16.003 24a2.12 2.12 0 0 0-1.503.65c-.396.408-.609.949-.599 1.517a2.14 2.14 0 0 0 2.13 2.092h.038a2.133 2.133 0 0 0 2.093-2.166C18.14 24.93 17.18 24 16 24m.029-15c-1.05 0-1.903.852-1.903 1.902v9.13a1.902 1.902 0 0 0 3.805 0v-9.13C17.933 9.852 17.08 9 16.03 9"})))}},47237(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"m17.95 2.205 12.82 25.64A2.18 2.18 0 0 1 28.82 31H3.18a2.18 2.18 0 0 1-1.95-3.154l12.82-25.64a2.18 2.18 0 0 1 3.9 0m-1.947 19.763h.006-.006m.065 6.259h-.037a2.14 2.14 0 0 1-2.13-2.093 2.12 2.12 0 0 1 .598-1.517 2.12 2.12 0 0 1 1.503-.65c1.18 0 2.138.932 2.159 2.093a2.133 2.133 0 0 1-2.093 2.167m-1.94-17.325a1.902 1.902 0 0 1 3.805 0v9.13a1.902 1.902 0 0 1-3.805 0z"})))}},38945(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M27.962 19.309A.5.5 0 0 0 27.5 19h-6V1.5A.5.5 0 0 0 21 1h-9a.5.5 0 0 0-.5.5V19h-6a.501.501 0 0 0-.353.854l11 11a.495.495 0 0 0 .707 0l11-11a.5.5 0 0 0 .108-.545"})))}},1955(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.015 27.215C9.83 27.215 4.8 22.185 4.8 16S9.83 4.785 16.015 4.785 27.23 9.816 27.23 16s-5.031 11.215-11.215 11.215m0-26.215c-8.271 0-15 6.73-15 15 0 8.271 6.729 15 15 15 8.27 0 15-6.729 15-15 0-8.27-6.73-15-15-15m3.85 18.158L18.83 21h-.03l-3.005 5.204c.073.001.144.011.218.011 3.3 0 6.23-1.579 8.098-4.014L21.11 17zm-6.997-7.532.342-.61h.01l3.014-5.22c-.074 0-.145-.01-.22-.01-3.3 0-6.23 1.58-8.098 4.013L10.92 15zm-.459 7.947L7.29 10.715A10.159 10.159 0 0 0 6.617 20h6.032zm.8 1.427H7.116a10.23 10.23 0 0 0 7.574 5.12L17.645 21zm12.203-9h-6.029l.095.17 5.261 9.116A10.14 10.14 0 0 0 25.412 12m-.5-1a10.23 10.23 0 0 0-7.572-5.119l-2.956 5.12z"})))}},74821(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M30.514 20a.502.502 0 0 0 .323-.89L16.603.952a.502.502 0 0 0-.748-.003l-14.5 18.218a.499.499 0 0 0 .373.833zm-29 3a.5.5 0 0 0-.5.5v6a.5.5 0 0 0 .5.5h29a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5z"})))}},94678(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m14 18.24 5 5V28h4.76l2.327 2.327c.303.303.656.528 1.033.675L16.01 31l-.158-.006a2.015 2.015 0 0 1-1.83-1.71l-.016-.154-.006-.151zm15.454 12.706-.022.005a2.993 2.993 0 0 0 1.515-1.504 2.02 2.02 0 0 1-1.493 1.499M3.486 7.726 5.55 9.79A12.1 12.1 0 0 0 3.846 16c0 5.495 3.648 10.139 8.654 11.642v1.337l.007.205c.04.549.196 1.06.445 1.507C6.13 29.282 1 23.241 1 16c0-3.058.915-5.902 2.486-8.274M28.99 14l.158.006c.935.073 1.69.79 1.83 1.71l.016.154.006.151.002 11.085a3 3 0 0 0-.673-1.022l-7.122-7.122h2.875V17h-4.837l-3-3zM7.24 11.48l5.261 5.26v8.261A9.72 9.72 0 0 1 7.24 11.48M16 1c7.236 0 13.276 5.124 14.688 11.942a3.4 3.4 0 0 0-1.424-.431l-.274-.011h-1.348C26.14 7.495 21.496 3.847 16 3.847c-2.268 0-4.39.621-6.207 1.703L7.73 3.484A14.93 14.93 0 0 1 16 1m-.104 5.181a9.72 9.72 0 0 1 9.105 6.32l-8.256-.001-5.261-5.261a9.7 9.7 0 0 1 4.412-1.058"}),o.createElement("path",{d:"M1.939 1.936a1.507 1.507 0 0 1 2.012-.098l.114.103L29.27 27.145c.59.59.592 1.538.004 2.126a1.507 1.507 0 0 1-2.012.098l-.114-.103L1.944 4.062a1.5 1.5 0 0 1-.005-2.126"}))))}},86038(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16 1c7.236 0 13.276 5.124 14.688 11.942a3.4 3.4 0 0 0-1.424-.431l-.274-.011h-1.348C26.14 7.495 21.496 3.847 16 3.847 9.288 3.846 3.846 9.288 3.846 16c0 5.495 3.648 10.139 8.654 11.642v1.337l.007.205c.04.549.196 1.06.445 1.507C6.13 29.282 1 23.241 1 16 1 7.716 7.716 1 16 1m-.104 5.181a9.72 9.72 0 0 1 9.105 6.32L16.01 12.5l-.206.007c-1.784.13-3.16 1.51-3.293 3.24l-.01.217V25a9.72 9.72 0 0 1-6.32-9.105c0-5.365 4.35-9.715 9.715-9.715"}),o.createElement("path",{d:"m28.99 14 .158.006c.935.073 1.69.79 1.83 1.71l.016.154.006.151V28.98l-.006.158c-.073.94-.785 1.7-1.7 1.84l-.154.017-.15.006H16.01l-.158-.006a2.015 2.015 0 0 1-1.83-1.71l-.016-.154-.006-.151V16.02l.006-.158c.073-.94.785-1.7 1.7-1.84l.154-.017.15-.006zm-2.908 3H19v11h7.082v-1.963h-4.515v-2.62h3.458V21.53h-3.458v-2.567h4.515z"}))))}},33590(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.35 1c.326 0 .596.247.643.568l.007.099v14.666c0 .335-.24.612-.554.66L30.35 17H5.65a.656.656 0 0 1-.643-.568L5 16.333V1.667c0-.335.24-.612.554-.66L5.65 1zM11.5 2.333H8.9V5h2.6l-.001.5h-.272l-.212.007a3.8 3.8 0 0 0-2.116.818L8.9 5H6.3v2.667h1.543a3.722 3.722 0 0 0-.176 2.668L6.3 10.332V13h2.6l-.001-.862a3.7 3.7 0 0 0 1.95.797l.265.016h.385L11.5 13H8.9v2.667h2.6V13h2.6l-.001-.048h2.6L16.7 13h-2.6v2.667h2.6V13h2.6v-.047l2.6.001V13h2.6v-.123a3.76 3.76 0 0 0 2.6-1.968v2.09l2.6.001v-2.667l-2.366.001a3.714 3.714 0 0 0-.175-2.668H29.7V5h-2.6v2.542a3.73 3.73 0 0 0-2.6-1.971V5h-2.6v.5h-2.6V5h-2.6V2.333h-2.6V5h2.6l-.001.5h-2.6L14.1 5h-2.6zM27.1 13h-2.6v2.667h2.6zm-5.2 0h-2.6v2.667h2.6zm0-10.667h-2.6V5h2.6zm5.2 0h-2.6V5h2.6zM1 2v28a1 1 0 0 0 1 1h.364a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1"}),o.createElement("path",{d:"m23.806 7 .196.011a2.228 2.228 0 0 1-.068 4.438l-.16.005H11.197L11 11.442a2.228 2.228 0 0 1 .068-4.437l.16-.006z"}))))}},72254(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m13.794 2.848-.016.266L13.775 5 11.5 5V2.333H8.9V5h2.6l-.001.773h-.272l-.212.006a3.8 3.8 0 0 0-2.116.818L8.9 5H6.3v2.667h1.684a3.732 3.732 0 0 0-.39 2.667H6.3V13h2.6l-.001-.59c.31.25.663.45 1.045.59H8.9v2.667h2.6v-2.443l2.274.001v2.548l.007.212q.039.535.21 1.016L5.65 17a.656.656 0 0 1-.643-.568L5 16.333V1.667c0-.335.24-.612.554-.66L5.65 1l8.864-.001a3.7 3.7 0 0 0-.72 1.85M30.35 1c.326 0 .596.247.643.568l.007.099v14.666c0 .335-.24.612-.554.66L30.35 17h-9.328q.142-.405.188-.849l.016-.265v-.22h.674v-2.44l1.875.001.212-.006a4 4 0 0 0 .514-.07l-.001 2.516h2.6V13h2.6v-2.667h-2.292a3.73 3.73 0 0 0-.308-2.518v-.148l-.08-.001a3.73 3.73 0 0 0-2.52-1.822V5l-2.6-.001V2.333h-.786a3.8 3.8 0 0 0-.632-1.334zM27.1 11.182V13L25.031 13a3.75 3.75 0 0 0 2.07-1.82m0-8.849h-2.6V5h2.599l.001 2.666h2.6V5h-2.6zM21.228 5h.672v.774l-.672-.001zM1 2v28a1 1 0 0 0 1 1h.364a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1"}),o.createElement("path",{d:"M17.502 1c1.176 0 2.14.913 2.221 2.068l.006.16v4.044l4.077.002.196.01a2.228 2.228 0 0 1-.068 4.437l-.16.006h-4.046v4.077l-.01.196a2.226 2.226 0 0 1-4.437-.068l-.006-.16v-4.045h-4.079L11 11.715a2.228 2.228 0 0 1 .068-4.437l.16-.006h4.047V3.195L15.287 3c.115-1.131 1.07-2 2.216-2"}))))}},17141(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M30.35 1c.359 0 .65.299.65.667v14.666a.66.66 0 0 1-.65.667H5.65a.66.66 0 0 1-.65-.667V1.667C5 1.299 5.291 1 5.65 1ZM11.5 2.333H8.9V5h2.6v2.666H8.9v2.666h2.6V13H8.9v2.667h2.6V13h2.6v-2.667h-2.6V7.666h2.6V5h-2.6zM27.1 13h-2.6v2.667h2.6zh2.6v-2.667h-2.6zM8.899 10.333H6.3V13h2.6zM19.3 7.666v2.667h-2.6V7.666zM8.9 5H6.3v2.667h2.6zm18.2-2.667h-2.6V5h2.6zM24.5 13v-2.667h2.6V7.667h2.6V5h-2.6v2.666h-2.6V5h-2.6v2.666h2.6v2.667h-2.6V13h-2.6v-2.667h2.6V7.666h-2.6V5h2.6V2.333h-2.6V5h-2.6V2.333h-2.6V5h2.6v2.666h-2.6v2.667h2.6V13h-2.6v2.667h2.6V13h2.6v2.667h2.6V13zM1 2v28a1 1 0 0 0 1 1h.364a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1"})))}},41252(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m1 31 22-15L1 1z"}),o.createElement("path",{fillOpacity:.4,d:"M9 5.244V1l22 15L9 31v-4.244L24.775 16z"}))))}},43108(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M25 31h6V1h-6zM21 1 1 16l20 15z"})))}},44372(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M7 31H1V1h6zm4-30 20 15-20 15z"})))}},96098(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M27.897 11.884a1.55 1.55 0 0 0 1.55 1.55c.856 0 1.55-.693 1.55-1.55V2.549a1.7 1.7 0 0 0-.03-.299c-.014-.056-.014-.056-.02-.074l-.029-.096a.9.9 0 0 0-.11-.257 1 1 0 0 0-.072-.13 1.5 1.5 0 0 0-.422-.425 1 1 0 0 0-.117-.067l-.05-.027-.05-.027-.056-.026a1 1 0 0 0-.123-.041l-.112-.034-.057-.015a1.7 1.7 0 0 0-.303-.03h-9.333a1.549 1.549 0 1 0 0 3.1h5.592l-7.951 7.951a1.55 1.55 0 0 0 2.192 2.192l7.95-7.95zM4.1 20.114a1.549 1.549 0 1 0-3.1 0L1 29.451q.001.155.03.299c.014.056.014.056.02.073l.03.097a.9.9 0 0 0 .109.257 1 1 0 0 0 .072.13c.112.169.259.316.423.425.033.024.062.04.116.067l.05.027.05.027.056.026a4.138 4.138 0 0 0 .235.075l.057.015q.147.028.304.03h9.333a1.549 1.549 0 0 0 1.096-2.647 1.55 1.55 0 0 0-1.096-.454H6.293l7.95-7.953a1.551 1.551 0 0 0-2.192-2.192l-7.95 7.952z"})))}},24934(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M31 31h-6V1h6zM1 1l20 15L1 31z"}))))}},6234(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M1 31V1h9v3.348c0 .271-.178.51-.436.585L4 7.242v17.062l5.564 2.309a.61.61 0 0 1 .436.585V31z"}),o.createElement("path",{d:"M29.592 29.995q-.037.005-.072.005a.58.58 0 0 1-.565-.452c-.024-.105-2.497-10.299-13.835-10.635v2.322a.579.579 0 0 1-.949.45l-6.96-5.776a.585.585 0 0 1-.005-.895l6.96-5.878a.58.58 0 0 1 .954.446v2.34c14.454.44 14.976 17.31 14.98 17.483a.58.58 0 0 1-.508.59"}))))}},30157(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M31 31V1h-9v3.348c0 .271.178.51.436.585L28 7.242v17.062l-5.564 2.309a.61.61 0 0 0-.436.585V31z"}),o.createElement("path",{d:"M2.508 29.995 2.58 30a.58.58 0 0 0 .565-.452c.024-.105 2.497-10.299 13.835-10.635v2.322a.579.579 0 0 0 .949.45l6.96-5.776a.585.585 0 0 0 .005-.895l-6.96-5.878a.58.58 0 0 0-.954.446v2.34C2.526 12.361 2.004 29.231 2 29.404c-.007.299.214.553.508.59"}))))}},95085(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M1 31h6V1H1zM31 1 11 16l20 15z"}))))}},25694(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M31.015 7v21c0 1.654-1.346 3-3 3h-24c-1.654 0-3-1.346-3-3V7zm-16 6h-11v12h10.972zm13 0h-11v12h10.972zm0-12h-24c-1.654 0-3 1.346-3 3v2h30V4c0-1.654-1.346-3-3-3"})))}},26962(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m1.014 5.253 3 3v18.748a1 1 0 0 0 1 1L23.76 28l2.327 2.327c.303.303.656.528 1.033.675L4.014 31a3.004 3.004 0 0 1-2.994-2.824l-.006-.175zm27-4.252a3 3 0 0 1 2.995 2.823l.006.176v23.141a3 3 0 0 0-.686-1.057l-2.364-2.365.047-18.716a1 1 0 0 0-.998-1.002L8.244 4l-3-3z"}),o.createElement("path",{fillOpacity:.4,d:"m18.76 23 3 3H7a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm-5-5L15 19.24V20a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zM25 18a1 1 0 0 1 1 1v1a1 1 0 0 1-.78.976L22.246 18zm-5-7a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1.754l-3.001-3zm0-5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-6.755l-2.22-2.22A1 1 0 0 1 12 6z"}),o.createElement("path",{d:"M1.939 1.936a1.507 1.507 0 0 1 2.012-.098l.114.103L29.27 27.145c.59.59.592 1.538.004 2.126a1.507 1.507 0 0 1-2.012.098l-.114-.103L1.944 4.062a1.5 1.5 0 0 1-.005-2.126"}))))}},79289(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28.015 1a3 3 0 0 1 3 3v24c0 1.654-1.346 3-3 3h-24c-1.654 0-3-1.346-3-3V4a3 3 0 0 1 3-3Zm-1 3h-22a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h21.942a1 1 0 0 0 1-.997l.055-22a1 1 0 0 0-.998-1.002"}),o.createElement("path",{d:"M12 6h8a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1m0 5h8a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m6 7h7a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1M7 18h7a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m0 5h18a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1"}))))}},5757(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M10.5 1.5v3.348l-.008.1a.6.6 0 0 1-.428.485l-.495.205a3.15 3.15 0 0 0-3.15.786l-.136.145a3 3 0 0 0-.42.606L4.5 7.742v17.062l1.966.816.107.101a3.14 3.14 0 0 0 2.008.778l1.483.614.093.035a.61.61 0 0 1 .343.55V31.5h-9v-30zm21 0v30h-9v-3.802l.008-.1a.61.61 0 0 1 .335-.45l.093-.035 5.564-2.309V7.742l-2.76-1.146a3.133 3.133 0 0 0-2.618-1.088l-.186-.075-.093-.036a.6.6 0 0 1-.335-.45l-.008-.1V1.5z"}),o.createElement("path",{d:"M9.808 7.482 16 13.674l6.19-6.19a1.644 1.644 0 1 1 2.328 2.324L18.326 16l6.192 6.192a1.645 1.645 0 1 1-2.326 2.326L16 18.326l-6.192 6.192a1.644 1.644 0 1 1-2.326-2.326L13.674 16 7.482 9.808a1.644 1.644 0 1 1 2.326-2.326"}))))}},74512(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M15.743 1c.936 0 1.82.895 1.82 1.842v12.632c0 .134.1.246.232.262a.26.26 0 0 0 .282-.204l2.21-10.03c.193-.911 1.12-1.525 2.028-1.327.446.098.828.365 1.075.752.247.388.331.85.234 1.309l-2.121 11.708a.261.261 0 0 0 .475.189l3.571-5.69a1.693 1.693 0 0 1 2.35-.57 1.738 1.738 0 0 1 .552 2.39l-2.81 5.34a7.55 7.55 0 0 0-.864 3.5c0 5.388-1.793 7.897-5.642 7.897h-4.59a5.63 5.63 0 0 1-4.063-1.743l-6.928-9.328a1.72 1.72 0 0 1-.542-1.486l2.138-1.457c.262.072.507.207.715.4l3.917 3.458c.082.073.2.085.296.033a.26.26 0 0 0 .133-.269l-.922-6.444 3.421-2.333.697 3.692a.26.26 0 0 0 .215.21l.065.003a.26.26 0 0 0 .235-.262v-4.469L16.129 9.5l-2.207-1.505V2.842c0-.9.8-1.752 1.681-1.835ZM9.397 3.694c.908-.2 1.835.415 2.028 1.319L11.7 6.48 8.453 4.266a1.7 1.7 0 0 1 .78-.528Z"}),o.createElement("path",{d:"m1 1 12.467 8.5L1 18z"}))))}},91295(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M21 1v3.348c0 .271-.178.51-.436.585L15 7.242v17.062l5.564 2.309a.61.61 0 0 1 .436.585V31h-9V1z"})))}},10346(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M21 1h-9v3.348c0 .271.178.51.436.585L18 7.242v17.062l-5.564 2.309a.61.61 0 0 0-.436.585V31h9z"})))}},51279(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M24.29 1a.968.968 0 0 1 0 1.935H22.84V8.26c-.008 1.7-.472 3.33-1.342 4.717a8.4 8.4 0 0 1-3.3 3.017c2.83 1.438 4.626 4.34 4.642 7.746v5.325h1.451a.968.968 0 0 1 0 1.935H3.968a.968.968 0 0 1 0-1.935h1.451v-5.323c0-3.352 1.826-6.278 4.665-7.734a8.45 8.45 0 0 1-3.401-3.154 8.85 8.85 0 0 1-1.264-4.596V2.935H3.968a.968.968 0 0 1 0-1.935zM14.13 16.968c-3.803 0-6.774 2.97-6.774 6.774v.484h2.986l3.103-3.103a.967.967 0 0 1 1.37 0l3.103 3.103h2.986v-.482c-.019-3.87-2.924-6.776-6.774-6.776m6.774-14.033H7.355v5.323c0 1.102.25 2.172.729 3.125H20.17c.475-.951.727-2.02.732-3.127z"})))}},55852(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M14 25.009c0 1.1-.898 1.991-1.998 1.991H9.998A1.993 1.993 0 0 1 8 25.009V6.99C8 5.891 8.898 5 9.998 5h2.004C13.106 5 14 5.89 14 6.991zm11 0c0 1.1-.898 1.991-1.998 1.991h-2.004A1.993 1.993 0 0 1 19 25.009V6.99C19 5.891 19.898 5 20.998 5h2.004C24.106 5 25 5.89 25 6.991z"})))}},37595(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M11.624 6.051 27 15.998V16L11.321 26.146a2.1 2.1 0 0 0-.534-.36l-.15-.062-.043-.015-.594-.248V7.081l.603-.249.031-.01c.41-.152.751-.425.99-.77"}),o.createElement("path",{fillOpacity:.4,d:"M10.5 1.5h-9v30h9v-3.802a.61.61 0 0 0-.343-.55l-.093-.035L4.5 24.804V7.742l5.564-2.31a.6.6 0 0 0 .428-.484l.008-.1zm21 0h-9v3.348l.008.1a.6.6 0 0 0 .335.45l.093.035L28.5 7.742v17.062l-5.564 2.309-.093.035a.61.61 0 0 0-.335.45l-.008.1V31.5h9z"}))))}},43268(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"m5 31 22-15L5 1z"})))}},75239(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m22.924 24.571 2.357-1.607-2.357-1.607h3.79c.592 0 1.072-.48 1.072-1.071v-15c0-.592-.48-1.072-1.072-1.072H5.286c-.592 0-1.072.48-1.072 1.072v15c0 .591.48 1.071 1.072 1.071h3.75v3.214H4.214A3.214 3.214 0 0 1 1 21.357V4.214A3.214 3.214 0 0 1 4.214 1h23.572A3.214 3.214 0 0 1 31 4.214v17.143a3.214 3.214 0 0 1-3.214 3.214z"}),o.createElement("path",{d:"M10.643 31V14.929l11.786 8.035z"}))))}},90335(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16 1c8.284 0 15 6.716 15 15 0 2.299-.517 4.477-1.441 6.424v-1.788l-.007-.21-.017-.212a4.27 4.27 0 0 0-1.465-2.791q.084-.701.084-1.423c0-6.712-5.442-12.154-12.154-12.154S3.846 9.288 3.846 16c0 1.462.259 2.863.732 4.162a3.7 3.7 0 0 0-.952.685L3.48 21a3.84 3.84 0 0 0-.89 1.731A14.95 14.95 0 0 1 1 16C1 7.716 7.716 1 16 1"}),o.createElement("path",{fillOpacity:.4,d:"M8.83 9.727v10.938l-.206-.165a3.9 3.9 0 0 0-1.62-.686 9.7 9.7 0 0 1-.823-3.918c0-2.6 1.022-4.962 2.686-6.705a4 4 0 0 0-.036.536m7.066-3.546c5.366 0 9.715 4.35 9.715 9.715q0 .262-.014.522a4 4 0 0 0-.266-.009h-.627l-.1-.122c-.694-.793-1.652-1.242-2.682-1.242h-1.309l-.1-.122c-.694-.793-1.652-1.241-2.682-1.241l-.887-.001V8.027l-.297-.508c-.341-.54-.78-.988-1.286-1.324q.266-.014.535-.014"}),o.createElement("path",{d:"M13.058 7c.97 0 1.812.514 2.295 1.278l.091.157v10.838a.341.341 0 0 0 .675.068l.007-.068v-4.091h1.705c.654 0 1.234.311 1.608.79l.096.136v3.165a.341.341 0 0 0 .675.068l.007-.068v-2.728h1.705c.654 0 1.234.312 1.608.792l.096.134v5.21a.341.341 0 0 0 .675.07l.007-.07V17.91h1.023a2.73 2.73 0 0 1 2.722 2.561l.005.166v4.228c0 1.163-.142 2.321-.422 3.45l-.129.482-.63 2.204H8.106l-1.844-3.036L4.4 24.835c-.621-.877-.514-2.127.287-2.928.787-.787 2.115-.876 3.008-.23l.138.109 2.498 2.14V9.728A2.73 2.73 0 0 1 13.058 7"}))))}},68489(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16 1c8.284 0 15 6.716 15 15q0 .666-.057 1.318a4.2 4.2 0 0 0-2.612-.909h-.184q.007-.203.007-.409c0-6.712-5.442-12.154-12.154-12.154S3.846 9.288 3.846 16c0 2.356.67 4.555 1.83 6.417a3.74 3.74 0 0 0 .385 3.112l.069.104 1.786 3.005C3.756 25.97 1 21.308 1 16 1 7.716 7.716 1 16 1m-4.17 7.557v12.108l-.206-.165c-1.313-.953-3.068-.979-4.367-.157a9.7 9.7 0 0 1-1.076-4.447 9.72 9.72 0 0 1 5.994-8.977 4 4 0 0 0-.344 1.638m13.747 6.515.001.035a3.5 3.5 0 0 0-.656-.062h-1.309l-.1-.122c-.694-.793-1.652-1.241-2.682-1.241l-.887-.001V8.557c0-.586-.124-1.144-.348-1.647a9.72 9.72 0 0 1 5.98 8.162"}),o.createElement("path",{d:"M18.444 8.557v10.716a.341.341 0 0 0 .675.068l.007-.068v-4.091h1.705c.654 0 1.234.311 1.608.79l.096.136v3.165a.341.341 0 0 0 .675.068l.007-.068v-2.728h1.705c.654 0 1.234.312 1.608.792l.096.134v5.21a.341.341 0 0 0 .675.07l.007-.07V17.91h1.023a2.73 2.73 0 0 1 2.722 2.561l.005.166v4.228c0 1.163-.142 2.321-.422 3.45l-.129.482-.63 2.204H11.106l-1.844-3.036L7.4 24.835c-.621-.877-.514-2.127.287-2.928.787-.787 2.115-.876 3.008-.23l.138.109 2.498 2.14V8.557a2.557 2.557 0 0 1 5.113 0"}))))}},21681(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16 1c8.284 0 15 6.716 15 15q0 .281-.01.56a1.86 1.86 0 0 0-.505-.924l-2.122-2.121-.126-.115-.133-.102a2 2 0 0 0-.291-.166C26.524 7.804 21.724 3.846 16 3.846 9.288 3.846 3.846 9.288 3.846 16c0 5.725 3.958 10.525 9.287 11.813.093.205.223.395.387.557l2.116 2.115.125.115.133.1c.207.144.439.24.679.29Q16.288 31 16 31C7.716 31 1 24.284 1 16S7.716 1 16 1m3 28.771v.854l.002.074q-.683.14-1.388.215c.248-.09.48-.234.676-.432zm-3.104-23.59c4.659 0 8.551 3.279 9.496 7.655l-.392.39v-.851l-.006-.147a1.875 1.875 0 0 0-1.869-1.728h-2.25l-.147.006-.15.017A1.876 1.876 0 0 0 19 13.375v.852l-.713-.712-.126-.116a1.874 1.874 0 0 0-2.528.119l-2.118 2.118-.116.126-.101.133a1.876 1.876 0 0 0 .214 2.39l.715.715h-.852l-.147.006a1.875 1.875 0 0 0-1.728 1.869v2.25l.006.147.017.15A1.876 1.876 0 0 0 13.375 25h.851l-.39.392c-4.376-.945-7.655-4.837-7.655-9.496 0-5.365 4.35-9.715 9.715-9.715M30.7 19.003 30.625 19h-.853l.713-.713.111-.121c.136-.162.243-.345.317-.54q-.076.699-.214 1.377"}),o.createElement("path",{d:"M22 25c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3-1.346 3-3 3m8.625-4.5h-2.141c-.15-.593-.34-1.25-.584-1.748l1.524-1.525a.375.375 0 0 0 0-.53l-2.122-2.121a.374.374 0 0 0-.53 0L25.248 16.1c-.498-.243-1.156-.434-1.748-.583v-2.142a.375.375 0 0 0-.375-.375h-2.25a.375.375 0 0 0-.375.375v2.142c-.593.15-1.25.34-1.748.583l-1.525-1.524a.374.374 0 0 0-.53 0l-2.122 2.12a.375.375 0 0 0 0 .531l1.525 1.525c-.242.497-.434 1.155-.585 1.748h-2.14a.375.375 0 0 0-.375.375v2.25c0 .207.168.375.375.375h2.14c.151.593.343 1.252.585 1.748l-1.525 1.525a.375.375 0 0 0 0 .53l2.122 2.121c.14.141.39.141.53 0l1.524-1.524c.497.242 1.156.434 1.749.585v2.14c0 .207.168.375.375.375h2.25a.375.375 0 0 0 .375-.375v-2.14c.593-.151 1.251-.343 1.748-.585l1.525 1.524a.374.374 0 0 0 .53 0l2.121-2.12a.374.374 0 0 0 0-.531L27.9 25.248c.242-.496.434-1.155.584-1.748h2.141a.375.375 0 0 0 .375-.375v-2.25a.375.375 0 0 0-.375-.375"}))))}},47133(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M16 28.154c6.712 0 12.154-5.442 12.154-12.154S22.712 3.846 16 3.846 3.846 9.288 3.846 16 9.288 28.154 16 28.154M16 31C7.716 31 1 24.284 1 16S7.716 1 16 1s15 6.716 15 15-6.716 15-15 15"}),o.createElement("path",{fillOpacity:.4,d:"M15.896 6.181c5.366 0 9.715 4.35 9.715 9.715s-4.35 9.715-9.715 9.715-9.715-4.35-9.715-9.715 4.35-9.715 9.715-9.715"}))))}},68567(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m16.605 22.396 1.092.744-.004.354.006.47q.044 2.092.516 3.726l.016.058-1.626-1.108zM31 1v15.221l-.062-.083a6.7 6.7 0 0 0-2.239-1.86l-.29-.14a7.46 7.46 0 0 0-3.073-.638c-1.092 0-2.12.213-3.067.641-.975.44-1.816 1.114-2.51 2.001-.674.86-1.185 1.916-1.544 3.156a13.4 13.4 0 0 0-.464 2.668l-1.146-.78.001-7.515h-4.19zm-8 0v4.244L7.225 16l.903.616-2.79 2.341L1 16z"}),o.createElement("path",{d:"M17.846 31.817V29.26h-2.74V15.17h-2.923L7 19.521l1.119 1.484q.114.15.348.28.234.132.531.131.171 0 .354-.062.183-.063.365-.212l1.884-1.564q-.034.675-.034 1.29v8.392H8.37v2.557zm7.49.183a5.9 5.9 0 0 0 2.46-.514q1.136-.514 1.964-1.564t1.296-2.649.468-3.779-.468-3.779-1.296-2.649-1.964-1.558a6 6 0 0 0-2.46-.508q-1.325 0-2.45.508-1.124.508-1.946 1.558t-1.284 2.65-.463 3.778.463 3.78 1.284 2.648 1.947 1.564 2.449.514m0-2.843q-.468 0-.92-.234-.45-.234-.798-.868-.35-.633-.56-1.73t-.211-2.83q0-1.725.211-2.826.21-1.102.56-1.73.348-.628.799-.862.45-.234.919-.234.468 0 .925.234.456.234.816.862t.576 1.73.217 2.825q0 1.735-.217 2.832-.216 1.095-.576 1.73-.36.633-.816.867a2 2 0 0 1-.925.234"}))))}},23645(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M12.96 32q1.152 0 2.215-.325a5.5 5.5 0 0 0 1.866-.977 4.74 4.74 0 0 0 1.285-1.632q.48-.983.48-2.306 0-2.797-2.764-3.757a4.6 4.6 0 0 0 1.056-.513q.463-.309.777-.748.314-.44.474-1.04.16-.599.16-1.386 0-.869-.343-1.65a4 4 0 0 0-1.005-1.376q-.662-.594-1.621-.942Q14.58 15 13.348 15q-1.142 0-2.135.303a5.2 5.2 0 0 0-1.764.919 5.2 5.2 0 0 0-1.29 1.54q-.519.925-.702 2.17l1.872.331a3.5 3.5 0 0 0 .514.046q.48 0 .76-.228.28-.229.461-.743a2.4 2.4 0 0 1 .303-.57q.189-.263.451-.457a2.2 2.2 0 0 1 1.324-.422q.97 0 1.445.53.474.532.473 1.513 0 .48-.114.88-.114.399-.462.679t-.988.44-1.678.159v2.443q1.233 0 1.924.166.69.165 1.033.474.342.307.417.736.075.428.074.965 0 .411-.148.81a2.1 2.1 0 0 1-.44.714q-.292.314-.73.514-.44.2-1.034.2-.777 0-1.353-.429-.576-.428-1.09-1.375a.97.97 0 0 0-.44-.417 1.5 1.5 0 0 0-.656-.143q-.194 0-.394.034a1.7 1.7 0 0 0-.405.126L7 27.548q.399 1.164.942 2.009a5.3 5.3 0 0 0 1.261 1.387q.72.542 1.645.8.924.255 2.112.256m13.038 0a5.9 5.9 0 0 0 2.46-.514q1.136-.514 1.964-1.564t1.296-2.649.468-3.779-.468-3.779-1.296-2.649-1.964-1.558a6 6 0 0 0-2.46-.508q-1.325 0-2.449.508-1.125.508-1.947 1.558t-1.284 2.65-.462 3.778.462 3.78 1.284 2.648 1.947 1.564 2.449.514m0-2.843q-.468 0-.92-.234-.45-.234-.798-.868-.348-.633-.56-1.73-.21-1.096-.21-2.83 0-1.725.21-2.826.212-1.102.56-1.73t.799-.862q.45-.234.919-.234.468 0 .925.234.456.234.816.862t.577 1.73.217 2.825q0 1.735-.217 2.832-.217 1.095-.577 1.73-.36.633-.816.867a2 2 0 0 1-.925.234"}),o.createElement("path",{fillOpacity:.4,d:"M10.317 21.773v.58l-.82-.559q.081.007.161.01l.185.005.212-.007.105-.008.103-.012zM23 1v4.244L9.79 14.25a6.6 6.6 0 0 0-1.658 1.13L7.225 16l.21.145a7 7 0 0 0-.584.883 7.5 7.5 0 0 0-.818 2.323l-.012.072L1 16zm8 0 .002 14.466a6.5 6.5 0 0 0-1.931-1.327 7.46 7.46 0 0 0-3.073-.639c-1.092 0-2.12.213-3.067.641-.975.44-1.815 1.114-2.51 2.001a8 8 0 0 0-.768 1.2 5.474 5.474 0 0 0-1.49-2.168c-.59-.53-1.297-.94-2.111-1.236-.812-.295-1.715-.438-2.704-.438q-.366 0-.72.026z"}))))}},66091(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M31 31 9 16 31 1z"}),o.createElement("path",{fillOpacity:.4,d:"M23 5.244V1L1 16l22 15v-4.244L7.225 16z"}))))}},99126(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28.015 1a3 3 0 0 1 3 3v24c0 1.654-1.346 3-3 3h-24c-1.654 0-3-1.346-3-3V4a3 3 0 0 1 3-3Zm-1 3h-22a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h21.942a1 1 0 0 0 1-.997l.055-22a1 1 0 0 0-.998-1.002"}),o.createElement("path",{d:"M25.014 21a1 1 0 0 1 .988 1.012l-.035 3a1 1 0 0 1-1 .988H7.015a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1Zm0-7.5a1 1 0 0 1 .988 1.012l-.035 3a1 1 0 0 1-1 .988H7.015a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1Zm0-7.5a1 1 0 0 1 .988 1.012l-.035 3a1 1 0 0 1-1 .989H7.015a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Z"}))))}},23979(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.5 12a1.5 1.5 0 0 1 0 3h-4a1.5 1.5 0 0 1 0-3zM14.04 1c1.3 0 2.722 1.014 3.235 2.31l4.535 8.91c.289.727.247 1.453-.114 1.99-.337.502-.923.79-1.608.79l-7.849-.001V9.5H6.682l-2.419 2.03L1.19 3.782C.901 3.054.943 2.33 1.304 1.79 1.64 1.29 2.227 1 2.912 1zM29.5 6.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zm0-5.5a1.5 1.5 0 0 1 0 3h-9a1.5 1.5 0 0 1 0-3z"}),o.createElement("path",{d:"M2.646 27.927V31h11.386v-3.073h-3.293V11H7.228L1 16.226l1.344 1.784q.137.177.419.336.28.157.638.157.205 0 .425-.075a1.5 1.5 0 0 0 .439-.254l2.263-1.88q-.04.81-.041 1.551v10.082z"}))))}},16086(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.5 12a1.5 1.5 0 0 1 0 3h-4a1.5 1.5 0 0 1 0-3zM14.04 1c1.3 0 2.722 1.014 3.235 2.31l4.535 8.91c.289.727.247 1.453-.114 1.99-.337.502-.923.79-1.608.79l-4.345-.001a7 7 0 0 0-.34-1.034 6.6 6.6 0 0 0-1.63-2.337c-.7-.645-1.535-1.143-2.495-1.494q-1.429-.522-3.144-.52-1.57 0-2.966.426a8 8 0 0 0-1.29.52L1.19 3.781C.901 3.054.943 2.33 1.304 1.79 1.64 1.29 2.227 1 2.912 1zM29.5 6.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zm0-5.5a1.5 1.5 0 0 1 0 3h-9a1.5 1.5 0 0 1 0-3z"}),o.createElement("path",{d:"M8.134 11.115q-1.35 0-2.527.36-1.176.36-2.088 1.092A6.2 6.2 0 0 0 1.992 14.4q-.615 1.1-.83 2.58l2.215.394a4 4 0 0 0 .609.054q.568 0 .898-.271.331-.272.548-.883.135-.366.358-.679t.533-.543q.312-.23.703-.367.392-.135.865-.135 1.149 0 1.71.631.56.63.56 1.813 0 .72-.175 1.364-.176.645-.527 1.29t-.892 1.31-1.27 1.399L1.62 28.1a2 2 0 0 0-.568.815 2.5 2.5 0 0 0-.162.842v1.357h13.838v-2.443q0-.612-.392-.985t-1.068-.373H9.594q-.636 0-1.358.129t-1.467.346l3.852-3.965a47 47 0 0 0 1.48-1.582q.695-.78 1.222-1.615a8 8 0 0 0 .832-1.759 6.4 6.4 0 0 0 .304-2.01q0-1.261-.44-2.314a5.1 5.1 0 0 0-1.263-1.813q-.825-.76-1.993-1.188-1.17-.428-2.629-.428"}))))}},20593(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.5 12a1.5 1.5 0 0 1 0 3h-4a1.5 1.5 0 0 1 0-3zM14.04 1c1.3 0 2.722 1.014 3.235 2.31l4.535 8.91c.289.727.247 1.453-.114 1.99-.337.502-.923.79-1.608.79l-4.03-.001a6.178 6.178 0 0 0-2.01-3.602c-.673-.598-1.48-1.063-2.412-1.399-.93-.335-1.967-.498-3.108-.498q-1.57 0-2.966.42a8 8 0 0 0-1.656.71L1.19 3.782C.901 3.054.943 2.33 1.304 1.79 1.64 1.29 2.227 1 2.912 1zM29.5 6.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zm0-5.5a1.5 1.5 0 0 1 0 3h-9a1.5 1.5 0 0 1 0-3z"}),o.createElement("path",{d:"M8.528 11q-1.355 0-2.532.356a6.2 6.2 0 0 0-2.092 1.081 6.2 6.2 0 0 0-1.53 1.814q-.615 1.088-.832 2.552l2.22.39a4 4 0 0 0 .61.053q.568 0 .9-.269.331-.268.548-.873.135-.363.359-.671.223-.31.535-.538a2.6 2.6 0 0 1 1.57-.497q1.151 0 1.713.625t.562 1.78q0 .564-.135 1.034a1.56 1.56 0 0 1-.549.799q-.412.33-1.17.517-.76.188-1.991.188v2.875q1.462 0 2.281.194.82.195 1.226.558.405.363.494.866.087.504.088 1.135a2.7 2.7 0 0 1-.176.954 2.5 2.5 0 0 1-.522.84 2.7 2.7 0 0 1-.866.604q-.522.234-1.225.235-.922 0-1.605-.504-.684-.504-1.293-1.618a1.15 1.15 0 0 0-.521-.49 1.76 1.76 0 0 0-.779-.169q-.23 0-.467.04a2 2 0 0 0-.48.148L1 25.762q.474 1.369 1.117 2.364a6.3 6.3 0 0 0 1.496 1.632 5.8 5.8 0 0 0 1.95.94Q6.659 31 8.068 31a9 9 0 0 0 2.626-.383 6.5 6.5 0 0 0 2.214-1.148 5.6 5.6 0 0 0 1.523-1.921q.57-1.155.569-2.713 0-3.29-3.277-4.42.705-.24 1.253-.604.548-.362.92-.88.373-.517.562-1.222t.19-1.632q0-1.02-.406-1.94a4.7 4.7 0 0 0-1.192-1.62q-.785-.697-1.922-1.107t-2.6-.41"}))))}},13916(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.5 12a1.5 1.5 0 0 1 0 3h-4a1.5 1.5 0 0 1 0-3zM14.04 1c1.3 0 2.722 1.014 3.235 2.31l4.535 8.91c.289.727.247 1.453-.114 1.99-.337.502-.923.79-1.608.79h-4.192V9.5H9.579l-3.572 4.802c-.564-.413-1.032-.978-1.284-1.61L1.19 3.781C.901 3.054.943 2.33 1.304 1.79 1.64 1.29 2.227 1 2.912 1zM29.5 6.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zm0-5.5a1.5 1.5 0 0 1 0 3h-9a1.5 1.5 0 0 1 0-3z"}),o.createElement("path",{d:"M14.396 23.23h2.06v2.39q0 .315-.214.548-.213.234-.61.234h-1.236V31H10.69v-4.598H2.646q-.399 0-.72-.248a1.05 1.05 0 0 1-.406-.617l-.439-2.1L10.333 11h4.063zm-3.706-5.216q0-.48.034-1.036t.103-1.146L5.542 23.23h5.148z"}))))}},82143(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.5 12a1.5 1.5 0 0 1 0 3h-4a1.5 1.5 0 0 1 0-3zM14.04 1c1.3 0 2.722 1.014 3.235 2.31l4.535 8.91c.289.727.247 1.453-.114 1.99-.337.502-.923.79-1.608.79l-5.468.002q.369-.417.57-.938a3.7 3.7 0 0 0 .236-1.326V9.5H3.458L1.19 3.782C.901 3.054.943 2.33 1.304 1.79 1.64 1.29 2.227 1 2.912 1zM29.5 6.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zm0-5.5a1.5 1.5 0 0 1 0 3h-9a1.5 1.5 0 0 1 0-3z"}),o.createElement("path",{d:"M13.926 12.738V11H3.797l-1.684 9.898 2.607.706a7.1 7.1 0 0 1 2.607-.502q1.494 0 2.308.753.816.754.815 2.193 0 .733-.17 1.378t-.543 1.127a2.6 2.6 0 0 1-.97.76q-.598.279-1.44.279t-1.412-.217a6 6 0 0 1-.998-.482l-.787-.49a1.43 1.43 0 0 0-.767-.223q-.313 0-.584.142-.272.144-.476.415L1 28.475a9.4 9.4 0 0 0 1.181.97 8.8 8.8 0 0 0 3.062 1.351 8 8 0 0 0 1.84.204q1.656 0 3.048-.523a7.05 7.05 0 0 0 2.396-1.473 6.7 6.7 0 0 0 1.569-2.26q.563-1.31.563-2.9 0-1.262-.414-2.369a5.4 5.4 0 0 0-1.229-1.928q-.815-.821-2.01-1.296t-2.755-.476q-.489 0-1.005.048-.516.047-1.073.142l.557-3.272h4.725q.665 0 1.14-.142.476-.143.768-.408.292-.264.427-.618.136-.352.136-.787"}))))}},66938(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.5 12a1.5 1.5 0 0 1 0 3h-4a1.5 1.5 0 0 1 0-3zM14.04 1c1.3 0 2.722 1.014 3.235 2.31l4.535 8.91c.289.727.247 1.453-.114 1.99-.337.502-.923.79-1.608.79h-7.774l2.545-3.037L16.92 9.5H9.96a4.7 4.7 0 0 0-1.991.419c-.614.286-1.112.667-1.472 1.158L4.955 13.16a3 3 0 0 1-.232-.469L1.19 3.782C.901 3.054.943 2.33 1.304 1.79 1.64 1.29 2.227 1 2.912 1zM29.5 6.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zm0-5.5a1.5 1.5 0 0 1 0 3h-9a1.5 1.5 0 0 1 0-3z"}),o.createElement("path",{d:"M9.445 18.25a6.6 6.6 0 0 1 2.118.354 5.4 5.4 0 0 1 1.874 1.086q.828.733 1.338 1.853t.509 2.641q0 1.385-.516 2.627a6.5 6.5 0 0 1-1.46 2.173 6.9 6.9 0 0 1-2.274 1.473Q9.703 31 8.088 31q-1.657 0-2.974-.523a6.4 6.4 0 0 1-2.233-1.46 6.3 6.3 0 0 1-1.399-2.24Q1 25.474 1 23.912q0-1.479.57-2.946.57-1.466 1.684-2.987l4.453-6.015q.3-.408.897-.686T9.96 11h3.748l-5.866 7.006q-.135.15-.265.306l-.25.305q.474-.177.997-.271a6.3 6.3 0 0 1 1.12-.095m-4.399 6.233q0 .732.177 1.317.176.584.543 1.004.366.421.923.645t1.317.224q.652 0 1.215-.244.564-.245.971-.672t.645-1.005q.237-.576.238-1.256 0-.76-.224-1.358a2.8 2.8 0 0 0-.632-1.004q-.407-.408-.984-.625a3.6 3.6 0 0 0-1.283-.217q-.639 0-1.168.224-.53.224-.916.645-.387.42-.605 1.005-.216.584-.217 1.317"}))))}},53973(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.5 12a1.5 1.5 0 0 1 0 3h-4a1.5 1.5 0 0 1 0-3zM14.04 1c1.3 0 2.722 1.014 3.235 2.31l4.535 8.91c.289.727.247 1.453-.114 1.99-.337.502-.923.79-1.608.79H16.12q.093-.232.185-.495c.174-.491.25-1.06.25-1.72V9.5H3.458L1.19 3.782C.901 3.054.943 2.33 1.304 1.79 1.64 1.29 2.227 1 2.912 1zM29.5 6.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zm0-5.5a1.5 1.5 0 0 1 0 3h-9a1.5 1.5 0 0 1 0-3z"}),o.createElement("path",{d:"M15.056 11H1v2.8a.8.8 0 0 0 .082.35q.082.172.213.302a1 1 0 0 0 .302.206q.172.076.364.076h8.799q-.398.424-.735.892a7 7 0 0 0-.624 1.057L2.263 31h3.102q.879 0 1.414-.405.536-.405.81-.995l6.987-14.798q.15-.33.316-.796.165-.466.164-1.222z"}))))}},19808(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.5 12a1.5 1.5 0 0 1 0 3h-4a1.5 1.5 0 0 1 0-3zM14.04 1c1.3 0 2.722 1.014 3.235 2.31l4.535 8.91c.289.727.247 1.453-.114 1.99-.337.502-.923.79-1.608.79H15.69a6.2 6.2 0 0 0-.486-1.435 6.55 6.55 0 0 0-1.701-2.182 7.9 7.9 0 0 0-2.475-1.388Q9.617 9.499 7.985 9.5q-1.633 0-3.045.495a9 9 0 0 0-1.099.474l-2.65-6.687C.9 3.054.942 2.33 1.303 1.79 1.64 1.29 2.227 1 2.912 1zM29.5 6.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zm0-5.5a1.5 1.5 0 0 1 0 3h-9a1.5 1.5 0 0 1 0-3z"}),o.createElement("path",{d:"M7.985 31q-1.559 0-2.848-.416-1.29-.417-2.21-1.176a5.2 5.2 0 0 1-1.423-1.833Q1 26.5 1 25.184q0-.792.181-1.498.182-.705.578-1.29a4.2 4.2 0 0 1 1.02-1.04q.625-.457 1.512-.766-1.343-.604-1.995-1.679-.651-1.074-.651-2.579 0-1.14.47-2.115A5.06 5.06 0 0 1 3.43 12.53 6.4 6.4 0 0 1 5.44 11.41Q6.601 11 7.985 11t2.545.41a6.4 6.4 0 0 1 2.008 1.121 5.06 5.06 0 0 1 1.316 1.686q.47.974.47 2.115 0 1.504-.658 2.58-.658 1.074-1.988 1.678a5.8 5.8 0 0 1 1.498.766 4.2 4.2 0 0 1 1.02 1.04q.398.585.585 1.29.188.705.188 1.498 0 1.317-.504 2.39a5.2 5.2 0 0 1-1.423 1.834q-.92.759-2.21 1.176T7.985 31m0-3.143q.698 0 1.208-.215t.84-.584q.33-.37.483-.873a3.7 3.7 0 0 0 .155-1.082q0-.63-.134-1.155a2.2 2.2 0 0 0-.444-.893 2.05 2.05 0 0 0-.826-.577q-.517-.21-1.282-.209-.765 0-1.283.209a2.05 2.05 0 0 0-.826.577 2.2 2.2 0 0 0-.443.893q-.135.525-.135 1.155 0 .578.155 1.082.155.503.483.873.33.369.833.584.504.215 1.216.215m0-8.758q.698 0 1.141-.228.444-.229.699-.604.255-.377.349-.86t.094-.994q0-.456-.12-.886a2 2 0 0 0-.397-.76 2 2 0 0 0-.712-.53q-.437-.201-1.054-.201-.632 0-1.062.201a2 2 0 0 0-.705.53 2 2 0 0 0-.396.76q-.12.43-.12.886 0 .51.093.994.095.483.35.86.255.375.698.604t1.142.228"}))))}},64757(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m3 1 7 4.772H8.227a3.727 3.727 0 0 0-.379 7.436l.266.016 12.66.003.152-.005L25 16 3 31z"}),o.createElement("path",{d:"m20.806 7.274.196.01a2.228 2.228 0 0 1-.068 4.437l-.16.006H8.197L8 11.715a2.228 2.228 0 0 1 .068-4.437l.16-.006z"}))))}},26487(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m3 1 6.999 4.772H8.227a3.727 3.727 0 0 0-.379 7.436l.266.016 2.66.001v2.548a3.726 3.726 0 0 0 3.728 3.727 3.726 3.726 0 0 0 3.708-3.349l.016-.265.001-2.66 2.548.001.151-.005L25 16 3 31z"}),o.createElement("path",{d:"M14.502 1c1.176 0 2.14.913 2.221 2.068l.006.16v4.044l4.077.002.196.01a2.228 2.228 0 0 1-.068 4.437l-.16.006h-4.046v4.077l-.01.196a2.226 2.226 0 0 1-4.437-.068l-.006-.16v-4.045H8.196L8 11.715a2.228 2.228 0 0 1 .068-4.437l.16-.006h4.047V3.195L12.287 3c.115-1.131 1.07-2 2.216-2"}))))}},39102(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M1 1h30v30H1z"})))}},82186(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M18.55 10.963v9.433c0 .674-.577 1.251-1.25 1.251H8.25A1.274 1.274 0 0 1 7 20.396v-9.433c0-.674.578-.963 1.251-.963H17.3c.674 0 1.252.289 1.252.963m5.006 1.058c.289-.096.674-.096.963.097.288.192.481.48.481.77v5.775c0 .289-.193.578-.481.77-.193.096-.385.193-.578.193-.096 0-.289 0-.385-.097l-3.754-1.828v-3.754z"}),o.createElement("path",{fillOpacity:.4,d:"M10 1v3.348c0 .271-.178.51-.436.585L4 7.242v17.062l5.564 2.309a.61.61 0 0 1 .436.585V31H1V1zm21 0v30h-9v-3.802a.61.61 0 0 1 .343-.55l.093-.035L28 24.304V7.242l-5.564-2.31a.6.6 0 0 1-.428-.484l-.008-.1V1z"}))))}},98840(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m19.028 23.268 2.957 2.957v3.297a1.478 1.478 0 0 1-2.95.134l-.006-.134zm-4.507-4.507 2.957 2.957v3.957a1.478 1.478 0 0 1-2.95.135l-.006-.135zM5.507 9.746l2.956 2.956v12.012a1.478 1.478 0 0 1-2.95.135l-.006-.135zm-3.029-.092c.771 0 1.405.59 1.473 1.344l.006.134v9.736a1.478 1.478 0 0 1-2.951.134L1 20.868v-9.736c0-.816.662-1.478 1.478-1.478m7.536 4.599 2.957 2.957v3.658a1.478 1.478 0 0 1-2.95.134l-.007-.134zm19.508-4.6c.77 0 1.404.591 1.472 1.345l.006.134v9.736a1.478 1.478 0 0 1-2.95.134l-.007-.134v-9.736c0-.816.662-1.478 1.479-1.478m-4.508-4.807c.772 0 1.405.59 1.473 1.344l.006.135-.001 15.921-2.956-2.955V6.325c0-.817.662-1.479 1.478-1.479M20.507 1c.771 0 1.405.59 1.473 1.344l.006.134-.001 15.262-2.957-2.957V2.478c0-.816.663-1.478 1.48-1.478M16 4.846c.771 0 1.404.59 1.472 1.344l.006.135v6.908l-2.957-2.957V6.325c0-.817.663-1.479 1.479-1.479"}),o.createElement("path",{d:"M1.939 1.936a1.507 1.507 0 0 1 2.012-.098l.114.103L29.27 27.145c.59.59.592 1.538.004 2.126a1.507 1.507 0 0 1-2.012.098l-.114-.103L1.944 4.062a1.5 1.5 0 0 1-.005-2.126"}))))}},57891(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M20.507 1c.771 0 1.405.59 1.473 1.344l.006.134v27.044a1.478 1.478 0 0 1-2.951.134l-.006-.134V2.478c0-.816.662-1.478 1.478-1.478M16 4.846c.771 0 1.404.59 1.472 1.344l.006.135v19.35a1.478 1.478 0 0 1-2.95.135l-.006-.135V6.325c0-.817.662-1.479 1.478-1.479m9.014 0c.772 0 1.405.59 1.473 1.344l.006.135v19.35a1.478 1.478 0 0 1-2.95.135l-.007-.135V6.325c0-.817.662-1.479 1.478-1.479m-18.028.962c.77 0 1.404.59 1.472 1.343l.006.135v17.428a1.478 1.478 0 0 1-2.95.135l-.007-.135V7.286c0-.816.662-1.478 1.479-1.478M2.478 9.654c.771 0 1.405.59 1.473 1.344l.006.134v9.736a1.478 1.478 0 0 1-2.951.134L1 20.868v-9.736c0-.816.662-1.478 1.478-1.478m9.015 0c.77 0 1.404.59 1.472 1.344l.006.134v9.736a1.478 1.478 0 0 1-2.95.134l-.007-.134v-9.736c0-.816.662-1.478 1.479-1.478m18.029 0c.77 0 1.404.59 1.472 1.344l.006.134v9.736a1.478 1.478 0 0 1-2.95.134l-.007-.134v-9.736c0-.816.662-1.478 1.479-1.478"})))}},58560(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M10.364 1c5.165 0 9.365 4.2 9.365 9.364 0 1.91-.577 3.734-1.629 5.272l7.128 7.127h-2.921c-.556 0-1.059.223-1.426.584l-5.246-5.246a9.3 9.3 0 0 1-5.27 1.628C5.2 19.729 1 15.529 1 10.364 1 5.2 5.2 1 10.364 1m-.141 2.635a6.588 6.588 0 1 0 0 13.175 6.588 6.588 0 0 0 0-13.175M25.986 30.82a.508.508 0 0 0 .827 0l4.092-5.73a.508.508 0 0 0-.413-.803h-8.185a.508.508 0 0 0-.414.804z"}))))}},59584(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12.274 1c5.694 0 10.324 4.63 10.324 10.324 0 2.105-.636 4.116-1.795 5.812l9.634 9.633a1.922 1.922 0 1 1-2.718 2.72l-9.634-9.635a10.27 10.27 0 0 1-5.811 1.794l-.099-.001 1.05-.791a3.467 3.467 0 0 0 0-5.535L3.992 8.352a3.5 3.5 0 0 0-1.394-.63C4.06 3.8 7.846 1 12.274 1m-.157 2.905a7.263 7.263 0 0 1 2.484 14.09 3.46 3.46 0 0 0-1.376-2.674L5.123 9.206a7.266 7.266 0 0 1 6.994-5.301"}),o.createElement("path",{d:"m11.68 18.81-9.232 6.969A.904.904 0 0 1 1 25.057V11.12a.904.904 0 0 1 1.448-.72l9.233 6.968a.904.904 0 0 1 0 1.443"}))))}},64928(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12.274 1c5.694 0 10.324 4.63 10.324 10.324 0 2.105-.636 4.116-1.795 5.812l9.634 9.633a1.922 1.922 0 1 1-2.718 2.72l-9.634-9.635a10.3 10.3 0 0 1-3.482 1.529V11.119a3.467 3.467 0 0 0-5.556-2.767l-6.86 5.18A10.33 10.33 0 0 1 12.274 1m-.157 2.905a7.263 7.263 0 0 1 2.486 14.089v-6.875a3.467 3.467 0 0 0-5.556-2.767l-4.184 3.16a7.263 7.263 0 0 1 7.255-7.606"}),o.createElement("path",{d:"m1.36 18.81 9.232 6.969a.904.904 0 0 0 1.448-.722V11.12a.904.904 0 0 0-1.448-.72l-9.233 6.968a.904.904 0 0 0 0 1.443"}))))}},87587(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M30.418 27.612a1.985 1.985 0 1 1-2.806 2.807l-9.95-9.949a10.6 10.6 0 0 1-6 1.853C5.782 22.323 1 17.542 1 11.662S5.782 1 11.662 1s10.661 4.782 10.661 10.662c0 2.173-.657 4.25-1.854 6.001zM11.5 19a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15"})))}},14059(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M10.364 1c5.165 0 9.365 4.2 9.365 9.364 0 1.91-.577 3.734-1.629 5.272l7.128 7.127h-2.921c-.556 0-1.059.223-1.426.584l-5.246-5.246a9.3 9.3 0 0 1-5.27 1.628C5.2 19.729 1 15.529 1 10.364 1 5.2 5.2 1 10.364 1m-.141 2.635a6.588 6.588 0 1 0 0 13.175 6.588 6.588 0 0 0 0-13.175M25.986 30.82a.508.508 0 0 0 .827 0l4.092-5.73a.508.508 0 0 0-.413-.803h-8.185a.508.508 0 0 0-.414.804z"}))))}},32614(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M11.662 1c5.88 0 10.661 4.782 10.661 10.662 0 2.173-.657 4.25-1.854 6.001l9.95 9.949a1.985 1.985 0 1 1-2.807 2.807l-9.95-9.949-.064.043a2 2 0 0 0-.242-.308l-.12-.116a2 2 0 0 0-1.043-.482l-3.695-.527-.062-.138A7.501 7.501 0 0 0 11.5 4a7.5 7.5 0 0 0-5.068 13.029l-.931 2.051-1.305.187A10.63 10.63 0 0 1 1 11.662C1 5.782 5.782 1 11.662 1"}),o.createElement("path",{d:"M8.793 15.755a.5.5 0 0 1 .618.17l.044.079 2.017 4.445 4.51.643a.5.5 0 0 1 .334.788l-.06.068L13 25.064l1.197 4.81a.5.5 0 0 1-.648.594l-.082-.037L9 27.916 4.533 30.43a.5.5 0 0 1-.744-.467l.014-.09L5 25.064l-3.257-3.116a.5.5 0 0 1 .188-.835l.087-.02 4.51-.644 2.017-4.445a.5.5 0 0 1 .248-.25"}))))}},92039(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12.274 1c5.694 0 10.324 4.63 10.324 10.324 0 2.105-.636 4.116-1.795 5.812l9.634 9.633a1.922 1.922 0 1 1-2.718 2.72l-9.634-9.635a10.27 10.27 0 0 1-5.811 1.794l-.099-.001 1.05-.791a3.467 3.467 0 0 0 0-5.535L3.992 8.352a3.5 3.5 0 0 0-1.394-.63C4.06 3.8 7.846 1 12.274 1m-.157 2.905a7.263 7.263 0 0 1 2.484 14.09 3.46 3.46 0 0 0-1.376-2.674L5.123 9.206a7.266 7.266 0 0 1 6.994-5.301"}),o.createElement("path",{d:"m11.68 18.81-9.232 6.969A.904.904 0 0 1 1 25.057V11.12a.904.904 0 0 1 1.448-.72l9.233 6.968a.904.904 0 0 1 0 1.443"}))))}},22851(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12.274 1c5.694 0 10.324 4.63 10.324 10.324 0 2.105-.636 4.116-1.795 5.812l9.634 9.633a1.922 1.922 0 1 1-2.718 2.72l-9.634-9.635a10.3 10.3 0 0 1-3.482 1.529V11.119a3.467 3.467 0 0 0-5.556-2.767l-6.86 5.18A10.33 10.33 0 0 1 12.274 1m-.157 2.905a7.263 7.263 0 0 1 2.486 14.089v-6.875a3.467 3.467 0 0 0-5.556-2.767l-4.184 3.16a7.263 7.263 0 0 1 7.255-7.606"}),o.createElement("path",{d:"m1.36 18.81 9.232 6.969a.904.904 0 0 0 1.448-.722V11.12a.904.904 0 0 0-1.448-.72l-9.233 6.968a.904.904 0 0 0 0 1.443"}))))}},14315(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M30.418 27.612a1.985 1.985 0 1 1-2.806 2.807l-9.95-9.949a10.6 10.6 0 0 1-6 1.853C5.782 22.323 1 17.542 1 11.662S5.782 1 11.662 1s10.661 4.782 10.661 10.662c0 2.173-.657 4.25-1.854 6.001zM11.5 19a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15"})))}},17914(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M11.662 1c5.88 0 10.661 4.782 10.661 10.662 0 2.173-.657 4.25-1.854 6.001l9.95 9.949a1.985 1.985 0 1 1-2.807 2.807l-9.95-9.949a10.6 10.6 0 0 1-6 1.853C5.782 22.323 1 17.542 1 11.662S5.782 1 11.662 1m-.012 3a7.65 7.65 0 1 0 0 15.3 7.65 7.65 0 0 0 0-15.3"}),o.createElement("path",{d:"M12.871 7.553a1.235 1.235 0 0 0-2.468 0v2.985H7.416a1.235 1.235 0 0 0 0 2.47h2.987v2.985a1.234 1.234 0 1 0 2.468 0v-2.986h2.986a1.235 1.235 0 0 0 0-2.469H12.87z"}))))}},94477(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M11.662 1c5.88 0 10.661 4.782 10.661 10.662 0 2.173-.657 4.25-1.854 6.001l9.95 9.949a1.985 1.985 0 1 1-2.807 2.807l-9.95-9.949a10.6 10.6 0 0 1-6 1.853C5.782 22.323 1 17.542 1 11.662S5.782 1 11.662 1m-.012 3a7.65 7.65 0 1 0 0 15.3 7.65 7.65 0 0 0 0-15.3"}),o.createElement("path",{d:"M7.416 10.538a1.235 1.235 0 0 0 0 2.47h8.44a1.235 1.235 0 0 0 0-2.47z"}))))}},83518(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FFF",fillOpacity:.4,d:"M6 25a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99H2a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1Zm24.181.018a1 1 0 0 1 .809.992v.02a3.9 3.9 0 0 0-.8-1.003ZM6 17a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99H2a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1Zm7.92 1 .063.228c.092.298.216.574.376.818l.037.051.002.015a5.1 5.1 0 0 0 .93 2.308l.124.162v.763l-1.68.6-.152.055H10a1 1 0 0 1-.993-.883L9 22v-4a1 1 0 0 1 1-1h3.806c-.006.332.034.67.115 1M30 17a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99h-3.884l-.514-.188-1.307-.466v-.665l.055-.072c.483-.669.85-1.49.995-2.464l.006-.049.036-.05c.2-.304.345-.658.44-1.046l.045-.209a4 4 0 0 0 .069-.79ZM6 9a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99H2a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1Zm10.127.797-.129.129-.102.031a3 3 0 0 0-1.466 1.032c-.624.813-.783 1.811-.653 2.95l.043.31c.038.246.089.493.151.75L10 15a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h7.415c-.498.2-.935.462-1.288.797M30 9a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99h-4.073c.441-1.27.583-2.233.36-3.308C25.967 10.386 24.98 9.5 23.621 9ZM6 1a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm24 0a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99H10a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Z"}),o.createElement("path",{fill:"#FFF",d:"M20.476 10c1.931 0 4.007.617 4.292 1.995.19.914-.126 2.027-.442 2.882l-.155.404-.248.611c.467.407.547 1.138.397 1.752-.095.388-.258.673-.463.824a4.3 4.3 0 0 1-.92 2.451l-.135.16-.057.062v2.262l2.549.908.582.214.279.105.533.21c1.55.624 2.64 1.236 3.07 2.067.716 1.382.92 2.068.964 2.692 0 .725-.553 1.321-1.26 1.389l-.134.006H10.395C9.625 30.994 9 30.37 9 29.6l.009-.108.027-.223c.082-.538.304-1.203.902-2.36.454-.879 1.642-1.511 3.332-2.172l.55-.21.582-.214 2.55-.909v-2.4l-.125-.127c-.35-.372-.923-1.165-.987-2.408-.205-.151-.368-.436-.462-.824-.152-.62-.07-1.36.41-1.764l-.16-.517-.104-.355c-.276-.992-.517-2.308.096-3.105.278-.363.694-.571 1.236-.62.491-.941 2.209-1.283 3.62-1.283"}))))}},72643(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M3.754 6.72C5.397 2.44 10.26-.154 14.592 1.509s6.21 6.845 4.566 11.126L18.633 14h.69a2 2 0 0 0-.023.282v.475l-.34-.34-.119-.11a1.784 1.784 0 0 0-2.4.108l-2.023 2.023-.11.12-.096.127a1.78 1.78 0 0 0 .21 2.278l.336.336h-.475l-.146.006a1.784 1.784 0 0 0-1.637 1.777v2.267l.006.146.019.151a1.784 1.784 0 0 0 1.758 1.486h.89l.036.113-.791.793-.118.13a1.78 1.78 0 0 0 .118 2.392l2.021 2.02.12.11.126.096q.2.136.422.214H1V14h14.956l.868-2.263c1.175-3.06-.141-6.75-3.128-7.896s-6.433.715-7.608 3.775l-.269.7-2.334-.896ZM19.3 30.243v.475l.006.146q.006.069.017.138h-1.03c.245-.086.474-.225.668-.42z"}),o.createElement("path",{d:"M22.5 25.333a2.837 2.837 0 0 1-2.833-2.833 2.837 2.837 0 0 1 2.833-2.833 2.837 2.837 0 0 1 2.833 2.833 2.837 2.837 0 0 1-2.833 2.833m8.217-4.533h-2.102a6.6 6.6 0 0 0-.58-1.413L29.52 17.9a.283.283 0 0 0 0-.4L27.5 15.479a.284.284 0 0 0-.4 0l-1.489 1.488a8.4 8.4 0 0 0-1.411-.583v-2.1a.283.283 0 0 0-.283-.284h-2.834a.283.283 0 0 0-.283.283v2.102c-.384.114-.96.337-1.412.581L17.9 15.48a.284.284 0 0 0-.4 0l-2.021 2.02a.283.283 0 0 0 0 .401l1.488 1.489a8.6 8.6 0 0 0-.58 1.411h-2.104a.283.283 0 0 0-.283.283v2.267c0 .156.127.283.283.283h2.075c.123.738.35 1.47.61 1.977l-1.49 1.49a.28.28 0 0 0 0 .4l2.022 2.021a.29.29 0 0 0 .4 0l1.49-1.49c.326.166.721.305 1.05.42.133.047.26.092.36.13v2.136c0 .156.127.283.283.283h2.834a.283.283 0 0 0 .283-.283V28.58c.1-.038.228-.083.36-.13.33-.115.724-.254 1.049-.42l1.49 1.49c.111.11.29.11.401 0l2.021-2.02a.284.284 0 0 0 0-.401l-1.484-1.484c.262-.437.473-.874.613-1.983h2.067A.283.283 0 0 0 31 23.35v-2.267a.283.283 0 0 0-.283-.283"}))))}},35840(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28.015 1a3 3 0 0 1 2.994 2.824l.006.176.002 13.15a1.8 1.8 0 0 0-.43-.705l-2.027-2.027-.12-.11-.128-.096q-.154-.106-.322-.177l.022-9.032A1 1 0 0 0 27.015 4h-22a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1l9.024.001c.089.207.216.398.379.56l2.021 2.02.12.11.126.096q.2.137.425.215L4.015 31a3.004 3.004 0 0 1-2.995-2.824l-.006-.175V4a3 3 0 0 1 2.824-2.995L4.014 1zM19.3 30.243v.475l.006.146q.006.069.017.138H18.29c.245-.085.475-.225.67-.42zm6.4.001.34.34.12.109c.164.137.347.24.54.309h-1.023q.023-.14.023-.284zm5.317-2.393-.002.15a3.004 3.004 0 0 1-2.825 2.995l-.175.005-.118.001c.241-.085.468-.224.661-.417l2.024-2.023.11-.12.096-.128q.15-.218.229-.463m-.002-2.741.002 1.639a1.8 1.8 0 0 0-.435-.709l-.75-.75.048-.156h.837l.146-.006q.077-.006.152-.018M12.504 21l-.004.083v2.267l.006.146.019.151a1.784 1.784 0 0 0 1.758 1.486h.89l.036.113-.753.755H7.015a1 1 0 0 1-.994-.884L6.015 25v-3a1 1 0 0 1 .883-.993L7.015 21zm18.512-2.748-.001 1.073a2 2 0 0 0-.298-.025h-.475l.34-.339.118-.13c.141-.173.248-.369.316-.579M19.481 13.5a1.8 1.8 0 0 0-.181.784v.475l-.34-.34-.119-.11a1.784 1.784 0 0 0-2.4.108l-2.023 2.023-.11.12-.096.127a1.79 1.79 0 0 0-.127 1.814h-7.07a1 1 0 0 1-.994-.883l-.006-.117v-3a1 1 0 0 1 .883-.993l.117-.007Zm6.516.896.003.06-.3.301v-.473l-.006-.146a1.8 1.8 0 0 0-.091-.435c.217.162.365.41.394.693m-.983-8.394a1 1 0 0 1 .983.895l.005.116-.035 3a1 1 0 0 1-.885.982l-.115.007H7.015a1 1 0 0 1-.994-.884L6.015 10V7a1 1 0 0 1 .883-.993l.117-.006z"}),o.createElement("path",{d:"M22.5 25.333a2.837 2.837 0 0 1-2.833-2.833 2.837 2.837 0 0 1 2.833-2.833 2.837 2.837 0 0 1 2.833 2.833 2.837 2.837 0 0 1-2.833 2.833m8.217-4.533h-2.102a6.6 6.6 0 0 0-.58-1.413L29.52 17.9a.283.283 0 0 0 0-.4L27.5 15.479a.284.284 0 0 0-.4 0l-1.489 1.488a8.4 8.4 0 0 0-1.411-.583v-2.1a.283.283 0 0 0-.283-.284h-2.834a.283.283 0 0 0-.283.283v2.102c-.384.114-.96.337-1.412.581L17.9 15.48a.284.284 0 0 0-.4 0l-2.021 2.02a.283.283 0 0 0 0 .401l1.488 1.489a8.6 8.6 0 0 0-.58 1.411h-2.104a.283.283 0 0 0-.283.283v2.267c0 .156.127.283.283.283h2.075c.123.738.35 1.47.61 1.977l-1.49 1.49a.28.28 0 0 0 0 .4l2.022 2.021a.29.29 0 0 0 .4 0l1.49-1.49c.326.166.721.305 1.05.42.133.047.26.092.36.13v2.136c0 .156.127.283.283.283h2.834a.283.283 0 0 0 .283-.283V28.58c.1-.038.228-.083.36-.13.33-.115.724-.254 1.049-.42l1.49 1.49c.111.11.29.11.401 0l2.021-2.02a.284.284 0 0 0 0-.401l-1.484-1.484c.262-.437.473-.874.613-1.983h2.067A.283.283 0 0 0 31 23.35v-2.267a.283.283 0 0 0-.283-.283"}))))}},42415(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M7.09 17.396a.3.3 0 0 1 .087-.21L16 8.207l8.823 8.979a.3.3 0 0 1 .086.21V30.7a.3.3 0 0 1-.3.3h-4.49a.3.3 0 0 1-.3-.3v-8.57a.3.3 0 0 0-.3-.3h-7.037a.3.3 0 0 0-.3.3v8.57a.3.3 0 0 1-.3.3H7.39a.3.3 0 0 1-.3-.3zm22.426-3.807c.675.67.643 1.73-.09 2.391-.692.594-1.78.565-2.43-.078L16.002 5.056l-8.246 8.136-1.38 1.36-1.414 1.392c-.659.603-1.706.61-2.435-.006a1.7 1.7 0 0 1-.388-.541 1.61 1.61 0 0 1 .352-1.81L14.739 1.502c.672-.669 1.849-.669 2.522-.003z"})))}},35613(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M9.793 1H1.517A.517.517 0 0 0 1 1.517v8.276c0 .286.232.517.517.517h8.276a.517.517 0 0 0 .517-.517V1.517A.517.517 0 0 0 9.793 1m10.345 0h-8.276a.517.517 0 0 0-.517.517v8.276c0 .286.232.517.517.517h8.276a.517.517 0 0 0 .517-.517V1.517A.517.517 0 0 0 20.138 1m10.345 0h-8.276a.517.517 0 0 0-.517.517v8.276c0 .286.231.517.517.517h8.276A.517.517 0 0 0 31 9.793V1.517A.517.517 0 0 0 30.483 1M9.793 11.345H1.517a.517.517 0 0 0-.517.517v8.276c0 .285.232.517.517.517h8.276a.517.517 0 0 0 .517-.517v-8.276a.517.517 0 0 0-.517-.517m10.345 0h-8.276a.517.517 0 0 0-.517.517v8.276c0 .285.232.517.517.517h8.276a.517.517 0 0 0 .517-.517v-8.276a.517.517 0 0 0-.517-.517m10.345 0h-8.276a.517.517 0 0 0-.517.517v8.276c0 .285.231.517.517.517h8.276a.517.517 0 0 0 .517-.517v-8.276a.517.517 0 0 0-.517-.517M9.793 21.69H1.517a.517.517 0 0 0-.517.517v8.276c0 .285.232.517.517.517h8.276a.517.517 0 0 0 .517-.517v-8.276a.517.517 0 0 0-.517-.517m10.345 0h-8.276a.517.517 0 0 0-.517.517v8.276c0 .285.232.517.517.517h8.276a.517.517 0 0 0 .517-.517v-8.276a.517.517 0 0 0-.517-.517m10.345 0h-8.276a.517.517 0 0 0-.517.517v8.276c0 .285.231.517.517.517h8.276a.517.517 0 0 0 .517-.517v-8.276a.517.517 0 0 0-.517-.517"})))}},70392(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.014 20.688A4.693 4.693 0 0 1 11.326 16a4.693 4.693 0 0 1 4.688-4.687A4.693 4.693 0 0 1 20.7 16a4.693 4.693 0 0 1-4.687 4.688m13.593-7.5H26.13a11 11 0 0 0-.96-2.339l2.46-2.459a.47.47 0 0 0 0-.663l-3.345-3.343a.47.47 0 0 0-.663 0l-2.461 2.461a14 14 0 0 0-2.335-.963V2.406a.47.47 0 0 0-.469-.469H13.67a.47.47 0 0 0-.469.47v3.476c-.635.189-1.588.558-2.335.962l-2.462-2.46a.47.47 0 0 0-.663 0L4.398 7.727a.467.467 0 0 0 0 .662l2.461 2.463a14 14 0 0 0-.958 2.335H2.42a.47.47 0 0 0-.469.468v3.75c0 .259.21.469.469.469h3.433c.203 1.22.578 2.43 1.009 3.27L4.397 23.61a.467.467 0 0 0 0 .663l3.344 3.343a.48.48 0 0 0 .663 0l2.465-2.466c.539.275 1.193.504 1.737.696.22.076.431.151.595.215v3.533c0 .258.21.468.469.468h4.687c.26 0 .47-.21.47-.468V26.06c.163-.064.376-.139.595-.215.544-.192 1.198-.421 1.735-.695l2.466 2.465a.47.47 0 0 0 .663 0l3.343-3.343a.47.47 0 0 0 0-.663l-2.454-2.455c.433-.723.782-1.446 1.013-3.28h3.42c.258 0 .468-.21.468-.469v-3.75a.47.47 0 0 0-.469-.469"})))}},23790(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",d:"M21.738 15.008c1.766 0 3.43.683 4.68 1.933l1.223 1.227c2.5-1.11 4.453-3.332 5.101-6.043a9.1 9.1 0 0 0 .012-4.273c-.16-.68-1.027-.907-1.52-.415l-4.304 4.305h-4.727V7.074l4.305-4.304c.496-.497.27-1.36-.41-1.524a9.1 9.1 0 0 0-4.278.016c-3.457.824-6.148 3.761-6.699 7.273a8 8 0 0 0-.101 1.527l5.171 5.18a4.8 4.8 0 0 1 1.547-.234M25 18.414c-1.45-1.45-3.598-1.727-5.336-.871l-6.719-6.668V7L5 1 1 4.945l6 7.942h3.879l6.668 6.664c-.856 1.738-.578 3.89.867 5.336l7.313 7.32c.914.906 2.39.906 3.296 0l3.297-3.297a2.34 2.34 0 0 0 0-3.297Zm-9.758 1.773-3.699-3.695-9.305 9.309A4.215 4.215 0 0 0 5.218 33c1.083 0 2.16-.41 2.985-1.234l7.442-7.446c-.551-1.3-.73-2.734-.403-4.132M5 30.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m0 0"})))}},32466(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M21.985 1c1.385 0 2.761.33 3.979.952a.497.497 0 0 1 .149.774L22.596 6.76v2.854h2.221l4.029-4.017a.498.498 0 0 1 .798.126 8.68 8.68 0 0 1-.27 8.425 1.55 1.55 0 0 0-.648-.345c-.399-.105-.83-.043-1.189.174l-1.118.676q-.49-.324-1.092-.636V12.56c0-.86-.696-1.56-1.556-1.56h-4.206c-.86 0-1.556.7-1.556 1.56v1.293a5.7 5.7 0 0 0-1.344.785l-1.196-.68a1.554 1.554 0 0 0-2.113.571l-2.125 3.666a1.56 1.56 0 0 0 .556 2.127l1.185.693a8.4 8.4 0 0 0-.003 1.428l-1.192.691c-.358.207-.619.55-.724.95-.067.245-.07.503-.014.75l-4.887 4.887a3 3 0 0 1-2.135.885 3 3 0 0 1-2.134-.885A3 3 0 0 1 1 27.583a3 3 0 0 1 .889-2.135l12.139-12.127c-1.514-3.291-.821-7.177 1.778-9.776A8.68 8.68 0 0 1 21.985 1"}),o.createElement("path",{d:"M21.5 24.667a3.17 3.17 0 0 1-3.167-3.167 3.17 3.17 0 0 1 3.168-3.167 3.17 3.17 0 0 1 3.166 3.167 3.17 3.17 0 0 1-3.166 3.167m9.22-.668-1.76-1.022a7.5 7.5 0 0 0 0-2.491l1.76-1.023a.56.56 0 0 0 .203-.764l-2.102-3.665a.55.55 0 0 0-.768-.2l-1.683 1.017c-.52-.412-1.195-.813-2.044-1.211v-2.08c0-.31-.25-.56-.556-.56h-4.206a.56.56 0 0 0-.556.56v2.005c-1.053.304-1.645.755-2.234 1.287l-1.8-1.025a.554.554 0 0 0-.755.204l-2.124 3.665a.56.56 0 0 0 .2.766l1.75 1.022a7.5 7.5 0 0 0-.004 2.493l-1.763 1.022a.562.562 0 0 0-.205.765l2.103 3.666a.554.554 0 0 0 .752.209l1.841-1.03c.583.526 1.173.983 2.239 1.288v1.543c0 .31.249.56.556.56h4.206c.306 0 .556-.25.556-.56v-1.618c.85-.397 1.524-.797 2.046-1.212l1.68 1.019a.557.557 0 0 0 .769-.2l2.104-3.664a.56.56 0 0 0-.205-.766"}))))}},42703(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M29.644 5.723a.498.498 0 0 0-.798-.126l-4.029 4.017h-2.221V6.76l3.517-4.034a.497.497 0 0 0-.149-.774A8.8 8.8 0 0 0 21.985 1a8.68 8.68 0 0 0-6.179 2.545c-2.599 2.599-3.292 6.485-1.778 9.776L1.889 25.448A3 3 0 0 0 1 27.583a3 3 0 0 0 .883 2.138 3 3 0 0 0 2.134.885c.806 0 1.564-.315 2.135-.885l12.126-12.127a8.8 8.8 0 0 0 3.632.793 8.63 8.63 0 0 0 6.142-2.544 8.68 8.68 0 0 0 1.592-10.12"})))}},30017(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m10.466 23.332.159.148c.6.525 1.37.817 2.172.817h4.905v4.906c0 .641.187 1.262.53 1.792H2.926A1.926 1.926 0 0 1 1 29.067c.056-.839.292-1.776 1.296-3.718.841-1.627 3.509-2.645 7.227-3.965.086.733.416 1.42.943 1.947m18.324.966c.386.325.682.672.879 1.052.987 1.909 1.27 2.856 1.331 3.718a1.926 1.926 0 0 1-1.926 1.926l-5.306.001a3.3 3.3 0 0 0 .53-1.792l-.001-4.906ZM16.849 2c2.667 0 5.534.851 5.928 2.755.348 1.684-.542 3.854-1.021 5.02l.07-.17a3.3 3.3 0 0 0-.642-.1l-.187-.005-.186.005a3.297 3.297 0 0 0-3.108 3.292l-.001 4.905h-4.905q-.423.001-.815.102v-.61c-.431-.406-1.435-1.553-1.535-3.5-.283-.208-.51-.602-.64-1.137-.21-.857-.095-1.878.569-2.436l-.088-.279c-.42-1.341-1.203-3.838-.146-5.214.385-.502.959-.789 1.708-.855C12.528 2.472 14.9 2 16.849 2"}),o.createElement("path",{d:"M20.998 11a1.797 1.797 0 0 1 1.793 1.65l.006.147v6.406h6.404a1.796 1.796 0 0 1 .15 3.588l-.148.006h-6.406v6.406a1.797 1.797 0 0 1-3.585.178l-.01-.178v-6.406h-6.405A1.796 1.796 0 0 1 11 21c0-.943.726-1.716 1.65-1.791l.147-.006h6.406v-6.406c0-.992.804-1.797 1.795-1.797"}))))}},82350(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M4.697 27.538A9.9 9.9 0 0 0 9.182 31L1.873 31c.753-1.301 1.708-2.47 2.824-3.462M23.678 25.2A14.05 14.05 0 0 1 30.127 31l-9.974.001a3.22 3.22 0 0 0 .351-2.834c1.203-.734 2.277-1.745 3.174-2.966M12.403 11.993l.044.045a6.26 6.26 0 0 0 4.877 1.687l4.668-.417a.25.25 0 0 1 .24.122l.58 1.001q.033.056.033.119v.934c0 .557.25 1.086.683 1.45q.162.135.34.231l.001 3.133c0 .344.09.668.248.95-1.014 2.681-2.748 4.799-4.866 5.906a2.9 2.9 0 0 0-1.896-.7h-3.66l-.198.007c-.51.034-.99.2-1.399.465-1.87-1.117-3.409-3.039-4.367-5.434.254-.327.4-.73.4-1.165l-.005-3.16a1.91 1.91 0 0 0 1.03-1.683v-.54a.24.24 0 0 1 .125-.209l1.147-.635.21-.123a4.66 4.66 0 0 0 1.724-1.894z"}),o.createElement("path",{fillOpacity:.4,d:"M16.018 1c6.412 0 11.61 5.037 11.61 11.25v1.23c.763.02 1.372.623 1.372 1.364v1.242a1.5 1.5 0 0 1 0 2.828v1.02c0 .754-.63 1.364-1.407 1.364h-1.66c-.57 0-1.032-.447-1.032-1V14.48c0-.513.399-.936.912-.993l.126-.007v-1.23c0-5.256-4.353-9.527-9.757-9.612l-.164-.002c-5.425 0-9.833 4.219-9.92 9.455l-.002 1.389c.554 0 1.003.435 1.003.971v5.876a.983.983 0 0 1-.886.965l-.117.006.001.81c.055 3.296 2.625 6 5.931 6.39a1.83 1.83 0 0 1 1.668-1.043h3.659c1.01 0 1.83.793 1.83 1.772 0 .98-.82 1.773-1.83 1.773h-3.66c-.66 0-1.238-.339-1.56-.847-4.283-.349-7.656-3.794-7.727-8.018v-.837c-.778 0-1.408-.61-1.408-1.363v-1.02a1.5 1.5 0 0 1 0-2.83v-1.241c0-.754.63-1.364 1.407-1.364v-1.23C4.407 6.037 9.605 1 16.017 1m0 2.636.155.002.263.007c4.716.208 8.471 3.986 8.471 8.605v.506l-.084.048c-.527.325-.879.86-.943 1.473l-.003.273c0-.214-.057-.423-.165-.609l-.58-1.001a1.29 1.29 0 0 0-1.235-.627l-4.667.416c-2.457.22-4.725-1.292-5.393-3.593l-.045 1.103c-.051 1.244-.76 2.375-1.876 2.993l-1.148.635a1.24 1.24 0 0 0-.638.945v-.36l-.005-.148a1.96 1.96 0 0 0-.921-1.507l-.076-.044.001-.661c.042-2.45 1.144-4.65 2.881-6.193a7.7 7.7 0 0 1 1.7-.486q.073-.469.213-.811a9.1 9.1 0 0 1 4.095-.966"}))))}},12664(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 31C7.716 31 1 24.284 1 16S7.716 1 16 1s15 6.716 15 15-6.716 15-15 15m9.773-6.232A13.06 13.06 0 0 0 29.14 16c0-7.237-5.888-13.125-13.125-13.125S2.89 8.763 2.89 16c0 3.26 1.194 6.36 3.366 8.772 1.128-.668 2.79-1.215 4.547-1.789.795-.26 1.614-.527 2.379-.807v-2.337c-.559-.324-1.658-1.24-1.764-3.478-.453-.227-.741-.8-.741-1.543 0-.69.248-1.232.646-1.488l-.014-.051c-.272-.968-.777-2.768-.055-3.722.22-.29.68-.638 1.5-.574.632-1.265 2.568-1.726 4.147-1.726 1.737 0 3.904.557 4.297 2.128.344 1.377-.18 3.012-.46 3.89q-.01.03-.02.062c.39.259.635.798.635 1.481 0 .387-.086.757-.24 1.039-.127.229-.3.4-.5.503-.107 2.238-1.206 3.155-1.766 3.479v2.337c.828.306 1.732.626 2.61.937 2.324.822 3.66 1.309 4.317 1.655"})))}},85070(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M21.773 21.148a317 317 0 0 1-1.79-.637v-3.125a5.88 5.88 0 0 0 1.535-3.692c.283-.208.509-.602.64-1.137.207-.849.097-1.858-.55-2.42l.148-.363c.479-1.165 1.369-3.335 1.02-5.019C22.384 2.851 19.517 2 16.85 2c-1.95 0-4.321.472-5 1.773-.748.066-1.322.353-1.707.855-1.057 1.376-.274 3.873.146 5.214l.088.28c-.664.557-.778 1.578-.568 2.435.13.535.356.929.639 1.137.1 1.947 1.104 3.094 1.536 3.5v3.317q-.93.333-1.793.638c-4.065 1.439-7.003 2.478-7.894 4.201-1.004 1.942-1.24 2.88-1.296 3.718 0 1.064.862 1.926 1.926 1.926h26.148A1.926 1.926 0 0 0 31 29.068c-.061-.862-.344-1.81-1.331-3.718-.893-1.723-3.83-2.763-7.896-4.202"})))}},60775(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m11.452 20.7.08.053 1.67.975-1.676.974c-.42.242-.739.627-.903 1.081l-.054.174a2.06 2.06 0 0 0 .202 1.55l2.105 3.67a2.054 2.054 0 0 0 2.788.77L17.5 29l.009 1.44q0 .289.075.555H2.926A1.926 1.926 0 0 1 1 29.067c.056-.839.292-1.776 1.296-3.718.89-1.723 3.829-2.762 7.894-4.201q.863-.305 1.793-.638zm19.353 7.29c.116.405.172.748.195 1.078a1.926 1.926 0 0 1-1.926 1.926H25.75q.076-.265.076-.554l-.001-1.407 1.45.879a2.06 2.06 0 0 0 1.395.27l.18-.037a2.05 2.05 0 0 0 1.271-.969ZM16.85 2c2.667 0 5.534.851 5.928 2.755.348 1.684-.542 3.854-1.021 5.02-.05.122-.104.253-.147.363q.183.16.31.362h-2.354a2.06 2.06 0 0 0-2.056 2.06l.008 1.988-1.8-1.025a2.054 2.054 0 0 0-2.794.755l-1.396 2.411c-.46-.593-1.008-1.584-1.08-2.995-.283-.208-.51-.602-.64-1.137-.21-.857-.095-1.878.569-2.436l-.088-.279c-.42-1.341-1.203-3.838-.146-5.214.385-.502.959-.789 1.708-.855C12.528 2.472 14.9 2 16.849 2"}),o.createElement("path",{d:"M23.77 12c.307 0 .557.25.557.56v2.08c.85.398 1.524.799 2.044 1.21l1.683-1.017a.55.55 0 0 1 .767.2l2.103 3.666a.56.56 0 0 1-.203.764l-1.76 1.023c.14.833.14 1.655 0 2.49L30.722 24a.56.56 0 0 1 .205.766l-2.104 3.665a.554.554 0 0 1-.769.199l-1.68-1.019c-.522.415-1.197.815-2.046 1.212v1.618c0 .31-.25.56-.556.56h-4.206a.56.56 0 0 1-.556-.56v-1.543c-1.066-.305-1.656-.762-2.239-1.288l-1.841 1.03a.554.554 0 0 1-.752-.21l-2.103-3.664a.56.56 0 0 1 .205-.766l1.763-1.022a7.5 7.5 0 0 1 .005-2.493l-1.75-1.022a.562.562 0 0 1-.2-.765l2.123-3.666a.554.554 0 0 1 .754-.204l1.8 1.025c.59-.532 1.182-.983 2.235-1.287V12.56c0-.31.249-.56.556-.56Zm-2.27 6.333a3.17 3.17 0 0 0-3.167 3.167 3.17 3.17 0 0 0 3.168 3.167 3.17 3.17 0 0 0 3.166-3.167 3.17 3.17 0 0 0-3.166-3.167"}))))}},329(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16.849 2c2.667 0 5.534.851 5.928 2.755.348 1.684-.542 3.854-1.021 5.02-.05.122-.104.253-.147.363.334.29.525.7.602 1.145a7 7 0 0 0-1.77 1.29 7.07 7.07 0 0 0-1.818 6.95l-7.113 7.106a3.43 3.43 0 0 0-1.01 2.427c-.002.7.207 1.371.593 1.939H2.926A1.926 1.926 0 0 1 1 29.067c.056-.839.292-1.776 1.296-3.718.89-1.723 3.829-2.762 7.894-4.201q.863-.305 1.793-.638v-3.316c-.432-.407-1.436-1.554-1.536-3.5-.283-.21-.51-.603-.64-1.138-.21-.857-.095-1.878.569-2.436l-.088-.279c-.42-1.341-1.203-3.838-.146-5.214.385-.502.959-.789 1.708-.855C12.528 2.472 14.9 2 16.849 2m11.554 22c.578.41 1.008.851 1.266 1.35.987 1.909 1.27 2.856 1.331 3.718a1.926 1.926 0 0 1-1.926 1.926H16.865l6.609-6.608a7 7 0 0 0 1.615.264l.329.008c.994 0 1.958-.204 2.843-.592Z"}),o.createElement("path",{d:"M30.383 15.031a.32.32 0 0 0-.512-.08l-2.586 2.577h-1.426v-1.831l2.258-2.59a.32.32 0 0 0-.096-.496A5.64 5.64 0 0 0 25.467 12c-1.503 0-2.912.58-3.965 1.633a5.57 5.57 0 0 0-1.141 6.274l-7.79 7.783c-.367.366-.57.853-.571 1.37a1.92 1.92 0 0 0 .567 1.372c.365.366.852.568 1.37.568.516 0 1.003-.202 1.37-.568l7.781-7.783a5.6 5.6 0 0 0 2.331.51c1.49 0 2.89-.58 3.942-1.633a5.57 5.57 0 0 0 1.022-6.495"}))))}},80534(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16.849 2c2.667 0 5.534.851 5.928 2.755.348 1.684-.542 3.854-1.021 5.02-.05.122-.104.253-.147.363.646.561.756 1.57.549 2.419l.03-.147q-.41.21-.79.462-.577.385-1.071.821L19.05 14.82l1.321 2.098c-.152.206-.29.363-.39.47v3.124q.929.333 1.79.637l.832.294q-.12.459-.12.95l.001.166.008.14.01.081.023.159.332 3.246-.098.103a3.6 3.6 0 0 0-.65 1.046 3.8 3.8 0 0 0-.283 1.44c0 .507.095.997.287 1.456q.173.414.434.767l-19.622-.002A1.926 1.926 0 0 1 1 29.068c.056-.839.292-1.776 1.296-3.718.89-1.723 3.829-2.762 7.894-4.201q.863-.305 1.793-.638v-3.316c-.432-.407-1.436-1.554-1.536-3.5-.283-.21-.51-.603-.64-1.138-.21-.857-.095-1.878.569-2.436l-.088-.279c-.42-1.341-1.203-3.838-.146-5.214.385-.502.959-.789 1.708-.855C12.528 2.472 14.9 2 16.849 2M28.7 24.224c.43.347.757.717.969 1.126.987 1.909 1.27 2.856 1.331 3.718a1.926 1.926 0 0 1-1.926 1.926l-.486.002q.25-.342.424-.738c.203-.467.305-.968.305-1.486a3.769 3.769 0 0 0-.942-2.487Z"}),o.createElement("path",{d:"M25.578 26.533q.459 0 .876.179.409.175.71.474.299.3.474.71.179.416.179.876 0 .471-.18.886a2.167 2.167 0 0 1-1.19 1.172q-.415.17-.87.17a2.3 2.3 0 0 1-.88-.17 2.2 2.2 0 0 1-.718-.467 2.1 2.1 0 0 1-.48-.712 2.3 2.3 0 0 1-.172-.879q0-.454.17-.87.171-.416.482-.72.304-.296.71-.47.419-.18.889-.179M26.06 13q1.081 0 1.985.302.916.307 1.58.887.671.586 1.039 1.411.366.826.365 1.828 0 .965-.288 1.698a4.7 4.7 0 0 1-.717 1.244q-.317.386-.675.699l-.244.2-.854.652q-.377.285-.645.553a.8.8 0 0 0-.168.234l-.026.072-.017.081-.331 2.104H24.24l-.235-2.28-.011-.063-.009-.082-.002-.148c0-.435.113-.827.34-1.162q.292-.43.72-.8.399-.345.855-.669.41-.29.763-.628.324-.309.54-.703c.127-.23.192-.507.192-.841q0-.306-.108-.53a1.2 1.2 0 0 0-.305-.397 1.4 1.4 0 0 0-.493-.268 2.2 2.2 0 0 0-.68-.102q-.584.002-.96.12a4 4 0 0 0-.532.207l-.14.072-.233.135-.278.173c-.22.145-.441.226-.666.226-.361 0-.67-.133-.901-.406l-.082-.109L21 15.1l.32-.282q.417-.368.91-.697a6.7 6.7 0 0 1 2.358-.978A7.2 7.2 0 0 1 26.061 13"}))))}},44163(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"m31 3.123-5.176 23.339a.498.498 0 0 1-.723.333l-7.856-4.2-4.301 7.163a.5.5 0 0 1-.562.225.5.5 0 0 1-.367-.482v-8.782zm-.972-.463L11.652 19.691l-10.46-4.222a.502.502 0 0 1-.003-.926z"})))}},56132(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=i.createElement("defs",null,i.createElement("linearGradient",{id:"a",x1:"50%",x2:"50%",y1:"0%",y2:"100%"},i.createElement("stop",{offset:"0%",stopColor:"#6387D3"}),i.createElement("stop",{offset:"100%",stopColor:"#2D4A86"})))),o||(o=i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{fill:"url(#a)",d:"M22.852 0C27.188 0 30 2.813 30 7.148v15.704C30 27.188 27.188 30 22.852 30H7.148C2.813 30 0 27.188 0 22.852V7.148C0 2.813 2.813 0 7.148 0z",transform:"translate(1 1)"}),i.createElement("path",{fill:"#FFF",d:"M16.693 30.852v-11.62h-3.775v-4.179h3.775V11.99s-.272-6.368 5.24-6.368h4.458v4.257h-2.778s-2.044-.111-2.066 2v3.175h4.494l-.648 4.179h-3.891V31h-4.809z"}))))}},11540(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=i.createElement("defs",null,i.createElement("radialGradient",{id:"c",cx:"52.722%",cy:"67.407%",r:"64.505%",fx:"52.722%",fy:"67.407%",gradientTransform:"matrix(.96336 .2682 -.25256 .9072 .19 -.079)"},i.createElement("stop",{offset:"0%",stopColor:"#FED980"}),i.createElement("stop",{offset:"37.228%",stopColor:"#FCAE49"}),i.createElement("stop",{offset:"55.555%",stopColor:"#F06745"}),i.createElement("stop",{offset:"100%",stopColor:"#E83D5C",stopOpacity:0})),i.createElement("linearGradient",{id:"a",x1:"57.698%",x2:"85.399%",y1:"-5.021%",y2:"114.28%"},i.createElement("stop",{offset:"0%",stopColor:"#4E60D3"}),i.createElement("stop",{offset:"14.874%",stopColor:"#913BAF"}),i.createElement("stop",{offset:"31.584%",stopColor:"#D52D88"}),i.createElement("stop",{offset:"49.377%",stopColor:"#D72E85"}),i.createElement("stop",{offset:"81.651%",stopColor:"#E6366D"}),i.createElement("stop",{offset:"100%",stopColor:"#F26D4F"})),i.createElement("filter",{id:"e",width:"313.3%",height:"313.3%",x:"-106.7%",y:"-106.7%",filterUnits:"objectBoundingBox"},i.createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),i.createElement("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:1}),i.createElement("feColorMatrix",{in:"shadowBlurOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.130632926 0"})),i.createElement("circle",{id:"f",cx:17.967,cy:6.102,r:1.406}),i.createElement("path",{id:"b",d:"M22.852 0C27.188 0 30 2.813 30 7.148v15.704C30 27.188 27.188 30 22.852 30H7.148C2.813 30 0 27.188 0 22.852V7.148C0 2.813 2.813 0 7.148 0z"}))),o||(o=i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{fill:"url(#a)",d:"M22.852 0C27.188 0 30 2.813 30 7.148v15.704C30 27.188 27.188 30 22.852 30H7.148C2.813 30 0 27.188 0 22.852V7.148C0 2.813 2.813 0 7.148 0z",transform:"translate(1 1)"}),i.createElement("g",{transform:"translate(1 1)"},i.createElement("mask",{id:"d",fill:"#fff"},i.createElement("use",{xlinkHref:"#b"})),i.createElement("path",{fill:"url(#c)",d:"M9.053 43.887c11.682 0 21.152-9.47 21.152-21.153S20.735 1.582 9.053 1.582-12.1 11.052-12.1 22.734s9.47 21.153 21.153 21.153",mask:"url(#d)"})),i.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M7.006 11.43v9.317a4.306 4.306 0 0 0 4.308 4.306h9.431a4.31 4.31 0 0 0 4.308-4.306v-9.318a4.306 4.306 0 0 0-4.308-4.306h-9.431a4.31 4.31 0 0 0-4.308 4.306m-2.05 0a6.36 6.36 0 0 1 6.358-6.358h9.431a6.357 6.357 0 0 1 6.359 6.357v9.318a6.36 6.36 0 0 1-6.359 6.357h-9.431a6.357 6.357 0 0 1-6.359-6.357z"}),i.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M16.059 22.006a5.83 5.83 0 1 1 0-11.66 5.83 5.83 0 0 1 0 11.66m0-2.05a3.78 3.78 0 1 0 0-7.56 3.78 3.78 0 0 0 0 7.56"}),i.createElement("g",{transform:"translate(3.98 4.098)"},i.createElement("use",{xlinkHref:"#f",fill:"#000",filter:"url(#e)"}),i.createElement("use",{xlinkHref:"#f",fill:"#FFF"})))))}},2197(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M9.661 27.085c1.998.286 3.09.757 4.055 1.175 1.112.481 2.162.935 4.16.935h6.874c1.379 0 2.5-1.121 2.5-2.5a2.5 2.5 0 0 0-.424-1.39 2.51 2.51 0 0 0 1.674-2.36 2.5 2.5 0 0 0-.424-1.39 2.51 2.51 0 0 0 1.674-2.36 2.5 2.5 0 0 0-.424-1.39A2.51 2.51 0 0 0 31 15.445c0-1.379-1.121-2.5-2.5-2.5h-7.874c.527-1.614 1.498-5.024.975-6.885C20.805 3.22 19.148 3 18.661 3c-1.16 0-2.036.954-2.036 2.216 0 3.949-3.687 10-6.875 10a.625.625 0 0 0-.625.625v10.625c0 .311.229.575.536.619M5 25a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-3.417 4.195h5.834c.322 0 .583-.28.583-.625V14.82c0-.345-.261-.625-.583-.625H1.583c-.322 0-.583.28-.583.625v13.75c0 .345.261.625.583.625"})))}},55961(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M27.5 1C29.43 1 31 2.57 31 4.5v23c0 1.93-1.57 3.5-3.5 3.5h-23C2.57 31 1 29.43 1 27.5v-23C1 2.57 2.57 1 4.5 1zM22 5a4 4 0 0 0-3.845 5.108l-6.328 3.062a4 4 0 1 0 0 5.66l6.328 3.062a4 4 0 1 0 1.018-1.722l-6.328-3.062a4 4 0 0 0 0-2.216l6.328-3.062A4 4 0 1 0 22 5"})))}},76798(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FFFC00",d:"M23.852 1C28.188 1 31 3.813 31 8.148v15.704C31 28.188 28.188 31 23.852 31H8.148C3.813 31 1 28.188 1 23.852V8.148C1 3.813 3.813 1 8.148 1z"}),o.createElement("path",{fill:"#000",fillRule:"nonzero",d:"M21.387 8.36s.58.993.721 2.105c0 0 .106.584-.037 3.534 0 0-.039.274.15.254 0 0 .24.037 1.11-.254 0 0 .354-.114.662-.087.174.016.312.045.58.218a.84.84 0 0 1 .386.67c.015.254-.084.464-.084.464s-.28.66-1.636.927c0 0-1.391.363-.935 1.137 0 0 .366 1.118 1.303 2.153.716.79 1.69 1.568 2.93 1.79 0 0 .646.072.7.557.056.486-.218.66-.218.66s-.66.6-2.797.893l-.23.893s-.107.774-1.283.473c0 0-1.81-.456-3.003.44-1.192.897-1.874 1.183-1.874 1.183s-1.713.794-3.644 0c0 0-.715-.307-1.8-1.118 0 0-.752-.589-1.72-.612-.967-.024-1.499.137-1.499.137s-.991.287-1.134-.436l-.242-.96s-2.555-.226-2.972-1.243c0 0-.374-.617.598-.867 0 0 1.892-.166 3.558-2.527 0 0 .63-.818.825-1.735 0 0 .12-.534-1.405-.924-1.525-.391-1.35-1.328-1.35-1.328s.063-.743.988-.845c0 0 .417-.01.914.183.276.106.651.166.853.158.162-.006.122-.254.122-.254l-.101-2.053s-.382-3.51 2.488-5.404c0 0 1.416-1.042 3.747-1.04 0 0 3.665-.13 5.329 2.859"}),o.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M10.416 14.21c-.048.285-.245.53-.595.543-.288.01-.73-.068-1.052-.192a2.3 2.3 0 0 0-.705-.148c-.226.029-.357.106-.439.215a.46.46 0 0 0-.087.221c.001.005.003.042.014.087.02.077.06.156.131.236.152.17.42.321.838.428q.499.129.849.291c.69.32.979.755.93 1.17-.09.437-.24.823-.438 1.203-.18.347-.362.62-.476.769q-.276.39-.572.725c-.71.805-1.478 1.354-2.251 1.69-.447.196-.81.288-1.053.316a.8.8 0 0 0-.228.095q-.027.03.001.089c.093.227.506.474 1.138.662a7.7 7.7 0 0 0 1.3.26q.087.012.116.013l.354.032.328 1.304c.018.084.034.096.137.109a1 1 0 0 0 .368-.03 3 3 0 0 1 .403-.085 7 7 0 0 1 1.254-.073 3.45 3.45 0 0 1 1.406.354c.276.132.484.267.6.357.458.343.88.617 1.254.83a7 7 0 0 0 .437.226c.959.395 1.93.395 2.808.157a4 4 0 0 0 .453-.155l.097-.046q.14-.07.337-.182c.381-.219.827-.513 1.333-.893a3.2 3.2 0 0 1 1.174-.538c.628-.151 1.282-.149 1.897-.055.16.024.282.049.356.068.405.103.57.06.642-.03a.2.2 0 0 0 .026-.056l.32-1.245.333-.046a9.5 9.5 0 0 0 1.609-.349c.324-.104.576-.214.763-.32.098-.056.147-.091.156-.099.058-.067.071-.126.06-.234-.002-.013-.016-.029-.076-.058a.6.6 0 0 0-.184-.058c-1.255-.224-2.308-.917-3.245-1.951a7.358 7.358 0 0 1-1.391-2.284c-.364-.67-.011-1.227.643-1.578.234-.125.46-.205.624-.248.43-.086.739-.204.97-.348a1.2 1.2 0 0 0 .298-.25.3.3 0 0 0 .042-.059.6.6 0 0 0 .037-.22.34.34 0 0 0-.158-.28c-.17-.11-.225-.128-.354-.14a1.4 1.4 0 0 0-.458.063c-.638.213-1.035.29-1.269.281-.359.014-.583-.236-.639-.537a1 1 0 0 1-.01-.244c.081-1.694.09-2.731.056-3.274a2 2 0 0 0-.012-.145 5 5 0 0 0-.319-1.207 6 6 0 0 0-.342-.734c-.49-.88-1.189-1.514-2.055-1.949a6.4 6.4 0 0 0-1.853-.583 7 7 0 0 0-.654-.072 6.844 6.844 0 0 0-2.897.476q-.39.16-.677.328c-.11.063-.182.11-.211.132A4.8 4.8 0 0 0 10.9 8.876a5.9 5.9 0 0 0-.537 1.811 6 6 0 0 0-.044 1.205l.102 2.063a1 1 0 0 1-.006.254"}))))}},79765(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#1DA1F2",d:"M23.852 1C28.188 1 31 3.813 31 8.148v15.704C31 28.188 28.188 31 23.852 31H8.148C3.813 31 1 28.188 1 23.852V8.148C1 3.813 3.813 1 8.148 1z"}),o.createElement("path",{fill:"#FFF",d:"M7.67 8.705s3.403 4.232 8.59 4.486c0 0-1.059-2.806 2.105-4.73 0 0 2.571-1.51 5.052.935 0 0 1.119-.054 2.468-1.046 0 0 .198.913-1.56 2.38 0 0 .978-.079 2.089-.806 0 0-.212 1.256-2.024 2.168 0 0 .552 9.94-9.148 12.115 0 0-5.13 1.158-8.742-1.676 0 0 3.832.399 5.868-1.737 0 0-2.555.24-3.812-2.774 0 0 1.277.22 1.796-.2 0 0-2.695.02-3.293-4.011 0 0 1.098.559 1.816.459 0 0-3.05-1.884-1.206-5.563"}))))}},28508(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M7.25 16.125c3.437 0 6.25 2.813 6.25 6.25 0 3.438-2.812 6.25-6.25 6.25-3.437 0-6.25-2.812-6.25-6.25 0-3.437 2.813-6.25 6.25-6.25m17.5 0c3.438 0 6.25 2.813 6.25 6.25 0 3.438-2.812 6.25-6.25 6.25s-6.25-2.812-6.25-6.25c0-3.437 2.812-6.25 6.25-6.25M7.25 18a4.35 4.35 0 0 0-4.375 4.375A4.35 4.35 0 0 0 7.25 26.75a4.35 4.35 0 0 0 4.375-4.375A4.35 4.35 0 0 0 7.25 18m17.5 0a4.35 4.35 0 0 0-4.375 4.375 4.35 4.35 0 0 0 4.375 4.375 4.35 4.35 0 0 0 4.375-4.375A4.35 4.35 0 0 0 24.75 18M16 7.375c.625 0 1.198.258 1.58.634l.108.116 2.437 2.375c1.063 1.063 2.515 1.735 4.253 1.806l.31.006v2.5c-2.452 0-4.56-.857-6.106-2.354l-.207-.208-.938-.937-2.937 3 2.75 2.75v7.812h-2.5v-6.25l-3.938-3.5c-.437-.5-.75-1.125-.75-1.812 0-.62.254-1.187.623-1.614l.127-.136 3.438-3.438c.438-.5 1.063-.75 1.75-.75M20.375 3c1.375 0 2.5 1.125 2.5 2.5S21.75 8 20.375 8a2.507 2.507 0 0 1-2.5-2.5c0-1.375 1.125-2.5 2.5-2.5"})))}},76714(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.15,d:"M16 1C7.716 1 1 7.716 1 16s6.716 15 15 15 15-6.716 15-15c-.01-8.28-6.72-14.99-15-15"}),o.createElement("path",{d:"m19.483 21.885 2.423 3.2-2.576 4.511q-.377.093-.764.164l-.108.02q-.329.058-.66.1l-.177.022q-.309.035-.621.057l-.196.015a13 13 0 0 1-1.542.006q-.043-.001-.087-.007a16 16 0 0 1-.65-.05l-.025-.004a14 14 0 0 1-1.41-.225l-2.957-4.63 2.384-3.18zM5.12 13.643l5.079 1.693 1.474 5.896-2.422 3.223-4.95-.782a14 14 0 0 1-.422-.685l-.032-.057q-.2-.347-.378-.705l-.005-.008a14 14 0 0 1-.658-1.55v-.005q-.133-.376-.245-.764l-.027-.095q-.103-.362-.187-.733-.007-.037-.015-.071a14 14 0 0 1-.265-1.694zm21.766 0 3.052 3.662q-.08.856-.264 1.695l-.016.071q-.084.37-.187.734l-.026.095a14 14 0 0 1-.246.764v.004q-.282.796-.658 1.55l-.004.008q-.18.36-.379.706l-.032.056q-.2.35-.42.684l-4.934.778-2.439-3.22 1.473-5.895zM21.75 3.24a14 14 0 0 1 1.713.924l.014.008q.81.513 1.544 1.132l.041.037q.329.28.64.578.04.038.079.077.326.318.63.655l.05.058q.267.301.517.617l.119.15q.271.35.52.718l-1.04 4.419-5.114 1.705-4.926-3.942-.002-5.052zm-11.524.01 5.239 2.074v5.05l-4.927 3.942-5.115-1.702-1.04-4.419A15 15 0 0 1 5.532 6.72q.029-.032.056-.064.303-.338.628-.655.037-.037.076-.073.308-.297.634-.575l.05-.042q.726-.614 1.528-1.125l.02-.012a14 14 0 0 1 1.703-.923"}))))}},22361(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M26.877 6.68 14.375 2.215v-.278a.937.937 0 1 0-1.875 0v24.376a.937.937 0 1 0 1.875 0v-.938c4.92 0 7.5 1.393 7.5 1.875s-2.579 1.875-7.5 1.875-7.5-1.393-7.5-1.875c0-.338 1.295-1.116 3.75-1.556v-1.91C7.525 24.269 5 25.394 5 27.25 5 29.826 9.86 31 14.375 31s9.375-1.174 9.375-3.75-4.86-3.75-9.375-3.75v-8.795L26.982 8.4a.937.937 0 0 0-.105-1.721m-12.502 5.928V4.205l9.803 3.501z"})))}},8542(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M18.049 6.86c-4.93-2.863-9.853-1.74-13.155 2.784-1.404 1.925 1.842 3.749 3.229 1.847 1.706-2.338 3.876-3.014 6.248-2.274a149 149 0 0 0-3.488 6.276 3.4 3.4 0 0 0-.287.752c-1.437 2.57-3.345 5.24-6.525 3.42-2.295-1.312-4.364 2.167-2.076 3.475 4.342 2.483 7.968.705 10.567-2.522q.134.072.29.125c2.123.724 4.061 1.892 5.754 3.334q.181.153.371.256 1.4 2.826 2.798 5.654c1.049 2.12 4.438.576 3.385-1.554q-1.47-2.975-2.943-5.95a1.78 1.78 0 0 0-.795-.828 2 2 0 0 0-.172-.165 23.5 23.5 0 0 0-4.725-3.146 144 144 0 0 1 3.6-6.438c4.007 1.201 7.817-.214 10.53-3.933 1.404-1.924-1.84-3.748-3.229-1.846-2.126 2.915-4.974 3.252-8.038 1.472a2 2 0 0 0-.616-.236 4 4 0 0 0-.222-.094 2 2 0 0 0-.501-.409M21.248 1c-1.676 0-3.034 1.329-3.034 2.968s1.358 2.968 3.034 2.968 3.033-1.329 3.033-2.968S22.923 1 21.248 1"})))}},1050(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M9.522 18.91c.845 0 1.68.098 2.477.302 1.676.428 3.222 1.126 4.72 1.798 1.41.634 2.735 1.23 4.106 1.587 1.303.338 2.763.424 4.086.134 1.434-.315 2.63-.997 3.426-1.947q.177-.21.325-.434a1.274 1.274 0 0 1 2.126 1.406 7 7 0 0 1-.742.943c-1.148 1.234-2.735 2.114-4.587 2.522-.787.175-1.546.251-2.279.251-1.743 0-3.347-.433-4.883-1.02a33 33 0 0 1-2.226-.972l-.74-.347c-1.853-.865-3.733-1.673-5.806-1.673-.876 0-1.769.143-2.623.427-1.488.497-2.766 1.402-3.592 2.553a1.27 1.27 0 0 1-1.036.532c-.258 0-.516-.076-.743-.239a1.283 1.283 0 0 1-.296-1.782 9.2 9.2 0 0 1 2.17-2.135 10.3 10.3 0 0 1 2.684-1.349 11 11 0 0 1 3.433-.557M3.032 7.792a2.06 2.06 0 0 1 2.302-1.775l8.153 1.048c.746.096 1.272.421 1.655 1.298.812 1.858 4.927 10.301 6.457 13.434a9 9 0 0 1-.532-.124c-1.291-.335-2.585-.918-3.952-1.533-1.534-.692-3.12-1.406-4.877-1.852-.87-.22-1.782-.331-2.713-.331-.71 0-1.418.063-2.116.19l6.034-2.98h.003l-.04-.093-.113-.276-.153-.374a530 530 0 0 1-1.387-3.441l-6.942-.893a2.06 2.06 0 0 1-1.778-2.298m21.582 2.03a4.497 4.497 0 1 1 0 8.995 4.497 4.497 0 0 1 0-8.995"})))}},38212(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M1 16.457c3.22.418 6.683 2.127 9.55 4.995 2.87 2.87 4.58 6.33 4.994 9.549a14.93 14.93 0 0 1-10.159-4.383A14.94 14.94 0 0 1 1 16.458m13.592-15.4c.43 3.686 2.315 7.608 5.53 10.825 3.217 3.217 7.142 5.1 10.818 5.527a14.92 14.92 0 0 1-4.327 9.21 14.94 14.94 0 0 1-9.21 4.327c-.424-3.682-2.31-7.603-5.528-10.82s-7.135-5.1-10.82-5.528a14.93 14.93 0 0 1 4.33-9.21 14.95 14.95 0 0 1 9.207-4.33M16.452 1c3.691.114 7.351 1.57 10.166 4.386A14.96 14.96 0 0 1 31 15.549c-3.225-.416-6.684-2.124-9.552-4.994-2.869-2.87-4.58-6.332-4.995-9.555"})))}},33148(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M25.526 2a2.316 2.316 0 0 1 2.316 2.316v18.241l-3.295-3.579a3.433 3.433 0 0 0-4.76-.283l-.233.22-6.507 7.058a3.45 3.45 0 0 0-.876 2.87H3.316A2.316 2.316 0 0 1 1 26.525V4.316A2.316 2.316 0 0 1 3.316 2zM22.02 26.408l2.244 2.434h-4.489zM9.236 5.158H4.158V18.96h5.514q1.24 0 2.207-.317.966-.318 1.625-.881a3.75 3.75 0 0 0 1-1.322 3.95 3.95 0 0 0 .34-1.639q0-1.165-.653-1.909-.654-.744-2.018-1.075.624-.228 1.07-.535.445-.309.73-.687.284-.38.416-.81.133-.432.133-.895a4 4 0 0 0-.289-1.545 2.84 2.84 0 0 0-.924-1.174q-.634-.484-1.638-.749-.878-.232-2.084-.261zm.36 7.948q.606 0 1.004.114.397.114.64.322.24.21.34.512t.1.682q0 .331-.085.653a1.4 1.4 0 0 1-.313.578 1.64 1.64 0 0 1-.63.417q-.402.162-1.037.161H7.36v-3.439zm-.36-5.551q.54 0 .933.085t.649.284q.256.2.379.526.123.327.123.82 0 .501-.156.833a1.2 1.2 0 0 1-.455.521 2 2 0 0 1-.725.265q-.426.076-.957.076H7.36v-3.41z"}),o.createElement("path",{d:"M29.796 29.742c.726-.686.81-1.804.228-2.589l-.134-.163-6.446-6.995a1.934 1.934 0 0 0-2.682-.161l-.166.16-6.446 6.996a1.96 1.96 0 0 0 .092 2.751 1.93 1.93 0 0 0 2.602.054l.152-.149 5.024-5.451 5.023 5.451a1.93 1.93 0 0 0 2.753.096"}))))}},75045(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M25.526 2a2.316 2.316 0 0 1 2.316 2.316v13.61c-.706.13-1.379.483-1.904 1.055l-3.919 4.252-3.92-4.254-.206-.205c-1.389-1.22-3.394-1.187-4.684.039a3.46 3.46 0 0 0-.16 4.856l4.766 5.173h-14.5A2.316 2.316 0 0 1 1 26.526V4.316A2.316 2.316 0 0 1 3.316 2zm2.218 25.194a2.32 2.32 0 0 1-1.372 1.489zM9.236 5.158H4.158V18.96h5.514q1.24 0 2.207-.317.966-.318 1.625-.881a3.75 3.75 0 0 0 1-1.322 3.95 3.95 0 0 0 .34-1.639q0-1.165-.653-1.909-.654-.744-2.018-1.075.624-.228 1.07-.535.445-.309.73-.687.284-.38.416-.81.133-.432.133-.895a4 4 0 0 0-.289-1.545 2.84 2.84 0 0 0-.924-1.174q-.634-.484-1.638-.749-.878-.232-2.084-.261zm.36 7.948q.606 0 1.004.114.397.114.64.322.24.21.34.512t.1.682q0 .331-.085.653a1.4 1.4 0 0 1-.313.578 1.64 1.64 0 0 1-.63.417q-.402.162-1.037.161H7.36v-3.439zm-.36-5.551q.54 0 .933.085t.649.284q.256.2.379.526.123.327.123.82 0 .501-.156.833a1.2 1.2 0 0 1-.455.521 2 2 0 0 1-.725.265q-.426.076-.957.076H7.36v-3.41z"}),o.createElement("path",{d:"M27.043 19.995a1.93 1.93 0 0 1 2.753-.096c.726.687.81 1.804.228 2.59l-.134.162-6.446 6.996a1.934 1.934 0 0 1-2.682.16l-.166-.16-6.446-6.995a1.96 1.96 0 0 1 .092-2.752 1.93 1.93 0 0 1 2.602-.054l.152.15 5.024 5.45z"}))))}},8865(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30 9a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99H2a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1ZM30 1a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1ZM18.2 17.73l-4.856 5.269L2 23a1 1 0 0 1-.993-.883L1 22v-4a1 1 0 0 1 1-1l17.117-.001a3.8 3.8 0 0 0-.917.73M30 17a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99l-1.294-.001-4.854-5.268a3.8 3.8 0 0 0-.918-.731ZM11.5 25l-.983 1.068a3.84 3.84 0 0 0-.23 4.932H2a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1zm9.5.967 4.636 5.032h-9.274z"}),o.createElement("path",{d:"M30.27 30.367a2.3 2.3 0 0 1-3.281-.114L21 23.753l-5.989 6.5a2.3 2.3 0 0 1-3.283.113 2.34 2.34 0 0 1-.11-3.28l7.685-8.34a2.305 2.305 0 0 1 3.394 0l7.685 8.34a2.34 2.34 0 0 1-.111 3.28"}))))}},92181(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.008 1c1.044 0 1.91.812 1.987 1.843l.005.149.001 15.994-.03-.032-.142-.142A3.42 3.42 0 0 0 28 17.9V5.144a1 1 0 0 0-1-1.001H5a1 1 0 0 0-.993.884L4 5.144v21.998a1 1 0 0 0 .884.994l.117.007 12.169-.001 2.323 2.522.227.222.141.114H2.991a1.996 1.996 0 0 1-1.986-1.843L1 29.008V2.992c0-1.044.812-1.91 1.843-1.987L2.992 1zM31 23.658v5.35c0 1.044-.812 1.91-1.843 1.987l-.149.005-4.82.002q.19-.156.36-.34l2.32-2.52h.131a1 1 0 0 0 .994-.883l.007-.117v-.228l2.993-3.246z"}),o.createElement("path",{d:"M19.5 6h-11a2.5 2.5 0 0 0 0 5h10.94a2.53 2.53 0 0 0 2.53-2.5A2.47 2.47 0 0 0 19.5 6M21.5 13h-11a2.5 2.5 0 1 0 0 5h10.94a2.53 2.53 0 0 0 2.53-2.5A2.47 2.47 0 0 0 21.5 13M13.048 23.67 14.274 25H12.5a2.5 2.5 0 0 1-2.495-2.336L10 22.5a2.5 2.5 0 0 1 2.5-2.5l-.109.002a3.47 3.47 0 0 0 .657 3.667M23.53 20c.429.005.83.12 1.18.315l-2.69 2.918-2.98-3.234Z"}),o.createElement("path",{d:"M29.796 19.9c.726.686.81 1.803.228 2.588l-.134.163-6.446 6.996a1.934 1.934 0 0 1-2.682.16l-.166-.16-6.446-6.995a1.96 1.96 0 0 1 .092-2.752 1.93 1.93 0 0 1 2.602-.054l.152.15 5.024 5.45 5.023-5.45a1.93 1.93 0 0 1 2.753-.097"}))))}},83150(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m23.617 28.142 2.323 2.52q.17.186.36.34h-8.56l.093-.079.212-.205 2.374-2.576zM29.008 1c1.044 0 1.91.812 1.987 1.843l.005.149v22.993l-3-3.257V5.144a1 1 0 0 0-1-1.001H5a1 1 0 0 0-.993.884L4 5.144v21.998a1 1 0 0 0 .884.994l.117.007h7.135A3.45 3.45 0 0 0 13.404 31L2.992 31a1.996 1.996 0 0 1-1.987-1.843L1 29.008V2.992c0-1.044.812-1.91 1.843-1.987L2.992 1z"}),o.createElement("path",{d:"M19.5 6h-11a2.5 2.5 0 0 0 0 5h10.94a2.53 2.53 0 0 0 2.53-2.5A2.47 2.47 0 0 0 19.5 6M21.5 13h-11a2.5 2.5 0 1 0 0 5h10.94a2.53 2.53 0 0 0 2.53-2.5A2.47 2.47 0 0 0 21.5 13M18.555 20l-4.61 5H12.5a2.5 2.5 0 0 1-2.495-2.336L10 22.5a2.5 2.5 0 0 1 2.5-2.5zM22.02 19.368c.48 0 .942.18 1.296.5l.128.127 6.446 6.995.134.163a1.96 1.96 0 0 1-.228 2.589 1.93 1.93 0 0 1-2.633.024l-.12-.12-5.023-5.451-5.024 5.451-.152.15a1.93 1.93 0 0 1-2.602-.055 1.96 1.96 0 0 1-.2-2.623l.108-.128 6.446-6.996.166-.16a1.93 1.93 0 0 1 1.258-.466"}))))}},2576(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.985 1H2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h27.955a1 1 0 0 0 1-.985l.03-2a1 1 0 0 0-1-1.015m0 6H2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h27.955a1 1 0 0 0 1-.985l.03-2a1 1 0 0 0-1-1.015"}),o.createElement("path",{d:"M14.518 13a11 11 0 0 0-1.893 2H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h9.454c.728.782 1.569 1.456 2.496 2H2a1 1 0 0 1-.993-.883L1 30V14a1 1 0 0 1 .883-.993L2 13Zm16.435 14.128-.01 2.875a1 1 0 0 1-.883.99l-.116.007H27.05a11.06 11.06 0 0 0 3.903-3.872M10.601 23c.197 1.44.672 2.793 1.37 4H6a1 1 0 0 1-.993-.883L5 26v-2a1 1 0 0 1 .883-.993L6 23Zm.859-6a10.9 10.9 0 0 0-.949 3.999L6 21a1 1 0 0 1-.993-.883L5 20v-2a1 1 0 0 1 .883-.993L6 17ZM30 13a1 1 0 0 1 .99.887l.007.116-.007 1.931A11 11 0 0 0 28.482 13z"}),o.createElement("path",{d:"M21.5 27.545a6.045 6.045 0 0 0 5.35-8.863l-8.168 8.168c.859.453 1.82.695 2.818.695m2.818-11.395a6.045 6.045 0 0 0-8.168 8.168zM21.5 31a9.5 9.5 0 1 1 0-19 9.5 9.5 0 0 1 0 19"}))))}},24330(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M11.068 25a11.03 11.03 0 0 0 4.882 6H2a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1Zm19.911 2.084-.029 2.926a1 1 0 0 1-1 .99h-2.9c1.62-.949 2.975-2.3 3.93-3.916M29.99 9a1 1 0 0 1 1 1.01l-.04 4a1 1 0 0 1-.63.919A10.98 10.98 0 0 0 21.5 10.5a10.99 10.99 0 0 0-8.875 4.5H2a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1ZM30 1a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1ZM11.46 17a11 11 0 0 0-.96 4.5q.001.764.101 1.5H2a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1Z"}),o.createElement("path",{d:"M21.5 27.545a6.045 6.045 0 0 0 5.35-8.863l-8.168 8.168c.859.453 1.82.695 2.818.695m2.818-11.395a6.045 6.045 0 0 0-8.168 8.168zM21.5 31a9.5 9.5 0 1 1 0-19 9.5 9.5 0 0 1 0 19"}))))}},2457(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.985 1H2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h27.955a1 1 0 0 0 1-.985l.03-2a1 1 0 0 0-1-1.015m0 6H2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h27.955a1 1 0 0 0 1-.985l.03-2a1 1 0 0 0-1-1.015"}),o.createElement("path",{d:"m25.365 13-.1.128L23.872 15H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h9.865l1.961 1.999L2 31a1 1 0 0 1-.993-.883L1 30V14a1 1 0 0 1 .883-.993L2 13zm5.616 5.951-.037 11.052a1 1 0 0 1-.884.99l-.116.007h-7.876q.074-.092.141-.188L23.55 29h4.395a1 1 0 0 0 1-.996l.028-6.336zM11.966 23a4.14 4.14 0 0 0 .103 4L6 27a1 1 0 0 1-.993-.883L5 26v-2a1 1 0 0 1 .883-.993L6 23Zm15.013 1.363-.024 1.653a1 1 0 0 1-.885.978l-.115.007-.925-.001zM22.386 17l-2.973 4h-2.79a3.96 3.96 0 0 0-2.242 0L6 21a1 1 0 0 1-.993-.883L5 20v-2a1 1 0 0 1 .883-.993L6 17z"}),o.createElement("path",{d:"m26.469 14.022-7.797 10.49-1.405-1.43a2.46 2.46 0 0 0-3.527 0 2.62 2.62 0 0 0 .002 3.65l3.456 3.524c.479.485 1.114.746 1.857.744l.06-.003a2.51 2.51 0 0 0 1.87-1.052l9.528-12.884c.817-1.13.582-2.721-.524-3.555a2.497 2.497 0 0 0-3.52.516"}))))}},97407(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M11.501 25c.021.932.355 1.86 1.003 2.603l.169.182 3.153 3.214L2 31a1 1 0 0 1-.993-.883L1 30v-4a1 1 0 0 1 .883-.993L2 25zm15.008-.001L29.99 25a1 1 0 0 1 .994.893l.006.117-.04 4a1 1 0 0 1-.884.983L29.95 31h-7.882q.074-.092.141-.188zM2 17h20.386l-3.872 5.21-.176-.179a3.96 3.96 0 0 0-5.669 0c-.287.293-.522.62-.703.968L2 23a1 1 0 0 1-.993-.883L1 22v-4a1 1 0 0 1 .883-.993zm28.981 1.95-.03 3.06a1 1 0 0 1-.885.983L29.95 23h-1.963zM29.99 9a1 1 0 0 1 .994.893l.006.117-.024 2.357-.073-.059a3.995 3.995 0 0 0-5.496.65l-.132.17-1.392 1.871L2 15a1 1 0 0 1-.993-.883L1 14v-4a1 1 0 0 1 .883-.993L2 9zM30 1a1 1 0 0 1 .984.893l.006.117-.04 4a1 1 0 0 1-.884.983L29.95 7H2a1 1 0 0 1-.993-.883L1 6V2a1 1 0 0 1 .883-.993L2 1z"}),o.createElement("path",{d:"m26.469 14.022-7.797 10.49-1.405-1.43a2.46 2.46 0 0 0-3.527 0 2.62 2.62 0 0 0 .002 3.65l3.456 3.524c.479.485 1.114.746 1.857.744l.06-.003a2.51 2.51 0 0 0 1.87-1.052l9.528-12.884c.817-1.13.582-2.721-.524-3.555a2.497 2.497 0 0 0-3.52.516"}))))}},90923(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.03 13a1.97 1.97 0 0 1 1.94 2 2.03 2.03 0 0 1-1.005 1.723 3.8 3.8 0 0 0-3.164.276H15.197a3.81 3.81 0 0 0-3.766-.001L11 17a2 2 0 1 1 0-4Z"}),o.createElement("path",{d:"m10.515 22.93 1.906 2.069L3 25a2 2 0 0 1-1.995-1.85L1 23a2 2 0 0 1 2-2h6.558c.123.7.441 1.372.957 1.93M22.872 21 21 23.033 19.126 21zM14.265 27l3.685 3.999L7 31a2 2 0 0 1-1.995-1.85L5 29a2 2 0 0 1 2-2zm14.764 0a1.97 1.97 0 0 1 1.941 2 2.03 2.03 0 0 1-2.03 2l-4.891-.001L27.734 27Z"}),o.createElement("path",{fillOpacity:.4,d:"M29.03 7a1.97 1.97 0 0 1 1.94 2 2.03 2.03 0 0 1-2.03 2H7a2 2 0 1 1 0-4ZM25 1H3a2 2 0 1 0 0 4h21.94a2.03 2.03 0 0 0 2.03-2A1.97 1.97 0 0 0 25 1"}),o.createElement("path",{d:"M11.73 18.633a2.3 2.3 0 0 1 3.281.114l5.989 6.5 5.989-6.5a2.3 2.3 0 0 1 3.283-.113c.926.875.976 2.342.11 3.28l-7.685 8.34a2.305 2.305 0 0 1-3.394 0l-7.685-8.34a2.34 2.34 0 0 1 .111-3.28"}))))}},65822(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M10.696 17.546a3.837 3.837 0 0 0-.181 5.384l.064.069L2 23a1 1 0 0 1-.993-.883L1 22v-4a1 1 0 0 1 1-1l9.431-.002c-.26.149-.508.331-.735.548M25.99 17a1 1 0 0 1 .549.164 3.8 3.8 0 0 0-.654.567l-4.856 5.268h-.06l-4.853-5.266a3.8 3.8 0 0 0-.919-.734ZM26 1a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Z"}),o.createElement("path",{d:"m12.422 25 5.529 6H6a1 1 0 0 1-.993-.883L5 30v-4a1 1 0 0 1 1-1zM30 25a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99h-5.902l5.529-6Zm0-16a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99H6a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1ZM11.73 18.633a2.3 2.3 0 0 1 3.281.114l5.989 6.5 5.989-6.5a2.3 2.3 0 0 1 3.283-.113c.926.875.976 2.342.11 3.28l-7.685 8.34a2.305 2.305 0 0 1-3.394 0l-7.685-8.34a2.34 2.34 0 0 1 .111-3.28"}))))}},92917(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m17.37 25-1.91 1.91a3.275 3.275 0 0 0-.438 4.09H2a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1zm6.13 3.13L26.368 31h-5.737zM30 25a1 1 0 0 1 .99 1.01l-.004.346L29.629 25ZM14.592 17a3.27 3.27 0 0 0 .867 3.09l2.909 2.909L2 23a1 1 0 0 1-.993-.883L1 22v-4a1 1 0 0 1 1-1Zm16.371 3.666-.013 1.344a1 1 0 0 1-1 .99l-1.319-.001zM25.37 17l-1.87 1.87L21.63 17zM30 9a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-.383.777 3.28 3.28 0 0 0-3.079.211h-7.975a3.28 3.28 0 0 0-3.476 0L2 15a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1ZM29.99 1H2a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h27.95a1 1 0 0 0 1-.99l.04-4a1 1 0 0 0-1-1.01"}),o.createElement("path",{d:"m30.48 27.971-4.471-4.47 4.471-4.472a1.774 1.774 0 1 0-2.51-2.508l-4.47 4.47-4.471-4.471a1.773 1.773 0 1 0-2.51 2.509l4.472 4.471-4.471 4.471a1.774 1.774 0 1 0 2.509 2.51l4.471-4.472 4.471 4.471a1.773 1.773 0 0 0 2.51 0 1.774 1.774 0 0 0 0-2.509"}))))}},22253(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m15.483 25 1.133 3.173a2 2 0 0 0 1.444 1.278c.671.15 1.367-.053 1.85-.533l2.09-2.09L26.172 31 2 31a1 1 0 0 1-.993-.883L1 30v-4a1 1 0 0 1 1-1zM30 25a1 1 0 0 1 .99 1.01l-.002.149L29.828 25ZM12.626 17l2.142 5.999L2 23a1 1 0 0 1-.993-.883L1 22v-4a1 1 0 0 1 1-1zM30 17a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99l-2.123-.001-.999-.999 2.087-2.086a2 2 0 0 0-.094-2.915ZM30 9a1 1 0 0 1 .99 1.01l-.04 4a1 1 0 0 1-1 .99l-6.305-.001-9.472-3.383a2 2 0 0 0-1.966.358l-.12.111a2 2 0 0 0-.47 2.088l.294.826L2 15a1 1 0 0 1-.993-.883L1 14v-4a1 1 0 0 1 1-1Z"}),o.createElement("path",{d:"M27.988 18.39a.5.5 0 0 0-.32-.36l-14-5a.5.5 0 0 0-.639.638l5 14a.503.503 0 0 0 .825.185L22 24.707l6.147 6.146a.495.495 0 0 0 .707 0l2-2a.5.5 0 0 0 0-.707L24.707 22l3.147-3.147a.5.5 0 0 0 .134-.463"}),o.createElement("path",{fillOpacity:.4,d:"M29.99 1H2a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h27.95a1 1 0 0 0 1-.99l.04-4a1 1 0 0 0-1-1.01"}))))}},62925(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M24 17a2.97 2.97 0 0 1 2.97 3c-.004.46-.112.896-.3 1.285l-2.123-2.307a3.433 3.433 0 0 0-4.76-.283l-.233.22L15.79 23 4 23a3 3 0 0 1-2.995-2.824L1 20a3 3 0 0 1 3-3Zm.03-16a2.97 2.97 0 0 1 2.94 3 3.03 3.03 0 0 1-3.03 3H4a3 3 0 1 1 0-6Z"}),o.createElement("path",{d:"m13.945 24.999-.898.974A3.46 3.46 0 0 0 13.403 31H8a3 3 0 0 1 0-6zm8.074 1.409 3.921 4.255q.17.185.358.338h-8.557q.047-.038.092-.078l.212-.205zM28.029 9a2.97 2.97 0 0 1 2.941 3 3.03 3.03 0 0 1-3.03 3H8a3 3 0 0 1 0-6Z"}),o.createElement("path",{d:"M22.02 19.368c.48 0 .942.18 1.296.5l.128.127 6.446 6.995.134.163a1.96 1.96 0 0 1-.228 2.589 1.93 1.93 0 0 1-2.633.024l-.12-.12-5.023-5.451-5.024 5.451-.152.15a1.93 1.93 0 0 1-2.602-.055 1.96 1.96 0 0 1-.2-2.623l.108-.128 6.446-6.996.166-.16a1.93 1.93 0 0 1 1.258-.466"}))))}},5024(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M24 17a2.97 2.97 0 0 1 2.553 1.452 3.4 3.4 0 0 0-.615.529l-3.703 4.018h-.432l-3.704-4.02-.206-.205c-1.389-1.22-3.394-1.187-4.684.039A3.46 3.46 0 0 0 12.564 23H4a3 3 0 0 1 0-6Zm.03-16a2.97 2.97 0 0 1 2.94 3 3.03 3.03 0 0 1-3.03 3H4a3 3 0 1 1 0-6Z"}),o.createElement("path",{d:"m14.274 24.999 5.22 5.665.226.222.139.113L8 31a3 3 0 0 1-2.995-2.824L5 28a3 3 0 0 1 3-3zm15.154.366A2.97 2.97 0 0 1 30.97 28a3.03 3.03 0 0 1-3.03 3h-3.752q.191-.155.36-.338ZM28.029 9a2.97 2.97 0 0 1 2.941 3 3.03 3.03 0 0 1-3.03 3H8a3 3 0 0 1 0-6ZM29.796 19.9c.726.686.81 1.803.228 2.588l-.134.163-6.446 6.996a1.934 1.934 0 0 1-2.682.16l-.166-.16-6.446-6.995a1.96 1.96 0 0 1 .092-2.752 1.93 1.93 0 0 1 2.602-.054l.152.15 5.024 5.45 5.023-5.45a1.93 1.93 0 0 1 2.753-.097"}))))}},35848(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m12.76 16.999 5.999 6L4 23a3 3 0 0 1-2.995-2.824L1 20a3 3 0 0 1 3-3zM24 17a2.97 2.97 0 0 1 2.97 3 3.02 3.02 0 0 1-.754 1.97L21.244 17Zm0-16a2.97 2.97 0 0 1 2.97 3 3.03 3.03 0 0 1-3.03 3l-12.697-.001-6-6ZM20.759 24.999l5.328 5.328c.303.303.655.528 1.031.674L8 31a3 3 0 0 1 0-6zM5.762 10.002 10.76 15 8 15a3 3 0 0 1-2.995-2.824L5 12c0-.767.288-1.467.762-1.998M28 9a2.97 2.97 0 0 1 2.97 3 3.03 3.03 0 0 1-3.03 3l-8.696-.001-6-6Z"}),o.createElement("path",{d:"M1.939 1.936a1.507 1.507 0 0 1 2.012-.098l.114.103L29.27 27.145c.59.59.592 1.538.004 2.126a1.507 1.507 0 0 1-2.012.098l-.114-.103L1.944 4.062a1.5 1.5 0 0 1-.005-2.126"}))))}},61019(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m6.218 25.586-.08-.093a24.555 24.555 0 0 0 3.64 3.454c1.05.808 2.132 1.5 3.239 2.053H8a3 3 0 0 1-1.782-5.414M30.97 28a3.03 3.03 0 0 1-2.853 2.995L27.94 31h-2.956a20 20 0 0 0 3.24-2.053 24.5 24.5 0 0 0 2.485-2.199c.171.38.266.805.261 1.252M9.777 19.053A24.6 24.6 0 0 0 7.06 21.49l-.357.379c-.332.36-.59.661-.77.888A2 2 0 0 0 5.77 23L4 23a3 3 0 0 1-.176-5.995L4 17h9.019a20 20 0 0 0-3.242 2.053M28 9a2.97 2.97 0 0 1 2.97 3 3.03 3.03 0 0 1-2.853 2.995L27.94 15H8a3 3 0 0 1-.176-5.995L8 9zm-3.97-8a2.97 2.97 0 0 1 2.94 3 3.03 3.03 0 0 1-2.853 2.995L23.94 7H4a3 3 0 0 1-.176-5.995L4 1z"}),o.createElement("path",{d:"M19 17c5.49 0 10.014 4.55 11.434 6.15l.161.184c.17.196.27.322.297.355a.5.5 0 0 1 0 .622c-.027.033-.128.16-.297.355l-.16.184C29.013 26.45 24.49 31 19 31c-5.489 0-10.013-4.55-11.434-6.15l-.161-.184a12 12 0 0 1-.297-.355.5.5 0 0 1 0-.622c.027-.033.128-.16.297-.355l.16-.184C8.988 21.55 13.512 17 19 17m0 2c-2.758 0-5 2.242-5 5s2.242 5 5 5 5-2.242 5-5-2.242-5-5-5m0 1.5c1.93 0 3.5 1.57 3.5 3.5s-1.57 3.5-3.5 3.5-3.5-1.57-3.5-3.5 1.57-3.5 3.5-3.5"}))))}},1872(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M25.526 2a2.316 2.316 0 0 1 2.316 2.316v18.241l-3.295-3.579a3.433 3.433 0 0 0-4.76-.283l-.233.22-6.507 7.058a3.45 3.45 0 0 0-.876 2.87H3.316A2.316 2.316 0 0 1 1 26.525V4.316A2.316 2.316 0 0 1 3.316 2zM22.02 26.408l2.244 2.434h-4.489zM9.425 5.158q-1.136 0-2.018.346a4.5 4.5 0 0 0-1.487.923A3.91 3.91 0 0 0 4.688 9.26q0 .966.266 1.625.265.658.696 1.099t.98.71 1.128.455q.577.184 1.127.336t.98.35q.432.199.697.503.265.303.265.786 0 .834-.483 1.218-.482.383-1.355.383-.644 0-1.117-.18a5.3 5.3 0 0 1-.839-.398 42 42 0 0 1-.654-.398 1.1 1.1 0 0 0-.573-.18.83.83 0 0 0-.643.298l-.058.081-.947 1.497q.406.407.957.74.55.33 1.174.572.625.241 1.294.375.667.132 1.312.132 1.174 0 2.098-.355a4.5 4.5 0 0 0 1.554-.976q.63-.62.961-1.454a4.8 4.8 0 0 0 .332-1.79q0-.862-.265-1.474a3.3 3.3 0 0 0-.697-1.037 3.8 3.8 0 0 0-.985-.701q-.555-.275-1.132-.479a25 25 0 0 0-1.132-.37 7.5 7.5 0 0 1-.985-.364 2.3 2.3 0 0 1-.697-.473.96.96 0 0 1-.265-.692q0-.654.44-1.037.441-.384 1.341-.384a2.9 2.9 0 0 1 .929.137q.407.137.724.308l.569.308a1 1 0 0 0 .469.137.67.67 0 0 0 .402-.113q.117-.085.227-.235l.072-.106.796-1.488a4.7 4.7 0 0 0-.839-.61 6.3 6.3 0 0 0-1.009-.465 6.5 6.5 0 0 0-1.141-.294 7.6 7.6 0 0 0-1.237-.1"}),o.createElement("path",{d:"M29.796 29.742c.726-.686.81-1.804.228-2.589l-.134-.163-6.446-6.995a1.934 1.934 0 0 0-2.682-.161l-.166.16-6.446 6.996a1.96 1.96 0 0 0 .092 2.751 1.93 1.93 0 0 0 2.602.054l.152-.149 5.024-5.451 5.023 5.451a1.93 1.93 0 0 0 2.753.096"}))))}},71857(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M25.526 2a2.316 2.316 0 0 1 2.316 2.316v13.61c-.706.13-1.379.483-1.904 1.055l-3.919 4.252-3.92-4.254-.206-.205c-1.389-1.22-3.394-1.187-4.684.039a3.46 3.46 0 0 0-.16 4.856l4.766 5.173h-14.5A2.316 2.316 0 0 1 1 26.526V4.316A2.316 2.316 0 0 1 3.316 2zm2.218 25.194a2.32 2.32 0 0 1-1.372 1.489zM9.425 5.158q-1.136 0-2.018.346a4.5 4.5 0 0 0-1.487.923A3.91 3.91 0 0 0 4.688 9.26q0 .966.266 1.625.265.658.696 1.099t.98.71 1.128.455q.577.184 1.127.336t.98.35q.432.199.697.503.265.303.265.786 0 .834-.483 1.218-.482.383-1.355.383-.644 0-1.117-.18a5.3 5.3 0 0 1-.839-.398 42 42 0 0 1-.654-.398 1.1 1.1 0 0 0-.573-.18.83.83 0 0 0-.643.298l-.058.081-.947 1.497q.406.407.957.74.55.33 1.174.572.625.241 1.294.375.667.132 1.312.132 1.174 0 2.098-.355a4.5 4.5 0 0 0 1.554-.976q.63-.62.961-1.454a4.8 4.8 0 0 0 .332-1.79q0-.862-.265-1.474a3.3 3.3 0 0 0-.697-1.037 3.8 3.8 0 0 0-.985-.701q-.555-.275-1.132-.479a25 25 0 0 0-1.132-.37 7.5 7.5 0 0 1-.985-.364 2.3 2.3 0 0 1-.697-.473.96.96 0 0 1-.265-.692q0-.654.44-1.037.441-.384 1.341-.384a2.9 2.9 0 0 1 .929.137q.407.137.724.308l.569.308a1 1 0 0 0 .469.137.67.67 0 0 0 .402-.113q.117-.085.227-.235l.072-.106.796-1.488a4.7 4.7 0 0 0-.839-.61 6.3 6.3 0 0 0-1.009-.465 6.5 6.5 0 0 0-1.141-.294 7.6 7.6 0 0 0-1.237-.1"}),o.createElement("path",{d:"M27.043 19.995a1.93 1.93 0 0 1 2.753-.096c.726.687.81 1.804.228 2.59l-.134.162-6.446 6.996a1.934 1.934 0 0 1-2.682.16l-.166-.16-6.446-6.995a1.96 1.96 0 0 1 .092-2.752 1.93 1.93 0 0 1 2.602-.054l.152.15 5.024 5.45z"}))))}},87387(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M18.661 12.42a1.37 1.37 0 0 1 1.908-.063c.548.5.578 1.344.065 1.88l-4.147 4.343c-.256.268-.614.42-.987.42s-.73-.152-.986-.42l-4.147-4.342a1.31 1.31 0 0 1 .064-1.882c.545-.499 1.4-.47 1.907.064l3.162 3.311z"})))}},41978(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M28.38 9H3.62a.62.62 0 0 0-.573.392.65.65 0 0 0 .133.693l12.326 12.727c.117.12.274.188.439.188a.62.62 0 0 0 .439-.186l12.434-12.728a.65.65 0 0 0 .135-.693.62.62 0 0 0-.572-.393"})))}},4752(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M12.339 18.58a1.37 1.37 0 0 1-1.908.064 1.31 1.31 0 0 1-.065-1.881l4.148-4.343c.255-.268.613-.42.986-.42.374 0 .731.152.986.42l4.148 4.342a1.31 1.31 0 0 1-.065 1.882c-.544.499-1.4.47-1.907-.064L15.5 15.27z"})))}},62154(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M3.62 23h24.76c.25 0 .476-.155.573-.392a.65.65 0 0 0-.133-.693L16.494 9.188A.61.61 0 0 0 16.055 9a.62.62 0 0 0-.439.186L3.182 21.914a.65.65 0 0 0-.135.693.62.62 0 0 0 .572.393"})))}},9076(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m21.216 24.999-1.702 1.644a3.42 3.42 0 0 0-1.005 2.218l-.006.21c0 .692.21 1.362.596 1.927H7.879a.88.88 0 0 1-.88-.88V25.88a.88.88 0 0 1 .88-.88zm-2.009-8q.069.093.143.18l.167.18 4.747 4.698-.976.942H7.88a.88.88 0 0 1-.88-.88v-4.24a.88.88 0 0 1 .88-.88Zm4.912-8a.88.88 0 0 1 .88.88v3.243l-.626-.621a3.45 3.45 0 0 0-4.712-.138l-.147.138-.136.142A3.38 3.38 0 0 0 18.51 15H7.88a.88.88 0 0 1-.88-.88V9.88A.88.88 0 0 1 7.88 9zM19.12 1a.88.88 0 0 1 .88.88v4.24a.88.88 0 0 1-.88.88H1.88A.88.88 0 0 1 1 6.12V1.88A.88.88 0 0 1 1.88 1z"}),o.createElement("path",{d:"M20.571 13.565a1.92 1.92 0 0 0-.118 2.598l.12.13 5.836 5.778-5.838 5.636a1.92 1.92 0 0 0 0 2.727 1.95 1.95 0 0 0 2.622.112l.123-.112 7.118-7.07q.137-.14.24-.292l.028-.046.118-.216.035-.076.093-.286.019-.088a1.9 1.9 0 0 0 .025-.551l-.028-.189-.018-.076-.07-.225-.022-.057-.035-.076-.136-.247a2 2 0 0 0-.16-.208l-.085-.092-7.122-7.074a1.95 1.95 0 0 0-2.745 0"}))))}},13048(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m20.086 24.999 4.913 4.879v.24a.88.88 0 0 1-.88.88H7.88a.88.88 0 0 1-.88-.88V25.88a.88.88 0 0 1 .88-.88zm2.013-8-2.592 2.576-.128.136a4 4 0 0 0-.302.389l-.07.114-.137.247-.051.102-.035.076-.057.14-.103.32-.046.181-.022.116-.029.188a3.4 3.4 0 0 0 .039 1.076l.024.112.038.138.028.089H7.88a.88.88 0 0 1-.88-.88v-4.24a.88.88 0 0 1 .88-.88zm2.02-8a.88.88 0 0 1 .88.88v4.24l-.886.88H7.88a.88.88 0 0 1-.88-.88V9.88A.88.88 0 0 1 7.88 9zM19.12 1a.88.88 0 0 1 .88.88v4.24a.88.88 0 0 1-.88.88H1.88A.88.88 0 0 1 1 6.12V1.88A.88.88 0 0 1 1.88 1z"}),o.createElement("path",{d:"M30.43 13.565c.718.71.757 1.84.12 2.598l-.12.13-5.837 5.778 5.838 5.636a1.92 1.92 0 0 1 0 2.727 1.95 1.95 0 0 1-2.621.112l-.124-.112-7.117-7.07a2 2 0 0 1-.241-.292l-.028-.046-.118-.216-.035-.076-.092-.286-.02-.088a1.9 1.9 0 0 1-.025-.551l.029-.189.018-.076.07-.225.022-.057.034-.076.137-.247q.076-.114.159-.208l.085-.092 7.122-7.074a1.95 1.95 0 0 1 2.745 0"}))))}},59104(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m21.904 17.164-2.683-2.682a3.35 3.35 0 0 0-4.742.003 3.35 3.35 0 0 0 .003 4.736l2.737 2.738-.835.855a.62.62 0 0 1-.439.186.61.61 0 0 1-.439-.188L3.18 10.085a.65.65 0 0 1-.133-.693A.62.62 0 0 1 3.62 9h24.76a.62.62 0 0 1 .573.393.65.65 0 0 1-.135.693z"}),o.createElement("path",{d:"M18.16 28.458a1.85 1.85 0 1 1-2.617-2.619L19.382 22l-3.84-3.84a1.85 1.85 0 1 1 2.619-2.617L22 19.382l3.837-3.838a1.85 1.85 0 1 1 2.62 2.617L24.618 22l3.84 3.838a1.851 1.851 0 1 1-2.619 2.619L22 24.618z"}))))}},53699(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M15.56 20.125c.219 0 .4.253.434.584l.006.158a3.96 3.96 0 0 0-3.33 1.164 4.12 4.12 0 0 0-.917 4.303H2a1 1 0 0 1-1-1v-4.21a1 1 0 0 1 1-1zM21.995 2l.005 15.52-3 4.036L19 7h-9v3.812h5a1 1 0 0 1 1 1v4.2c0 .552-.448 1-1 1L2 17.02a1 1 0 0 1-1-1v-4.2a1 1 0 0 1 .998-1L7 10.812V6a2 2 0 0 1 2-2h10V2a1 1 0 0 1 1-1h.993c.552 0 1 .448 1 1"}),o.createElement("path",{d:"M26.469 14.022a2.497 2.497 0 0 1 3.52-.516c1.058.798 1.319 2.289.625 3.405l-.123.18-9.505 12.854a2.5 2.5 0 0 1-1.68 1.03l-.251.025c-.67.002-1.25-.21-1.708-.606l-.149-.138-3.456-3.523a2.62 2.62 0 0 1-.002-3.651 2.457 2.457 0 0 1 3.396-.125l.131.125 1.405 1.43z"}))))}},90933(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M31 31h-5.332q-.896 0-1.476-.422a2.18 2.18 0 0 1-.804-1.081l-1.75-5.23H10.362l-1.75 5.23q-.203.576-.794 1.04-.59.463-1.445.463H1L12.479 1h7.042zM11.95 19.531h8.1l-2.727-8.215-.62-1.843A47 47 0 0 1 16 7.177a41 41 0 0 1-.672 2.327q-.345 1.07-.65 1.853z"})))}},33023(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M31.158 7c.465 0 .842.387.842.867v15.6a.855.855 0 0 1-.842.866H8.42a.83.83 0 0 1-.596-.254l-7.579-7.8a.885.885 0 0 1 0-1.226l7.58-7.8A.83.83 0 0 1 8.42 7zm-9.017 4.587-2.772 2.853-2.774-2.853a.826.826 0 0 0-1.191 0 .885.885 0 0 0 0 1.225l2.772 2.853-2.772 2.855a.885.885 0 0 0 0 1.225.827.827 0 0 0 1.19 0l2.775-2.853 2.772 2.853a.827.827 0 0 0 1.19 0 .885.885 0 0 0 0-1.225l-2.772-2.855 2.772-2.853a.885.885 0 0 0 0-1.225.826.826 0 0 0-1.19 0"})))}},43758(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m17.02 1 3.678 9.5h-1.133a2.06 2.06 0 0 0-2.05 1.906l-.006.154.008 1.988-1.003-.57-1.395-4.158q-.23-.669-.537-1.576a40 40 0 0 1-.607-1.963 35 35 0 0 1-.581 1.99q-.3.915-.564 1.584l-2.359 6.99.964-.001-.637 1.1c-.242.415-.33.905-.249 1.38l.038.178c.14.528.48.976.946 1.25l.24.141H9.098l-1.514 4.472q-.176.492-.686.889-.51.396-1.25.396H1L10.929 1z"}),o.createElement("path",{d:"M23.77 12c.307 0 .557.25.557.56v2.08c.85.398 1.524.799 2.044 1.21l1.683-1.017a.55.55 0 0 1 .767.2l2.103 3.666a.56.56 0 0 1-.203.764l-1.76 1.023c.14.833.14 1.655 0 2.49L30.722 24a.56.56 0 0 1 .205.766l-2.104 3.665a.554.554 0 0 1-.769.199l-1.68-1.019c-.522.415-1.197.815-2.046 1.212v1.618c0 .31-.25.56-.556.56h-4.206a.56.56 0 0 1-.556-.56v-1.543c-1.066-.305-1.656-.762-2.239-1.288l-1.841 1.03a.554.554 0 0 1-.752-.21l-2.103-3.664a.56.56 0 0 1 .205-.766l1.763-1.022a7.5 7.5 0 0 1 .005-2.493l-1.75-1.022a.562.562 0 0 1-.2-.765l2.123-3.666a.554.554 0 0 1 .754-.204l1.8 1.025c.59-.532 1.182-.983 2.235-1.287V12.56c0-.31.249-.56.556-.56Zm-2.27 6.333a3.17 3.17 0 0 0-3.167 3.167 3.17 3.17 0 0 0 3.168 3.167 3.17 3.17 0 0 0 3.166-3.167 3.17 3.17 0 0 0-3.166-3.167"}))))}},58088(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"m3 21.866 7.135 7.135-.075.035-.08.025-8.2 1.923a.635.635 0 0 1-.777-.67l.014-.093 1.924-8.201a.6.6 0 0 1 .06-.154M19.759 5.068l7.175 7.175-15.88 15.881-7.176-7.175zm1.793-1.794 7.176 7.175-.897.897-7.175-7.175zM25.14 1c.775 0 1.51.277 2.087.785l.154.145 2.691 2.69a3.176 3.176 0 0 1 .138 4.338l-.138.146-.449.449-7.175-7.176.45-.447c.598-.6 1.394-.93 2.242-.93"})))}},55331(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m3 21.866 7.135 7.135a.6.6 0 0 1-.154.06l-8.202 1.923a.635.635 0 0 1-.762-.762l1.924-8.202a.6.6 0 0 1 .06-.154M19.759 5.068l7.175 7.175-9.842 9.843a3.78 3.78 0 0 0-3.47.943 3.6 3.6 0 0 0-1.003 3.529l-1.566 1.566-7.175-7.175zm1.793-1.794 7.176 7.175-.897.897-7.175-7.175zM25.14 1c.846 0 1.642.33 2.241.93l2.691 2.69a3.175 3.175 0 0 1 0 4.484l-.449.449-7.175-7.176.45-.447c.598-.6 1.394-.93 2.242-.93"}),o.createElement("path",{d:"m26.964 15.858-7.658 9.701-1.508-1.447a2.283 2.283 0 0 0-3.139 0c-.88.843-.879 2.219.002 3.061l3.337 3.203c.426.407.99.626 1.651.624l.057-.003c.683-.053 1.277-.37 1.662-.882l9.199-11.713c.726-.946.518-2.28-.466-2.978-.993-.705-2.39-.512-3.137.434"}))))}},37754(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M17.15 8.999v3.143H5a1 1 0 0 0-.993.882L4 13.14v6.006c0 .505.386.932.884.99l.117.007 12.149-.001v2.857L2.992 23a2 2 0 0 1-1.987-1.856L1 20.994v-9.988a2 2 0 0 1 1.843-2L2.992 9zM29.008 9c1.044 0 1.91.818 1.987 1.856l.005.15v9.988a2 2 0 0 1-1.843 2l-.149.006-5.159-.001v-2.857h3.15a1 1 0 0 0 .994-.88l.007-.116V13.14c0-.544-.448-.997-1-.997l-3.151-.001V8.999z"}),o.createElement("path",{d:"M16.39 1c1.558 0 3.018.597 4.11 1.625a5.98 5.98 0 0 1 3.819-1.618l.29-.007h1.542C27.17 1 28 1.817 28 2.824c0 .957-.748 1.742-1.698 1.819l-.151.006H24.61c-1.194 0-2.176.92-2.255 2.077l-.006.152v18.244c0 1.177.932 2.146 2.106 2.224l.155.005h1.54c1.022 0 1.85.817 1.85 1.825 0 .957-.748 1.742-1.698 1.818l-.151.006H24.61a6 6 0 0 1-4.11-1.625 5.98 5.98 0 0 1-3.819 1.618l-.29.007h-1.542C13.83 31 13 30.183 13 29.176c0-.957.748-1.742 1.698-1.819l.151-.006h1.541c1.194 0 2.176-.92 2.255-2.077l.006-.152V6.878c0-1.177-.932-2.146-2.106-2.224l-.155-.005h-1.54c-1.022 0-1.85-.817-1.85-1.825 0-.957.748-1.742 1.698-1.818L14.849 1z"}))))}},3626(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M14.505 3c.092 1.758 1.558 3.149 3.344 3.149l.39-.001 1.911 4.938v14.036a.73.73 0 0 1-.338.606l-.96-2.835H9.097l-1.514 4.472q-.176.492-.686.889-.51.396-1.25.396H1L10.929 3Zm-.53 5.281q.3 1.057.607 1.963.308.907.537 1.576l2.359 7.024h-7.007l2.36-6.989q.263-.669.563-1.584t.58-1.99"}),o.createElement("path",{d:"M19.39 31a6 6 0 0 0 4.11-1.625A6 6 0 0 0 27.61 31h1.54c1.022 0 1.85-.817 1.85-1.824s-.828-1.825-1.85-1.825h-1.54c-1.246 0-2.26-1-2.26-2.23V6.879c0-1.228 1.014-2.23 2.26-2.23h1.54c1.022 0 1.85-.816 1.85-1.824C31 1.817 30.172 1 29.15 1h-1.54a6 6 0 0 0-4.11 1.625A6 6 0 0 0 19.39 1h-1.54C16.827 1 16 1.817 16 2.824s.828 1.825 1.85 1.825h1.54c1.246 0 2.26 1 2.26 2.23v18.243c0 1.228-1.014 2.23-2.26 2.23h-1.54c-1.022 0-1.85.816-1.85 1.824 0 1.007.828 1.824 1.85 1.824z"}))))}},53785(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.701 4.75v1.875c0 1.035-.829 1.875-1.85 1.875S3 7.66 3 6.625v-3.75C3 1.84 3.829 1 4.85 1h22.208c1.022 0 1.851.84 1.851 1.875v3.75c0 1.035-.829 1.875-1.85 1.875s-1.851-.84-1.851-1.875V4.75h-7.403v22.5h2.314c1.021 0 1.85.84 1.85 1.875S21.14 31 20.12 31H11.79c-1.022 0-1.851-.84-1.851-1.875s.829-1.875 1.85-1.875h2.314V4.75z"})))}},4008(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12.383 11a12.6 12.6 0 0 0-1.878 2H4a1 1 0 0 0-.993.883L3 14v14a1 1 0 0 0 .883.993L4 29h7.342a12.6 12.6 0 0 0 2.382 2.001L3 31a2 2 0 0 1-2-2V11Zm18.618 16.276L31 29a2 2 0 0 1-2 2h-1.724A12.6 12.6 0 0 0 31 27.277M8.043 21.538a12.43 12.43 0 0 0 2.462 6.463L4 28v-6.462Zm1.782-7.537A12.43 12.43 0 0 0 8 20.5v-.039H4V14ZM31 11v2.724A12.6 12.6 0 0 0 28.617 11zM5 3v1.5a2.5 2.5 0 0 0 5 0V3h12v1.5a2.5 2.5 0 1 0 5 0V3h2a2 2 0 0 1 2 2v5h-3.723c-1.954-1.265-4.28-2-6.777-2a12.43 12.43 0 0 0-6.778 2H1V5a2 2 0 0 1 2-2zm2.5-2A1.5 1.5 0 0 1 9 2.5v2a1.5 1.5 0 0 1-3 0v-2A1.5 1.5 0 0 1 7.5 1m17 0A1.5 1.5 0 0 1 26 2.5v2a1.5 1.5 0 0 1-3 0v-2A1.5 1.5 0 0 1 24.5 1"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m.137 5.318c-.682 0-1.234.553-1.234 1.235v2.985h-2.987a1.235 1.235 0 0 0 0 2.47h2.987v2.985a1.234 1.234 0 1 0 2.468 0v-2.986h2.986a1.235 1.235 0 0 0 0-2.469H21.87v-2.985c0-.682-.552-1.235-1.234-1.235"}))))}},91097(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M29 3a2 2 0 0 1 2 2v5H1V5a2 2 0 0 1 2-2h2v1.5a2.5 2.5 0 0 0 5 0V3h12v1.5a2.5 2.5 0 1 0 5 0V3zM31 11v18a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V11zm-3 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V14a1 1 0 0 0-1-1"}),o.createElement("path",{fillOpacity:.4,d:"M4 14h7.304v6.462H4zm8.348 0h7.304v6.462h-7.304zm8.348 0H28v6.462h-7.304zM4 21.538h7.304V28H4zm8.348 0h7.304V28h-7.304zm8.348 0H28V28h-7.304zM7.5 1A1.5 1.5 0 0 1 9 2.5v2a1.5 1.5 0 0 1-3 0v-2A1.5 1.5 0 0 1 7.5 1m17 0A1.5 1.5 0 0 1 26 2.5v2a1.5 1.5 0 0 1-3 0v-2A1.5 1.5 0 0 1 24.5 1"}))))}},72240(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M26.764 6.567a13.28 13.28 0 0 1 4.227 9.28 13.3 13.3 0 0 1-3.536 9.568 13.16 13.16 0 0 1-9.253 4.252c-.861 0-1.539-.656-1.57-1.484-.03-.85.63-1.565 1.478-1.596 2.722-.1 5.24-1.26 7.094-3.267q.24-.26.462-.534a4.06 4.06 0 0 0 1.761-3.244c.371-1.138.542-2.347.496-3.581a10.2 10.2 0 0 0-3.251-7.138 10.1 10.1 0 0 0-7.312-2.735 9.97 9.97 0 0 0-7.142 3.38c-1.106 1.246-1.9 2.75-2.346 4.422l1.355-1.514a1.53 1.53 0 0 1 2.17-.116l.103.103v2.08l-4.39 4.906c-.057.06-.06.064-.084.084a1.4 1.4 0 0 1-.137.122c-.049.035-.049.035-.078.053a2 2 0 0 1-.188.109c-.063.028-.063.028-.106.043a1.24 1.24 0 0 1-.32.086c-.044.01-.044.01-.117.019l-.118.004c-.052 0-.052 0-.11-.004a2 2 0 0 1-.226-.039c-.056-.012-.056-.012-.133-.033a1 1 0 0 1-.155-.064 1.6 1.6 0 0 1-.382-.24l-.033-.03-.033-.034-.016-.017a2 2 0 0 1-.17-.197l-3.427-4.924a1.545 1.545 0 0 1 .377-2.145 1.53 1.53 0 0 1 2.139.38l.93 1.338c.515-2.437 1.604-4.64 3.203-6.441 2.407-2.709 5.72-4.277 9.321-4.41a13.17 13.17 0 0 1 9.517 3.558"}),o.createElement("path",{d:"M15.564 8.5c-1.14 0-2.064.924-2.064 2.064V21.5h9.865c1.14 0 2.064-.924 2.064-2.064l-.005-.147a2.064 2.064 0 0 0-2.059-1.916l-5.738-.001v-6.808c0-1.14-.924-2.064-2.063-2.064"}))))}},17812(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M5.236 6.567a13.28 13.28 0 0 0-4.227 9.28 13.3 13.3 0 0 0 3.536 9.568 13.16 13.16 0 0 0 9.253 4.252c.861 0 1.539-.656 1.57-1.484.03-.85-.63-1.565-1.478-1.596-2.722-.1-5.24-1.26-7.094-3.267a10.21 10.21 0 0 1-2.719-7.36 10.2 10.2 0 0 1 3.251-7.137 10.1 10.1 0 0 1 7.312-2.735 9.97 9.97 0 0 1 7.142 3.38c1.106 1.246 1.9 2.75 2.346 4.422l-1.355-1.514a1.53 1.53 0 0 0-2.17-.116c-.63.57-.68 1.542-.114 2.173l.955 1.066a4.09 4.09 0 0 1 2.999 3.294l.01.068.47.524.119.112.104.083.153.095.078.042.106.043c.071.027.123.045.198.064l.196.035.043.006.118.004.11-.004.076-.01.15-.029.133-.033c.055-.018.098-.037.155-.064a1.6 1.6 0 0 0 .382-.24l.13-.131.096-.113 3.453-4.958a1.545 1.545 0 0 0-.377-2.145 1.53 1.53 0 0 0-2.139.38l-.93 1.338c-.515-2.437-1.604-4.64-3.203-6.441-2.407-2.709-5.72-4.277-9.321-4.41a13.17 13.17 0 0 0-9.517 3.558"}),o.createElement("path",{d:"M12.635 8.5c-1.14 0-2.064.924-2.064 2.064V21.5h9.865c1.14 0 2.064-.924 2.064-2.064l-.005-.147a2.064 2.064 0 0 0-2.059-1.916l-5.738-.001v-6.808c0-1.14-.924-2.064-2.063-2.064"}))))}},9708(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M17.195 1a1.089 1.089 0 0 1 .119 2.171l-.119.006h-.12v1.514l.3.027a13.1 13.1 0 0 1 6.212 2.337l.338.248.24.187.865-.865-.137-.138a1.09 1.09 0 0 1-.156-1.343l.072-.102.084-.096a1.09 1.09 0 0 1 1.444-.083l.095.084 1.815 1.815c.426.426.426 1.115.001 1.538a1.083 1.083 0 0 1-1.448.084l-.093-.083-.137-.137-.815.816.169.19a13.12 13.12 0 0 1 3.225 7.89l.017.384.005.37q0 .859-.108 1.688L29 19.5h-2.5V17a3.5 3.5 0 0 0-3.5-3.5l-.192.005a3.5 3.5 0 0 0-1.145.26l.793-.793.08-.088a1.011 1.011 0 0 0-1.412-1.426l-.097.084-1.685 1.686-.079.088a1.011 1.011 0 0 0 .794 1.638l.108-.006A3.5 3.5 0 0 0 19.5 17v2.5H17a3.5 3.5 0 0 0-3.5 3.5l.005.192a3.5 3.5 0 0 0 1.634 2.773 1.012 1.012 0 0 0 1.659.529q.1.006.202.006h2.5V29c0 .512.11.998.307 1.436-1.21.366-2.493.564-3.822.564C8.715 31 2.8 25.085 2.8 17.815c0-6.723 5.074-12.311 11.643-13.08l.31-.033.144-.012V3.177h-.121a1.09 1.09 0 0 1-1.064-.855l-.019-.115-.006-.118c0-.561.425-1.023.97-1.083L14.776 1zm-5.621 20.007-.096.084-1.686 1.686-.078.088a1.011 1.011 0 0 0 1.409 1.429l.1-.09 1.684-1.683.08-.088a1.011 1.011 0 0 0-1.412-1.426m-1.066-4.143H8.26l-.11.006a1.011 1.011 0 0 0 0 2.01l.11.006h2.247l.11-.006a1.011 1.011 0 0 0-.11-2.016m-.715-5.322c-.365.366-.393.939-.085 1.335l.084.095 1.686 1.685.086.077a1.01 1.01 0 0 0 1.345-.078c.364-.362.392-.936.083-1.333l-.085-.095-1.685-1.686-.088-.078a1.01 1.01 0 0 0-1.34.078M16.125 9c-.521 0-.95.394-1.005.9l-.006.111v2.247l.006.11a1.011 1.011 0 0 0 2.01 0l.006-.11V10.01l-.006-.11A1.01 1.01 0 0 0 16.125 9"}),o.createElement("path",{d:"M23 15a2 2 0 0 1 1.995 1.85L25 17v4h4a2 2 0 0 1 .15 3.995L29 25h-4v4a2 2 0 0 1-3.995.15L21 29v-4h-4a2 2 0 0 1-.15-3.995L17 21h4v-4a2 2 0 0 1 2-2"}))))}},42606(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M17.195 1a1.089 1.089 0 0 1 0 2.177h-.12v1.514l.3.027c2.4.253 4.654 1.15 6.55 2.585l.24.187.865-.865-.137-.138a1.09 1.09 0 0 1-.084-1.445l.084-.096a1.09 1.09 0 0 1 1.54.001l1.814 1.815c.426.426.426 1.115.001 1.538a1.087 1.087 0 0 1-1.541.002l-.137-.138-.815.816.169.19a13.12 13.12 0 0 1 3.242 8.274l.005.37C29.171 25.086 23.256 31 15.985 31 8.715 31 2.8 25.085 2.8 17.815c0-6.828 5.234-12.486 11.952-13.113l.145-.012V3.177h-.121a1.09 1.09 0 0 1-1.083-.97l-.006-.118c0-.601.488-1.089 1.089-1.089Zm-1.07 21.481c-.558 0-1.011.453-1.011 1.011v2.247l.006.11a1.011 1.011 0 0 0 2.016-.11v-2.247l-.006-.11a1.01 1.01 0 0 0-1.005-.901m4.558-1.468a1.012 1.012 0 0 0-1.341 1.508l1.685 1.685.086.077a1.01 1.01 0 0 0 1.345-.078 1.01 1.01 0 0 0-.002-1.428l-1.685-1.685Zm-7.776.079a1.01 1.01 0 0 0-1.429-.001l-1.686 1.686-.078.088a1.011 1.011 0 0 0 1.51 1.34l1.683-1.684.08-.088a1.01 1.01 0 0 0-.08-1.341m11.082-4.228h-2.247l-.11.006a1.011 1.011 0 0 0 .11 2.016h2.247l.11-.006a1.011 1.011 0 0 0-.11-2.016m-13.481 0H8.26l-.11.006a1.011 1.011 0 0 0 .11 2.016h2.247l.11-.006a1.011 1.011 0 0 0-.11-2.016m11.948-5.322a1.01 1.01 0 0 0-1.429 0l-1.685 1.686-.079.088a1.011 1.011 0 0 0 1.51 1.34l1.683-1.684.08-.088a1.01 1.01 0 0 0-.08-1.342m-11.322-.078a1.012 1.012 0 0 0-1.342 1.508l1.686 1.685.086.077a1.01 1.01 0 0 0 1.345-.078 1.01 1.01 0 0 0-.002-1.428l-1.685-1.686ZM16.125 9c-.558 0-1.011.453-1.011 1.011v2.247l.006.11a1.011 1.011 0 0 0 2.016-.11V10.01l-.006-.11A1.01 1.01 0 0 0 16.125 9"})))}},63098(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M17.195 1a1.089 1.089 0 0 1 .119 2.171l-.119.006h-.12v1.514l.3.027a13.1 13.1 0 0 1 6.212 2.337l.338.248.24.187.865-.865-.137-.138a1.09 1.09 0 0 1-.156-1.343l.072-.102.084-.096a1.09 1.09 0 0 1 1.444-.083l.095.084 1.815 1.815c.426.426.426 1.115.001 1.538a1.083 1.083 0 0 1-1.448.084l-.093-.083-.137-.137-.815.816.169.19a13.12 13.12 0 0 1 3.225 7.89l.017.384.005.37C29.171 25.086 23.256 31 15.985 31q-.548 0-1.086-.044L14.9 4h-.004v-.823h-.12a1.09 1.09 0 0 1-1.064-.855l-.019-.115-.006-.118c0-.561.425-1.023.97-1.083L14.776 1zm-4.288 20.092c.368.367.394.945.08 1.341l-.08.088-1.683 1.684a1.005 1.005 0 0 1-1.432.001 1.01 1.01 0 0 1-.078-1.34l.078-.09 1.686-1.685a1.01 1.01 0 0 1 1.43 0m7.776-.079a1.012 1.012 0 0 0-1.341 1.508l1.685 1.685.086.077a1.01 1.01 0 0 0 1.345-.078 1.01 1.01 0 0 0-.002-1.428l-1.685-1.685Zm-10.175-4.15a1.011 1.011 0 0 1 .11 2.017l-.11.006H8.26a1.011 1.011 0 0 1-.11-2.016l.11-.006zm13.48 0h-2.246l-.11.007a1.011 1.011 0 0 0 .11 2.016h2.247l.11-.006a1.011 1.011 0 0 0-.11-2.016m-12.854-5.399.088.078 1.685 1.686c.396.395.396 1.036.002 1.428a1.005 1.005 0 0 1-1.345.078l-.086-.077-1.686-1.685a1.012 1.012 0 0 1 1.342-1.508m11.322.078a1.01 1.01 0 0 0-1.429 0l-1.685 1.686-.079.088a1.011 1.011 0 0 0 1.51 1.34l1.683-1.684.08-.088a1.01 1.01 0 0 0-.08-1.342"})))}},83867(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16 1c8.27 0 15 6.73 15 15s-6.73 15-15 15S1 24.27 1 16 7.73 1 16 1m-1.436 6C13.7 7 13 7.7 13 8.564V19h9.365a1.564 1.564 0 0 0 0-3.127h-6.238v-7.31c0-.862-.7-1.563-1.563-1.563"})))}},70065(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M27.25 1A3.755 3.755 0 0 1 31 4.75v22.5A3.755 3.755 0 0 1 27.25 31H4.75A3.755 3.755 0 0 1 1 27.25V4.75A3.755 3.755 0 0 1 4.75 1ZM16 6C10.486 6 6 10.486 6 16s4.486 10 10 10 10-4.486 10-10S21.514 6 16 6"}),o.createElement("path",{d:"M20 15.28c.896 0 1.625.72 1.625 1.61S20.895 18.5 20 18.5h-6v-8.39c0-.89.73-1.61 1.625-1.61.896 0 1.625.72 1.625 1.61v5.17z"}))))}},74754(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M26.29 1a.968.968 0 0 1 0 1.935H24.84V8.26c-.008 1.7-.472 3.33-1.342 4.717a8.4 8.4 0 0 1-3.3 3.017c2.83 1.438 4.626 4.34 4.642 7.746v5.325h1.451a.968.968 0 0 1 0 1.935H5.968a.968.968 0 0 1 0-1.935h1.451v-5.323c0-3.352 1.826-6.278 4.665-7.734a8.45 8.45 0 0 1-3.401-3.154 8.85 8.85 0 0 1-1.264-4.596V2.935H5.968a.968.968 0 0 1 0-1.935zM16.13 16.968c-3.803 0-6.774 2.97-6.774 6.774v.484h2.986l3.103-3.103a.967.967 0 0 1 1.37 0l3.103 3.103h2.986v-.482c-.019-3.87-2.924-6.776-6.774-6.776m6.774-14.033H9.355v5.323c0 1.102.25 2.172.729 3.125H22.17c.475-.951.727-2.02.732-3.127z"})))}},56818(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.015 18.5c-2.758 0-5-2.242-5-5s2.242-5 5-5 5 2.243 5 5-2.243 5-5 5m0-17.5c-6.234 0-11.5 5.268-11.5 11.5 0 4.209 1.943 8.73 5.618 13.074 2.757 3.258 5.474 5.247 5.588 5.33a.5.5 0 0 0 .588 0c.114-.082 2.83-2.072 5.588-5.33 3.675-4.344 5.618-8.865 5.618-13.074 0-6.232-5.266-11.5-11.5-11.5"})))}},49275(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12.383 11a12.6 12.6 0 0 0-1.878 2H4a1 1 0 0 0-.993.883L3 14v14a1 1 0 0 0 .883.993L4 29h7.342a12.6 12.6 0 0 0 2.382 2.001L3 31a2 2 0 0 1-2-2V11Zm18.618 16.276L31 29a2 2 0 0 1-2 2h-1.724A12.6 12.6 0 0 0 31 27.277M8.043 21.538a12.43 12.43 0 0 0 2.462 6.463L4 28v-6.462Zm1.782-7.537A12.43 12.43 0 0 0 8 20.5v-.039H4V14ZM31 11v2.724A12.6 12.6 0 0 0 28.617 11zM5 3v1.5a2.5 2.5 0 0 0 5 0V3h12v1.5a2.5 2.5 0 1 0 5 0V3h2a2 2 0 0 1 2 2v5h-3.723c-1.954-1.265-4.28-2-6.777-2a12.43 12.43 0 0 0-6.778 2H1V5a2 2 0 0 1 2-2zm2.5-2A1.5 1.5 0 0 1 9 2.5v2a1.5 1.5 0 0 1-3 0v-2A1.5 1.5 0 0 1 7.5 1m17 0A1.5 1.5 0 0 1 26 2.5v2a1.5 1.5 0 0 1-3 0v-2A1.5 1.5 0 0 1 24.5 1"}),o.createElement("path",{d:"M27.925 13.075c4.093 4.094 4.093 10.756 0 14.85-4.094 4.093-10.756 4.093-14.85 0-4.095-4.095-4.093-10.756 0-14.85 4.094-4.093 10.755-4.095 14.85 0M24.26 18.68a1.235 1.235 0 0 0-1.746-1.746l-2.11 2.111-2.113-2.112a1.235 1.235 0 0 0-1.745 1.746l2.111 2.112-2.11 2.11a1.234 1.234 0 1 0 1.745 1.747l2.11-2.111 2.112 2.11A1.235 1.235 0 0 0 24.26 22.9l-2.111-2.11z"}))))}},27016(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M31 11v18a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V11h16.223l-1.452 2H4a1 1 0 0 0-.993.883L3 14v14a1 1 0 0 0 .883.993L4 29h24a1 1 0 0 0 .993-.883L29 28V14a1 1 0 0 0-1-1h-3.57l1.399-1.925.051-.075zM5.533 22.362l4.119 4.115a3.5 3.5 0 0 0 1.652.922V28H4v-6.462h.918c.16.297.364.575.615.824m14.12-.824V28h-7.305l-.001-.508.2-.021c.994-.135 1.845-.64 2.409-1.42l3.276-4.513zm8.347 0V28h-7.304v-6.462zM11.304 14v4.218l-.833-.832a3.495 3.495 0 0 0-4.94 0 3.51 3.51 0 0 0-.982 3.075H4V14zM28 14v6.462h-7.304l-.001-2.317L23.704 14zm-8.348 5.582v.88l-.639-.001zM15.045 14l-2.698 3.717V14zM5 3v1.5a2.5 2.5 0 0 0 5 0V3h12v1.5c0 .388.088.756.246 1.084a3.5 3.5 0 0 0-2.075 1.357L17.949 10H1V5a2 2 0 0 1 2-2zm24 0a2 2 0 0 1 2 2v5h-4.641a3.52 3.52 0 0 0-.634-3.193l-.015-.017-.034-.083A2.5 2.5 0 0 0 27 4.5V3zM7.5 1A1.5 1.5 0 0 1 9 2.5v2a1.5 1.5 0 0 1-3 0v-2A1.5 1.5 0 0 1 7.5 1m17 0A1.5 1.5 0 0 1 26 2.5v2a1.5 1.5 0 0 1-1.246 1.479l-.04-.027-.094-.053-.207-.1a3.5 3.5 0 0 0-1.007-.276A1.48 1.48 0 0 1 23 4.5v-2A1.5 1.5 0 0 1 24.5 1"}),o.createElement("path",{d:"M23.806 7.17q.06.027.118.057l.244.152.232.167.023.043.057.069c.635.701.699 1.764.135 2.536L13.741 25.173a2.01 2.01 0 0 1-1.485.823l-.09.004a2.02 2.02 0 0 1-1.454-.584L6.592 21.3a2.016 2.016 0 0 1-.002-2.852 1.995 1.995 0 0 1 2.821 0l2.47 2.466 9.503-13.09a1.996 1.996 0 0 1 2.422-.654"}))))}},47152(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M30.419 19a.49.49 0 0 1 .493.495v2.01a.496.496 0 0 1-.493.495H1.581a.49.49 0 0 1-.493-.495v-2.01c0-.273.223-.495.493-.495zM13.818 10c.279 0 .506.216.506.495v2.01a.504.504 0 0 1-.506.495H1.506A.497.497 0 0 1 1 12.505v-2.01c0-.273.231-.495.506-.495zm16.506 0c.276 0 .5.216.5.495v2.01a.494.494 0 0 1-.5.495H22.5a.494.494 0 0 1-.5-.495v-2.01c0-.273.218-.495.5-.495zm.092 4.5c.274 0 .496.216.496.495v2.01a.5.5 0 0 1-.496.495H13.584a.49.49 0 0 1-.496-.495v-2.01c0-.273.226-.495.496-.495zm-22.508 0c.278 0 .504.216.504.495v2.01a.5.5 0 0 1-.504.495H1.592a.496.496 0 0 1-.504-.495v-2.01a.5.5 0 0 1 .504-.495z"}))))}},289(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M14 24.804a3.5 3.5 0 0 0 3 1.696h1V29a2 2 0 1 1-4 0ZM12.5 23v5h-9a2.5 2.5 0 1 1 0-5zm1.5-9.139.774.563c.75.544 1.815.541 2.561.001l.665-.481V19.5h-1c-1.273 0-2.387.68-3 1.696zM12.5 16v5h-9a2.5 2.5 0 1 1 0-5zM23.13 1v7.38l-6.674 4.83a.72.72 0 0 1-.8 0L9 8.38V1z"}),o.createElement("path",{d:"M25 29v-4h4a2 2 0 1 0 0-4h-4v-4a2 2 0 1 0-4 0v4h-4a2 2 0 1 0 0 4h4v4a2 2 0 1 0 4 0"}))))}},20491(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M26.932 20.775a2.32 2.32 0 0 1 3.345-.12 2.38 2.38 0 0 1 .113 3.3l-5.66 6.273A2.33 2.33 0 0 1 23 31a2.33 2.33 0 0 1-1.727-.77l-5.66-6.273a2.38 2.38 0 0 1 .107-3.299 2.32 2.32 0 0 1 3.346.114L23 25.132ZM14.576 19a4 4 0 0 0-.248.223c-1.636 1.58-1.772 4.157-.347 5.905l.148.172.633.7L7 26a1 1 0 0 1-.993-.883L6 25v-5a1 1 0 0 1 .883-.993L7 19zm5.526 0 4.91.001c.24.002.46.089.63.231l-.039.04-.157.166L23 22.147l-2.45-2.715a4.4 4.4 0 0 0-.448-.433M25.012 6a1 1 0 0 1 .995 1.005l-.05 9a1 1 0 0 1-1 .995H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Z"}),o.createElement("path",{fillOpacity:.4,d:"M28.015 1a3 3 0 0 1 3 3v14.696c-.914-.597-2-.808-3.036-.642l.033-13.051a1 1 0 0 0-.998-1.002h-22a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h11.552l2.709 3H4.015a3.004 3.004 0 0 1-2.995-2.825l-.006-.175V4a3 3 0 0 1 3-3Zm3 25.248V28c0 1.654-1.346 3-3 3h-1.29z"}))))}},50172(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M30.33 17.5c.273 0 .494.217.494.499V21.5a.497.497 0 0 1-.493.499H1.493A.49.49 0 0 1 1 21.501V18c0-.276.223-.499.493-.499zM9.324 10c.276 0 .5.217.5.499V14a.496.496 0 0 1-.5.499H1.5a.495.495 0 0 1-.5-.499V10.5c0-.276.218-.499.5-.499zm10.588 0c.276 0 .5.217.5.499V14a.496.496 0 0 1-.5.499h-7.824a.495.495 0 0 1-.5-.499V10.5c0-.276.218-.499.5-.499zM30.5 10c.276 0 .5.217.5.499V14a.496.496 0 0 1-.5.499h-7.824a.495.495 0 0 1-.5-.499V10.5c0-.276.219-.499.5-.499z"}))))}},51592(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M28 1a3 3 0 0 1 2.995 2.824L31 4v24a3.004 3.004 0 0 1-2.824 2.995L28 31H4a3.004 3.004 0 0 1-2.995-2.824L1 28V4a3 3 0 0 1 2.824-2.995L4 1zM16.5 2.5c-1.11 0-2.08.603-2.599 1.5H5a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h8.802a3 3 0 0 0 5.396 0h7.745a1 1 0 0 0 1-.998l.055-22A1 1 0 0 0 27 4h-7.901A3 3 0 0 0 16.5 2.5"}),o.createElement("path",{d:"M16.5 4A1.5 1.5 0 0 1 18 5.5v21.188a1.5 1.5 0 0 1-3 0V5.5A1.5 1.5 0 0 1 16.5 4m-3 16v5h-5a2.5 2.5 0 0 1-.164-4.995L8.5 20zm7 0a2.5 2.5 0 0 1 .164 4.995L20.5 25h-1v-5zm-7-7v5h-2a2.5 2.5 0 0 1-.164-4.995L11.5 13zm10 0a2.5 2.5 0 0 1 .164 4.995L23.5 18h-4v-5zm-9.958-7a3 3 0 0 0-.042.5V11h-5a2.5 2.5 0 0 1-.164-4.995L8.5 6zM20.5 6a2.5 2.5 0 0 1 .164 4.995L20.5 11h-1V6.5q0-.256-.042-.5z"}))))}},43134(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M25.98 9.983a.84.84 0 0 0-.534-.601L2.113 1.048a.833.833 0 0 0-1.065 1.065l8.334 23.333c.096.269.323.47.603.534a.84.84 0 0 0 .772-.225L16 20.51l10.245 10.244a.832.832 0 0 0 1.178 0l3.333-3.334a.834.834 0 0 0 0-1.178L20.511 16l5.245-5.245a.83.83 0 0 0 .224-.772"})))}},79641(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m14 13.861.774.563c.75.544 1.815.541 2.561.001l.665-.481v1.477a3.633 3.633 0 0 0-1.636 6.08L18 23.138v1.724l-1.636 1.637a3.634 3.634 0 0 0-.512 4.496L16 31a2 2 0 0 1-2-2zM12.5 23v5h-9a2.5 2.5 0 1 1 0-5zm0-7v5h-9a2.5 2.5 0 1 1 0-5zM23.13 1v7.38l-6.674 4.83a.72.72 0 0 1-.8 0L9 8.38V1z"}),o.createElement("path",{d:"m20.3 30.434 3.7-3.7 3.7 3.7a1.933 1.933 0 0 0 2.734-2.734l-3.7-3.7 3.7-3.7a1.933 1.933 0 0 0-2.734-2.734l-3.7 3.7-3.7-3.7a1.933 1.933 0 0 0-2.734 2.734l3.7 3.7-3.7 3.7a1.933 1.933 0 0 0 2.734 2.734"}))))}},89430(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M14.002 5c.551 0 .998.45.998 1.007v3.828c-3.858 1.998-6.5 6.028-6.5 10.665 0 2.394.704 4.627 1.917 6.501L1.997 27C1.448 27 1 26.55 1 25.993V6.007C1 5.45 1.446 5 1.998 5z"}),o.createElement("path",{d:"M30.002 5c.551 0 .998.45.998 1.007v8.688C28.953 11.004 25.015 8.5 20.5 8.5c-1.218 0-2.393.182-3.501.52L17 6.008C17 5.45 17.446 5 17.998 5z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 4.1c-.722 0-1.308.586-1.308 1.308v3.784h-3.785a1.308 1.308 0 0 0 0 2.616h3.785v3.784a1.307 1.307 0 1 0 2.616 0v-3.784h3.784a1.308 1.308 0 0 0 0-2.616h-3.784v-3.784c0-.722-.586-1.307-1.308-1.307"}))))}},20551(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M31 7h-9.457L17.61 3.264a2.8 2.8 0 0 0-1.804-.76l-.258-.004c-.989 0-1.881.514-2.37 1.321l-.093.166L10.31 7H1V1h30zm0 24H1v-6h9.31l2.775 3.014a2.76 2.76 0 0 0 2.266 1.479l.255.005h.193a2.8 2.8 0 0 0 1.66-.628l.151-.134L21.543 25H31z"}),o.createElement("path",{d:"M21.998 10.062a1.17 1.17 0 0 1-.368.787 1.314 1.314 0 0 1-1.684.088l-.102-.088-3.033-2.882v16.066l3.033-2.882a1.31 1.31 0 0 1 1.786 0c.46.438.491 1.129.092 1.6l-.092.098-5.053 4.8a1.3 1.3 0 0 1-.935.35l-.038-.004-.056.004c-.512 0-.947-.289-1.145-.704l-.048-.116-4.042-4.389a1.17 1.17 0 0 1-.304-.65L10 22c0-.334.147-.666.432-.903a1.31 1.31 0 0 1 1.686.02l.096.093 2.07 2.247V8.543l-2.07 2.248c-.46.499-1.257.55-1.782.112a1.18 1.18 0 0 1-.425-.778L10 10c0-.234.072-.468.217-.672l.096-.118 4.042-4.388A1.25 1.25 0 0 1 15.548 4l.056.006.038-.005c.3-.01.592.083.824.257l.111.094 5.053 4.8c.23.218.353.5.368.787z"}))))}},34030(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M7 10.957V1H1v30h6v-8.81l-3.013-2.775A2.76 2.76 0 0 1 2.5 16.952l.002-.055a2.8 2.8 0 0 1 .762-2.007zM25 31h6V1h-6v9.957l3.736 3.933c.512.539.786 1.268.763 2.014v-.046.094c0 1.054-.584 2-1.485 2.463L25 22.19z"}),o.createElement("path",{d:"M28 16.858a1.3 1.3 0 0 0-.351-.935l-4.8-5.053a1.16 1.16 0 0 0-1.698 0 1.31 1.31 0 0 0 0 1.786l2.882 3.033H7.967l2.882-3.033a1.31 1.31 0 0 0 0-1.786 1.16 1.16 0 0 0-1.698 0l-4.8 5.053a1.3 1.3 0 0 0-.35.935q.002.018.005.038c-.001.018-.006.037-.006.056 0 .559.346 1.026.822 1.193l4.388 4.042c.228.21.509.313.79.313.333 0 .666-.147.903-.432a1.31 1.31 0 0 0-.112-1.782l-2.248-2.07h14.914l-2.247 2.07c-.5.46-.55 1.257-.113 1.782.237.285.569.432.904.432.28 0 .561-.104.79-.313l4.388-4.042c.476-.167.82-.634.82-1.193q-.001-.029-.004-.056c0-.013.004-.026.004-.038"}),o.createElement("path",{d:"M28 16.858a1.3 1.3 0 0 0-.351-.935l-4.8-5.053a1.16 1.16 0 0 0-1.698 0 1.31 1.31 0 0 0 0 1.786l2.882 3.033H7.967l2.882-3.033a1.31 1.31 0 0 0 0-1.786 1.16 1.16 0 0 0-1.698 0l-4.8 5.053a1.3 1.3 0 0 0-.35.935q.002.018.005.038c-.001.018-.006.037-.006.056 0 .559.346 1.026.822 1.193l4.388 4.042c.228.21.509.313.79.313.333 0 .666-.147.903-.432a1.31 1.31 0 0 0-.112-1.782l-2.248-2.07h14.914l-2.247 2.07c-.5.46-.55 1.257-.113 1.782.237.285.569.432.904.432.28 0 .561-.104.79-.313l4.388-4.042c.476-.167.82-.634.82-1.193q-.001-.029-.004-.056c0-.013.004-.026.004-.038"}))))}},48847(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m22.89 17 1.93 2.336a1.445 1.445 0 0 0 2.218.01L29.011 17h.994A1 1 0 0 1 31 18.007v11.986c0 .556-.456 1.007-.995 1.007h-8.01A1 1 0 0 1 21 29.993V18.007c0-.556.456-1.007.995-1.007zM15.295 1.16c.131.002 13 .402 13.337 11.478h1.784a.445.445 0 0 1 .34.73l-4.483 5.334a.443.443 0 0 1-.683-.003l-4.406-5.334a.445.445 0 0 1 .343-.727H23.3c-.257-8.688-8.033-10.582-8.114-10.601a.445.445 0 0 1-.344-.433l.003-.055a.444.444 0 0 1 .45-.39"}),o.createElement("path",{fillOpacity:.4,d:"M1 18.007C1 17.45 1.446 17 1.998 17h7.004c.551 0 .998.45.998 1.007v11.986C10 30.55 9.554 31 9.002 31H1.998C1.447 31 1 30.55 1 29.993zm10 0c0-.556.446-1.007.998-1.007h7.004c.551 0 .998.45.998 1.007v11.986c0 .556-.446 1.007-.998 1.007h-7.004c-.551 0-.998-.45-.998-1.007z"}))))}},38172(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M17 19.39V31.1h-2V19.519a1.446 1.446 0 0 0 2-.13M4.844 1.549l-.003.055c0 .204.14.386.344.433.08.019 7.857 1.913 8.114 10.601h-1.772a.446.446 0 0 0-.343.727L15.59 18.7a.445.445 0 0 0 .683.003l4.484-5.333a.445.445 0 0 0-.34-.73h-1.785C18.295 1.561 5.426 1.161 5.295 1.158a.444.444 0 0 0-.45.39"}),o.createElement("path",{fillOpacity:.4,d:"M1 18.007C1 17.45 1.447 17 1.999 17H13c.552 0 .999.45.999 1.007v11.986c0 .556-.447 1.007-.999 1.007H2C1.447 31 1 30.55 1 29.993zm17 0c0-.556.447-1.007.999-1.007H30c.552 0 .999.45.999 1.007v11.986c0 .556-.447 1.007-.999 1.007H19c-.552 0-.999-.45-.999-1.007z"}))))}},33740(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12 18.007c0-.556.446-1.007.998-1.007h7.004c.551 0 .998.45.998 1.007v11.986c0 .556-.446 1.007-.998 1.007h-7.004c-.551 0-.998-.45-.998-1.007zm10 0c0-.556.446-1.007.998-1.007h7.004c.551 0 .998.45.998 1.007v11.986c0 .556-.446 1.007-.998 1.007h-7.004c-.551 0-.998-.45-.998-1.007z"}),o.createElement("path",{d:"M8.95 17h.895c.54 0 .996.45.996 1.007v11.986A1 1 0 0 1 9.845 31H1.836c-.54 0-.995-.45-.995-1.007V18.007A1 1 0 0 1 1.836 17h.994l1.972 2.346a1.443 1.443 0 0 0 2.22-.01zm8.046-15.451.004.055a.445.445 0 0 1-.345.433c-.08.019-7.856 1.913-8.113 10.601h1.772a.446.446 0 0 1 .343.727L6.25 18.7a.445.445 0 0 1-.682.003L1.084 13.37a.445.445 0 0 1 .34-.73h1.784C3.545 1.561 16.414 1.161 16.546 1.158a.444.444 0 0 1 .45.39"}))))}},26655(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M1 18.007A1 1 0 0 1 2.003 17h4.994C7.551 17 8 17.45 8 18.007v11.986A1 1 0 0 1 6.997 31H2.003C1.449 31 1 30.55 1 29.993zm23 0A1 1 0 0 1 25.003 17h4.994c.554 0 1.003.45 1.003 1.007v11.986A1 1 0 0 1 29.997 31h-4.994C24.449 31 24 30.55 24 29.993z"}),o.createElement("path",{d:"M17.558 15h4.435C22.55 15 23 14.552 23 14V2c0-.545-.45-1-1.007-1H10.007C9.45 1 9 1.448 9 2v12c0 .545.45 1 1.007 1H14.5v5h-2.99c-.558 0-.73.357-.39.79l4.26 5.42c.342.437.9.433 1.24 0l4.26-5.42c.342-.437.168-.79-.375-.79h-2.947z"}))))}},7022(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m5.907 10.147 4.285 4.285-.655.656a5.24 5.24 0 0 0-.001 7.417 5.24 5.24 0 0 0 3.72 1.541 5.24 5.24 0 0 0 3.53-1.36l.19-.181.645-.644 4.285 4.285L20.25 27.8c-2.04 2.034-4.96 3.2-8.012 3.2s-5.974-1.166-8.014-3.2c-4.269-4.255-4.116-11.62.28-16.245l.23-.236zM23.503 16l4.293 4.279-1.64 1.633-4.286-4.286zM11.769 4.306l4.286 4.27-1.619 1.616-4.28-4.28zM27.32 12.785l.071.059 3.571 3.56c.177.175.197.45.06.648l-.06.07-2.444 2.438-4.294-4.28 2.446-2.436a.51.51 0 0 1 .573-.103zM15.3 1c.108 0 .213.036.3.1l.06.053 3.529 3.576c.175.177.193.45.056.646l-.058.07-2.412 2.411-4.284-4.27 2.445-2.437A.56.56 0 0 1 15.3 1"}),o.createElement("path",{d:"M1.939 1.936a1.507 1.507 0 0 1 2.012-.098l.114.103L29.27 27.145c.59.59.592 1.538.004 2.126a1.507 1.507 0 0 1-2.012.098l-.114-.103L1.944 4.062a1.5 1.5 0 0 1-.005-2.126"}))))}},51160(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m11.77 4.306 4.285 4.27-6.518 6.512a5.24 5.24 0 0 0-.001 7.417 5.24 5.24 0 0 0 3.72 1.541 5.24 5.24 0 0 0 3.53-1.36l.19-.181L23.504 16l4.293 4.279-7.547 7.52C18.209 29.835 15.289 31 12.237 31s-5.974-1.166-8.014-3.2c-4.269-4.255-4.116-11.62.28-16.245l.23-.236z"}),o.createElement("path",{fillOpacity:.4,d:"m27.32 12.785.071.059 3.571 3.56c.177.175.197.45.06.648l-.06.07-2.444 2.438-4.294-4.28 2.446-2.436a.51.51 0 0 1 .573-.103zM15.3 1c.108 0 .213.036.3.1l.06.053 3.529 3.576c.175.177.193.45.056.646l-.058.07-2.412 2.411-4.284-4.27 2.445-2.437A.56.56 0 0 1 15.3 1"}))))}},95676(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{d:"M28.665 12.944a1.72 1.72 0 0 0-.767-1.07 1.69 1.69 0 0 0-2.349.568l-3.571 5.69a.261.261 0 0 1-.475-.188l2.12-11.708a1.74 1.74 0 0 0-.233-1.309 1.7 1.7 0 0 0-1.075-.752c-.908-.198-1.835.416-2.028 1.326l-2.21 10.03a.26.26 0 0 1-.282.205.263.263 0 0 1-.232-.262V2.842c0-.947-.884-1.842-1.82-1.842-.935 0-1.82.895-1.82 1.842v12.632a.26.26 0 0 1-.515.05L11.424 5.012c-.193-.904-1.12-1.518-2.028-1.32-.446.099-.829.365-1.075.753-.248.388-.331.85-.234 1.3l2.123 14.862a.26.26 0 0 1-.133.269.26.26 0 0 1-.296-.033l-3.917-3.459a1.697 1.697 0 0 0-2.417.102 1.73 1.73 0 0 0-.446 1.245c.02.46.216.886.552 1.197l6.928 9.328A5.63 5.63 0 0 0 14.544 31h4.591c3.849 0 5.642-2.51 5.642-7.898 0-1.215.299-2.425.864-3.5l2.81-5.339c.247-.406.32-.87.214-1.319"}),o.createElement("path",{fill:"#4B4B4B",d:"M28.665 12.944a1.72 1.72 0 0 0-.767-1.07 1.69 1.69 0 0 0-2.349.568l-3.571 5.69a.261.261 0 0 1-.475-.188l2.12-11.708a1.74 1.74 0 0 0-.233-1.309 1.7 1.7 0 0 0-1.075-.752c-.908-.198-1.835.416-2.028 1.326l-2.21 10.03a.26.26 0 0 1-.282.205.263.263 0 0 1-.232-.262V2.842c0-.947-.884-1.842-1.82-1.842-.935 0-1.82.895-1.82 1.842v12.632a.26.26 0 0 1-.515.05L11.424 5.012c-.193-.904-1.12-1.518-2.028-1.32-.446.099-.829.365-1.075.753-.248.388-.331.85-.234 1.3l2.123 14.862a.26.26 0 0 1-.133.269.26.26 0 0 1-.296-.033l-3.917-3.459a1.697 1.697 0 0 0-2.417.102 1.73 1.73 0 0 0-.446 1.245c.02.46.216.886.552 1.197l6.928 9.328A5.63 5.63 0 0 0 14.544 31h4.591c3.849 0 5.642-2.51 5.642-7.898 0-1.215.299-2.425.864-3.5l2.81-5.339c.247-.406.32-.87.214-1.319"}))))}},81575(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M28.665 12.944a1.72 1.72 0 0 0-.767-1.07 1.69 1.69 0 0 0-2.349.568l-3.571 5.69a.261.261 0 0 1-.475-.188l2.12-11.708a1.74 1.74 0 0 0-.233-1.309 1.7 1.7 0 0 0-1.075-.752c-.908-.198-1.835.416-2.028 1.326l-2.21 10.03a.26.26 0 0 1-.282.205.263.263 0 0 1-.232-.262V2.842c0-.947-.884-1.842-1.82-1.842-.935 0-1.82.895-1.82 1.842v12.632a.26.26 0 0 1-.515.05L11.424 5.012c-.193-.904-1.12-1.518-2.028-1.32-.446.099-.829.365-1.075.753-.248.388-.331.85-.234 1.3l2.123 14.862a.26.26 0 0 1-.133.269.26.26 0 0 1-.296-.033l-3.917-3.459a1.697 1.697 0 0 0-2.417.102 1.73 1.73 0 0 0-.446 1.245c.02.46.216.886.552 1.197l6.928 9.328A5.63 5.63 0 0 0 14.544 31h4.591c3.849 0 5.642-2.51 5.642-7.898 0-1.215.299-2.425.864-3.5l2.81-5.339c.247-.406.32-.87.214-1.319"})))}},82312(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m4.737 19 .03.072a3.04 3.04 0 0 0 4.02 1.531L9 20.507V23a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1zM13 19h6a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1m11 0h6a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1M2 26h28a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1M7.542 1c.218 0 .433.046.631.135l17.049 7.643a1.542 1.542 0 0 1 0 2.814L8.173 19.235A1.542 1.542 0 0 1 6 17.827V2.542C6 1.69 6.69 1 7.542 1m1.542 3.923v10.523l11.737-5.261z"}))))}},79268(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29 11a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V13a2 2 0 0 1 2-2h1.499v3.134a1 1 0 0 0-.492.75L4 15v12a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V15a1 1 0 0 0-1-1l-3.483-.001 2.319-1.038a3.04 3.04 0 0 0 1.442-1.35l.09-.182q.094-.21.154-.429z"}),o.createElement("path",{d:"M7 22h18a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1m18-6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H10.132l8.924-4zM7.542 1c.218 0 .433.046.631.135l17.049 7.643a1.542 1.542 0 0 1 0 2.814L8.173 19.235A1.542 1.542 0 0 1 6 17.827V2.542C6 1.69 6.69 1 7.542 1m1.542 3.923v10.523l11.737-5.261z"}))))}},84524(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M1.938 3.75h28.125v14.972L16 28.25 1.938 18.722z"})))}},97420(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.632 1.302c.19-.192.5-.192.69 0 .585.584 1.562.947 2.552.947.941 0 1.732-.33 2.064-.861a.49.49 0 0 1 .359-.226.46.46 0 0 1 .333.083l.068.057 7.818 7.818c.19.19.19.5 0 .69a3.28 3.28 0 0 0-.948 2.349c.002.884.348 1.736.948 2.336a.49.49 0 0 1 .06.616l-.06.075-15.148 15.147a.49.49 0 0 1-.69 0c-.598-.597-1.452-.94-2.342-.94s-1.746.343-2.343.94a.49.49 0 0 1-.614.062l-.077-.062-7.818-7.818a.49.49 0 0 1 0-.691c.597-.598.94-1.451.94-2.342 0-.89-.343-1.745-.94-2.342a.49.49 0 0 1-.062-.614l.062-.077zm3.159 5.887-.095.105a1.466 1.466 0 0 0 .095 1.969l.345.345-4.146 4.146-.345-.345a1.466 1.466 0 0 0-2.073 0l-.095.104a1.466 1.466 0 0 0 .095 1.969l.345.345-4.146 4.146-.345-.345A1.466 1.466 0 1 0 7.353 21.7l2.764 2.764c.572.572 1.5.572 2.073 0l.095-.105a1.466 1.466 0 0 0-.095-1.968l-.346-.346L15.99 17.9l.346.346c.572.572 1.5.572 2.073 0l.095-.105a1.466 1.466 0 0 0-.095-1.968l-.346-.346 4.147-4.146.345.346a1.466 1.466 0 1 0 2.073-2.073l-2.764-2.765a1.466 1.466 0 0 0-2.073 0"})))}},32360(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.254 1c8.124 0 14.6 6.473 14.744 14.74.069 3.993-1.472 7.788-4.338 10.687-2.848 2.879-6.629 4.501-10.648 4.572l-.266.001C7.623 31 1.147 24.527 1.002 16.26c-.069-3.993 1.473-7.788 4.34-10.686 2.847-2.878 6.628-4.502 10.647-4.573zm-5.07 8.375a1.279 1.279 0 1 0-1.81 1.81L14.192 16l-4.816 4.816a1.28 1.28 0 1 0 1.81 1.81L16 17.808l4.816 4.816a1.279 1.279 0 1 0 1.81-1.809L17.808 16l4.816-4.816a1.28 1.28 0 1 0-1.81-1.808L16 14.19Z"})))}},42488(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.002 17c.551 0 .998.45.998 1.007v11.986c0 .556-.447 1.007-.998 1.007H1.998C1.447 31 1 30.55 1 29.993V18.007C1 17.45 1.447 17 1.998 17H13v2.5h-1.49c-1.807 0-2.684 1.797-1.57 3.216l4.26 5.421c.942 1.2 2.658 1.198 3.6 0l4.26-5.42c1.112-1.417.245-3.217-1.555-3.217h-1.447V17z"}),o.createElement("path",{d:"M21.993 2C22.55 2 23 2.455 23 3v12c0 .552-.45 1-1.007 1h-4.435v5h2.947c.543 0 .717.353.375.79l-4.26 5.42c-.34.433-.898.437-1.24 0l-4.26-5.42c-.34-.433-.168-.79.39-.79h2.99v-5h-4.493A1.01 1.01 0 0 1 9 15V3c0-.552.45-1 1.007-1Zm-2.105 3.112a1.406 1.406 0 0 0-1.99.001L16 7.01l-1.898-1.898a1.406 1.406 0 1 0-1.99 1.99L14.01 9l-1.898 1.898a1.406 1.406 0 1 0 1.99 1.99L16 10.99l1.898 1.898a1.405 1.405 0 0 0 1.99 0c.55-.55.55-1.44 0-1.99L17.99 9l1.898-1.898c.55-.55.55-1.44 0-1.99"}))))}},49192(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:27,height:27,viewBox:"0 0 27 27"},e),r||(r=i.createElement("defs",null,i.createElement("filter",{id:"a",width:"136.4%",height:"134.8%",x:"-18.2%",y:"-17.4%",filterUnits:"objectBoundingBox"},i.createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),i.createElement("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:1}),i.createElement("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"}),i.createElement("feMerge",null,i.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),i.createElement("feMergeNode",{in:"SourceGraphic"}))))),o||(o=i.createElement("g",{fill:"none",fillRule:"nonzero",filter:"url(#a)",transform:"translate(1 2)"},i.createElement("path",{fill:"#161E2B",d:"M14.998 13.696 15 20.501c0 1.29-.982 2.365-2.306 2.491l-.192.008a2.5 2.5 0 0 1-2.499-2.498l-.002-6.806zM12.498 0a2.5 2.5 0 0 1 2.499 2.498v7.068h-4.996V2.499C10 1.264 10.897.227 12.135.029l.17-.021Z"}),i.createElement("path",{fill:"#FFF",fillOpacity:.6,d:"M13.998 13.696 14 20.502c0 .778-.594 1.418-1.354 1.491l-.144.007c-.828 0-1.499-.67-1.5-1.498l-.001-6.806zM12.498 1c.828 0 1.499.67 1.499 1.498v7.068h-2.996L11 2.498c0-.778.594-1.418 1.354-1.491z"}),i.createElement("path",{fill:"#161E2B",d:"m.567 10.08-.1.114-.115.162a2.1 2.1 0 0 0-.348 1.048L0 11.63l.006.165c.055.706.46 1.328 1.065 1.656l.071.034 2.773 2.494.117.097c.386.288.797.423 1.218.423a1.99 1.99 0 0 0 1.53-.725l.106-.137a2.11 2.11 0 0 0 .258-1.903l-.015-.039H19.59c1.14 0 2.065-.924 2.065-2.065l-.005-.147a2.065 2.065 0 0 0-2.06-1.918H6.636l.063-.068.096-.11c.658-.85.605-2.018-.104-2.764a1.976 1.976 0 0 0-2.882 0z"}),i.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M5.966 7.312c.37.39.393 1.007.07 1.425l-.07.081-1.62 1.748H19.59a1.065 1.065 0 0 1 0 2.13H4.831l1.086.937c.42.388.463 1.06.095 1.503a.972.972 0 0 1-1.343.17l-.085-.07-2.89-2.6A1.06 1.06 0 0 1 1 11.632l.005-.047-.004-.032a1.1 1.1 0 0 1 .226-.707l.07-.082 3.237-3.45a.977.977 0 0 1 1.432 0"}))))}},62251(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:27,height:27,viewBox:"0 0 27 27"},e),r||(r=i.createElement("defs",null,i.createElement("filter",{id:"a",width:"136.4%",height:"134.8%",x:"-18.2%",y:"-17.4%",filterUnits:"objectBoundingBox"},i.createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),i.createElement("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:1}),i.createElement("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"}),i.createElement("feMerge",null,i.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),i.createElement("feMergeNode",{in:"SourceGraphic"}))))),o||(o=i.createElement("g",{fill:"none",fillRule:"nonzero",filter:"url(#a)",transform:"translate(4 2)"},i.createElement("path",{fill:"#161E2B",d:"M11.998 13.696 12 20.501c0 1.29-.982 2.365-2.306 2.491L9.502 23a2.5 2.5 0 0 1-2.499-2.498l-.002-6.806zM9.498 0a2.5 2.5 0 0 1 2.499 2.498v7.068H7.001V2.499C7 1.264 7.897.227 9.135.029l.17-.021Z"}),i.createElement("path",{fill:"#FFF",fillOpacity:.6,d:"M10.998 13.696 11 20.502c0 .778-.594 1.418-1.354 1.491L9.502 22c-.828 0-1.499-.67-1.5-1.498l-.001-6.806zM9.498 1c.828 0 1.499.67 1.499 1.498v7.068H8.001L8 2.498c0-.778.594-1.418 1.354-1.491z"}),i.createElement("path",{fill:"#161E2B",d:"m21.433 10.08.1.114.115.162c.213.326.328.682.348 1.048l.004.227-.006.165a2.06 2.06 0 0 1-1.065 1.656l-.071.034-2.773 2.494-.117.097a2 2 0 0 1-1.218.423 1.99 1.99 0 0 1-1.53-.725l-.106-.137a2.11 2.11 0 0 1-.258-1.903l.015-.039H2.41a2.065 2.065 0 0 1-2.065-2.065l.005-.147a2.065 2.065 0 0 1 2.06-1.918h12.954l-.063-.068-.096-.11c-.658-.85-.605-2.018.104-2.764a1.976 1.976 0 0 1 2.882 0z"}),i.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M16.034 7.312a1.11 1.11 0 0 0-.07 1.425l.07.081 1.62 1.748H2.41a1.065 1.065 0 0 0 0 2.13h14.759l-1.086.937a1.104 1.104 0 0 0-.095 1.503.972.972 0 0 0 1.343.17l.085-.07 2.89-2.6c.403-.14.694-.534.694-1.005l-.005-.047.004-.032a1.1 1.1 0 0 0-.226-.707l-.07-.082-3.237-3.45a.977.977 0 0 0-1.432 0"}))))}},53088(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:27,height:27,viewBox:"0 0 27 27"},e),r||(r=i.createElement("defs",null,i.createElement("filter",{id:"a",width:"132%",height:"134.8%",x:"-16%",y:"-17.4%",filterUnits:"objectBoundingBox"},i.createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),i.createElement("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:1}),i.createElement("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"}),i.createElement("feMerge",null,i.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),i.createElement("feMergeNode",{in:"SourceGraphic"}))))),o||(o=i.createElement("g",{fill:"none",fillRule:"nonzero",filter:"url(#a)",transform:"translate(1 2)"},i.createElement("path",{fill:"#161E2B",d:"M15 18.696v1.805c0 1.29-.982 2.365-2.306 2.491l-.192.008a2.5 2.5 0 0 1-2.499-2.498v-1.806zM12.497 0a2.5 2.5 0 0 1 2.499 2.498l.001 12.068h-4.997V2.499C10 1.264 10.897.227 12.135.029l.17-.021Z"}),i.createElement("path",{fill:"#FFF",fillOpacity:.6,d:"M13.999 18.696v1.806c0 .778-.593 1.418-1.353 1.491l-.144.007c-.828 0-1.499-.67-1.5-1.498v-1.806zm-.002-11 .001 6.87h-2.997L11 7.696zM12.498 1c.828 0 1.499.67 1.499 1.498l-.001 1.068H11V2.498c0-.778.594-1.418 1.354-1.491z"}),i.createElement("path",{fill:"#161E2B",d:"M3.81 11.624a1.976 1.976 0 0 1 2.881 0c.71.746.762 1.915.104 2.764l-.096.11-.063.068h11.728l-.056-.06a2.11 2.11 0 0 1-.113-2.752l.114-.13a1.975 1.975 0 0 1 2.74-.136l.036.033.11.107 3.234 3.447c.383.402.587.949.563 1.602V16.5l.007.132c0 .818-.468 1.55-1.234 1.9l.098-.05-2.77 2.49c-.325.3-.731.48-1.158.52l-.184.009a1.99 1.99 0 0 1-1.531-.725 2.09 2.09 0 0 1-.375-1.981l.035-.098H7.129l.015.039a2.11 2.11 0 0 1-.258 1.903l-.106.137a1.99 1.99 0 0 1-1.53.725c-.421 0-.832-.135-1.218-.423l-.117-.097-2.773-2.494-.071-.034a2.06 2.06 0 0 1-1.065-1.656L0 16.63l.004-.227c.02-.366.135-.722.348-1.048l.115-.162.1-.115Zm16.584.62a.975.975 0 0 0-1.36.068 1.106 1.106 0 0 0 0 1.506l1.621 1.748H4.345l1.621-1.748.07-.08c.323-.42.3-1.036-.07-1.426a.977.977 0 0 0-1.432 0l-3.238 3.451-.07.082c-.152.198-.233.45-.225.707l.004.032L1 16.63c0 .471.291.865.693 1.006l2.891 2.599.085.07a.97.97 0 0 0 1.343-.17 1.104 1.104 0 0 0-.095-1.503l-1.086-.936H20.17l-1.086.936-.075.076a1.106 1.106 0 0 0-.02 1.427c.199.24.48.364.762.364a.98.98 0 0 0 .665-.264l2.891-2.6.085-.033a1.06 1.06 0 0 0 .607-.972l-.004-.047.004-.032c.01-.294-.098-.58-.295-.789l-3.238-3.45ZM3.81.624a1.976 1.976 0 0 1 2.881 0c.71.746.762 1.915.104 2.764l-.096.11-.063.068h11.728l-.056-.06a2.11 2.11 0 0 1-.113-2.752l.114-.13a1.975 1.975 0 0 1 2.74-.136l.036.033.11.107 3.234 3.447c.383.402.587.949.563 1.602V5.5l.007.132c0 .818-.468 1.55-1.234 1.9l.098-.05-2.77 2.49c-.325.3-.731.48-1.158.52l-.184.009a1.99 1.99 0 0 1-1.531-.725 2.09 2.09 0 0 1-.375-1.981l.035-.098H7.129l.015.039a2.11 2.11 0 0 1-.258 1.903l-.106.137a1.99 1.99 0 0 1-1.53.725c-.421 0-.832-.135-1.218-.423l-.117-.097-2.773-2.494-.071-.034A2.06 2.06 0 0 1 .006 5.796L0 5.63l.004-.227c.02-.366.135-.722.348-1.048l.115-.162.1-.115Zm16.584.62a.975.975 0 0 0-1.36.068 1.106 1.106 0 0 0 0 1.506l1.621 1.748H4.345l1.621-1.748.07-.08c.323-.42.3-1.036-.07-1.426a.977.977 0 0 0-1.432 0L1.296 4.763l-.07.082c-.152.198-.233.45-.225.707l.004.032L1 5.63c0 .471.291.865.693 1.006l2.891 2.599.085.07a.97.97 0 0 0 1.343-.17 1.104 1.104 0 0 0-.095-1.503L4.83 6.697H20.17l-1.086.936-.075.076a1.106 1.106 0 0 0-.02 1.427c.199.24.48.364.762.364a.98.98 0 0 0 .665-.264l2.891-2.6.085-.033a1.06 1.06 0 0 0 .607-.972l-.004-.047.004-.032c.01-.294-.098-.58-.295-.789l-3.238-3.45Z"}),i.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"m20.394 12.243.072.07 3.238 3.45c.197.208.305.495.295.789l-.004.032.004.047c0 .438-.25.809-.607.972l-.085.034-2.89 2.599a.98.98 0 0 1-.666.264.99.99 0 0 1-.762-.364 1.106 1.106 0 0 1 .02-1.427l.075-.076 1.086-.936H4.83l1.086.936c.42.388.463 1.06.095 1.503a.972.972 0 0 1-1.343.17l-.085-.07-2.89-2.6A1.06 1.06 0 0 1 1 16.632l.005-.047-.004-.032a1.1 1.1 0 0 1 .226-.707l.07-.082 3.237-3.45a.977.977 0 0 1 1.432 0c.37.389.393 1.006.07 1.424l-.07.081-1.62 1.748h16.31l-1.622-1.748a1.106 1.106 0 0 1 0-1.506.975.975 0 0 1 1.36-.069M20.394 1.243l.072.07 3.238 3.45c.197.208.305.495.295.789l-.004.032.004.047c0 .438-.25.809-.607.972l-.085.034-2.89 2.599a.98.98 0 0 1-.666.264.99.99 0 0 1-.762-.364 1.106 1.106 0 0 1 .02-1.427l.075-.076 1.086-.936H4.83l1.086.936c.42.388.463 1.06.095 1.503a.972.972 0 0 1-1.343.17l-.085-.07-2.89-2.6A1.06 1.06 0 0 1 1 5.632l.005-.047-.004-.032a1.1 1.1 0 0 1 .226-.707l.07-.082 3.237-3.45a.977.977 0 0 1 1.432 0c.37.389.393 1.006.07 1.424l-.07.081-1.62 1.748h16.31l-1.622-1.748a1.106 1.106 0 0 1 0-1.506.975.975 0 0 1 1.36-.069"}))))}},2775(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m14 13.861.774.563c.75.544 1.815.541 2.561.001l.665-.481v6.557a3.2 3.2 0 0 0-1.538.822 3.13 3.13 0 0 0 0 4.513L18 27.321V29a2 2 0 1 1-4 0zM12.5 23v5h-9a2.5 2.5 0 1 1 0-5zm0-7v5h-9a2.5 2.5 0 1 1 0-5zM23.13 1v7.38l-6.674 4.83a.72.72 0 0 1-.8 0L9 8.38V1z"}),o.createElement("path",{d:"M29.258 21.927c-.441 0-.865.165-1.186.475l-2.407 2.322v-10.07c0-.92-.761-1.654-1.691-1.654-.929 0-1.691.735-1.691 1.654v10.07l-2.405-2.322a1.72 1.72 0 0 0-2.375 0 1.63 1.63 0 0 0 0 2.355l5.09 4.91L23.973 31l1.383-1.33 5.09-4.913c.671-.647.671-1.708 0-2.355a1.7 1.7 0 0 0-1.188-.475"}))))}},91323(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M30.504 17.5c.274 0 .496.218.496.502v3.523a.5.5 0 0 1-.496.502H1.496A.495.495 0 0 1 1 21.525v-3.523a.5.5 0 0 1 .496-.502zM30.504 10c.274 0 .496.223.496.496v3.641a.497.497 0 0 1-.496.496H1.496A.497.497 0 0 1 1 14.137v-3.641c0-.274.224-.496.496-.496z"}))))}},10599(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FFF",fillOpacity:.4,d:"M13.998 27.897c.088.248.23.475.42.664l2.021 2.02.12.11.126.096q.045.03.09.058A2 2 0 0 1 14 29ZM12.5 23v5h-9a2.5 2.5 0 1 1 0-5zm1.5 2.111q.139.022.283.022h.89l.036.113-.791.793-.118.13q-.198.242-.301.533ZM12.5 16v5h-9a2.5 2.5 0 1 1 0-5zm1.5 2.303c.087.242.227.468.421.66l.337.337h-.475l-.146.006q-.07.007-.137.016Zm0-4.442.774.563c.367.266.81.402 1.252.407l-1.608 1.608-.11.12-.096.127q-.135.195-.211.41zM23.13 1v7.38l-6.674 4.83a.72.72 0 0 1-.8 0L9 8.38V1z"}),o.createElement("path",{fill:"#FFF",d:"M22.5 25.333a2.837 2.837 0 0 1-2.833-2.833 2.837 2.837 0 0 1 2.833-2.833 2.837 2.837 0 0 1 2.833 2.833 2.837 2.837 0 0 1-2.833 2.833m8.217-4.533h-2.102a6.6 6.6 0 0 0-.58-1.413L29.52 17.9a.283.283 0 0 0 0-.4L27.5 15.479a.284.284 0 0 0-.4 0l-1.489 1.488a8.4 8.4 0 0 0-1.411-.583v-2.1a.283.283 0 0 0-.283-.284h-2.834a.283.283 0 0 0-.283.283v2.102c-.384.114-.96.337-1.412.581L17.9 15.48a.284.284 0 0 0-.4 0l-2.021 2.02a.283.283 0 0 0 0 .401l1.488 1.489a8.6 8.6 0 0 0-.58 1.411h-2.104a.283.283 0 0 0-.283.283v2.267c0 .156.127.283.283.283h2.075c.123.738.35 1.47.61 1.977l-1.49 1.49a.28.28 0 0 0 0 .4l2.022 2.021a.29.29 0 0 0 .4 0l1.49-1.49c.326.166.721.305 1.05.42.133.047.26.092.36.13v2.136c0 .156.127.283.283.283h2.834a.283.283 0 0 0 .283-.283V28.58c.1-.038.228-.083.36-.13.33-.115.724-.254 1.049-.42l1.49 1.49c.111.11.29.11.401 0l2.021-2.02a.284.284 0 0 0 0-.401l-1.484-1.484c.262-.437.473-.874.613-1.983h2.067A.283.283 0 0 0 31 23.35v-2.267a.283.283 0 0 0-.283-.283"}),o.createElement("text",{fill:"#5A6872",fontFamily:"Lato-Bold, Lato",fontSize:54,fontWeight:"bold"},o.createElement("tspan",{x:-125,y:82},"Interface icons")))))}},65610(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M24.148 11.141c.461.035.88.285 1.123.675l2.518 4.061c.42.679.191 1.56-.502 1.96a1.463 1.463 0 0 1-1.966-.486l-.226-.366c-1.129 3.28-4.006 5.94-7.543 6.745-.787.18-1.587.27-2.385.27a10.44 10.44 0 0 1-7.2-2.863 1.4 1.4 0 0 1-.015-2.022 1.464 1.464 0 0 1 2.024-.014c1.832 1.74 4.418 2.439 6.922 1.868 2.108-.48 3.886-1.868 4.901-3.645a1.465 1.465 0 0 1-2.015.176 1.4 1.4 0 0 1-.184-2.014l3.336-3.849c.3-.347.75-.529 1.212-.496M22.89 4.348a1.4 1.4 0 0 1-.126 2.018 1.465 1.465 0 0 1-2.02-.12c-1.814-1.975-4.598-2.826-7.264-2.218a7.91 7.91 0 0 0-4.939 3.525 7.1 7.1 0 0 0-.91 2.233L8.58 8.69a1.463 1.463 0 0 1 2.017-.177 1.4 1.4 0 0 1 .184 2.014l-3.335 3.85c-.281.325-.689.499-1.174.497a1.45 1.45 0 0 1-1.12-.616l-2.9-4.164a1.4 1.4 0 0 1 .396-1.982 1.46 1.46 0 0 1 1.989.382l.25.358a10 10 0 0 1 1.186-2.772 10.8 10.8 0 0 1 6.755-4.814c3.688-.84 7.543.338 10.063 3.08"}),o.createElement("path",{fillOpacity:.4,d:"M7.995 17.903A1.004 1.004 0 0 0 6.997 17H2.003A1 1 0 0 0 1 18.007v11.986C1 30.55 1.449 31 2.003 31h4.994A1 1 0 0 0 8 29.993v-7.5q-.373-.3-.723-.631a2.4 2.4 0 0 1-.023-3.463c.22-.215.472-.38.74-.496M28.968 17h1.03c.553 0 1.002.45 1.002 1.007v11.986A1 1 0 0 1 29.997 31h-4.994C24.449 31 24 30.55 24 29.993v-9.105a11.4 11.4 0 0 0 1.423-2.132 2.47 2.47 0 0 0 2.362-.052A2.42 2.42 0 0 0 28.968 17"}))))}},57416(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m14 13.861.774.563c.75.544 1.815.541 2.561.001l.665-.481-.001 5.35-2.192.313a2 2 0 0 0-1.698 2.262l.03.165a2 2 0 0 0 .567.998l2.628 2.513-.987 3.967c-.124.498-.05.999.173 1.42A2 2 0 0 1 14 29zM12.5 23v5h-9a2.5 2.5 0 1 1 0-5zM31 25.5c0 1.12-.737 2.068-1.752 2.386l-.583-2.341 1.74-1.663A2.5 2.5 0 0 1 31 25.5M12.5 16v5h-9a2.5 2.5 0 1 1 0-5zm16 0a2.5 2.5 0 0 1 2.173 3.737 2 2 0 0 0-.48-.13l-3.695-.527L25.101 16zm-7.602 0-1.397 3.08L19.5 16zM23.13 1v7.38l-6.674 4.83a.72.72 0 0 1-.8 0L9 8.38V1z"}),o.createElement("path",{d:"M22.793 15.755a.5.5 0 0 1 .618.17l.044.079 2.017 4.445 4.51.643a.5.5 0 0 1 .334.788l-.06.068L27 25.064l1.197 4.81a.5.5 0 0 1-.648.594l-.082-.037L23 27.916l-4.467 2.515a.5.5 0 0 1-.744-.467l.014-.09L19 25.064l-3.257-3.116a.5.5 0 0 1 .188-.835l.087-.02 4.51-.644 2.017-4.445a.5.5 0 0 1 .248-.25"}))))}},27009(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12.5 23v5h-9a2.5 2.5 0 1 1 0-5zm16 0a2.5 2.5 0 1 1 0 5h-9v-5zm-16-7v5h-9a2.5 2.5 0 1 1 0-5zm16 0a2.5 2.5 0 1 1 0 5h-9v-5z"}),o.createElement("path",{d:"m14 13.861.774.563c.75.544 1.815.541 2.561.001l.665-.481V29a2 2 0 1 1-4 0zM23.13 1v7.38l-6.674 4.83a.72.72 0 0 1-.8 0L9 8.38V1z"}))))}},43979(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M31 26.306V28a3 3 0 0 1-4.238 2.733A12.1 12.1 0 0 0 31 26.306M4 1a3 3 0 0 1 2.995 2.824L7 4v16.605l1.591-1.59q-.09.73-.091 1.485c0 2.128.556 4.128 1.531 5.863L6.303 30.09c-.617.618-1.43.92-2.24.91H4a3 3 0 0 1-2.995-2.824L1 28V4a3 3 0 0 1 3-3m24 0a3 3 0 0 1 2.995 2.824L31 4v10.694C28.952 11.004 25.013 8.5 20.5 8.5q-.755 0-1.486.091l6.683-6.681a3.1 3.1 0 0 1 2.25-.91z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m0 4.1c-.722 0-1.308.586-1.308 1.308v3.784h-3.785a1.308 1.308 0 0 0 0 2.616h3.785v3.784a1.307 1.307 0 1 0 2.616 0v-3.784h3.784a1.308 1.308 0 0 0 0-2.616h-3.784v-3.784c0-.722-.586-1.307-1.308-1.307"}))))}},33476(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M31 26.88V28a3 3 0 0 1-4.154 2.77c.51-.036.999-.225 1.4-.547 1.145-.91 2.09-2.071 2.755-3.343M4 1a3 3 0 0 1 2.995 2.824L7 4v16.605l1.5-1.5v8.155h.633l-2.83 2.83c-.617.618-1.43.92-2.24.91H4a3 3 0 0 1-2.995-2.824L1 28V4a3 3 0 0 1 3-3m24 0a3 3 0 0 1 2.995 2.824L31 4v14.572a10.6 10.6 0 0 0-2.523-3.15l-.248-.204-.14-.103a2.54 2.54 0 0 0-3.09.185v-3.906l-2.602 2.602-.022-.115-.046-.153c-.175-.5-.56-.9-1.054-1.097l-.165-.056a1.86 1.86 0 0 0-1.793.428l-5.643 5.362H9.24L25.697 1.91a3.1 3.1 0 0 1 2.25-.91z"}),o.createElement("path",{d:"m20.346 14.095-6.073 5.77H10v5.895h4.534l5.82 5.153a.35.35 0 0 0 .371.06.33.33 0 0 0 .206-.3V14.327a.33.33 0 0 0-.211-.302.36.36 0 0 0-.374.07m6.954 2.301c1.996 1.58 3.279 4.052 3.279 6.331 0 2.275-1.283 4.747-3.274 6.327-.18.145-.407.223-.641.223-.299 0-.582-.127-.773-.348a.934.934 0 0 1 .134-1.352c1.546-1.228 2.551-3.146 2.551-4.85 0-1.708-1.004-3.624-2.549-4.848a.934.934 0 0 1-.135-1.354 1.03 1.03 0 0 1 1.408-.129m-2.676 2.294c1.51 1.053 2.355 2.49 2.355 4.037 0 1.549-.845 2.986-2.358 4.04a1.03 1.03 0 0 1-1.397-.215.936.936 0 0 1 .223-1.341c1.005-.7 1.53-1.532 1.53-2.484 0-.95-.525-1.782-1.532-2.484a.935.935 0 0 1-.22-1.34 1.03 1.03 0 0 1 1.399-.213"}))))}},65790(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m1 5.239 6 6v9.366l4.683-4.683 4.394 4.394-9.774 9.774c-.617.618-1.43.92-2.24.91H4a3 3 0 0 1-2.995-2.824L1 28zM28 1a3 3 0 0 1 2.995 2.824L31 4l.002 23.106a3 3 0 0 0-.673-1.022L25 20.754l-.001-9.36-4.68 4.68-4.394-4.394 9.772-9.77a3.1 3.1 0 0 1 2.25-.91z"}),o.createElement("path",{d:"M1.939 1.936a1.507 1.507 0 0 1 2.012-.098l.114.103L29.27 27.145c.59.59.592 1.538.004 2.126a1.507 1.507 0 0 1-2.012.098l-.114-.103L1.944 4.062a1.5 1.5 0 0 1-.005-2.126"}))))}},17787(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m25.441 28.335 3.385 1.633.186.075.139.045.175.043a2.6 2.6 0 0 0 .722.062 2.998 2.998 0 0 1-4.607-.627zM4 1a3 3 0 0 1 2.995 2.824L7 4v16.605l2.85-2.848a2.5 2.5 0 0 0-.35 1.313v7.823L6.303 30.09c-.617.618-1.43.92-2.24.91H4a3 3 0 0 1-2.995-2.824L1 28V4a3 3 0 0 1 3-3m24 0a3 3 0 0 1 2.995 2.824L31 4v14.896a2.65 2.65 0 0 0-2.079-.051l-.143.066-3.337 1.759v-1.6l-.01-.217-.026-.188A2.6 2.6 0 0 0 25 17.64l-.001-6.246-5.105 5.105-7.457.001-.186.004-.184.014a3.3 3.3 0 0 0-1.45.47L25.698 1.91a3.1 3.1 0 0 1 2.25-.91z"}),o.createElement("path",{d:"M23.941 19.07c0-.743-.645-1.07-1.437-1.07H12.437c-.792 0-1.437.327-1.437 1.07v10.523c0 .743.645 1.348 1.437 1.348h10.067c.792 0 1.437-.605 1.437-1.348zm5.536 1.168-4.124 2.175v4.214l4.124 1.99a1.14 1.14 0 0 0 1.034-.096c.306-.195.489-.521.489-.872v-6.444c0-.35-.183-.676-.49-.872a1.14 1.14 0 0 0-1.033-.095"}))))}},35105(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M28 1a3 3 0 0 1 3 3v24a3 3 0 0 1-6 0l-.001-16.606L6.303 30.09c-.617.618-1.43.92-2.24.91H4a3 3 0 0 1-3-3V4a3 3 0 1 1 6 0v16.605L25.697 1.91a3.1 3.1 0 0 1 2.25-.91Z"})))}},30850(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M1 26v5h17V6h13V1H14v25z"})))}},95894(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M13 9v14H1.999C1.447 23 1 22.55 1 21.993V10.007C1 9.45 1.447 9 1.999 9zm-7.765 3.384a1.308 1.308 0 1 0-1.851 1.85L5.149 16l-1.765 1.766a1.308 1.308 0 1 0 1.85 1.85L7 17.852l1.765 1.766a1.307 1.307 0 0 0 1.851 0 1.31 1.31 0 0 0 0-1.851L8.851 16l1.765-1.765a1.308 1.308 0 1 0-1.851-1.85L7 14.148ZM16 1a1.5 1.5 0 0 1 1.5 1.5v27.139a1.5 1.5 0 0 1-3 0V2.5A1.5 1.5 0 0 1 16 1"}),o.createElement("path",{fillOpacity:.4,d:"M30.001 9c.552 0 .999.45.999 1.007v11.986c0 .557-.447 1.007-.999 1.007H19V9Z"}))))}},4533(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M13 9v14H1.999C1.447 23 1 22.55 1 21.993V10.007C1 9.45 1.447 9 1.999 9z"}),o.createElement("path",{d:"M30.001 9c.512 0 .935.389.992.89l.007.117v11.986c0 .517-.385.942-.882 1L30 23H19V9zm-6.766 3.384a1.308 1.308 0 1 0-1.851 1.85L23.149 16l-1.765 1.766a1.308 1.308 0 1 0 1.85 1.85L25 17.852l1.765 1.766a1.307 1.307 0 0 0 1.851 0 1.31 1.31 0 0 0 0-1.851L26.851 16l1.765-1.765a1.308 1.308 0 1 0-1.851-1.85L25 14.148ZM16 1a1.5 1.5 0 0 1 1.5 1.5v27.139a1.5 1.5 0 0 1-3 0V2.5A1.5 1.5 0 0 1 16 1"}))))}},53722(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:27,height:27,viewBox:"0 0 27 27"},e),r||(r=i.createElement("defs",null,i.createElement("filter",{id:"a",width:"136.4%",height:"134.8%",x:"-18.2%",y:"-17.4%",filterUnits:"objectBoundingBox"},i.createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),i.createElement("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:1}),i.createElement("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"}),i.createElement("feMerge",null,i.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),i.createElement("feMergeNode",{in:"SourceGraphic"}))))),o||(o=i.createElement("g",{fill:"none",fillRule:"nonzero",filter:"url(#a)",transform:"translate(4 2)"},i.createElement("path",{fill:"#161E2B",d:"M11.998 13.696 12 20.501c0 1.29-.982 2.365-2.306 2.491L9.502 23a2.5 2.5 0 0 1-2.499-2.498l-.002-6.806zM9.498 0a2.5 2.5 0 0 1 2.499 2.498v7.068H7.001V2.499C7 1.264 7.897.227 9.135.029l.17-.021Z"}),i.createElement("path",{fill:"#FF4452",d:"M10.998 13.696 11 20.502c0 .778-.594 1.418-1.354 1.491L9.502 22c-.828 0-1.499-.67-1.5-1.498l-.001-6.806zM9.498 1c.828 0 1.499.67 1.499 1.498v7.068H8.001L8 2.498c0-.778.594-1.418 1.354-1.491z"}),i.createElement("path",{fill:"#161E2B",d:"m21.433 10.08.1.114.115.162c.213.326.328.682.348 1.048l.004.227-.006.165a2.06 2.06 0 0 1-1.065 1.656l-.071.034-2.773 2.494-.117.097a2 2 0 0 1-1.218.423 1.99 1.99 0 0 1-1.53-.725l-.106-.137a2.11 2.11 0 0 1-.258-1.903l.015-.039H2.41a2.065 2.065 0 0 1-2.065-2.065l.005-.147a2.065 2.065 0 0 1 2.06-1.918h12.954l-.063-.068-.096-.11c-.658-.85-.605-2.018.104-2.764a1.976 1.976 0 0 1 2.882 0z"}),i.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M16.034 7.312a1.11 1.11 0 0 0-.07 1.425l.07.081 1.62 1.748H2.41a1.065 1.065 0 0 0 0 2.13h14.759l-1.086.937a1.104 1.104 0 0 0-.095 1.503.972.972 0 0 0 1.343.17l.085-.07 2.89-2.6c.403-.14.694-.534.694-1.005l-.005-.047.004-.032a1.1 1.1 0 0 0-.226-.707l-.07-.082-3.237-3.45a.977.977 0 0 0-1.432 0"}))))}},55885(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r,o,i=n(39155);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:27,height:27,viewBox:"0 0 27 27"},e),r||(r=i.createElement("defs",null,i.createElement("filter",{id:"a",width:"136.4%",height:"134.8%",x:"-18.2%",y:"-17.4%",filterUnits:"objectBoundingBox"},i.createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),i.createElement("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:1}),i.createElement("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"}),i.createElement("feMerge",null,i.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),i.createElement("feMergeNode",{in:"SourceGraphic"}))))),o||(o=i.createElement("g",{fill:"none",fillRule:"nonzero",filter:"url(#a)",transform:"translate(1 2)"},i.createElement("path",{fill:"#161E2B",d:"M14.998 13.696 15 20.501c0 1.29-.982 2.365-2.306 2.491l-.192.008a2.5 2.5 0 0 1-2.499-2.498l-.002-6.806zM12.498 0a2.5 2.5 0 0 1 2.499 2.498v7.068h-4.996V2.499C10 1.264 10.897.227 12.135.029l.17-.021Z"}),i.createElement("path",{fill:"#FF4452",d:"M13.998 13.696 14 20.502c0 .778-.594 1.418-1.354 1.491l-.144.007c-.828 0-1.499-.67-1.5-1.498l-.001-6.806zM12.498 1c.828 0 1.499.67 1.499 1.498v7.068h-2.996L11 2.498c0-.778.594-1.418 1.354-1.491z"}),i.createElement("path",{fill:"#161E2B",d:"m.567 10.08-.1.114-.115.162a2.1 2.1 0 0 0-.348 1.048L0 11.63l.006.165c.055.706.46 1.328 1.065 1.656l.071.034 2.773 2.494.117.097c.386.288.797.423 1.218.423a1.99 1.99 0 0 0 1.53-.725l.106-.137a2.11 2.11 0 0 0 .258-1.903l-.015-.039H19.59c1.14 0 2.065-.924 2.065-2.065l-.005-.147a2.065 2.065 0 0 0-2.06-1.918H6.636l.063-.068.096-.11c.658-.85.605-2.018-.104-2.764a1.976 1.976 0 0 0-2.882 0z"}),i.createElement("path",{fill:"#FFF",fillOpacity:.9,d:"M5.966 7.312c.37.39.393 1.007.07 1.425l-.07.081-1.62 1.748H19.59a1.065 1.065 0 0 1 0 2.13H4.831l1.086.937c.42.388.463 1.06.095 1.503a.972.972 0 0 1-1.343.17l-.085-.07-2.89-2.6A1.06 1.06 0 0 1 1 11.632l.005-.047-.004-.032a1.1 1.1 0 0 1 .226-.707l.07-.082 3.237-3.45a.977.977 0 0 1 1.432 0"}))))}},92284(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M7.44 9.463a1.45 1.45 0 0 1 2.122 0c.548.577.582 1.492.103 2.113l-.103.12-3.603 3.79h20.083l-3.603-3.79a1.64 1.64 0 0 1 0-2.233 1.446 1.446 0 0 1 2.015-.103l.107.103 6 6.316c.293.308.452.732.438 1.168l-.006.047.006.071c0 .648-.371 1.198-.9 1.44l-.126.05-5.485 5.053A1.45 1.45 0 0 1 23.5 24c-.419 0-.834-.183-1.13-.54a1.64 1.64 0 0 1 .031-2.115l.11-.113 2.81-2.588H6.679l2.81 2.588c.623.575.686 1.571.14 2.228a1.441 1.441 0 0 1-1.99.253l-.126-.105-5.486-5.052A1.565 1.565 0 0 1 1 17.066l.007-.072-.006-.047a1.64 1.64 0 0 1 .335-1.048l.103-.12z"}),o.createElement("path",{fillOpacity:.4,d:"M19 19.644V29a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-9.356zM17 1a2 2 0 0 1 2 2v11.486h-6V3a2 2 0 0 1 1.85-1.995L15 1Z"}))))}},89289(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M20.601 8.463a1.473 1.473 0 0 0-2.073-.07l-7.057 6.532a1.464 1.464 0 0 0 0 2.15l7.057 6.533c.592.55 1.52.518 2.073-.07a1.46 1.46 0 0 0-.073-2.08L14.633 16l.396-.367 5.5-5.091a1.46 1.46 0 0 0 .072-2.079"}),o.createElement("path",{fillOpacity:.4,d:"M29 1a2 2 0 0 1 2 2v26a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zm-2 3H5a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1"}))))}},65359(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M7 1v3.164a10.03 10.03 0 0 0-4.5 8.365c0 3.49 1.79 6.569 4.5 8.366V31H1V1zm24 0v30h-6v-1.841a3.09 3.09 0 0 0 3.595-.563l.134-.142a3.09 3.09 0 0 0-.134-4.225L25 20.634V1z"}),o.createElement("path",{d:"M12.53 4c4.703 0 8.528 3.825 8.528 8.53 0 1.738-.525 3.4-1.483 4.8l7.96 7.96a1.588 1.588 0 1 1-2.246 2.246l-7.959-7.96a8.5 8.5 0 0 1-4.8 1.483c-4.705 0-8.53-3.826-8.53-8.53S7.825 4 12.53 4m-.01 2.4a6.12 6.12 0 1 0 0 12.24 6.12 6.12 0 0 0 0-12.24"}),o.createElement("path",{d:"M13.497 9.242a.988.988 0 0 0-1.975 0v2.389h-2.39a.988.988 0 0 0 0 1.975h2.39v2.388a.987.987 0 1 0 1.975 0v-2.388h2.388a.988.988 0 0 0 0-1.975h-2.388z"}))))}},18265(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m24.833 19.75-3.499-.001.189-.097a3.6 3.6 0 0 1 1.418-.343 3.66 3.66 0 0 1 1.892.44M16 1c3.47 0 6.684 1.982 8.277 5.077C27.99 6.114 31 9.165 31 12.91c0 1.763-.35 3.08-.896 4.063a9.335 9.335 0 0 0-2.208-1.88c.192-.566.291-1.292.291-2.21 0-2.166-1.68-3.919-3.75-4.04l-.189-.006c-1.053-.01-2.012-.588-2.484-1.497C20.64 5.18 18.39 3.813 16 3.813c-3.199 0-5.939 2.367-6.425 5.548l-.03.224c-.17 1.427-1.457 2.47-2.924 2.404l-.164-.012a2 2 0 0 0-.237-.012c-1.304 0-2.407 1.099-2.407 2.486 0 1.204.334 1.74.982 2.087.45.24 1.004.361 1.472.391l.195.008h9.654l-.34.413-.347.484-.312.496-.195.354-.259-.021a2.7 2.7 0 0 0-1.607.494c-.24.17-.445.37-.613.59H6.36C5.33 19.719 1 19.338 1 14.495c0-2.898 2.342-5.256 5.22-5.256q.264 0 .53.027C7.298 4.588 11.26 1 16 1"}),o.createElement("path",{d:"M22.786 15.124a7.77 7.77 0 0 0-5.558 2.629l-.387.472a8.2 8.2 0 0 0-1.17 2.146l-.027.074-.194-.165a1.4 1.4 0 0 0-1.602.005 1.41 1.41 0 0 0-.345 1.955l1.929 2.769.16.177.152.124.167.1.15.068.284.074.156.017.371-.038.271-.093.245-.146.17-.15 2.48-2.768a1.406 1.406 0 0 0-.104-1.98l-.203-.154a1.4 1.4 0 0 0-.69-.208l-.05.002.018-.024q.147-.202.314-.389a4.97 4.97 0 0 1 3.566-1.689 5.04 5.04 0 0 1 3.656 1.368c1 .934 1.577 2.2 1.627 3.573a5.1 5.1 0 0 1-1.36 3.685 5.05 5.05 0 0 1-3.548 1.633 1.404 1.404 0 0 0-1.35 1.455c.029.76.652 1.354 1.422 1.354a7.86 7.86 0 0 0 5.532-2.534 7.92 7.92 0 0 0 2.106-5.696 7.91 7.91 0 0 0-2.517-5.526 7.84 7.84 0 0 0-5.097-2.12z"}))))}},14500(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16 4c3.47 0 6.684 1.938 8.277 4.964C27.99 9.001 31 11.984 31 15.645q-.001.807-.098 1.492l-7.404-1.057L20 8.37l-3.498 7.71-7.769 1.108 5.378 5.145H6.495c-.68-.004-5.315-.147-5.49-4.862L1 17.194c0-2.834 2.342-5.14 5.22-5.14q.264 0 .53.027C7.298 7.508 11.26 4 16 4m14.822 13.614c-.666 3.397-3.072 4.412-4.866 4.654Z"}),o.createElement("path",{d:"M20 24.916 25.478 28 24 22.064l4-3.827-5.528-.788L20 12l-2.472 5.45-5.528.787 4 3.827L14.522 28z"}))))}},22221(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M16 1c3.47 0 6.684 1.938 8.277 4.964C27.99 6.001 31 8.984 31 12.645c0 5.834-4.015 6.688-6.015 6.688h-1.51a3.3 3.3 0 0 0-.95 0H19.7L19.7 12.8a3.3 3.3 0 0 0-3.3-3.3l-.187.005A3.3 3.3 0 0 0 13.1 12.8l-.001 6.533h-2.835a3.3 3.3 0 0 0-.927 0H6.495C5.802 19.33 1 19.18 1 14.193c0-2.833 2.342-5.138 5.22-5.138q.264 0 .53.026C7.298 4.508 11.26 1 16 1"}),o.createElement("path",{d:"M16.4 11a1.8 1.8 0 0 1 1.8 1.8v12.055l3.527-3.527a1.8 1.8 0 0 1 2.546 0 1.8 1.8 0 0 1 0 2.545l-6.603 6.604a2 2 0 0 1-.28.227l-.088.05-.07.037c-.052.03-.093.051-.144.072l-.078.029-.156.047-.1.025a1.8 1.8 0 0 1-.69.003l-.083-.017-.266-.086-.072-.033-.244-.135a2 2 0 0 1-.273-.223l-6.598-6.6a1.799 1.799 0 1 1 2.545-2.546l3.527 3.528V12.8a1.8 1.8 0 0 1 1.8-1.8"}))))}},43899(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.015 6c-4.74 0-8.702 3.635-9.25 8.375a5 5 0 0 0-.53-.028c-2.878 0-5.22 2.39-5.22 5.327C1.015 24.939 6 25 6.545 25H25c2 0 6.015-.885 6.015-6.932 0-3.794-3.01-6.885-6.723-6.923C22.699 8.009 19.485 6 16.015 6"})))}},27136(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.2 21a1.8 1.8 0 0 1 1.8 1.8v6.4a1.8 1.8 0 0 1-1.8 1.8H2.8A1.8 1.8 0 0 1 1 29.2v-6.4a1.8 1.8 0 0 1 3.6 0v4.6h22.8v-4.6a1.8 1.8 0 0 1 1.8-1.8"}),o.createElement("path",{d:"M10.774 11.328a1.8 1.8 0 0 0-2.546 0 1.8 1.8 0 0 0 0 2.545l6.603 6.604c.083.082.173.155.28.227l.087.05.071.037c.052.03.093.051.143.072l.08.029.154.047.1.025c.234.047.475.047.691.003l.082-.017.216-.067q.018-.006.05-.02l.072-.032.2-.108.044-.027q.143-.095.273-.223l6.599-6.6a1.799 1.799 0 1 0-2.545-2.546L17.9 14.855V2.8a1.8 1.8 0 0 0-3.6 0v12.055z"}))))}},18861(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M1 5.2q.125.168.277.32L4.6 8.843V27.4h13.6a1.8 1.8 0 0 1 0 3.6H2.8A1.8 1.8 0 0 1 1 29.2Zm22.873 3.028 6.604 6.603c.082.083.155.173.227.28l.05.087.037.071c.03.052.051.093.072.143l.029.08.047.154.025.1c.047.234.047.475.003.691l-.017.082-.067.216q-.006.018-.02.05l-.032.072-.108.2-.027.044a2 2 0 0 1-.223.273l-4.428 4.428-2.546-2.546 1.356-1.356h-2.712l-3.6-3.6h6.312l-3.527-3.526a1.8 1.8 0 0 1 0-2.546 1.8 1.8 0 0 1 2.545 0M13.657 17.9H12.8a1.8 1.8 0 0 1-1.654-2.511zM18.2 1a1.8 1.8 0 0 1 0 3.6H8.842L5.52 1.277A3 3 0 0 0 5.2 1z"}),o.createElement("path",{d:"M2.338 4.459 27.54 29.662a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.005-2.126L4.46 2.338a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},77714(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M20 29.2a1.8 1.8 0 0 1-1.8 1.8H2.8A1.8 1.8 0 0 1 1 29.2V2.8A1.8 1.8 0 0 1 2.8 1h15.4a1.8 1.8 0 0 1 0 3.6H4.6v22.8h13.6a1.8 1.8 0 0 1 1.8 1.8"}),o.createElement("path",{d:"m30.967 16.437-.017.082-.067.216q-.006.018-.02.05l-.032.072-.108.2-.027.044a2 2 0 0 1-.223.273l-6.6 6.599a1.799 1.799 0 1 1-2.546-2.545l3.528-3.528H12.8a1.8 1.8 0 0 1 0-3.6h12.055l-3.527-3.526a1.8 1.8 0 0 1 0-2.546 1.8 1.8 0 0 1 2.545 0l6.604 6.603c.082.083.155.173.227.28l.05.087.037.071c.03.052.051.093.072.143l.029.08.047.154.025.1c.047.234.047.475.003.691"}))))}},56935(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.566 17.62a2.174 2.174 0 0 0-2.954-.001 1.894 1.894 0 0 0 0 2.79l10.603 10.015a2.3 2.3 0 0 0 .297.233l.093.052c.097.047.097.047.151.075.062.034.095.05.137.065.047.019.087.03.207.063.103.032.142.043.183.05.267.05.547.051.814 0 .042-.007.073-.015.162-.043l.09-.025c.086-.025.086-.025.142-.045a6.48 6.48 0 0 0 .3-.148c.174-.104.28-.185.38-.278l10.601-10.015a1.894 1.894 0 0 0 0-2.79 2.15 2.15 0 0 0-1.476-.577c-.554 0-1.083.206-1.477.578l-7.038 6.647V2.973c0-1.09-.936-1.973-2.089-1.973s-2.088.884-2.088 1.973v21.293z"})))}},61657(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"m24.818 14.38-7.037-6.646v21.293c0 1.09-.936 1.973-2.089 1.973s-2.088-.884-2.088-1.973V7.734L6.566 14.38a2.15 2.15 0 0 1-1.477.578 2.15 2.15 0 0 1-1.477-.578 1.894 1.894 0 0 1 0-2.79L14.214 1.578c.1-.093.206-.174.379-.278a7 7 0 0 1 .3-.148c.056-.02.056-.02.142-.045l.09-.025c.09-.028.12-.036.162-.043.268-.051.548-.05.815 0 .04.007.08.018.182.05.12.032.16.044.208.063.041.016.074.031.137.065a3.345 3.345 0 0 1 .244.127c.09.058.196.14.297.233l10.602 10.016a1.894 1.894 0 0 1 0 2.79 2.174 2.174 0 0 1-2.954-.002"})))}},69845(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M2.125 20c.58 0 1.057.439 1.118 1.002l.007.123V24.5a3 3 0 0 0 2.824 2.995l.176.005h5.261a2.7 2.7 0 0 0 .833 2.208c.508.482 1.06.909 1.644 1.276l-.094.01-.144.006H3a2 2 0 0 1-1.995-1.85L1 29v-7.875C1 20.504 1.504 20 2.125 20m4.868-5.998.007.123V19.5a3 3 0 0 0 2.824 2.995L10 22.5h11.5c.299 0 .58.075.827.207l-.052.06-.116.142-.114.163a2.7 2.7 0 0 0-.051 2.856q-.169.051-.35.066L21.5 26l-5.104.002a5 5 0 0 1-.252-.224l-.143-.127a2.763 2.763 0 0 0-3.864.349H6.75a2 2 0 0 1-1.995-1.85L4.75 24l.001-9.542c.848-.028 1.568-.353 2.08-.944.084.149.143.312.162.488M29 1a2 2 0 0 1 1.995 1.85L31 3v16c0 .693-.353 1.304-.889 1.663l-.54-.868-.104-.156a2.75 2.75 0 0 0-1.844-1.112l-.187-.02-.2-.007c-.799 0-1.562.342-2.087.951L23.806 21H10.5a2 2 0 0 1-1.995-1.85L8.5 19v-7.414l1.204-1.39.116-.142a2.707 2.707 0 0 0-.468-3.744l-.147-.11-.122-.08.045-.036.236-.176a5.3 5.3 0 0 1 1.867-.835c1.776-.405 3.627.16 4.825 1.464l.13.131a2.764 2.764 0 0 0 3.69.1 2.705 2.705 0 0 0 .358-3.758l-.119-.139-.227-.24a10.3 10.3 0 0 0-2.07-1.63z"}),o.createElement("path",{d:"M27.329 20.003c.398.03.759.246.968.582l2.171 3.502a1.21 1.21 0 0 1-.433 1.689 1.26 1.26 0 0 1-1.695-.42l-.195-.314c-.973 2.828-3.453 5.12-6.503 5.814a9.2 9.2 0 0 1-2.056.233 9 9 0 0 1-6.207-2.468 1.207 1.207 0 0 1-.013-1.743 1.263 1.263 0 0 1 1.745-.012c1.58 1.5 3.81 2.102 5.968 1.61a6.6 6.6 0 0 0 4.225-3.142 1.263 1.263 0 0 1-1.737.151 1.206 1.206 0 0 1-.159-1.736l2.877-3.318c.258-.3.645-.456 1.044-.428M19.01 3.886a1.205 1.205 0 0 1-.108 1.74 1.263 1.263 0 0 1-1.741-.103c-1.564-1.703-3.965-2.437-6.263-1.913A6.82 6.82 0 0 0 6.64 6.65a6.1 6.1 0 0 0-.784 1.924l.817-.943a1.26 1.26 0 0 1 1.738-.153c.538.433.611 1.214.16 1.737l-2.876 3.318c-.242.28-.594.43-1.012.429a1.25 1.25 0 0 1-.965-.53l-2.5-3.59a1.21 1.21 0 0 1 .341-1.71 1.26 1.26 0 0 1 1.714.33l.216.308a8.6 8.6 0 0 1 1.023-2.39 9.32 9.32 0 0 1 5.823-4.15c3.18-.725 6.503.292 8.675 2.656"}))))}},24960(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"m11.987 12.83.127.14c.928 1.111.886 2.804-.128 3.862L10.23 18.67h18.066C29.79 18.67 31 19.938 31 21.5l-.005.172c-.085 1.483-1.261 2.658-2.699 2.658H10.23l1.757 1.84c.51.532.792 1.25.792 2s-.283 1.468-.792 2a2.62 2.62 0 0 1-3.823 0L1.79 23.503a3 3 0 0 1-.334-.426l-.055-.094-.123-.235-.062-.139-.045-.12-.08-.266-.038-.164c-.072-.37-.071-.75-.001-1.115l.034-.147.06-.208.045-.133.06-.144.096-.192.065-.121c.137-.218.245-.357.367-.488l6.384-6.68a2.62 2.62 0 0 1 3.823 0M23.701 1.696l.135.132L30.22 8.51c.098.105.186.214.288.366l.079.122.065.12.067.131q.03.058.058.129l.031.077.045.133.06.208.034.147c.056.291.068.593.034.892l-.035.223-.038.164-.08.267-.045.12-.062.138-.123.235-.055.094q-.095.147-.211.287l-.123.14-4.462 4.667-6.526-.001c0-.681.234-1.336.659-1.85l.133-.15 1.757-1.84h-7.75a4.3 4.3 0 0 0-.756-1.32l-.192-.216a4.12 4.12 0 0 0-5.993 0l-1.468 1.536H3.704c-1.38 0-2.52-1.082-2.684-2.48l-.015-.177L1 10.5c0-1.505 1.123-2.735 2.539-2.825l.165-.005H21.77l-1.756-1.838c-.97-1.012-1.05-2.605-.243-3.713l.115-.148.127-.142a2.615 2.615 0 0 1 3.688-.132"})))}},55251(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M2.8 21a1.8 1.8 0 0 1 1.8 1.8v4.6l18.556-.001 3.324 3.324q.153.152.32.278L2.8 31A1.8 1.8 0 0 1 1 29.2v-6.4A1.8 1.8 0 0 1 2.8 21m26.4 0a1.8 1.8 0 0 1 1.8 1.8l.001 4a3 3 0 0 0-.278-.32l-3.324-3.324.001-.356a1.8 1.8 0 0 1 1.8-1.8m-14.9-2.457 2.366 2.366q-.268.09-.566.091a1.8 1.8 0 0 1-1.8-1.8zm2.137-17.51c.06.01.106.023.16.042l.068.02a1.2 1.2 0 0 1 .26.11c.103.055.103.055.176.099q.143.095.273.223l6.599 6.6a1.799 1.799 0 1 1-2.545 2.546L17.9 7.145v6.512l-3.6-3.6V7.145l-1.456 1.456-2.546-2.546 4.533-4.532c.083-.082.173-.155.28-.227.071-.042.071-.042.112-.063l.046-.024a1.1 1.1 0 0 1 .305-.125c.084-.028.13-.041.173-.048a1.8 1.8 0 0 1 .69-.003"}),o.createElement("path",{d:"M2.338 4.459 27.54 29.662a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.005-2.126L4.46 2.338a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},41563(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.2 21a1.8 1.8 0 0 1 1.8 1.8v6.4a1.8 1.8 0 0 1-1.8 1.8H2.8A1.8 1.8 0 0 1 1 29.2v-6.4a1.8 1.8 0 0 1 3.6 0v4.6h22.8v-4.6a1.8 1.8 0 0 1 1.8-1.8"}),o.createElement("path",{d:"M10.774 10.672a1.8 1.8 0 0 1-2.546 0 1.8 1.8 0 0 1 0-2.545l6.603-6.604c.083-.082.173-.155.28-.227.071-.042.071-.042.112-.063l.046-.024a1.1 1.1 0 0 1 .305-.125c.084-.028.13-.041.173-.048a1.8 1.8 0 0 1 .69-.003c.06.01.106.023.16.042l.068.02c.052.015.052.015.12.041.052.021.094.043.14.069.103.055.103.055.176.099q.143.095.273.223l6.599 6.6a1.799 1.799 0 1 1-2.545 2.546L17.9 7.145V19.2a1.8 1.8 0 0 1-3.6 0V7.145z"}))))}},79119(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M2.5 10h4.27l2.84 14.196a1 1 0 0 0 .98.804h10.82a1 1 0 0 0 .98-.804L25.23 10h4.27a1.5 1.5 0 0 0 0-3h-6.73l-3 15h-7.54l-3-15H2.5a1.5 1.5 0 0 0 0 3"})))}},59787(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M21.096 9H29.5a1.5 1.5 0 0 0 0-3h-9.596L4 21.52V7.5a1.5 1.5 0 0 0-3 0v18.618a1 1 0 0 0 1.696.718z"})))}},3165(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M10.904 9H2.5a1.5 1.5 0 0 1 0-3h9.596L28 21.52V7.5a1.5 1.5 0 0 1 3 0v18.618a1 1 0 0 1-1.696.718z"})))}},2125(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M8.055 13H2.448C1.648 13 1 12.328 1 11.5S1.648 10 2.448 10h7.014L16 18.607 22.538 10h7.014c.8 0 1.448.672 1.448 1.5s-.648 1.5-1.448 1.5h-5.607l-6.427 8.461a2 2 0 0 1-.324.336 1.887 1.887 0 0 1-2.712-.336z"})))}},91098(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m15.048 12.525-1.903 2.437L9.268 10H3.5a1.5 1.5 0 0 1 0-3h7.232zm3.807 4.873L23.232 23H29a1.5 1.5 0 0 1 0 3h-7.232l-4.816-6.165z"}),o.createElement("path",{d:"M22.732 10H28.5a1.5 1.5 0 0 0 0-3h-7.232l-12.5 16H3a1.5 1.5 0 0 0 0 3h7.232z"}))))}},12548(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M16.416 5.375c-2.057 0-4.04.61-5.736 1.765l-.625.425 14.379 14.379.425-.624a10.15 10.15 0 0 0 1.766-5.736c0-5.629-4.58-10.209-10.209-10.209M15.6 26.61c2.055 0 4.04-.611 5.736-1.766l.625-.425L7.58 10.04l-.425.624A10.15 10.15 0 0 0 5.39 16.4c0 5.629 4.58 10.209 10.209 10.209M16 1c8.27 0 15 6.729 15 15s-6.73 15-15 15C7.729 31 1 24.271 1 16S7.729 1 16 1"})))}},50792(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#FF4452",d:"M31 1v8.79a2.7 2.7 0 0 0-1.214-.29H15.214c-1.508 0-2.714 1.241-2.714 2.75v2.5c0 1.509 1.206 2.75 2.714 2.75 1.368 0 2.486-1.02 2.684-2.334l.02-.166h1.868v12l-.184.005c-1.43.087-2.548 1.292-2.548 2.745 0 .45.106.875.296 1.25H1V1zm-3.917 14c.124 1.394 1.278 2.5 2.703 2.5.438 0 .85-.105 1.215-.29L31 31h-3.35c.19-.375.296-.8.296-1.25 0-1.453-1.117-2.658-2.548-2.745L25.214 27V15Z"}),o.createElement("path",{fill:"#FFF",d:"M16.429 13.5v1.25c0 .69-.544 1.25-1.215 1.25-.67 0-1.214-.56-1.214-1.25v-2.5c0-.69.544-1.25 1.214-1.25h14.572c.67 0 1.214.56 1.214 1.25v2.5c0 .69-.544 1.25-1.214 1.25s-1.215-.56-1.215-1.25V13.5h-4.857v15h1.518c.67 0 1.214.56 1.214 1.25S25.903 31 25.232 31h-5.464c-.67 0-1.214-.56-1.214-1.25s.543-1.25 1.214-1.25h1.518v-15z"}))))}},74152(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FF4452",fillRule:"evenodd",d:"M1 1h30v30H1z"})))}},71906(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"nonzero"},o.createElement("path",{fill:"#FAAB7C",d:"m31 1-4.25 8.5H15.214c-1.453 0-2.624 1.15-2.71 2.583l-.004.167v2.5c0 1.509 1.206 2.75 2.714 2.75 1.368 0 2.486-1.02 2.684-2.334l.02-.166h1.868l-.001 8.43L16 31 1 1z"}),o.createElement("path",{fill:"#FFF",d:"M16.429 13.5v1.25c0 .69-.544 1.25-1.215 1.25-.67 0-1.214-.56-1.214-1.25v-2.5c0-.69.544-1.25 1.214-1.25h14.572c.67 0 1.214.56 1.214 1.25v2.5c0 .69-.544 1.25-1.214 1.25s-1.215-.56-1.215-1.25V13.5h-4.857v15h1.518c.67 0 1.214.56 1.214 1.25S25.903 31 25.232 31h-5.464c-.67 0-1.214-.56-1.214-1.25s.543-1.25 1.214-1.25h1.518v-15z"}))))}},47966(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FAAB7C",fillRule:"nonzero",d:"M16 31 1 1h30z"})))}},65078(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"nonzero"},o.createElement("path",{fill:"#FFCB75",d:"m16 1 4.25 8.5h-5.036c-1.453 0-2.624 1.15-2.71 2.583l-.004.167v2.5c0 1.509 1.206 2.75 2.714 2.75 1.368 0 2.486-1.02 2.684-2.334l.02-.166h1.868v12l-.184.005c-1.43.087-2.548 1.292-2.548 2.745 0 .45.106.875.296 1.25H1zm9.214 18.428L31 31h-3.35c.19-.375.296-.8.296-1.25 0-1.453-1.117-2.658-2.548-2.745L25.214 27z"}),o.createElement("path",{fill:"#FFF",d:"M16.429 13.5v1.25c0 .69-.544 1.25-1.215 1.25-.67 0-1.214-.56-1.214-1.25v-2.5c0-.69.544-1.25 1.214-1.25h14.572c.67 0 1.214.56 1.214 1.25v2.5c0 .69-.544 1.25-1.214 1.25s-1.215-.56-1.215-1.25V13.5h-4.857v15h1.518c.67 0 1.214.56 1.214 1.25S25.903 31 25.232 31h-5.464c-.67 0-1.214-.56-1.214-1.25s.543-1.25 1.214-1.25h1.518v-15z"}))))}},41994(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFCB75",fillRule:"nonzero",d:"m16 1 15 30H1z"})))}},318(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#232DC3",fillRule:"evenodd",d:"M31 16 16 31 1 16 16 1z"})))}},73923(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("path",{fill:"#8BC675",d:"M16 1c5.955 0 11.1 3.47 13.522 8.5H15.214c-1.508 0-2.714 1.241-2.714 2.75v2.5c0 1.509 1.206 2.75 2.714 2.75 1.368 0 2.486-1.02 2.684-2.334l.02-.166h1.868v12l-.184.005c-1.43.087-2.548 1.292-2.548 2.745 0 .426.096.831.268 1.193Q16.669 31 16 31C7.716 31 1 24.284 1 16S7.716 1 16 1m11.083 14c.124 1.394 1.278 2.5 2.703 2.5.418 0 .813-.095 1.165-.265a14.97 14.97 0 0 1-4.894 9.894q-.315-.103-.659-.124L25.214 27V15Z"}),o.createElement("path",{fill:"#FFF",d:"M16.429 13.5v1.25c0 .69-.544 1.25-1.215 1.25-.67 0-1.214-.56-1.214-1.25v-2.5c0-.69.544-1.25 1.214-1.25h14.572c.67 0 1.214.56 1.214 1.25v2.5c0 .69-.544 1.25-1.214 1.25s-1.215-.56-1.215-1.25V13.5h-4.857v15h1.518c.67 0 1.214.56 1.214 1.25S25.903 31 25.232 31h-5.464c-.67 0-1.214-.56-1.214-1.25s.543-1.25 1.214-1.25h1.518v-15z"}))))}},17305(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("circle",{cx:16,cy:16,r:15,fill:"#8BC675",fillRule:"evenodd"})))}},94293(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M5.2 12a4.2 4.2 0 1 1 0 8.4 4.2 4.2 0 0 1 0-8.4M16 12a4.2 4.2 0 1 1 0 8.4 4.2 4.2 0 0 1 0-8.4m10.8 0a4.2 4.2 0 1 1 0 8.4 4.2 4.2 0 0 1 0-8.4"})))}},38010(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M14.93 24.882q.63 0 1.2.244.57.245.976.65.405.407.65.976.244.57.244 1.2 0 .65-.244 1.209-.245.558-.65.965a2.9 2.9 0 0 1-.976.64q-.57.234-1.2.234-.65 0-1.219-.234a3.1 3.1 0 0 1-.985-.64 2.9 2.9 0 0 1-.65-.965 3.1 3.1 0 0 1-.235-1.21q0-.63.234-1.199t.65-.976q.417-.405.986-.65.57-.244 1.22-.244M15.786 1q1.767 0 3.221.488t2.49 1.392a6.2 6.2 0 0 1 1.606 2.185q.569 1.28.569 2.866 0 1.544-.447 2.673a7.4 7.4 0 0 1-1.128 1.961 9 9 0 0 1-1.474 1.443l-1.504 1.149q-.711.538-1.23 1.056-.444.445-.582.986l-.038.183-.467 2.968h-3.435l-.346-3.313a1 1 0 0 1-.018-.122L13 16.864v-.173q0-.894.447-1.555t1.118-1.24 1.443-1.128 1.443-1.189 1.118-1.453.447-1.91q0-.732-.274-1.312a3 3 0 0 0-.762-.995 3.4 3.4 0 0 0-1.169-.64 4.7 4.7 0 0 0-1.474-.224q-1.158 0-1.961.254-.803.255-1.362.569l-.42.242q-.293.174-.525.327-.386.255-.691.254-.65 0-.98-.482l-.077-.128L8 3.988q.69-.61 1.514-1.159a10.9 10.9 0 0 1 3.852-1.595A12 12 0 0 1 15.785 1"})))}},25396(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M13.975 13.272v-3.27a1 1 0 0 0-1-1H2a1 1 0 0 1 0-2l10.975.007a3 3 0 0 1 2.998 3l.002 3.229h3.002v-5.15c0-1.217.918-2.087 2.175-2.087h1.58C23.095 5.369 23.83 5 24.938 5h3.545c1.69 0 2.502.802 2.502 2.001 0 1.263-1.139 2.001-2.502 2.001h-3.502c-.917 0-1.76-.351-2.194-1H21.28a.3.3 0 0 0-.3.3v5c.993.182 1.75 1.19 1.75 2.038v2.293l6.583-2.747A1.218 1.218 0 0 1 31 16.01v8.324a1.217 1.217 0 0 1-1.688 1.125l-6.584-2.737v2.957c0 1.121-.947 2.068-2.068 2.068H3.106c-1.329 0-2.09-.753-2.09-2.068V15.34c0-1.4 1.161-2.213 2.132-2.067z"})))}},63381(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M4.515 16c.827 0 1.5.673 1.5 1.5V31h-.5a4.505 4.505 0 0 1-4.5-4.5V16Zm6-15c2.48 0 4.5 2.02 4.5 4.5V9h1V4.5a.5.5 0 0 1 .5-.5h12c1.378 0 2.5 1.122 2.5 2.5v5c0 1.378-1.122 2.5-2.5 2.5h-12a.5.5 0 0 1-.5-.5V10h-1v5.5a.5.5 0 0 1-.5.5h-2.5v14.5a.5.5 0 0 1-.5.5h-4.5V17.5c0-1.378-1.122-2.5-2.5-2.5h-3.5V5.5c0-2.48 2.019-4.5 4.5-4.5Zm-2.5 2a4.505 4.505 0 0 0-4.5 4.5c0 2.481 2.019 4.5 4.5 4.5s4.5-2.019 4.5-4.5-2.02-4.5-4.5-4.5"}),o.createElement("path",{fillOpacity:.4,d:"M8.015 4c-1.93 0-3.5 1.57-3.5 3.5s1.57 3.5 3.5 3.5 3.5-1.57 3.5-3.5S9.945 4 8.015 4"}))))}},24199(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12.807 1c.813 0 1.475.329 1.475 1.075l-.001 8.165A12.1 12.1 0 0 0 10.416 14H2.475C1.662 14 1 13.392 1 12.646V2.076C1 1.328 1.662 1 2.475 1Zm7.157 2.248c.347-.136.744-.1 1.06.095.314.197.502.525.502.876v4.324Q21.02 8.501 20.5 8.5c-1.694 0-3.307.353-4.77.988V5.433Z"}),o.createElement("path",{d:"M20.5 10C26.29 10 31 14.71 31 20.5S26.29 31 20.5 31C14.709 31 10 26.29 10 20.5S14.709 10 20.5 10m.137 5.318c-.682 0-1.234.553-1.234 1.235v2.985h-2.987a1.235 1.235 0 0 0 0 2.47h2.987v2.985a1.234 1.234 0 1 0 2.468 0v-2.986h2.986a1.235 1.235 0 0 0 0-2.469H21.87v-2.985c0-.682-.552-1.235-1.234-1.235"}))))}},66690(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m1.964 6.209 18.172 18.17c-.37.616-1.074 1.033-1.88 1.033h-15.1C1.966 25.412 1 24.505 1 23.39V7.605c0-.702.383-1.156.964-1.396m26.752 3.148a1.71 1.71 0 0 1 1.549.142c.46.294.735.783.735 1.308v9.666c0 .527-.275 1.016-.734 1.308a1.71 1.71 0 0 1-1.55.144l-4.923-2.375-1.264-1.264V12.62ZM18.256 6c1.189 0 2.156.49 2.156 1.605l-.001 8.563L10.241 6Z"}),o.createElement("path",{d:"M2.338 4.459 27.54 29.662a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.005-2.126L4.46 2.338a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},12002(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M12.765 14a2.95 2.95 0 0 0 2.434 1.72l.34.013.07.01.099.02a.83.83 0 0 1 .56.732l.003.1.008.162.016.159.02.132.027.13.034.136.063.19c.337.927 1.05 1.602 1.93 1.87v9.855c0 .976-.866 1.771-1.93 1.771H2.93C1.865 31 1 30.205 1 29.23V15.405C1 14.43 1.865 14 2.929 14Zm14.271 2.984q.075.035.148.08c.412.258.658.686.658 1.146v8.465c0 .461-.246.89-.656 1.145a1.55 1.55 0 0 1-1.387.126l-5.536-2.613v-5.536l2.818-1.454c.32.158.676.26 1.051.292l.19.01h.127l.126-.006.135-.011.137-.019.198-.042a3 3 0 0 0 1.919-1.442Z"}),o.createElement("path",{d:"M15.452 11.326a5.227 5.227 0 0 1 5.222 5.222c0 .712-.513 1.305-1.19 1.428l-.137.019-.125.005-.129-.006-.135-.018a1.46 1.46 0 0 1-1.126-1.025l-.034-.137-.021-.132-.007-.134-.005-.147-.016-.165a2.324 2.324 0 0 0-1.999-1.987l-.157-.015-.266-.01-.137-.018a1.453 1.453 0 0 1 .262-2.88m.855-5.163c5.256 0 9.53 4.275 9.53 9.53 0 .713-.513 1.306-1.189 1.43l-.137.018-.126.005-.125-.005-.137-.019a1.45 1.45 0 0 1-1.19-1.428 6.635 6.635 0 0 0-6.626-6.627 1.452 1.452 0 0 1 0-2.904M17.16 1C24.793 1 31 7.207 31 14.84c0 .712-.514 1.304-1.19 1.428l-.138.018-.125.006-.125-.006-.138-.018a1.45 1.45 0 0 1-1.19-1.429c0-6.029-4.905-10.934-10.934-10.934a1.452 1.452 0 0 1 0-2.905"}))))}},14074(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M13.994 23.174 2.999 25.29V23.5A1 1 0 1 0 1 23.5v6a1 1 0 1 0 1.999 0v-2.174l12.183-2.344a1 1 0 0 0 .81-.982l.5-5h1.5a1 1 0 0 0 0-2h-4.998a1 1 0 0 0 0 2h1.5zM26.002 8.946V15.5a.5.5 0 0 1-.41.492l-.09.008H9.51c-1.452 0-1.508-.925-1.51-1.885V14h13.505a.5.5 0 0 0 .491-.41l.008-.09v-3.378zM30.5 2a.5.5 0 0 1 .494.58l-.025.093-.787 2.102-.713 1.9a.5.5 0 0 1-.24.27l-.087.035-3.14.923-4.638 1.365a.5.5 0 0 0-.352.398l-.007.082V13H6.512a.5.5 0 0 1-.492-.41l-.008-.09v-6c0-2.206 2.103-4.373 4.304-4.495L10.51 2zm-2.998 7a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 .5-.5"})))}},11813(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M20.412 7.605c0-1.114-.967-1.605-2.156-1.605h-15.1C1.966 6 1 6.49 1 7.605V23.39c0 1.115.967 2.022 2.155 2.022h15.101c1.189 0 2.156-.907 2.156-2.022zm8.304 1.752-6.187 3.262v6.322l6.187 2.984a1.71 1.71 0 0 0 1.55-.144c.46-.292.734-.781.734-1.308v-9.666c0-.525-.275-1.014-.735-1.308a1.71 1.71 0 0 0-1.549-.142"})))}},33622(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.505 11c.273 0 .495.225.495.494v19.012a.5.5 0 0 1-.502.494H8.502A.493.493 0 0 1 8 30.51v-3.02c0-.27.225-.49.494-.49h19.012a.5.5 0 0 0 .494-.496V11.496c0-.274.216-.496.495-.496zm-4.003-5c.275 0 .498.225.497.494l-.02 19.012a.5.5 0 0 1-.501.494H4.5A.493.493 0 0 1 4 25.51v-3.02c0-.27.225-.49.496-.49h19.07a.5.5 0 0 0 .496-.496V6.496c0-.274.23-.496.499-.496z"}),o.createElement("path",{d:"M22.499 1a.5.5 0 0 1 .5.494v19.012a.494.494 0 0 1-.5.494H1.5A.5.5 0 0 1 1 20.506V1.494C1 1.221 1.217 1 1.5 1zm-6.996 14H8.544a.494.494 0 0 0-.497.505v.99c0 .279.23.505.497.505h6.959a.494.494 0 0 0 .497-.505v-.99a.505.505 0 0 0-.497-.505M6 15H4.047v2H6zm11.493-5H8.554a.5.5 0 0 0-.507.505v.99c0 .279.227.505.507.505h8.939c.28 0 .507-.214.507-.505v-.99a.506.506 0 0 0-.507-.505M6 10H4.047v2H6zm13.502-5H8.545a.494.494 0 0 0-.498.505v.99c0 .279.228.505.498.505h10.957A.494.494 0 0 0 20 6.495v-.99A.505.505 0 0 0 19.502 5M6 5H4.047v2H6z"}))))}},37575(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m5 1 22 15-.753.513a2.5 2.5 0 0 0-1.746.988A2.5 2.5 0 0 0 22.5 16.5H19l-.164.005A2.5 2.5 0 0 0 16.5 19v4.159L5 31z"}),o.createElement("path",{d:"M22.5 18H19a1 1 0 0 0-.993.883L18 19v11a1 1 0 0 0 .883.993L19 31h3.5l.117-.007a1 1 0 0 0 .876-.876L23.5 30V19a1 1 0 0 0-.883-.993zm7.5 0h-3.5a1 1 0 0 0-.993.883L25.5 19v11a1 1 0 0 0 .883.993L26.5 31H30l.117-.007a1 1 0 0 0 .876-.876L31 30V19a1 1 0 0 0-.883-.993z"}))))}},25527(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m3 1 18.72 12.763a9 9 0 0 0-.31-.016h-.675a9.15 9.15 0 0 0-6.537 3.09l-.422.513-.347.484-.312.496-.195.354-.259-.021a2.7 2.7 0 0 0-1.607.494 2.786 2.786 0 0 0-.683 3.872l1.079 1.548L3 30.34z"}),o.createElement("path",{d:"M20.786 15.124a7.77 7.77 0 0 0-5.558 2.629l-.387.472a8.2 8.2 0 0 0-1.17 2.146l-.027.074-.194-.165a1.4 1.4 0 0 0-1.602.005 1.41 1.41 0 0 0-.345 1.955l1.929 2.769.16.177.152.124.167.1.15.068.284.074.156.017.371-.038.271-.093.245-.146.17-.15 2.48-2.768a1.406 1.406 0 0 0-.104-1.98l-.203-.154a1.4 1.4 0 0 0-.69-.208l-.05.002.018-.024q.147-.202.314-.389a4.97 4.97 0 0 1 3.566-1.689 5.04 5.04 0 0 1 3.656 1.368c1 .934 1.577 2.2 1.627 3.573a5.1 5.1 0 0 1-1.36 3.685 5.05 5.05 0 0 1-3.548 1.633 1.404 1.404 0 0 0-1.35 1.455c.029.76.652 1.354 1.422 1.354a7.86 7.86 0 0 0 5.532-2.534 7.92 7.92 0 0 0 2.106-5.696 7.91 7.91 0 0 0-2.517-5.526 7.84 7.84 0 0 0-5.097-2.12z"}))))}},13959(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"M18 26v2h2a2 2 0 0 1 2 2v1H8v-1a2 2 0 0 1 2-2h2v-2zM9.286 1C10.232 1 11 1.895 11 3v1h2.5A1.5 1.5 0 0 1 15 5.5V14a3 3 0 0 0 3 3h9.5a1.5 1.5 0 0 1 1.5 1.5v5a1.5 1.5 0 0 1-1.5 1.5h-25A1.5 1.5 0 0 1 1 23.5v-18A1.5 1.5 0 0 1 2.5 4H5V3c0-1.105.768-2 1.714-2zM13.5 18a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M6 16a3 3 0 1 0 0 6 3 3 0 0 0 0-6m7.5 3.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-7.5-2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M29.5 1a1.5 1.5 0 0 1 1.493 1.356L31 2.5v11a1.5 1.5 0 0 1-1.356 1.493L29.5 15h-11a1.5 1.5 0 0 1-1.493-1.356L17 13.5v-11a1.5 1.5 0 0 1 1.356-1.493L18.5 1zM24 3.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9M12.5 6h-9a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5M9.125 2.5h-2.25c-.207 0-.375.224-.375.5v.5h3V3c0-.276-.168-.5-.375-.5"}),o.createElement("path",{fillOpacity:.4,d:"M24 11.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7"}))))}},42460(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M15.657 1a.77.77 0 0 1 .418.123l.088.067 4.682 4.095L17.32 14.5h4.15l.199-.008c.329-.025.644-.114.93-.268L22.6 15.5H22l-.164.005a2.5 2.5 0 0 0-2.33 2.33L19.5 18v4l.009.211q.026.315.126.602l.073.188L18 23l-.164.005a2.5 2.5 0 0 0-2.33 2.33l-.006.165V28H1.9a.9.9 0 0 1-.893-.787L1 27.1V1.9a.9.9 0 0 1 .787-.893L1.9 1z"}),o.createElement("path",{d:"M30.5 13h-1.955a.9.9 0 0 1-.541-.155.8.8 0 0 1-.295-.396l-.642-1.918h-4.134l-.642 1.918a.85.85 0 0 1-.291.381.83.83 0 0 1-.53.17H19.5l4.209-11h2.582zm-6.985-4.205h2.97l-1-3.013-.228-.675q-.13-.39-.257-.842-.12.46-.246.853-.127.393-.24.68zM22 24.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1zm7.5 0a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1zM26 17a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z"}))))}},77047(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M1 5.239 18.76 23H18l-.164.005a2.5 2.5 0 0 0-2.33 2.33l-.006.165V28H1.9a.9.9 0 0 1-.893-.787L1 27.1zM15.657 1a.77.77 0 0 1 .418.123l.088.067 6.176 5.403c.138.122.227.29.253.47l.008.108V15.5H22l-.164.005a2.5 2.5 0 0 0-1.477.61L5.244 1z"}),o.createElement("path",{fillOpacity:.4,d:"M20.26 24.5 23 27.24v2.26a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1zm4.24 4.24 1.76 1.76h-.76a1 1 0 0 1-1-1zm5-4.24a1 1 0 0 1 1 1v.754L28.746 24.5zM26 17a1 1 0 0 1 1 1v4c0 .213-.067.41-.18.573l-5.393-5.393A1 1 0 0 1 22 17z"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},14219(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M15.657 1c.187 0 .366.068.506.19l6.176 5.403c.165.146.261.358.261.578V15.5H22l-.164.005A2.5 2.5 0 0 0 19.5 18v4l.009.211c.023.279.092.545.2.79L18 23l-.164.005A2.5 2.5 0 0 0 15.5 25.5V28H1.9a.9.9 0 0 1-.893-.787L1 27.1V1.9a.9.9 0 0 1 .9-.9Z"}),o.createElement("path",{d:"M22 24.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1zm7.5 0a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1zM26 17a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z"}))))}},72547(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m22.721 10.82.073.051v1.756c-.608.447-1 1.103-1 1.873 0 1.453 1.396 2.5 3 2.5s3-1.047 3-2.5c0-.77-.391-1.426-.999-1.873V10.87l.105-.073a3.5 3.5 0 0 0 1.073-1.33 3 3 0 0 1 1.382 2.268l1.247 14.089A2 2 0 0 1 28.61 28H3a2 2 0 0 1-1.99-2.195l1.466-14.971a2 2 0 0 1 1.318-1.717V10c0 1.642 1.268 3 2.867 3h10.267c1.599 0 2.866-1.358 2.866-3V9h1.646c.218.73.669 1.37 1.281 1.82M18.12 15H5.469l-.084.006a.49.49 0 0 0-.398.33l-.015.076-1.065 8.578-.005.107c.006.424.332.79.783.881l.115.017.102.005h13.785l.117-.006c.497-.053.883-.44.883-.91v-.047l-1.07-8.625-.015-.076A.495.495 0 0 0 18.12 15m8.39 5h-3.564a1.883 1.883 0 0 0-1.867 2.132l.017.132A2 2 0 0 0 23.08 24h3.564a1.883 1.883 0 0 0 1.867-2.132l-.017-.132A2 2 0 0 0 26.51 20"}),o.createElement("path",{d:"M16.928 1c1.03 0 1.866.895 1.866 2v7c0 1.105-.835 2-1.866 2H6.66c-1.03 0-1.867-.895-1.867-2V3c0-1.105.836-2 1.867-2zm-.634 1.5h-9a1 1 0 0 0-1 1v5.993c.001.552.448 1 1 1l9 .006a1 1 0 0 0 .994-.882l.006-.117v-6a1 1 0 0 0-1-1"}),o.createElement("path",{fillOpacity:.4,d:"M15.794 3.5h-8a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5V4a.5.5 0 0 0-.5-.5M5.864 16.433l-.887 6.954a.5.5 0 0 0 .494.563l12.647.048a.5.5 0 0 0 .498-.563l-.889-6.999a.5.5 0 0 0-.496-.437L6.36 15.996a.5.5 0 0 0-.496.437M26.787 30.993a2 2 0 0 1-.166.007H4.968a2 2 0 0 1-2-2h25.653a2 2 0 0 1-1.834 1.993M26.51 21a1 1 0 0 1 .97.756l.021.112.018.132a.883.883 0 0 1-.765.993l-.11.007h-3.565a1 1 0 0 1-.97-.756l-.021-.112L22.07 22a.883.883 0 0 1 .765-.993l.11-.007zM25.796 11.355V13.2c.597.26.998.744.998 1.299 0 .828-.895 1.5-2 1.5s-2-.672-2-1.5c0-.555.402-1.04 1-1.299v-1.846a3.5 3.5 0 0 0 2.002 0M24.794 5.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5"}))))}},82006(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M28 1a3 3 0 0 1 3 3v24c0 1.654-1.346 3-3 3H4c-1.654 0-3-1.346-3-3V4a3 3 0 0 1 3-3ZM14.64 6H10v20h12.052v-3.706H14.64z"})))}},99938(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"m22.834 8 .295.003q1.373.03 2.17.362l.089.04.187.065a8.17 8.17 0 0 1 5.407 7.144l.014.28.004.26c0 4.496-3.657 8.153-8.154 8.153-2.095 0-3.957-.896-5.564-2.344l-.24-.22-.835-.823 1.897-2.803.39-.312.768.839.602.587c.947.832 1.96 1.321 2.982 1.321a4.405 4.405 0 0 0 4.399-4.398c0-2.353-1.86-4.282-4.156-4.394l-.202-.006-.203.008-.13.016-.095.018-.12.029-.14.043-.143.055-.154.07-.172.093-.146.088-.147.098-.222.166-.167.138-.165.146-.168.16-.167.168c-.425.44-.863.984-1.343 1.657l-.208.297-.315.461-.312.473-.63.979-.78 1.219-.317.487-.323.485-.33.479-.33.462c-1.735 2.376-3.409 3.782-5.397 4.157l-.262.043a6 6 0 0 1-.312.035l-.28.018-.255.005q-.567 0-1.133-.079l-.381-.062-.339-.071-.12-.029L6.93 24l-.29-.088-.217-.074-.35-.134-.296-.128-.3-.145-.207-.108a8 8 0 0 1-.637-.385l-.18-.125-.185-.134-.154-.119-.235-.192-.272-.242-.223-.215-.266-.28-.237-.273-.215-.27-.18-.245-.138-.201a8 8 0 0 1-.616-1.113l-.108-.247-.071-.177-.09-.242-.11-.33a8 8 0 0 1-.096-.343l-.045-.183-.064-.302-.045-.252-.034-.234a8 8 0 0 1-.061-.71L1 16.146l.002-.23.014-.4c.037-.674.134-1.234.302-1.692l.092-.224.058-.171a8.17 8.17 0 0 1 7.145-5.411l.28-.014.26-.004c2.373 0 4.263 1.249 5.702 3.18l.17.236.381.538-.41.585-.041.049-.103.111-.219.207-.192.17-.368.31-1.452 1.18-.573-.849c-.815-1.207-1.806-1.962-2.894-1.962-2.283 0-4.177 1.754-4.38 3.979l-.014.21-.005.19.003.183.015.241.02.172.03.192.034.174.044.184q.05.184.11.355l.063.164.068.158.072.153.084.16.126.214.152.224q.106.15.22.284l.114.129.094.1.145.142.152.135.2.162.14.102.142.095.161.099.163.09.215.106.11.05.227.089c.475.172.978.261 1.495.261l.195-.01.175-.028.173-.043.086-.027.07-.024c.805-.3 1.676-1.108 2.683-2.463l.18-.245.304-.431.305-.449.15-.226.313-.478 1.252-1.959.491-.748.336-.495.337-.48c.805-1.123 1.563-2.003 2.371-2.704l.272-.227.328-.252.166-.117.239-.158.258-.156.241-.134.265-.131.326-.143.289-.107.213-.07.181-.05.26-.064.298-.057.341-.045.296-.023.155-.006z"})))}},42021(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M15.15 1.4a2 2 0 0 1 1.7 0l12 5.636A2 2 0 0 1 30 8.846V19.5h-2.71v-7.503a1 1 0 0 0-.053-.323l-.042-.102a1 1 0 0 0-1.33-.48l-7.935 3.727a1 1 0 0 0-.575.906v10.218a1 1 0 0 0 .67.944l-.001.154-.004.15q-.014.21-.06.352a.5.5 0 0 1-.094.186.2.2 0 0 1-.089.06.7.7 0 0 1-.269.041.7.7 0 0 1-.269-.04.2.2 0 0 1-.084-.057.6.6 0 0 1-.099-.197 1.5 1.5 0 0 1-.06-.37l-.005-.17.001-7.496h-2.347v-3.775a1 1 0 0 0-.463-.844l-.112-.062-7.935-3.727a1 1 0 0 0-1.425.905L4.709 19.5H4.5v6.099l-1.35-.635a2 2 0 0 1-1.143-1.646L2 23.153V8.847a2 2 0 0 1 1.15-1.81ZM9.865 25.271l1.761.827v.942l.005.26q.009.258.037.51l-1.803-.002zm14.234-.897v2.82l-.729.343.01-.105.01-.35-.001-2.401.654-.307zM16.425 4.046a1 1 0 0 0-.85 0L7.367 7.901a.51.51 0 0 0 0 .924l8.208 3.855a1 1 0 0 0 .85 0l8.208-3.855a.51.51 0 0 0 0-.924Z"}),o.createElement("path",{d:"M19.524 21v6.041l-.005.211a3 3 0 0 1-.131.752 2 2 0 0 1-.396.717 1.7 1.7 0 0 1-.634.451q-.375.158-.85.158t-.85-.157a1.7 1.7 0 0 1-.634-.455 2 2 0 0 1-.396-.721 3 3 0 0 1-.114-.55l-.017-.202-.005-.211V21h-2.366v6.041l.008.308q.013.236.046.461l.021.13a4.4 4.4 0 0 0 .334 1.078l.11.222q.263.487.65.874.567.567 1.379.882.697.27 1.546.309l.288.006.286-.006a4.9 4.9 0 0 0 1.541-.309 3.9 3.9 0 0 0 1.379-.882q.567-.567.872-1.351.203-.523.27-1.114l.026-.3.008-.308V21zm-7.378 8.309h-3.78V21H6v10.199h6.146zM30.836 21H22.73v1.876h2.87v8.323h2.366v-8.323h2.87z"}))))}},48135(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{d:"m15.15 1.4-12 5.636A2 2 0 0 0 2 8.846v14.307a2 2 0 0 0 1.15 1.81l12 5.638a2 2 0 0 0 1.7 0l12-5.637a2 2 0 0 0 1.15-1.81V8.846a2 2 0 0 0-1.15-1.81l-12-5.638a2 2 0 0 0-1.7 0m-1.93 25.448L5.285 23.12a1 1 0 0 1-.575-.905V11.997a1 1 0 0 1 1.425-.905l7.935 3.727a1 1 0 0 1 .575.906v10.218a1 1 0 0 1-1.425.905M7.367 7.901l8.208-3.855a1 1 0 0 1 .85 0l8.208 3.855a.51.51 0 0 1 0 .924l-8.208 3.855a1 1 0 0 1-.85 0L7.367 8.825a.51.51 0 0 1 0-.924m19.348 15.22-7.935 3.727a1 1 0 0 1-1.425-.905V15.725a1 1 0 0 1 .575-.906l7.935-3.727a1 1 0 0 1 1.425.905v10.218a1 1 0 0 1-.575.905"}),o.createElement("path",{fillOpacity:.4,d:"M23.686 13.773a8.003 8.003 0 0 1-4.832 9.703v-7.434zm-15.372 0 4.831 2.269v7.433A8 8 0 0 1 8.22 14.13zM16 8c1.564 0 3.023.449 4.255 1.224L16 11.222l-4.255-1.998A7.96 7.96 0 0 1 16 8"}))))}},90553(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.505 11c.273 0 .495.225.495.494v19.012a.5.5 0 0 1-.502.494H8.502A.493.493 0 0 1 8 30.51v-3.02c0-.27.225-.49.494-.49h19.012a.5.5 0 0 0 .494-.496V11.496c0-.274.216-.496.495-.496zm-4.003-5c.275 0 .498.225.497.494l-.02 19.012a.5.5 0 0 1-.501.494H4.5A.493.493 0 0 1 4 25.51v-3.02c0-.27.225-.49.496-.49h19.07a.5.5 0 0 0 .496-.496V6.496c0-.274.23-.496.499-.496z"}),o.createElement("path",{d:"M22.5 1a.5.5 0 0 1 .5.494v19.012a.494.494 0 0 1-.5.494h-21a.5.5 0 0 1-.5-.494V1.494C1 1.221 1.218 1 1.5 1zm-9.61 5H5.11l-.12.003c-.513.03-.923.25-.982.705L4 6.827v8.131l.007.114c.056.484.467.87.983.922l.12.006h7.78l.12-.006c.516-.053.927-.438.983-.922l.007-.114V6.827l-.007-.11c-.055-.459-.462-.681-.973-.713zm6.186 1.803a.88.88 0 0 0-.684-.11l-.114.036-3.187 1.68v3.258l3.187 1.537.107.035a.88.88 0 0 0 .692-.11.8.8 0 0 0 .369-.558l.009-.115v-4.98l-.009-.114a.8.8 0 0 0-.37-.56"}))))}},40123(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M17.02 1c1.052 0 1.913.812 1.99 1.843l.005.149-.001 5.295a2.95 2.95 0 0 0-.23 1.623 2.96 2.96 0 0 0-1.769-.285V8.51c0-.843-.67-1.509-1.498-1.509H4.513c-.777 0-1.423.602-1.492 1.371l-.006.138V22.49c0 .796.598 1.434 1.362 1.503l.136.006h11.004c.777 0 1.423-.602 1.492-1.371l.006-.138v-1.705a2.94 2.94 0 0 0 1.769-.277 2.95 2.95 0 0 0 .228 1.623l.003 6.876c0 1.044-.814 1.91-1.846 1.987l-.15.005H3.01a1.993 1.993 0 0 1-1.99-1.843l-.005-.149V2.992c0-1.044.814-1.91 1.846-1.987L3.011 1zm-7.005 24.5a2.001 2.001 0 0 0 0 4 2.001 2.001 0 0 0 0-4M13.111 3H6.89C6.398 3 6 3.448 6 4s.397 1 .889 1h6.222c.49 0 .889-.448.889-1 0-.551-.398-1-.889-1"}),o.createElement("path",{d:"m25.962 5 .139.007c.324.03.64.17.888.418 5.396 5.397 5.396 14.175 0 19.572a1.45 1.45 0 0 1-.903.42l-.141.005a1.45 1.45 0 0 1-.683-.18l-.125-.076-.11-.084-.092-.085-.085-.092-.084-.11-.077-.125a1.45 1.45 0 0 1 .246-1.727c4.263-4.263 4.263-11.2 0-15.464A1.452 1.452 0 0 1 25.962 5m-4.255 3.047.14.006c.323.031.639.17.887.419 3.716 3.716 3.716 9.762 0 13.479a1.45 1.45 0 0 1-.902.42l-.142.005a1.45 1.45 0 0 1-.683-.18l-.125-.076-.11-.084-.092-.085-.085-.092-.084-.11-.077-.125a1.45 1.45 0 0 1 .246-1.727 6.635 6.635 0 0 0 0-9.371 1.452 1.452 0 0 1 1.027-2.48m-4.255 3.046a1.453 1.453 0 0 0-1.273 2.152l.077.125.084.11.182.195.1.122.106.149c.497.762.5 1.755.008 2.52l-.105.149-.105.128-.1.107-.09.1-.08.108-.072.12-.065.137c-.171.409-.15.865.052 1.246l.085.139.082.108.087.096.093.085.11.084.124.077c.212.116.448.176.683.179l.142-.005c.329-.028.65-.168.902-.42a5.227 5.227 0 0 0 0-7.386 1.45 1.45 0 0 0-.888-.418z"}),o.createElement("path",{fillOpacity:.2,d:"m14.516 8.5.117.007a1 1 0 0 1 .883.993v.817a2.953 2.953 0 0 0-.493 3.905l.126.169.093.11.176.189.087.124.01.019.001.748-.01.018-.068.107-.041.046-.174.191-.1.124-.08.109-.072.11-.073.12-.067.126-.065.136-.077.2c-.327.936-.2 1.91.33 2.682l.125.166.088.105.087.096.092.092.092.084.011.01.001 1.388a1 1 0 0 1-.883.994l-.117.006h-9a1 1 0 0 1-1-1L4.513 9.5a1 1 0 0 1 1-1z"}))))}},73527(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M2.5 22A1.5 1.5 0 0 1 4 23.5V28h4.5a1.5 1.5 0 0 1 0 3H2.993C1.892 31 1 30.102 1 29.008V23.5A1.5 1.5 0 0 1 2.5 22M31 23.5v5.508c0 1.1-.898 1.992-1.992 1.992H23.5a1.5 1.5 0 0 1 0-3H28v-4.5a1.5 1.5 0 1 1 3 0m-21-21A1.5 1.5 0 0 1 8.5 4H4v4.5a1.5 1.5 0 0 1-3 0V2.992C1 1.892 1.898 1 2.992 1H8.5A1.5 1.5 0 0 1 10 2.5m21 .492V8.5a1.5 1.5 0 0 1-3 0V4h-4.5a1.5 1.5 0 0 1 0-3h5.508C30.108 1 31 1.898 31 2.992"}),o.createElement("path",{d:"M6.788 20.838v-4.686q0-.192-.012-.411a19 19 0 0 0-.03-.447l4.122 5.208q.15.192.312.264t.396.072h1.056v-8.742h-1.788v4.626q0 .21.012.447t.036.489l-4.152-5.25a2 2 0 0 0-.15-.162.54.54 0 0 0-.3-.138 2 2 0 0 0-.222-.012H5v8.742zm9.324 0v-3.402H19.1V15.87h-2.988v-2.214H19.7v-1.56h-5.628v8.742zm8.4.096q1.086 0 1.881-.351t1.323-1.041l-.804-.846a.39.39 0 0 0-.456-.081.7.7 0 0 0-.156.099q-.18.156-.357.261a2 2 0 0 1-.795.264q-.228.027-.504.027-.48 0-.9-.186a2.1 2.1 0 0 1-.735-.543 2.6 2.6 0 0 1-.498-.879 3.6 3.6 0 0 1-.183-1.194q0-.642.183-1.158t.51-.879a2.2 2.2 0 0 1 .783-.558q.456-.195 1.008-.195.318 0 .555.048t.414.117.306.15l.237.15q.108.069.204.117a.45.45 0 0 0 .204.048.4.4 0 0 0 .252-.069 1 1 0 0 0 .156-.153l.684-.918a3.4 3.4 0 0 0-.564-.471 4 4 0 0 0-.696-.366 4.5 4.5 0 0 0-.813-.24 4.7 4.7 0 0 0-.927-.087 5 5 0 0 0-1.854.33q-.84.33-1.443.924a4.2 4.2 0 0 0-.939 1.413 4.7 4.7 0 0 0-.336 1.797q0 .96.294 1.779t.843 1.416 1.338.936 1.785.339"}))))}},79012(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M8.409 8.246a.85.85 0 0 1 1.2.003l14.22 14.22a.847.847 0 1 1-1.198 1.197L8.411 9.446a.847.847 0 0 1-.002-1.2m-4.415 4.656q.671 0 1.222.227.55.228.942.623.39.395.606.932t.215 1.157q0 .624-.215 1.16-.215.538-.606.935a2.8 2.8 0 0 1-.942.622q-.551.225-1.222.225-.672 0-1.225-.225a2.8 2.8 0 0 1-.946-.622 2.8 2.8 0 0 1-.608-.934A3.1 3.1 0 0 1 1 15.84q0-.624.215-1.161.216-.538.608-.932.394-.396.946-.62.553-.226 1.225-.226m6.739.063.59.59v.437h-2.36v1.458h1.966v1.03H8.962v2.24H7.62v-5.754zm1.285 1.285 2.23 2.23h-.886v2.24h-1.343zm9.053-1.284L23.3 18.72h-1.035l-.083-.005a.44.44 0 0 1-.323-.204l-.037-.08-.34-1.003h-1.496l-1.448-1.448 1.168-3.014zm4.155 0v5.754h-1.343v-5.754zm2.938 0 .243.005a3.5 3.5 0 0 1 .822.123q.44.129.718.357.279.23.405.541.127.312.127.68 0 .28-.075.529-.075.25-.224.46-.148.211-.363.377a2 2 0 0 1-.496.273q.135.067.251.166.079.066.142.15l.062.09L31 18.72h-1.209l-.106-.007a.5.5 0 0 1-.321-.169l-.054-.077-.956-1.67-.045-.067a.4.4 0 0 0-.103-.091.4.4 0 0 0-.144-.043l-.095-.005h-.34v2.129h-1.335v-5.754zm-24.17 1.038q-.387 0-.69.127a1.4 1.4 0 0 0-.509.363q-.207.236-.318.579-.11.34-.11.768 0 .43.11.772.111.342.318.578.207.237.51.362.3.124.689.124.383 0 .683-.124.3-.125.507-.362.209-.236.318-.578.111-.342.111-.772 0-.427-.11-.768a1.6 1.6 0 0 0-.319-.579 1.4 1.4 0 0 0-.507-.363 1.75 1.75 0 0 0-.683-.127m16.394.146-.001.001-.042.156a7 7 0 0 1-.174.539l-.04.106-.53 1.568h1.573l-.53-1.576-.036-.106-.084-.247a9 9 0 0 1-.136-.44m7.776-.185h-.537v1.706h.537q.273 0 .464-.07a.84.84 0 0 0 .314-.19.7.7 0 0 0 .178-.287q.055-.164.055-.354 0-.379-.246-.592-.248-.213-.765-.213"})))}},32830(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"m21.203 27 4.34 4H8.503A.493.493 0 0 1 8 30.51v-3.02c0-.27.225-.49.494-.49zm-4.569-4.999c.187.685.564 1.31 1.095 1.799l2.389 2.2H4.5A.493.493 0 0 1 4 25.51v-3.02c0-.27.225-.49.496-.49ZM31 16.362v9.275l-3-2.764v-3.746zm-4.015 3.7-.001 1.874L25.968 21zM22.499 1a.5.5 0 0 1 .5.494v11.849l-5.268 4.855a3.8 3.8 0 0 0-1.224 2.575L16.5 21v.001L1.5 21a.5.5 0 0 1-.5-.494V1.494C1 1.221 1.217 1 1.5 1zm-14.5 4v12l9.334-6zm18.503 1c.275 0 .498.225.497.494l-.003 3.389c-.33.16-.643.37-.926.632l-2.008 1.849V6.496c0-.274.23-.496.499-.496z"}),o.createElement("path",{d:"M30.367 11.73a2.34 2.34 0 0 0-3.15-.224l-.13.112-8.34 7.685a2.306 2.306 0 0 0-.137 3.258l.136.136 8.34 7.684a2.34 2.34 0 0 0 3.28-.11 2.3 2.3 0 0 0 .01-3.16l-.123-.122-6.5-5.989 6.5-5.989a2.3 2.3 0 0 0 .114-3.282"}))))}},57149(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M17.286 31.001 8.502 31A.493.493 0 0 1 8 30.51v-3.02c0-.27.225-.49.494-.49h8.399a3.8 3.8 0 0 0 .393 4.001M31 24.048v6.458a.5.5 0 0 1-.502.494h-7.043zM21.947 22l-4.216 3.886-.12.114H4.502A.493.493 0 0 1 4 25.51v-3.02c0-.27.225-.49.496-.49zm.552-21a.5.5 0 0 1 .5.494v9.085l-.07-.064a3.84 3.84 0 0 0-5.234.031l-.15.15-.14.157-.103.127L8 5v12l9.24-5.94a3.8 3.8 0 0 0 .493 5.056l5.131 4.73A.5.5 0 0 1 22.5 21H1.5A.5.5 0 0 1 1 20.506V1.494C1 1.221 1.217 1 1.5 1zm8.006 10c.273 0 .495.225.495.494v6.457l-3-2.765v-3.69c0-.274.216-.496.495-.496zm-4.003-5c.275 0 .498.225.497.494l-.008 7.763-2.93-2.7.001-5.06c0-.275.23-.497.499-.497z"}),o.createElement("path",{d:"M18.633 11.73a2.34 2.34 0 0 1 3.15-.224l.13.112 8.34 7.685a2.306 2.306 0 0 1 .137 3.258l-.136.136-8.34 7.684a2.34 2.34 0 0 1-3.28-.11 2.3 2.3 0 0 1-.01-3.16l.123-.122 6.5-5.989-6.5-5.989a2.3 2.3 0 0 1-.114-3.282"}))))}},11755(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M30.505 11c.273 0 .495.225.495.494v19.012a.5.5 0 0 1-.502.494H8.502A.493.493 0 0 1 8 30.51v-3.02c0-.27.225-.49.494-.49h19.012a.5.5 0 0 0 .494-.496V11.496c0-.274.216-.496.495-.496zm-4.003-5c.275 0 .498.225.497.494l-.02 19.012a.5.5 0 0 1-.501.494H4.5A.493.493 0 0 1 4 25.51v-3.02c0-.27.225-.49.496-.49h19.07a.5.5 0 0 0 .496-.496V6.496c0-.274.23-.496.499-.496z"}),o.createElement("path",{d:"M22.499 1a.5.5 0 0 1 .5.494v19.012a.494.494 0 0 1-.5.494H1.5A.5.5 0 0 1 1 20.506V1.494C1 1.221 1.217 1 1.5 1zm-14.5 4v12l9.334-6z"}))))}},18626(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M2.125 20c.58 0 1.057.439 1.118 1.002l.007.123V24.5a3 3 0 0 0 2.824 2.995l.176.005h7.5a1.75 1.75 0 0 1 .144 3.494L13.75 31H3a2 2 0 0 1-1.995-1.85L1 29v-7.875C1 20.504 1.504 20 2.125 20m3.75-7c.58 0 1.057.439 1.118 1.002l.007.123V19.5a3 3 0 0 0 2.824 2.995L10 22.5h8.26l3.482 3.483-.098.011L21.5 26H6.75a2 2 0 0 1-1.995-1.85L4.75 24v-9.875c0-.621.504-1.125 1.125-1.125m2.625-.261L16.76 21H10.5a2 2 0 0 1-1.995-1.85L8.5 19zM29 1a2 2 0 0 1 1.995 1.85L31 3v16a2 2 0 0 1-1.85 1.995L29 21h-3.754L8.5 4.255V3a2 2 0 0 1 1.85-1.995L10.5 1z"}),o.createElement("path",{d:"m1.944 4.062 25.203 25.204a1.507 1.507 0 0 0 2.126.005 1.5 1.5 0 0 0-.004-2.126L4.065 1.94a1.507 1.507 0 0 0-2.126-.005 1.5 1.5 0 0 0 .005 2.126"}))))}},68552(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M2.125 20c.58 0 1.057.439 1.118 1.002l.007.123V24.5a3 3 0 0 0 2.824 2.995l.176.005h7.5a1.75 1.75 0 0 1 .144 3.494L13.75 31H3a2 2 0 0 1-1.995-1.85L1 29v-7.875C1 20.504 1.504 20 2.125 20m3.75-7c.58 0 1.057.439 1.118 1.002l.007.123V19.5a3 3 0 0 0 2.824 2.995L10 22.5h11.5a1.75 1.75 0 0 1 .144 3.494L21.5 26H6.75a2 2 0 0 1-1.995-1.85L4.75 24v-9.875c0-.621.504-1.125 1.125-1.125"}),o.createElement("path",{d:"M8.5 3v16a2 2 0 0 0 2 2H29a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H10.5a2 2 0 0 0-2 2"}))))}},65628(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M29.008 1C30.102 1 31 1.892 31 2.992v26.016A1.996 1.996 0 0 1 29.008 31H2.992A1.996 1.996 0 0 1 1 29.008V2.992C1 1.898 1.892 1 2.992 1ZM27 4.143H5.001a1 1 0 0 0-1.001 1v22a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1v-22a1 1 0 0 0-1-1"}),o.createElement("path",{d:"M13.47 24.112v-6.33h1.01q.458 0 .71.14.254.142.44.47l2.843 4.969q.434.75 1.433.751H23.5l-3.64-5.954a3 3 0 0 0-.606-.717 3.7 3.7 0 0 0-.746-.493 5.7 5.7 0 0 0 1.474-.81 5.1 5.1 0 0 0 1.08-1.122q.442-.628.665-1.368a5.4 5.4 0 0 0 .223-1.574 5.3 5.3 0 0 0-.376-2.02 4 4 0 0 0-1.204-1.61q-.828-.681-2.138-1.062Q16.922 7 15.067 7H9.5v17.112zm1.597-9.067H13.47V9.971h1.597q1.539 0 2.273.635.734.634.734 1.761 0 .564-.165 1.052a2.2 2.2 0 0 1-.528.851 2.5 2.5 0 0 1-.934.57q-.57.205-1.38.205"}))))}},28284(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M3.563 19.221c5.083 0 9.215 4.133 9.215 9.216a2.564 2.564 0 0 1-2.099 2.521l-.242.032-.221.01-.228-.01-.238-.033a2.57 2.57 0 0 1-1.988-1.808l-.06-.242-.037-.233-.012-.237-.008-.259-.029-.29a4.1 4.1 0 0 0-3.527-3.507l-.278-.026-.47-.017-.242-.033a2.564 2.564 0 0 1 .464-5.084m1.507-9.11c9.276 0 16.82 7.544 16.82 16.82a2.565 2.565 0 0 1-2.1 2.52l-.242.033-.22.01-.222-.01-.243-.033a2.564 2.564 0 0 1-2.099-2.52c0-6.447-5.247-11.695-11.694-11.695a2.563 2.563 0 0 1 0-5.125M6.578 1C20.046 1 31 11.954 31 25.422a2.564 2.564 0 0 1-2.1 2.521l-.242.033-.22.009-.222-.01-.242-.032a2.564 2.564 0 0 1-2.1-2.52c0-10.64-8.657-19.297-19.296-19.297a2.563 2.563 0 0 1 0-5.126"})))}},24378(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.211 26.793a3.715 3.715 0 0 0 3.711-3.71 3.716 3.716 0 0 0-3.71-3.712A3.716 3.716 0 0 0 2.5 23.083a3.715 3.715 0 0 0 3.711 3.71m0-22.293A3.716 3.716 0 0 0 2.5 8.211a3.716 3.716 0 0 0 3.711 3.712 3.716 3.716 0 0 0 3.711-3.712A3.716 3.716 0 0 0 6.212 4.5m0 13.371c1.643 0 3.108.766 4.063 1.957.318-1.47.854-2.878 1.59-4.18a15 15 0 0 1-1.59-4.182 5.2 5.2 0 0 1-4.063 1.957A5.22 5.22 0 0 1 1 8.211 5.217 5.217 0 0 1 6.211 3a5.217 5.217 0 0 1 5.211 5.211c0 2.194.514 4.333 1.492 6.238 2.594-3.619 6.68-5.746 11.142-5.746 1.342 0 5.544.687 6.744 1.587a.501.501 0 0 1-.166.881l-16.045 4.47 16.046 4.503a.499.499 0 0 1 .165.881c-1.203.905-5.354 1.566-6.744 1.566-4.463 0-8.547-2.128-11.142-5.747a13.7 13.7 0 0 0-1.492 6.24 5.216 5.216 0 0 1-5.21 5.21A5.217 5.217 0 0 1 1 23.083a5.22 5.22 0 0 1 5.211-5.213"})))}},34640(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r,o=n(39155);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32"},e),r||(r=o.createElement("g",{fill:"#FFF",fillRule:"evenodd"},o.createElement("path",{fillOpacity:.4,d:"M7.907 2.998c-.462 1.698-.77 3.7-.77 4.946l.005.378.014.403q.06 1.158.285 2.276L2.5 11A1.5 1.5 0 0 1 1 9.5v-5A1.5 1.5 0 0 1 2.5 3ZM17.935 3l-2.22 8h-.431l-2.203-8zM29.5 3A1.5 1.5 0 0 1 31 4.5v5a1.5 1.5 0 0 1-1.5 1.5h-5.94c.2-.993.304-2.016.304-3.056 0-1.277-.297-3.263-.75-4.945z"}),o.createElement("path",{d:"M26.517 25.789c0-2.046-1.645-3.711-3.667-3.711-2.023 0-3.669 1.665-3.669 3.71 0 2.047 1.646 3.712 3.67 3.712 2.02 0 3.666-1.665 3.666-3.711m-22.034 0c0 2.046 1.645 3.711 3.668 3.711s3.669-1.665 3.669-3.711-1.646-3.711-3.67-3.711c-2.022 0-3.667 1.665-3.667 3.71m13.216 0c0-1.643.757-3.108 1.934-4.063a14.7 14.7 0 0 1-4.133-1.59 14.7 14.7 0 0 1-4.132 1.59 5.22 5.22 0 0 1 1.934 4.063c0 2.873-2.31 5.211-5.151 5.211S3 28.662 3 25.789c0-2.8 2.194-5.091 4.933-5.207l.218-.004a13.4 13.4 0 0 0 6.165-1.492 13.68 13.68 0 0 1-5.68-11.142c0-1.342.68-5.544 1.57-6.744a.492.492 0 0 1 .87.166l4.419 16.045 4.45-16.046a.492.492 0 0 1 .87-.165c.896 1.203 1.55 5.354 1.55 6.744 0 4.463-2.104 8.547-5.681 11.142a13.4 13.4 0 0 0 5.733 1.485l.433.007c2.84 0 5.15 2.337 5.15 5.21C28 28.663 25.69 31 22.85 31S17.7 28.662 17.7 25.789"}))))}},82174(e,t,n){"use strict";var r=n(90351),o=n(23391),i=n(93983),a=n(43094),s=n(56075),l=n(58155),c=n(53376),u=n(29669),d=n(17327);e.exports=v,v.prototype.validate=function(e,t){var n;if("string"==typeof e){if(!(n=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var r=this._addSchema(e);n=r.validate||this._compile(r)}var o=n(t);return!0!==n.$async&&(this.errors=n.errors),o},v.prototype.compile=function(e,t){var n=this._addSchema(e,void 0,t);return n.validate||this._compile(n)},v.prototype.addSchema=function(e,t,n,r){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,n,r);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return C(this,t=o.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,n,r,!0),this},v.prototype.addMetaSchema=function(e,t,n){return this.addSchema(e,t,n,!0),this},v.prototype.validateSchema=function(e,t){var n=e.$schema;if(void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(!(n=n||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(f)?f:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var r=this.validate(n,e);if(!r&&t){var o="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(o);this.logger.error(o)}return r},v.prototype.getSchema=function(e){var t=y(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var n=o.schema.call(e,{schema:{}},t);if(n){var i=n.schema,s=n.root,l=n.baseId,c=r.call(e,i,s,void 0,l);return e._fragments[t]=new a({ref:t,fragment:!0,schema:i,root:s,baseId:l,validate:c}),c}}(this,e)}},v.prototype.removeSchema=function(e){if(e instanceof RegExp)return A(this,this._schemas,e),A(this,this._refs,e),this;switch(typeof e){case"undefined":return A(this,this._schemas),A(this,this._refs),this._cache.clear(),this;case"string":var t=y(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var n=this._opts.serialize,r=n?n(e):e;this._cache.del(r);var i=this._getId(e);i&&(i=o.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},v.prototype.addFormat=function(e,t){return"string"==typeof t&&(t=new RegExp(t)),this._formats[e]=t,this},v.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var n=void 0===(t=t||{}).separator?", ":t.separator,r=void 0===t.dataVar?"data":t.dataVar,o="",i=0;i<e.length;i++){var a=e[i];a&&(o+=r+a.dataPath+" "+a.message+n)}return o.slice(0,-n.length)},v.prototype._addSchema=function(e,t,n,r){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var i=this._opts.serialize,s=i?i(e):e,l=this._cache.get(s);if(l)return l;r=r||!1!==this._opts.addUsedSchema;var c=o.normalizeId(this._getId(e));c&&r&&C(this,c);var u,d=!1!==this._opts.validateSchema&&!t;d&&!(u=c&&c==o.normalizeId(e.$schema))&&this.validateSchema(e,!0);var p=o.ids.call(this,e),h=new a({id:c,schema:e,localRefs:p,cacheKey:s,meta:n});return"#"!=c[0]&&r&&(this._refs[c]=h),this._cache.put(s,h),d&&u&&this.validateSchema(e,!0),h},v.prototype._compile=function(e,t){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=t||i,!0===e.schema.$async&&(i.$async=!0),i;var n,o;e.compiling=!0,e.meta&&(n=this._opts,this._opts=this._metaOpts);try{o=r.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=n)}return e.validate=o,e.refs=o.refs,e.refVal=o.refVal,e.root=o.root,o;function i(){var t=e.validate,n=t.apply(this,arguments);return i.errors=t.errors,n}},v.prototype.compileAsync=n(89495);var p=n(18285);v.prototype.addKeyword=p.add,v.prototype.getKeyword=p.get,v.prototype.removeKeyword=p.remove,v.prototype.validateKeyword=p.validate;var h=n(35510);v.ValidationError=h.Validation,v.MissingRefError=h.MissingRef,v.$dataMetaSchema=u;var f="http://json-schema.org/draft-07/schema",g=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],m=["/properties"];function v(e){if(!(this instanceof v))return new v(e);e=this._opts=d.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:E,warn:E,error:E};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=l(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=c(),this._getId=function(e){switch(e.schemaId){case"auto":return _;case"id":return w;default:return b}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=d.copy(e._opts),n=0;n<g.length;n++)delete t[g[n]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var n=e._opts.formats[t];e.addFormat(t,n)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var n=e._opts.keywords[t];e.addKeyword(t,n)}}(this),function(e){var t;if(e._opts.$data&&(t=n(8633),e.addMetaSchema(t,t.$id,!0)),!1!==e._opts.meta){var r=n(2707);e._opts.$data&&(r=u(r,m)),e.addMetaSchema(r,f,!0),e._refs["http://json-schema.org/schema"]=f}}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(t)if(Array.isArray(t))e.addSchema(t);else for(var n in t)e.addSchema(t[n],n)}(this)}function y(e,t){return t=o.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function A(e,t,n){for(var r in t){var o=t[r];o.meta||n&&!n.test(r)||(e._cache.del(o.cacheKey),delete t[r])}}function w(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function b(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function _(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function C(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function E(){}},93983(e){"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},89495(e,t,n){"use strict";var r=n(35510).MissingRef;e.exports=function e(t,n,o){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof n&&(o=n,n=void 0);var a=s(t).then(function(){var e=i._addSchema(t,void 0,n);return e.validate||l(e)});return o&&a.then(function(e){o(null,e)},o),a;function s(t){var n=t.$schema;return n&&!i.getSchema(n)?e.call(i,{$ref:n},!0):Promise.resolve()}function l(e){try{return i._compile(e)}catch(t){if(t instanceof r)return function(t){var r=t.missingSchema;if(c(r))throw new Error("Schema "+r+" is loaded but "+t.missingRef+" cannot be resolved");var o=i._loadingSchemas[r];return o||(o=i._loadingSchemas[r]=i._opts.loadSchema(r)).then(a,a),o.then(function(e){if(!c(r))return s(e).then(function(){c(r)||i.addSchema(e,r,void 0,n)})}).then(function(){return l(e)});function a(){delete i._loadingSchemas[r]}function c(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}}},35510(e,t,n){"use strict";var r=n(23391);function o(e,t,n){this.message=n||o.message(e,t),this.missingRef=r.url(e,t),this.missingSchema=r.normalizeId(r.fullPath(this.missingRef))}function i(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:i(function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}),MissingRef:i(o)},o.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},58155(e,t,n){"use strict";var r=n(17327),o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,d=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,p=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,f=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function g(e){return e="full"==e?"full":"fast",r.copy(g[e])}function m(e){var t=e.match(o);if(!t)return!1;var n=+t[1],r=+t[2],a=+t[3];return r>=1&&r<=12&&a>=1&&a<=(2==r&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(n)?29:i[r])}function v(e,t){var n=e.match(a);if(!n)return!1;var r=n[1],o=n[2],i=n[3],s=n[5];return(r<=23&&o<=59&&i<=59||23==r&&59==o&&60==i)&&(!t||s)}e.exports=g,g.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:u,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:b,uuid:d,"json-pointer":p,"json-pointer-uri-fragment":h,"relative-json-pointer":f},g.full={date:m,time:v,"date-time":function(e){var t=e.split(y);return 2==t.length&&m(t[0])&&v(t[1],!0)},uri:function(e){return A.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:u,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:b,uuid:d,"json-pointer":p,"json-pointer-uri-fragment":h,"relative-json-pointer":f};var y=/t|\s/i,A=/\/|:/,w=/[^\\]\\Z/;function b(e){if(w.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},90351(e,t,n){"use strict";var r=n(23391),o=n(17327),i=n(35510),a=n(56075),s=n(88598),l=o.ucs2length,c=n(38792),u=i.Validation;function d(e,t,n){var r=h.call(this,e,t,n);return r>=0?{index:r,compiling:!0}:(r=this._compilations.length,this._compilations[r]={schema:e,root:t,baseId:n},{index:r,compiling:!1})}function p(e,t,n){var r=h.call(this,e,t,n);r>=0&&this._compilations.splice(r,1)}function h(e,t,n){for(var r=0;r<this._compilations.length;r++){var o=this._compilations[r];if(o.schema==e&&o.root==t&&o.baseId==n)return r}return-1}function f(e){return"var default"+e+" = defaults["+e+"];"}function g(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function m(e){return"var customRule"+e+" = customRules["+e+"];"}function v(e,t){if(!e.length)return"";for(var n="",r=0;r<e.length;r++)n+=t(r,e);return n}e.exports=function e(t,n,h,y){var A=this,w=this._opts,b=[void 0],_={},C=[],E={},S=[],O={},x=[];function D(e,t){return"var pattern"+e+" = "+(w.regExp?"regExp":"new RegExp")+"("+o.toQuotedString(t[e])+");"}n=n||{schema:t,refVal:b,refs:_};var P=d.call(this,t,n,y),M=this._compilations[P.index];if(P.compiling)return M.callValidate=function e(){var t=M.validate,n=t.apply(this,arguments);return e.errors=t.errors,n};var T=this._formats,R=this.RULES;try{var I=k(t,n,h,y);M.validate=I;var F=M.callValidate;return F&&(F.schema=I.schema,F.errors=null,F.refs=I.refs,F.refVal=I.refVal,F.root=I.root,F.$async=I.$async,w.sourceCode&&(F.source=I.source)),I}finally{p.call(this,t,n,y)}function k(t,a,d,p){var h=!a||a&&a.schema==t;if(a.schema!=n.schema)return e.call(A,t,a,d,p);var y,E=!0===t.$async,O=s({isTop:!0,schema:t,isRoot:h,baseId:p,root:a,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:i.MissingRef,RULES:R,validate:s,util:o,resolve:r,resolveRef:L,usePattern:j,useDefault:U,useCustomRule:V,opts:w,formats:T,logger:A.logger,self:A});O=v(b,g)+v(C,D)+v(S,f)+v(x,m)+O,w.processCode&&(O=w.processCode(O,t));try{y=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError","regExp",O)(A,R,T,n,b,S,x,c,l,u,w.regExp),b[0]=y}catch(e){throw A.logger.error("Error compiling schema, function code:",O),e}return y.schema=t,y.errors=null,y.refs=_,y.refVal=b,y.root=h?y:a,E&&(y.$async=!0),!0===w.sourceCode&&(y.source={code:O,patterns:C,defaults:S}),y}function L(t,o,i){o=r.url(t,o);var a,s,l=_[o];if(void 0!==l)return N(a=b[l],s="refVal["+l+"]");if(!i&&n.refs){var c=n.refs[o];if(void 0!==c)return N(a=n.refVal[c],s=B(o,a))}s=B(o);var u=r.call(A,k,n,o);if(void 0===u){var d=h&&h[o];d&&(u=r.inlineRef(d,w.inlineRefs)?d:e.call(A,d,n,h,t))}if(void 0!==u)return function(e,t){var n=_[e];b[n]=t}(o,u),N(u,s);!function(e){delete _[e]}(o)}function B(e,t){var n=b.length;return b[n]=t,_[e]=n,"refVal"+n}function N(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function j(e){var t=E[e];return void 0===t&&(t=E[e]=C.length,C[t]=e),"pattern"+t}function U(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return o.toQuotedString(e);case"object":if(null===e)return"null";var t=a(e),n=O[t];return void 0===n&&(n=O[t]=S.length,S[n]=e),"default"+n}}function V(e,t,n,r){if(!1!==A._opts.validateSchema){var o=e.definition.dependencies;if(o&&!o.every(function(e){return Object.prototype.hasOwnProperty.call(n,e)}))throw new Error("parent schema must have all required keywords: "+o.join(","));var i=e.definition.validateSchema;if(i&&!i(t)){var a="keyword schema is invalid: "+A.errorsText(i.errors);if("log"!=A._opts.validateSchema)throw new Error(a);A.logger.error(a)}}var s,l=e.definition.compile,c=e.definition.inline,u=e.definition.macro;if(l)s=l.call(A,t,n,r);else if(u)s=u.call(A,t,n,r),!1!==w.validateSchema&&A.validateSchema(s,!0);else if(c)s=c.call(A,r,e.keyword,t,n);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var d=x.length;return x[d]=s,{code:"customRule"+d,validate:s}}}},23391(e,t,n){"use strict";var r=n(2862),o=n(38792),i=n(17327),a=n(43094),s=n(1645);function l(e,t,n){var r=this._refs[n];if("string"==typeof r){if(!this._refs[r])return l.call(this,e,t,r);r=this._refs[r]}if((r=r||this._schemas[n])instanceof a)return f(r.schema,this._opts.inlineRefs)?r.schema:r.validate||this._compile(r);var o,i,s,u=c.call(this,t,n);return u&&(o=u.schema,t=u.root,s=u.baseId),o instanceof a?i=o.validate||e.call(this,o.schema,t,void 0,s):void 0!==o&&(i=f(o,this._opts.inlineRefs)?o:e.call(this,o,t,void 0,s)),i}function c(e,t){var n=r.parse(t),o=y(n),i=v(this._getId(e.schema));if(0===Object.keys(e.schema).length||o!==i){var s=w(o),l=this._refs[s];if("string"==typeof l)return u.call(this,e,l,n);if(l instanceof a)l.validate||this._compile(l),e=l;else{if(!((l=this._schemas[s])instanceof a))return;if(l.validate||this._compile(l),s==w(t))return{schema:l,root:e,baseId:i};e=l}if(!e.schema)return;i=v(this._getId(e.schema))}return p.call(this,n,i,e.schema,e)}function u(e,t,n){var r=c.call(this,e,t);if(r){var o=r.schema,i=r.baseId;e=r.root;var a=this._getId(o);return a&&(i=b(i,a)),p.call(this,n,i,o,e)}}e.exports=l,l.normalizeId=w,l.fullPath=v,l.url=b,l.ids=function(e){var t=w(this._getId(e)),n={"":t},a={"":v(t,!1)},l={},c=this;return s(e,{allKeys:!0},function(e,t,s,u,d,p,h){if(""!==t){var f=c._getId(e),g=n[u],m=a[u]+"/"+d;if(void 0!==h&&(m+="/"+("number"==typeof h?h:i.escapeFragment(h))),"string"==typeof f){f=g=w(g?r.resolve(g,f):f);var v=c._refs[f];if("string"==typeof v&&(v=c._refs[v]),v&&v.schema){if(!o(e,v.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=w(m))if("#"==f[0]){if(l[f]&&!o(e,l[f]))throw new Error('id "'+f+'" resolves to more than one schema');l[f]=e}else c._refs[f]=m}n[t]=g,a[t]=m}}),l},l.inlineRef=f,l.schema=c;var d=i.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function p(e,t,n,r){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var o=e.fragment.split("/"),a=1;a<o.length;a++){var s=o[a];if(s){if(void 0===(n=n[s=i.unescapeFragment(s)]))break;var l;if(!d[s]&&((l=this._getId(n))&&(t=b(t,l)),n.$ref)){var u=b(t,n.$ref),p=c.call(this,r,u);p&&(n=p.schema,r=p.root,t=p.baseId)}}}return void 0!==n&&n!==r.schema?{schema:n,root:r,baseId:t}:void 0}}var h=i.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function f(e,t){return!1!==t&&(void 0===t||!0===t?g(e):t?m(e)<=t:void 0)}function g(e){var t;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&!g(t))return!1}else for(var r in e){if("$ref"==r)return!1;if("object"==typeof(t=e[r])&&!g(t))return!1}return!0}function m(e){var t,n=0;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&(n+=m(t)),n==1/0)return 1/0}else for(var o in e){if("$ref"==o)return 1/0;if(h[o])n++;else if("object"==typeof(t=e[o])&&(n+=m(t)+1),n==1/0)return 1/0}return n}function v(e,t){return!1!==t&&(e=w(e)),y(r.parse(e))}function y(e){return r.serialize(e).split("#")[0]+"#"}var A=/#\/?$/;function w(e){return e?e.replace(A,""):""}function b(e,t){return t=w(t),r.resolve(e,t)}},53376(e,t,n){"use strict";var r=n(93890),o=n(17327).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=o(t),e.types=o(["number","integer","string","array","object","boolean","null"]),e.forEach(function(n){n.rules=n.rules.map(function(n){var o;if("object"==typeof n){var i=Object.keys(n)[0];o=n[i],n=i,o.forEach(function(n){t.push(n),e.all[n]=!0})}return t.push(n),e.all[n]={keyword:n,code:r[n],implements:o}}),e.all.$comment={keyword:"$comment",code:r.$comment},n.type&&(e.types[n.type]=n)}),e.keywords=o(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},43094(e,t,n){"use strict";var r=n(17327);e.exports=function(e){r.copy(e,this)}},50786(e){"use strict";e.exports=function(e){for(var t,n=0,r=e.length,o=0;o<r;)n++,(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<r&&56320==(64512&(t=e.charCodeAt(o)))&&o++;return n}},17327(e,t,n){"use strict";function r(e,t,n,r){var o=r?" !== ":" === ",i=r?" || ":" && ",a=r?"!":"",s=r?"":"!";switch(e){case"null":return t+o+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+i+"typeof "+t+o+'"object"'+i+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+o+'"number"'+i+s+"("+t+" % 1)"+i+t+o+t+(n?i+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+o+'"'+e+'"'+(n?i+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+o+'"'+e+'"'}}e.exports={copy:function(e,t){for(var n in t=t||{},e)t[n]=e[n];return t},checkDataType:r,checkDataTypes:function(e,t,n){if(1===e.length)return r(e[0],t,n,!0);var o="",a=i(e);for(var s in a.array&&a.object&&(o=a.null?"(":"(!"+t+" || ",o+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)o+=(o?" && ":"")+r(s,t,n,!0);return o},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++){var i=t[r];(o[i]||"array"===e&&"array"===i)&&(n[n.length]=i)}if(n.length)return n}else{if(o[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:i,getProperty:l,escapeQuotes:c,equal:n(38792),ucs2length:n(50786),varOccurences:function(e,t){t+="[^0-9]";var n=e.match(new RegExp(t,"g"));return n?n.length:0},varReplace:function(e,t,n){return t+="([^0-9])",n=n.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),n+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var n in e)if(t[n])return!0},schemaHasRulesExcept:function(e,t,n){if("boolean"==typeof e)return!e&&"not"!=n;for(var r in e)if(r!=n&&t[r])return!0},schemaUnknownRules:function(e,t){if("boolean"!=typeof e)for(var n in e)if(!t[n])return n},toQuotedString:u,getPathExpr:function(e,t,n,r){return h(e,n?"'/' + "+t+(r?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):r?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,n){return h(e,u(n?"/"+f(t):l(t)))},getData:function(e,t,n){var r,o,i,a;if(""===e)return"rootData";if("/"==e[0]){if(!d.test(e))throw new Error("Invalid JSON-pointer: "+e);o=e,i="rootData"}else{if(!(a=e.match(p)))throw new Error("Invalid JSON-pointer: "+e);if(r=+a[1],"#"==(o=a[2])){if(r>=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return n[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(i="data"+(t-r||""),!o)return i}for(var s=i,c=o.split("/"),u=0;u<c.length;u++){var h=c[u];h&&(s+=" && "+(i+=l(g(h))))}return s},unescapeFragment:function(e){return g(decodeURIComponent(e))},unescapeJsonPointer:g,escapeFragment:function(e){return encodeURIComponent(f(e))},escapeJsonPointer:f};var o=i(["string","number","integer","boolean","null"]);function i(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var a=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function l(e){return"number"==typeof e?"["+e+"]":a.test(e)?"."+e:"['"+c(e)+"']"}function c(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function u(e){return"'"+c(e)+"'"}var d=/^\/(?:[^~]|~0|~1)*$/,p=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function h(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function f(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function g(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},29669(e){"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,n){for(var r=0;r<n.length;r++){e=JSON.parse(JSON.stringify(e));var o,i=n[r].split("/"),a=e;for(o=1;o<i.length;o++)a=a[i[o]];for(o=0;o<t.length;o++){var s=t[o],l=a[s];l&&(a[s]={anyOf:[l,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},1572(e,t,n){"use strict";var r=n(2707);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:r.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:r.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},83732(e){"use strict";e.exports=function(e,t,n){var r,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(a||""),p=e.opts.$data&&s&&s.$data;p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+i):r=s;var h="maximum"==t,f=h?"exclusiveMaximum":"exclusiveMinimum",g=e.schema[f],m=e.opts.$data&&g&&g.$data,v=h?"<":">",y=h?">":"<",A=void 0;if(!p&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!m&&void 0!==g&&"number"!=typeof g&&"boolean"!=typeof g)throw new Error(f+" must be number or boolean");if(m){var w,b=e.util.getData(g.$data,a,e.dataPathArr),_="exclusive"+i,C="exclType"+i,E="exclIsNumber"+i,S="' + "+(x="op"+i)+" + '";o+=" var schemaExcl"+i+" = "+b+"; ",o+=" var "+_+"; var "+C+" = typeof "+(b="schemaExcl"+i)+"; if ("+C+" != 'boolean' && "+C+" != 'undefined' && "+C+" != 'number') { ",A=f,(w=w||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(A||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: '"+f+" should be boolean' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var O=o;o=w.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+O+"]); ":o+=" validate.errors = ["+O+"]; return false; ":o+=" var err = "+O+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else if ( ",p&&(o+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),o+=" "+C+" == 'number' ? ( ("+_+" = "+r+" === undefined || "+b+" "+v+"= "+r+") ? "+d+" "+y+"= "+b+" : "+d+" "+y+" "+r+" ) : ( ("+_+" = "+b+" === true) ? "+d+" "+y+"= "+r+" : "+d+" "+y+" "+r+" ) || "+d+" !== "+d+") { var op"+i+" = "+_+" ? '"+v+"' : '"+v+"='; ",void 0===s&&(A=f,c=e.errSchemaPath+"/"+f,r=b,p=m)}else if(S=v,(E="number"==typeof g)&&p){var x="'"+S+"'";o+=" if ( ",p&&(o+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),o+=" ( "+r+" === undefined || "+g+" "+v+"= "+r+" ? "+d+" "+y+"= "+g+" : "+d+" "+y+" "+r+" ) || "+d+" !== "+d+") { "}else E&&void 0===s?(_=!0,A=f,c=e.errSchemaPath+"/"+f,r=g,y+="="):(E&&(r=Math[h?"min":"max"](g,s)),g===(!E||r)?(_=!0,A=f,c=e.errSchemaPath+"/"+f,y+="="):(_=!1,S+="=")),x="'"+S+"'",o+=" if ( ",p&&(o+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),o+=" "+d+" "+y+" "+r+" || "+d+" !== "+d+") { ";return A=A||t,(w=w||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(A||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+x+", limit: "+r+", exclusive: "+_+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be "+S+" ",o+=p?"' + "+r:r+"'"),e.opts.verbose&&(o+=" , schema:  ",o+=p?"validate.schema"+l:""+s,o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ",O=o,o=w.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+O+"]); ":o+=" validate.errors = ["+O+"]; return false; ":o+=" var err = "+O+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",u&&(o+=" else { "),o}},18354(e){"use strict";e.exports=function(e,t,n){var r,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+i):r=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",p&&(o+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),o+=" "+d+".length "+("maxItems"==t?">":"<")+" "+r+") { ";var h=t,f=f||[];f.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxItems"==t?"more":"fewer",o+=" than ",o+=p?"' + "+r+" + '":""+s,o+=" items' "),e.opts.verbose&&(o+=" , schema:  ",o+=p?"validate.schema"+l:""+s,o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var g=o;return o=f.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",u&&(o+=" else { "),o}},22204(e){"use strict";e.exports=function(e,t,n){var r,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+i):r=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");var h="maxLength"==t?">":"<";o+="if ( ",p&&(o+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),!1===e.opts.unicode?o+=" "+d+".length ":o+=" ucs2length("+d+") ",o+=" "+h+" "+r+") { ";var f=t,g=g||[];g.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(f||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be ",o+="maxLength"==t?"longer":"shorter",o+=" than ",o+=p?"' + "+r+" + '":""+s,o+=" characters' "),e.opts.verbose&&(o+=" , schema:  ",o+=p?"validate.schema"+l:""+s,o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var m=o;return o=g.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",u&&(o+=" else { "),o}},28921(e){"use strict";e.exports=function(e,t,n){var r,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+i):r=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",p&&(o+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),o+=" Object.keys("+d+").length "+("maxProperties"==t?">":"<")+" "+r+") { ";var h=t,f=f||[];f.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxProperties"==t?"more":"fewer",o+=" than ",o+=p?"' + "+r+" + '":""+s,o+=" properties' "),e.opts.verbose&&(o+=" , schema:  ",o+=p?"validate.schema"+l:""+s,o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var g=o;return o=f.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",u&&(o+=" else { "),o}},7916(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,l=e.util.copy(e),c="";l.level++;var u="valid"+l.level,d=l.baseId,p=!0,h=o;if(h)for(var f,g=-1,m=h.length-1;g<m;)f=h[g+=1],(e.opts.strictKeywords?"object"==typeof f&&Object.keys(f).length>0||!1===f:e.util.schemaHasRules(f,e.RULES.all))&&(p=!1,l.schema=f,l.schemaPath=i+"["+g+"]",l.errSchemaPath=a+"/"+g,r+="  "+e.validate(l)+" ",l.baseId=d,s&&(r+=" if ("+u+") { ",c+="}"));return s&&(r+=p?" if (true) { ":" "+c.slice(0,-1)+" "),r}},82945(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p="errs__"+o,h=e.util.copy(e),f="";h.level++;var g="valid"+h.level,m=a.every(function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)});if(m){var v=h.baseId;r+=" var "+p+" = errors; var "+d+" = false;  ";var y=e.compositeRule;e.compositeRule=h.compositeRule=!0;var A=a;if(A)for(var w,b=-1,_=A.length-1;b<_;)w=A[b+=1],h.schema=w,h.schemaPath=s+"["+b+"]",h.errSchemaPath=l+"/"+b,r+="  "+e.validate(h)+" ",h.baseId=v,r+=" "+d+" = "+d+" || "+g+"; if (!"+d+") { ",f+="}";e.compositeRule=h.compositeRule=y,r+=" "+f+" if (!"+d+") {   var err =   ",!1!==e.createErrors?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } else {  errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else c&&(r+=" if (true) { ");return r}},33523(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.schema[t],i=e.errSchemaPath+"/"+t,a=(e.opts.allErrors,e.util.toQuotedString(o));return!0===e.opts.$comment?r+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(r+=" self._opts.$comment("+a+", "+e.util.toQuotedString(i)+", validate.root.schema);"),r}},45433(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p=e.opts.$data&&a&&a.$data;p&&(r+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; "),p||(r+=" var schema"+o+" = validate.schema"+s+";"),r+="var "+d+" = equal("+u+", schema"+o+"); if (!"+d+") {   ";var h=h||[];h.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+o+" } ",!1!==e.opts.messages&&(r+=" , message: 'should be equal to constant' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var f=r;return r=h.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+f+"]); ":r+=" validate.errors = ["+f+"]; return false; ":r+=" var err = "+f+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",c&&(r+=" else { "),r}},10877(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p="errs__"+o,h=e.util.copy(e);h.level++;var f="valid"+h.level,g="i"+o,m=h.dataLevel=e.dataLevel+1,v="data"+m,y=e.baseId,A=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(r+="var "+p+" = errors;var "+d+";",A){var w=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=a,h.schemaPath=s,h.errSchemaPath=l,r+=" var "+f+" = false; for (var "+g+" = 0; "+g+" < "+u+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var b=u+"["+g+"]";h.dataPathArr[m]=g;var _=e.validate(h);h.baseId=y,e.util.varOccurences(_,v)<2?r+=" "+e.util.varReplace(_,v,b)+" ":r+=" var "+v+" = "+b+"; "+_+" ",r+=" if ("+f+") break; }  ",e.compositeRule=h.compositeRule=w,r+="  if (!"+f+") {"}else r+=" if ("+u+".length == 0) {";var C=C||[];C.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should contain a valid item' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var E=r;return r=C.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",A&&(r+="  errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(r+=" } "),r}},31887(e){"use strict";e.exports=function(e,t,n){var r,o,i=" ",a=e.level,s=e.dataLevel,l=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,p="data"+(s||""),h="valid"+a,f="errs__"+a,g=e.opts.$data&&l&&l.$data;g?(i+=" var schema"+a+" = "+e.util.getData(l.$data,s,e.dataPathArr)+"; ",o="schema"+a):o=l;var m,v,y,A,w,b=this,_="definition"+a,C=b.definition,E="";if(g&&C.$data){w="keywordValidate"+a;var S=C.validateSchema;i+=" var "+_+" = RULES.custom['"+t+"'].definition; var "+w+" = "+_+".validate;"}else{if(!(A=e.useCustomRule(b,l,e.schema,e)))return;o="validate.schema"+c,w=A.code,m=C.compile,v=C.inline,y=C.macro}var O=w+".errors",x="i"+a,D="ruleErr"+a,P=C.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(v||y||(i+=O+" = null;"),i+="var "+f+" = errors;var "+h+";",g&&C.$data&&(E+="}",i+=" if ("+o+" === undefined) { "+h+" = true; } else { ",S&&(E+="}",i+=" "+h+" = "+_+".validateSchema("+o+"); if ("+h+") { ")),v)C.statements?i+=" "+A.validate+" ":i+=" "+h+" = "+A.validate+"; ";else if(y){var M=e.util.copy(e);E="",M.level++;var T="valid"+M.level;M.schema=A.validate,M.schemaPath="";var R=e.compositeRule;e.compositeRule=M.compositeRule=!0;var I=e.validate(M).replace(/validate\.schema/g,w);e.compositeRule=M.compositeRule=R,i+=" "+I}else{(B=B||[]).push(i),i="",i+="  "+w+".call( ",e.opts.passContext?i+="this":i+="self",m||!1===C.schema?i+=" , "+p+" ":i+=" , "+o+" , "+p+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var F=s?"data"+(s-1||""):"parentData",k=s?e.dataPathArr[s]:"parentDataProperty",L=i+=" , "+F+" , "+k+" , rootData )  ";i=B.pop(),!1===C.errors?(i+=" "+h+" = ",P&&(i+="await "),i+=L+"; "):i+=P?" var "+(O="customErrors"+a)+" = null; try { "+h+" = await "+L+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+O+" = e.errors; else throw e; } ":" "+O+" = null; "+h+" = "+L+"; "}if(C.modifying&&(i+=" if ("+F+") "+p+" = "+F+"["+k+"];"),i+=""+E,C.valid)d&&(i+=" if (true) { ");else{var B;i+=" if ( ",void 0===C.valid?(i+=" !",i+=y?""+T:""+h):i+=" "+!C.valid+" ",i+=") { ",r=b.keyword,(B=B||[]).push(i),i="",(B=B||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+b.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+b.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var N=i;i=B.pop(),!e.compositeRule&&d?e.async?i+=" throw new ValidationError(["+N+"]); ":i+=" validate.errors = ["+N+"]; return false; ":i+=" var err = "+N+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var j=i;i=B.pop(),v?C.errors?"full"!=C.errors&&(i+="  for (var "+x+"="+f+"; "+x+"<errors; "+x+"++) { var "+D+" = vErrors["+x+"]; if ("+D+".dataPath === undefined) "+D+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+D+".schemaPath === undefined) { "+D+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+D+".schema = "+o+"; "+D+".data = "+p+"; "),i+=" } "):!1===C.errors?i+=" "+j+" ":(i+=" if ("+f+" == errors) { "+j+" } else {  for (var "+x+"="+f+"; "+x+"<errors; "+x+"++) { var "+D+" = vErrors["+x+"]; if ("+D+".dataPath === undefined) "+D+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+D+".schemaPath === undefined) { "+D+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+D+".schema = "+o+"; "+D+".data = "+p+"; "),i+=" } } "):y?(i+="   var err =   ",!1!==e.createErrors?(i+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+b.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+b.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ",i+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&d&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):!1===C.errors?i+=" "+j+" ":(i+=" if (Array.isArray("+O+")) { if (vErrors === null) vErrors = "+O+"; else vErrors = vErrors.concat("+O+"); errors = vErrors.length;  for (var "+x+"="+f+"; "+x+"<errors; "+x+"++) { var "+D+" = vErrors["+x+"]; if ("+D+".dataPath === undefined) "+D+".dataPath = (dataPath || '') + "+e.errorPath+";  "+D+'.schemaPath = "'+u+'";  ',e.opts.verbose&&(i+=" "+D+".schema = "+o+"; "+D+".data = "+p+"; "),i+=" } } else { "+j+" } "),i+=" } ",d&&(i+=" else { ")}return i}},46313(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||""),d="errs__"+o,p=e.util.copy(e),h="";p.level++;var f="valid"+p.level,g={},m={},v=e.opts.ownProperties;for(b in a)if("__proto__"!=b){var y=a[b],A=Array.isArray(y)?m:g;A[b]=y}r+="var "+d+" = errors;";var w=e.errorPath;for(var b in r+="var missing"+o+";",m)if((A=m[b]).length){if(r+=" if ( "+u+e.util.getProperty(b)+" !== undefined ",v&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(b)+"') "),c){r+=" && ( ";var _=A;if(_)for(var C=-1,E=_.length-1;C<E;)M=_[C+=1],C&&(r+=" || "),r+=" ( ( "+(F=u+(I=e.util.getProperty(M)))+" === undefined ",v&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(M)+"') "),r+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?M:I)+") ) ";r+=")) {  ";var S="missing"+o,O="' + "+S+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,S,!0):w+" + "+S);var x=x||[];x.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(b)+"', missingProperty: '"+O+"', depsCount: "+A.length+", deps: '"+e.util.escapeQuotes(1==A.length?A[0]:A.join(", "))+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should have ",1==A.length?r+="property "+e.util.escapeQuotes(A[0]):r+="properties "+e.util.escapeQuotes(A.join(", ")),r+=" when property "+e.util.escapeQuotes(b)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var D=r;r=x.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+D+"]); ":r+=" validate.errors = ["+D+"]; return false; ":r+=" var err = "+D+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var P=A;if(P)for(var M,T=-1,R=P.length-1;T<R;){M=P[T+=1];var I=e.util.getProperty(M),F=(O=e.util.escapeQuotes(M),u+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,M,e.opts.jsonPointers)),r+=" if ( "+F+" === undefined ",v&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(M)+"') "),r+=") {  var err =   ",!1!==e.createErrors?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(b)+"', missingProperty: '"+O+"', depsCount: "+A.length+", deps: '"+e.util.escapeQuotes(1==A.length?A[0]:A.join(", "))+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should have ",1==A.length?r+="property "+e.util.escapeQuotes(A[0]):r+="properties "+e.util.escapeQuotes(A.join(", ")),r+=" when property "+e.util.escapeQuotes(b)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" }   ",c&&(h+="}",r+=" else { ")}e.errorPath=w;var k=p.baseId;for(var b in g)y=g[b],(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all))&&(r+=" "+f+" = true; if ( "+u+e.util.getProperty(b)+" !== undefined ",v&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(b)+"') "),r+=") { ",p.schema=y,p.schemaPath=s+e.util.getProperty(b),p.errSchemaPath=l+"/"+e.util.escapeFragment(b),r+="  "+e.validate(p)+" ",p.baseId=k,r+=" }  ",c&&(r+=" if ("+f+") { ",h+="}"));return c&&(r+="   "+h+" if ("+d+" == errors) {"),r}},81997(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p=e.opts.$data&&a&&a.$data;p&&(r+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var h="i"+o,f="schema"+o;p||(r+=" var "+f+" = validate.schema"+s+";"),r+="var "+d+";",p&&(r+=" if (schema"+o+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+o+")) "+d+" = false; else {"),r+=d+" = false;for (var "+h+"=0; "+h+"<"+f+".length; "+h+"++) if (equal("+u+", "+f+"["+h+"])) { "+d+" = true; break; }",p&&(r+="  }  "),r+=" if (!"+d+") {   ";var g=g||[];g.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+o+" } ",!1!==e.opts.messages&&(r+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var m=r;return r=g.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+m+"]); ":r+=" validate.errors = ["+m+"]; return false; ":r+=" var err = "+m+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",c&&(r+=" else { "),r}},4243(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||"");if(!1===e.opts.format)return c&&(r+=" if (true) { "),r;var d,p=e.opts.$data&&a&&a.$data;p?(r+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",d="schema"+o):d=a;var h=e.opts.unknownFormats,f=Array.isArray(h);if(p)r+=" var "+(g="format"+o)+" = formats["+d+"]; var "+(m="isObject"+o)+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+(v="formatType"+o)+" = "+m+" && "+g+".type || 'string'; if ("+m+") { ",e.async&&(r+=" var async"+o+" = "+g+".async; "),r+=" "+g+" = "+g+".validate; } if (  ",p&&(r+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "),r+=" (","ignore"!=h&&(r+=" ("+d+" && !"+g+" ",f&&(r+=" && self._opts.unknownFormats.indexOf("+d+") == -1 "),r+=") || "),r+=" ("+g+" && "+v+" == '"+n+"' && !(typeof "+g+" == 'function' ? ",e.async?r+=" (async"+o+" ? await "+g+"("+u+") : "+g+"("+u+")) ":r+=" "+g+"("+u+") ",r+=" : "+g+".test("+u+"))))) {";else{var g;if(!(g=e.formats[a])){if("ignore"==h)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(r+=" if (true) { "),r;if(f&&h.indexOf(a)>=0)return c&&(r+=" if (true) { "),r;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var m,v=(m="object"==typeof g&&!(g instanceof RegExp)&&g.validate)&&g.type||"string";if(m){var y=!0===g.async;g=g.validate}if(v!=n)return c&&(r+=" if (true) { "),r;if(y){if(!e.async)throw new Error("async format in sync schema");r+=" if (!(await "+(A="formats"+e.util.getProperty(a)+".validate")+"("+u+"))) { "}else{r+=" if (! ";var A="formats"+e.util.getProperty(a);m&&(A+=".validate"),r+="function"==typeof g?" "+A+"("+u+") ":" "+A+".test("+u+") ",r+=") { "}}var w=w||[];w.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format:  ",r+=p?""+d:""+e.util.toQuotedString(a),r+="  } ",!1!==e.opts.messages&&(r+=" , message: 'should match format \"",r+=p?"' + "+d+" + '":""+e.util.escapeQuotes(a),r+="\"' "),e.opts.verbose&&(r+=" , schema:  ",r+=p?"validate.schema"+s:""+e.util.toQuotedString(a),r+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var b=r;return r=w.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+b+"]); ":r+=" validate.errors = ["+b+"]; return false; ":r+=" var err = "+b+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",c&&(r+=" else { "),r}},49295(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p="errs__"+o,h=e.util.copy(e);h.level++;var f="valid"+h.level,g=e.schema.then,m=e.schema.else,v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),A=h.baseId;if(v||y){var w;h.createErrors=!1,h.schema=a,h.schemaPath=s,h.errSchemaPath=l,r+=" var "+p+" = errors; var "+d+" = true;  ";var b=e.compositeRule;e.compositeRule=h.compositeRule=!0,r+="  "+e.validate(h)+" ",h.baseId=A,h.createErrors=!0,r+="  errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }  ",e.compositeRule=h.compositeRule=b,v?(r+=" if ("+f+") {  ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",r+="  "+e.validate(h)+" ",h.baseId=A,r+=" "+d+" = "+f+"; ",v&&y?r+=" var "+(w="ifClause"+o)+" = 'then'; ":w="'then'",r+=" } ",y&&(r+=" else { ")):r+=" if (!"+f+") { ",y&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",r+="  "+e.validate(h)+" ",h.baseId=A,r+=" "+d+" = "+f+"; ",v&&y?r+=" var "+(w="ifClause"+o)+" = 'else'; ":w="'else'",r+=" } "),r+=" if (!"+d+") {   var err =   ",!1!==e.createErrors?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+w+" } ",!1!==e.opts.messages&&(r+=" , message: 'should match \"' + "+w+" + '\" schema' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" }   ",c&&(r+=" else { ")}else c&&(r+=" if (true) { ");return r}},93890(e,t,n){"use strict";e.exports={$ref:n(47963),allOf:n(7916),anyOf:n(82945),$comment:n(33523),const:n(45433),contains:n(10877),dependencies:n(46313),enum:n(81997),format:n(4243),if:n(49295),items:n(24998),maximum:n(83732),minimum:n(83732),maxItems:n(18354),minItems:n(18354),maxLength:n(22204),minLength:n(22204),maxProperties:n(28921),minProperties:n(28921),multipleOf:n(10613),not:n(99387),oneOf:n(50539),pattern:n(99224),properties:n(95709),propertyNames:n(71449),required:n(85673),uniqueItems:n(21131),validate:n(88598)}},24998(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p="errs__"+o,h=e.util.copy(e),f="";h.level++;var g="valid"+h.level,m="i"+o,v=h.dataLevel=e.dataLevel+1,y="data"+v,A=e.baseId;if(r+="var "+p+" = errors;var "+d+";",Array.isArray(a)){var w=e.schema.additionalItems;if(!1===w){r+=" "+d+" = "+u+".length <= "+a.length+"; ";var b=l;l=e.errSchemaPath+"/additionalItems",r+="  if (!"+d+") {   ";var _=_||[];_.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(r+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var C=r;r=_.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+C+"]); ":r+=" validate.errors = ["+C+"]; return false; ":r+=" var err = "+C+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",l=b,c&&(f+="}",r+=" else { ")}var E=a;if(E)for(var S,O=-1,x=E.length-1;O<x;)if(S=E[O+=1],e.opts.strictKeywords?"object"==typeof S&&Object.keys(S).length>0||!1===S:e.util.schemaHasRules(S,e.RULES.all)){r+=" "+g+" = true; if ("+u+".length > "+O+") { ";var D=u+"["+O+"]";h.schema=S,h.schemaPath=s+"["+O+"]",h.errSchemaPath=l+"/"+O,h.errorPath=e.util.getPathExpr(e.errorPath,O,e.opts.jsonPointers,!0),h.dataPathArr[v]=O;var P=e.validate(h);h.baseId=A,e.util.varOccurences(P,y)<2?r+=" "+e.util.varReplace(P,y,D)+" ":r+=" var "+y+" = "+D+"; "+P+" ",r+=" }  ",c&&(r+=" if ("+g+") { ",f+="}")}"object"==typeof w&&(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))&&(h.schema=w,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",r+=" "+g+" = true; if ("+u+".length > "+a.length+") {  for (var "+m+" = "+a.length+"; "+m+" < "+u+".length; "+m+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0),D=u+"["+m+"]",h.dataPathArr[v]=m,P=e.validate(h),h.baseId=A,e.util.varOccurences(P,y)<2?r+=" "+e.util.varReplace(P,y,D)+" ":r+=" var "+y+" = "+D+"; "+P+" ",c&&(r+=" if (!"+g+") break; "),r+=" } }  ",c&&(r+=" if ("+g+") { ",f+="}"))}else(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all))&&(h.schema=a,h.schemaPath=s,h.errSchemaPath=l,r+="  for (var "+m+" = 0; "+m+" < "+u+".length; "+m+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0),D=u+"["+m+"]",h.dataPathArr[v]=m,P=e.validate(h),h.baseId=A,e.util.varOccurences(P,y)<2?r+=" "+e.util.varReplace(P,y,D)+" ":r+=" var "+y+" = "+D+"; "+P+" ",c&&(r+=" if (!"+g+") break; "),r+=" }");return c&&(r+=" "+f+" if ("+p+" == errors) {"),r}},10613(e){"use strict";e.exports=function(e,t,n){var r,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+i):r=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");o+="var division"+i+";if (",p&&(o+=" "+r+" !== undefined && ( typeof "+r+" != 'number' || "),o+=" (division"+i+" = "+d+" / "+r+", ",e.opts.multipleOfPrecision?o+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":o+=" division"+i+" !== parseInt(division"+i+") ",o+=" ) ",p&&(o+="  )  "),o+=" ) {   ";var h=h||[];h.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+r+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be multiple of ",o+=p?"' + "+r:r+"'"),e.opts.verbose&&(o+=" , schema:  ",o+=p?"validate.schema"+l:""+s,o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var f=o;return o=h.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+f+"]); ":o+=" validate.errors = ["+f+"]; return false; ":o+=" var err = "+f+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",u&&(o+=" else { "),o}},99387(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||""),d="errs__"+o,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=l,r+=" var "+d+" = errors;  ";var f,g=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1,p.opts.allErrors&&(f=p.opts.allErrors,p.opts.allErrors=!1),r+=" "+e.validate(p)+" ",p.createErrors=!0,f&&(p.opts.allErrors=f),e.compositeRule=p.compositeRule=g,r+=" if ("+h+") {   ";var m=m||[];m.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var v=r;r=m.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else {  errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else r+="  var err =   ",!1!==e.createErrors?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(r+=" if (false) { ");return r}},50539(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p="errs__"+o,h=e.util.copy(e),f="";h.level++;var g="valid"+h.level,m=h.baseId,v="prevValid"+o,y="passingSchemas"+o;r+="var "+p+" = errors , "+v+" = false , "+d+" = false , "+y+" = null; ";var A=e.compositeRule;e.compositeRule=h.compositeRule=!0;var w=a;if(w)for(var b,_=-1,C=w.length-1;_<C;)b=w[_+=1],(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))?(h.schema=b,h.schemaPath=s+"["+_+"]",h.errSchemaPath=l+"/"+_,r+="  "+e.validate(h)+" ",h.baseId=m):r+=" var "+g+" = true; ",_&&(r+=" if ("+g+" && "+v+") { "+d+" = false; "+y+" = ["+y+", "+_+"]; } else { ",f+="}"),r+=" if ("+g+") { "+d+" = "+v+" = true; "+y+" = "+_+"; }";return e.compositeRule=h.compositeRule=A,r+=f+"if (!"+d+") {   var err =   ",!1!==e.createErrors?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+y+" } ",!1!==e.opts.messages&&(r+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+="} else {  errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(r+=" } "),r}},99224(e){"use strict";e.exports=function(e,t,n){var r,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(a||""),p="valid"+i,h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+i):r=s;var f=e.opts.regExp?"regExp":"new RegExp";h?(o+=" var "+p+" = true; try { "+p+" = "+f+"("+r+").test("+d+"); } catch(e) { "+p+" = false; } if ( ",h&&(o+=" ("+r+" !== undefined && typeof "+r+" != 'string') || "),o+=" !"+p+") {"):(o+=" if ( ",h&&(o+=" ("+r+" !== undefined && typeof "+r+" != 'string') || "),o+=" !"+e.usePattern(s)+".test("+d+") ) {");var g=g||[];g.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern:  ",o+=h?""+r:""+e.util.toQuotedString(s),o+="  } ",!1!==e.opts.messages&&(o+=" , message: 'should match pattern \"",o+=h?"' + "+r+" + '":""+e.util.escapeQuotes(s),o+="\"' "),e.opts.verbose&&(o+=" , schema:  ",o+=h?"validate.schema"+l:""+e.util.toQuotedString(s),o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var m=o;return o=g.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",u&&(o+=" else { "),o}},95709(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||""),d="errs__"+o,p=e.util.copy(e),h="";p.level++;var f="valid"+p.level,g="key"+o,m="idx"+o,v=p.dataLevel=e.dataLevel+1,y="data"+v,A="dataProperties"+o,w=Object.keys(a||{}).filter(I),b=e.schema.patternProperties||{},_=Object.keys(b).filter(I),C=e.schema.additionalProperties,E=w.length||_.length,S=!1===C,O="object"==typeof C&&Object.keys(C).length,x=e.opts.removeAdditional,D=S||O||x,P=e.opts.ownProperties,M=e.baseId,T=e.schema.required;if(T&&(!e.opts.$data||!T.$data)&&T.length<e.opts.loopRequired)var R=e.util.toHash(T);function I(e){return"__proto__"!==e}if(r+="var "+d+" = errors;var "+f+" = true;",P&&(r+=" var "+A+" = undefined;"),D){if(r+=P?" "+A+" = "+A+" || Object.keys("+u+"); for (var "+m+"=0; "+m+"<"+A+".length; "+m+"++) { var "+g+" = "+A+"["+m+"]; ":" for (var "+g+" in "+u+") { ",E){if(r+=" var isAdditional"+o+" = !(false ",w.length)if(w.length>8)r+=" || validate.schema"+s+".hasOwnProperty("+g+") ";else{var F=w;if(F)for(var k=-1,L=F.length-1;k<L;)q=F[k+=1],r+=" || "+g+" == "+e.util.toQuotedString(q)+" "}if(_.length){var B=_;if(B)for(var N=-1,j=B.length-1;N<j;)ie=B[N+=1],r+=" || "+e.usePattern(ie)+".test("+g+") "}r+=" ); if (isAdditional"+o+") { "}if("all"==x)r+=" delete "+u+"["+g+"]; ";else{var U=e.errorPath,V="' + "+g+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers)),S)if(x)r+=" delete "+u+"["+g+"]; ";else{r+=" "+f+" = false; ";var H=l;l=e.errSchemaPath+"/additionalProperties",(ne=ne||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { additionalProperty: '"+V+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is an invalid additional property":r+="should NOT have additional properties",r+="' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var G=r;r=ne.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+G+"]); ":r+=" validate.errors = ["+G+"]; return false; ":r+=" var err = "+G+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=H,c&&(r+=" break; ")}else if(O)if("failing"==x){r+=" var "+d+" = errors;  ";var W=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=C,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var z=u+"["+g+"]";p.dataPathArr[v]=g;var $=e.validate(p);p.baseId=M,e.util.varOccurences($,y)<2?r+=" "+e.util.varReplace($,y,z)+" ":r+=" var "+y+" = "+z+"; "+$+" ",r+=" if (!"+f+") { errors = "+d+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+g+"]; }  ",e.compositeRule=p.compositeRule=W}else p.schema=C,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers),z=u+"["+g+"]",p.dataPathArr[v]=g,$=e.validate(p),p.baseId=M,e.util.varOccurences($,y)<2?r+=" "+e.util.varReplace($,y,z)+" ":r+=" var "+y+" = "+z+"; "+$+" ",c&&(r+=" if (!"+f+") break; ");e.errorPath=U}E&&(r+=" } "),r+=" }  ",c&&(r+=" if ("+f+") { ",h+="}")}var K=e.opts.useDefaults&&!e.compositeRule;if(w.length){var Q=w;if(Q)for(var q,Y=-1,X=Q.length-1;Y<X;){var Z=a[q=Q[Y+=1]];if(e.opts.strictKeywords?"object"==typeof Z&&Object.keys(Z).length>0||!1===Z:e.util.schemaHasRules(Z,e.RULES.all)){var J=e.util.getProperty(q),ee=(z=u+J,K&&void 0!==Z.default);if(p.schema=Z,p.schemaPath=s+J,p.errSchemaPath=l+"/"+e.util.escapeFragment(q),p.errorPath=e.util.getPath(e.errorPath,q,e.opts.jsonPointers),p.dataPathArr[v]=e.util.toQuotedString(q),$=e.validate(p),p.baseId=M,e.util.varOccurences($,y)<2){$=e.util.varReplace($,y,z);var te=z}else te=y,r+=" var "+y+" = "+z+"; ";if(ee)r+=" "+$+" ";else{if(R&&R[q]){r+=" if ( "+te+" === undefined ",P&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(q)+"') "),r+=") { "+f+" = false; ",U=e.errorPath,H=l;var ne,re=e.util.escapeQuotes(q);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(U,q,e.opts.jsonPointers)),l=e.errSchemaPath+"/required",(ne=ne||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+re+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+re+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",G=r,r=ne.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+G+"]); ":r+=" validate.errors = ["+G+"]; return false; ":r+=" var err = "+G+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=H,e.errorPath=U,r+=" } else { "}else c?(r+=" if ( "+te+" === undefined ",P&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(q)+"') "),r+=") { "+f+" = true; } else { "):(r+=" if ("+te+" !== undefined ",P&&(r+=" &&   Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(q)+"') "),r+=" ) { ");r+=" "+$+" } "}}c&&(r+=" if ("+f+") { ",h+="}")}}if(_.length){var oe=_;if(oe)for(var ie,ae=-1,se=oe.length-1;ae<se;)Z=b[ie=oe[ae+=1]],(e.opts.strictKeywords?"object"==typeof Z&&Object.keys(Z).length>0||!1===Z:e.util.schemaHasRules(Z,e.RULES.all))&&(p.schema=Z,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ie),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ie),r+=P?" "+A+" = "+A+" || Object.keys("+u+"); for (var "+m+"=0; "+m+"<"+A+".length; "+m+"++) { var "+g+" = "+A+"["+m+"]; ":" for (var "+g+" in "+u+") { ",r+=" if ("+e.usePattern(ie)+".test("+g+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers),z=u+"["+g+"]",p.dataPathArr[v]=g,$=e.validate(p),p.baseId=M,e.util.varOccurences($,y)<2?r+=" "+e.util.varReplace($,y,z)+" ":r+=" var "+y+" = "+z+"; "+$+" ",c&&(r+=" if (!"+f+") break; "),r+=" } ",c&&(r+=" else "+f+" = true; "),r+=" }  ",c&&(r+=" if ("+f+") { ",h+="}"))}return c&&(r+=" "+h+" if ("+d+" == errors) {"),r}},71449(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||""),d="errs__"+o,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(r+="var "+d+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=l;var f="key"+o,g="idx"+o,m="i"+o,v="' + "+f+" + '",y="data"+(p.dataLevel=e.dataLevel+1),A="dataProperties"+o,w=e.opts.ownProperties,b=e.baseId;w&&(r+=" var "+A+" = undefined; "),r+=w?" "+A+" = "+A+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+A+".length; "+g+"++) { var "+f+" = "+A+"["+g+"]; ":" for (var "+f+" in "+u+") { ",r+=" var startErrs"+o+" = errors; ";var _=f,C=e.compositeRule;e.compositeRule=p.compositeRule=!0;var E=e.validate(p);p.baseId=b,e.util.varOccurences(E,y)<2?r+=" "+e.util.varReplace(E,y,_)+" ":r+=" var "+y+" = "+_+"; "+E+" ",e.compositeRule=p.compositeRule=C,r+=" if (!"+h+") { for (var "+m+"=startErrs"+o+"; "+m+"<errors; "+m+"++) { vErrors["+m+"].propertyName = "+f+"; }   var err =   ",!1!==e.createErrors?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { propertyName: '"+v+"' } ",!1!==e.opts.messages&&(r+=" , message: 'property name \\'"+v+"\\' is invalid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),c&&(r+=" break; "),r+=" } }"}return c&&(r+="  if ("+d+" == errors) {"),r}},47963(e){"use strict";e.exports=function(e,t,n){var r,o,i=" ",a=e.level,s=e.dataLevel,l=e.schema[t],c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(s||""),p="valid"+a;if("#"==l||"#/"==l)e.isRoot?(r=e.async,o="validate"):(r=!0===e.root.schema.$async,o="root.refVal[0]");else{var h=e.resolveRef(e.baseId,l,e.isRoot);if(void 0===h){var f=e.MissingRefError.message(e.baseId,l);if("fail"==e.opts.missingRefs){e.logger.error(f),(y=y||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",!1!==e.opts.messages&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var g=i;i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(i+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,l,f);e.logger.warn(f),u&&(i+=" if (true) { ")}}else if(h.inline){var m=e.util.copy(e);m.level++;var v="valid"+m.level;m.schema=h.schema,m.schemaPath="",m.errSchemaPath=l,i+=" "+e.validate(m).replace(/validate\.schema/g,h.code)+" ",u&&(i+=" if ("+v+") { ")}else r=!0===h.$async||e.async&&!1!==h.$async,o=h.code}if(o){var y;(y=y||[]).push(i),i="",e.opts.passContext?i+=" "+o+".call(this, ":i+=" "+o+"( ",i+=" "+d+", (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var A=i+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData)  ";if(i=y.pop(),r){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(i+=" var "+p+"; "),i+=" try { await "+A+"; ",u&&(i+=" "+p+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(i+=" "+p+" = false; "),i+=" } ",u&&(i+=" if ("+p+") { ")}else i+=" if (!"+A+") { if (vErrors === null) vErrors = "+o+".errors; else vErrors = vErrors.concat("+o+".errors); errors = vErrors.length; } ",u&&(i+=" else { ")}return i}},85673(e){"use strict";e.exports=function(e,t,n){var r=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(i||""),d="valid"+o,p=e.opts.$data&&a&&a.$data;p&&(r+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var h="schema"+o;if(!p)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var f=[],g=a;if(g)for(var m,v=-1,y=g.length-1;v<y;){m=g[v+=1];var A=e.schema.properties[m];A&&(e.opts.strictKeywords?"object"==typeof A&&Object.keys(A).length>0||!1===A:e.util.schemaHasRules(A,e.RULES.all))||(f[f.length]=m)}}else f=a;if(p||f.length){var w=e.errorPath,b=p||f.length>=e.opts.loopRequired,_=e.opts.ownProperties;if(c)if(r+=" var missing"+o+"; ",b){p||(r+=" var "+h+" = validate.schema"+s+"; ");var C="' + "+(P="schema"+o+"["+(x="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,P,e.opts.jsonPointers)),r+=" var "+d+" = true; ",p&&(r+=" if (schema"+o+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+o+")) "+d+" = false; else {"),r+=" for (var "+x+" = 0; "+x+" < "+h+".length; "+x+"++) { "+d+" = "+u+"["+h+"["+x+"]] !== undefined ",_&&(r+=" &&   Object.prototype.hasOwnProperty.call("+u+", "+h+"["+x+"]) "),r+="; if (!"+d+") break; } ",p&&(r+="  }  "),r+="  if (!"+d+") {   ",(S=S||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var E=r;r=S.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var S,O=f;if(O)for(var x=-1,D=O.length-1;x<D;)T=O[x+=1],x&&(r+=" || "),r+=" ( ( "+(k=u+(F=e.util.getProperty(T)))+" === undefined ",_&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(T)+"') "),r+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?T:F)+") ) ";r+=") {  ",C="' + "+(P="missing"+o)+" + '",e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,P,!0):w+" + "+P),(S=S||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",E=r,r=S.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(b){var P;p||(r+=" var "+h+" = validate.schema"+s+"; "),C="' + "+(P="schema"+o+"["+(x="i"+o)+"]")+" + '",e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,P,e.opts.jsonPointers)),p&&(r+=" if ("+h+" && !Array.isArray("+h+")) {  var err =   ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),r+=" for (var "+x+" = 0; "+x+" < "+h+".length; "+x+"++) { if ("+u+"["+h+"["+x+"]] === undefined ",_&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+h+"["+x+"]) "),r+=") {  var err =   ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(r+="  }  ")}else{var M=f;if(M)for(var T,R=-1,I=M.length-1;R<I;){T=M[R+=1];var F=e.util.getProperty(T),k=(C=e.util.escapeQuotes(T),u+F);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,T,e.opts.jsonPointers)),r+=" if ( "+k+" === undefined ",_&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(T)+"') "),r+=") {  var err =   ",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+C+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=w}else c&&(r+=" if (true) {");return r}},21131(e){"use strict";e.exports=function(e,t,n){var r,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,d="data"+(a||""),p="valid"+i,h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+i):r=s,(s||h)&&!1!==e.opts.uniqueItems){h&&(o+=" var "+p+"; if ("+r+" === false || "+r+" === undefined) "+p+" = true; else if (typeof "+r+" != 'boolean') "+p+" = false; else { "),o+=" var i = "+d+".length , "+p+" = true , j; if (i > 1) { ";var f=e.schema.items&&e.schema.items.type,g=Array.isArray(f);if(!f||"object"==f||"array"==f||g&&(f.indexOf("object")>=0||f.indexOf("array")>=0))o+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+p+" = false; break outer; } } } ";else{o+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var m="checkDataType"+(g?"s":"");o+=" if ("+e.util[m](f,"item",e.opts.strictNumbers,!0)+") continue; ",g&&(o+=" if (typeof item == 'string') item = '\"' + item; "),o+=" if (typeof itemIndices[item] == 'number') { "+p+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}o+=" } ",h&&(o+="  }  "),o+=" if (!"+p+") {   ";var v=v||[];v.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(o+=" , schema:  ",o+=h?"validate.schema"+l:""+s,o+="         , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var y=o;o=v.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+y+"]); ":o+=" validate.errors = ["+y+"]; return false; ":o+=" var err = "+y+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",u&&(o+=" else { ")}else u&&(o+=" if (true) { ");return o}},88598(e){"use strict";e.exports=function(e,t,n){var r="",o=!0===e.schema.$async,i=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var l="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(l);e.logger.warn(l)}}if(e.isTop&&(r+=" var validate = ",o&&(e.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(r+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!i&&!e.schema.$ref){t="false schema";var c=e.level,u=e.dataLevel,d=e.schema[t],p=e.schemaPath+e.util.getProperty(t),h=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,g="data"+(u||""),m="valid"+c;if(!1===e.schema){e.isTop?f=!0:r+=" var "+m+" = false; ",(z=z||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'boolean schema is false' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";var v=r;r=z.pop(),!e.compositeRule&&f?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?r+=o?" return data; ":" validate.errors = null; return true; ":r+=" var "+m+" = true; ";return e.isTop&&(r+=" }; return validate; "),r}if(e.isTop){var y=e.isTop;if(c=e.level=0,u=e.dataLevel=0,g="data",e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var A="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(A);e.logger.warn(A)}r+=" var vErrors = null; ",r+=" var errors = 0;     ",r+=" if (rootData === undefined) rootData = data; "}else{if(c=e.level,g="data"+((u=e.dataLevel)||""),a&&(e.baseId=e.resolve.url(e.baseId,a)),o&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+c+" = errors;"}m="valid"+c,f=!e.opts.allErrors;var w="",b="",_=e.schema.type,C=Array.isArray(_);if(_&&e.opts.nullable&&!0===e.schema.nullable&&(C?-1==_.indexOf("null")&&(_=_.concat("null")):"null"!=_&&(_=[_,"null"],C=!0)),C&&1==_.length&&(_=_[0],C=!1),e.schema.$ref&&i){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(i=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(r+=" "+e.RULES.all.$comment.code(e,"$comment")),_){if(e.opts.coerceTypes)var E=e.util.coerceToTypes(e.opts.coerceTypes,_);var S=e.RULES.types[_];if(E||C||!0===S||S&&!X(S)){p=e.schemaPath+".type",h=e.errSchemaPath+"/type",p=e.schemaPath+".type",h=e.errSchemaPath+"/type";var O=C?"checkDataTypes":"checkDataType";if(r+=" if ("+e.util[O](_,g,e.opts.strictNumbers,!0)+") { ",E){var x="dataType"+c,D="coerced"+c;r+=" var "+x+" = typeof "+g+"; var "+D+" = undefined; ","array"==e.opts.coerceTypes&&(r+=" if ("+x+" == 'object' && Array.isArray("+g+") && "+g+".length == 1) { "+g+" = "+g+"[0]; "+x+" = typeof "+g+"; if ("+e.util.checkDataType(e.schema.type,g,e.opts.strictNumbers)+") "+D+" = "+g+"; } "),r+=" if ("+D+" !== undefined) ; ";var P=E;if(P)for(var M,T=-1,R=P.length-1;T<R;)"string"==(M=P[T+=1])?r+=" else if ("+x+" == 'number' || "+x+" == 'boolean') "+D+" = '' + "+g+"; else if ("+g+" === null) "+D+" = ''; ":"number"==M||"integer"==M?(r+=" else if ("+x+" == 'boolean' || "+g+" === null || ("+x+" == 'string' && "+g+" && "+g+" == +"+g+" ","integer"==M&&(r+=" && !("+g+" % 1)"),r+=")) "+D+" = +"+g+"; "):"boolean"==M?r+=" else if ("+g+" === 'false' || "+g+" === 0 || "+g+" === null) "+D+" = false; else if ("+g+" === 'true' || "+g+" === 1) "+D+" = true; ":"null"==M?r+=" else if ("+g+" === '' || "+g+" === 0 || "+g+" === false) "+D+" = null; ":"array"==e.opts.coerceTypes&&"array"==M&&(r+=" else if ("+x+" == 'string' || "+x+" == 'number' || "+x+" == 'boolean' || "+g+" == null) "+D+" = ["+g+"]; ");r+=" else {   ",(z=z||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",r+=C?""+_.join(","):""+_,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=C?""+_.join(","):""+_,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ",v=r,r=z.pop(),!e.compositeRule&&f?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+D+" !== undefined) {  ";var I=u?"data"+(u-1||""):"parentData";r+=" "+g+" = "+D+"; ",u||(r+="if ("+I+" !== undefined)"),r+=" "+I+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+D+"; } "}else(z=z||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",r+=C?""+_.join(","):""+_,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=C?""+_.join(","):""+_,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ",v=r,r=z.pop(),!e.compositeRule&&f?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";r+=" } "}}if(e.schema.$ref&&!i)r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",f&&(r+=" } if (errors === ",r+=y?"0":"errs_"+c,r+=") { ",b+="}");else{var F=e.RULES;if(F)for(var k=-1,L=F.length-1;k<L;)if(X(S=F[k+=1])){if(S.type&&(r+=" if ("+e.util.checkDataType(S.type,g,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==S.type&&e.schema.properties){d=e.schema.properties;var B=Object.keys(d);if(B)for(var N,j=-1,U=B.length-1;j<U;)if(void 0!==(G=d[N=B[j+=1]]).default){var V=g+e.util.getProperty(N);if(e.compositeRule){if(e.opts.strictDefaults){if(A="default is ignored for: "+V,"log"!==e.opts.strictDefaults)throw new Error(A);e.logger.warn(A)}}else r+=" if ("+V+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+V+" === null || "+V+" === '' "),r+=" ) "+V+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(G.default)+" ":r+=" "+JSON.stringify(G.default)+" ",r+="; "}}else if("array"==S.type&&Array.isArray(e.schema.items)){var H=e.schema.items;if(H){T=-1;for(var G,W=H.length-1;T<W;)if(void 0!==(G=H[T+=1]).default)if(V=g+"["+T+"]",e.compositeRule){if(e.opts.strictDefaults){if(A="default is ignored for: "+V,"log"!==e.opts.strictDefaults)throw new Error(A);e.logger.warn(A)}}else r+=" if ("+V+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+V+" === null || "+V+" === '' "),r+=" ) "+V+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(G.default)+" ":r+=" "+JSON.stringify(G.default)+" ",r+="; "}}var z,$=S.rules;if($)for(var K,Q=-1,q=$.length-1;Q<q;)if(Z(K=$[Q+=1])){var Y=K.code(e,K.keyword,S.type);Y&&(r+=" "+Y+" ",f&&(w+="}"))}f&&(r+=" "+w+" ",w=""),S.type&&(r+=" } ",_&&_===S.type&&!E)&&(r+=" else { ",p=e.schemaPath+".type",h=e.errSchemaPath+"/type",(z=z||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",r+=C?""+_.join(","):""+_,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=C?""+_.join(","):""+_,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ",v=r,r=z.pop(),!e.compositeRule&&f?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "),f&&(r+=" if (errors === ",r+=y?"0":"errs_"+c,r+=") { ",b+="}")}}function X(e){for(var t=e.rules,n=0;n<t.length;n++)if(Z(t[n]))return!0}function Z(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var n=t.implements,r=0;r<n.length;r++)if(void 0!==e.schema[n[r]])return!0}(t)}return f&&(r+=" "+b+" "),y?(o?(r+=" if (errors === 0) return data;           ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0;       "),r+=" }; return validate;"):r+=" var "+m+" = errors === errs_"+c+";",r}},18285(e,t,n){"use strict";var r=/^[a-z_$][a-z0-9_$-]*$/i,o=n(31887),i=n(1572);e.exports={add:function(e,t){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!r.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var i=t.type;if(Array.isArray(i))for(var a=0;a<i.length;a++)l(e,i[a],t);else l(e,i,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function l(e,t,r){for(var i,a=0;a<n.length;a++){var s=n[a];if(s.type==t){i=s;break}}i||(i={type:t,rules:[]},n.push(i));var l={keyword:e,definition:r,custom:!0,code:o,implements:r.implements};i.rules.push(l),n.custom[e]=l}return n.keywords[e]=n.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var n=0;n<t.length;n++)for(var r=t[n].rules,o=0;o<r.length;o++)if(r[o].keyword==e){r.splice(o,1);break}return this},validate:function e(t,n){e.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(i,!0);if(r(t))return!0;if(e.errors=r.errors,n)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}}},48726(e,t){"use strict";if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;n("react.element"),n("react.portal"),n("react.fragment"),n("react.strict_mode"),n("react.profiler"),n("react.provider"),n("react.context"),n("react.forward_ref"),n("react.suspense"),n("react.suspense_list"),n("react.memo"),n("react.lazy"),n("react.block"),n("react.server.block"),n("react.fundamental"),n("react.debug_trace_mode"),n("react.legacy_hidden")}},15994(e,t,n){"use strict";n(48726)},49004(e,t,n){"use strict";var r=n(10646),o=n(50709),i=n(43225),a=Math.pow(2,31)-1;function s(e,t){var n,r=1;if(0===e)return t;if(0===t)return e;for(;e%2==0&&t%2==0;)e/=2,t/=2,r*=2;for(;e%2==0;)e/=2;for(;t;){for(;t%2==0;)t/=2;e>t&&(n=t,t=e,e=n),t-=e}return r*e}function l(e,t){var n,r=0;if(0===e)return t;if(0===t)return e;for(;!(1&e||1&t);)e>>>=1,t>>>=1,r++;for(;!(1&e);)e>>>=1;for(;t;){for(;!(1&t);)t>>>=1;e>t&&(n=t,t=e,e=n),t-=e}return e<<r}e.exports=function(){var e,t,n,c,u,d,p,h=arguments.length;for(e=new Array(h),p=0;p<h;p++)e[p]=arguments[p];if(o(e)){if(2===h)return(u=e[0])<0&&(u=-u),(d=e[1])<0&&(d=-d),u<=a&&d<=a?l(u,d):s(u,d);n=e}else{if(!r(e[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(h>1){if(n=e[0],t=e[1],!i(t))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else n=e[0]}if((c=n.length)<2)return null;if(t){for(u=new Array(c),p=0;p<c;p++)u[p]=t(n[p],p);n=u}if(h<3&&!o(n))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+n+"`.");for(p=0;p<c;p++)(u=n[p])<0&&(n[p]=-u);for(u=n[0],p=1;p<c;p++)u=(d=n[p])<=a&&u<=a?l(u,d):s(u,d);return u}},23050(e,t,n){"use strict";var r=n(49004),o=n(10646),i=n(50709),a=n(43225);e.exports=function(){var e,t,n,s,l,c,u,d=arguments.length;for(e=new Array(d),u=0;u<d;u++)e[u]=arguments[u];if(i(e)){if(2===d)return(l=e[0])<0&&(l=-l),(c=e[1])<0&&(c=-c),0===l||0===c?0:l/r(l,c)*c;n=e}else{if(!o(e[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(d>1){if(n=e[0],t=e[1],!a(t))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else n=e[0]}if((s=n.length)<2)return null;if(t){for(l=new Array(s),u=0;u<s;u++)l[u]=t(n[u],u);n=l}if(d<3&&!i(n))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+n+"`.");for(u=0;u<s;u++)(l=n[u])<0&&(n[u]=-l);for(l=n[0],u=1;u<s;u++){if(c=n[u],0===l||0===c)return 0;l=l/r(l,c)*c}return l}},52743(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||o,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var c=Array.isArray(n);return c===Array.isArray(e)?c?l.arrayMerge(e,n,l):function(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach(function(t){o[t]=r(e[t],n)}),i(t).forEach(function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))}),o}(e,n,l):r(n,l)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})};var l=s;e.exports=l},35992(e,t,n){const r=n(44027);e.exports=r},44027(e){e.exports=class{constructor(e={}){this.trie={},this.ignoreCase=void 0===e.ignoreCase||!!e.ignoreCase}put(e,t,n=!1){this.ignoreCase&&(e=e.toLowerCase());let r=this.trie;if(n)for(let t=e.length-1;t>=0;--t){const n=e.charAt(t);r[n]||(r[n]={}),r=r[n]}else for(let t=0;t<e.length;++t){const n=e.charAt(t);r[n]||(r[n]={}),r=r[n]}return r.__=t,this}putAll(e,t,n=!1){const r="[object Array]"===toString.call(t);for(let o=0;o<e.length;++o)this.put(e[o],r?t[o]:t,n);return this}get(e,t=!1){this.ignoreCase&&(e=e.toLowerCase());let n=this.trie;if(t)for(let t=e.length-1;t>=0;--t){let r=n[e.charAt(t)];if(!r)return;n=r}else for(let t=0;t<e.length;t++){let r=n[e.charAt(t)];if(!r)return;n=r}return n.__}getAll(e,t=!1){const n=new Array(e.length);for(let r=0;r<e.length;++r)n[r]=this.get(e[r],t);return n}has(e,t=!1){return void 0!==this.get(e,t)}hasAll(e,t=!1){const n=new Array(e.length);for(let r=0;r<e.length;++r)n[r]=this.has(e[r],t);return n}getWithCheckpoints(e,t=null,n=!1){let r;this.ignoreCase&&(e=e.toLowerCase());let o=this.trie;if(n)for(let n=e.length-1;n>=0;--n){const i=e.charAt(n);let a=o[i];if(!a)break;if(null===t||i===t){const e=o.__;e&&(r=e)}o=a}else for(let n=0;n<e.length;++n){const i=e.charAt(n);let a=o[i];if(!a)break;if(i===t){const e=o.__;e&&(r=e)}o=a}const i=o.__;return i&&(r=i),r}getAllWithCheckpoints(e,t=null,n=!1){const r=new Array(e.length);for(let o=0;o<e.length;++o)r[o]=this.getWithCheckpoints(e[o],t,n);return r}hasWithCheckpoints(e,t=null,n=!1){return void 0!==this.getWithCheckpoints(e,t,n)}hasAllWithCheckpoints(e,t=null,n=!1){const r=new Array(e.length);for(let o=0;o<e.length;++o)r[o]=this.hasWithCheckpoints(e[o],t,n);return r}}},89710(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(f&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(f,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}},38792(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},56075(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,o=t.cmp&&(n=t.cmp,function(e){return function(t,r){var o={key:t,value:e[t]},i={key:r,value:e[r]};return n(o,i)}}),i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1,l=Object.keys(t).sort(o&&o(t));for(a="",n=0;n<l.length;n++){var c=l[n],u=e(t[c]);u&&(a&&(a+=","),a+=JSON.stringify(c)+":"+u)}return i.splice(s,1),"{"+a+"}"}}(e)}},71680(e){e.exports=function(){"use strict";var e=/^(b|B)$/,t={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},n={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},r={floor:Math.floor,ceil:Math.ceil};function o(o){var i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_,C,E,S,O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},x=[],D=0;if(isNaN(o))throw new TypeError("Invalid number");if(s=!0===O.bits,A=!0===O.unix,m=!0===O.pad,a=O.base||2,v=void 0!==O.round?O.round:A?1:2,d=void 0!==O.locale?O.locale:"",p=O.localeOptions||{},w=void 0!==O.separator?O.separator:"",b=void 0!==O.spacer?O.spacer:A?"":" ",C=O.symbols||{},_=2===a&&O.standard||"jedec",g=O.output||"string",c=!0===O.fullform,u=O.fullforms instanceof Array?O.fullforms:[],i=void 0!==O.exponent?O.exponent:-1,E=r[O.roundingMethod]||Math.round,h=(f=Number(o))<0,l=a>2?1e3:1024,S=!1===isNaN(O.precision)?parseInt(O.precision,10):0,h&&(f=-f),(-1===i||isNaN(i))&&(i=Math.floor(Math.log(f)/Math.log(l)))<0&&(i=0),i>8&&(S>0&&(S+=8-i),i=8),"exponent"===g)return i;if(0===f)x[0]=0,y=x[1]=A?"":t[_][s?"bits":"bytes"][i];else{D=f/(2===a?Math.pow(2,10*i):Math.pow(1e3,i)),s&&(D*=8)>=l&&i<8&&(D/=l,i++);var P=Math.pow(10,i>0?v:0);x[0]=E(D*P)/P,x[0]===l&&i<8&&void 0===O.exponent&&(x[0]=1,i++),y=x[1]=10===a&&1===i?s?"kb":"kB":t[_][s?"bits":"bytes"][i],A&&(x[1]="jedec"===_?x[1].charAt(0):i>0?x[1].replace(/B$/,""):x[1],e.test(x[1])&&(x[0]=Math.floor(x[0]),x[1]=""))}if(h&&(x[0]=-x[0]),S>0&&(x[0]=x[0].toPrecision(S)),x[1]=C[x[1]]||x[1],!0===d?x[0]=x[0].toLocaleString():d.length>0?x[0]=x[0].toLocaleString(d,p):w.length>0&&(x[0]=x[0].toString().replace(".",w)),m&&!1===Number.isInteger(x[0])&&v>0){var M=w||".",T=x[0].toString().split(M),R=T[1]||"",I=R.length,F=v-I;x[0]="".concat(T[0]).concat(M).concat(R.padEnd(I+F,"0"))}return c&&(x[1]=u[i]?u[i]:n[_][i]+(s?"bit":"byte")+(1===x[0]?"":"s")),"array"===g?x:"object"===g?{value:x[0],symbol:x[1],exponent:i,unit:y}:x.join(b)}return o.partial=function(e){return function(t){return o(t,e)}},o}()},75985(e,t,n){"use strict";var r=n(524),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=h(n);o&&o!==f&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||r&&r[v]||g&&g[v]||s&&s[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},92776(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function h(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new g(e),y(),t}}function g(e){this.start=e,this.end={line:d,column:p},this.source=l.source}function m(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n}function v(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function y(){v(r)}function A(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return p+=2,h(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function b(){var e=f(),n=v(o);if(n){if(w(),!v(i))return m("property missing ':'");var r=v(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(s),l}}return g.prototype.content=e,y(),function(){var e,t=[];for(A(t);e=b();)!1!==e&&(t.push(e),A(t));return t}()}},78958(e){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},12651(e,t,n){var r=n(46343),o=n(40074),i=n(82438),a=n(19106),s=n(32293),l=n(30306),c=n(48360),u=n(22563),d=e=>Array.isArray(e)?e:[e],p=e=>void 0===e,h=e=>c(e)||Array.isArray(e)?Object.keys(e):[],f=(e,t)=>e.hasOwnProperty(t),g=e=>o(i(e)),m=e=>p(e)||Array.isArray(e)&&0===e.length,v=(e,t)=>p(e)&&0===t||p(t)&&0===e||r(e,t),y=e=>p(e)||r(e,{})||!0===e,A=e=>p(e)||r(e,{}),w=e=>p(e)||c(e)||!0===e||!1===e;function b(e,t){return!(!m(e)||!m(t))||r(g(e),g(t))}function _(e,t,n,o){var a=i(h(e).concat(h(t)));return!(!A(e)||!A(t))||(!A(e)||!h(t).length)&&(!A(t)||!h(e).length)&&a.every(function(n){var i=e[n],a=t[n];return Array.isArray(i)&&Array.isArray(a)?r(g(e),g(t)):!(Array.isArray(i)&&!Array.isArray(a))&&!(Array.isArray(a)&&!Array.isArray(i))&&((e,t,n,r)=>t&&f(t,n)&&e&&f(e,n)&&r(e[n],t[n]))(e,t,n,o)})}function C(e,t,n,r){var o=a(e,r),i=a(t,r);return l(o,i,r).length===Math.max(o.length,i.length)}var E={title:r,uniqueItems:(e,t)=>p(e)&&!1===t||p(t)&&!1===e||r(e,t),minLength:v,minItems:v,minProperties:v,required:b,enum:b,type:function(e,t){return e=d(e),t=d(t),r(g(e),g(t))},items:function(e,t,n,o){return c(e)&&c(t)?o(e,t):Array.isArray(e)&&Array.isArray(t)?_(e,t,0,o):r(e,t)},anyOf:C,allOf:C,oneOf:C,properties:_,patternProperties:_,dependencies:_},S=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],O=["additionalProperties","additionalItems","contains","propertyNames","not"];e.exports=function e(t,n,o){if(o=s(o,{ignore:[]}),y(t)&&y(n))return!0;if(!w(t)||!w(n))throw new Error("Either of the values are not a JSON schema.");if(t===n)return!0;if(u(t)&&u(n))return t===n;if(void 0===t&&!1===n||void 0===n&&!1===t)return!1;if(p(t)&&!p(n)||!p(t)&&p(n))return!1;var a=i(Object.keys(t).concat(Object.keys(n)));if(o.ignore.length&&(a=a.filter(e=>-1===o.ignore.indexOf(e))),!a.length)return!0;function l(t,n){return e(t,n,o)}return a.every(function(i){var a=t[i],s=n[i];if(-1!==O.indexOf(i))return e(a,s,o);var c=E[i];if(c||(c=r),r(a,s))return!0;if(-1===S.indexOf(i)&&(!f(t,i)&&f(n,i)||f(t,i)&&!f(n,i)))return a===s;var d=c(a,s,i,l);if(!u(d))throw new Error("Comparer must return true or false");return d})}},587(e,t,n){var r=n(46108),o=n(12651),i=n(23050),a=n(69383),s=n(75857),l=n(53435),c=n(58150),u=n(30306),d=n(46343),p=n(48360),h=n(70581),f=n(40074),g=n(83657),m=n(82438),v=n(19106),y=n(30795),A=(e,...t)=>y.apply(null,[e].concat(s(t))),w=e=>_(W,e),b=e=>_(z,e),_=(e,t)=>-1!==e.indexOf(t),C=e=>!B(e).length&&!1!==e&&!0!==e,E=e=>p(e)||!0===e||!1===e,S=e=>!1===e,O=e=>!0===e,x=(e,t,n)=>n(e),D=e=>f(m(l(e))),P=e=>void 0!==e,M=e=>m(l(e.map(B))),T=e=>e[0],R=e=>Math.max.apply(Math,e),I=e=>Math.min.apply(Math,e);function F(e){if(Array.isArray(e.allOf)){var t=e.allOf;return delete e.allOf,[e].concat(t.map(function(e){return F(e)}))}return[e]}function k(e,t){return e.map(function(e){return e&&e[t]})}function L(e,t){return e.map(function(e){if(e){if(!Array.isArray(e.items))return e.items;var n=e.items[t];return E(n)?n:e.hasOwnProperty("additionalItems")?e.additionalItems:void 0}})}function B(e){return p(e)||Array.isArray(e)?Object.keys(e):[]}function N(e,t){if(t=t||[],!e.length)return t;var n=e.slice(0).shift(),r=e.slice(1);return t.length?N(r,s(t.map(e=>n.map(t=>[t].concat(e))))):N(r,n.map(e=>e))}function j(e,t){var n;try{n=e.map(function(e){return JSON.stringify(e,null,2)}).join("\n")}catch(t){n=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+n)}function U(e,t,n){return function(r,o){if(void 0===o)throw new Error("You need to call merger with a key for the property name or index if array.");return o=String(o),e(r,null,n.concat(t,o))}}function V(e,t,n,r,i,a){if(e.length){var s=i.resolvers[t];if(!s)throw new Error("No resolver found for "+t);var l=v(n.map(function(t){return e.reduce(function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e},{})}).filter(P),o),c=("properties"===t?W:z).reduce(function(e,t){return _($,t)?e[t]=U(r,t,a):e[t]=function(e){return r(e,null,a.concat(t))},e},{});"items"===t&&(c.itemsArray=U(r,"items",a),c.items=function(e){return r(e,null,a.concat("items"))});var u=s(l,a.concat(t),c,i);return p(u)||j(l,a.concat(t)),function(e){for(var t in e)e.hasOwnProperty(t)&&C(e[t])&&delete e[t];return e}(u)}}function H(e,t,n){var r=M(n||e),i=n?L:k;return r.reduce(function(n,r){var a=i(e,r),s=v(a.filter(P),o);return n[r]=t(s,r),n},n?[]:{})}function G(e){return{required:e}}var W=["properties","patternProperties","additionalProperties"],z=["items","additionalItems"],$=["properties","patternProperties","definitions","dependencies"],K=["anyOf","oneOf"],Q=["additionalProperties","additionalItems","contains","propertyNames","not","items"],q={type(e){if(e.some(Array.isArray)){var t=e.map(function(e){return Array.isArray(e)?e:[e]}),n=c.apply(null,t);if(1===n.length)return n[0];if(n.length>1)return m(n)}},properties(e,t,n,r){r.ignoreAdditionalProperties||(e.forEach(function(t){var r=e.filter(e=>e!==t),o=B(t.properties),i=B(t.patternProperties).map(e=>new RegExp(e));r.forEach(function(e){var r=B(e.properties),a=r.filter(e=>i.some(t=>t.test(e)));A(r,o,a).forEach(function(r){e.properties[r]=n.properties([e.properties[r],t.additionalProperties],r)})})}),e.forEach(function(t){var n=e.filter(e=>e!==t),r=B(t.patternProperties);!1===t.additionalProperties&&n.forEach(function(e){var t=B(e.patternProperties);A(t,r).forEach(t=>delete e.patternProperties[t])})}));var o,i={additionalProperties:n.additionalProperties(e.map(e=>e.additionalProperties)),patternProperties:H(e.map(e=>e.patternProperties),n.patternProperties),properties:H(e.map(e=>e.properties),n.properties)};return!1===i.additionalProperties&&g(o=i.properties,function(e,t){!1===e&&delete o[t]}),i},dependencies:(e,t,n)=>M(e).reduce(function(t,r){var i=k(e,r),a=v(i.filter(P),d),s=a.filter(Array.isArray);if(s.length){if(s.length===a.length)t[r]=D(a);else{var l=a.filter(E),c=s.map(G);t[r]=n(l.concat(c),r)}return t}return a=v(a,o),t[r]=n(a,r),t},{}),items(e,t,n){var r,o,i=e.map(e=>e.items),a=i.filter(P),s={};return a.every(E)?s.items=n.items(i):s.items=H(e,n.itemsArray,i),a.every(Array.isArray)?r=e.map(e=>e.additionalItems):a.some(Array.isArray)&&(r=e.map(function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items})),r&&(s.additionalItems=n.additionalItems(r)),!1===s.additionalItems&&Array.isArray(s.items)&&(o=s.items,g(o,function(e,t){!1===e&&o.splice(t,1)})),s},oneOf(e,t,n){var i=function(e,t){return e.map(function(e,n){try{return t(e,n)}catch(e){return}}).filter(P)}(N(r(e)),n),a=v(i,o);if(a.length)return a},not:e=>({anyOf:e}),pattern(e,t,n,r,o){var i=t.pop();o(e.map(function(e){return{[i]:e}}))},multipleOf(e){for(var t=e.slice(0),n=1;t.some(e=>!Number.isInteger(e));)t=t.map(e=>10*e),n*=10;return i(t)/n},enum(e){var t=u.apply(null,e.concat(d));if(t.length)return f(t)}};function Y(e,t,n){return n=n||[],t=a(t,{ignoreAdditionalProperties:!1,resolvers:q}),function e(i,a,s){i=r(i.filter(P)),s=s||[];var l=p(a)?a:{};if(i.length){if(i.some(S))return!1;if(i.every(O))return!0;i=i.filter(p);var c=M(i);if(_(c,"allOf"))return Y({allOf:i},t,n);var u=c.filter(w);h(c,u);var d=c.filter(b);return h(c,d),c.forEach(function(n){var r=k(i,n),a=v(r.filter(P),function(e){return function(t,n){return o({[e]:t},{[e]:n})}}(n));if(1===a.length&&_(K,n))l[n]=a[0].map(function(t){return e([t],t)});else if(1!==a.length||_($,n)||_(Q,n)){var c,u=t.resolvers[n]||t.resolvers.defaultResolver;if(!u)throw new Error("No resolver found for key "+n+". You can provide a resolver for this keyword in the options, or provide a default resolver.");c=_($,n)||_(K,n)?U(e,n,s):function(t){return e(t,null,s.concat(n))};var d=!1;l[n]=u(a,s.concat(n),c,t,function(e){return d=Array.isArray(e),function(e){l.allOf=function(e,t){return Array.isArray(e)?(e.splice.apply(e,[0,0].concat(t)),e):t}(l.allOf,e)}(e)}),void 0!==l[n]||d?void 0===l[n]&&delete l[n]:j(a,s.concat(n))}else l[n]=a[0]}),Object.assign(l,V(u,"properties",i,e,t,s)),Object.assign(l,V(d,"items",i,e,t,s)),l}}(l(F(e)),e)}q.$id=T,q.$ref=T,q.$schema=T,q.additionalItems=x,q.additionalProperties=x,q.anyOf=q.oneOf,q.contains=x,q.default=T,q.definitions=q.dependencies,q.description=T,q.examples=e=>v(s(e),d),q.exclusiveMaximum=I,q.exclusiveMinimum=R,q.maximum=I,q.maxItems=I,q.maxLength=I,q.maxProperties=I,q.minimum=R,q.minItems=R,q.minLength=R,q.minProperties=R,q.propertyNames=x,q.required=e=>D(e),q.title=T,q.uniqueItems=e=>e.some(O),Y.options={resolvers:q},e.exports=Y},1645(e){"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,o,i,a,s,l,c,u,d,p){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var h in o(a,s,l,c,u,d,p),a){var f=a[h];if(Array.isArray(f)){if(h in t.arrayKeywords)for(var g=0;g<f.length;g++)n(e,o,i,f[g],s+"/"+h+"/"+g,l,s,h,a,g)}else if(h in t.propsKeywords){if(f&&"object"==typeof f)for(var m in f)n(e,o,i,f[m],s+"/"+h+"/"+r(m),l,s,h,a,m)}else(h in t.keywords||e.allKeys&&!(h in t.skipKeywords))&&n(e,o,i,f,s+"/"+h,l,s,h,a)}i(a,s,l,c,u,d,p)}}function r(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},45838(e,t){var n=/~/,r=/~[01]/g;function o(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function i(e){return n.test(e)?e.replace(r,o):e}function a(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function s(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var n=(t=a(t)).length;if(1===n)return e;for(var r=1;r<n;){if(e=e[i(t[r++])],n===r)return e;if("object"!=typeof e||null===e)return}}function l(e,t,n){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=a(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,n){for(var r,o,a=1,s=t.length;a<s;){if("constructor"===t[a]||"prototype"===t[a]||"__proto__"===t[a])return e;if(r=i(t[a++]),o=s>a,void 0===e[r]&&(Array.isArray(e)&&"-"===r&&(r=e.length),o&&(""!==t[a]&&t[a]<1/0||"-"===t[a]?e[r]=[]:e[r]={})),!o)break;e=e[r]}var l=e[r];return void 0===n?delete e[r]:e[r]=n,l}(e,t,n)}t.get=s,t.set=l,t.compile=function(e){var t=a(e);return{get:function(e){return s(e,t)},set:function(e,n){return l(e,t,n)}}}},33103(e,t,n){var r=n(94715)(n(78942),"DataView");e.exports=r},25098(e,t,n){var r=n(23305),o=n(39361),i=n(11112),a=n(25276),s=n(57452);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},1386(e,t,n){var r=n(12393),o=n(62049),i=n(7144),a=n(7452),s=n(13964);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},19770(e,t,n){var r=n(94715)(n(78942),"Map");e.exports=r},68250(e,t,n){var r=n(49753),o=n(5681),i=n(80088),a=n(54732),s=n(59068);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},89413(e,t,n){var r=n(94715)(n(78942),"Promise");e.exports=r},64512(e,t,n){var r=n(94715)(n(78942),"Set");e.exports=r},23212(e,t,n){var r=n(68250),o=n(1877),i=n(8006);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},51340(e,t,n){var r=n(1386),o=n(64103),i=n(21779),a=n(34162),s=n(7462),l=n(96638);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},65650(e,t,n){var r=n(78942).Symbol;e.exports=r},31623(e,t,n){var r=n(78942).Uint8Array;e.exports=r},19270(e,t,n){var r=n(94715)(n(78942),"WeakMap");e.exports=r},86912(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},79968(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},79847(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},59756(e,t,n){var r=n(2478);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},43316(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},10358(e,t,n){var r=n(26137),o=n(3283),i=n(53142),a=n(75853),s=n(69632),l=n(8666),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],g=f.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||d&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}},65111(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},11129(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},44187(e){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},36465(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},52837(e){e.exports=function(e){return e.split("")}},39546(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},24810(e,t,n){var r=n(57073),o=n(46285);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},3422(e,t,n){var r=n(57073),o=n(46285),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},97034(e,t,n){var r=n(46285);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},37930(e,t,n){var r=n(39032),o=n(81211);e.exports=function(e,t){return e&&r(t,o(t),e)}},30125(e,t,n){var r=n(39032),o=n(25288);e.exports=function(e,t){return e&&r(t,o(t),e)}},57073(e,t,n){var r=n(72532);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},69334(e,t,n){var r=n(51340),o=n(79968),i=n(3422),a=n(37930),s=n(30125),l=n(17099),c=n(84354),u=n(83546),d=n(24733),p=n(80393),h=n(93650),f=n(28486),g=n(97350),m=n(50424),v=n(75964),y=n(53142),A=n(75853),w=n(37681),b=n(41580),_=n(83943),C=n(81211),E=n(25288),S="[object Arguments]",O="[object Function]",x="[object Object]",D={};D[S]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[x]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[O]=D["[object WeakMap]"]=!1,e.exports=function e(t,n,P,M,T,R){var I,F=1&n,k=2&n,L=4&n;if(P&&(I=T?P(t,M,T,R):P(t)),void 0!==I)return I;if(!b(t))return t;var B=y(t);if(B){if(I=g(t),!F)return c(t,I)}else{var N=f(t),j=N==O||"[object GeneratorFunction]"==N;if(A(t))return l(t,F);if(N==x||N==S||j&&!T){if(I=k||j?{}:v(t),!F)return k?d(t,s(I,t)):u(t,a(I,t))}else{if(!D[N])return T?t:{};I=m(t,N,F)}}R||(R=new r);var U=R.get(t);if(U)return U;R.set(t,I),_(t)?t.forEach(function(r){I.add(e(r,n,P,r,t,R))}):w(t)&&t.forEach(function(r,o){I.set(o,e(r,n,P,o,t,R))});var V=B?void 0:(L?k?h:p:k?E:C)(t);return o(V||t,function(r,o){V&&(r=t[o=r]),i(I,o,e(r,n,P,o,t,R))}),I}},39747(e,t,n){var r=n(41580),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},96576(e,t,n){var r=n(23212),o=n(59756),i=n(43316),a=n(65111),s=n(49460),l=n(65568);e.exports=function(e,t,n,c){var u=-1,d=o,p=!0,h=e.length,f=[],g=t.length;if(!h)return f;n&&(t=a(t,s(n))),c?(d=i,p=!1):t.length>=200&&(d=l,p=!1,t=new r(t));e:for(;++u<h;){var m=e[u],v=null==n?m:n(m);if(m=c||0!==m?m:0,p&&v==v){for(var y=g;y--;)if(t[y]===v)continue e;f.push(m)}else d(t,v,c)||f.push(m)}return f}},84570(e,t,n){var r=n(47170),o=n(45770)(r);e.exports=o},37250(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},90313(e,t,n){var r=n(11129),o=n(20714);e.exports=function e(t,n,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},35636(e,t,n){var r=n(86596)();e.exports=r},47170(e,t,n){var r=n(35636),o=n(81211);e.exports=function(e,t){return e&&r(e,t,o)}},57923(e,t,n){var r=n(93526),o=n(66040);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},48244(e,t,n){var r=n(11129),o=n(53142);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},87379(e,t,n){var r=n(65650),o=n(8870),i=n(29005),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},43636(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},2478(e,t,n){var r=n(37250),o=n(69454),i=n(97706);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},38250(e){e.exports=function(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}},93854(e,t,n){var r=n(23212),o=n(59756),i=n(43316),a=n(65111),s=n(49460),l=n(65568),c=Math.min;e.exports=function(e,t,n){for(var u=n?i:o,d=e[0].length,p=e.length,h=p,f=Array(p),g=1/0,m=[];h--;){var v=e[h];h&&t&&(v=a(v,s(t))),g=c(v.length,g),f[h]=!n&&(t||d>=120&&v.length>=120)?new r(h&&v):void 0}v=e[0];var y=-1,A=f[0];e:for(;++y<d&&m.length<g;){var w=v[y],b=t?t(w):w;if(w=n||0!==w?w:0,!(A?l(A,b):u(m,b,n))){for(h=p;--h;){var _=f[h];if(!(_?l(_,b):u(e[h],b,n)))continue e}A&&A.push(b),m.push(w)}}return m}},56027(e,t,n){var r=n(87379),o=n(80547);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},94687(e,t,n){var r=n(90353),o=n(80547);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},90353(e,t,n){var r=n(51340),o=n(33934),i=n(88861),a=n(31182),s=n(28486),l=n(53142),c=n(75853),u=n(8666),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),A=l(t),w=y?p:s(e),b=A?p:s(t),_=(w=w==d?h:w)==h,C=(b=b==d?h:b)==h,E=w==b;if(E&&c(e)){if(!c(t))return!1;y=!0,_=!1}if(E&&!_)return v||(v=new r),y||u(e)?o(e,t,n,g,m,v):i(e,t,w,n,g,m,v);if(!(1&n)){var S=_&&f.call(e,"__wrapped__"),O=C&&f.call(t,"__wrapped__");if(S||O){var x=S?e.value():e,D=O?t.value():t;return v||(v=new r),m(x,D,n,g,v)}}return!!E&&(v||(v=new r),a(e,t,n,g,m,v))}},80777(e,t,n){var r=n(28486),o=n(80547);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},38330(e,t,n){var r=n(51340),o=n(94687);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(i)var f=i(d,p,u,e,t,h);if(!(void 0===f?o(p,d,3,i,h):f))return!1}}return!0}},69454(e){e.exports=function(e){return e!=e}},89624(e,t,n){var r=n(93655),o=n(64759),i=n(41580),a=n(64066),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},81935(e,t,n){var r=n(28486),o=n(80547);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},70674(e,t,n){var r=n(87379),o=n(65387),i=n(80547),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},3334(e,t,n){var r=n(36526),o=n(12343),i=n(22053),a=n(53142),s=n(43282);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},195(e,t,n){var r=n(84882),o=n(98121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},57200(e,t,n){var r=n(41580),o=n(84882),i=n(38546),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},41393(e,t,n){var r=n(84570),o=n(36529);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},36526(e,t,n){var r=n(38330),o=n(24367),i=n(23904);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},12343(e,t,n){var r=n(94687),o=n(46123),i=n(27276),a=n(65187),s=n(67267),l=n(23904),c=n(66040);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},40091(e,t,n){var r=n(51340),o=n(24810),i=n(35636),a=n(26885),s=n(41580),l=n(25288),c=n(78763);e.exports=function e(t,n,u,d,p){t!==n&&i(n,function(i,l){if(p||(p=new r),s(i))a(t,n,l,u,e,d,p);else{var h=d?d(c(t,l),i,l+"",t,n,p):void 0;void 0===h&&(h=i),o(t,l,h)}},l)}},26885(e,t,n){var r=n(24810),o=n(17099),i=n(92264),a=n(84354),s=n(75964),l=n(3283),c=n(53142),u=n(65406),d=n(75853),p=n(93655),h=n(41580),f=n(48360),g=n(8666),m=n(78763),v=n(64207);e.exports=function(e,t,n,y,A,w,b){var _=m(e,n),C=m(t,n),E=b.get(C);if(E)r(e,n,E);else{var S=w?w(_,C,n+"",e,t,b):void 0,O=void 0===S;if(O){var x=c(C),D=!x&&d(C),P=!x&&!D&&g(C);S=C,x||D||P?c(_)?S=_:u(_)?S=a(_):D?(O=!1,S=o(C,!0)):P?(O=!1,S=i(C,!0)):S=[]:f(C)||l(C)?(S=_,l(_)?S=v(_):h(_)&&!p(_)||(S=s(C))):O=!1}O&&(b.set(C,S),A(S,C,y,w,b),b.delete(C)),r(e,n,S)}}},70310(e,t,n){var r=n(65111),o=n(57923),i=n(3334),a=n(41393),s=n(50642),l=n(49460),c=n(46775),u=n(22053),d=n(53142);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return o(t,1===e.length?e[0]:e)}:e}):[u];var p=-1;t=r(t,l(i));var h=a(e,function(e,n,o){return{criteria:r(t,function(t){return t(e)}),index:++p,value:e}});return s(h,function(e,t){return c(e,t,n)})}},12762(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},98880(e,t,n){var r=n(57923);e.exports=function(e){return function(t){return r(t,e)}}},51035(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},49261(e,t,n){var r=n(65111),o=n(2478),i=n(38250),a=n(49460),s=n(84354),l=Array.prototype.splice;e.exports=function(e,t,n,c){var u=c?i:o,d=-1,p=t.length,h=e;for(e===t&&(t=s(t)),n&&(h=r(e,a(n)));++d<p;)for(var f=0,g=t[d],m=n?n(g):g;(f=u(h,m,f,c))>-1;)h!==e&&l.call(h,f,1),l.call(e,f,1);return e}},23945(e,t,n){var r=n(22053),o=n(75234),i=n(80796);e.exports=function(e,t){return i(o(e,t,r),e+"")}},47403(e,t,n){var r=n(82619),o=n(72532),i=n(22053),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},73501(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},50642(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},26137(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},52291(e,t,n){var r=n(65650),o=n(65111),i=n(53142),a=n(51187),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},86403(e,t,n){var r=n(62945),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},49460(e){e.exports=function(e){return function(t){return e(t)}}},15630(e,t,n){var r=n(23212),o=n(59756),i=n(43316),a=n(65568),s=n(36208),l=n(49828);e.exports=function(e,t,n){var c=-1,u=o,d=e.length,p=!0,h=[],f=h;if(n)p=!1,u=i;else if(d>=200){var g=t?null:s(e);if(g)return l(g);p=!1,u=a,f=new r}else f=t?[]:h;e:for(;++c<d;){var m=e[c],v=t?t(m):m;if(m=n||0!==m?m:0,p&&v==v){for(var y=f.length;y--;)if(f[y]===v)continue e;t&&f.push(v),h.push(m)}else u(f,v,n)||(f!==h&&f.push(v),h.push(m))}return h}},81586(e,t,n){var r=n(93526),o=n(98087),i=n(13398),a=n(66040),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=-1,l=(t=r(t,e)).length;if(!l)return!0;for(;++n<l;){var c=a(t[n]);if("__proto__"===c&&!s.call(e,"__proto__"))return!1;if(("constructor"===c||"prototype"===c)&&n<l-1)return!1}var u=i(e,t);return null==u||delete u[a(o(t))]}},65568(e){e.exports=function(e,t){return e.has(t)}},47648(e,t,n){var r=n(65406);e.exports=function(e){return r(e)?e:[]}},23997(e,t,n){var r=n(22053);e.exports=function(e){return"function"==typeof e?e:r}},93526(e,t,n){var r=n(53142),o=n(65187),i=n(96493),a=n(95243);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},28931(e,t,n){var r=n(73501);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},58898(e,t,n){var r=n(31623);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},17099(e,t,n){e=n.nmd(e);var r=n(78942),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},92480(e,t,n){var r=n(58898);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},78340(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},18069(e,t,n){var r=n(65650),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},92264(e,t,n){var r=n(58898);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},63521(e,t,n){var r=n(51187);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),s=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!u&&e<t||u&&n&&i&&!o&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}},46775(e,t,n){var r=n(63521);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,s=i.length,l=n.length;++o<s;){var c=r(i[o],a[o]);if(c)return o>=l?c:c*("desc"==n[o]?-1:1)}return e.index-t.index}},84354(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},39032(e,t,n){var r=n(3422),o=n(57073);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},83546(e,t,n){var r=n(39032),o=n(77979);e.exports=function(e,t){return r(e,o(e),t)}},24733(e,t,n){var r=n(39032),o=n(85832);e.exports=function(e,t){return r(e,o(e),t)}},41950(e,t,n){var r=n(78942)["__core-js_shared__"];e.exports=r},77848(e,t,n){var r=n(23945),o=n(74535);e.exports=function(e){return r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}},45770(e,t,n){var r=n(36529);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},86596(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},4326(e,t,n){var r=n(28931),o=n(83417),i=n(4618),a=n(95243);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},93640(e,t,n){var r=n(44187),o=n(45881),i=n(39850),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},77317(e,t,n){var r=n(3334),o=n(36529),i=n(81211);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!o(t)){var l=r(n,3);t=i(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}},36208(e,t,n){var r=n(64512),o=n(79071),i=n(49828),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},52107(e,t,n){var r=n(40091),o=n(41580);e.exports=function e(t,n,i,a,s,l){return o(t)&&o(n)&&(l.set(n,t),r(t,n,void 0,e,l),l.delete(n)),t}},29259(e,t,n){var r=n(48360);e.exports=function(e){return r(e)?void 0:e}},69968(e,t,n){var r=n(51035)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"});e.exports=r},72532(e,t,n){var r=n(94715),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},33934(e,t,n){var r=n(23212),o=n(36465),i=n(65568);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var v=e[f],y=t[f];if(a)var A=c?a(y,v,f,t,e,l):a(v,y,f,e,t,l);if(void 0!==A){if(A)continue;g=!1;break}if(m){if(!o(t,function(e,t){if(!i(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)})){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},88861(e,t,n){var r=n(65650),o=n(31623),i=n(46285),a=n(33934),s=n(73513),l=n(49828),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var g=p.get(e);if(g)return g==t;r|=2,p.set(e,t);var m=a(h(e),h(t),r,c,d,p);return p.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},31182(e,t,n){var r=n(80393),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:o.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var v=e[p=c[d]],y=t[p];if(i)var A=l?i(y,v,p,t,e,s):i(v,y,p,e,t,s);if(!(void 0===A?v===y||a(v,y,n,i,s):A)){g=!1;break}m||(m="constructor"==p)}if(g&&!m){var w=e.constructor,b=t.constructor;w==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(g=!1)}return s.delete(e),s.delete(t),g}},41439(e,t,n){var r=n(75857),o=n(75234),i=n(80796);e.exports=function(e){return i(o(e,void 0,r),e+"")}},74967(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},80393(e,t,n){var r=n(48244),o=n(77979),i=n(81211);e.exports=function(e){return r(e,i,o)}},93650(e,t,n){var r=n(48244),o=n(85832),i=n(25288);e.exports=function(e){return r(e,i,o)}},44700(e,t,n){var r=n(79067);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},24367(e,t,n){var r=n(67267),o=n(81211);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},94715(e,t,n){var r=n(89624),o=n(20155);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},74784(e,t,n){var r=n(3766)(Object.getPrototypeOf,Object);e.exports=r},8870(e,t,n){var r=n(65650),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},77979(e,t,n){var r=n(79847),o=n(99306),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},85832(e,t,n){var r=n(11129),o=n(74784),i=n(77979),a=n(99306),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},28486(e,t,n){var r=n(33103),o=n(19770),i=n(89413),a=n(64512),s=n(19270),l=n(87379),c=n(64066),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",g=c(r),m=c(o),v=c(i),y=c(a),A=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=f||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=p||s&&w(new s)!=h)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return f;case m:return u;case v:return d;case y:return p;case A:return h}return t}),e.exports=w},20155(e){e.exports=function(e,t){return null==e?void 0:e[t]}},85899(e,t,n){var r=n(93526),o=n(3283),i=n(53142),a=n(69632),s=n(65387),l=n(66040);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(p,u)&&(i(e)||o(e))}},83417(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},15813(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},23305(e,t,n){var r=n(94497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},39361(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},11112(e,t,n){var r=n(94497),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},25276(e,t,n){var r=n(94497),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},57452(e,t,n){var r=n(94497);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},97350(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},50424(e,t,n){var r=n(58898),o=n(92480),i=n(78340),a=n(18069),s=n(92264);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},75964(e,t,n){var r=n(39747),o=n(74784),i=n(84882);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},20714(e,t,n){var r=n(65650),o=n(3283),i=n(53142),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},69632(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},74535(e,t,n){var r=n(46285),o=n(36529),i=n(69632),a=n(41580);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},65187(e,t,n){var r=n(53142),o=n(51187),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},79067(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},64759(e,t,n){var r,o=n(41950),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},84882(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},67267(e,t,n){var r=n(41580);e.exports=function(e){return e==e&&!r(e)}},12393(e){e.exports=function(){this.__data__=[],this.size=0}},62049(e,t,n){var r=n(97034),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},7144(e,t,n){var r=n(97034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7452(e,t,n){var r=n(97034);e.exports=function(e){return r(this.__data__,e)>-1}},13964(e,t,n){var r=n(97034);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},49753(e,t,n){var r=n(25098),o=n(1386),i=n(19770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},5681(e,t,n){var r=n(44700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},80088(e,t,n){var r=n(44700);e.exports=function(e){return r(this,e).get(e)}},54732(e,t,n){var r=n(44700);e.exports=function(e){return r(this,e).has(e)}},59068(e,t,n){var r=n(44700);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},73513(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},23904(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},76853(e,t,n){var r=n(69011);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},94497(e,t,n){var r=n(94715)(Object,"create");e.exports=r},98121(e,t,n){var r=n(3766)(Object.keys,Object);e.exports=r},38546(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},2306(e,t,n){e=n.nmd(e);var r=n(74967),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},29005(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766(e){e.exports=function(e,t){return function(n){return e(t(n))}}},75234(e,t,n){var r=n(86912),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},13398(e,t,n){var r=n(57923),o=n(73501);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},78942(e,t,n){var r=n(74967),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},78763(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1877(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006(e){e.exports=function(e){return this.__data__.has(e)}},49828(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},80796(e,t,n){var r=n(47403),o=n(3316)(r);e.exports=o},3316(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},64103(e,t,n){var r=n(1386);e.exports=function(){this.__data__=new r,this.size=0}},21779(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},34162(e){e.exports=function(e){return this.__data__.get(e)}},7462(e){e.exports=function(e){return this.__data__.has(e)}},96638(e,t,n){var r=n(1386),o=n(19770),i=n(68250);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},97706(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},4618(e,t,n){var r=n(52837),o=n(83417),i=n(92013);e.exports=function(e){return o(e)?i(e):r(e)}},96493(e,t,n){var r=n(76853),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},66040(e,t,n){var r=n(51187);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},64066(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},62945(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},92013(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",u=c+l+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*",d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(p)||[]}},10482(e){var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",s="\\d+",l="["+n+"]",c="["+r+"]",u="[^"+t+i+s+n+r+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+o+"]",f="(?:"+c+"|"+u+")",g="(?:"+h+"|"+u+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",A="[\\ufe0e\\ufe0f]?",w=A+y+"(?:\\u200d(?:"+["[^"+t+"]",d,p].join("|")+")"+A+y+")*",b="(?:"+[l,d,p].join("|")+")"+w,_=RegExp([h+"?"+c+"+"+m+"(?="+[a,h,"$"].join("|")+")",g+"+"+v+"(?="+[a,h+f,"$"].join("|")+")",h+"?"+f+"+"+m,h+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,b].join("|"),"g");e.exports=function(e){return e.match(_)||[]}},30149(e,t,n){var r=n(39032),o=n(77848),i=n(25288),a=o(function(e,t){r(t,i(t),e)});e.exports=a},46108(e,t,n){var r=n(69334);e.exports=function(e){return r(e,5)}},82619(e){e.exports=function(e){return function(){return e}}},12784(e,t,n){var r=n(41580),o=n(94495),i=n(6131),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,h,f=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function A(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-f>=u}function w(){var e=o();if(A(e))return b(e);p=setTimeout(w,function(e){var n=t-(e-h);return m?s(n,u-(e-f)):n}(e))}function b(e){return p=void 0,v&&l?y(e):(l=c=void 0,d)}function _(){var e=o(),n=A(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return function(e){return f=e,p=setTimeout(w,t),g?y(e):d}(h);if(m)return clearTimeout(p),p=setTimeout(w,t),y(h)}return void 0===p&&(p=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=c=p=void 0},_.flush=function(){return void 0===p?d:b(o())},_}},45881(e,t,n){var r=n(69968),o=n(95243),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},32293(e,t,n){var r=n(23945),o=n(46285),i=n(74535),a=n(25288),s=Object.prototype,l=s.hasOwnProperty,c=r(function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;for(c&&i(t[0],t[1],c)&&(r=1);++n<r;)for(var u=t[n],d=a(u),p=-1,h=d.length;++p<h;){var f=d[p],g=e[f];(void 0===g||o(g,s[f])&&!l.call(e,f))&&(e[f]=u[f])}return e});e.exports=c},69383(e,t,n){var r=n(86912),o=n(23945),i=n(52107),a=n(48875),s=o(function(e){return e.push(void 0,i),r(a,void 0,e)});e.exports=s},46285(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},24015(e,t,n){e.exports=n(30149)},81936(e,t,n){var r=n(77317)(n(92154));e.exports=r},92154(e,t,n){var r=n(37250),o=n(3334),i=n(67642),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},75857(e,t,n){var r=n(90313);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},53435(e,t,n){var r=n(90313),o=1/0;e.exports=function(e){return null!=e&&e.length?r(e,o):[]}},83657(e,t,n){var r=n(79968),o=n(84570),i=n(23997),a=n(53142);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},46123(e,t,n){var r=n(57923);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},27276(e,t,n){var r=n(43636),o=n(85899);e.exports=function(e,t){return null!=e&&o(e,t,r)}},22053(e){e.exports=function(e){return e}},58150(e,t,n){var r=n(65111),o=n(93854),i=n(23945),a=n(47648),s=i(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]});e.exports=s},30306(e,t,n){var r=n(65111),o=n(93854),i=n(23945),a=n(47648),s=n(98087),l=i(function(e){var t=s(e),n=r(e,a);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?o(n,void 0,t):[]});e.exports=l},3283(e,t,n){var r=n(56027),o=n(80547),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},53142(e){var t=Array.isArray;e.exports=t},36529(e,t,n){var r=n(93655),o=n(65387);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},65406(e,t,n){var r=n(36529),o=n(80547);e.exports=function(e){return o(e)&&r(e)}},22563(e,t,n){var r=n(87379),o=n(80547);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},75853(e,t,n){e=n.nmd(e);var r=n(78942),o=n(34772),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},3514(e,t,n){var r=n(195),o=n(28486),i=n(3283),a=n(53142),s=n(36529),l=n(75853),c=n(84882),u=n(8666),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},46343(e,t,n){var r=n(94687);e.exports=function(e,t){return r(e,t)}},93655(e,t,n){var r=n(87379),o=n(41580);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},65387(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},37681(e,t,n){var r=n(80777),o=n(49460),i=n(2306),a=i&&i.isMap,s=a?o(a):r;e.exports=s},41580(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},80547(e){e.exports=function(e){return null!=e&&"object"==typeof e}},48360(e,t,n){var r=n(87379),o=n(74784),i=n(80547),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},83943(e,t,n){var r=n(81935),o=n(49460),i=n(2306),a=i&&i.isSet,s=a?o(a):r;e.exports=s},51187(e,t,n){var r=n(87379),o=n(80547);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},8666(e,t,n){var r=n(70674),o=n(49460),i=n(2306),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},81211(e,t,n){var r=n(10358),o=n(195),i=n(36529);e.exports=function(e){return i(e)?r(e):o(e)}},25288(e,t,n){var r=n(10358),o=n(57200),i=n(36529);e.exports=function(e){return i(e)?r(e,!0):o(e)}},98087(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},45250(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,c=128,u=1/0,d=9007199254740991,p=NaN,h=4294967295,f=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",y="[object Date]",A="[object Error]",w="[object Function]",b="[object GeneratorFunction]",_="[object Map]",C="[object Number]",E="[object Object]",S="[object Promise]",O="[object RegExp]",x="[object Set]",D="[object String]",P="[object Symbol]",M="[object WeakMap]",T="[object ArrayBuffer]",R="[object DataView]",I="[object Float32Array]",F="[object Float64Array]",k="[object Int8Array]",L="[object Int16Array]",B="[object Int32Array]",N="[object Uint8Array]",j="[object Uint8ClampedArray]",U="[object Uint16Array]",V="[object Uint32Array]",H=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,K=RegExp(z.source),Q=RegExp($.source),q=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ae=/($^)/,we=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="["+be+"]",Pe="["+xe+"]",Me="["+_e+"]",Te="\\d+",Re="["+Ce+"]",Ie="["+Ee+"]",Fe="[^"+be+xe+Te+Ce+Ee+Se+"]",ke="\\ud83c[\\udffb-\\udfff]",Le="[^"+be+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Se+"]",Ue="\\u200d",Ve="(?:"+Ie+"|"+Fe+")",He="(?:"+je+"|"+Fe+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",ze="(?:"+Me+"|"+ke+")?",$e="["+Oe+"]?",Ke=$e+ze+"(?:"+Ue+"(?:"+[Le,Be,Ne].join("|")+")"+$e+ze+")*",Qe="(?:"+[Re,Be,Ne].join("|")+")"+Ke,qe="(?:"+[Le+Me+"?",Me,Be,Ne,De].join("|")+")",Ye=RegExp("['’]","g"),Xe=RegExp(Me,"g"),Ze=RegExp(ke+"(?="+ke+")|"+qe+Ke,"g"),Je=RegExp([je+"?"+Ie+"+"+Ge+"(?="+[Pe,je,"$"].join("|")+")",He+"+"+We+"(?="+[Pe,je+Ve,"$"].join("|")+")",je+"?"+Ve+"+"+Ge,je+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,Qe].join("|"),"g"),et=RegExp("["+Ue+be+_e+Oe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[I]=ot[F]=ot[k]=ot[L]=ot[B]=ot[N]=ot[j]=ot[U]=ot[V]=!0,ot[g]=ot[m]=ot[T]=ot[v]=ot[R]=ot[y]=ot[A]=ot[w]=ot[_]=ot[C]=ot[E]=ot[O]=ot[x]=ot[D]=ot[M]=!1;var it={};it[g]=it[m]=it[T]=it[R]=it[v]=it[y]=it[I]=it[F]=it[k]=it[L]=it[B]=it[_]=it[C]=it[E]=it[O]=it[x]=it[D]=it[P]=it[N]=it[j]=it[U]=it[V]=!0,it[A]=it[w]=it[M]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ut="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||ut||Function("return this")(),pt=t&&!t.nodeType&&t,ht=pt&&e&&!e.nodeType&&e,ft=ht&&ht.exports===pt,gt=ft&&ct.process,mt=function(){try{return ht&&ht.require&&ht.require("util").types||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),vt=mt&&mt.isArrayBuffer,yt=mt&&mt.isDate,At=mt&&mt.isMap,wt=mt&&mt.isRegExp,bt=mt&&mt.isSet,_t=mt&&mt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Pt(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function Mt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Rt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function It(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ft(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Lt=Gt("length");function Bt(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Nt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function jt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Nt(e,Vt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Vt(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:p}function Gt(e){return function(t){return null==t?o:t[e]}}function Wt(e){return function(t){return null==e?o:e[t]}}function zt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function $t(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,dn(e)+1).replace(re,""):e}function qt(e){return function(t){return e(t)}}function Yt(e,t){return Tt(t,function(t){return e[t]})}function Xt(e,t){return e.has(t)}function Zt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var en=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),tn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function ln(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function cn(e){return rn(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):Lt(e)}function un(e){return rn(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var pn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function e(t){var n,r=(t=null==t?dt:hn.defaults(dt.Object(),t,hn.pick(dt,nt))).Array,oe=t.Date,be=t.Error,_e=t.Function,Ce=t.Math,Ee=t.Object,Se=t.RegExp,Oe=t.String,xe=t.TypeError,De=r.prototype,Pe=_e.prototype,Me=Ee.prototype,Te=t["__core-js_shared__"],Re=Pe.toString,Ie=Me.hasOwnProperty,Fe=0,ke=(n=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=Me.toString,Be=Re.call(Ee),Ne=dt._,je=Se("^"+Re.call(Ie).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=ft?t.Buffer:o,Ve=t.Symbol,He=t.Uint8Array,Ge=Ue?Ue.allocUnsafe:o,We=an(Ee.getPrototypeOf,Ee),ze=Ee.create,$e=Me.propertyIsEnumerable,Ke=De.splice,Qe=Ve?Ve.isConcatSpreadable:o,qe=Ve?Ve.iterator:o,Ze=Ve?Ve.toStringTag:o,et=function(){try{var e=li(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==dt.Date.now&&oe.now,ut=t.setTimeout!==dt.setTimeout&&t.setTimeout,pt=Ce.ceil,ht=Ce.floor,gt=Ee.getOwnPropertySymbols,mt=Ue?Ue.isBuffer:o,Lt=t.isFinite,Wt=De.join,fn=an(Ee.keys,Ee),gn=Ce.max,mn=Ce.min,vn=oe.now,yn=t.parseInt,An=Ce.random,wn=De.reverse,bn=li(t,"DataView"),_n=li(t,"Map"),Cn=li(t,"Promise"),En=li(t,"Set"),Sn=li(t,"WeakMap"),On=li(Ee,"create"),xn=Sn&&new Sn,Dn={},Pn=Li(bn),Mn=Li(_n),Tn=Li(Cn),Rn=Li(En),In=Li(Sn),Fn=Ve?Ve.prototype:o,kn=Fn?Fn.valueOf:o,Ln=Fn?Fn.toString:o;function Bn(e){if(Ja(e)&&!Ha(e)&&!(e instanceof Vn)){if(e instanceof Un)return e;if(Ie.call(e,"__wrapped__"))return Bi(e)}return new Un(e)}var Nn=function(){function e(){}return function(t){if(!Za(t))return{};if(ze)return ze(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function jn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Wn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Gn(e);this.size=t.size}function Kn(e,t){var n=Ha(e),r=!n&&Va(e),o=!n&&!r&&$a(e),i=!n&&!r&&!o&&ss(e),a=n||r||o||i,s=a?Kt(e.length,Oe):[],l=s.length;for(var c in e)!t&&!Ie.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||gi(c,l))||s.push(c);return s}function Qn(e){var t=e.length;return t?e[Wr(0,t-1)]:o}function qn(e,t){return Ti(Oo(e),or(t,0,e.length))}function Yn(e){return Ti(Oo(e))}function Xn(e,t,n){(n!==o&&!Na(e[t],n)||n===o&&!(t in e))&&nr(e,t,n)}function Zn(e,t,n){var r=e[t];Ie.call(e,t)&&Na(r,n)&&(n!==o||t in e)||nr(e,t,n)}function Jn(e,t){for(var n=e.length;n--;)if(Na(e[n][0],t))return n;return-1}function er(e,t,n,r){return cr(e,function(e,o,i){t(r,e,n(e),i)}),r}function tr(e,t){return e&&xo(t,Ps(t),e)}function nr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function rr(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Es(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ir(e,t,n,r,i,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Za(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Oo(e,s)}else{var p=di(e),h=p==w||p==b;if($a(e))return wo(e,l);if(p==E||p==g||h&&!i){if(s=c||h?{}:hi(e),!l)return c?function(e,t){return xo(e,ui(e),t)}(e,function(e,t){return e&&xo(t,Ms(t),e)}(s,e)):function(e,t){return xo(e,ci(e),t)}(e,tr(s,e))}else{if(!it[p])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case T:return bo(e);case v:case y:return new o(+e);case R:return function(e,t){var n=t?bo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case F:case k:case L:case B:case N:case j:case U:case V:return _o(e,n);case _:return new o;case C:case D:return new o(e);case O:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case x:return new o;case P:return r=e,kn?Ee(kn.call(r)):{}}}(e,p,l)}}a||(a=new $n);var f=a.get(e);if(f)return f;a.set(e,s),os(e)?e.forEach(function(r){s.add(ir(r,t,n,r,e,a))}):es(e)&&e.forEach(function(r,o){s.set(o,ir(r,t,n,o,e,a))});var m=d?o:(u?c?ti:ei:c?Ms:Ps)(e);return St(m||e,function(r,o){m&&(r=e[o=r]),Zn(s,o,ir(r,t,n,o,e,a))}),s}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function sr(e,t,n){if("function"!=typeof e)throw new xe(i);return xi(function(){e.apply(o,n)},t)}function lr(e,t,n,r){var o=-1,i=Pt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Tt(t,qt(n))),r?(i=Mt,a=!1):t.length>=200&&(i=Xt,a=!1,t=new zn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Bn.templateSettings={escape:q,evaluate:Y,interpolate:X,variable:"",imports:{_:Bn}},Bn.prototype=jn.prototype,Bn.prototype.constructor=Bn,Un.prototype=Nn(jn.prototype),Un.prototype.constructor=Un,Vn.prototype=Nn(jn.prototype),Vn.prototype.constructor=Vn,Hn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===a?o:n}return Ie.call(t,e)?t[e]:o},Hn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==o:Ie.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===o?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=Jn(t,e);return!(n<0||(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,0))},Gn.prototype.get=function(e){var t=this.__data__,n=Jn(t,e);return n<0?o:t[n][1]},Gn.prototype.has=function(e){return Jn(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=Jn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(_n||Gn),string:new Hn}},Wn.prototype.delete=function(e){var t=ai(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return ai(this,e).get(e)},Wn.prototype.has=function(e){return ai(this,e).has(e)},Wn.prototype.set=function(e,t){var n=ai(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},zn.prototype.add=zn.prototype.push=function(e){return this.__data__.set(e,a),this},zn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Gn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!_n||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var cr=Mo(vr),ur=Mo(yr,!0);function dr(e,t){var n=!0;return cr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function pr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s==s&&!as(s):n(s,l)))var l=s,c=a}return c}function hr(e,t){var n=[];return cr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function fr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=fi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?fr(s,t-1,n,r,o):Rt(o,s):r||(o[o.length]=s)}return o}var gr=To(),mr=To(!0);function vr(e,t){return e&&gr(e,t,Ps)}function yr(e,t){return e&&mr(e,t,Ps)}function Ar(e,t){return Dt(t,function(t){return qa(e[t])})}function wr(e,t){for(var n=0,r=(t=mo(t,e)).length;null!=e&&n<r;)e=e[ki(t[n++])];return n&&n==r?e:o}function br(e,t,n){var r=t(e);return Ha(e)?r:Rt(r,n(e))}function _r(e){return null==e?e===o?"[object Undefined]":"[object Null]":Ze&&Ze in Ee(e)?function(e){var t=Ie.call(e,Ze),n=e[Ze];try{e[Ze]=o;var r=!0}catch(e){}var i=Le.call(e);return r&&(t?e[Ze]=n:delete e[Ze]),i}(e):function(e){return Le.call(e)}(e)}function Cr(e,t){return e>t}function Er(e,t){return null!=e&&Ie.call(e,t)}function Sr(e,t){return null!=e&&t in Ee(e)}function Or(e,t,n){for(var i=n?Mt:Pt,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Tt(p,qt(t))),u=mn(p.length,u),c[l]=!n&&(t||a>=120&&p.length>=120)?new zn(l&&p):o}p=e[0];var h=-1,f=c[0];e:for(;++h<a&&d.length<u;){var g=p[h],m=t?t(g):g;if(g=n||0!==g?g:0,!(f?Xt(f,m):i(d,m,n))){for(l=s;--l;){var v=c[l];if(!(v?Xt(v,m):i(e[l],m,n)))continue e}f&&f.push(m),d.push(g)}}return d}function xr(e,t,n){var r=null==(e=Ei(e,t=mo(t,e)))?e:e[ki(Qi(t))];return null==r?o:Ct(r,e,n)}function Dr(e){return Ja(e)&&_r(e)==g}function Pr(e,t,n,r,i){return e===t||(null==e||null==t||!Ja(e)&&!Ja(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Ha(e),l=Ha(t),c=s?m:di(e),u=l?m:di(t),d=(c=c==g?E:c)==E,p=(u=u==g?E:u)==E,h=c==u;if(h&&$a(e)){if(!$a(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new $n),s||ss(e)?Zo(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new He(e),new He(t)));case v:case y:case C:return Na(+e,+t);case A:return e.name==t.name&&e.message==t.message;case O:case D:return e==t+"";case _:var s=on;case x:var l=1&r;if(s||(s=ln),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Zo(s(e),s(t),r,o,i,a);return a.delete(e),u;case P:if(kn)return kn.call(e)==kn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var f=d&&Ie.call(e,"__wrapped__"),w=p&&Ie.call(t,"__wrapped__");if(f||w){var b=f?e.value():e,S=w?t.value():t;return a||(a=new $n),i(b,S,n,r,a)}}return!!h&&(a||(a=new $n),function(e,t,n,r,i,a){var s=1&n,l=ei(e),c=l.length;if(c!=ei(t).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in t:Ie.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var f=!0;a.set(e,t),a.set(t,e);for(var g=s;++u<c;){var m=e[d=l[u]],v=t[d];if(r)var y=s?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(y===o?m===v||i(m,v,n,r,a):y)){f=!1;break}g||(g="constructor"==d)}if(f&&!g){var A=e.constructor,w=t.constructor;A==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof w&&w instanceof w||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,r,i,a))}(e,t,n,r,Pr,i))}function Mr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Ee(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var p=new $n;if(r)var h=r(u,d,c,e,t,p);if(!(h===o?Pr(d,u,3,r,p):h))return!1}}return!0}function Tr(e){return!(!Za(e)||(t=e,ke&&ke in t))&&(qa(e)?je:ge).test(Li(e));var t}function Rr(e){return"function"==typeof e?e:null==e?tl:"object"==typeof e?Ha(e)?Br(e[0],e[1]):Lr(e):ul(e)}function Ir(e){if(!wi(e))return fn(e);var t=[];for(var n in Ee(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Fr(e,t){return e<t}function kr(e,t){var n=-1,o=Wa(e)?r(e.length):[];return cr(e,function(e,r,i){o[++n]=t(e,r,i)}),o}function Lr(e){var t=si(e);return 1==t.length&&t[0][2]?_i(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function Br(e,t){return vi(e)&&bi(t)?_i(ki(e),t):function(n){var r=Es(n,e);return r===o&&r===t?Ss(n,e):Pr(t,r,3)}}function Nr(e,t,n,r,i){e!==t&&gr(t,function(a,s){if(i||(i=new $n),Za(a))!function(e,t,n,r,i,a,s){var l=Si(e,n),c=Si(t,n),u=s.get(c);if(u)Xn(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):o,p=d===o;if(p){var h=Ha(c),f=!h&&$a(c),g=!h&&!f&&ss(c);d=c,h||f||g?Ha(l)?d=l:za(l)?d=Oo(l):f?(p=!1,d=wo(c,!0)):g?(p=!1,d=_o(c,!0)):d=[]:ns(c)||Va(c)?(d=l,Va(l)?d=gs(l):Za(l)&&!qa(l)||(d=hi(c))):p=!1}p&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),Xn(e,n,d)}}(e,t,s,n,Nr,r,i);else{var l=r?r(Si(e,s),a,s+"",e,t,i):o;l===o&&(l=a),Xn(e,s,l)}},Ms)}function jr(e,t){var n=e.length;if(n)return gi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?Tt(t,function(e){return Ha(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e}):[tl];var r=-1;t=Tt(t,qt(ii()));var o=kr(e,function(e,n,o){var i=Tt(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e){var t=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=Co(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});t--;)e[t]=e[t].value;return e}(o)}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=wr(e,a);n(s,a)&&qr(i,mo(a,e),s)}return i}function Hr(e,t,n,r){var o=r?Ut:jt,i=-1,a=t.length,s=e;for(e===t&&(t=Oo(t)),n&&(s=Tt(e,qt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;gi(o)?Ke.call(e,o,1):so(e,o)}}return e}function Wr(e,t){return e+ht(An()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function $r(e,t){return Di(Ci(e,t,tl),e+"")}function Kr(e){return Qn(Ns(e))}function Qr(e,t){var n=Ns(e);return Ti(n,or(t,0,n.length))}function qr(e,t,n,r){if(!Za(e))return e;for(var i=-1,a=(t=mo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=ki(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):o)===o&&(u=Za(d)?d:gi(t[i+1])?[]:{})}Zn(l,c,u),l=l[c]}return e}var Yr=xn?function(e,t){return xn.set(e,t),e}:tl,Xr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Zs(t),writable:!0})}:tl;function Zr(e){return Ti(Ns(e))}function Jr(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function eo(e,t){var n;return cr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function to(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!as(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return no(e,t,tl,n)}function no(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=as(t),u=t===o;i<a;){var d=ht((i+a)/2),p=n(e[d]),h=p!==o,f=null===p,g=p==p,m=as(p);if(s)var v=r||g;else v=u?g&&(r||h):l?g&&h&&(r||!f):c?g&&h&&!f&&(r||!m):!f&&!m&&(r?p<=t:p<t);v?i=d+1:a=d}return mn(a,4294967294)}function ro(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Na(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function oo(e){return"number"==typeof e?e:as(e)?p:+e}function io(e){if("string"==typeof e)return e;if(Ha(e))return Tt(e,io)+"";if(as(e))return Ln?Ln.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ao(e,t,n){var r=-1,o=Pt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Mt;else if(i>=200){var c=t?null:$o(e);if(c)return ln(c);a=!1,o=Xt,l=new zn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function so(e,t){var n=-1,r=(t=mo(t,e)).length;if(!r)return!0;for(;++n<r;){var o=ki(t[n]);if("__proto__"===o&&!Ie.call(e,"__proto__"))return!1;if(("constructor"===o||"prototype"===o)&&n<r-1)return!1}var i=Ei(e,t);return null==i||delete i[ki(Qi(t))]}function lo(e,t,n,r){return qr(e,t,n(wr(e,t)),r)}function co(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Jr(e,r?0:i,r?i+1:o):Jr(e,r?i+1:0,r?o:i)}function uo(e,t){var n=e;return n instanceof Vn&&(n=n.value()),It(t,function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))},n)}function po(e,t,n){var o=e.length;if(o<2)return o?ao(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=lr(a[i]||s,e[l],t,n));return ao(fr(a,1),t,n)}function ho(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function fo(e){return za(e)?e:[]}function go(e){return"function"==typeof e?e:tl}function mo(e,t){return Ha(e)?e:vi(e,t)?[e]:Fi(ms(e))}var vo=$r;function yo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:Jr(e,t,n)}var Ao=at||function(e){return dt.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function bo(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function _o(e,t){var n=t?bo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=as(e),s=t!==o,l=null===t,c=t==t,u=as(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}function Eo(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,c=t.length,u=gn(a-s,0),d=r(c+u),p=!o;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function So(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=gn(a-l,0),p=r(d+u),h=!o;++i<d;)p[i]=e[i];for(var f=i;++c<u;)p[f+c]=t[c];for(;++s<l;)(h||i<a)&&(p[f+n[s]]=e[i++]);return p}function Oo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function xo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?nr(n,l,c):Zn(n,l,c)}return n}function Do(e,t){return function(n,r){var o=Ha(n)?Et:er,i=t?t():{};return o(n,e,ii(r,2),i)}}function Po(e){return $r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&mi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Ee(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}function Mo(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ee(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function To(e){return function(t,n,r){for(var o=-1,i=Ee(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function Ro(e){return function(t){var n=rn(t=ms(t))?un(t):o,r=n?n[0]:t.charAt(0),i=n?yo(n,1).join(""):t.slice(1);return r[e]()+i}}function Io(e){return function(t){return It(qs(Vs(t).replace(Ye,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Nn(e.prototype),r=e.apply(n,t);return Za(r)?r:n}}function ko(e){return function(t,n,r){var i=Ee(t);if(!Wa(t)){var a=ii(n,3);t=Ps(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Lo(e){return Jo(function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new xe(i);if(a&&!l&&"wrapper"==ri(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=ri(s=t[r]),u="wrapper"==c?ni(s):o;l=u&&yi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ri(u[0])].apply(l,u[3]):1==s.length&&yi(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ha(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}function Bo(e,t,n,i,a,s,l,u,d,p){var h=t&c,f=1&t,g=2&t,m=24&t,v=512&t,y=g?o:Fo(e);return function c(){for(var A=arguments.length,w=r(A),b=A;b--;)w[b]=arguments[b];if(m)var _=oi(c),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,_);if(i&&(w=Eo(w,i,a,m)),s&&(w=So(w,s,l,m)),A-=C,m&&A<p){var E=sn(w,_);return Wo(e,t,Bo,c.placeholder,n,w,E,u,d,p-A)}var S=f?n:this,O=g?S[e]:e;return A=w.length,u?w=function(e,t){for(var n=e.length,r=mn(t.length,n),i=Oo(e);r--;){var a=t[r];e[r]=gi(a,n)?i[a]:o}return e}(w,u):v&&A>1&&w.reverse(),h&&d<A&&(w.length=d),this&&this!==dt&&this instanceof c&&(O=y||Fo(O)),O.apply(S,w)}}function No(e,t){return function(n,r){return function(e,t,n,r){return vr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function jo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=io(n),r=io(r)):(n=oo(n),r=oo(r)),i=e(n,r)}return i}}function Uo(e){return Jo(function(t){return t=Tt(t,qt(ii())),$r(function(n){var r=this;return e(t,function(e){return Ct(e,r,n)})})})}function Vo(e,t){var n=(t=t===o?" ":io(t)).length;if(n<2)return n?zr(t,e):t;var r=zr(t,pt(e/cn(t)));return rn(t)?yo(un(r),0,e).join(""):r.slice(0,e)}function Ho(e){return function(t,n,i){return i&&"number"!=typeof i&&mi(t,n,i)&&(n=i=o),t=ds(t),n===o?(n=t,t=0):n=ds(n),function(e,t,n,o){for(var i=-1,a=gn(pt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:ds(i),e)}}function Go(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=fs(t),n=fs(n)),e(t,n)}}function Wo(e,t,n,r,i,a,s,c,u,d){var p=8&t;t|=p?l:64,4&(t&=~(p?64:l))||(t&=-4);var h=[e,t,i,p?a:o,p?s:o,p?o:a,p?o:s,c,u,d],f=n.apply(o,h);return yi(e)&&Oi(f,h),f.placeholder=r,Pi(f,e,t)}function zo(e){var t=Ce[e];return function(e,n){if(e=fs(e),(n=null==n?0:mn(ps(n),292))&&Lt(e)){var r=(ms(e)+"e").split("e");return+((r=(ms(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var $o=En&&1/ln(new En([,-0]))[1]==u?function(e){return new En(e)}:al;function Ko(e){return function(t){var n=di(t);return n==_?on(t):n==x?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return Tt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Qo(e,t,n,a,u,d,p,h){var f=2&t;if(!f&&"function"!=typeof e)throw new xe(i);var g=a?a.length:0;if(g||(t&=-97,a=u=o),p=p===o?p:gn(ps(p),0),h=h===o?h:ps(h),g-=u?u.length:0,64&t){var m=a,v=u;a=u=o}var y=f?o:ni(e),A=[e,t,n,a,u,m,v,d,p,h];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Eo(u,l,t[4]):l,e[4]=u?sn(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?So(u,l,t[6]):l,e[6]=u?sn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&c&&(e[8]=null==e[8]?t[8]:mn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(A,y),e=A[0],t=A[1],n=A[2],a=A[3],u=A[4],!(h=A[9]=A[9]===o?f?0:e.length:gn(A[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=Fo(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=oi(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:sn(l,u);return(s-=d.length)<n?Wo(e,t,Bo,a.placeholder,o,l,d,o,o,n-s):Ct(this&&this!==dt&&this instanceof a?i:e,this,l)}}(e,t,h):t!=l&&33!=t||u.length?Bo.apply(o,A):function(e,t,n,o){var i=1&t,a=Fo(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=r(u+l),p=this&&this!==dt&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return Ct(p,i?n:this,d)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=Fo(e);return function t(){return(this&&this!==dt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Pi((y?Yr:Oi)(w,A),e,t)}function qo(e,t,n,r){return e===o||Na(e,Me[n])&&!Ie.call(r,n)?t:e}function Yo(e,t,n,r,i,a){return Za(e)&&Za(t)&&(a.set(t,e),Nr(e,t,o,Yo,a),a.delete(t)),e}function Xo(e){return ns(e)?o:e}function Zo(e,t,n,r,i,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,f=2&n?new zn:o;for(a.set(e,t),a.set(t,e);++p<l;){var g=e[p],m=t[p];if(r)var v=s?r(m,g,p,t,e,a):r(g,m,p,e,t,a);if(v!==o){if(v)continue;h=!1;break}if(f){if(!kt(t,function(e,t){if(!Xt(f,t)&&(g===e||i(g,e,n,r,a)))return f.push(t)})){h=!1;break}}else if(g!==m&&!i(g,m,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function Jo(e){return Di(Ci(e,o,Gi),e+"")}function ei(e){return br(e,Ps,ci)}function ti(e){return br(e,Ms,ui)}var ni=xn?function(e){return xn.get(e)}:al;function ri(e){for(var t=e.name+"",n=Dn[t],r=Ie.call(Dn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function oi(e){return(Ie.call(Bn,"placeholder")?Bn:e).placeholder}function ii(){var e=Bn.iteratee||nl;return e=e===nl?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function ai(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function si(e){for(var t=Ps(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,bi(o)]}return t}function li(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Tr(n)?n:o}var ci=gt?function(e){return null==e?[]:(e=Ee(e),Dt(gt(e),function(t){return $e.call(e,t)}))}:hl,ui=gt?function(e){for(var t=[];e;)Rt(t,ci(e)),e=We(e);return t}:hl,di=_r;function pi(e,t,n){for(var r=-1,o=(t=mo(t,e)).length,i=!1;++r<o;){var a=ki(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Xa(o)&&gi(a,o)&&(Ha(e)||Va(e))}function hi(e){return"function"!=typeof e.constructor||wi(e)?{}:Nn(We(e))}function fi(e){return Ha(e)||Va(e)||!!(Qe&&e&&e[Qe])}function gi(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function mi(e,t,n){if(!Za(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&gi(t,n.length):"string"==r&&t in n)&&Na(n[t],e)}function vi(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!as(e))||J.test(e)||!Z.test(e)||null!=t&&e in Ee(t)}function yi(e){var t=ri(e),n=Bn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=ni(n);return!!r&&e===r[0]}(bn&&di(new bn(new ArrayBuffer(1)))!=R||_n&&di(new _n)!=_||Cn&&di(Cn.resolve())!=S||En&&di(new En)!=x||Sn&&di(new Sn)!=M)&&(di=function(e){var t=_r(e),n=t==E?e.constructor:o,r=n?Li(n):"";if(r)switch(r){case Pn:return R;case Mn:return _;case Tn:return S;case Rn:return x;case In:return M}return t});var Ai=Te?qa:fl;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function bi(e){return e==e&&!Za(e)}function _i(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Ee(n))}}function Ci(e,t,n){return t=gn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=gn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),Ct(e,this,l)}}function Ei(e,t){return t.length<2?e:wr(e,Jr(t,0,-1))}function Si(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oi=Mi(Yr),xi=ut||function(e,t){return dt.setTimeout(e,t)},Di=Mi(Xr);function Pi(e,t,n){var r=t+"";return Di(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return St(f,function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Mi(e){var t=0,n=0;return function(){var r=vn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ti(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Wr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Ri,Ii,Fi=(Ri=Ra(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,n,r,o){t.push(r?o.replace(ue,"$1"):n||e)}),t},function(e){return 500===Ii.size&&Ii.clear(),e}),Ii=Ri.cache,Ri);function ki(e){if("string"==typeof e||as(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Li(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bi(e){if(e instanceof Vn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ni=$r(function(e,t){return za(e)?lr(e,fr(t,1,za,!0)):[]}),ji=$r(function(e,t){var n=Qi(t);return za(n)&&(n=o),za(e)?lr(e,fr(t,1,za,!0),ii(n,2)):[]}),Ui=$r(function(e,t){var n=Qi(t);return za(n)&&(n=o),za(e)?lr(e,fr(t,1,za,!0),o,n):[]});function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ps(n);return o<0&&(o=gn(r+o,0)),Nt(e,ii(t,3),o)}function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ps(n),i=n<0?gn(r+i,0):mn(i,r-1)),Nt(e,ii(t,3),i,!0)}function Gi(e){return null!=e&&e.length?fr(e,1):[]}function Wi(e){return e&&e.length?e[0]:o}var zi=$r(function(e){var t=Tt(e,fo);return t.length&&t[0]===e[0]?Or(t):[]}),$i=$r(function(e){var t=Qi(e),n=Tt(e,fo);return t===Qi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Or(n,ii(t,2)):[]}),Ki=$r(function(e){var t=Qi(e),n=Tt(e,fo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Or(n,o,t):[]});function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var qi=$r(Yi);function Yi(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var Xi=Jo(function(e,t){var n=null==e?0:e.length,r=rr(e,t);return Gr(e,Tt(t,function(e){return gi(e,n)?+e:e}).sort(Co)),r});function Zi(e){return null==e?e:wn.call(e)}var Ji=$r(function(e){return ao(fr(e,1,za,!0))}),ea=$r(function(e){var t=Qi(e);return za(t)&&(t=o),ao(fr(e,1,za,!0),ii(t,2))}),ta=$r(function(e){var t=Qi(e);return t="function"==typeof t?t:o,ao(fr(e,1,za,!0),o,t)});function na(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,function(e){if(za(e))return t=gn(e.length,t),!0}),Kt(t,function(t){return Tt(e,Gt(t))})}function ra(e,t){if(!e||!e.length)return[];var n=na(e);return null==t?n:Tt(n,function(e){return Ct(t,o,e)})}var oa=$r(function(e,t){return za(e)?lr(e,t):[]}),ia=$r(function(e){return po(Dt(e,za))}),aa=$r(function(e){var t=Qi(e);return za(t)&&(t=o),po(Dt(e,za),ii(t,2))}),sa=$r(function(e){var t=Qi(e);return t="function"==typeof t?t:o,po(Dt(e,za),o,t)}),la=$r(na),ca=$r(function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ra(e,n)});function ua(e){var t=Bn(e);return t.__chain__=!0,t}function da(e,t){return t(e)}var pa=Jo(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return rr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:da,args:[i],thisArg:o}),new Un(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)}),ha=Do(function(e,t,n){Ie.call(e,n)?++e[n]:nr(e,n,1)}),fa=ko(Vi),ga=ko(Hi);function ma(e,t){return(Ha(e)?St:cr)(e,ii(t,3))}function va(e,t){return(Ha(e)?Ot:ur)(e,ii(t,3))}var ya=Do(function(e,t,n){Ie.call(e,n)?e[n].push(t):nr(e,n,[t])}),Aa=$r(function(e,t,n){var o=-1,i="function"==typeof t,a=Wa(e)?r(e.length):[];return cr(e,function(e){a[++o]=i?Ct(t,e,n):xr(e,t,n)}),a}),wa=Do(function(e,t,n){nr(e,n,t)});function ba(e,t){return(Ha(e)?Tt:kr)(e,ii(t,3))}var _a=Do(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ca=$r(function(e,t){if(null==e)return[];var n=t.length;return n>1&&mi(e,t[0],t[1])?t=[]:n>2&&mi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,fr(t,1),[])}),Ea=ct||function(){return dt.Date.now()};function Sa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,c,o,o,o,o,t)}function Oa(e,t){var n;if("function"!=typeof t)throw new xe(i);return e=ps(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var xa=$r(function(e,t,n){var r=1;if(n.length){var o=sn(n,oi(xa));r|=l}return Qo(e,r,t,n,o)}),Da=$r(function(e,t,n){var r=3;if(n.length){var o=sn(n,oi(Da));r|=l}return Qo(t,r,e,n,o)});function Pa(e,t,n){var r,a,s,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new xe(i);function g(t){var n=r,i=a;return r=a=o,d=t,l=e.apply(i,n)}function m(e){var n=e-u;return u===o||n>=t||n<0||h&&e-d>=s}function v(){var e=Ea();if(m(e))return y(e);c=xi(v,function(e){var n=t-(e-u);return h?mn(n,s-(e-d)):n}(e))}function y(e){return c=o,f&&r?g(e):(r=a=o,l)}function A(){var e=Ea(),n=m(e);if(r=arguments,a=this,u=e,n){if(c===o)return function(e){return d=e,c=xi(v,t),p?g(e):l}(u);if(h)return Ao(c),c=xi(v,t),g(u)}return c===o&&(c=xi(v,t)),l}return t=fs(t)||0,Za(n)&&(p=!!n.leading,s=(h="maxWait"in n)?gn(fs(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),A.cancel=function(){c!==o&&Ao(c),d=0,r=u=a=c=o},A.flush=function(){return c===o?l:y(Ea())},A}var Ma=$r(function(e,t){return sr(e,1,t)}),Ta=$r(function(e,t,n){return sr(e,fs(t)||0,n)});function Ra(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xe(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ra.Cache||Wn),n}function Ia(e){if("function"!=typeof e)throw new xe(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ra.Cache=Wn;var Fa=vo(function(e,t){var n=(t=1==t.length&&Ha(t[0])?Tt(t[0],qt(ii())):Tt(fr(t,1),qt(ii()))).length;return $r(function(r){for(var o=-1,i=mn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Ct(e,this,r)})}),ka=$r(function(e,t){var n=sn(t,oi(ka));return Qo(e,l,o,t,n)}),La=$r(function(e,t){var n=sn(t,oi(La));return Qo(e,64,o,t,n)}),Ba=Jo(function(e,t){return Qo(e,256,o,o,o,t)});function Na(e,t){return e===t||e!=e&&t!=t}var ja=Go(Cr),Ua=Go(function(e,t){return e>=t}),Va=Dr(function(){return arguments}())?Dr:function(e){return Ja(e)&&Ie.call(e,"callee")&&!$e.call(e,"callee")},Ha=r.isArray,Ga=vt?qt(vt):function(e){return Ja(e)&&_r(e)==T};function Wa(e){return null!=e&&Xa(e.length)&&!qa(e)}function za(e){return Ja(e)&&Wa(e)}var $a=mt||fl,Ka=yt?qt(yt):function(e){return Ja(e)&&_r(e)==y};function Qa(e){if(!Ja(e))return!1;var t=_r(e);return t==A||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ns(e)}function qa(e){if(!Za(e))return!1;var t=_r(e);return t==w||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ya(e){return"number"==typeof e&&e==ps(e)}function Xa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Za(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ja(e){return null!=e&&"object"==typeof e}var es=At?qt(At):function(e){return Ja(e)&&di(e)==_};function ts(e){return"number"==typeof e||Ja(e)&&_r(e)==C}function ns(e){if(!Ja(e)||_r(e)!=E)return!1;var t=We(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==Be}var rs=wt?qt(wt):function(e){return Ja(e)&&_r(e)==O},os=bt?qt(bt):function(e){return Ja(e)&&di(e)==x};function is(e){return"string"==typeof e||!Ha(e)&&Ja(e)&&_r(e)==D}function as(e){return"symbol"==typeof e||Ja(e)&&_r(e)==P}var ss=_t?qt(_t):function(e){return Ja(e)&&Xa(e.length)&&!!ot[_r(e)]},ls=Go(Fr),cs=Go(function(e,t){return e<=t});function us(e){if(!e)return[];if(Wa(e))return is(e)?un(e):Oo(e);if(qe&&e[qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[qe]());var t=di(e);return(t==_?on:t==x?ln:Ns)(e)}function ds(e){return e?(e=fs(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ps(e){var t=ds(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?or(ps(e),0,h):0}function fs(e){if("number"==typeof e)return e;if(as(e))return p;if(Za(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Za(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=fe.test(e);return n||me.test(e)?lt(e.slice(2),n?2:8):he.test(e)?p:+e}function gs(e){return xo(e,Ms(e))}function ms(e){return null==e?"":io(e)}var vs=Po(function(e,t){if(wi(t)||Wa(t))xo(t,Ps(t),e);else for(var n in t)Ie.call(t,n)&&Zn(e,n,t[n])}),ys=Po(function(e,t){xo(t,Ms(t),e)}),As=Po(function(e,t,n,r){xo(t,Ms(t),e,r)}),ws=Po(function(e,t,n,r){xo(t,Ps(t),e,r)}),bs=Jo(rr),_s=$r(function(e,t){e=Ee(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&mi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ms(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===o||Na(d,Me[u])&&!Ie.call(e,u))&&(e[u]=a[u])}return e}),Cs=$r(function(e){return e.push(o,Yo),Ct(Rs,o,e)});function Es(e,t,n){var r=null==e?o:wr(e,t);return r===o?n:r}function Ss(e,t){return null!=e&&pi(e,t,Sr)}var Os=No(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n},Zs(tl)),xs=No(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]},ii),Ds=$r(xr);function Ps(e){return Wa(e)?Kn(e):Ir(e)}function Ms(e){return Wa(e)?Kn(e,!0):function(e){if(!Za(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}(e)}var Ts=Po(function(e,t,n){Nr(e,t,n)}),Rs=Po(function(e,t,n,r){Nr(e,t,n,r)}),Is=Jo(function(e,t){var n={};if(null==e)return n;var r=!1;t=Tt(t,function(t){return t=mo(t,e),r||(r=t.length>1),t}),xo(e,ti(e),n),r&&(n=ir(n,7,Xo));for(var o=t.length;o--;)so(n,t[o]);return n}),Fs=Jo(function(e,t){return null==e?{}:function(e,t){return Vr(e,t,function(t,n){return Ss(e,n)})}(e,t)});function ks(e,t){if(null==e)return{};var n=Tt(ti(e),function(e){return[e]});return t=ii(t),Vr(e,n,function(e,n){return t(e,n[0])})}var Ls=Ko(Ps),Bs=Ko(Ms);function Ns(e){return null==e?[]:Yt(e,Ps(e))}var js=Io(function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)});function Us(e){return Qs(ms(e).toLowerCase())}function Vs(e){return(e=ms(e))&&e.replace(ye,en).replace(Xe,"")}var Hs=Io(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Gs=Io(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Ws=Ro("toLowerCase"),zs=Io(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),$s=Io(function(e,t,n){return e+(n?" ":"")+Qs(t)}),Ks=Io(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Qs=Ro("toUpperCase");function qs(e,t,n){return e=ms(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Ys=$r(function(e,t){try{return Ct(e,o,t)}catch(e){return Qa(e)?e:new be(e)}}),Xs=Jo(function(e,t){return St(t,function(t){t=ki(t),nr(e,t,xa(e[t],e))}),e});function Zs(e){return function(){return e}}var Js=Lo(),el=Lo(!0);function tl(e){return e}function nl(e){return Rr("function"==typeof e?e:ir(e,1))}var rl=$r(function(e,t){return function(n){return xr(n,e,t)}}),ol=$r(function(e,t){return function(n){return xr(e,n,t)}});function il(e,t,n){var r=Ps(t),o=Ar(t,r);null!=n||Za(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Ar(t,Ps(t)));var i=!(Za(n)&&"chain"in n&&!n.chain),a=qa(e);return St(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Oo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})}),e}function al(){}var sl=Uo(Tt),ll=Uo(xt),cl=Uo(kt);function ul(e){return vi(e)?Gt(ki(e)):function(e){return function(t){return wr(t,e)}}(e)}var dl=Ho(),pl=Ho(!0);function hl(){return[]}function fl(){return!1}var gl,ml=jo(function(e,t){return e+t},0),vl=zo("ceil"),yl=jo(function(e,t){return e/t},1),Al=zo("floor"),wl=jo(function(e,t){return e*t},1),bl=zo("round"),_l=jo(function(e,t){return e-t},0);return Bn.after=function(e,t){if("function"!=typeof t)throw new xe(i);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Sa,Bn.assign=vs,Bn.assignIn=ys,Bn.assignInWith=As,Bn.assignWith=ws,Bn.at=bs,Bn.before=Oa,Bn.bind=xa,Bn.bindAll=Xs,Bn.bindKey=Da,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Bn.chain=ua,Bn.chunk=function(e,t,n){t=(n?mi(e,t,n):t===o)?1:gn(ps(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(pt(i/t));a<i;)l[s++]=Jr(e,a,a+=t);return l},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Rt(Ha(n)?Oo(n):[n],fr(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=ii();return e=t?Tt(e,function(e){if("function"!=typeof e[1])throw new xe(i);return[n(e[0]),e[1]]}):[],$r(function(n){for(var r=-1;++r<t;){var o=e[r];if(Ct(o[0],this,n))return Ct(o[1],this,n)}})},Bn.conforms=function(e){return function(e){var t=Ps(e);return function(n){return ar(n,e,t)}}(ir(e,1))},Bn.constant=Zs,Bn.countBy=ha,Bn.create=function(e,t){var n=Nn(e);return null==t?n:tr(n,t)},Bn.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Qo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Pa,Bn.defaults=_s,Bn.defaultsDeep=Cs,Bn.defer=Ma,Bn.delay=Ta,Bn.difference=Ni,Bn.differenceBy=ji,Bn.differenceWith=Ui,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Jr(e,(t=n||t===o?1:ps(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Jr(e,0,(t=r-(t=n||t===o?1:ps(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?co(e,ii(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?co(e,ii(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&mi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ps(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ps(r))<0&&(r+=i),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Ha(e)?Dt:hr)(e,ii(t,3))},Bn.flatMap=function(e,t){return fr(ba(e,t),1)},Bn.flatMapDeep=function(e,t){return fr(ba(e,t),u)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:ps(n),fr(ba(e,t),n)},Bn.flatten=Gi,Bn.flattenDeep=function(e){return null!=e&&e.length?fr(e,u):[]},Bn.flattenDepth=function(e,t){return null!=e&&e.length?fr(e,t=t===o?1:ps(t)):[]},Bn.flip=function(e){return Qo(e,512)},Bn.flow=Js,Bn.flowRight=el,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];nr(r,o[0],o[1])}return r},Bn.functions=function(e){return null==e?[]:Ar(e,Ps(e))},Bn.functionsIn=function(e){return null==e?[]:Ar(e,Ms(e))},Bn.groupBy=ya,Bn.initial=function(e){return null!=e&&e.length?Jr(e,0,-1):[]},Bn.intersection=zi,Bn.intersectionBy=$i,Bn.intersectionWith=Ki,Bn.invert=Os,Bn.invertBy=xs,Bn.invokeMap=Aa,Bn.iteratee=nl,Bn.keyBy=wa,Bn.keys=Ps,Bn.keysIn=Ms,Bn.map=ba,Bn.mapKeys=function(e,t){var n={};return t=ii(t,3),vr(e,function(e,r,o){nr(n,t(e,r,o),e)}),n},Bn.mapValues=function(e,t){var n={};return t=ii(t,3),vr(e,function(e,r,o){nr(n,r,t(e,r,o))}),n},Bn.matches=function(e){return Lr(ir(e,1))},Bn.matchesProperty=function(e,t){return Br(e,ir(t,1))},Bn.memoize=Ra,Bn.merge=Ts,Bn.mergeWith=Rs,Bn.method=rl,Bn.methodOf=ol,Bn.mixin=il,Bn.negate=Ia,Bn.nthArg=function(e){return e=ps(e),$r(function(t){return jr(t,e)})},Bn.omit=Is,Bn.omitBy=function(e,t){return ks(e,Ia(ii(t)))},Bn.once=function(e){return Oa(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Bn.over=sl,Bn.overArgs=Fa,Bn.overEvery=ll,Bn.overSome=cl,Bn.partial=ka,Bn.partialRight=La,Bn.partition=_a,Bn.pick=Fs,Bn.pickBy=ks,Bn.property=ul,Bn.propertyOf=function(e){return function(t){return null==e?o:wr(e,t)}},Bn.pull=qi,Bn.pullAll=Yi,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,ii(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,o,n):e},Bn.pullAt=Xi,Bn.range=dl,Bn.rangeRight=pl,Bn.rearg=Ba,Bn.reject=function(e,t){return(Ha(e)?Dt:hr)(e,Ia(ii(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ii(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Gr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new xe(i);return $r(e,t=t===o?t:ps(t))},Bn.reverse=Zi,Bn.sampleSize=function(e,t,n){return t=(n?mi(e,t,n):t===o)?1:ps(t),(Ha(e)?qn:Qr)(e,t)},Bn.set=function(e,t,n){return null==e?e:qr(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:qr(e,t,n,r)},Bn.shuffle=function(e){return(Ha(e)?Yn:Zr)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&mi(e,t,n)?(t=0,n=r):(t=null==t?0:ps(t),n=n===o?r:ps(n)),Jr(e,t,n)):[]},Bn.sortBy=Ca,Bn.sortedUniq=function(e){return e&&e.length?ro(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?ro(e,ii(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&mi(e,t,n)&&(t=n=o),(n=n===o?h:n>>>0)?(e=ms(e))&&("string"==typeof t||null!=t&&!rs(t))&&!(t=io(t))&&rn(e)?yo(un(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new xe(i);return t=null==t?0:gn(ps(t),0),$r(function(n){var r=n[t],o=yo(n,0,t);return r&&Rt(o,r),Ct(e,this,o)})},Bn.tail=function(e){var t=null==e?0:e.length;return t?Jr(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?Jr(e,0,(t=n||t===o?1:ps(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Jr(e,(t=r-(t=n||t===o?1:ps(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?co(e,ii(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?co(e,ii(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new xe(i);return Za(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Pa(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=da,Bn.toArray=us,Bn.toPairs=Ls,Bn.toPairsIn=Bs,Bn.toPath=function(e){return Ha(e)?Tt(e,ki):as(e)?[e]:Oo(Fi(ms(e)))},Bn.toPlainObject=gs,Bn.transform=function(e,t,n){var r=Ha(e),o=r||$a(e)||ss(e);if(t=ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Za(e)&&qa(i)?Nn(We(e)):{}}return(o?St:vr)(e,function(e,r,o){return t(n,e,r,o)}),n},Bn.unary=function(e){return Sa(e,1)},Bn.union=Ji,Bn.unionBy=ea,Bn.unionWith=ta,Bn.uniq=function(e){return e&&e.length?ao(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?ao(e,ii(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ao(e,o,t):[]},Bn.unset=function(e,t){return null==e||so(e,t)},Bn.unzip=na,Bn.unzipWith=ra,Bn.update=function(e,t,n){return null==e?e:lo(e,t,go(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:lo(e,t,go(n),r)},Bn.values=Ns,Bn.valuesIn=function(e){return null==e?[]:Yt(e,Ms(e))},Bn.without=oa,Bn.words=qs,Bn.wrap=function(e,t){return ka(go(t),e)},Bn.xor=ia,Bn.xorBy=aa,Bn.xorWith=sa,Bn.zip=la,Bn.zipObject=function(e,t){return ho(e||[],t||[],Zn)},Bn.zipObjectDeep=function(e,t){return ho(e||[],t||[],qr)},Bn.zipWith=ca,Bn.entries=Ls,Bn.entriesIn=Bs,Bn.extend=ys,Bn.extendWith=As,il(Bn,Bn),Bn.add=ml,Bn.attempt=Ys,Bn.camelCase=js,Bn.capitalize=Us,Bn.ceil=vl,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=fs(n))==n?n:0),t!==o&&(t=(t=fs(t))==t?t:0),or(fs(e),t,n)},Bn.clone=function(e){return ir(e,4)},Bn.cloneDeep=function(e){return ir(e,5)},Bn.cloneDeepWith=function(e,t){return ir(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return ir(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||ar(e,t,Ps(t))},Bn.deburr=Vs,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=yl,Bn.endsWith=function(e,t,n){e=ms(e),t=io(t);var r=e.length,i=n=n===o?r:or(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Na,Bn.escape=function(e){return(e=ms(e))&&Q.test(e)?e.replace($,tn):e},Bn.escapeRegExp=function(e){return(e=ms(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Bn.every=function(e,t,n){var r=Ha(e)?xt:dr;return n&&mi(e,t,n)&&(t=o),r(e,ii(t,3))},Bn.find=fa,Bn.findIndex=Vi,Bn.findKey=function(e,t){return Bt(e,ii(t,3),vr)},Bn.findLast=ga,Bn.findLastIndex=Hi,Bn.findLastKey=function(e,t){return Bt(e,ii(t,3),yr)},Bn.floor=Al,Bn.forEach=ma,Bn.forEachRight=va,Bn.forIn=function(e,t){return null==e?e:gr(e,ii(t,3),Ms)},Bn.forInRight=function(e,t){return null==e?e:mr(e,ii(t,3),Ms)},Bn.forOwn=function(e,t){return e&&vr(e,ii(t,3))},Bn.forOwnRight=function(e,t){return e&&yr(e,ii(t,3))},Bn.get=Es,Bn.gt=ja,Bn.gte=Ua,Bn.has=function(e,t){return null!=e&&pi(e,t,Er)},Bn.hasIn=Ss,Bn.head=Wi,Bn.identity=tl,Bn.includes=function(e,t,n,r){e=Wa(e)?e:Ns(e),n=n&&!r?ps(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),is(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&jt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ps(n);return o<0&&(o=gn(r+o,0)),jt(e,t,o)},Bn.inRange=function(e,t,n){return t=ds(t),n===o?(n=t,t=0):n=ds(n),function(e,t,n){return e>=mn(t,n)&&e<gn(t,n)}(e=fs(e),t,n)},Bn.invoke=Ds,Bn.isArguments=Va,Bn.isArray=Ha,Bn.isArrayBuffer=Ga,Bn.isArrayLike=Wa,Bn.isArrayLikeObject=za,Bn.isBoolean=function(e){return!0===e||!1===e||Ja(e)&&_r(e)==v},Bn.isBuffer=$a,Bn.isDate=Ka,Bn.isElement=function(e){return Ja(e)&&1===e.nodeType&&!ns(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||ss(e)||Va(e)))return!e.length;var t=di(e);if(t==_||t==x)return!e.size;if(wi(e))return!Ir(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Pr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Pr(e,t,o,n):!!r},Bn.isError=Qa,Bn.isFinite=function(e){return"number"==typeof e&&Lt(e)},Bn.isFunction=qa,Bn.isInteger=Ya,Bn.isLength=Xa,Bn.isMap=es,Bn.isMatch=function(e,t){return e===t||Mr(e,t,si(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Mr(e,t,si(t),n)},Bn.isNaN=function(e){return ts(e)&&e!=+e},Bn.isNative=function(e){if(Ai(e))throw new be("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Tr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=ts,Bn.isObject=Za,Bn.isObjectLike=Ja,Bn.isPlainObject=ns,Bn.isRegExp=rs,Bn.isSafeInteger=function(e){return Ya(e)&&e>=-9007199254740991&&e<=d},Bn.isSet=os,Bn.isString=is,Bn.isSymbol=as,Bn.isTypedArray=ss,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return Ja(e)&&di(e)==M},Bn.isWeakSet=function(e){return Ja(e)&&"[object WeakSet]"==_r(e)},Bn.join=function(e,t){return null==e?"":Wt.call(e,t)},Bn.kebabCase=Hs,Bn.last=Qi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ps(n))<0?gn(r+i,0):mn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Nt(e,Vt,i,!0)},Bn.lowerCase=Gs,Bn.lowerFirst=Ws,Bn.lt=ls,Bn.lte=cs,Bn.max=function(e){return e&&e.length?pr(e,tl,Cr):o},Bn.maxBy=function(e,t){return e&&e.length?pr(e,ii(t,2),Cr):o},Bn.mean=function(e){return Ht(e,tl)},Bn.meanBy=function(e,t){return Ht(e,ii(t,2))},Bn.min=function(e){return e&&e.length?pr(e,tl,Fr):o},Bn.minBy=function(e,t){return e&&e.length?pr(e,ii(t,2),Fr):o},Bn.stubArray=hl,Bn.stubFalse=fl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=wl,Bn.nth=function(e,t){return e&&e.length?jr(e,ps(t)):o},Bn.noConflict=function(){return dt._===this&&(dt._=Ne),this},Bn.noop=al,Bn.now=Ea,Bn.pad=function(e,t,n){e=ms(e);var r=(t=ps(t))?cn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vo(ht(o),n)+e+Vo(pt(o),n)},Bn.padEnd=function(e,t,n){e=ms(e);var r=(t=ps(t))?cn(e):0;return t&&r<t?e+Vo(t-r,n):e},Bn.padStart=function(e,t,n){e=ms(e);var r=(t=ps(t))?cn(e):0;return t&&r<t?Vo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),yn(ms(e).replace(re,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&mi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ds(e),t===o?(t=e,e=0):t=ds(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=An();return mn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Wr(e,t)},Bn.reduce=function(e,t,n){var r=Ha(e)?It:zt,o=arguments.length<3;return r(e,ii(t,4),n,o,cr)},Bn.reduceRight=function(e,t,n){var r=Ha(e)?Ft:zt,o=arguments.length<3;return r(e,ii(t,4),n,o,ur)},Bn.repeat=function(e,t,n){return t=(n?mi(e,t,n):t===o)?1:ps(t),zr(ms(e),t)},Bn.replace=function(){var e=arguments,t=ms(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=mo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[ki(t[r])];a===o&&(r=i,a=n),e=qa(a)?a.call(e):a}return e},Bn.round=bl,Bn.runInContext=e,Bn.sample=function(e){return(Ha(e)?Qn:Kr)(e)},Bn.size=function(e){if(null==e)return 0;if(Wa(e))return is(e)?cn(e):e.length;var t=di(e);return t==_||t==x?e.size:Ir(e).length},Bn.snakeCase=zs,Bn.some=function(e,t,n){var r=Ha(e)?kt:eo;return n&&mi(e,t,n)&&(t=o),r(e,ii(t,3))},Bn.sortedIndex=function(e,t){return to(e,t)},Bn.sortedIndexBy=function(e,t,n){return no(e,t,ii(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=to(e,t);if(r<n&&Na(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return to(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return no(e,t,ii(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=to(e,t,!0)-1;if(Na(e[n],t))return n}return-1},Bn.startCase=$s,Bn.startsWith=function(e,t,n){return e=ms(e),n=null==n?0:or(ps(n),0,e.length),t=io(t),e.slice(n,n+t.length)==t},Bn.subtract=_l,Bn.sum=function(e){return e&&e.length?$t(e,tl):0},Bn.sumBy=function(e,t){return e&&e.length?$t(e,ii(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&mi(e,t,n)&&(t=o),e=ms(e),t=ws({},t,r,qo);var i=ws({},t.imports,r.imports,qo),a=Ps(i),s=Yt(i,a);St(a,function(e){if(ce.test(e))throw new be("Invalid `imports` option passed into `_.template`")});var l,c,u=0,d=t.interpolate||Ae,p="__p += '",h=Se((t.escape||Ae).source+"|"+d.source+"|"+(d===X?de:Ae).source+"|"+(t.evaluate||Ae).source+"|$","g"),f="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,function(t,n,r,o,i,a){return r||(r=o),p+=e.slice(u,a).replace(we,nn),n&&(l=!0,p+="' +\n__e("+n+") +\n'"),i&&(c=!0,p+="';\n"+i+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=a+t.length,t}),p+="';\n";var g=Ie.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new be("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(c?p.replace(H,""):p).replace(G,"$1").replace(W,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Ys(function(){return _e(a,f+"return "+p).apply(o,s)});if(m.source=p,Qa(m))throw m;return m},Bn.times=function(e,t){if((e=ps(e))<1||e>d)return[];var n=h,r=mn(e,h);t=ii(t),e-=h;for(var o=Kt(r,t);++n<e;)t(n);return o},Bn.toFinite=ds,Bn.toInteger=ps,Bn.toLength=hs,Bn.toLower=function(e){return ms(e).toLowerCase()},Bn.toNumber=fs,Bn.toSafeInteger=function(e){return e?or(ps(e),-9007199254740991,d):0===e?e:0},Bn.toString=ms,Bn.toUpper=function(e){return ms(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=ms(e))&&(n||t===o))return Qt(e);if(!e||!(t=io(t)))return e;var r=un(e),i=un(t);return yo(r,Zt(r,i),Jt(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=ms(e))&&(n||t===o))return e.slice(0,dn(e)+1);if(!e||!(t=io(t)))return e;var r=un(e);return yo(r,0,Jt(r,un(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=ms(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=io(t)))return e;var r=un(e);return yo(r,Zt(r,un(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(Za(t)){var i="separator"in t?t.separator:i;n="length"in t?ps(t.length):n,r="omission"in t?io(t.omission):r}var a=(e=ms(e)).length;if(rn(e)){var s=un(e);a=s.length}if(n>=a)return e;var l=n-cn(r);if(l<1)return r;var c=s?yo(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),rs(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Se(i.source,ms(pe.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===o?l:p)}}else if(e.indexOf(io(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Bn.unescape=function(e){return(e=ms(e))&&K.test(e)?e.replace(z,pn):e},Bn.uniqueId=function(e){var t=++Fe;return ms(e)+t},Bn.upperCase=Ks,Bn.upperFirst=Qs,Bn.each=ma,Bn.eachRight=va,Bn.first=Wi,il(Bn,(gl={},vr(Bn,function(e,t){Ie.call(Bn.prototype,t)||(gl[t]=e)}),gl),{chain:!1}),Bn.VERSION="4.18.1",St(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Bn[e].placeholder=Bn}),St(["drop","take"],function(e,t){Vn.prototype[e]=function(n){n=n===o?1:gn(ps(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=mn(n,r.__takeCount__):r.__views__.push({size:mn(n,h),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),St(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),St(["head","last"],function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}}),St(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}}),Vn.prototype.compact=function(){return this.filter(tl)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=$r(function(e,t){return"function"==typeof e?new Vn(this):this.map(function(n){return xr(n,e,t)})}),Vn.prototype.reject=function(e){return this.filter(Ia(ii(e)))},Vn.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(h)},vr(Vn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Vn,c=s[0],u=l||Ha(t),d=function(e){var t=i.apply(Bn,Rt([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=a&&!p,g=l&&!h;if(!a&&u){t=g?t:new Vn(this);var m=e.apply(t,s);return m.__actions__.push({func:da,args:[d],thisArg:o}),new Un(m,p)}return f&&g?e.apply(this,s):(m=this.thru(d),f?r?m.value()[0]:m.value():m)})}),St(["pop","push","shift","sort","splice","unshift"],function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ha(o)?o:[],e)}return this[n](function(n){return t.apply(Ha(n)?n:[],e)})}}),vr(Vn.prototype,function(e,t){var n=Bn[t];if(n){var r=n.name+"";Ie.call(Dn,r)||(Dn[r]=[]),Dn[r].push({name:t,func:n})}}),Dn[Bo(o,2).name]=[{name:"wrapper",func:o}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=mn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,h=mn(l,this.__takeCount__);if(!n||!r&&o==l&&h==l)return uo(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var g=-1,m=e[c+=t];++g<d;){var v=u[g],y=v.iteratee,A=v.type,w=y(m);if(2==A)m=w;else if(!w){if(1==A)continue e;break e}}f[p++]=m}return f},Bn.prototype.at=pa,Bn.prototype.chain=function(){return ua(this)},Bn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=us(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof jn;){var r=Bi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:da,args:[Zi],thisArg:o}),new Un(t,this.__chain__)}return this.thru(Zi)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return uo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,qe&&(Bn.prototype[qe]=function(){return this}),Bn}();dt._=hn,(r=function(){return hn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},40105(e,t,n){var r=n(65111),o=n(3334),i=n(41393),a=n(53142);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},69011(e,t,n){var r=n(68250);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},82451(e,t,n){var r=n(40091),o=n(77848)(function(e,t,n){r(e,t,n)});e.exports=o},48875(e,t,n){var r=n(40091),o=n(77848)(function(e,t,n,o){r(e,t,n,o)});e.exports=o},79071(e){e.exports=function(){}},94495(e,t,n){var r=n(78942);e.exports=function(){return r.Date.now()}},3326(e,t,n){var r=n(65111),o=n(69334),i=n(81586),a=n(93526),s=n(39032),l=n(29259),c=n(41439),u=n(93650),d=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,function(t){return t=a(t,e),c||(c=t.length>1),t}),s(e,u(e),n),c&&(n=o(n,7,l));for(var d=t.length;d--;)i(n,t[d]);return n});e.exports=d},43282(e,t,n){var r=n(12762),o=n(98880),i=n(65187),a=n(66040);e.exports=function(e){return i(e)?r(a(e)):o(e)}},70581(e,t,n){var r=n(49261);e.exports=function(e,t){return e&&e.length&&t&&t.length?r(e,t):e}},40074(e,t,n){var r=n(90313),o=n(70310),i=n(23945),a=n(74535),s=i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=s},95479(e,t,n){var r=n(93640),o=n(5485),i=r(function(e,t,n){return e+(n?" ":"")+o(t)});e.exports=i},99306(e){e.exports=function(){return[]}},34772(e){e.exports=function(){return!1}},97331(e,t,n){var r=n(12784),o=n(41580);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},43301(e,t,n){var r=n(6131),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},67642(e,t,n){var r=n(43301);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},6131(e,t,n){var r=n(86403),o=n(41580),i=n(51187),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},42613(e,t,n){var r=n(65111),o=n(84354),i=n(53142),a=n(51187),s=n(96493),l=n(66040),c=n(95243);e.exports=function(e){return i(e)?r(e,l):a(e)?[e]:o(s(c(e)))}},64207(e,t,n){var r=n(39032),o=n(25288);e.exports=function(e){return r(e,o(e))}},95243(e,t,n){var r=n(52291);e.exports=function(e){return null==e?"":r(e)}},55620(e,t,n){var r=n(90313),o=n(23945),i=n(15630),a=n(65406),s=o(function(e){return i(r(e,1,a,!0))});e.exports=s},82438(e,t,n){var r=n(15630);e.exports=function(e){return e&&e.length?r(e):[]}},19106(e,t,n){var r=n(15630);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?r(e,void 0,t):[]}},5485(e,t,n){var r=n(4326)("toUpperCase");e.exports=r},30795(e,t,n){var r=n(96576),o=n(23945),i=n(65406),a=o(function(e,t){return i(e)?r(e,t):[]});e.exports=a},39850(e,t,n){var r=n(39546),o=n(15813),i=n(95243),a=n(10482);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},86355(e,t){var n,r,o;!function(i,a){"use strict";"object"==typeof e.exports?e.exports=a():(r=[],void 0===(o="function"==typeof(n=a)?n.apply(t,r):n)||(e.exports=o))}(0,function(){"use strict";var e=Object.prototype.toString;function t(e,t){return null!=e&&Object.prototype.hasOwnProperty.call(e,t)}function n(e){if(!e)return!0;if(o(e)&&0===e.length)return!0;if("string"!=typeof e){for(var n in e)if(t(e,n))return!1;return!0}return!1}function r(t){return e.call(t)}var o=Array.isArray||function(t){return"[object Array]"===e.call(t)};function i(e){var t=parseInt(e);return t.toString()===e?t:e}function a(e){var a,s,l=function(e){return Object.keys(l).reduce(function(t,n){return"create"===n||"function"==typeof l[n]&&(t[n]=l[n].bind(l,e)),t},{})};function c(e,t){if(a(e,t))return e[t]}function u(e,t,n,r){if("number"==typeof t&&(t=[t]),!t||0===t.length)return e;if("string"==typeof t)return u(e,t.split(".").map(i),n,r);var o=t[0],a=s(e,o);return 1===t.length?(void 0!==a&&r||(e[o]=n),a):(void 0===a&&("number"==typeof t[1]?e[o]=[]:e[o]={}),u(e[o],t.slice(1),n,r))}return a=(e=e||{}).includeInheritedProps?function(){return!0}:function(e,n){return"number"==typeof n&&Array.isArray(e)||t(e,n)},s=e.includeInheritedProps?function(e,t){"string"!=typeof t&&"number"!=typeof t&&(t=String(t));var n=c(e,t);if("__proto__"===t||"prototype"===t||"constructor"===t&&"function"==typeof n)throw new Error("For security reasons, object's magic properties cannot be set");return n}:function(e,t){return c(e,t)},l.has=function(n,r){if("number"==typeof r?r=[r]:"string"==typeof r&&(r=r.split(".")),!r||0===r.length)return!!n;for(var a=0;a<r.length;a++){var s=i(r[a]);if(!("number"==typeof s&&o(n)&&s<n.length||(e.includeInheritedProps?s in Object(n):t(n,s))))return!1;n=n[s]}return!0},l.ensureExists=function(e,t,n){return u(e,t,n,!0)},l.set=function(e,t,n,r){return u(e,t,n,r)},l.insert=function(e,t,n,r){var i=l.get(e,t);r=~~r,o(i)||(i=[],l.set(e,t,i)),i.splice(r,0,n)},l.empty=function(e,t){var i,s;if(!n(t)&&null!=e&&(i=l.get(e,t))){if("string"==typeof i)return l.set(e,t,"");if(function(e){return"boolean"==typeof e||"[object Boolean]"===r(e)}(i))return l.set(e,t,!1);if("number"==typeof i)return l.set(e,t,0);if(o(i))i.length=0;else{if(!function(e){return"object"==typeof e&&"[object Object]"===r(e)}(i))return l.set(e,t,null);for(s in i)a(i,s)&&delete i[s]}}},l.push=function(e,t){var n=l.get(e,t);o(n)||(n=[],l.set(e,t,n)),n.push.apply(n,Array.prototype.slice.call(arguments,2))},l.coalesce=function(e,t,n){for(var r,o=0,i=t.length;o<i;o++)if(void 0!==(r=l.get(e,t[o])))return r;return n},l.get=function(e,t,n){if("number"==typeof t&&(t=[t]),!t||0===t.length)return e;if(null==e)return n;if("string"==typeof t)return l.get(e,t.split("."),n);var r=i(t[0]),o=s(e,r);return void 0===o?n:1===t.length?o:l.get(e[r],t.slice(1),n)},l.del=function(e,t){if("number"==typeof t&&(t=[t]),null==e)return e;if(n(t))return e;if("string"==typeof t)return l.del(e,t.split("."));var r=i(t[0]);return s(e,r),a(e,r)?1!==t.length?l.del(e[r],t.slice(1)):(o(e)?e.splice(r,1):delete e[r],e):e},l}var s=a();return s.create=a,s.withInheritedProps=a({includeInheritedProps:!0}),s})},36999(e,t,n){"use strict";var r=n(36848);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},39067(e,t,n){e.exports=n(36999)()},36848(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98130(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;n=f("react.element"),r=f("react.portal"),o=f("react.fragment"),i=f("react.strict_mode"),a=f("react.profiler"),s=f("react.provider"),l=f("react.context"),c=f("react.forward_ref"),u=f("react.suspense"),d=f("react.suspense_list"),p=f("react.memo"),h=f("react.lazy"),f("react.block"),f("react.server.block"),f("react.fundamental"),f("react.debug_trace_mode"),f("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case s:return e;default:return t}}case r:return t}}}(e)===l}},3118(e,t,n){"use strict";e.exports=n(98130)},57553(e,t,n){!function(e,t,n,r,o,i,a,s,l,c,u,d,p,h,f,g,m,v,y,A,w,b,_,C,E,S,O,x,D,P,M,T,R,I,F,k,L,B,N,j,U,V,H,G,W,z,$,K,Q,q,Y,X,Z,J,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de){"use strict";function pe(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var he=pe(t),fe=pe(le),ge=pe(ce);function me(e,t,n){return t=De(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ve()?Reflect.construct(t,n||[],De(e).constructor):t.apply(e,n))}function ve(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ve=function(){return!!e})()}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach(function(t){Se(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function we(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function be(e){return be="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},be(e)}function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,we(r.key),r)}}function Ee(e,t,n){return t&&Ce(e.prototype,t),n&&Ce(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Se(e,t,n){return(t=we(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oe.apply(this,arguments)}function xe(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&&Pe(e,t)}function De(e){return De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},De(e)}function Pe(e,t){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pe(e,t)}function Me(e){return function(e){if(Array.isArray(e))return Te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Te(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)?Te(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Re=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Ie(e){var t=e?"string"==typeof e||e instanceof String?ae.parseISO(e):oe.toDate(e):new Date;return Fe(t)?t:null}function Fe(e,t){return t=t||new Date("1/1/1000"),i.isValid(e)&&!ne.isBefore(e,t)}function ke(e,t,n){if("en"===n)return a.format(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=Ye(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&qe()&&Ye(qe())&&(r=Ye(qe())),a.format(e,t,{locale:r||null,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Le(e,t){var n=t.dateFormat,r=t.locale;return e&&ke(e,Array.isArray(n)?n[0]:n,r)||""}function Be(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,i=void 0===o?0:o,a=t.second,s=void 0===a?0:a;return T.setHours(M.setMinutes(P.setSeconds(e,s),i),r)}function Ne(e,t,n){var r=Ye(t||qe());return H.startOfWeek(e,{locale:r,weekStartsOn:n})}function je(e){return G.startOfMonth(e)}function Ue(e){return z.startOfYear(e)}function Ve(e){return W.startOfQuarter(e)}function He(){return V.startOfDay(Ie())}function Ge(e,t){return e&&t?J.isSameYear(e,t):!e&&!t}function We(e,t){return e&&t?Z.isSameMonth(e,t):!e&&!t}function ze(e,t){return e&&t?ee.isSameQuarter(e,t):!e&&!t}function $e(e,t){return e&&t?X.isSameDay(e,t):!e&&!t}function Ke(e,t){return e&&t?Y.isEqual(e,t):!e&&!t}function Qe(e,t,n){var r,o=V.startOfDay(t),i=$.endOfDay(n);try{r=re.isWithinInterval(e,{start:o,end:i})}catch(e){r=!1}return r}function qe(){return("undefined"!=typeof window?window:globalThis).__localeId__}function Ye(e){if("string"==typeof e){var t="undefined"!=typeof window?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function Xe(e,t){return ke(R.setMonth(Ie(),e),"LLLL",t)}function Ze(e,t){return ke(R.setMonth(Ie(),e),"LLL",t)}function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return st(e,{minDate:n,maxDate:r})||o&&o.some(function(t){return $e(e,t.date?t.date:t)})||i&&i.some(function(t){var n=t.start,r=t.end;return re.isWithinInterval(e,{start:n,end:r})})||a&&!a.some(function(t){return $e(e,t)})||s&&!s.some(function(t){var n=t.start,r=t.end;return re.isWithinInterval(e,{start:n,end:r})})||l&&!l(Ie(e))||!1}function et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(t){var n=t.start,r=t.end;return re.isWithinInterval(e,{start:n,end:r})}):n&&n.some(function(t){return $e(e,t.date?t.date:t)})||!1}function tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return st(e,{minDate:G.startOfMonth(n),maxDate:Q.endOfMonth(r)})||o&&o.some(function(t){return We(e,t)})||i&&!i.some(function(t){return We(e,t)})||a&&!a(Ie(e))||!1}function nt(e,t,n,r){var o=x.getYear(e),i=S.getMonth(e),a=x.getYear(t),s=S.getMonth(t),l=x.getYear(r);return o===a&&o===l?i<=n&&n<=s:o<a?l===o&&i<=n||l===a&&s>=n||l<a&&l>o:void 0}function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return st(e,{minDate:n,maxDate:r})||o&&o.some(function(t){return ze(e,t)})||i&&!i.some(function(t){return ze(e,t)})||a&&!a(Ie(e))||!1}function ot(e,t,n){if(!i.isValid(t)||!i.isValid(n))return!1;var r=x.getYear(t),o=x.getYear(n);return r<=e&&o>=e}function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return st(s,{minDate:z.startOfYear(n),maxDate:q.endOfYear(r)})||o&&o.some(function(e){return Ge(s,e)})||i&&!i.some(function(e){return Ge(s,e)})||a&&!a(Ie(s))||!1}function at(e,t,n,r){var o=x.getYear(e),i=O.getQuarter(e),a=x.getYear(t),s=O.getQuarter(t),l=x.getYear(r);return o===a&&o===l?i<=n&&n<=s:o<a?l===o&&i<=n||l===a&&s>=n||l<a&&l>o:void 0}function st(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&B.differenceInCalendarDays(e,n)<0||r&&B.differenceInCalendarDays(e,r)>0}function lt(e,t){return t.some(function(t){return b.getHours(t)===b.getHours(e)&&w.getMinutes(t)===w.getMinutes(e)&&A.getSeconds(t)===A.getSeconds(e)})}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,o=t.filterTime;return n&&lt(e,n)||r&&!lt(e,r)||o&&!o(e)||!1}function ut(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var o=Ie();o=T.setHours(o,b.getHours(e)),o=M.setMinutes(o,w.getMinutes(e)),o=P.setSeconds(o,A.getSeconds(e));var i=Ie();i=T.setHours(i,b.getHours(n)),i=M.setMinutes(i,w.getMinutes(n)),i=P.setSeconds(i,A.getSeconds(n));var a,s=Ie();s=T.setHours(s,b.getHours(r)),s=M.setMinutes(s,w.getMinutes(r)),s=P.setSeconds(s,A.getSeconds(r));try{a=!re.isWithinInterval(o,{start:i,end:s})}catch(e){a=!1}return a}function dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=m.subMonths(e,1);return n&&N.differenceInCalendarMonths(n,o)>0||r&&r.every(function(e){return N.differenceInCalendarMonths(e,o)>0})||!1}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=d.addMonths(e,1);return n&&N.differenceInCalendarMonths(o,n)>0||r&&r.every(function(e){return N.differenceInCalendarMonths(o,e)>0})||!1}function ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=y.subYears(e,1);return n&&j.differenceInCalendarYears(n,o)>0||r&&r.every(function(e){return j.differenceInCalendarYears(e,o)>0})||!1}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=h.addYears(e,1);return n&&j.differenceInCalendarYears(o,n)>0||r&&r.every(function(e){return j.differenceInCalendarYears(o,e)>0})||!1}function gt(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return B.differenceInCalendarDays(e,t)>=0});return k.min(r)}return n?k.min(n):t}function mt(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return B.differenceInCalendarDays(e,t)<=0});return L.max(r)}return n?L.max(n):t}function vt(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var a=e[r];if(o.isDate(a)){var s=ke(a,"MM.dd.yyyy"),l=n.get(s)||[];l.includes(t)||(l.push(t),n.set(s,l))}else if("object"===be(a)){var c=Object.keys(a),u=c[0],d=a[c[0]];if("string"==typeof u&&d.constructor===Array)for(var p=0,h=d.length;p<h;p++){var f=ke(d[p],"MM.dd.yyyy"),g=n.get(f)||[];g.includes(u)||(g.push(u),n.set(f,g))}}}return n}function yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach(function(e){var r=e.date,i=e.holidayName;if(o.isDate(r)){var a=ke(r,"MM.dd.yyyy"),s=n.get(a)||{};if(!("className"in s)||s.className!==t||(l=s.holidayNames,c=[i],l.length!==c.length||!l.every(function(e,t){return e===c[t]}))){var l,c;s.className=t;var u=s.holidayNames;s.holidayNames=u?[].concat(Me(u),[i]):[i],n.set(a,s)}}}),n}function At(e,t,n,r,o){for(var i=o.length,a=[],c=0;c<i;c++){var u=e;u=l.addHours(u,b.getHours(o[c])),u=s.addMinutes(u,w.getMinutes(o[c])),u=se.addSeconds(u,A.getSeconds(o[c]));var d=s.addMinutes(e,(n+1)*r);te.isAfter(u,t)&&ne.isBefore(u,d)&&a.push(o[c])}return a}function wt(e){return e<10?"0".concat(e):"".concat(e)}function bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,n=Math.ceil(x.getYear(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function _t(e){var t=e.getSeconds(),n=e.getMilliseconds();return oe.toDate(e.getTime()-1e3*t-n)}function Ct(e){if(!o.isDate(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function Et(e,t){if(!o.isDate(e)||!o.isDate(t))throw new Error("Invalid date received");var n=Ct(e),r=Ct(t);return ne.isBefore(n,r)}function St(e){return" "===e.key}function Ot(e,t,n,r){for(var o=[],i=0;i<2*t+1;i++){var a=e+t-i,s=!0;n&&(s=x.getYear(n)<=a),r&&s&&(s=x.getYear(r)>=a),s&&o.push(a)}return o}var xt=function(e){function n(e){var r;_e(this,n),Se(r=me(this,n,[e]),"renderOptions",function(){var e=r.props.year,t=r.state.yearsList.map(function(t){return he.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:r.onChange.bind(r,t),"aria-selected":e===t?"true":void 0},e===t?he.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)}),n=r.props.minDate?x.getYear(r.props.minDate):null,o=r.props.maxDate?x.getYear(r.props.maxDate):null;return o&&r.state.yearsList.find(function(e){return e===o})||t.unshift(he.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},he.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find(function(e){return e===n})||t.push(he.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},he.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t}),Se(r,"onChange",function(e){r.props.onChange(e)}),Se(r,"handleClickOutside",function(){r.props.onCancel()}),Se(r,"shiftYears",function(e){var t=r.state.yearsList.map(function(t){return t+e});r.setState({yearsList:t})}),Se(r,"incrementYears",function(){return r.shiftYears(1)}),Se(r,"decrementYears",function(){return r.shiftYears(-1)});var o=e.yearDropdownItemNumber,i=e.scrollableYearDropdown,a=o||(i?10:5);return r.state={yearsList:Ot(r.props.year,a,r.props.minDate,r.props.maxDate)},r.dropdownRef=t.createRef(),r}return xe(n,e),Ee(n,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find(function(e){return e.ariaSelected}):null;e.scrollTop=n?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=r.clsx({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return he.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}])}(he.default.Component),Dt=fe.default(xt),Pt=function(e){function t(){var e;_e(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Se(e=me(this,t,[].concat(r)),"state",{dropdownVisible:!1}),Se(e,"renderSelectOptions",function(){for(var t=e.props.minDate?x.getYear(e.props.minDate):1900,n=e.props.maxDate?x.getYear(e.props.maxDate):2100,r=[],o=t;o<=n;o++)r.push(he.default.createElement("option",{key:o,value:o},o));return r}),Se(e,"onSelectChange",function(t){e.onChange(t.target.value)}),Se(e,"renderSelectMode",function(){return he.default.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())}),Se(e,"renderReadView",function(t){return he.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)}},he.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),he.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))}),Se(e,"renderDropdown",function(){return he.default.createElement(Dt,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})}),Se(e,"renderScrollMode",function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n}),Se(e,"onChange",function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)}),Se(e,"toggleDropdown",function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)})}),Se(e,"handleYearChange",function(t,n){e.onSelect(t,n),e.setOpen()}),Se(e,"onSelect",function(t,n){e.props.onSelect&&e.props.onSelect(t,n)}),Se(e,"setOpen",function(){e.props.setOpen&&e.props.setOpen(!0)}),e}return xe(t,e),Ee(t,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return he.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)}}])}(he.default.Component),Mt=function(e){function t(){var e;_e(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Se(e=me(this,t,[].concat(r)),"isSelectedMonth",function(t){return e.props.month===t}),Se(e,"renderOptions",function(){return e.props.monthNames.map(function(t,n){return he.default.createElement("div",{className:e.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(e,n),"aria-selected":e.isSelectedMonth(n)?"true":void 0},e.isSelectedMonth(n)?he.default.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",t)})}),Se(e,"onChange",function(t){return e.props.onChange(t)}),Se(e,"handleClickOutside",function(){return e.props.onCancel()}),e}return xe(t,e),Ee(t,[{key:"render",value:function(){return he.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}])}(he.default.Component),Tt=fe.default(Mt),Rt=function(e){function t(){var e;_e(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Se(e=me(this,t,[].concat(r)),"state",{dropdownVisible:!1}),Se(e,"renderSelectOptions",function(e){return e.map(function(e,t){return he.default.createElement("option",{key:t,value:t},e)})}),Se(e,"renderSelectMode",function(t){return he.default.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)}},e.renderSelectOptions(t))}),Se(e,"renderReadView",function(t,n){return he.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},he.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),he.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[e.props.month]))}),Se(e,"renderDropdown",function(t){return he.default.createElement(Tt,{key:"dropdown",month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown})}),Se(e,"renderScrollMode",function(t){var n=e.state.dropdownVisible,r=[e.renderReadView(!n,t)];return n&&r.unshift(e.renderDropdown(t)),r}),Se(e,"onChange",function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)}),Se(e,"toggleDropdown",function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})}),e}return xe(t,e),Ee(t,[{key:"render",value:function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return Ze(e,t.props.locale)}:function(e){return Xe(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return he.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)}}])}(he.default.Component);function It(e,t){for(var n=[],r=je(e),o=je(t);!te.isAfter(r,o);)n.push(Ie(r)),r=d.addMonths(r,1);return n}var Ft=function(e){function t(e){var n;return _e(this,t),Se(n=me(this,t,[e]),"renderOptions",function(){return n.state.monthYearsList.map(function(e){var t=D.getTime(e),r=Ge(n.props.date,e)&&We(n.props.date,e);return he.default.createElement("div",{className:r?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:n.onChange.bind(n,t),"aria-selected":r?"true":void 0},r?he.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",ke(e,n.props.dateFormat,n.props.locale))})}),Se(n,"onChange",function(e){return n.props.onChange(e)}),Se(n,"handleClickOutside",function(){n.props.onCancel()}),n.state={monthYearsList:It(n.props.minDate,n.props.maxDate)},n}return xe(t,e),Ee(t,[{key:"render",value:function(){var e=r.clsx({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return he.default.createElement("div",{className:e},this.renderOptions())}}])}(he.default.Component),kt=fe.default(Ft),Lt=function(e){function t(){var e;_e(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Se(e=me(this,t,[].concat(r)),"state",{dropdownVisible:!1}),Se(e,"renderSelectOptions",function(){for(var t=je(e.props.minDate),n=je(e.props.maxDate),r=[];!te.isAfter(t,n);){var o=D.getTime(t);r.push(he.default.createElement("option",{key:o,value:o},ke(t,e.props.dateFormat,e.props.locale))),t=d.addMonths(t,1)}return r}),Se(e,"onSelectChange",function(t){e.onChange(t.target.value)}),Se(e,"renderSelectMode",function(){return he.default.createElement("select",{value:D.getTime(je(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())}),Se(e,"renderReadView",function(t){var n=ke(e.props.date,e.props.dateFormat,e.props.locale);return he.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)}},he.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),he.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))}),Se(e,"renderDropdown",function(){return he.default.createElement(kt,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale})}),Se(e,"renderScrollMode",function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n}),Se(e,"onChange",function(t){e.toggleDropdown();var n=Ie(parseInt(t));Ge(e.props.date,n)&&We(e.props.date,n)||e.props.onChange(n)}),Se(e,"toggleDropdown",function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})}),e}return xe(t,e),Ee(t,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return he.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)}}])}(he.default.Component),Bt=function(e){function t(){var e;_e(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return Se(e=me(this,t,[].concat(o)),"dayEl",he.default.createRef()),Se(e,"handleClick",function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)}),Se(e,"handleMouseEnter",function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)}),Se(e,"handleOnKeyDown",function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)}),Se(e,"isSameDay",function(t){return $e(e.props.day,t)}),Se(e,"isKeyboardSelected",function(){var t;return!e.props.disabledKeyboardNavigation&&!(e.props.selectsMultiple?null===(t=e.props.selectedDates)||void 0===t?void 0:t.some(function(t){return e.isSameDayOrWeek(t)}):e.isSameDayOrWeek(e.props.selected))&&e.isSameDayOrWeek(e.props.preSelection)}),Se(e,"isDisabled",function(){return Je(e.props.day,e.props)}),Se(e,"isExcluded",function(){return et(e.props.day,e.props)}),Se(e,"isStartOfWeek",function(){return $e(e.props.day,Ne(e.props.day,e.props.locale,e.props.calendarStartDay))}),Se(e,"isSameWeek",function(t){return e.props.showWeekPicker&&$e(t,Ne(e.props.day,e.props.locale,e.props.calendarStartDay))}),Se(e,"isSameDayOrWeek",function(t){return e.isSameDay(t)||e.isSameWeek(t)}),Se(e,"getHighLightedClass",function(){var t=e.props,n=t.day,r=t.highlightDates;if(!r)return!1;var o=ke(n,"MM.dd.yyyy");return r.get(o)}),Se(e,"getHolidaysClass",function(){var t=e.props,n=t.day,r=t.holidays;if(!r)return!1;var o=ke(n,"MM.dd.yyyy");return r.has(o)?[r.get(o).className]:void 0}),Se(e,"isInRange",function(){var t=e.props,n=t.day,r=t.startDate,o=t.endDate;return!(!r||!o)&&Qe(n,r,o)}),Se(e,"isInSelectingRange",function(){var t,n=e.props,r=n.day,o=n.selectsStart,i=n.selectsEnd,a=n.selectsRange,s=n.selectsDisabledDaysInRange,l=n.startDate,c=n.endDate,u=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return!(!(o||i||a)||!u||!s&&e.isDisabled())&&(o&&c&&(ne.isBefore(u,c)||Ke(u,c))?Qe(r,u,c):(i&&l&&(te.isAfter(u,l)||Ke(u,l))||!(!a||!l||c||!te.isAfter(u,l)&&!Ke(u,l)))&&Qe(r,l,u))}),Se(e,"isSelectingRangeStart",function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,o=n.startDate,i=n.selectsStart,a=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return $e(r,i?a:o)}),Se(e,"isSelectingRangeEnd",function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,o=n.endDate,i=n.selectsEnd,a=n.selectsRange,s=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return $e(r,i||a?s:o)}),Se(e,"isRangeStart",function(){var t=e.props,n=t.day,r=t.startDate,o=t.endDate;return!(!r||!o)&&$e(r,n)}),Se(e,"isRangeEnd",function(){var t=e.props,n=t.day,r=t.startDate,o=t.endDate;return!(!r||!o)&&$e(o,n)}),Se(e,"isWeekend",function(){var t=_.getDay(e.props.day);return 0===t||6===t}),Se(e,"isAfterMonth",function(){return void 0!==e.props.month&&(e.props.month+1)%12===S.getMonth(e.props.day)}),Se(e,"isBeforeMonth",function(){return void 0!==e.props.month&&(S.getMonth(e.props.day)+1)%12===e.props.month}),Se(e,"isCurrentDay",function(){return e.isSameDay(Ie())}),Se(e,"isSelected",function(){var t;return e.props.selectsMultiple?null===(t=e.props.selectedDates)||void 0===t?void 0:t.some(function(t){return e.isSameDayOrWeek(t)}):e.isSameDayOrWeek(e.props.selected)}),Se(e,"getClassNames",function(t){var n=e.props.dayClassName?e.props.dayClassName(t):void 0;return r.clsx("react-datepicker__day",n,"react-datepicker__day--"+ke(e.props.day,"ddd",void 0),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"),e.getHolidaysClass())}),Se(e,"getAriaLabel",function(){var t=e.props,n=t.day,r=t.ariaLabelPrefixWhenEnabled,o=void 0===r?"Choose":r,i=t.ariaLabelPrefixWhenDisabled,a=void 0===i?"Not available":i,s=e.isDisabled()||e.isExcluded()?a:o;return"".concat(s," ").concat(ke(n,"PPPP",e.props.locale))}),Se(e,"getTitle",function(){var t=e.props,n=t.day,r=t.holidays,o=void 0===r?new Map:r,i=t.excludeDates,a=ke(n,"MM.dd.yyyy"),s=[];return o.has(a)&&s.push.apply(s,Me(o.get(a).holidayNames)),e.isExcluded()&&s.push(null==i?void 0:i.filter(function(e){return $e(e.date?e.date:e,n)}).map(function(e){return e.message})),s.join(", ")}),Se(e,"getTabIndex",function(t,n){var r=t||e.props.selected,o=n||e.props.preSelection;return(!e.props.showWeekPicker||!e.props.showWeekNumber&&e.isStartOfWeek())&&(e.isKeyboardSelected()||e.isSameDay(r)&&$e(o,r))?0:-1}),Se(e,"handleFocusDay",function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=!1;0===e.getTabIndex()&&!n.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(r=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(r=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(r=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(r=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(r=!1)),r&&(null===(t=e.dayEl.current)||void 0===t||t.focus({preventScroll:!0}))}),Se(e,"renderDayContents",function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(C.getDate(e.props.day),e.props.day):C.getDate(e.props.day)}),Se(e,"render",function(){return he.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.props.usePointerEvent?void 0:e.handleMouseEnter,onPointerEnter:e.props.usePointerEvent?e.handleMouseEnter:void 0,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),""!==e.getTitle()&&he.default.createElement("span",{className:"overlay"},e.getTitle()))}),e}return xe(t,e),Ee(t,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}])}(he.default.Component),Nt=function(e){function t(){var e;_e(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Se(e=me(this,t,[].concat(r)),"weekNumberEl",he.default.createRef()),Se(e,"handleClick",function(t){e.props.onClick&&e.props.onClick(t)}),Se(e,"handleOnKeyDown",function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)}),Se(e,"isKeyboardSelected",function(){return!e.props.disabledKeyboardNavigation&&!$e(e.props.date,e.props.selected)&&$e(e.props.date,e.props.preSelection)}),Se(e,"getTabIndex",function(){return e.props.showWeekPicker&&e.props.showWeekNumber&&(e.isKeyboardSelected()||$e(e.props.date,e.props.selected)&&$e(e.props.preSelection,e.props.selected))?0:-1}),Se(e,"handleFocusWeekNumber",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&$e(e.props.date,e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})}),e}return xe(t,e),Ee(t,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(e){this.handleFocusWeekNumber(e)}},{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,o=void 0===n?"week ":n,i=e.onClick,a={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!i,"react-datepicker__week-number--selected":!!i&&$e(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return he.default.createElement("div",{ref:this.weekNumberEl,className:r.clsx(a),"aria-label":"".concat(o," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},t)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}])}(he.default.Component),jt=function(e){function t(){var e;_e(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Se(e=me(this,t,[].concat(r)),"handleDayClick",function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n)}),Se(e,"handleDayMouseEnter",function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)}),Se(e,"handleWeekClick",function(t,n,r){"function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,r),e.props.showWeekPicker&&e.handleDayClick(t,r),e.props.shouldCloseOnSelect&&e.props.setOpen(!1)}),Se(e,"formatWeekNumber",function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):function(e){var t=qe()&&Ye(qe());return E.getISOWeek(e,t?{locale:t}:null)}(t)}),Se(e,"renderDays",function(){var t=e.startOfWeek(),n=[],r=e.formatWeekNumber(t);if(e.props.showWeekNumber){var o=e.props.onWeekSelect||e.props.showWeekPicker?e.handleWeekClick.bind(e,t,r):void 0;n.push(he.default.createElement(Nt,{key:"W",weekNumber:r,date:t,onClick:o,selected:e.props.selected,preSelection:e.props.preSelection,ariaLabelPrefix:e.props.ariaLabelPrefix,showWeekPicker:e.props.showWeekPicker,showWeekNumber:e.props.showWeekNumber,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef}))}return n.concat([0,1,2,3,4,5,6].map(function(n){var r=c.addDays(t,n);return he.default.createElement(Bt,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:r.valueOf(),day:r,month:e.props.month,onClick:e.handleDayClick.bind(e,r),usePointerEvent:e.props.usePointerEvent,onMouseEnter:e.handleDayMouseEnter.bind(e,r),minDate:e.props.minDate,maxDate:e.props.maxDate,calendarStartDay:e.props.calendarStartDay,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,showWeekPicker:e.props.showWeekPicker,showWeekNumber:e.props.showWeekNumber,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,selectsMultiple:e.props.selectsMultiple,selectedDates:e.props.selectedDates,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})}))}),Se(e,"startOfWeek",function(){return Ne(e.props.day,e.props.locale,e.props.calendarStartDay)}),Se(e,"isKeyboardSelected",function(){return!e.props.disabledKeyboardNavigation&&!$e(e.startOfWeek(),e.props.selected)&&$e(e.startOfWeek(),e.props.preSelection)}),e}return xe(t,e),Ee(t,[{key:"render",value:function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":$e(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return he.default.createElement("div",{className:r.clsx(e)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}])}(he.default.Component),Ut="two_columns",Vt="three_columns",Ht="four_columns",Gt=Se(Se(Se({},Ut,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),Vt,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),Ht,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function Wt(e,t){return e?Ht:t?Ut:Vt}var zt=function(e){function t(){var e;_e(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return Se(e=me(this,t,[].concat(o)),"MONTH_REFS",Me(Array(12)).map(function(){return he.default.createRef()})),Se(e,"QUARTER_REFS",Me(Array(4)).map(function(){return he.default.createRef()})),Se(e,"isDisabled",function(t){return Je(t,e.props)}),Se(e,"isExcluded",function(t){return et(t,e.props)}),Se(e,"handleDayClick",function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)}),Se(e,"handleDayMouseEnter",function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)}),Se(e,"handleMouseLeave",function(){e.props.onMouseLeave&&e.props.onMouseLeave()}),Se(e,"isRangeStartMonth",function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&We(R.setMonth(r,t),o)}),Se(e,"isRangeStartQuarter",function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&ze(I.setQuarter(r,t),o)}),Se(e,"isRangeEndMonth",function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&We(R.setMonth(r,t),i)}),Se(e,"isRangeEndQuarter",function(t){var n=e.props,r=n.day,o=n.startDate,i=n.endDate;return!(!o||!i)&&ze(I.setQuarter(r,t),i)}),Se(e,"isInSelectingRangeMonth",function(t){var n,r=e.props,o=r.day,i=r.selectsStart,a=r.selectsEnd,s=r.selectsRange,l=r.startDate,c=r.endDate,u=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(i||a||s)||!u)&&(i&&c?nt(u,c,t,o):(a&&l||!(!s||!l||c))&&nt(l,u,t,o))}),Se(e,"isSelectingMonthRangeStart",function(t){var n;if(!e.isInSelectingRangeMonth(t))return!1;var r=e.props,o=r.day,i=r.startDate,a=r.selectsStart,s=R.setMonth(o,t),l=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return We(s,a?l:i)}),Se(e,"isSelectingMonthRangeEnd",function(t){var n;if(!e.isInSelectingRangeMonth(t))return!1;var r=e.props,o=r.day,i=r.endDate,a=r.selectsEnd,s=r.selectsRange,l=R.setMonth(o,t),c=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return We(l,a||s?c:i)}),Se(e,"isInSelectingRangeQuarter",function(t){var n,r=e.props,o=r.day,i=r.selectsStart,a=r.selectsEnd,s=r.selectsRange,l=r.startDate,c=r.endDate,u=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(i||a||s)||!u)&&(i&&c?at(u,c,t,o):(a&&l||!(!s||!l||c))&&at(l,u,t,o))}),Se(e,"isWeekInMonth",function(t){var n=e.props.day,r=c.addDays(t,6);return We(t,n)||We(r,n)}),Se(e,"isCurrentMonth",function(e,t){return x.getYear(e)===x.getYear(Ie())&&t===S.getMonth(Ie())}),Se(e,"isCurrentQuarter",function(e,t){return x.getYear(e)===x.getYear(Ie())&&t===O.getQuarter(Ie())}),Se(e,"isSelectedMonth",function(e,t,n){return S.getMonth(n)===t&&x.getYear(e)===x.getYear(n)}),Se(e,"isSelectedQuarter",function(e,t,n){return O.getQuarter(e)===t&&x.getYear(e)===x.getYear(n)}),Se(e,"renderWeeks",function(){for(var t=[],n=e.props.fixedHeight,r=0,o=!1,i=Ne(je(e.props.day),e.props.locale,e.props.calendarStartDay),a=e.props.showWeekPicker?Ne(e.props.selected,e.props.locale,e.props.calendarStartDay):e.props.selected,s=e.props.showWeekPicker?Ne(e.props.preSelection,e.props.locale,e.props.calendarStartDay):e.props.preSelection;t.push(he.default.createElement(jt,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:r,day:i,month:S.getMonth(e.props.day),onDayClick:e.handleDayClick,usePointerEvent:e.props.usePointerEvent,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:s,selected:a,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,selectsMultiple:e.props.selectsMultiple,selectedDates:e.props.selectedDates,showWeekNumber:e.props.showWeekNumbers,showWeekPicker:e.props.showWeekPicker,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!o;){r++,i=u.addWeeks(i,1);var l=n&&r>=6,c=!n&&!e.isWeekInMonth(i);if(l||c){if(!e.props.peekNextMonth)break;o=!0}}return t}),Se(e,"onMonthClick",function(t,n){var r=R.setMonth(e.props.day,n);tt(r,e.props)||e.handleDayClick(je(r),t)}),Se(e,"onMonthMouseEnter",function(t){var n=R.setMonth(e.props.day,t);tt(n,e.props)||e.handleDayMouseEnter(je(n))}),Se(e,"handleMonthNavigation",function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())}),Se(e,"onMonthKeyDown",function(t,n){var r=e.props,o=r.selected,i=r.preSelection,a=r.disabledKeyboardNavigation,s=r.showTwoColumnMonthYearPicker,l=r.showFourColumnMonthYearPicker,c=r.setPreSelection,u=r.handleOnMonthKeyDown,p=t.key;if("Tab"!==p&&t.preventDefault(),!a){var h=Wt(l,s),f=Gt[h].verticalNavigationOffset,g=Gt[h].grid;switch(p){case"Enter":e.onMonthClick(t,n),c(o);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,d.addMonths(i,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,m.subMonths(i,1));break;case"ArrowUp":e.handleMonthNavigation(g[0].includes(n)?n+12-f:n-f,m.subMonths(i,f));break;case"ArrowDown":e.handleMonthNavigation(g[g.length-1].includes(n)?n-12+f:n+f,d.addMonths(i,f))}}u&&u(t)}),Se(e,"onQuarterClick",function(t,n){var r=I.setQuarter(e.props.day,n);rt(r,e.props)||e.handleDayClick(Ve(r),t)}),Se(e,"onQuarterMouseEnter",function(t){var n=I.setQuarter(e.props.day,t);rt(n,e.props)||e.handleDayMouseEnter(Ve(n))}),Se(e,"handleQuarterNavigation",function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())}),Se(e,"onQuarterKeyDown",function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,p.addQuarters(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,v.subQuarters(e.props.preSelection,1))}}),Se(e,"isMonthDisabled",function(t){var n=e.props,r=n.day,o=n.minDate,i=n.maxDate,a=n.excludeDates,s=n.includeDates,l=R.setMonth(r,t);return(o||i||a||s)&&tt(l,e.props)}),Se(e,"getMonthClassNames",function(t){var n=e.props,o=n.day,i=n.startDate,a=n.endDate,s=n.selected,l=n.preSelection,c=n.monthClassName,u=c?c(R.setMonth(o,t)):void 0;return r.clsx("react-datepicker__month-text","react-datepicker__month-".concat(t),u,{"react-datepicker__month-text--disabled":e.isMonthDisabled(t),"react-datepicker__month-text--selected":e.isSelectedMonth(o,t,s),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&e.isSelectedMonth(o,t,l),"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":nt(i,a,t,o),"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(o,t)})}),Se(e,"getTabIndex",function(t){var n=S.getMonth(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"}),Se(e,"getQuarterTabIndex",function(t){var n=O.getQuarter(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"}),Se(e,"getAriaLabel",function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,o=void 0===r?"Choose":r,i=n.disabledDayAriaLabelPrefix,a=void 0===i?"Not available":i,s=n.day,l=n.locale,c=R.setMonth(s,t),u=e.isDisabled(c)||e.isExcluded(c)?a:o;return"".concat(u," ").concat(ke(c,"MMMM yyyy",l))}),Se(e,"getQuarterClassNames",function(t){var n=e.props,o=n.day,i=n.startDate,a=n.endDate,s=n.selected,l=n.minDate,c=n.maxDate,u=n.preSelection,d=n.disabledKeyboardNavigation;return r.clsx("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":(l||c)&&rt(I.setQuarter(o,t),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(o,t,s),"react-datepicker__quarter-text--keyboard-selected":!d&&e.isSelectedQuarter(o,t,u),"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":at(i,a,t,o),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})}),Se(e,"getMonthContent",function(t){var n=e.props,r=n.showFullMonthYearPicker,o=n.renderMonthContent,i=n.locale,a=n.day,s=Ze(t,i),l=Xe(t,i);return o?o(t,s,l,a):r?l:s}),Se(e,"getQuarterContent",function(t){var n=e.props,r=n.renderQuarterContent,o=function(e,t){return ke(I.setQuarter(Ie(),e),"QQQ",t)}(t,n.locale);return r?r(t,o):o}),Se(e,"renderMonths",function(){var t=e.props,n=t.showTwoColumnMonthYearPicker,r=t.showFourColumnMonthYearPicker,o=t.day,i=t.selected;return Gt[Wt(r,n)].grid.map(function(t,n){return he.default.createElement("div",{className:"react-datepicker__month-wrapper",key:n},t.map(function(t,n){return he.default.createElement("div",{ref:e.MONTH_REFS[t],key:n,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){St(n)&&(n.preventDefault(),n.key="Enter"),e.onMonthKeyDown(n,t)},onMouseEnter:e.props.usePointerEvent?void 0:function(){return e.onMonthMouseEnter(t)},onPointerEnter:e.props.usePointerEvent?function(){return e.onMonthMouseEnter(t)}:void 0,tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),"aria-disabled":e.isMonthDisabled(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(o,t)?"date":void 0,"aria-selected":e.isSelectedMonth(o,t,i)},e.getMonthContent(t))}))})}),Se(e,"renderQuarters",function(){var t=e.props,n=t.day,r=t.selected;return he.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(t,o){return he.default.createElement("div",{key:o,ref:e.QUARTER_REFS[o],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},onMouseEnter:e.props.usePointerEvent?void 0:function(){return e.onQuarterMouseEnter(t)},onPointerEnter:e.props.usePointerEvent?function(){return e.onQuarterMouseEnter(t)}:void 0,className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},e.getQuarterContent(t))}))}),Se(e,"getClassNames",function(){var t=e.props,n=t.selectingDate,o=t.selectsStart,i=t.selectsEnd,a=t.showMonthYearPicker,s=t.showQuarterYearPicker,l=t.showWeekPicker;return r.clsx("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(o||i)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":s},{"react-datepicker__weekPicker":l})}),e}return xe(t,e),Ee(t,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,o=e.ariaLabelPrefix,i=void 0===o?"Month ":o,a=i?i.trim()+" ":"";return he.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(a).concat(ke(r,"MMMM, yyyy",this.props.locale)),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}])}(he.default.Component),$t=function(e){function t(){var e;_e(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Se(e=me(this,t,[].concat(r)),"state",{height:null}),Se(e,"scrollToTheSelectedTime",function(){requestAnimationFrame(function(){e.list&&(e.list.scrollTop=e.centerLi&&t.calcCenterPosition(e.props.monthRef?e.props.monthRef.clientHeight-e.header.clientHeight:e.list.clientHeight,e.centerLi))})}),Se(e,"handleClick",function(t){(e.props.minTime||e.props.maxTime)&&ut(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&ct(t,e.props)||e.props.onChange(t)}),Se(e,"isSelectedTime",function(t){return e.props.selected&&(n=t,_t(e.props.selected).getTime()===_t(n).getTime());var n}),Se(e,"isDisabledTime",function(t){return(e.props.minTime||e.props.maxTime)&&ut(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&ct(t,e.props)}),Se(e,"liClasses",function(t){var n=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t):void 0];return e.isSelectedTime(t)&&n.push("react-datepicker__time-list-item--selected"),e.isDisabledTime(t)&&n.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(3600*b.getHours(t)+60*w.getMinutes(t)+se.getSeconds(t))%(60*e.props.intervals)!=0&&n.push("react-datepicker__time-list-item--injected"),n.join(" ")}),Se(e,"handleOnKeyDown",function(t,n){" "===t.key&&(t.preventDefault(),t.key="Enter"),"ArrowUp"!==t.key&&"ArrowLeft"!==t.key||!t.target.previousSibling||(t.preventDefault(),t.target.previousSibling.focus()),"ArrowDown"!==t.key&&"ArrowRight"!==t.key||!t.target.nextSibling||(t.preventDefault(),t.target.nextSibling.focus()),"Enter"===t.key&&e.handleClick(n),e.props.handleOnKeyDown(t)}),Se(e,"renderTimes",function(){for(var t,n=[],r=e.props.format?e.props.format:"p",o=e.props.intervals,i=e.props.selected||e.props.openToDate||Ie(),a=(t=i,V.startOfDay(t)),l=e.props.injectTimes&&e.props.injectTimes.sort(function(e,t){return e-t}),c=60*function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}(i),u=c/o,d=0;d<u;d++){var p=s.addMinutes(a,d*o);if(n.push(p),l){var h=At(a,p,d,o,l);n=n.concat(h)}}var f=n.reduce(function(e,t){return t.getTime()<=i.getTime()?t:e},n[0]);return n.map(function(t,n){return he.default.createElement("li",{key:n,onClick:e.handleClick.bind(e,t),className:e.liClasses(t),ref:function(n){t===f&&(e.centerLi=n)},onKeyDown:function(n){e.handleOnKeyDown(n,t)},tabIndex:t===f?0:-1,role:"option","aria-selected":e.isSelectedTime(t)?"true":void 0,"aria-disabled":e.isDisabledTime(t)?"true":void 0},ke(t,r,e.props.locale))})}),e}return xe(t,e),Ee(t,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var e=this,t=this.state.height;return he.default.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},he.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){e.header=t}},he.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),he.default.createElement("div",{className:"react-datepicker__time"},he.default.createElement("div",{className:"react-datepicker__time-box"},he.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}])}(he.default.Component);Se($t,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var Kt=function(e){function t(e){var n;return _e(this,t),Se(n=me(this,t,[e]),"YEAR_REFS",Me(Array(n.props.yearItemNumber)).map(function(){return he.default.createRef()})),Se(n,"isDisabled",function(e){return Je(e,n.props)}),Se(n,"isExcluded",function(e){return et(e,n.props)}),Se(n,"selectingDate",function(){var e;return null!==(e=n.props.selectingDate)&&void 0!==e?e:n.props.preSelection}),Se(n,"updateFocusOnPaginate",function(e){var t=function(){this.YEAR_REFS[e].current.focus()}.bind(n);window.requestAnimationFrame(t)}),Se(n,"handleYearClick",function(e,t){n.props.onDayClick&&n.props.onDayClick(e,t)}),Se(n,"handleYearNavigation",function(e,t){var r=n.props,o=r.date,i=r.yearItemNumber,a=bt(o,i).startPeriod;n.isDisabled(t)||n.isExcluded(t)||(n.props.setPreSelection(t),e-a<0?n.updateFocusOnPaginate(i-(a-e)):e-a>=i?n.updateFocusOnPaginate(Math.abs(i-(e-a))):n.YEAR_REFS[e-a].current.focus())}),Se(n,"isSameDay",function(e,t){return $e(e,t)}),Se(n,"isCurrentYear",function(e){return e===x.getYear(Ie())}),Se(n,"isRangeStart",function(e){return n.props.startDate&&n.props.endDate&&Ge(F.setYear(Ie(),e),n.props.startDate)}),Se(n,"isRangeEnd",function(e){return n.props.startDate&&n.props.endDate&&Ge(F.setYear(Ie(),e),n.props.endDate)}),Se(n,"isInRange",function(e){return ot(e,n.props.startDate,n.props.endDate)}),Se(n,"isInSelectingRange",function(e){var t=n.props,r=t.selectsStart,o=t.selectsEnd,i=t.selectsRange,a=t.startDate,s=t.endDate;return!(!(r||o||i)||!n.selectingDate())&&(r&&s?ot(e,n.selectingDate(),s):(o&&a||!(!i||!a||s))&&ot(e,a,n.selectingDate()))}),Se(n,"isSelectingRangeStart",function(e){if(!n.isInSelectingRange(e))return!1;var t=n.props,r=t.startDate,o=t.selectsStart;return Ge(F.setYear(Ie(),e),o?n.selectingDate():r)}),Se(n,"isSelectingRangeEnd",function(e){if(!n.isInSelectingRange(e))return!1;var t=n.props,r=t.endDate,o=t.selectsEnd,i=t.selectsRange;return Ge(F.setYear(Ie(),e),o||i?n.selectingDate():r)}),Se(n,"isKeyboardSelected",function(e){var t=Ue(F.setYear(n.props.date,e));return!n.props.disabledKeyboardNavigation&&!n.props.inline&&!$e(t,Ue(n.props.selected))&&$e(t,Ue(n.props.preSelection))}),Se(n,"onYearClick",function(e,t){var r=n.props.date;n.handleYearClick(Ue(F.setYear(r,t)),e)}),Se(n,"onYearKeyDown",function(e,t){var r=e.key,o=n.props,i=o.date,a=o.yearItemNumber,s=o.handleOnKeyDown;if("Tab"!==r&&e.preventDefault(),!n.props.disabledKeyboardNavigation)switch(r){case"Enter":n.onYearClick(e,t),n.props.setPreSelection(n.props.selected);break;case"ArrowRight":n.handleYearNavigation(t+1,h.addYears(n.props.preSelection,1));break;case"ArrowLeft":n.handleYearNavigation(t-1,y.subYears(n.props.preSelection,1));break;case"ArrowUp":var l=bt(i,a).startPeriod,c=3,u=t-c;if(u<l){var d=a%c;t>=l&&t<l+d?c=d:c+=d,u=t-c}n.handleYearNavigation(u,y.subYears(n.props.preSelection,c));break;case"ArrowDown":var p=bt(i,a).endPeriod,f=3,g=t+f;if(g>p){var m=a%f;t<=p&&t>p-m?f=m:f+=m,g=t+f}n.handleYearNavigation(g,h.addYears(n.props.preSelection,f))}s&&s(e)}),Se(n,"getYearClassNames",function(e){var t=n.props,o=t.date,i=t.minDate,a=t.maxDate,s=t.selected,l=t.excludeDates,c=t.includeDates,u=t.filterDate,d=t.yearClassName;return r.clsx("react-datepicker__year-text","react-datepicker__year-".concat(e),d?d(F.setYear(o,e)):void 0,{"react-datepicker__year-text--selected":e===x.getYear(s),"react-datepicker__year-text--disabled":(i||a||l||c||u)&&it(e,n.props),"react-datepicker__year-text--keyboard-selected":n.isKeyboardSelected(e),"react-datepicker__year-text--range-start":n.isRangeStart(e),"react-datepicker__year-text--range-end":n.isRangeEnd(e),"react-datepicker__year-text--in-range":n.isInRange(e),"react-datepicker__year-text--in-selecting-range":n.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":n.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":n.isSelectingRangeEnd(e),"react-datepicker__year-text--today":n.isCurrentYear(e)})}),Se(n,"getYearTabIndex",function(e){return n.props.disabledKeyboardNavigation?"-1":e===x.getYear(n.props.preSelection)?"0":"-1"}),Se(n,"getYearContainerClassNames",function(){var e=n.props,t=e.selectingDate,o=e.selectsStart,i=e.selectsEnd,a=e.selectsRange;return r.clsx("react-datepicker__year",{"react-datepicker__year--selecting-range":t&&(o||i||a)})}),Se(n,"getYearContent",function(e){return n.props.renderYearContent?n.props.renderYearContent(e):e}),n}return xe(t,e),Ee(t,[{key:"render",value:function(){for(var e=this,t=[],n=this.props,r=n.date,o=n.yearItemNumber,i=n.onYearMouseEnter,a=n.onYearMouseLeave,s=bt(r,o),l=s.startPeriod,c=s.endPeriod,u=function(n){t.push(he.default.createElement("div",{ref:e.YEAR_REFS[n-l],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){St(t)&&(t.preventDefault(),t.key="Enter"),e.onYearKeyDown(t,n)},tabIndex:e.getYearTabIndex(n),className:e.getYearClassNames(n),onMouseEnter:e.props.usePointerEvent?void 0:function(e){return i(e,n)},onPointerEnter:e.props.usePointerEvent?function(e){return i(e,n)}:void 0,onMouseLeave:e.props.usePointerEvent?void 0:function(e){return a(e,n)},onPointerLeave:e.props.usePointerEvent?function(e){return a(e,n)}:void 0,key:n,"aria-current":e.isCurrentYear(n)?"date":void 0},e.getYearContent(n)))},d=l;d<=c;d++)u(d);return he.default.createElement("div",{className:this.getYearContainerClassNames()},he.default.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},t))}}])}(he.default.Component),Qt=function(e){function t(e){var n;return _e(this,t),Se(n=me(this,t,[e]),"onTimeChange",function(e){n.setState({time:e});var t=n.props.date,r=t instanceof Date&&!isNaN(t)?t:new Date;r.setHours(e.split(":")[0]),r.setMinutes(e.split(":")[1]),n.props.onChange(r)}),Se(n,"renderTimeInput",function(){var e=n.state.time,t=n.props,r=t.date,o=t.timeString,i=t.customTimeInput;return i?he.default.cloneElement(i,{date:r,value:e,onChange:n.onTimeChange}):he.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){n.onTimeChange(e.target.value||o)}})}),n.state={time:n.props.timeString},n}return xe(t,e),Ee(t,[{key:"render",value:function(){return he.default.createElement("div",{className:"react-datepicker__input-time-container"},he.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),he.default.createElement("div",{className:"react-datepicker-time__input-container"},he.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.timeString!==t.time?{time:e.timeString}:null}}])}(he.default.Component);function qt(e){var t=e.showTimeSelectOnly,n=void 0!==t&&t,r=e.showTime,o=void 0!==r&&r,i=e.className,a=e.children,s=n?"Choose Time":"Choose Date".concat(o?" and Time":"");return he.default.createElement("div",{className:i,role:"dialog","aria-label":s,"aria-modal":"true"},a)}var Yt,Xt=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Zt=function(e){function t(e){var n;return _e(this,t),Se(n=me(this,t,[e]),"handleClickOutside",function(e){n.props.onClickOutside(e)}),Se(n,"setClickOutsideRef",function(){return n.containerRef.current}),Se(n,"handleDropdownFocus",function(e){(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return Xt.some(function(t){return e.indexOf(t)>=0})})(e.target)&&n.props.onDropdownFocus()}),Se(n,"getDateInView",function(){var e=n.props,t=e.preSelection,r=e.selected,o=e.openToDate,i=gt(n.props),a=mt(n.props),s=Ie();return o||r||t||(i&&ne.isBefore(s,i)?i:a&&te.isAfter(s,a)?a:s)}),Se(n,"increaseMonth",function(){n.setState(function(e){var t=e.date;return{date:d.addMonths(t,1)}},function(){return n.handleMonthChange(n.state.date)})}),Se(n,"decreaseMonth",function(){n.setState(function(e){var t=e.date;return{date:m.subMonths(t,1)}},function(){return n.handleMonthChange(n.state.date)})}),Se(n,"handleDayClick",function(e,t,r){n.props.onSelect(e,t,r),n.props.setPreSelection&&n.props.setPreSelection(e)}),Se(n,"handleDayMouseEnter",function(e){n.setState({selectingDate:e}),n.props.onDayMouseEnter&&n.props.onDayMouseEnter(e)}),Se(n,"handleMonthMouseLeave",function(){n.setState({selectingDate:null}),n.props.onMonthMouseLeave&&n.props.onMonthMouseLeave()}),Se(n,"handleYearMouseEnter",function(e,t){n.setState({selectingDate:F.setYear(Ie(),t)}),n.props.onYearMouseEnter&&n.props.onYearMouseEnter(e,t)}),Se(n,"handleYearMouseLeave",function(e,t){n.props.onYearMouseLeave&&n.props.onYearMouseLeave(e,t)}),Se(n,"handleYearChange",function(e){n.props.onYearChange&&(n.props.onYearChange(e),n.setState({isRenderAriaLiveMessage:!0})),n.props.adjustDateOnChange&&(n.props.onSelect&&n.props.onSelect(e),n.props.setOpen&&n.props.setOpen(!0)),n.props.setPreSelection&&n.props.setPreSelection(e)}),Se(n,"handleMonthChange",function(e){n.handleCustomMonthChange(e),n.props.adjustDateOnChange&&(n.props.onSelect&&n.props.onSelect(e),n.props.setOpen&&n.props.setOpen(!0)),n.props.setPreSelection&&n.props.setPreSelection(e)}),Se(n,"handleCustomMonthChange",function(e){n.props.onMonthChange&&(n.props.onMonthChange(e),n.setState({isRenderAriaLiveMessage:!0}))}),Se(n,"handleMonthYearChange",function(e){n.handleYearChange(e),n.handleMonthChange(e)}),Se(n,"changeYear",function(e){n.setState(function(t){var n=t.date;return{date:F.setYear(n,e)}},function(){return n.handleYearChange(n.state.date)})}),Se(n,"changeMonth",function(e){n.setState(function(t){var n=t.date;return{date:R.setMonth(n,e)}},function(){return n.handleMonthChange(n.state.date)})}),Se(n,"changeMonthYear",function(e){n.setState(function(t){var n=t.date;return{date:F.setYear(R.setMonth(n,S.getMonth(e)),x.getYear(e))}},function(){return n.handleMonthYearChange(n.state.date)})}),Se(n,"header",function(){var e=Ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.state.date,n.props.locale,n.props.calendarStartDay),t=[];return n.props.showWeekNumbers&&t.push(he.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},n.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map(function(t){var o=c.addDays(e,t),i=n.formatWeekday(o,n.props.locale),a=n.props.weekDayClassName?n.props.weekDayClassName(o):void 0;return he.default.createElement("div",{key:t,"aria-label":ke(o,"EEEE",n.props.locale),className:r.clsx("react-datepicker__day-name",a)},i)}))}),Se(n,"formatWeekday",function(e,t){return n.props.formatWeekDay?function(e,t,n){return t(ke(e,"EEEE",n))}(e,n.props.formatWeekDay,t):n.props.useWeekdaysShort?function(e,t){return ke(e,"EEE",t)}(e,t):function(e,t){return ke(e,"EEEEEE",t)}(e,t)}),Se(n,"decreaseYear",function(){n.setState(function(e){var t=e.date;return{date:y.subYears(t,n.props.showYearPicker?n.props.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})}),Se(n,"clearSelectingDate",function(){n.setState({selectingDate:null})}),Se(n,"renderPreviousButton",function(){if(!n.props.renderCustomHeader){var e;switch(!0){case n.props.showMonthYearPicker:e=ht(n.state.date,n.props);break;case n.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,o=void 0===r?12:r,i=bt(Ue(y.subYears(e,o)),o).endPeriod,a=n&&x.getYear(n);return a&&a>i||!1}(n.state.date,n.props);break;case n.props.showQuarterYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=z.startOfYear(e),i=v.subQuarters(o,1);return n&&U.differenceInCalendarQuarters(n,i)>0||r&&r.every(function(e){return U.differenceInCalendarQuarters(e,i)>0})||!1}(n.state.date,n.props);break;default:e=dt(n.state.date,n.props)}if((n.props.forceShowMonthNavigation||n.props.showDisabledMonthNavigation||!e)&&!n.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],r=n.decreaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(r=n.decreaseYear),e&&n.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),r=null);var o=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,i=n.props,a=i.previousMonthButtonLabel,s=i.previousYearButtonLabel,l=n.props,c=l.previousMonthAriaLabel,u=void 0===c?"string"==typeof a?a:"Previous Month":c,d=l.previousYearAriaLabel,p=void 0===d?"string"==typeof s?s:"Previous Year":d;return he.default.createElement("button",{type:"button",className:t.join(" "),onClick:r,onKeyDown:n.props.handleOnKeyDown,"aria-label":o?p:u},he.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},o?n.props.previousYearButtonLabel:n.props.previousMonthButtonLabel))}}}),Se(n,"increaseYear",function(){n.setState(function(e){var t=e.date;return{date:h.addYears(t,n.props.showYearPicker?n.props.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})}),Se(n,"renderNextButton",function(){if(!n.props.renderCustomHeader){var e;switch(!0){case n.props.showMonthYearPicker:e=ft(n.state.date,n.props);break;case n.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,o=void 0===r?12:r,i=bt(h.addYears(e,o),o).startPeriod,a=n&&x.getYear(n);return a&&a<i||!1}(n.state.date,n.props);break;case n.props.showQuarterYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=q.endOfYear(e),i=p.addQuarters(o,1);return n&&U.differenceInCalendarQuarters(i,n)>0||r&&r.every(function(e){return U.differenceInCalendarQuarters(i,e)>0})||!1}(n.state.date,n.props);break;default:e=pt(n.state.date,n.props)}if((n.props.forceShowMonthNavigation||n.props.showDisabledMonthNavigation||!e)&&!n.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];n.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),n.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var r=n.increaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(r=n.increaseYear),e&&n.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),r=null);var o=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,i=n.props,a=i.nextMonthButtonLabel,s=i.nextYearButtonLabel,l=n.props,c=l.nextMonthAriaLabel,u=void 0===c?"string"==typeof a?a:"Next Month":c,d=l.nextYearAriaLabel,f=void 0===d?"string"==typeof s?s:"Next Year":d;return he.default.createElement("button",{type:"button",className:t.join(" "),onClick:r,onKeyDown:n.props.handleOnKeyDown,"aria-label":o?f:u},he.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},o?n.props.nextYearButtonLabel:n.props.nextMonthButtonLabel))}}}),Se(n,"renderCurrentMonth",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.state.date,t=["react-datepicker__current-month"];return n.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),n.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),n.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),he.default.createElement("div",{className:t.join(" ")},ke(e,n.props.dateFormat,n.props.locale))}),Se(n,"renderYearDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n.props.showYearDropdown&&!e)return he.default.createElement(Pt,{adjustDateOnChange:n.props.adjustDateOnChange,date:n.state.date,onSelect:n.props.onSelect,setOpen:n.props.setOpen,dropdownMode:n.props.dropdownMode,onChange:n.changeYear,minDate:n.props.minDate,maxDate:n.props.maxDate,year:x.getYear(n.state.date),scrollableYearDropdown:n.props.scrollableYearDropdown,yearDropdownItemNumber:n.props.yearDropdownItemNumber})}),Se(n,"renderMonthDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n.props.showMonthDropdown&&!e)return he.default.createElement(Rt,{dropdownMode:n.props.dropdownMode,locale:n.props.locale,onChange:n.changeMonth,month:S.getMonth(n.state.date),useShortMonthInDropdown:n.props.useShortMonthInDropdown})}),Se(n,"renderMonthYearDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n.props.showMonthYearDropdown&&!e)return he.default.createElement(Lt,{dropdownMode:n.props.dropdownMode,locale:n.props.locale,dateFormat:n.props.dateFormat,onChange:n.changeMonthYear,minDate:n.props.minDate,maxDate:n.props.maxDate,date:n.state.date,scrollableMonthYearDropdown:n.props.scrollableMonthYearDropdown})}),Se(n,"handleTodayButtonClick",function(e){n.props.onSelect(He(),e),n.props.setPreSelection&&n.props.setPreSelection(He())}),Se(n,"renderTodayButton",function(){if(n.props.todayButton&&!n.props.showTimeSelectOnly)return he.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return n.handleTodayButtonClick(e)}},n.props.todayButton)}),Se(n,"renderDefaultHeader",function(e){var t=e.monthDate,r=e.i;return he.default.createElement("div",{className:"react-datepicker__header ".concat(n.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},n.renderCurrentMonth(t),he.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(n.props.dropdownMode),onFocus:n.handleDropdownFocus},n.renderMonthDropdown(0!==r),n.renderMonthYearDropdown(0!==r),n.renderYearDropdown(0!==r)),he.default.createElement("div",{className:"react-datepicker__day-names"},n.header(t)))}),Se(n,"renderCustomHeader",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,r=e.i;if(n.props.showTimeSelect&&!n.state.monthContainer||n.props.showTimeSelectOnly)return null;var o=dt(n.state.date,n.props),i=pt(n.state.date,n.props),a=ht(n.state.date,n.props),s=ft(n.state.date,n.props),l=!n.props.showMonthYearPicker&&!n.props.showQuarterYearPicker&&!n.props.showYearPicker;return he.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:n.props.onDropdownFocus},n.props.renderCustomHeader(Ae(Ae({},n.state),{},{customHeaderCount:r,monthDate:t,changeMonth:n.changeMonth,changeYear:n.changeYear,decreaseMonth:n.decreaseMonth,increaseMonth:n.increaseMonth,decreaseYear:n.decreaseYear,increaseYear:n.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:i,prevYearButtonDisabled:a,nextYearButtonDisabled:s})),l&&he.default.createElement("div",{className:"react-datepicker__day-names"},n.header(t)))}),Se(n,"renderYearHeader",function(e){var t=e.monthDate,r=n.props,o=r.showYearPicker,i=bt(t,r.yearItemNumber),a=i.startPeriod,s=i.endPeriod;return he.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},o?"".concat(a," - ").concat(s):x.getYear(t))}),Se(n,"renderHeader",function(e){switch(!0){case void 0!==n.props.renderCustomHeader:return n.renderCustomHeader(e);case n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker:return n.renderYearHeader(e);default:return n.renderDefaultHeader(e)}}),Se(n,"renderMonths",function(){var e;if(!n.props.showTimeSelectOnly&&!n.props.showYearPicker){for(var t=[],r=n.props.showPreviousMonths?n.props.monthsShown-1:0,o=n.props.showMonthYearPicker||n.props.showQuarterYearPicker?h.addYears(n.state.date,r):m.subMonths(n.state.date,r),i=null!==(e=n.props.monthSelectedIn)&&void 0!==e?e:r,a=0;a<n.props.monthsShown;++a){var s=a-i+r,l=n.props.showMonthYearPicker||n.props.showQuarterYearPicker?h.addYears(o,s):d.addMonths(o,s),c="month-".concat(a),u=a<n.props.monthsShown-1,p=a>0;t.push(he.default.createElement("div",{key:c,ref:function(e){n.monthContainer=e},className:"react-datepicker__month-container"},n.renderHeader({monthDate:l,i:a}),he.default.createElement(zt,{chooseDayAriaLabelPrefix:n.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:n.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:n.props.weekAriaLabelPrefix,ariaLabelPrefix:n.props.monthAriaLabelPrefix,onChange:n.changeMonthYear,day:l,dayClassName:n.props.dayClassName,calendarStartDay:n.props.calendarStartDay,monthClassName:n.props.monthClassName,onDayClick:n.handleDayClick,handleOnKeyDown:n.props.handleOnDayKeyDown,handleOnMonthKeyDown:n.props.handleOnKeyDown,usePointerEvent:n.props.usePointerEvent,onDayMouseEnter:n.handleDayMouseEnter,onMouseLeave:n.handleMonthMouseLeave,onWeekSelect:n.props.onWeekSelect,orderInDisplay:a,formatWeekNumber:n.props.formatWeekNumber,locale:n.props.locale,minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,highlightDates:n.props.highlightDates,holidays:n.props.holidays,selectingDate:n.state.selectingDate,includeDates:n.props.includeDates,includeDateIntervals:n.props.includeDateIntervals,inline:n.props.inline,shouldFocusDayInline:n.props.shouldFocusDayInline,fixedHeight:n.props.fixedHeight,filterDate:n.props.filterDate,preSelection:n.props.preSelection,setPreSelection:n.props.setPreSelection,selected:n.props.selected,selectsStart:n.props.selectsStart,selectsEnd:n.props.selectsEnd,selectsRange:n.props.selectsRange,selectsDisabledDaysInRange:n.props.selectsDisabledDaysInRange,selectsMultiple:n.props.selectsMultiple,selectedDates:n.props.selectedDates,showWeekNumbers:n.props.showWeekNumbers,startDate:n.props.startDate,endDate:n.props.endDate,peekNextMonth:n.props.peekNextMonth,setOpen:n.props.setOpen,shouldCloseOnSelect:n.props.shouldCloseOnSelect,renderDayContents:n.props.renderDayContents,renderMonthContent:n.props.renderMonthContent,renderQuarterContent:n.props.renderQuarterContent,renderYearContent:n.props.renderYearContent,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,showMonthYearPicker:n.props.showMonthYearPicker,showFullMonthYearPicker:n.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:n.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:n.props.showFourColumnMonthYearPicker,showYearPicker:n.props.showYearPicker,showQuarterYearPicker:n.props.showQuarterYearPicker,showWeekPicker:n.props.showWeekPicker,isInputFocused:n.props.isInputFocused,containerRef:n.containerRef,monthShowsDuplicateDaysEnd:u,monthShowsDuplicateDaysStart:p})))}return t}}),Se(n,"renderYears",function(){if(!n.props.showTimeSelectOnly)return n.props.showYearPicker?he.default.createElement("div",{className:"react-datepicker__year--container"},n.renderHeader({monthDate:n.state.date}),he.default.createElement(Kt,Oe({onDayClick:n.handleDayClick,selectingDate:n.state.selectingDate,clearSelectingDate:n.clearSelectingDate,date:n.state.date},n.props,{onYearMouseEnter:n.handleYearMouseEnter,onYearMouseLeave:n.handleYearMouseLeave}))):void 0}),Se(n,"renderTimeSection",function(){if(n.props.showTimeSelect&&(n.state.monthContainer||n.props.showTimeSelectOnly))return he.default.createElement($t,{selected:n.props.selected,openToDate:n.props.openToDate,onChange:n.props.onTimeChange,timeClassName:n.props.timeClassName,format:n.props.timeFormat,includeTimes:n.props.includeTimes,intervals:n.props.timeIntervals,minTime:n.props.minTime,maxTime:n.props.maxTime,excludeTimes:n.props.excludeTimes,filterTime:n.props.filterTime,timeCaption:n.props.timeCaption,todayButton:n.props.todayButton,showMonthDropdown:n.props.showMonthDropdown,showMonthYearDropdown:n.props.showMonthYearDropdown,showYearDropdown:n.props.showYearDropdown,withPortal:n.props.withPortal,monthRef:n.state.monthContainer,injectTimes:n.props.injectTimes,locale:n.props.locale,handleOnKeyDown:n.props.handleOnKeyDown,showTimeSelectOnly:n.props.showTimeSelectOnly})}),Se(n,"renderInputTimeSection",function(){var e=new Date(n.props.selected),t=Fe(e)&&Boolean(n.props.selected)?"".concat(wt(e.getHours()),":").concat(wt(e.getMinutes())):"";if(n.props.showTimeInput)return he.default.createElement(Qt,{date:e,timeString:t,timeInputLabel:n.props.timeInputLabel,onChange:n.props.onTimeChange,customTimeInput:n.props.customTimeInput})}),Se(n,"renderAriaLiveRegion",function(){var e,t=bt(n.state.date,n.props.yearItemNumber),r=t.startPeriod,o=t.endPeriod;return e=n.props.showYearPicker?"".concat(r," - ").concat(o):n.props.showMonthYearPicker||n.props.showQuarterYearPicker?x.getYear(n.state.date):"".concat(Xe(S.getMonth(n.state.date),n.props.locale)," ").concat(x.getYear(n.state.date)),he.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},n.state.isRenderAriaLiveMessage&&e)}),Se(n,"renderChildren",function(){if(n.props.children)return he.default.createElement("div",{className:"react-datepicker__children-container"},n.props.children)}),n.containerRef=he.default.createRef(),n.state={date:n.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},n}return xe(t,e),Ee(t,[{key:"componentDidMount",value:function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))}},{key:"componentDidUpdate",value:function(e){var t=this;if(!this.props.preSelection||$e(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!$e(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!We(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return n&&t.handleCustomMonthChange(t.state.date)})}}},{key:"render",value:function(){var e=this.props.container||qt;return he.default.createElement("div",{style:{display:"contents"},ref:this.containerRef},he.default.createElement(e,{className:r.clsx("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}])}(he.default.Component),Jt=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n,o=e.onClick,i="react-datepicker__calendar-icon";return he.default.isValidElement(t)?he.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(i," ").concat(r),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof o&&o(e)}}):"string"==typeof t?he.default.createElement("i",{className:"".concat(i," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:o}):he.default.createElement("svg",{className:"".concat(i," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},he.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},en=function(e){function t(e){var n;return _e(this,t),(n=me(this,t,[e])).el=document.createElement("div"),n}return xe(t,e),Ee(t,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return ge.default.createPortal(this.props.children,this.el)}}])}(he.default.Component),tn=function(e){return!e.disabled&&-1!==e.tabIndex},nn=function(e){function t(e){var n;return _e(this,t),Se(n=me(this,t,[e]),"getTabChildren",function(){return Array.prototype.slice.call(n.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(tn)}),Se(n,"handleFocusStart",function(){var e=n.getTabChildren();e&&e.length>1&&e[e.length-1].focus()}),Se(n,"handleFocusEnd",function(){var e=n.getTabChildren();e&&e.length>1&&e[0].focus()}),n.tabLoopRef=he.default.createRef(),n}return xe(t,e),Ee(t,[{key:"render",value:function(){return this.props.enableTabLoop?he.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},he.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,he.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}])}(he.default.Component),rn=function(e){function t(){return _e(this,t),me(this,t,arguments)}return xe(t,e),Ee(t,[{key:"render",value:function(){var e,t=this.props,n=t.className,o=t.wrapperClassName,i=t.hidePopper,a=t.popperComponent,s=t.targetComponent,l=t.enableTabLoop,c=t.popperOnKeyDown,u=t.portalId,d=t.portalHost,p=t.popperProps,h=t.showArrow;if(!i){var f=r.clsx("react-datepicker-popper",n);e=he.default.createElement(nn,{enableTabLoop:l},he.default.createElement("div",{ref:p.refs.setFloating,style:p.floatingStyles,className:f,"data-placement":p.placement,onKeyDown:c},a,h&&he.default.createElement(ue.FloatingArrow,{ref:p.arrowRef,context:p.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(e=he.default.createElement(this.props.popperContainer,{},e)),u&&!i&&(e=he.default.createElement(en,{portalId:u,portalHost:d},e));var g=r.clsx("react-datepicker-wrapper",o);return he.default.createElement(he.default.Fragment,null,he.default.createElement("div",{ref:p.refs.setReference,className:g},s),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0}}}])}(he.default.Component),on=(Yt=rn,function(e){var t=Ae(Ae({},e),{},{popperModifiers:e.popperModifiers||[],popperProps:e.popperProps||{},hidePopper:"boolean"!=typeof e.hidePopper||e.hidePopper}),n=he.default.useRef(),r=ue.useFloating(Ae({open:!t.hidePopper,whileElementsMounted:ue.autoUpdate,placement:t.popperPlacement,middleware:[ue.flip({padding:15}),ue.offset(10),ue.arrow({element:n})].concat(Me(t.popperModifiers))},t.popperProps));return he.default.createElement(Yt,Oe({},t,{popperProps:Ae(Ae({},r),{},{arrowRef:n})}))}),an="react-datepicker-ignore-onclickoutside",sn=fe.default(Zt),ln="Date input not valid.",cn=function(e){function t(e){var n;return _e(this,t),Se(n=me(this,t,[e]),"getPreSelection",function(){return n.props.openToDate?n.props.openToDate:n.props.selectsEnd&&n.props.startDate?n.props.startDate:n.props.selectsStart&&n.props.endDate?n.props.endDate:Ie()}),Se(n,"modifyHolidays",function(){var e;return null===(e=n.props.holidays)||void 0===e?void 0:e.reduce(function(e,t){var n=new Date(t.date);return i.isValid(n)?[].concat(Me(e),[Ae(Ae({},t),{},{date:n})]):e},[])}),Se(n,"calcInitialState",function(){var e,t=n.getPreSelection(),r=gt(n.props),o=mt(n.props),i=r&&ne.isBefore(t,V.startOfDay(r))?r:o&&te.isAfter(t,$.endOfDay(o))?o:t;return{open:n.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=n.props.selectsRange?n.props.startDate:n.props.selected)&&void 0!==e?e:i,highlightDates:vt(n.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),Se(n,"clearPreventFocusTimeout",function(){n.preventFocusTimeout&&clearTimeout(n.preventFocusTimeout)}),Se(n,"setFocus",function(){n.input&&n.input.focus&&n.input.focus({preventScroll:!0})}),Se(n,"setBlur",function(){n.input&&n.input.blur&&n.input.blur(),n.cancelFocusInput()}),Se(n,"setOpen",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.setState({open:e,preSelection:e&&n.state.open?n.state.preSelection:n.calcInitialState().preSelection,lastPreSelectChange:dn},function(){e||n.setState(function(e){return{focused:!!t&&e.focused}},function(){!t&&n.setBlur(),n.setState({inputValue:null})})})}),Se(n,"inputOk",function(){return o.isDate(n.state.preSelection)}),Se(n,"isCalendarOpen",function(){return void 0===n.props.open?n.state.open&&!n.props.disabled&&!n.props.readOnly:n.props.open}),Se(n,"handleFocus",function(e){n.state.preventFocus||(n.props.onFocus(e),n.props.preventOpenOnFocus||n.props.readOnly||n.setOpen(!0)),n.setState({focused:!0})}),Se(n,"sendFocusBackToInput",function(){n.preventFocusTimeout&&n.clearPreventFocusTimeout(),n.setState({preventFocus:!0},function(){n.preventFocusTimeout=setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})})}),Se(n,"cancelFocusInput",function(){clearTimeout(n.inputFocusTimeout),n.inputFocusTimeout=null}),Se(n,"deferFocusInput",function(){n.cancelFocusInput(),n.inputFocusTimeout=setTimeout(function(){return n.setFocus()},1)}),Se(n,"handleDropdownFocus",function(){n.cancelFocusInput()}),Se(n,"handleBlur",function(e){(!n.state.open||n.props.withPortal||n.props.showTimeInput)&&n.props.onBlur(e),n.setState({focused:!1})}),Se(n,"handleCalendarClickOutside",function(e){n.props.inline||n.setOpen(!1),n.props.onClickOutside(e),n.props.withPortal&&e.preventDefault()}),Se(n,"handleChange",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t[0];if(!n.props.onChangeRaw||(n.props.onChangeRaw.apply(n,t),"function"==typeof o.isDefaultPrevented&&!o.isDefaultPrevented())){n.setState({inputValue:o.target.value,lastPreSelectChange:un});var i,s,l,c,u,d,p,h,f=(i=o.target.value,s=n.props.dateFormat,l=n.props.locale,c=n.props.strictParsing,u=n.props.minDate,d=null,p=Ye(l)||Ye(qe()),h=!0,Array.isArray(s)?(s.forEach(function(e){var t=ie.parse(i,e,new Date,{locale:p,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});c&&(h=Fe(t,u)&&i===ke(t,e,l)),Fe(t,u)&&h&&(d=t)}),d):(d=ie.parse(i,s,new Date,{locale:p,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),c?h=Fe(d)&&i===ke(d,s,l):Fe(d)||(s=s.match(Re).map(function(e){var t=e[0];if("p"===t||"P"===t){var n=a.longFormatters[t];return p?n(e,p.formatLong):t}return e}).join(""),i.length>0&&(d=ie.parse(i,s.slice(0,i.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),Fe(d)||(d=new Date(i))),Fe(d)&&h?d:null));n.props.showTimeSelectOnly&&n.props.selected&&f&&!$e(f,n.props.selected)&&(f=de.set(n.props.selected,{hours:b.getHours(f),minutes:w.getMinutes(f),seconds:A.getSeconds(f)})),!f&&o.target.value||n.setSelected(f,o,!0)}}),Se(n,"handleSelect",function(e,t,r){if(n.props.shouldCloseOnSelect&&!n.props.showTimeSelect&&n.sendFocusBackToInput(),n.props.onChangeRaw&&n.props.onChangeRaw(t),n.setSelected(e,t,!1,r),n.props.showDateSelect&&n.setState({isRenderAriaLiveMessage:!0}),!n.props.shouldCloseOnSelect||n.props.showTimeSelect)n.setPreSelection(e);else if(!n.props.inline){n.props.selectsRange||n.setOpen(!1);var o=n.props,i=o.startDate,a=o.endDate;!i||a||!n.props.swapRange&&Et(e,i)||n.setOpen(!1)}}),Se(n,"setSelected",function(e,t,r,o){var i=e;if(n.props.showYearPicker){if(null!==i&&it(x.getYear(i),n.props))return}else if(n.props.showMonthYearPicker){if(null!==i&&tt(i,n.props))return}else if(null!==i&&Je(i,n.props))return;var a=n.props,s=a.onChange,l=a.selectsRange,c=a.startDate,u=a.endDate,d=a.selectsMultiple,p=a.selectedDates,h=a.minTime,f=a.swapRange;if(!Ke(n.props.selected,i)||n.props.allowSameDay||l||d)if(null!==i&&(!n.props.selected||r&&(n.props.showTimeSelect||n.props.showTimeSelectOnly||n.props.showTimeInput)||(i=Be(i,{hour:b.getHours(n.props.selected),minute:w.getMinutes(n.props.selected),second:A.getSeconds(n.props.selected)})),r||!n.props.showTimeSelect&&!n.props.showTimeSelectOnly||h&&(i=Be(i,{hour:h.getHours(),minute:h.getMinutes(),second:h.getSeconds()})),n.props.inline||n.setState({preSelection:i}),n.props.focusSelectedMonth||n.setState({monthSelectedIn:o})),l){var g=c&&u;c||u?c&&!u&&(null===i?s([null,null],t):Et(i,c)?s(f?[i,c]:[i,null],t):s([c,i],t)):s([i,null],t),g&&s([i,null],t)}else d?null!=p&&p.length?p.some(function(e){return $e(e,i)})?s(p.filter(function(e){return!$e(e,i)}),t):s([].concat(Me(p),[i]),t):s([i],t):s(i,t);r||(n.props.onSelect(i,t),n.setState({inputValue:null}))}),Se(n,"setPreSelection",function(e){var t=void 0!==n.props.minDate,r=void 0!==n.props.maxDate,o=!0;if(e){var i=V.startOfDay(e);if(t&&r)o=Qe(e,n.props.minDate,n.props.maxDate);else if(t){var a=V.startOfDay(n.props.minDate);o=te.isAfter(e,a)||Ke(i,a)}else if(r){var s=$.endOfDay(n.props.maxDate);o=ne.isBefore(e,s)||Ke(i,s)}}o&&n.setState({preSelection:e})}),Se(n,"toggleCalendar",function(){n.setOpen(!n.state.open)}),Se(n,"handleTimeChange",function(e){var t=n.props.selected?n.props.selected:n.getPreSelection(),r=n.props.selected?e:Be(t,{hour:b.getHours(e),minute:w.getMinutes(e)});n.setState({preSelection:r}),n.props.onChange(r),n.props.shouldCloseOnSelect&&(n.sendFocusBackToInput(),n.setOpen(!1)),n.props.showTimeInput&&n.setOpen(!0),(n.props.showTimeSelectOnly||n.props.showTimeSelect)&&n.setState({isRenderAriaLiveMessage:!0}),n.setState({inputValue:null})}),Se(n,"onInputClick",function(){n.props.disabled||n.props.readOnly||n.setOpen(!0),n.props.onInputClick()}),Se(n,"onInputKeyDown",function(e){n.props.onKeyDown(e);var t=e.key;if(n.state.open||n.props.inline||n.props.preventOpenOnFocus){if(n.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var r=n.props.showWeekPicker&&n.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':n.props.showFullMonthYearPicker||n.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',o=n.calendar.componentNode&&n.calendar.componentNode.querySelector(r);return void(o&&o.focus({preventScroll:!0}))}var i=Ie(n.state.preSelection);"Enter"===t?(e.preventDefault(),n.inputOk()&&n.state.lastPreSelectChange===dn?(n.handleSelect(i,e),!n.props.shouldCloseOnSelect&&n.setPreSelection(i)):n.setOpen(!1)):"Escape"===t?(e.preventDefault(),n.sendFocusBackToInput(),n.setOpen(!1)):"Tab"===t&&n.setOpen(!1),n.inputOk()||n.props.onInputError({code:1,msg:ln})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||n.onInputClick()}),Se(n,"onPortalKeyDown",function(e){"Escape"===e.key&&(e.preventDefault(),n.setState({preventFocus:!0},function(){n.setOpen(!1),setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})}))}),Se(n,"onDayKeyDown",function(e){n.props.onKeyDown(e);var t,r=e.key,o=e.shiftKey,i=Ie(n.state.preSelection);if("Enter"===r)e.preventDefault(),n.handleSelect(i,e),!n.props.shouldCloseOnSelect&&n.setPreSelection(i);else if("Escape"===r)e.preventDefault(),n.setOpen(!1),n.inputOk()||n.props.onInputError({code:1,msg:ln});else if(!n.props.disabledKeyboardNavigation){var a;switch(r){case"ArrowLeft":a=n.props.showWeekPicker?g.subWeeks(i,1):f.subDays(i,1);break;case"ArrowRight":a=n.props.showWeekPicker?u.addWeeks(i,1):c.addDays(i,1);break;case"ArrowUp":a=g.subWeeks(i,1);break;case"ArrowDown":a=u.addWeeks(i,1);break;case"PageUp":a=o?y.subYears(i,1):m.subMonths(i,1);break;case"PageDown":a=o?h.addYears(i,1):d.addMonths(i,1);break;case"Home":a=Ne(i,n.props.locale,n.props.calendarStartDay);break;case"End":t=i,a=K.endOfWeek(t);break;default:a=null}if(!a)return void(n.props.onInputError&&n.props.onInputError({code:1,msg:ln}));if(e.preventDefault(),n.setState({lastPreSelectChange:dn}),n.props.adjustDateOnChange&&n.setSelected(a),n.setPreSelection(a),n.props.inline){var s=S.getMonth(i),l=S.getMonth(a),p=x.getYear(i),v=x.getYear(a);s!==l||p!==v?n.setState({shouldFocusDayInline:!0}):n.setState({shouldFocusDayInline:!1})}}}),Se(n,"onPopperKeyDown",function(e){"Escape"===e.key&&(e.preventDefault(),n.sendFocusBackToInput())}),Se(n,"onClearClick",function(e){e&&e.preventDefault&&e.preventDefault(),n.sendFocusBackToInput(),n.props.selectsRange?n.props.onChange([null,null],e):n.props.onChange(null,e),n.setState({inputValue:null})}),Se(n,"clear",function(){n.onClearClick()}),Se(n,"onScroll",function(e){"boolean"==typeof n.props.closeOnScroll&&n.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||n.setOpen(!1):"function"==typeof n.props.closeOnScroll&&n.props.closeOnScroll(e)&&n.setOpen(!1)}),Se(n,"renderCalendar",function(){return n.props.inline||n.isCalendarOpen()?he.default.createElement(sn,{ref:function(e){n.calendar=e},locale:n.props.locale,calendarStartDay:n.props.calendarStartDay,chooseDayAriaLabelPrefix:n.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:n.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:n.props.weekAriaLabelPrefix,monthAriaLabelPrefix:n.props.monthAriaLabelPrefix,adjustDateOnChange:n.props.adjustDateOnChange,setOpen:n.setOpen,shouldCloseOnSelect:n.props.shouldCloseOnSelect,dateFormat:n.props.dateFormatCalendar,useWeekdaysShort:n.props.useWeekdaysShort,formatWeekDay:n.props.formatWeekDay,dropdownMode:n.props.dropdownMode,selected:n.props.selected,preSelection:n.state.preSelection,onSelect:n.handleSelect,onWeekSelect:n.props.onWeekSelect,openToDate:n.props.openToDate,minDate:n.props.minDate,maxDate:n.props.maxDate,selectsStart:n.props.selectsStart,selectsEnd:n.props.selectsEnd,selectsRange:n.props.selectsRange,selectsMultiple:n.props.selectsMultiple,selectedDates:n.props.selectedDates,startDate:n.props.startDate,endDate:n.props.endDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,filterDate:n.props.filterDate,onClickOutside:n.handleCalendarClickOutside,formatWeekNumber:n.props.formatWeekNumber,highlightDates:n.state.highlightDates,holidays:yt(n.modifyHolidays()),includeDates:n.props.includeDates,includeDateIntervals:n.props.includeDateIntervals,includeTimes:n.props.includeTimes,injectTimes:n.props.injectTimes,inline:n.props.inline,shouldFocusDayInline:n.state.shouldFocusDayInline,peekNextMonth:n.props.peekNextMonth,showMonthDropdown:n.props.showMonthDropdown,showPreviousMonths:n.props.showPreviousMonths,useShortMonthInDropdown:n.props.useShortMonthInDropdown,showMonthYearDropdown:n.props.showMonthYearDropdown,showWeekNumbers:n.props.showWeekNumbers,showYearDropdown:n.props.showYearDropdown,withPortal:n.props.withPortal,forceShowMonthNavigation:n.props.forceShowMonthNavigation,showDisabledMonthNavigation:n.props.showDisabledMonthNavigation,scrollableYearDropdown:n.props.scrollableYearDropdown,scrollableMonthYearDropdown:n.props.scrollableMonthYearDropdown,todayButton:n.props.todayButton,weekLabel:n.props.weekLabel,outsideClickIgnoreClass:an,fixedHeight:n.props.fixedHeight,monthsShown:n.props.monthsShown,monthSelectedIn:n.state.monthSelectedIn,onDropdownFocus:n.handleDropdownFocus,onMonthChange:n.props.onMonthChange,onYearChange:n.props.onYearChange,dayClassName:n.props.dayClassName,weekDayClassName:n.props.weekDayClassName,monthClassName:n.props.monthClassName,timeClassName:n.props.timeClassName,showDateSelect:n.props.showDateSelect,showTimeSelect:n.props.showTimeSelect,showTimeSelectOnly:n.props.showTimeSelectOnly,onTimeChange:n.handleTimeChange,timeFormat:n.props.timeFormat,timeIntervals:n.props.timeIntervals,minTime:n.props.minTime,maxTime:n.props.maxTime,excludeTimes:n.props.excludeTimes,filterTime:n.props.filterTime,timeCaption:n.props.timeCaption,className:n.props.calendarClassName,container:n.props.calendarContainer,yearItemNumber:n.props.yearItemNumber,yearDropdownItemNumber:n.props.yearDropdownItemNumber,previousMonthAriaLabel:n.props.previousMonthAriaLabel,previousMonthButtonLabel:n.props.previousMonthButtonLabel,nextMonthAriaLabel:n.props.nextMonthAriaLabel,nextMonthButtonLabel:n.props.nextMonthButtonLabel,previousYearAriaLabel:n.props.previousYearAriaLabel,previousYearButtonLabel:n.props.previousYearButtonLabel,nextYearAriaLabel:n.props.nextYearAriaLabel,nextYearButtonLabel:n.props.nextYearButtonLabel,timeInputLabel:n.props.timeInputLabel,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,renderCustomHeader:n.props.renderCustomHeader,popperProps:n.props.popperProps,renderDayContents:n.props.renderDayContents,renderMonthContent:n.props.renderMonthContent,renderQuarterContent:n.props.renderQuarterContent,renderYearContent:n.props.renderYearContent,onDayMouseEnter:n.props.onDayMouseEnter,onMonthMouseLeave:n.props.onMonthMouseLeave,onYearMouseEnter:n.props.onYearMouseEnter,onYearMouseLeave:n.props.onYearMouseLeave,selectsDisabledDaysInRange:n.props.selectsDisabledDaysInRange,showTimeInput:n.props.showTimeInput,showMonthYearPicker:n.props.showMonthYearPicker,showFullMonthYearPicker:n.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:n.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:n.props.showFourColumnMonthYearPicker,showYearPicker:n.props.showYearPicker,showQuarterYearPicker:n.props.showQuarterYearPicker,showWeekPicker:n.props.showWeekPicker,excludeScrollbar:n.props.excludeScrollbar,handleOnKeyDown:n.props.onKeyDown,handleOnDayKeyDown:n.onDayKeyDown,isInputFocused:n.state.focused,customTimeInput:n.props.customTimeInput,setPreSelection:n.setPreSelection,usePointerEvent:n.props.usePointerEvent,yearClassName:n.props.yearClassName},n.props.children):null}),Se(n,"renderAriaLiveRegion",function(){var e,t=n.props,r=t.dateFormat,o=t.locale,i=n.props.showTimeInput||n.props.showTimeSelect?"PPPPp":"PPPP";return e=n.props.selectsRange?"Selected start date: ".concat(Le(n.props.startDate,{dateFormat:i,locale:o}),". ").concat(n.props.endDate?"End date: "+Le(n.props.endDate,{dateFormat:i,locale:o}):""):n.props.showTimeSelectOnly?"Selected time: ".concat(Le(n.props.selected,{dateFormat:r,locale:o})):n.props.showYearPicker?"Selected year: ".concat(Le(n.props.selected,{dateFormat:"yyyy",locale:o})):n.props.showMonthYearPicker?"Selected month: ".concat(Le(n.props.selected,{dateFormat:"MMMM yyyy",locale:o})):n.props.showQuarterYearPicker?"Selected quarter: ".concat(Le(n.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):"Selected date: ".concat(Le(n.props.selected,{dateFormat:i,locale:o})),he.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)}),Se(n,"renderDateInput",function(){var e,t=r.clsx(n.props.className,Se({},an,n.state.open)),o=n.props.customInput||he.default.createElement("input",{type:"text"}),i=n.props.customInputRef||"ref",a="string"==typeof n.props.value?n.props.value:"string"==typeof n.state.inputValue?n.state.inputValue:n.props.selectsRange?function(e,t,n){if(!e)return"";var r=Le(e,n),o=t?Le(t,n):"";return"".concat(r," - ").concat(o)}(n.props.startDate,n.props.endDate,n.props):n.props.selectsMultiple?function(e,t){if(null==e||!e.length)return"";var n=Le(e[0],t);if(1===e.length)return n;if(2===e.length){var r=Le(e[1],t);return"".concat(n,", ").concat(r)}var o=e.length-1;return"".concat(n," (+").concat(o,")")}(n.props.selectedDates,n.props):Le(n.props.selected,n.props);return he.default.cloneElement(o,(Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(e={},i,function(e){n.input=e}),"value",a),"onBlur",n.handleBlur),"onChange",n.handleChange),"onClick",n.onInputClick),"onFocus",n.handleFocus),"onKeyDown",n.onInputKeyDown),"id",n.props.id),"name",n.props.name),"form",n.props.form),Se(Se(Se(Se(Se(Se(Se(Se(Se(Se(e,"autoFocus",n.props.autoFocus),"placeholder",n.props.placeholderText),"disabled",n.props.disabled),"autoComplete",n.props.autoComplete),"className",r.clsx(o.props.className,t)),"title",n.props.title),"readOnly",n.props.readOnly),"required",n.props.required),"tabIndex",n.props.tabIndex),"aria-describedby",n.props.ariaDescribedBy),Se(Se(Se(e,"aria-invalid",n.props.ariaInvalid),"aria-labelledby",n.props.ariaLabelledBy),"aria-required",n.props.ariaRequired)))}),Se(n,"renderClearButton",function(){var e=n.props,t=e.isClearable,o=e.disabled,i=e.selected,a=e.startDate,s=e.endDate,l=e.clearButtonTitle,c=e.clearButtonClassName,u=void 0===c?"":c,d=e.ariaLabelClose,p=void 0===d?"Close":d,h=e.selectedDates;return t&&(null!=i||null!=a||null!=s||null!=h&&h.length)?he.default.createElement("button",{type:"button",className:r.clsx("react-datepicker__close-icon",u,{"react-datepicker__close-icon--disabled":o}),disabled:o,"aria-label":p,onClick:n.onClearClick,title:l,tabIndex:-1}):null}),n.state=n.calcInitialState(),n.preventFocusTimeout=null,n}return xe(t,e),Ee(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?S.getMonth(n)!==S.getMonth(r)||x.getYear(n)!==x.getYear(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:vt(this.props.highlightDates)}),t.focused||Ke(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var e=this.props,t=e.showIcon,n=e.icon,r=e.calendarIconClassname,o=e.toggleCalendarOnIconClick,i=this.state.open;return he.default.createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&he.default.createElement(Jt,Oe({icon:n,className:"".concat(r," ").concat(i&&"react-datepicker-ignore-onclickoutside")},o?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?he.default.createElement(nn,{enableTabLoop:this.props.enableTabLoop},he.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=he.default.createElement(en,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),he.default.createElement("div",null,this.renderInputContainer(),t)}return he.default.createElement(on,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop,showArrow:this.props.showPopperArrow})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}}}])}(he.default.Component),un="input",dn="navigate";e.CalendarContainer=qt,e.default=cn,e.getDefaultLocale=qe,e.registerLocale=function(e,t){var n="undefined"!=typeof window?window:globalThis;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(39155),n(39067),n(27247),n(14832),n(18808),n(29139),n(93488),n(35030),n(95382),n(39016),n(3962),n(46316),n(48063),n(97620),n(63115),n(28943),n(47829),n(39704),n(83261),n(87857),n(92443),n(91302),n(70802),n(46629),n(88614),n(82124),n(16163),n(48091),n(76841),n(16885),n(84631),n(386),n(32864),n(61727),n(47310),n(17264),n(60657),n(77945),n(81778),n(94775),n(33633),n(58231),n(81725),n(54463),n(12326),n(34594),n(66034),n(60506),n(81015),n(48798),n(60082),n(43562),n(73575),n(24168),n(60636),n(5087),n(32022),n(91941),n(25089),n(69756),n(51298),n(70853),n(69514),n(74785),n(95170))},27247(e){function t(e){var n,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(r=t(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function n(){for(var e,n,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(n=t(e))&&(o&&(o+=" "),o+=n);return o}e.exports=n,e.exports.clsx=n},52721(e,t){"use strict";t.addLeadingZeros=function(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}},82008(e,t,n){"use strict";Object.defineProperty(t,"defaultLocale",{enumerable:!0,get:function(){return r.enUS}});var r=n(64131)},16234(e,t){"use strict";t.getDefaultOptions=function(){return n},t.setDefaultOptions=function(e){n=e};let n={}},12516(e,t,n){"use strict";t.formatters=void 0;var r=n(13186),o=n(46629),i=n(964),a=n(36270),s=n(66915),l=n(52721),c=n(21168);function u(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+(0,l.addLeadingZeros)(i,2)}function d(e,t){return e%60==0?(e>0?"-":"+")+(0,l.addLeadingZeros)(Math.abs(e)/60,2):p(e,t)}function p(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+(0,l.addLeadingZeros)(Math.trunc(r/60),2)+t+(0,l.addLeadingZeros)(r%60,2)}t.formatters={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return c.lightFormatters.y(e,t)},Y:function(e,t,n,r){const o=(0,s.getWeekYear)(e,r),i=o>0?o:1-o;if("YY"===t){const e=i%100;return(0,l.addLeadingZeros)(e,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):(0,l.addLeadingZeros)(i,t.length)},R:function(e,t){const n=(0,i.getISOWeekYear)(e);return(0,l.addLeadingZeros)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,l.addLeadingZeros)(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,l.addLeadingZeros)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,l.addLeadingZeros)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return c.lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,l.addLeadingZeros)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=(0,a.getWeek)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,l.addLeadingZeros)(o,t.length)},I:function(e,t,n){const r=(0,o.getISOWeek)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,l.addLeadingZeros)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):c.lightFormatters.d(e,t)},D:function(e,t,n){const o=(0,r.getDayOfYear)(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):(0,l.addLeadingZeros)(o,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,l.addLeadingZeros)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,l.addLeadingZeros)(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,l.addLeadingZeros)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return c.lightFormatters.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):c.lightFormatters.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.addLeadingZeros)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.addLeadingZeros)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):c.lightFormatters.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):c.lightFormatters.s(e,t)},S:function(e,t){return c.lightFormatters.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return d(r);case"XXXX":case"XX":return p(r);default:return p(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return d(r);case"xxxx":case"xx":return p(r);default:return p(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+u(r,":");default:return"GMT"+p(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+u(r,":");default:return"GMT"+p(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return(0,l.addLeadingZeros)(r,t.length)},T:function(e,t,n){const r=e.getTime();return(0,l.addLeadingZeros)(r,t.length)}}},21168(e,t,n){"use strict";t.lightFormatters=void 0;var r=n(52721);t.lightFormatters={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return(0,r.addLeadingZeros)("yy"===t?o%100:o,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):(0,r.addLeadingZeros)(n+1,2)},d:(e,t)=>(0,r.addLeadingZeros)(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>(0,r.addLeadingZeros)(e.getHours()%12||12,t.length),H:(e,t)=>(0,r.addLeadingZeros)(e.getHours(),t.length),m:(e,t)=>(0,r.addLeadingZeros)(e.getMinutes(),t.length),s:(e,t)=>(0,r.addLeadingZeros)(e.getSeconds(),t.length),S(e,t){const n=t.length,o=e.getMilliseconds(),i=Math.trunc(o*Math.pow(10,n-3));return(0,r.addLeadingZeros)(i,t.length)}}},85890(e,t){"use strict";t.longFormatters=void 0;const n=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};t.longFormatters={p:r,P:(e,t)=>{const o=e.match(/(P+)(p+)?/)||[],i=o[1],a=o[2];if(!a)return n(e,t);let s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",n(i,t)).replace("{{time}}",r(a,t))}}},13266(e,t){"use strict";t.getRoundingMethod=function(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}},37026(e,t,n){"use strict";t.getTimezoneOffsetInMilliseconds=function(e){const t=(0,r.toDate)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n};var r=n(91941)},14563(e,t){"use strict";t.isProtectedDayOfYearToken=function(e){return n.test(e)},t.isProtectedWeekYearToken=function(e){return r.test(e)},t.warnOrThrowProtectedError=function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),o.includes(e))throw new RangeError(r)};const n=/^D+$/,r=/^Y+$/,o=["D","DD","YY","YYYY"]},52761(e,t,n){"use strict";t.add=function(e,t){const{years:n=0,months:s=0,weeks:l=0,days:c=0,hours:u=0,minutes:d=0,seconds:p=0}=t,h=(0,a.toDate)(e),f=s||n?(0,o.addMonths)(h,s+12*n):h,g=c||l?(0,r.addDays)(f,c+7*l):f,m=1e3*(p+60*(d+60*u));return(0,i.constructFrom)(e,g.getTime()+m)};var r=n(95382),o=n(3962),i=n(15155),a=n(91941)},89340(e,t,n){"use strict";t.addBusinessDays=function(e,t){const n=(0,s.toDate)(e),l=(0,a.isWeekend)(n);if(isNaN(t))return(0,r.constructFrom)(e,NaN);const c=n.getHours(),u=t<0?-1:1,d=Math.trunc(t/5);n.setDate(n.getDate()+7*d);let p=Math.abs(t%5);for(;p>0;)n.setDate(n.getDate()+u),(0,a.isWeekend)(n)||(p-=1);return l&&(0,a.isWeekend)(n)&&0!==t&&((0,o.isSaturday)(n)&&n.setDate(n.getDate()+(u<0?2:-1)),(0,i.isSunday)(n)&&n.setDate(n.getDate()+(u<0?1:-2))),n.setHours(c),n};var r=n(15155),o=n(41959),i=n(15816),a=n(68987),s=n(91941)},95382(e,t,n){"use strict";t.addDays=function(e,t){const n=(0,r.toDate)(e);return isNaN(t)?(0,o.constructFrom)(e,NaN):t?(n.setDate(n.getDate()+t),n):n};var r=n(91941),o=n(15155)},35030(e,t,n){"use strict";t.addHours=function(e,t){return(0,r.addMilliseconds)(e,t*o.millisecondsInHour)};var r=n(18559),o=n(74963)},87512(e,t,n){"use strict";t.addISOWeekYears=function(e,t){return(0,o.setISOWeekYear)(e,(0,r.getISOWeekYear)(e)+t)};var r=n(964),o=n(23432)},18559(e,t,n){"use strict";t.addMilliseconds=function(e,t){const n=+(0,r.toDate)(e);return(0,o.constructFrom)(e,n+t)};var r=n(91941),o=n(15155)},93488(e,t,n){"use strict";t.addMinutes=function(e,t){return(0,r.addMilliseconds)(e,t*o.millisecondsInMinute)};var r=n(18559),o=n(74963)},3962(e,t,n){"use strict";t.addMonths=function(e,t){const n=(0,r.toDate)(e);if(isNaN(t))return(0,o.constructFrom)(e,NaN);if(!t)return n;const i=n.getDate(),a=(0,o.constructFrom)(e,n.getTime());return a.setMonth(n.getMonth()+t+1,0),i>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),i),n)};var r=n(91941),o=n(15155)},46316(e,t,n){"use strict";t.addQuarters=function(e,t){const n=3*t;return(0,r.addMonths)(e,n)};var r=n(3962)},43144(e,t,n){"use strict";t.addSeconds=function(e,t){return(0,r.addMilliseconds)(e,1e3*t)};var r=n(18559)},39016(e,t,n){"use strict";t.addWeeks=function(e,t){const n=7*t;return(0,r.addDays)(e,n)};var r=n(95382)},48063(e,t,n){"use strict";t.addYears=function(e,t){return(0,r.addMonths)(e,12*t)};var r=n(3962)},29761(e,t,n){"use strict";t.areIntervalsOverlapping=function(e,t,n){const[o,i]=[+(0,r.toDate)(e.start),+(0,r.toDate)(e.end)].sort((e,t)=>e-t),[a,s]=[+(0,r.toDate)(t.start),+(0,r.toDate)(t.end)].sort((e,t)=>e-t);return n?.inclusive?o<=s&&a<=i:o<s&&a<i};var r=n(91941)},41229(e,t,n){"use strict";t.clamp=function(e,t){return(0,o.min)([(0,r.max)([e,t.start]),t.end])};var r=n(17264),o=n(47310)},51548(e,t,n){"use strict";t.closestIndexTo=function(e,t){const n=(0,r.toDate)(e);if(isNaN(Number(n)))return NaN;const o=n.getTime();let i,a;return t.forEach(function(e,t){const n=(0,r.toDate)(e);if(isNaN(Number(n)))return i=NaN,void(a=NaN);const s=Math.abs(o-n.getTime());(null==i||s<a)&&(i=t,a=s)}),i};var r=n(91941)},46640(e,t,n){"use strict";t.closestTo=function(e,t){const n=(0,o.toDate)(e);if(isNaN(Number(n)))return(0,r.constructFrom)(e,NaN);const i=n.getTime();let a,s;return t.forEach(t=>{const n=(0,o.toDate)(t);if(isNaN(Number(n)))return a=(0,r.constructFrom)(e,NaN),void(s=NaN);const l=Math.abs(i-n.getTime());(null==a||l<s)&&(a=n,s=l)}),a};var r=n(15155),o=n(91941)},71180(e,t,n){"use strict";t.compareAsc=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t),i=n.getTime()-o.getTime();return i<0?-1:i>0?1:i};var r=n(91941)},95544(e,t,n){"use strict";t.compareDesc=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t),i=n.getTime()-o.getTime();return i>0?-1:i<0?1:i};var r=n(91941)},74963(e,t){"use strict";t.secondsInYear=t.secondsInWeek=t.secondsInQuarter=t.secondsInMonth=t.secondsInMinute=t.secondsInHour=t.secondsInDay=t.quartersInYear=t.monthsInYear=t.monthsInQuarter=t.minutesInYear=t.minutesInMonth=t.minutesInHour=t.minutesInDay=t.minTime=t.millisecondsInWeek=t.millisecondsInSecond=t.millisecondsInMinute=t.millisecondsInHour=t.millisecondsInDay=t.maxTime=t.daysInYear=t.daysInWeek=void 0,t.daysInWeek=7;const n=t.daysInYear=365.2425,r=t.maxTime=24*Math.pow(10,8)*60*60*1e3,o=(t.minTime=-r,t.millisecondsInWeek=6048e5,t.millisecondsInDay=864e5,t.millisecondsInMinute=6e4,t.millisecondsInHour=36e5,t.millisecondsInSecond=1e3,t.minutesInYear=525600,t.minutesInMonth=43200,t.minutesInDay=1440,t.minutesInHour=60,t.monthsInQuarter=3,t.monthsInYear=12,t.quartersInYear=4,t.secondsInHour=3600),i=(t.secondsInMinute=60,t.secondsInDay=24*o),a=(t.secondsInWeek=7*i,t.secondsInYear=i*n),s=t.secondsInMonth=a/12;t.secondsInQuarter=3*s},15155(e,t){"use strict";t.constructFrom=function(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}},49611(e,t,n){"use strict";t.constructNow=function(e){return(0,r.constructFrom)(e,Date.now())};var r=n(15155)},43677(e,t,n){"use strict";t.daysToWeeks=function(e){const t=e/r.daysInWeek,n=Math.trunc(t);return 0===n?0:n};var r=n(74963)},96685(e,t,n){"use strict";t.differenceInBusinessDays=function(e,t){const n=(0,l.toDate)(e);let c=(0,l.toDate)(t);if(!(0,a.isValid)(n)||!(0,a.isValid)(c))return NaN;const u=(0,o.differenceInCalendarDays)(n,c),d=u<0?-1:1,p=Math.trunc(u/7);let h=5*p;for(c=(0,r.addDays)(c,7*p);!(0,i.isSameDay)(n,c);)h+=(0,s.isWeekend)(c)?0:d,c=(0,r.addDays)(c,d);return 0===h?0:h};var r=n(95382),o=n(60657),i=n(60082),a=n(18808),s=n(68987),l=n(91941)},60657(e,t,n){"use strict";t.differenceInCalendarDays=function(e,t){const n=(0,o.startOfDay)(e),a=(0,o.startOfDay)(t),s=+n-(0,i.getTimezoneOffsetInMilliseconds)(n),l=+a-(0,i.getTimezoneOffsetInMilliseconds)(a);return Math.round((s-l)/r.millisecondsInDay)};var r=n(74963),o=n(33633),i=n(37026)},97903(e,t,n){"use strict";t.differenceInCalendarISOWeekYears=function(e,t){return(0,r.getISOWeekYear)(e)-(0,r.getISOWeekYear)(t)};var r=n(964)},86476(e,t,n){"use strict";t.differenceInCalendarISOWeeks=function(e,t){const n=(0,o.startOfISOWeek)(e),a=(0,o.startOfISOWeek)(t),s=+n-(0,i.getTimezoneOffsetInMilliseconds)(n),l=+a-(0,i.getTimezoneOffsetInMilliseconds)(a);return Math.round((s-l)/r.millisecondsInWeek)};var r=n(74963),o=n(64050),i=n(37026)},77945(e,t,n){"use strict";t.differenceInCalendarMonths=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())};var r=n(91941)},94775(e,t,n){"use strict";t.differenceInCalendarQuarters=function(e,t){const n=(0,o.toDate)(e),i=(0,o.toDate)(t);return 4*(n.getFullYear()-i.getFullYear())+((0,r.getQuarter)(n)-(0,r.getQuarter)(i))};var r=n(82124),o=n(91941)},91809(e,t,n){"use strict";t.differenceInCalendarWeeks=function(e,t,n){const a=(0,o.startOfWeek)(e,n),s=(0,o.startOfWeek)(t,n),l=+a-(0,i.getTimezoneOffsetInMilliseconds)(a),c=+s-(0,i.getTimezoneOffsetInMilliseconds)(s);return Math.round((l-c)/r.millisecondsInWeek)};var r=n(74963),o=n(58231),i=n(37026)},81778(e,t,n){"use strict";t.differenceInCalendarYears=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return n.getFullYear()-o.getFullYear()};var r=n(91941)},58611(e,t,n){"use strict";t.differenceInDays=function(e,t){const n=(0,o.toDate)(e),a=(0,o.toDate)(t),s=i(n,a),l=Math.abs((0,r.differenceInCalendarDays)(n,a));n.setDate(n.getDate()-s*l);const c=s*(l-Number(i(n,a)===-s));return 0===c?0:c};var r=n(60657),o=n(91941);function i(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}},77957(e,t,n){"use strict";t.differenceInHours=function(e,t,n){const a=(0,i.differenceInMilliseconds)(e,t)/o.millisecondsInHour;return(0,r.getRoundingMethod)(n?.roundingMethod)(a)};var r=n(13266),o=n(74963),i=n(94006)},13421(e,t,n){"use strict";t.differenceInISOWeekYears=function(e,t){let n=(0,a.toDate)(e);const s=(0,a.toDate)(t),l=(0,r.compareAsc)(n,s),c=Math.abs((0,o.differenceInCalendarISOWeekYears)(n,s));n=(0,i.subISOWeekYears)(n,l*c);const u=l*(c-Number((0,r.compareAsc)(n,s)===-l));return 0===u?0:u};var r=n(71180),o=n(97903),i=n(90625),a=n(91941)},94006(e,t,n){"use strict";t.differenceInMilliseconds=function(e,t){return+(0,r.toDate)(e)-+(0,r.toDate)(t)};var r=n(91941)},46855(e,t,n){"use strict";t.differenceInMinutes=function(e,t,n){const a=(0,i.differenceInMilliseconds)(e,t)/o.millisecondsInMinute;return(0,r.getRoundingMethod)(n?.roundingMethod)(a)};var r=n(13266),o=n(74963),i=n(94006)},60067(e,t,n){"use strict";t.differenceInMonths=function(e,t){const n=(0,a.toDate)(e),s=(0,a.toDate)(t),l=(0,r.compareAsc)(n,s),c=Math.abs((0,o.differenceInCalendarMonths)(n,s));let u;if(c<1)u=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*c);let t=(0,r.compareAsc)(n,s)===-l;(0,i.isLastDayOfMonth)((0,a.toDate)(e))&&1===c&&1===(0,r.compareAsc)(e,s)&&(t=!1),u=l*(c-Number(t))}return 0===u?0:u};var r=n(71180),o=n(77945),i=n(48199),a=n(91941)},6305(e,t,n){"use strict";t.differenceInQuarters=function(e,t,n){const i=(0,o.differenceInMonths)(e,t)/3;return(0,r.getRoundingMethod)(n?.roundingMethod)(i)};var r=n(13266),o=n(60067)},53583(e,t,n){"use strict";t.differenceInSeconds=function(e,t,n){const i=(0,o.differenceInMilliseconds)(e,t)/1e3;return(0,r.getRoundingMethod)(n?.roundingMethod)(i)};var r=n(13266),o=n(94006)},65119(e,t,n){"use strict";t.differenceInWeeks=function(e,t,n){const i=(0,o.differenceInDays)(e,t)/7;return(0,r.getRoundingMethod)(n?.roundingMethod)(i)};var r=n(13266),o=n(58611)},69212(e,t,n){"use strict";t.differenceInYears=function(e,t){const n=(0,i.toDate)(e),a=(0,i.toDate)(t),s=(0,r.compareAsc)(n,a),l=Math.abs((0,o.differenceInCalendarYears)(n,a));n.setFullYear(1584),a.setFullYear(1584);const c=s*(l-+((0,r.compareAsc)(n,a)===-s));return 0===c?0:c};var r=n(71180),o=n(81778),i=n(91941)},65331(e,t,n){"use strict";t.eachDayOfInterval=function(e,t){const n=(0,r.toDate)(e.start),o=(0,r.toDate)(e.end);let i=+n>+o;const a=i?+n:+o,s=i?o:n;s.setHours(0,0,0,0);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);const c=[];for(;+s<=a;)c.push((0,r.toDate)(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return i?c.reverse():c};var r=n(91941)},34563(e,t,n){"use strict";t.eachHourOfInterval=function(e,t){const n=(0,o.toDate)(e.start),i=(0,o.toDate)(e.end);let a=+n>+i;const s=a?+n:+i;let l=a?i:n;l.setMinutes(0,0,0);let c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);const u=[];for(;+l<=s;)u.push((0,o.toDate)(l)),l=(0,r.addHours)(l,c);return a?u.reverse():u};var r=n(35030),o=n(91941)},18857(e,t,n){"use strict";t.eachMinuteOfInterval=function(e,t){const n=(0,o.startOfMinute)((0,i.toDate)(e.start)),a=(0,i.toDate)(e.end);let s=+n>+a;const l=s?+n:+a;let c=s?a:n,u=t?.step??1;if(!u)return[];u<0&&(u=-u,s=!s);const d=[];for(;+c<=l;)d.push((0,i.toDate)(c)),c=(0,r.addMinutes)(c,u);return s?d.reverse():d};var r=n(93488),o=n(4395),i=n(91941)},32207(e,t,n){"use strict";t.eachMonthOfInterval=function(e,t){const n=(0,r.toDate)(e.start),o=(0,r.toDate)(e.end);let i=+n>+o;const a=i?+n:+o,s=i?o:n;s.setHours(0,0,0,0),s.setDate(1);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);const c=[];for(;+s<=a;)c.push((0,r.toDate)(s)),s.setMonth(s.getMonth()+l);return i?c.reverse():c};var r=n(91941)},55597(e,t,n){"use strict";t.eachQuarterOfInterval=function(e,t){const n=(0,i.toDate)(e.start),a=(0,i.toDate)(e.end);let s=+n>+a;const l=s?+(0,o.startOfQuarter)(n):+(0,o.startOfQuarter)(a);let c=s?(0,o.startOfQuarter)(a):(0,o.startOfQuarter)(n),u=t?.step??1;if(!u)return[];u<0&&(u=-u,s=!s);const d=[];for(;+c<=l;)d.push((0,i.toDate)(c)),c=(0,r.addQuarters)(c,u);return s?d.reverse():d};var r=n(46316),o=n(54463),i=n(91941)},74033(e,t,n){"use strict";t.eachWeekOfInterval=function(e,t){const n=(0,i.toDate)(e.start),a=(0,i.toDate)(e.end);let s=+n>+a;const l=s?(0,o.startOfWeek)(a,t):(0,o.startOfWeek)(n,t),c=s?(0,o.startOfWeek)(n,t):(0,o.startOfWeek)(a,t);l.setHours(15),c.setHours(15);const u=+c.getTime();let d=l,p=t?.step??1;if(!p)return[];p<0&&(p=-p,s=!s);const h=[];for(;+d<=u;)d.setHours(0),h.push((0,i.toDate)(d)),d=(0,r.addWeeks)(d,p),d.setHours(15);return s?h.reverse():h};var r=n(39016),o=n(58231),i=n(91941)},30488(e,t,n){"use strict";t.eachWeekendOfInterval=function(e){const t=(0,r.eachDayOfInterval)(e),n=[];let i=0;for(;i<t.length;){const e=t[i++];(0,o.isWeekend)(e)&&n.push(e)}return n};var r=n(65331),o=n(68987)},25487(e,t,n){"use strict";t.eachWeekendOfMonth=function(e){const t=(0,i.startOfMonth)(e),n=(0,o.endOfMonth)(e);return(0,r.eachWeekendOfInterval)({start:t,end:n})};var r=n(30488),o=n(60506),i=n(81725)},41840(e,t,n){"use strict";t.eachWeekendOfYear=function(e){const t=(0,i.startOfYear)(e),n=(0,o.endOfYear)(e);return(0,r.eachWeekendOfInterval)({start:t,end:n})};var r=n(30488),o=n(81015),i=n(12326)},57148(e,t,n){"use strict";t.eachYearOfInterval=function(e,t){const n=(0,r.toDate)(e.start),o=(0,r.toDate)(e.end);let i=+n>+o;const a=i?+n:+o,s=i?o:n;s.setHours(0,0,0,0),s.setMonth(0,1);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);const c=[];for(;+s<=a;)c.push((0,r.toDate)(s)),s.setFullYear(s.getFullYear()+l);return i?c.reverse():c};var r=n(91941)},34594(e,t,n){"use strict";t.endOfDay=function(e){const t=(0,r.toDate)(e);return t.setHours(23,59,59,999),t};var r=n(91941)},48518(e,t,n){"use strict";t.endOfDecade=function(e){const t=(0,r.toDate)(e),n=t.getFullYear(),o=9+10*Math.floor(n/10);return t.setFullYear(o,11,31),t.setHours(23,59,59,999),t};var r=n(91941)},93040(e,t,n){"use strict";t.endOfHour=function(e){const t=(0,r.toDate)(e);return t.setMinutes(59,59,999),t};var r=n(91941)},56121(e,t,n){"use strict";t.endOfISOWeek=function(e){return(0,r.endOfWeek)(e,{weekStartsOn:1})};var r=n(66034)},65408(e,t,n){"use strict";t.endOfISOWeekYear=function(e){const t=(0,r.getISOWeekYear)(e),n=(0,i.constructFrom)(e,0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);const a=(0,o.startOfISOWeek)(n);return a.setMilliseconds(a.getMilliseconds()-1),a};var r=n(964),o=n(64050),i=n(15155)},75990(e,t,n){"use strict";t.endOfMinute=function(e){const t=(0,r.toDate)(e);return t.setSeconds(59,999),t};var r=n(91941)},60506(e,t,n){"use strict";t.endOfMonth=function(e){const t=(0,r.toDate)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t};var r=n(91941)},19640(e,t,n){"use strict";t.endOfQuarter=function(e){const t=(0,r.toDate)(e),n=t.getMonth(),o=n-n%3+3;return t.setMonth(o,0),t.setHours(23,59,59,999),t};var r=n(91941)},770(e,t,n){"use strict";t.endOfSecond=function(e){const t=(0,r.toDate)(e);return t.setMilliseconds(999),t};var r=n(91941)},13309(e,t,n){"use strict";t.endOfToday=function(){return(0,r.endOfDay)(Date.now())};var r=n(34594)},49621(e,t){"use strict";t.endOfTomorrow=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r+1),o.setHours(23,59,59,999),o}},66034(e,t,n){"use strict";t.endOfWeek=function(e,t){const n=(0,o.getDefaultOptions)(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,r.toDate)(e),s=a.getDay(),l=6+(s<i?-7:0)-(s-i);return a.setDate(a.getDate()+l),a.setHours(23,59,59,999),a};var r=n(91941),o=n(16234)},81015(e,t,n){"use strict";t.endOfYear=function(e){const t=(0,r.toDate)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t};var r=n(91941)},24760(e,t){"use strict";t.endOfYesterday=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r-1),o.setHours(23,59,59,999),o}},29139(e,t,n){"use strict";t.format=t.formatDate=function(e,t,n){const p=(0,o.getDefaultOptions)(),h=n?.locale??p.locale??r.defaultLocale,m=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??p.firstWeekContainsDate??p.locale?.options?.firstWeekContainsDate??1,v=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??p.weekStartsOn??p.locale?.options?.weekStartsOn??0,y=(0,c.toDate)(e);if(!(0,l.isValid)(y))throw new RangeError("Invalid time value");let A=t.match(d).map(e=>{const t=e[0];return"p"===t||"P"===t?(0,a.longFormatters[t])(e,h.formatLong):e}).join("").match(u).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:g(e)};if(i.formatters[t])return{isToken:!0,value:e};if(t.match(f))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});h.localize.preprocessor&&(A=h.localize.preprocessor(y,A));const w={firstWeekContainsDate:m,weekStartsOn:v,locale:h};return A.map(r=>{if(!r.isToken)return r.value;const o=r.value;return(!n?.useAdditionalWeekYearTokens&&(0,s.isProtectedWeekYearToken)(o)||!n?.useAdditionalDayOfYearTokens&&(0,s.isProtectedDayOfYearToken)(o))&&(0,s.warnOrThrowProtectedError)(o,t,String(e)),(0,i.formatters[o[0]])(y,o,h.localize,w)}).join("")},Object.defineProperty(t,"formatters",{enumerable:!0,get:function(){return i.formatters}}),Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return a.longFormatters}});var r=n(82008),o=n(16234),i=n(12516),a=n(85890),s=n(14563),l=n(18808),c=n(91941);const u=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p=/^'([^]*?)'?$/,h=/''/g,f=/[a-zA-Z]/;function g(e){const t=e.match(p);return t?t[1].replace(h,"'"):e}},57236(e,t,n){"use strict";t.formatDistance=function(e,t,n){const d=(0,c.getDefaultOptions)(),p=n?.locale??d.locale??l.defaultLocale,h=(0,r.compareAsc)(e,t);if(isNaN(h))throw new RangeError("Invalid time value");const f=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:h});let g,m;h>0?(g=(0,s.toDate)(t),m=(0,s.toDate)(e)):(g=(0,s.toDate)(e),m=(0,s.toDate)(t));const v=(0,a.differenceInSeconds)(m,g),y=((0,u.getTimezoneOffsetInMilliseconds)(m)-(0,u.getTimezoneOffsetInMilliseconds)(g))/1e3,A=Math.round((v-y)/60);let w;if(A<2)return n?.includeSeconds?v<5?p.formatDistance("lessThanXSeconds",5,f):v<10?p.formatDistance("lessThanXSeconds",10,f):v<20?p.formatDistance("lessThanXSeconds",20,f):v<40?p.formatDistance("halfAMinute",0,f):v<60?p.formatDistance("lessThanXMinutes",1,f):p.formatDistance("xMinutes",1,f):0===A?p.formatDistance("lessThanXMinutes",1,f):p.formatDistance("xMinutes",A,f);if(A<45)return p.formatDistance("xMinutes",A,f);if(A<90)return p.formatDistance("aboutXHours",1,f);if(A<o.minutesInDay){const e=Math.round(A/60);return p.formatDistance("aboutXHours",e,f)}if(A<2520)return p.formatDistance("xDays",1,f);if(A<o.minutesInMonth){const e=Math.round(A/o.minutesInDay);return p.formatDistance("xDays",e,f)}if(A<2*o.minutesInMonth)return w=Math.round(A/o.minutesInMonth),p.formatDistance("aboutXMonths",w,f);if(w=(0,i.differenceInMonths)(m,g),w<12){const e=Math.round(A/o.minutesInMonth);return p.formatDistance("xMonths",e,f)}{const e=w%12,t=Math.trunc(w/12);return e<3?p.formatDistance("aboutXYears",t,f):e<9?p.formatDistance("overXYears",t,f):p.formatDistance("almostXYears",t+1,f)}};var r=n(71180),o=n(74963),i=n(60067),a=n(53583),s=n(91941),l=n(82008),c=n(16234),u=n(37026)},79365(e,t,n){"use strict";t.formatDistanceStrict=function(e,t,n){const u=(0,o.getDefaultOptions)(),d=n?.locale??u.locale??r.defaultLocale,p=(0,s.compareAsc)(e,t);if(isNaN(p))throw new RangeError("Invalid time value");const h=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:p});let f,g;p>0?(f=(0,c.toDate)(t),g=(0,c.toDate)(e)):(f=(0,c.toDate)(e),g=(0,c.toDate)(t));const m=(0,i.getRoundingMethod)(n?.roundingMethod??"round"),v=g.getTime()-f.getTime(),y=v/l.millisecondsInMinute,A=(v-((0,a.getTimezoneOffsetInMilliseconds)(g)-(0,a.getTimezoneOffsetInMilliseconds)(f)))/l.millisecondsInMinute,w=n?.unit;let b;if(b=w||(y<1?"second":y<60?"minute":y<l.minutesInDay?"hour":A<l.minutesInMonth?"day":A<l.minutesInYear?"month":"year"),"second"===b){const e=m(v/1e3);return d.formatDistance("xSeconds",e,h)}if("minute"===b){const e=m(y);return d.formatDistance("xMinutes",e,h)}if("hour"===b){const e=m(y/60);return d.formatDistance("xHours",e,h)}if("day"===b){const e=m(A/l.minutesInDay);return d.formatDistance("xDays",e,h)}if("month"===b){const e=m(A/l.minutesInMonth);return 12===e&&"month"!==w?d.formatDistance("xYears",1,h):d.formatDistance("xMonths",e,h)}{const e=m(A/l.minutesInYear);return d.formatDistance("xYears",e,h)}};var r=n(82008),o=n(16234),i=n(13266),a=n(37026),s=n(71180),l=n(74963),c=n(91941)},16709(e,t,n){"use strict";t.formatDistanceToNow=function(e,t){return(0,o.formatDistance)(e,(0,r.constructNow)(e),t)};var r=n(49611),o=n(57236)},18840(e,t,n){"use strict";t.formatDistanceToNowStrict=function(e,t){return(0,r.formatDistanceStrict)(e,(0,o.constructNow)(e),t)};var r=n(79365),o=n(49611)},53571(e,t,n){"use strict";t.formatDuration=function(e,t){const n=(0,o.getDefaultOptions)(),a=t?.locale??n.locale??r.defaultLocale,s=t?.format??i,l=t?.zero??!1,c=t?.delimiter??" ";return a.formatDistance?s.reduce((t,n)=>{const r=`x${n.replace(/(^.)/,e=>e.toUpperCase())}`,o=e[n];return void 0!==o&&(l||e[n])?t.concat(a.formatDistance(r,o)):t},[]).join(c):""};var r=n(82008),o=n(16234);const i=["years","months","weeks","days","hours","minutes","seconds"]},54074(e,t,n){"use strict";t.formatISO=function(e,t){const n=(0,r.toDate)(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const i=t?.format??"extended",a=t?.representation??"complete";let s="",l="";const c="extended"===i?"-":"",u="extended"===i?":":"";if("time"!==a){const e=(0,o.addLeadingZeros)(n.getDate(),2),t=(0,o.addLeadingZeros)(n.getMonth()+1,2);s=`${(0,o.addLeadingZeros)(n.getFullYear(),4)}${c}${t}${c}${e}`}if("date"!==a){const e=n.getTimezoneOffset();if(0!==e){const t=Math.abs(e);l=`${e<0?"+":"-"}${(0,o.addLeadingZeros)(Math.trunc(t/60),2)}:${(0,o.addLeadingZeros)(t%60,2)}`}else l="Z";s=`${s}${""===s?"":"T"}${[(0,o.addLeadingZeros)(n.getHours(),2),(0,o.addLeadingZeros)(n.getMinutes(),2),(0,o.addLeadingZeros)(n.getSeconds(),2)].join(u)}${l}`}return s};var r=n(91941),o=n(52721)},53767(e,t,n){"use strict";t.formatISO9075=function(e,t){const n=(0,o.toDate)(e);if(!(0,r.isValid)(n))throw new RangeError("Invalid time value");const a=t?.format??"extended",s=t?.representation??"complete";let l="";const c="extended"===a?"-":"",u="extended"===a?":":"";if("time"!==s){const e=(0,i.addLeadingZeros)(n.getDate(),2),t=(0,i.addLeadingZeros)(n.getMonth()+1,2);l=`${(0,i.addLeadingZeros)(n.getFullYear(),4)}${c}${t}${c}${e}`}return"date"!==s&&(l=`${l}${""===l?"":" "}${(0,i.addLeadingZeros)(n.getHours(),2)}${u}${(0,i.addLeadingZeros)(n.getMinutes(),2)}${u}${(0,i.addLeadingZeros)(n.getSeconds(),2)}`),l};var r=n(18808),o=n(91941),i=n(52721)},76338(e,t){"use strict";t.formatISODuration=function(e){const{years:t=0,months:n=0,days:r=0,hours:o=0,minutes:i=0,seconds:a=0}=e;return`P${t}Y${n}M${r}DT${o}H${i}M${a}S`}},6752(e,t,n){"use strict";t.formatRFC3339=function(e,t){const n=(0,o.toDate)(e);if(!(0,r.isValid)(n))throw new RangeError("Invalid time value");const a=t?.fractionDigits??0,s=(0,i.addLeadingZeros)(n.getDate(),2),l=(0,i.addLeadingZeros)(n.getMonth()+1,2),c=n.getFullYear(),u=(0,i.addLeadingZeros)(n.getHours(),2),d=(0,i.addLeadingZeros)(n.getMinutes(),2),p=(0,i.addLeadingZeros)(n.getSeconds(),2);let h="";if(a>0){const e=n.getMilliseconds(),t=Math.trunc(e*Math.pow(10,a-3));h="."+(0,i.addLeadingZeros)(t,a)}let f="";const g=n.getTimezoneOffset();if(0!==g){const e=Math.abs(g);f=`${g<0?"+":"-"}${(0,i.addLeadingZeros)(Math.trunc(e/60),2)}:${(0,i.addLeadingZeros)(e%60,2)}`}else f="Z";return`${c}-${l}-${s}T${u}:${d}:${p}${h}${f}`};var r=n(18808),o=n(91941),i=n(52721)},74787(e,t,n){"use strict";t.formatRFC7231=function(e){const t=(0,o.toDate)(e);if(!(0,r.isValid)(t))throw new RangeError("Invalid time value");return`${a[t.getUTCDay()]}, ${(0,i.addLeadingZeros)(t.getUTCDate(),2)} ${s[t.getUTCMonth()]} ${t.getUTCFullYear()} ${(0,i.addLeadingZeros)(t.getUTCHours(),2)}:${(0,i.addLeadingZeros)(t.getUTCMinutes(),2)}:${(0,i.addLeadingZeros)(t.getUTCSeconds(),2)} GMT`};var r=n(18808),o=n(91941),i=n(52721);const a=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},20955(e,t,n){"use strict";t.formatRelative=function(e,t,n){const l=(0,i.toDate)(e),c=(0,i.toDate)(t),u=(0,s.getDefaultOptions)(),d=n?.locale??u.locale??a.defaultLocale,p=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??u.weekStartsOn??u.locale?.options?.weekStartsOn??0,h=(0,r.differenceInCalendarDays)(l,c);if(isNaN(h))throw new RangeError("Invalid time value");let f;f=h<-6?"other":h<-1?"lastWeek":h<0?"yesterday":h<1?"today":h<2?"tomorrow":h<7?"nextWeek":"other";const g=d.formatRelative(f,l,c,{locale:d,weekStartsOn:p});return(0,o.format)(l,g,{locale:d,weekStartsOn:p})};var r=n(60657),o=n(29139),i=n(91941),a=n(82008),s=n(16234)},88303(e,t,n){"use strict";t.fromUnixTime=function(e){return(0,r.toDate)(1e3*e)};var r=n(91941)},70802(e,t,n){"use strict";t.getDate=function(e){return(0,r.toDate)(e).getDate()};var r=n(91941)},91302(e,t,n){"use strict";t.getDay=function(e){return(0,r.toDate)(e).getDay()};var r=n(91941)},13186(e,t,n){"use strict";t.getDayOfYear=function(e){const t=(0,i.toDate)(e);return(0,r.differenceInCalendarDays)(t,(0,o.startOfYear)(t))+1};var r=n(60657),o=n(12326),i=n(91941)},82710(e,t,n){"use strict";t.getDaysInMonth=function(e){const t=(0,r.toDate)(e),n=t.getFullYear(),i=t.getMonth(),a=(0,o.constructFrom)(e,0);return a.setFullYear(n,i+1,0),a.setHours(0,0,0,0),a.getDate()};var r=n(91941),o=n(15155)},60179(e,t,n){"use strict";t.getDaysInYear=function(e){const t=(0,o.toDate)(e);return"Invalid Date"===String(new Date(t))?NaN:(0,r.isLeapYear)(t)?366:365};var r=n(63771),o=n(91941)},99114(e,t,n){"use strict";t.getDecade=function(e){const t=(0,r.toDate)(e).getFullYear();return 10*Math.floor(t/10)};var r=n(91941)},11591(e,t,n){"use strict";t.getDefaultOptions=function(){return Object.assign({},(0,r.getDefaultOptions)())};var r=n(16234)},92443(e,t,n){"use strict";t.getHours=function(e){return(0,r.toDate)(e).getHours()};var r=n(91941)},2747(e,t,n){"use strict";t.getISODay=function(e){let t=(0,r.toDate)(e).getDay();return 0===t&&(t=7),t};var r=n(91941)},46629(e,t,n){"use strict";t.getISOWeek=function(e){const t=(0,a.toDate)(e),n=+(0,o.startOfISOWeek)(t)-+(0,i.startOfISOWeekYear)(t);return Math.round(n/r.millisecondsInWeek)+1};var r=n(74963),o=n(64050),i=n(23535),a=n(91941)},964(e,t,n){"use strict";t.getISOWeekYear=function(e){const t=(0,i.toDate)(e),n=t.getFullYear(),a=(0,r.constructFrom)(e,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const s=(0,o.startOfISOWeek)(a),l=(0,r.constructFrom)(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const c=(0,o.startOfISOWeek)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1};var r=n(15155),o=n(64050),i=n(91941)},40666(e,t,n){"use strict";t.getISOWeeksInYear=function(e){const t=(0,i.startOfISOWeekYear)(e),n=+(0,i.startOfISOWeekYear)((0,r.addWeeks)(t,60))-+t;return Math.round(n/o.millisecondsInWeek)};var r=n(39016),o=n(74963),i=n(23535)},78128(e,t,n){"use strict";t.getMilliseconds=function(e){return(0,r.toDate)(e).getMilliseconds()};var r=n(91941)},87857(e,t,n){"use strict";t.getMinutes=function(e){return(0,r.toDate)(e).getMinutes()};var r=n(91941)},88614(e,t,n){"use strict";t.getMonth=function(e){return(0,r.toDate)(e).getMonth()};var r=n(91941)},15601(e,t,n){"use strict";t.getOverlappingDaysInIntervals=function(e,t){const[n,a]=[+(0,i.toDate)(e.start),+(0,i.toDate)(e.end)].sort((e,t)=>e-t),[s,l]=[+(0,i.toDate)(t.start),+(0,i.toDate)(t.end)].sort((e,t)=>e-t);if(!(n<l&&s<a))return 0;const c=s<n?n:s,u=c-(0,r.getTimezoneOffsetInMilliseconds)(c),d=l>a?a:l,p=d-(0,r.getTimezoneOffsetInMilliseconds)(d);return Math.ceil((p-u)/o.millisecondsInDay)};var r=n(37026),o=n(74963),i=n(91941)},82124(e,t,n){"use strict";t.getQuarter=function(e){const t=(0,r.toDate)(e);return Math.trunc(t.getMonth()/3)+1};var r=n(91941)},83261(e,t,n){"use strict";t.getSeconds=function(e){return(0,r.toDate)(e).getSeconds()};var r=n(91941)},48091(e,t,n){"use strict";t.getTime=function(e){return(0,r.toDate)(e).getTime()};var r=n(91941)},39693(e,t,n){"use strict";t.getUnixTime=function(e){return Math.trunc(+(0,r.toDate)(e)/1e3)};var r=n(91941)},36270(e,t,n){"use strict";t.getWeek=function(e,t){const n=(0,a.toDate)(e),s=+(0,o.startOfWeek)(n,t)-+(0,i.startOfWeekYear)(n,t);return Math.round(s/r.millisecondsInWeek)+1};var r=n(74963),o=n(58231),i=n(16226),a=n(91941)},15409(e,t,n){"use strict";t.getWeekOfMonth=function(e,t){const n=(0,a.getDefaultOptions)(),s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,l=(0,r.getDate)(e);if(isNaN(l))return NaN;let c=s-(0,o.getDay)((0,i.startOfMonth)(e));c<=0&&(c+=7);const u=l-c;return Math.ceil(u/7)+1};var r=n(70802),o=n(91302),i=n(81725),a=n(16234)},66915(e,t,n){"use strict";t.getWeekYear=function(e,t){const n=(0,i.toDate)(e),s=n.getFullYear(),l=(0,a.getDefaultOptions)(),c=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,u=(0,r.constructFrom)(e,0);u.setFullYear(s+1,0,c),u.setHours(0,0,0,0);const d=(0,o.startOfWeek)(u,t),p=(0,r.constructFrom)(e,0);p.setFullYear(s,0,c),p.setHours(0,0,0,0);const h=(0,o.startOfWeek)(p,t);return n.getTime()>=d.getTime()?s+1:n.getTime()>=h.getTime()?s:s-1};var r=n(15155),o=n(58231),i=n(91941),a=n(16234)},1438(e,t,n){"use strict";t.getWeeksInMonth=function(e,t){return(0,r.differenceInCalendarWeeks)((0,o.lastDayOfMonth)(e),(0,i.startOfMonth)(e),t)+1};var r=n(91809),o=n(95955),i=n(81725)},16163(e,t,n){"use strict";t.getYear=function(e){return(0,r.toDate)(e).getFullYear()};var r=n(91941)},34394(e,t,n){"use strict";t.hoursToMilliseconds=function(e){return Math.trunc(e*r.millisecondsInHour)};var r=n(74963)},69171(e,t,n){"use strict";t.hoursToMinutes=function(e){return Math.trunc(e*r.minutesInHour)};var r=n(74963)},27235(e,t,n){"use strict";t.hoursToSeconds=function(e){return Math.trunc(e*r.secondsInHour)};var r=n(74963)},51298(e,t,n){"use strict";var r=n(52761);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))});var o=n(89340);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var i=n(95382);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var a=n(35030);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))});var s=n(87512);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))});var l=n(18559);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});var c=n(93488);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))});var u=n(3962);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))});var d=n(46316);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))});var p=n(43144);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))});var h=n(39016);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))});var f=n(48063);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))});var g=n(29761);Object.keys(g).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))});var m=n(41229);Object.keys(m).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))});var v=n(51548);Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))});var y=n(46640);Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))});var A=n(71180);Object.keys(A).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))});var w=n(95544);Object.keys(w).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))});var b=n(15155);Object.keys(b).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))});var _=n(49611);Object.keys(_).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))});var C=n(43677);Object.keys(C).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))});var E=n(96685);Object.keys(E).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}}))});var S=n(60657);Object.keys(S).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))});var O=n(97903);Object.keys(O).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))});var x=n(86476);Object.keys(x).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))});var D=n(77945);Object.keys(D).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===D[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return D[e]}}))});var P=n(94775);Object.keys(P).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))});var M=n(91809);Object.keys(M).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===M[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return M[e]}}))});var T=n(81778);Object.keys(T).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return T[e]}}))});var R=n(58611);Object.keys(R).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===R[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return R[e]}}))});var I=n(77957);Object.keys(I).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===I[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}}))});var F=n(13421);Object.keys(F).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===F[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return F[e]}}))});var k=n(94006);Object.keys(k).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))});var L=n(46855);Object.keys(L).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===L[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return L[e]}}))});var B=n(60067);Object.keys(B).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))});var N=n(6305);Object.keys(N).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===N[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return N[e]}}))});var j=n(53583);Object.keys(j).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===j[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return j[e]}}))});var U=n(65119);Object.keys(U).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===U[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return U[e]}}))});var V=n(69212);Object.keys(V).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===V[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return V[e]}}))});var H=n(65331);Object.keys(H).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===H[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return H[e]}}))});var G=n(34563);Object.keys(G).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===G[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return G[e]}}))});var W=n(18857);Object.keys(W).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===W[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return W[e]}}))});var z=n(32207);Object.keys(z).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return z[e]}}))});var $=n(55597);Object.keys($).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $[e]}}))});var K=n(74033);Object.keys(K).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===K[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return K[e]}}))});var Q=n(30488);Object.keys(Q).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Q[e]}}))});var q=n(25487);Object.keys(q).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return q[e]}}))});var Y=n(41840);Object.keys(Y).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Y[e]}}))});var X=n(57148);Object.keys(X).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===X[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return X[e]}}))});var Z=n(34594);Object.keys(Z).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Z[e]}}))});var J=n(48518);Object.keys(J).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===J[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return J[e]}}))});var ee=n(93040);Object.keys(ee).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ee[e]}}))});var te=n(56121);Object.keys(te).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return te[e]}}))});var ne=n(65408);Object.keys(ne).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ne[e]}}))});var re=n(75990);Object.keys(re).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return re[e]}}))});var oe=n(60506);Object.keys(oe).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return oe[e]}}))});var ie=n(19640);Object.keys(ie).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ie[e]}}))});var ae=n(770);Object.keys(ae).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ae[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ae[e]}}))});var se=n(13309);Object.keys(se).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===se[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return se[e]}}))});var le=n(49621);Object.keys(le).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===le[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return le[e]}}))});var ce=n(66034);Object.keys(ce).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ce[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ce[e]}}))});var ue=n(81015);Object.keys(ue).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ue[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ue[e]}}))});var de=n(24760);Object.keys(de).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===de[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return de[e]}}))});var pe=n(29139);Object.keys(pe).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pe[e]}}))});var he=n(57236);Object.keys(he).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===he[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return he[e]}}))});var fe=n(79365);Object.keys(fe).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fe[e]}}))});var ge=n(16709);Object.keys(ge).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ge[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ge[e]}}))});var me=n(18840);Object.keys(me).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return me[e]}}))});var ve=n(53571);Object.keys(ve).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ve[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ve[e]}}))});var ye=n(54074);Object.keys(ye).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ye[e]}}))});var Ae=n(53767);Object.keys(Ae).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ae[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ae[e]}}))});var we=n(76338);Object.keys(we).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===we[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return we[e]}}))});var be=n(6752);Object.keys(be).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===be[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return be[e]}}))});var _e=n(74787);Object.keys(_e).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_e[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _e[e]}}))});var Ce=n(20955);Object.keys(Ce).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ce[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ce[e]}}))});var Ee=n(88303);Object.keys(Ee).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ee[e]}}))});var Se=n(70802);Object.keys(Se).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Se[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Se[e]}}))});var Oe=n(91302);Object.keys(Oe).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Oe[e]}}))});var xe=n(13186);Object.keys(xe).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xe[e]}}))});var De=n(82710);Object.keys(De).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===De[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return De[e]}}))});var Pe=n(60179);Object.keys(Pe).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pe[e]}}))});var Me=n(99114);Object.keys(Me).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Me[e]}}))});var Te=n(11591);Object.keys(Te).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Te[e]}}))});var Re=n(92443);Object.keys(Re).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Re[e]}}))});var Ie=n(2747);Object.keys(Ie).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ie[e]}}))});var Fe=n(46629);Object.keys(Fe).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Fe[e]}}))});var ke=n(964);Object.keys(ke).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ke[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ke[e]}}))});var Le=n(40666);Object.keys(Le).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Le[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Le[e]}}))});var Be=n(78128);Object.keys(Be).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Be[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Be[e]}}))});var Ne=n(87857);Object.keys(Ne).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ne[e]}}))});var je=n(88614);Object.keys(je).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===je[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return je[e]}}))});var Ue=n(15601);Object.keys(Ue).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ue[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ue[e]}}))});var Ve=n(82124);Object.keys(Ve).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ve[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ve[e]}}))});var He=n(83261);Object.keys(He).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===He[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return He[e]}}))});var Ge=n(48091);Object.keys(Ge).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ge[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ge[e]}}))});var We=n(39693);Object.keys(We).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===We[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return We[e]}}))});var ze=n(36270);Object.keys(ze).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ze[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ze[e]}}))});var $e=n(15409);Object.keys($e).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$e[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $e[e]}}))});var Ke=n(66915);Object.keys(Ke).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ke[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ke[e]}}))});var Qe=n(1438);Object.keys(Qe).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qe[e]}}))});var qe=n(16163);Object.keys(qe).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return qe[e]}}))});var Ye=n(34394);Object.keys(Ye).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ye[e]}}))});var Xe=n(69171);Object.keys(Xe).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Xe[e]}}))});var Ze=n(27235);Object.keys(Ze).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ze[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ze[e]}}))});var Je=n(28709);Object.keys(Je).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Je[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Je[e]}}))});var et=n(52976);Object.keys(et).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===et[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return et[e]}}))});var tt=n(69728);Object.keys(tt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===tt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return tt[e]}}))});var nt=n(69707);Object.keys(nt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===nt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return nt[e]}}))});var rt=n(60636);Object.keys(rt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rt[e]}}))});var ot=n(5087);Object.keys(ot).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ot[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ot[e]}}))});var it=n(14832);Object.keys(it).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===it[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return it[e]}}))});var at=n(48798);Object.keys(at).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===at[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return at[e]}}))});var st=n(23140);Object.keys(st).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===st[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return st[e]}}))});var lt=n(1483);Object.keys(lt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===lt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return lt[e]}}))});var ct=n(76915);Object.keys(ct).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ct[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ct[e]}}))});var ut=n(23735);Object.keys(ut).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ut[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ut[e]}}))});var dt=n(48199);Object.keys(dt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===dt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return dt[e]}}))});var pt=n(63771);Object.keys(pt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pt[e]}}))});var ht=n(42167);Object.keys(ht).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ht[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ht[e]}}))});var ft=n(97096);Object.keys(ft).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ft[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ft[e]}}))});var gt=n(65272);Object.keys(gt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gt[e]}}))});var mt=n(60082);Object.keys(mt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===mt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return mt[e]}}))});var vt=n(80256);Object.keys(vt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vt[e]}}))});var yt=n(87241);Object.keys(yt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return yt[e]}}))});var At=n(94832);Object.keys(At).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===At[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return At[e]}}))});var wt=n(19526);Object.keys(wt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===wt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return wt[e]}}))});var bt=n(43562);Object.keys(bt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===bt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return bt[e]}}))});var _t=n(24168);Object.keys(_t).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_t[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _t[e]}}))});var Ct=n(15826);Object.keys(Ct).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ct[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ct[e]}}))});var Et=n(15042);Object.keys(Et).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Et[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Et[e]}}))});var St=n(73575);Object.keys(St).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===St[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return St[e]}}))});var Ot=n(41959);Object.keys(Ot).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ot[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ot[e]}}))});var xt=n(15816);Object.keys(xt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xt[e]}}))});var Dt=n(82866);Object.keys(Dt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Dt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Dt[e]}}))});var Pt=n(31551);Object.keys(Pt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pt[e]}}))});var Mt=n(43764);Object.keys(Mt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Mt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Mt[e]}}))});var Tt=n(4104);Object.keys(Tt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Tt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Tt[e]}}))});var Rt=n(93174);Object.keys(Rt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Rt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Rt[e]}}))});var It=n(3540);Object.keys(It).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===It[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return It[e]}}))});var Ft=n(46780);Object.keys(Ft).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ft[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ft[e]}}))});var kt=n(67957);Object.keys(kt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===kt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return kt[e]}}))});var Lt=n(49058);Object.keys(Lt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Lt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Lt[e]}}))});var Bt=n(83391);Object.keys(Bt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Bt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Bt[e]}}))});var Nt=n(16631);Object.keys(Nt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Nt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Nt[e]}}))});var jt=n(96069);Object.keys(jt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===jt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return jt[e]}}))});var Ut=n(18808);Object.keys(Ut).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ut[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ut[e]}}))});var Vt=n(1594);Object.keys(Vt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Vt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Vt[e]}}))});var Ht=n(68987);Object.keys(Ht).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ht[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ht[e]}}))});var Gt=n(32022);Object.keys(Gt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Gt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Gt[e]}}))});var Wt=n(49486);Object.keys(Wt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Wt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Wt[e]}}))});var zt=n(97153);Object.keys(zt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===zt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return zt[e]}}))});var $t=n(35384);Object.keys($t).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$t[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $t[e]}}))});var Kt=n(4233);Object.keys(Kt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Kt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Kt[e]}}))});var Qt=n(95955);Object.keys(Qt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qt[e]}}))});var qt=n(31253);Object.keys(qt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return qt[e]}}))});var Yt=n(46481);Object.keys(Yt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Yt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Yt[e]}}))});var Xt=n(98580);Object.keys(Xt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Xt[e]}}))});var Zt=n(61853);Object.keys(Zt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Zt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Zt[e]}}))});var Jt=n(17264);Object.keys(Jt).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Jt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Jt[e]}}))});var en=n(41254);Object.keys(en).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===en[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return en[e]}}))});var tn=n(85256);Object.keys(tn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===tn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return tn[e]}}))});var nn=n(99286);Object.keys(nn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===nn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return nn[e]}}))});var rn=n(73418);Object.keys(rn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rn[e]}}))});var on=n(47310);Object.keys(on).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===on[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return on[e]}}))});var an=n(64575);Object.keys(an).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===an[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return an[e]}}))});var sn=n(95188);Object.keys(sn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===sn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return sn[e]}}))});var ln=n(12721);Object.keys(ln).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ln[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ln[e]}}))});var cn=n(65323);Object.keys(cn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===cn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return cn[e]}}))});var un=n(76974);Object.keys(un).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===un[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return un[e]}}))});var dn=n(20559);Object.keys(dn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===dn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return dn[e]}}))});var pn=n(52890);Object.keys(pn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pn[e]}}))});var hn=n(41909);Object.keys(hn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===hn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return hn[e]}}))});var fn=n(30330);Object.keys(fn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fn[e]}}))});var gn=n(98241);Object.keys(gn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gn[e]}}))});var mn=n(56923);Object.keys(mn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===mn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return mn[e]}}))});var vn=n(92018);Object.keys(vn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vn[e]}}))});var yn=n(92497);Object.keys(yn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return yn[e]}}))});var An=n(25089);Object.keys(An).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===An[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return An[e]}}))});var wn=n(69756);Object.keys(wn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===wn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return wn[e]}}))});var bn=n(58623);Object.keys(bn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===bn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return bn[e]}}))});var _n=n(27643);Object.keys(_n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _n[e]}}))});var Cn=n(63318);Object.keys(Cn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Cn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Cn[e]}}))});var En=n(56561);Object.keys(En).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===En[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return En[e]}}))});var Sn=n(45150);Object.keys(Sn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Sn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Sn[e]}}))});var On=n(9733);Object.keys(On).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===On[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return On[e]}}))});var xn=n(79951);Object.keys(xn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xn[e]}}))});var Dn=n(83526);Object.keys(Dn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Dn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Dn[e]}}))});var Pn=n(99909);Object.keys(Pn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pn[e]}}))});var Mn=n(18075);Object.keys(Mn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Mn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Mn[e]}}))});var Tn=n(9588);Object.keys(Tn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Tn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Tn[e]}}))});var Rn=n(60002);Object.keys(Rn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Rn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Rn[e]}}))});var In=n(88788);Object.keys(In).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===In[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return In[e]}}))});var Fn=n(53639);Object.keys(Fn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Fn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Fn[e]}}))});var kn=n(18012);Object.keys(kn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===kn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return kn[e]}}))});var Ln=n(57221);Object.keys(Ln).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ln[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ln[e]}}))});var Bn=n(95170);Object.keys(Bn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Bn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Bn[e]}}))});var Nn=n(76270);Object.keys(Nn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Nn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Nn[e]}}))});var jn=n(7002);Object.keys(jn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===jn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return jn[e]}}))});var Un=n(9998);Object.keys(Un).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Un[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Un[e]}}))});var Vn=n(95643);Object.keys(Vn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Vn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Vn[e]}}))});var Hn=n(84631);Object.keys(Hn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Hn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Hn[e]}}))});var Gn=n(67455);Object.keys(Gn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Gn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Gn[e]}}))});var Wn=n(17361);Object.keys(Wn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Wn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Wn[e]}}))});var zn=n(23432);Object.keys(zn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===zn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return zn[e]}}))});var $n=n(38860);Object.keys($n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $n[e]}}))});var Kn=n(16885);Object.keys(Kn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Kn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Kn[e]}}))});var Qn=n(386);Object.keys(Qn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qn[e]}}))});var qn=n(32864);Object.keys(qn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return qn[e]}}))});var Yn=n(76841);Object.keys(Yn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Yn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Yn[e]}}))});var Xn=n(78138);Object.keys(Xn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Xn[e]}}))});var Zn=n(64199);Object.keys(Zn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Zn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Zn[e]}}))});var Jn=n(61727);Object.keys(Jn).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Jn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Jn[e]}}))});var er=n(33633);Object.keys(er).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===er[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return er[e]}}))});var tr=n(1787);Object.keys(tr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===tr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return tr[e]}}))});var nr=n(69525);Object.keys(nr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===nr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return nr[e]}}))});var rr=n(64050);Object.keys(rr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rr[e]}}))});var or=n(23535);Object.keys(or).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===or[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return or[e]}}))});var ir=n(4395);Object.keys(ir).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ir[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ir[e]}}))});var ar=n(81725);Object.keys(ar).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ar[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ar[e]}}))});var sr=n(54463);Object.keys(sr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===sr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return sr[e]}}))});var lr=n(61175);Object.keys(lr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===lr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return lr[e]}}))});var cr=n(47454);Object.keys(cr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===cr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return cr[e]}}))});var ur=n(57184);Object.keys(ur).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ur[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ur[e]}}))});var dr=n(58231);Object.keys(dr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===dr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return dr[e]}}))});var pr=n(16226);Object.keys(pr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pr[e]}}))});var hr=n(12326);Object.keys(hr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===hr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return hr[e]}}))});var fr=n(72791);Object.keys(fr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fr[e]}}))});var gr=n(77348);Object.keys(gr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gr[e]}}))});var mr=n(21321);Object.keys(mr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===mr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return mr[e]}}))});var vr=n(97620);Object.keys(vr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vr[e]}}))});var yr=n(24857);Object.keys(yr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return yr[e]}}))});var Ar=n(90625);Object.keys(Ar).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ar[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ar[e]}}))});var wr=n(9146);Object.keys(wr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===wr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return wr[e]}}))});var br=n(2835);Object.keys(br).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===br[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return br[e]}}))});var _r=n(28943);Object.keys(_r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _r[e]}}))});var Cr=n(47829);Object.keys(Cr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Cr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Cr[e]}}))});var Er=n(15971);Object.keys(Er).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Er[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Er[e]}}))});var Sr=n(63115);Object.keys(Sr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Sr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Sr[e]}}))});var Or=n(39704);Object.keys(Or).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Or[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Or[e]}}))});var xr=n(91941);Object.keys(xr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xr[e]}}))});var Dr=n(64433);Object.keys(Dr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Dr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Dr[e]}}))});var Pr=n(80553);Object.keys(Pr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pr[e]}}))});var Mr=n(77138);Object.keys(Mr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Mr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Mr[e]}}))});var Tr=n(10398);Object.keys(Tr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Tr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Tr[e]}}))});var Rr=n(12456);Object.keys(Rr).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Rr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Rr[e]}}))})},28709(e,t,n){"use strict";t.interval=function(e,t,n){const o=(0,r.toDate)(e);if(isNaN(+o))throw new TypeError("Start date is invalid");const i=(0,r.toDate)(t);if(isNaN(+i))throw new TypeError("End date is invalid");if(n?.assertPositive&&+o>+i)throw new TypeError("End date must be after start date");return{start:o,end:i}};var r=n(91941)},52976(e,t,n){"use strict";t.intervalToDuration=function(e){const t=(0,u.toDate)(e.start),n=(0,u.toDate)(e.end),d={},p=(0,c.differenceInYears)(n,t);p&&(d.years=p);const h=(0,r.add)(t,{years:d.years}),f=(0,s.differenceInMonths)(n,h);f&&(d.months=f);const g=(0,r.add)(h,{months:d.months}),m=(0,o.differenceInDays)(n,g);m&&(d.days=m);const v=(0,r.add)(g,{days:d.days}),y=(0,i.differenceInHours)(n,v);y&&(d.hours=y);const A=(0,r.add)(v,{hours:d.hours}),w=(0,a.differenceInMinutes)(n,A);w&&(d.minutes=w);const b=(0,r.add)(A,{minutes:d.minutes}),_=(0,l.differenceInSeconds)(n,b);return _&&(d.seconds=_),d};var r=n(52761),o=n(58611),i=n(77957),a=n(46855),s=n(60067),l=n(53583),c=n(69212),u=n(91941)},69728(e,t,n){"use strict";t.intlFormat=function(e,t,n){let o;var i;return void 0===(i=t)||"locale"in i?n=t:o=t,new Intl.DateTimeFormat(n?.locale,o).format((0,r.toDate)(e))};var r=n(91941)},69707(e,t,n){"use strict";t.intlFormatDistance=function(e,t,n){let h,f=0;const g=(0,p.toDate)(e),m=(0,p.toDate)(t);if(n?.unit)h=n?.unit,"second"===h?f=(0,d.differenceInSeconds)(g,m):"minute"===h?f=(0,u.differenceInMinutes)(g,m):"hour"===h?f=(0,c.differenceInHours)(g,m):"day"===h?f=(0,o.differenceInCalendarDays)(g,m):"week"===h?f=(0,s.differenceInCalendarWeeks)(g,m):"month"===h?f=(0,i.differenceInCalendarMonths)(g,m):"quarter"===h?f=(0,a.differenceInCalendarQuarters)(g,m):"year"===h&&(f=(0,l.differenceInCalendarYears)(g,m));else{const e=(0,d.differenceInSeconds)(g,m);Math.abs(e)<r.secondsInMinute?(f=(0,d.differenceInSeconds)(g,m),h="second"):Math.abs(e)<r.secondsInHour?(f=(0,u.differenceInMinutes)(g,m),h="minute"):Math.abs(e)<r.secondsInDay&&Math.abs((0,o.differenceInCalendarDays)(g,m))<1?(f=(0,c.differenceInHours)(g,m),h="hour"):Math.abs(e)<r.secondsInWeek&&(f=(0,o.differenceInCalendarDays)(g,m))&&Math.abs(f)<7?h="day":Math.abs(e)<r.secondsInMonth?(f=(0,s.differenceInCalendarWeeks)(g,m),h="week"):Math.abs(e)<r.secondsInQuarter?(f=(0,i.differenceInCalendarMonths)(g,m),h="month"):Math.abs(e)<r.secondsInYear&&(0,a.differenceInCalendarQuarters)(g,m)<4?(f=(0,a.differenceInCalendarQuarters)(g,m),h="quarter"):(f=(0,l.differenceInCalendarYears)(g,m),h="year")}return new Intl.RelativeTimeFormat(n?.locale,{localeMatcher:n?.localeMatcher,numeric:n?.numeric||"auto",style:n?.style}).format(f,h)};var r=n(74963),o=n(60657),i=n(77945),a=n(94775),s=n(91809),l=n(81778),c=n(77957),u=n(46855),d=n(53583),p=n(91941)},60636(e,t,n){"use strict";t.isAfter=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return n.getTime()>o.getTime()};var r=n(91941)},5087(e,t,n){"use strict";t.isBefore=function(e,t){return+(0,r.toDate)(e)<+(0,r.toDate)(t)};var r=n(91941)},14832(e,t){"use strict";t.isDate=function(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}},48798(e,t,n){"use strict";t.isEqual=function(e,t){return+(0,r.toDate)(e)===+(0,r.toDate)(t)};var r=n(91941)},23140(e,t){"use strict";t.isExists=function(e,t,n){const r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}},1483(e,t,n){"use strict";t.isFirstDayOfMonth=function(e){return 1===(0,r.toDate)(e).getDate()};var r=n(91941)},76915(e,t,n){"use strict";t.isFriday=function(e){return 5===(0,r.toDate)(e).getDay()};var r=n(91941)},23735(e,t,n){"use strict";t.isFuture=function(e){return+(0,r.toDate)(e)>Date.now()};var r=n(91941)},48199(e,t,n){"use strict";t.isLastDayOfMonth=function(e){const t=(0,i.toDate)(e);return+(0,r.endOfDay)(t)===+(0,o.endOfMonth)(t)};var r=n(34594),o=n(60506),i=n(91941)},63771(e,t,n){"use strict";t.isLeapYear=function(e){const t=(0,r.toDate)(e).getFullYear();return t%400==0||t%4==0&&t%100!=0};var r=n(91941)},42167(e,t,n){"use strict";t.isMatch=function(e,t,n){return(0,r.isValid)((0,o.parse)(e,t,new Date,n))};var r=n(18808),o=n(25089)},97096(e,t,n){"use strict";t.isMonday=function(e){return 1===(0,r.toDate)(e).getDay()};var r=n(91941)},65272(e,t,n){"use strict";t.isPast=function(e){return+(0,r.toDate)(e)<Date.now()};var r=n(91941)},60082(e,t,n){"use strict";t.isSameDay=function(e,t){return+(0,r.startOfDay)(e)===+(0,r.startOfDay)(t)};var r=n(33633)},80256(e,t,n){"use strict";t.isSameHour=function(e,t){return+(0,r.startOfHour)(e)===+(0,r.startOfHour)(t)};var r=n(69525)},87241(e,t,n){"use strict";t.isSameISOWeek=function(e,t){return(0,r.isSameWeek)(e,t,{weekStartsOn:1})};var r=n(15042)},94832(e,t,n){"use strict";t.isSameISOWeekYear=function(e,t){return+(0,r.startOfISOWeekYear)(e)===+(0,r.startOfISOWeekYear)(t)};var r=n(23535)},19526(e,t,n){"use strict";t.isSameMinute=function(e,t){return+(0,r.startOfMinute)(e)===+(0,r.startOfMinute)(t)};var r=n(4395)},43562(e,t,n){"use strict";t.isSameMonth=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()};var r=n(91941)},24168(e,t,n){"use strict";t.isSameQuarter=function(e,t){return+(0,r.startOfQuarter)(e)===+(0,r.startOfQuarter)(t)};var r=n(54463)},15826(e,t,n){"use strict";t.isSameSecond=function(e,t){return+(0,r.startOfSecond)(e)===+(0,r.startOfSecond)(t)};var r=n(61175)},15042(e,t,n){"use strict";t.isSameWeek=function(e,t,n){return+(0,r.startOfWeek)(e,n)===+(0,r.startOfWeek)(t,n)};var r=n(58231)},73575(e,t,n){"use strict";t.isSameYear=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return n.getFullYear()===o.getFullYear()};var r=n(91941)},41959(e,t,n){"use strict";t.isSaturday=function(e){return 6===(0,r.toDate)(e).getDay()};var r=n(91941)},15816(e,t,n){"use strict";t.isSunday=function(e){return 0===(0,r.toDate)(e).getDay()};var r=n(91941)},82866(e,t,n){"use strict";t.isThisHour=function(e){return(0,o.isSameHour)(e,(0,r.constructNow)(e))};var r=n(49611),o=n(80256)},31551(e,t,n){"use strict";t.isThisISOWeek=function(e){return(0,o.isSameISOWeek)(e,(0,r.constructNow)(e))};var r=n(49611),o=n(87241)},43764(e,t,n){"use strict";t.isThisMinute=function(e){return(0,o.isSameMinute)(e,(0,r.constructNow)(e))};var r=n(49611),o=n(19526)},4104(e,t,n){"use strict";t.isThisMonth=function(e){return(0,o.isSameMonth)(e,(0,r.constructNow)(e))};var r=n(49611),o=n(43562)},93174(e,t,n){"use strict";t.isThisQuarter=function(e){return(0,o.isSameQuarter)(e,(0,r.constructNow)(e))};var r=n(49611),o=n(24168)},3540(e,t,n){"use strict";t.isThisSecond=function(e){return(0,o.isSameSecond)(e,(0,r.constructNow)(e))};var r=n(49611),o=n(15826)},46780(e,t,n){"use strict";t.isThisWeek=function(e,t){return(0,o.isSameWeek)(e,(0,r.constructNow)(e),t)};var r=n(49611),o=n(15042)},67957(e,t,n){"use strict";t.isThisYear=function(e){return(0,o.isSameYear)(e,(0,r.constructNow)(e))};var r=n(49611),o=n(73575)},49058(e,t,n){"use strict";t.isThursday=function(e){return 4===(0,r.toDate)(e).getDay()};var r=n(91941)},83391(e,t,n){"use strict";t.isToday=function(e){return(0,o.isSameDay)(e,(0,r.constructNow)(e))};var r=n(49611),o=n(60082)},16631(e,t,n){"use strict";t.isTomorrow=function(e){return(0,i.isSameDay)(e,(0,r.addDays)((0,o.constructNow)(e),1))};var r=n(95382),o=n(49611),i=n(60082)},96069(e,t,n){"use strict";t.isTuesday=function(e){return 2===(0,r.toDate)(e).getDay()};var r=n(91941)},18808(e,t,n){"use strict";t.isValid=function(e){if(!(0,r.isDate)(e)&&"number"!=typeof e)return!1;const t=(0,o.toDate)(e);return!isNaN(Number(t))};var r=n(14832),o=n(91941)},1594(e,t,n){"use strict";t.isWednesday=function(e){return 3===(0,r.toDate)(e).getDay()};var r=n(91941)},68987(e,t,n){"use strict";t.isWeekend=function(e){const t=(0,r.toDate)(e).getDay();return 0===t||6===t};var r=n(91941)},32022(e,t,n){"use strict";t.isWithinInterval=function(e,t){const n=+(0,r.toDate)(e),[o,i]=[+(0,r.toDate)(t.start),+(0,r.toDate)(t.end)].sort((e,t)=>e-t);return n>=o&&n<=i};var r=n(91941)},49486(e,t,n){"use strict";t.isYesterday=function(e){return(0,o.isSameDay)(e,(0,i.subDays)((0,r.constructNow)(e),1))};var r=n(49611),o=n(60082),i=n(97620)},97153(e,t,n){"use strict";t.lastDayOfDecade=function(e){const t=(0,r.toDate)(e),n=t.getFullYear(),o=9+10*Math.floor(n/10);return t.setFullYear(o+1,0,0),t.setHours(0,0,0,0),t};var r=n(91941)},35384(e,t,n){"use strict";t.lastDayOfISOWeek=function(e){return(0,r.lastDayOfWeek)(e,{weekStartsOn:1})};var r=n(46481)},4233(e,t,n){"use strict";t.lastDayOfISOWeekYear=function(e){const t=(0,r.getISOWeekYear)(e),n=(0,i.constructFrom)(e,0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);const a=(0,o.startOfISOWeek)(n);return a.setDate(a.getDate()-1),a};var r=n(964),o=n(64050),i=n(15155)},95955(e,t,n){"use strict";t.lastDayOfMonth=function(e){const t=(0,r.toDate)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t};var r=n(91941)},31253(e,t,n){"use strict";t.lastDayOfQuarter=function(e){const t=(0,r.toDate)(e),n=t.getMonth(),o=n-n%3+3;return t.setMonth(o,0),t.setHours(0,0,0,0),t};var r=n(91941)},46481(e,t,n){"use strict";t.lastDayOfWeek=function(e,t){const n=(0,o.getDefaultOptions)(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,r.toDate)(e),s=a.getDay(),l=6+(s<i?-7:0)-(s-i);return a.setHours(0,0,0,0),a.setDate(a.getDate()+l),a};var r=n(91941),o=n(16234)},98580(e,t,n){"use strict";t.lastDayOfYear=function(e){const t=(0,r.toDate)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(0,0,0,0),t};var r=n(91941)},61853(e,t,n){"use strict";t.lightFormat=function(e,t){const n=(0,o.toDate)(e);if(!(0,r.isValid)(n))throw new RangeError("Invalid time value");const u=t.match(a);return u?u.map(e=>{if("''"===e)return"'";const t=e[0];if("'"===t)return function(e){const t=e.match(s);return t?t[1].replace(l,"'"):e}(e);const r=i.lightFormatters[t];if(r)return r(n,e);if(t.match(c))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join(""):""},Object.defineProperty(t,"lightFormatters",{enumerable:!0,get:function(){return i.lightFormatters}});var r=n(18808),o=n(91941),i=n(21168);const a=/(\w)\1*|''|'(''|[^'])+('|$)|./g,s=/^'([^]*?)'?$/,l=/''/g,c=/[a-zA-Z]/},1391(e,t){"use strict";t.buildFormatLongFn=function(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}},77113(e,t){"use strict";t.buildLocalizeFn=function(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}},90149(e,t){"use strict";t.buildMatchFn=function(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(s,e=>e.test(a)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(s,e=>e.test(a));let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(a.length)}}}},72295(e,t){"use strict";t.buildMatchPatternFn=function(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];return a=n.valueCallback?n.valueCallback(a):a,{value:a,rest:t.slice(o.length)}}}},64131(e,t,n){"use strict";t.enUS=void 0;var r=n(9537),o=n(50052),i=n(4218),a=n(31922),s=n(31352);t.enUS={code:"en-US",formatDistance:r.formatDistance,formatLong:o.formatLong,formatRelative:i.formatRelative,localize:a.localize,match:s.match,options:{weekStartsOn:0,firstWeekContainsDate:1}}},9537(e,t){"use strict";t.formatDistance=void 0;const n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};t.formatDistance=(e,t,r)=>{let o;const i=n[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o}},50052(e,t,n){"use strict";t.formatLong=void 0;var r=n(1391);t.formatLong={date:(0,r.buildFormatLongFn)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,r.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,r.buildFormatLongFn)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}},4218(e,t){"use strict";t.formatRelative=void 0;const n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};t.formatRelative=(e,t,r,o)=>n[e]},31922(e,t,n){"use strict";t.localize=void 0;var r=n(77113);t.localize={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.buildLocalizeFn)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.buildLocalizeFn)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,r.buildLocalizeFn)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,r.buildLocalizeFn)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,r.buildLocalizeFn)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})}},31352(e,t,n){"use strict";t.match=void 0;var r=n(90149),o=n(72295);t.match={ordinalNumber:(0,o.buildMatchPatternFn)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,r.buildMatchFn)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,r.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,r.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.buildMatchFn)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.buildMatchFn)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}},17264(e,t,n){"use strict";t.max=function(e){let t;return e.forEach(function(e){const n=(0,r.toDate)(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)}),t||new Date(NaN)};var r=n(91941)},41254(e,t,n){"use strict";t.milliseconds=function({years:e,months:t,weeks:n,days:o,hours:i,minutes:a,seconds:s}){let l=0;e&&(l+=e*r.daysInYear),t&&(l+=t*(r.daysInYear/12)),n&&(l+=7*n),o&&(l+=o);let c=24*l*60*60;return i&&(c+=60*i*60),a&&(c+=60*a),s&&(c+=s),Math.trunc(1e3*c)};var r=n(74963)},85256(e,t,n){"use strict";t.millisecondsToHours=function(e){const t=e/r.millisecondsInHour;return Math.trunc(t)};var r=n(74963)},99286(e,t,n){"use strict";t.millisecondsToMinutes=function(e){const t=e/r.millisecondsInMinute;return Math.trunc(t)};var r=n(74963)},73418(e,t,n){"use strict";t.millisecondsToSeconds=function(e){const t=e/r.millisecondsInSecond;return Math.trunc(t)};var r=n(74963)},47310(e,t,n){"use strict";t.min=function(e){let t;return e.forEach(e=>{const n=(0,r.toDate)(e);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)};var r=n(91941)},64575(e,t,n){"use strict";t.minutesToHours=function(e){const t=e/r.minutesInHour;return Math.trunc(t)};var r=n(74963)},95188(e,t,n){"use strict";t.minutesToMilliseconds=function(e){return Math.trunc(e*r.millisecondsInMinute)};var r=n(74963)},12721(e,t,n){"use strict";t.minutesToSeconds=function(e){return Math.trunc(e*r.secondsInMinute)};var r=n(74963)},65323(e,t,n){"use strict";t.monthsToQuarters=function(e){const t=e/r.monthsInQuarter;return Math.trunc(t)};var r=n(74963)},76974(e,t,n){"use strict";t.monthsToYears=function(e){const t=e/r.monthsInYear;return Math.trunc(t)};var r=n(74963)},20559(e,t,n){"use strict";t.nextDay=function(e,t){let n=t-(0,o.getDay)(e);return n<=0&&(n+=7),(0,r.addDays)(e,n)};var r=n(95382),o=n(91302)},52890(e,t,n){"use strict";t.nextFriday=function(e){return(0,r.nextDay)(e,5)};var r=n(20559)},41909(e,t,n){"use strict";t.nextMonday=function(e){return(0,r.nextDay)(e,1)};var r=n(20559)},30330(e,t,n){"use strict";t.nextSaturday=function(e){return(0,r.nextDay)(e,6)};var r=n(20559)},98241(e,t,n){"use strict";t.nextSunday=function(e){return(0,r.nextDay)(e,0)};var r=n(20559)},56923(e,t,n){"use strict";t.nextThursday=function(e){return(0,r.nextDay)(e,4)};var r=n(20559)},92018(e,t,n){"use strict";t.nextTuesday=function(e){return(0,r.nextDay)(e,2)};var r=n(20559)},92497(e,t,n){"use strict";t.nextWednesday=function(e){return(0,r.nextDay)(e,3)};var r=n(20559)},25089(e,t,n){"use strict";Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return s.longFormatters}}),t.parse=function(e,t,n,h){const f=(0,o.getDefaultOptions)(),y=h?.locale??f.locale??i.defaultLocale,A=h?.firstWeekContainsDate??h?.locale?.options?.firstWeekContainsDate??f.firstWeekContainsDate??f.locale?.options?.firstWeekContainsDate??1,w=h?.weekStartsOn??h?.locale?.options?.weekStartsOn??f.weekStartsOn??f.locale?.options?.weekStartsOn??0;if(""===t)return""===e?(0,a.toDate)(n):(0,r.constructFrom)(n,NaN);const b={firstWeekContainsDate:A,weekStartsOn:w,locale:y},_=[new u.DateToSystemTimezoneSetter],C=t.match(p).map(e=>{const t=e[0];return t in s.longFormatters?(0,s.longFormatters[t])(e,y.formatLong):e}).join("").match(d),E=[];for(let o of C){!h?.useAdditionalWeekYearTokens&&(0,l.isProtectedWeekYearToken)(o)&&(0,l.warnOrThrowProtectedError)(o,t,e),!h?.useAdditionalDayOfYearTokens&&(0,l.isProtectedDayOfYearToken)(o)&&(0,l.warnOrThrowProtectedError)(o,t,e);const i=o[0],a=c.parsers[i];if(a){const{incompatibleTokens:t}=a;if(Array.isArray(t)){const e=E.find(e=>t.includes(e.token)||e.token===i);if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${o}\` at the same time`)}else if("*"===a.incompatibleTokens&&E.length>0)throw new RangeError(`The format string mustn't contain \`${o}\` and any other token at the same time`);E.push({token:i,fullToken:o});const s=a.run(e,o,y.match,b);if(!s)return(0,r.constructFrom)(n,NaN);_.push(s.setter),e=s.rest}else{if(i.match(m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===o?o="'":"'"===i&&(o=v(o)),0!==e.indexOf(o))return(0,r.constructFrom)(n,NaN);e=e.slice(o.length)}}if(e.length>0&&g.test(e))return(0,r.constructFrom)(n,NaN);const S=_.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>_.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]);let O=(0,a.toDate)(n);if(isNaN(O.getTime()))return(0,r.constructFrom)(n,NaN);const x={};for(const e of S){if(!e.validate(O,b))return(0,r.constructFrom)(n,NaN);const t=e.set(O,x,b);Array.isArray(t)?(O=t[0],Object.assign(x,t[1])):O=t}return(0,r.constructFrom)(n,O)},Object.defineProperty(t,"parsers",{enumerable:!0,get:function(){return c.parsers}});var r=n(15155),o=n(11591),i=n(82008),a=n(91941),s=n(85890),l=n(14563),c=n(90519),u=n(97300);const d=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,h=/^'([^]*?)'?$/,f=/''/g,g=/\S/,m=/[a-zA-Z]/;function v(e){return e.match(h)[1].replace(f,"'")}},69064(e,t,n){"use strict";t.Parser=void 0;var r=n(97300);t.Parser=class{run(e,t,n,o){const i=this.parse(e,t,n,o);return i?{setter:new r.ValueSetter(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}}},97300(e,t,n){"use strict";t.ValueSetter=t.Setter=t.DateToSystemTimezoneSetter=void 0;var r=n(64433),o=n(15155);class i{subPriority=0;validate(e,t){return!0}}t.Setter=i,t.ValueSetter=class extends i{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},t.DateToSystemTimezoneSetter=class extends i{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:(0,o.constructFrom)(e,(0,r.transpose)(e,Date))}}},3018(e,t){"use strict";t.timezonePatterns=t.numericPatterns=void 0,t.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},t.timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}},90519(e,t,n){"use strict";t.parsers=void 0;var r=n(5429),o=n(11376),i=n(22373),a=n(30391),s=n(49737),l=n(69215),c=n(33418),u=n(56797),d=n(39740),p=n(14584),h=n(76134),f=n(86417),g=n(85953),m=n(53517),v=n(29966),y=n(64973),A=n(79528),w=n(17464),b=n(67588),_=n(42768),C=n(85292),E=n(3867),S=n(46710),O=n(44281),x=n(7905),D=n(51037),P=n(70718),M=n(78081),T=n(96709),R=n(53900),I=n(7205);t.parsers={G:new r.EraParser,y:new o.YearParser,Y:new i.LocalWeekYearParser,R:new a.ISOWeekYearParser,u:new s.ExtendedYearParser,Q:new l.QuarterParser,q:new c.StandAloneQuarterParser,M:new u.MonthParser,L:new d.StandAloneMonthParser,w:new p.LocalWeekParser,I:new h.ISOWeekParser,d:new f.DateParser,D:new g.DayOfYearParser,E:new m.DayParser,e:new v.LocalDayParser,c:new y.StandAloneLocalDayParser,i:new A.ISODayParser,a:new w.AMPMParser,b:new b.AMPMMidnightParser,B:new _.DayPeriodParser,h:new C.Hour1to12Parser,H:new E.Hour0to23Parser,K:new S.Hour0To11Parser,k:new O.Hour1To24Parser,m:new x.MinuteParser,s:new D.SecondParser,S:new P.FractionOfSecondParser,X:new M.ISOTimezoneWithZParser,x:new T.ISOTimezoneParser,t:new R.TimestampSecondsParser,T:new I.TimestampMillisecondsParser}},67588(e,t,n){"use strict";t.AMPMMidnightParser=void 0;var r=n(69064),o=n(34994);class i extends r.Parser{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,o.dayPeriodEnumToHours)(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}t.AMPMMidnightParser=i},17464(e,t,n){"use strict";t.AMPMParser=void 0;var r=n(69064),o=n(34994);class i extends r.Parser{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,o.dayPeriodEnumToHours)(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}t.AMPMParser=i},86417(e,t,n){"use strict";t.DateParser=void 0;var r=n(3018),o=n(69064),i=n(34994);const a=[31,28,31,30,31,30,31,31,30,31,30,31],s=[31,29,31,30,31,30,31,31,30,31,30,31];class l extends o.Parser{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return(0,i.parseNumericPattern)(r.numericPatterns.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){const n=e.getFullYear(),r=(0,i.isLeapYearIndex)(n),o=e.getMonth();return r?t>=1&&t<=s[o]:t>=1&&t<=a[o]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}t.DateParser=l},85953(e,t,n){"use strict";t.DayOfYearParser=void 0;var r=n(3018),o=n(69064),i=n(34994);class a extends o.Parser{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return(0,i.parseNumericPattern)(r.numericPatterns.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){const n=e.getFullYear();return(0,i.isLeapYearIndex)(n)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}t.DayOfYearParser=a},53517(e,t,n){"use strict";t.DayParser=void 0;var r=n(7002),o=n(69064);class i extends o.Parser{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,o){return(e=(0,r.setDay)(e,n,o)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}t.DayParser=i},42768(e,t,n){"use strict";t.DayPeriodParser=void 0;var r=n(69064),o=n(34994);class i extends r.Parser{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,o.dayPeriodEnumToHours)(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]}t.DayPeriodParser=i},5429(e,t,n){"use strict";t.EraParser=void 0;var r=n(69064);class o extends r.Parser{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}t.EraParser=o},49737(e,t,n){"use strict";t.ExtendedYearParser=void 0;var r=n(69064),o=n(34994);class i extends r.Parser{priority=130;parse(e,t){return"u"===t?(0,o.parseNDigitsSigned)(4,e):(0,o.parseNDigitsSigned)(t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}t.ExtendedYearParser=i},70718(e,t,n){"use strict";t.FractionOfSecondParser=void 0;var r=n(69064),o=n(34994);class i extends r.Parser{priority=30;parse(e,t){return(0,o.mapValue)((0,o.parseNDigits)(t.length,e),e=>Math.trunc(e*Math.pow(10,3-t.length)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]}t.FractionOfSecondParser=i},46710(e,t,n){"use strict";t.Hour0To11Parser=void 0;var r=n(3018),o=n(69064),i=n(34994);class a extends o.Parser{priority=70;parse(e,t,n){switch(t){case"K":return(0,i.parseNumericPattern)(r.numericPatterns.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}t.Hour0To11Parser=a},3867(e,t,n){"use strict";t.Hour0to23Parser=void 0;var r=n(3018),o=n(69064),i=n(34994);class a extends o.Parser{priority=70;parse(e,t,n){switch(t){case"H":return(0,i.parseNumericPattern)(r.numericPatterns.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}t.Hour0to23Parser=a},44281(e,t,n){"use strict";t.Hour1To24Parser=void 0;var r=n(3018),o=n(69064),i=n(34994);class a extends o.Parser{priority=70;parse(e,t,n){switch(t){case"k":return(0,i.parseNumericPattern)(r.numericPatterns.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}t.Hour1To24Parser=a},85292(e,t,n){"use strict";t.Hour1to12Parser=void 0;var r=n(3018),o=n(69064),i=n(34994);class a extends o.Parser{priority=70;parse(e,t,n){switch(t){case"h":return(0,i.parseNumericPattern)(r.numericPatterns.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}t.Hour1to12Parser=a},79528(e,t,n){"use strict";t.ISODayParser=void 0;var r=n(67455),o=n(69064),i=n(34994);class a extends o.Parser{priority=90;parse(e,t,n){const r=e=>0===e?7:e;switch(t){case"i":case"ii":return(0,i.parseNDigits)(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return(0,i.mapValue)(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return(0,i.mapValue)(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return(0,i.mapValue)(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return(0,i.mapValue)(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=(0,r.setISODay)(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}t.ISODayParser=a},96709(e,t,n){"use strict";t.ISOTimezoneParser=void 0;var r=n(15155),o=n(37026),i=n(3018),a=n(69064),s=n(34994);class l extends a.Parser{priority=10;parse(e,t){switch(t){case"x":return(0,s.parseTimezonePattern)(i.timezonePatterns.basicOptionalMinutes,e);case"xx":return(0,s.parseTimezonePattern)(i.timezonePatterns.basic,e);case"xxxx":return(0,s.parseTimezonePattern)(i.timezonePatterns.basicOptionalSeconds,e);case"xxxxx":return(0,s.parseTimezonePattern)(i.timezonePatterns.extendedOptionalSeconds,e);default:return(0,s.parseTimezonePattern)(i.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,r.constructFrom)(e,e.getTime()-(0,o.getTimezoneOffsetInMilliseconds)(e)-n)}incompatibleTokens=["t","T","X"]}t.ISOTimezoneParser=l},78081(e,t,n){"use strict";t.ISOTimezoneWithZParser=void 0;var r=n(15155),o=n(37026),i=n(3018),a=n(69064),s=n(34994);class l extends a.Parser{priority=10;parse(e,t){switch(t){case"X":return(0,s.parseTimezonePattern)(i.timezonePatterns.basicOptionalMinutes,e);case"XX":return(0,s.parseTimezonePattern)(i.timezonePatterns.basic,e);case"XXXX":return(0,s.parseTimezonePattern)(i.timezonePatterns.basicOptionalSeconds,e);case"XXXXX":return(0,s.parseTimezonePattern)(i.timezonePatterns.extendedOptionalSeconds,e);default:return(0,s.parseTimezonePattern)(i.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,r.constructFrom)(e,e.getTime()-(0,o.getTimezoneOffsetInMilliseconds)(e)-n)}incompatibleTokens=["t","T","x"]}t.ISOTimezoneWithZParser=l},76134(e,t,n){"use strict";t.ISOWeekParser=void 0;var r=n(17361),o=n(64050),i=n(3018),a=n(69064),s=n(34994);class l extends a.Parser{priority=100;parse(e,t,n){switch(t){case"I":return(0,s.parseNumericPattern)(i.numericPatterns.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return(0,s.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return(0,o.startOfISOWeek)((0,r.setISOWeek)(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}t.ISOWeekParser=l},30391(e,t,n){"use strict";t.ISOWeekYearParser=void 0;var r=n(64050),o=n(15155),i=n(69064),a=n(34994);class s extends i.Parser{priority=130;parse(e,t){return"R"===t?(0,a.parseNDigitsSigned)(4,e):(0,a.parseNDigitsSigned)(t.length,e)}set(e,t,n){const i=(0,o.constructFrom)(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),(0,r.startOfISOWeek)(i)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}t.ISOWeekYearParser=s},29966(e,t,n){"use strict";t.LocalDayParser=void 0;var r=n(7002),o=n(69064),i=n(34994);class a extends o.Parser{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return(0,i.mapValue)((0,i.parseNDigits)(t.length,e),o);case"eo":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,o){return(e=(0,r.setDay)(e,n,o)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}t.LocalDayParser=a},14584(e,t,n){"use strict";t.LocalWeekParser=void 0;var r=n(78138),o=n(58231),i=n(3018),a=n(69064),s=n(34994);class l extends a.Parser{priority=100;parse(e,t,n){switch(t){case"w":return(0,s.parseNumericPattern)(i.numericPatterns.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return(0,s.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,i){return(0,o.startOfWeek)((0,r.setWeek)(e,n,i),i)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}t.LocalWeekParser=l},22373(e,t,n){"use strict";t.LocalWeekYearParser=void 0;var r=n(66915),o=n(58231),i=n(69064),a=n(34994);class s extends i.Parser{priority=130;parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return(0,a.mapValue)((0,a.parseNDigits)(4,e),r);case"Yo":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"year"}),r);default:return(0,a.mapValue)((0,a.parseNDigits)(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,i){const s=(0,r.getWeekYear)(e,i);if(n.isTwoDigitYear){const t=(0,a.normalizeTwoDigitYear)(n.year,s);return e.setFullYear(t,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),(0,o.startOfWeek)(e,i)}const l="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(l,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),(0,o.startOfWeek)(e,i)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}t.LocalWeekYearParser=s},7905(e,t,n){"use strict";t.MinuteParser=void 0;var r=n(3018),o=n(69064),i=n(34994);class a extends o.Parser{priority=60;parse(e,t,n){switch(t){case"m":return(0,i.parseNumericPattern)(r.numericPatterns.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]}t.MinuteParser=a},56797(e,t,n){"use strict";t.MonthParser=void 0;var r=n(3018),o=n(69064),i=n(34994);class a extends o.Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const o=e=>e-1;switch(t){case"M":return(0,i.mapValue)((0,i.parseNumericPattern)(r.numericPatterns.month,e),o);case"MM":return(0,i.mapValue)((0,i.parseNDigits)(2,e),o);case"Mo":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"month"}),o);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}t.MonthParser=a},69215(e,t,n){"use strict";t.QuarterParser=void 0;var r=n(69064),o=n(34994);class i extends r.Parser{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return(0,o.parseNDigits)(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}t.QuarterParser=i},51037(e,t,n){"use strict";t.SecondParser=void 0;var r=n(3018),o=n(69064),i=n(34994);class a extends o.Parser{priority=50;parse(e,t,n){switch(t){case"s":return(0,i.parseNumericPattern)(r.numericPatterns.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]}t.SecondParser=a},64973(e,t,n){"use strict";t.StandAloneLocalDayParser=void 0;var r=n(7002),o=n(69064),i=n(34994);class a extends o.Parser{priority=90;parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return(0,i.mapValue)((0,i.parseNDigits)(t.length,e),o);case"co":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,o){return(e=(0,r.setDay)(e,n,o)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}t.StandAloneLocalDayParser=a},39740(e,t,n){"use strict";t.StandAloneMonthParser=void 0;var r=n(3018),o=n(69064),i=n(34994);class a extends o.Parser{priority=110;parse(e,t,n){const o=e=>e-1;switch(t){case"L":return(0,i.mapValue)((0,i.parseNumericPattern)(r.numericPatterns.month,e),o);case"LL":return(0,i.mapValue)((0,i.parseNDigits)(2,e),o);case"Lo":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"month"}),o);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}t.StandAloneMonthParser=a},33418(e,t,n){"use strict";t.StandAloneQuarterParser=void 0;var r=n(69064),o=n(34994);class i extends r.Parser{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return(0,o.parseNDigits)(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}t.StandAloneQuarterParser=i},7205(e,t,n){"use strict";t.TimestampMillisecondsParser=void 0;var r=n(15155),o=n(69064),i=n(34994);class a extends o.Parser{priority=20;parse(e){return(0,i.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,r.constructFrom)(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}t.TimestampMillisecondsParser=a},53900(e,t,n){"use strict";t.TimestampSecondsParser=void 0;var r=n(15155),o=n(69064),i=n(34994);class a extends o.Parser{priority=40;parse(e){return(0,i.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,r.constructFrom)(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"}t.TimestampSecondsParser=a},11376(e,t,n){"use strict";t.YearParser=void 0;var r=n(69064),o=n(34994);class i extends r.Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return(0,o.mapValue)((0,o.parseNDigits)(4,e),r);case"yo":return(0,o.mapValue)(n.ordinalNumber(e,{unit:"year"}),r);default:return(0,o.mapValue)((0,o.parseNDigits)(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=(0,o.normalizeTwoDigitYear)(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}t.YearParser=i},34994(e,t,n){"use strict";t.dayPeriodEnumToHours=function(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}},t.isLeapYearIndex=function(e){return e%400==0||e%4==0&&e%100!=0},t.mapValue=function(e,t){return e?{value:t(e.value),rest:e.rest}:e},t.normalizeTwoDigitYear=function(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const t=r+50;o=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?o:1-o},t.parseAnyDigitsSigned=function(e){return i(o.numericPatterns.anyDigitsSigned,e)},t.parseNDigits=function(e,t){switch(e){case 1:return i(o.numericPatterns.singleDigit,t);case 2:return i(o.numericPatterns.twoDigits,t);case 3:return i(o.numericPatterns.threeDigits,t);case 4:return i(o.numericPatterns.fourDigits,t);default:return i(new RegExp("^\\d{1,"+e+"}"),t)}},t.parseNDigitsSigned=function(e,t){switch(e){case 1:return i(o.numericPatterns.singleDigitSigned,t);case 2:return i(o.numericPatterns.twoDigitsSigned,t);case 3:return i(o.numericPatterns.threeDigitsSigned,t);case 4:return i(o.numericPatterns.fourDigitsSigned,t);default:return i(new RegExp("^-?\\d{1,"+e+"}"),t)}},t.parseNumericPattern=i,t.parseTimezonePattern=function(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const o="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:o*(i*r.millisecondsInHour+a*r.millisecondsInMinute+s*r.millisecondsInSecond),rest:t.slice(n[0].length)}};var r=n(74963),o=n(3018);function i(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}},69756(e,t,n){"use strict";t.parseISO=function(e,t){const n=t?.additionalDigits??2,p=function(e){const t={},n=e.split(o.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],o.timeZoneDelimiter.test(t.date)&&(t.date=e.split(o.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const e=o.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let h;if(p.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(p.date,n);h=function(e,t){if(null===t)return new Date(NaN);const n=e.match(i);if(!n)return new Date(NaN);const r=!!n[4],o=l(n[1]),a=l(n[2])-1,s=l(n[3]),c=l(n[4]),p=l(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,p)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}(t,c,p):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(u[t]||(d(e)?29:28))}(t,a,s)&&function(e,t){return t>=1&&t<=(d(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,s)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!h||isNaN(h.getTime()))return new Date(NaN);const f=h.getTime();let g,m=0;if(p.time&&(m=function(e){const t=e.match(a);if(!t)return NaN;const n=c(t[1]),o=c(t[2]),i=c(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,i)?n*r.millisecondsInHour+o*r.millisecondsInMinute+1e3*i:NaN}(p.time),isNaN(m)))return new Date(NaN);if(!p.timezone){const e=new Date(f+m),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return g=function(e){if("Z"===e)return 0;const t=e.match(s);if(!t)return 0;const n="+"===t[1]?-1:1,o=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(o*r.millisecondsInHour+i*r.millisecondsInMinute):NaN}(p.timezone),isNaN(g)?new Date(NaN):new Date(f+m+g)};var r=n(74963);const o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},i=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,a=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,s=/^([+-])(\d{2})(?::?(\d{2}))?$/;function l(e){return e?parseInt(e):1}function c(e){return e&&parseFloat(e.replace(",","."))||0}const u=[31,null,31,30,31,30,31,31,30,31,30,31];function d(e){return e%400==0||e%4==0&&e%100!=0}},58623(e,t){"use strict";t.parseJSON=function(e){const t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||0)*("-"==t[8]?-1:1),+t[5]-(+t[10]||0)*("-"==t[8]?-1:1),+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}},27643(e,t,n){"use strict";t.previousDay=function(e,t){let n=(0,r.getDay)(e)-t;return n<=0&&(n+=7),(0,o.subDays)(e,n)};var r=n(91302),o=n(97620)},63318(e,t,n){"use strict";t.previousFriday=function(e){return(0,r.previousDay)(e,5)};var r=n(27643)},56561(e,t,n){"use strict";t.previousMonday=function(e){return(0,r.previousDay)(e,1)};var r=n(27643)},45150(e,t,n){"use strict";t.previousSaturday=function(e){return(0,r.previousDay)(e,6)};var r=n(27643)},9733(e,t,n){"use strict";t.previousSunday=function(e){return(0,r.previousDay)(e,0)};var r=n(27643)},79951(e,t,n){"use strict";t.previousThursday=function(e){return(0,r.previousDay)(e,4)};var r=n(27643)},83526(e,t,n){"use strict";t.previousTuesday=function(e){return(0,r.previousDay)(e,2)};var r=n(27643)},99909(e,t,n){"use strict";t.previousWednesday=function(e){return(0,r.previousDay)(e,3)};var r=n(27643)},18075(e,t,n){"use strict";t.quartersToMonths=function(e){return Math.trunc(e*r.monthsInQuarter)};var r=n(74963)},9588(e,t,n){"use strict";t.quartersToYears=function(e){const t=e/r.quartersInYear;return Math.trunc(t)};var r=n(74963)},60002(e,t,n){"use strict";t.roundToNearestHours=function(e,t){const n=t?.nearestTo??1;if(n<1||n>12)return(0,o.constructFrom)(e,NaN);const a=(0,i.toDate)(e),s=a.getMinutes()/60,l=a.getSeconds()/60/60,c=a.getMilliseconds()/1e3/60/60,u=a.getHours()+s+l+c,d=t?.roundingMethod??"round",p=(0,r.getRoundingMethod)(d)(u/n)*n,h=(0,o.constructFrom)(e,a);return h.setHours(p,0,0,0),h};var r=n(13266),o=n(15155),i=n(91941)},88788(e,t,n){"use strict";t.roundToNearestMinutes=function(e,t){const n=t?.nearestTo??1;if(n<1||n>30)return(0,o.constructFrom)(e,NaN);const a=(0,i.toDate)(e),s=a.getSeconds()/60,l=a.getMilliseconds()/1e3/60,c=a.getMinutes()+s+l,u=t?.roundingMethod??"round",d=(0,r.getRoundingMethod)(u)(c/n)*n,p=(0,o.constructFrom)(e,a);return p.setMinutes(d,0,0),p};var r=n(13266),o=n(15155),i=n(91941)},53639(e,t,n){"use strict";t.secondsToHours=function(e){const t=e/r.secondsInHour;return Math.trunc(t)};var r=n(74963)},18012(e,t,n){"use strict";t.secondsToMilliseconds=function(e){return e*r.millisecondsInSecond};var r=n(74963)},57221(e,t,n){"use strict";t.secondsToMinutes=function(e){const t=e/r.secondsInMinute;return Math.trunc(t)};var r=n(74963)},95170(e,t,n){"use strict";t.set=function(e,t){let n=(0,i.toDate)(e);return isNaN(+n)?(0,r.constructFrom)(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,o.setMonth)(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)};var r=n(15155),o=n(386),i=n(91941)},76270(e,t,n){"use strict";t.setDate=function(e,t){const n=(0,r.toDate)(e);return n.setDate(t),n};var r=n(91941)},7002(e,t,n){"use strict";t.setDay=function(e,t,n){const a=(0,i.getDefaultOptions)(),s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,l=(0,o.toDate)(e),c=l.getDay(),u=7-s,d=t<0||t>6?t-(c+u)%7:((t%7+7)%7+u)%7-(c+u)%7;return(0,r.addDays)(l,d)};var r=n(95382),o=n(91941),i=n(16234)},9998(e,t,n){"use strict";t.setDayOfYear=function(e,t){const n=(0,r.toDate)(e);return n.setMonth(0),n.setDate(t),n};var r=n(91941)},95643(e,t,n){"use strict";t.setDefaultOptions=function(e){const t={},n=(0,r.getDefaultOptions)();for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(void 0===e[n]?delete t[n]:t[n]=e[n]);(0,r.setDefaultOptions)(t)};var r=n(16234)},84631(e,t,n){"use strict";t.setHours=function(e,t){const n=(0,r.toDate)(e);return n.setHours(t),n};var r=n(91941)},67455(e,t,n){"use strict";t.setISODay=function(e,t){const n=(0,i.toDate)(e),a=t-(0,o.getISODay)(n);return(0,r.addDays)(n,a)};var r=n(95382),o=n(2747),i=n(91941)},17361(e,t,n){"use strict";t.setISOWeek=function(e,t){const n=(0,o.toDate)(e),i=(0,r.getISOWeek)(n)-t;return n.setDate(n.getDate()-7*i),n};var r=n(46629),o=n(91941)},23432(e,t,n){"use strict";t.setISOWeekYear=function(e,t){let n=(0,a.toDate)(e);const s=(0,o.differenceInCalendarDays)(n,(0,i.startOfISOWeekYear)(n)),l=(0,r.constructFrom)(e,0);return l.setFullYear(t,0,4),l.setHours(0,0,0,0),n=(0,i.startOfISOWeekYear)(l),n.setDate(n.getDate()+s),n};var r=n(15155),o=n(60657),i=n(23535),a=n(91941)},38860(e,t,n){"use strict";t.setMilliseconds=function(e,t){const n=(0,r.toDate)(e);return n.setMilliseconds(t),n};var r=n(91941)},16885(e,t,n){"use strict";t.setMinutes=function(e,t){const n=(0,r.toDate)(e);return n.setMinutes(t),n};var r=n(91941)},386(e,t,n){"use strict";t.setMonth=function(e,t){const n=(0,i.toDate)(e),a=n.getFullYear(),s=n.getDate(),l=(0,r.constructFrom)(e,0);l.setFullYear(a,t,15),l.setHours(0,0,0,0);const c=(0,o.getDaysInMonth)(l);return n.setMonth(t,Math.min(s,c)),n};var r=n(15155),o=n(82710),i=n(91941)},32864(e,t,n){"use strict";t.setQuarter=function(e,t){const n=(0,o.toDate)(e),i=t-(Math.trunc(n.getMonth()/3)+1);return(0,r.setMonth)(n,n.getMonth()+3*i)};var r=n(386),o=n(91941)},76841(e,t,n){"use strict";t.setSeconds=function(e,t){const n=(0,r.toDate)(e);return n.setSeconds(t),n};var r=n(91941)},78138(e,t,n){"use strict";t.setWeek=function(e,t,n){const i=(0,o.toDate)(e),a=(0,r.getWeek)(i,n)-t;return i.setDate(i.getDate()-7*a),i};var r=n(36270),o=n(91941)},64199(e,t,n){"use strict";t.setWeekYear=function(e,t,n){const l=(0,s.getDefaultOptions)(),c=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1;let u=(0,a.toDate)(e);const d=(0,o.differenceInCalendarDays)(u,(0,i.startOfWeekYear)(u,n)),p=(0,r.constructFrom)(e,0);return p.setFullYear(t,0,c),p.setHours(0,0,0,0),u=(0,i.startOfWeekYear)(p,n),u.setDate(u.getDate()+d),u};var r=n(15155),o=n(60657),i=n(16226),a=n(91941),s=n(16234)},61727(e,t,n){"use strict";t.setYear=function(e,t){const n=(0,o.toDate)(e);return isNaN(+n)?(0,r.constructFrom)(e,NaN):(n.setFullYear(t),n)};var r=n(15155),o=n(91941)},33633(e,t,n){"use strict";t.startOfDay=function(e){const t=(0,r.toDate)(e);return t.setHours(0,0,0,0),t};var r=n(91941)},1787(e,t,n){"use strict";t.startOfDecade=function(e){const t=(0,r.toDate)(e),n=t.getFullYear(),o=10*Math.floor(n/10);return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t};var r=n(91941)},69525(e,t,n){"use strict";t.startOfHour=function(e){const t=(0,r.toDate)(e);return t.setMinutes(0,0,0),t};var r=n(91941)},64050(e,t,n){"use strict";t.startOfISOWeek=function(e){return(0,r.startOfWeek)(e,{weekStartsOn:1})};var r=n(58231)},23535(e,t,n){"use strict";t.startOfISOWeekYear=function(e){const t=(0,r.getISOWeekYear)(e),n=(0,i.constructFrom)(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),(0,o.startOfISOWeek)(n)};var r=n(964),o=n(64050),i=n(15155)},4395(e,t,n){"use strict";t.startOfMinute=function(e){const t=(0,r.toDate)(e);return t.setSeconds(0,0),t};var r=n(91941)},81725(e,t,n){"use strict";t.startOfMonth=function(e){const t=(0,r.toDate)(e);return t.setDate(1),t.setHours(0,0,0,0),t};var r=n(91941)},54463(e,t,n){"use strict";t.startOfQuarter=function(e){const t=(0,r.toDate)(e),n=t.getMonth(),o=n-n%3;return t.setMonth(o,1),t.setHours(0,0,0,0),t};var r=n(91941)},61175(e,t,n){"use strict";t.startOfSecond=function(e){const t=(0,r.toDate)(e);return t.setMilliseconds(0),t};var r=n(91941)},47454(e,t,n){"use strict";t.startOfToday=function(){return(0,r.startOfDay)(Date.now())};var r=n(33633)},57184(e,t){"use strict";t.startOfTomorrow=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r+1),o.setHours(0,0,0,0),o}},58231(e,t,n){"use strict";t.startOfWeek=function(e,t){const n=(0,o.getDefaultOptions)(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,r.toDate)(e),s=a.getDay(),l=(s<i?7:0)+s-i;return a.setDate(a.getDate()-l),a.setHours(0,0,0,0),a};var r=n(91941),o=n(16234)},16226(e,t,n){"use strict";t.startOfWeekYear=function(e,t){const n=(0,a.getDefaultOptions)(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,l=(0,o.getWeekYear)(e,t),c=(0,r.constructFrom)(e,0);return c.setFullYear(l,0,s),c.setHours(0,0,0,0),(0,i.startOfWeek)(c,t)};var r=n(15155),o=n(66915),i=n(58231),a=n(16234)},12326(e,t,n){"use strict";t.startOfYear=function(e){const t=(0,r.toDate)(e),n=(0,o.constructFrom)(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var r=n(91941),o=n(15155)},72791(e,t){"use strict";t.startOfYesterday=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r-1),o.setHours(0,0,0,0),o}},77348(e,t,n){"use strict";t.sub=function(e,t){const{years:n=0,months:a=0,weeks:s=0,days:l=0,hours:c=0,minutes:u=0,seconds:d=0}=t,p=(0,o.subMonths)(e,a+12*n),h=(0,r.subDays)(p,l+7*s),f=1e3*(d+60*(u+60*c));return(0,i.constructFrom)(e,h.getTime()-f)};var r=n(97620),o=n(28943),i=n(15155)},21321(e,t,n){"use strict";t.subBusinessDays=function(e,t){return(0,r.addBusinessDays)(e,-t)};var r=n(89340)},97620(e,t,n){"use strict";t.subDays=function(e,t){return(0,r.addDays)(e,-t)};var r=n(95382)},24857(e,t,n){"use strict";t.subHours=function(e,t){return(0,r.addHours)(e,-t)};var r=n(35030)},90625(e,t,n){"use strict";t.subISOWeekYears=function(e,t){return(0,r.addISOWeekYears)(e,-t)};var r=n(87512)},9146(e,t,n){"use strict";t.subMilliseconds=function(e,t){return(0,r.addMilliseconds)(e,-t)};var r=n(18559)},2835(e,t,n){"use strict";t.subMinutes=function(e,t){return(0,r.addMinutes)(e,-t)};var r=n(93488)},28943(e,t,n){"use strict";t.subMonths=function(e,t){return(0,r.addMonths)(e,-t)};var r=n(3962)},47829(e,t,n){"use strict";t.subQuarters=function(e,t){return(0,r.addQuarters)(e,-t)};var r=n(46316)},15971(e,t,n){"use strict";t.subSeconds=function(e,t){return(0,r.addSeconds)(e,-t)};var r=n(43144)},63115(e,t,n){"use strict";t.subWeeks=function(e,t){return(0,r.addWeeks)(e,-t)};var r=n(39016)},39704(e,t,n){"use strict";t.subYears=function(e,t){return(0,r.addYears)(e,-t)};var r=n(48063)},91941(e,t){"use strict";t.toDate=function(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}},64433(e,t,n){"use strict";t.transpose=function(e,t){const n=t instanceof Date?(0,r.constructFrom)(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n};var r=n(15155)},80553(e,t,n){"use strict";t.weeksToDays=function(e){return Math.trunc(e*r.daysInWeek)};var r=n(74963)},77138(e,t,n){"use strict";t.yearsToDays=function(e){return Math.trunc(e*r.daysInYear)};var r=n(74963)},10398(e,t,n){"use strict";t.yearsToMonths=function(e){return Math.trunc(e*r.monthsInYear)};var r=n(74963)},12456(e,t,n){"use strict";t.yearsToQuarters=function(e){return Math.trunc(e*r.quartersInYear)};var r=n(74963)},53685(e,t){},25873(e,t,n){"use strict";var r=n(69514);t.H=r.createRoot,r.hydrateRoot},21283(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(39155),a=l(i),s=l(n(39067));function l(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},u=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},p=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),h=function(){return p?"_"+Math.random().toString(36).substr(2,12):void 0},f=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.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||h(),prevId:e.id},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),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||h(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return p&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!=e?e:t}),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){u.forEach(function(t){return delete e[t]})}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(i.Component);f.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},f.defaultProps={minWidth:1,injectStyles:!0},t.A=f},90320(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=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.fundamental"):60117,y=n?Symbol.for("react.responder"):60118;function A(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case l:return e;default:return t}}case m:case g:case o:return t}}}function w(e){return A(e)===d}t.typeOf=A,t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y)},t.isAsyncMode=function(e){return w(e)||A(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return A(e)===c},t.isContextProvider=function(e){return A(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return A(e)===p},t.isFragment=function(e){return A(e)===i},t.isLazy=function(e){return A(e)===m},t.isMemo=function(e){return A(e)===g},t.isPortal=function(e){return A(e)===o},t.isProfiler=function(e){return A(e)===s},t.isStrictMode=function(e){return A(e)===a},t.isSuspense=function(e){return A(e)===h}},524(e,t,n){"use strict";e.exports=n(90320)},70853(e,t,n){"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:()=>f,default:()=>m});var r=n(39155),o=n(69514);function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var l,c,u=(void 0===l&&(l=0),function(){return++l}),d={},p={},h=["touchstart","touchmove"],f="ignore-react-onclickoutside";function g(e,t){var n={};return-1!==h.indexOf(t)&&c&&(n.passive=!e.props.preventDefault),n}const m=function(e,t){var n,l,h=e.displayName||e.name||"Component";return l=n=function(n){var l,f;function m(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+h+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,o.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!p[r._uid]){void 0===c&&(c=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),p[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),d[r._uid]=function(e){var t;null!==r.componentNode&&(r.initTimeStamp>e.timeStamp||(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&s(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e)))},e.forEach(function(e){document.addEventListener(e,d[r._uid],g(a(r),e))})}},r.disableOnClickOutside=function(){delete p[r._uid];var e=d[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){return document.removeEventListener(t,e,g(a(r),t))}),delete d[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=u(),r.initTimeStamp=performance.now(),r}f=n,(l=m).prototype=Object.create(f.prototype),l.prototype.constructor=l,i(l,f);var v=m.prototype;return v.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},v.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+h+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},v.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},v.componentWillUnmount=function(){this.disableOnClickOutside()},v.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,r.createElement)(e,n)},m}(r.Component),n.displayName="OnClickOutside("+h+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:f,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},l}},73335(e,t,n){"use strict";var r=n(39155),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},31085(e,t,n){"use strict";e.exports=n(73335)},80714(e,t,n){"use strict";var r=n(86355).get;function o(e,t){return e===t}e.exports=function(e,t,n){n=n||o;var i=r(e(),t);return function(o){return function(){var a=r(e(),t);if(!n(i,a)){var s=i;i=a,o(a,s,t)}}}}},58653(e,t,n){"use strict";e.exports=n(21829)},20534(e,t,n){"use strict";var r,o,i,a=n(62189),s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function l(){i=!1}function c(e){if(e){if(e!==r){if(64!==e.length)throw new Error("Custom alphabet for shortid must be 64 unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter(function(e,t,n){return t!==n.lastIndexOf(e)});if(t.length)throw new Error("Custom alphabet for shortid must be 64 unique characters. These characters were not unique: "+t.join(", "));r=e,l()}}else r!==s&&(r=s,l())}function u(){return i||(i=function(){r||c(s);for(var e,t=r.split(""),n=[],o=a.nextValue();t.length>0;)o=a.nextValue(),e=Math.floor(o*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}e.exports={get:function(){return r||s},characters:function(e){return c(e),r},seed:function(e){a.seed(e),o!==e&&(l(),o=e)},lookup:function(e){return u()[e]},shuffled:u}},57137(e,t,n){"use strict";var r,o,i=n(6938);n(20534),e.exports=function(e){var t="",n=Math.floor(.001*(Date.now()-1567752802062));return n===o?r++:(r=0,o=n),t+=i(7),t+=i(e),r>0&&(t+=i(r)),t+i(n)}},6938(e,t,n){"use strict";var r=n(20534),o=n(92924),i=n(99742).NM;e.exports=function(e){for(var t,n=0,a="";!t;)a+=i(r.get(),1,o)(),t=e<Math.pow(16,n+1),n++;return a}},21829(e,t,n){"use strict";var r=n(20534),o=n(57137),i=n(7906),a=n(29748)||0;function s(){return o(a)}e.exports=s,e.exports.generate=s,e.exports.seed=function(t){return r.seed(t),e.exports},e.exports.worker=function(t){return a=t,e.exports},e.exports.characters=function(e){return void 0!==e&&r.characters(e),r.shuffled()},e.exports.isValid=i},7906(e,t,n){"use strict";var r=n(20534);e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6||new RegExp("[^"+r.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e))}},92924(e){"use strict";var t,n="object"==typeof window&&(window.crypto||window.msCrypto);t=n&&n.getRandomValues?function(e){return n.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t},e.exports=t},62189(e){"use strict";var t=1;e.exports={nextValue:function(){return(t=(9301*t+49297)%233280)/233280},seed:function(e){t=e}}},29748(e){"use strict";e.exports=0},51020(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(78052)),o=n(80576);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n):n}i.default=i,e.exports=i},80576(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(i,l)).replace(r,s))}},78052(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,o.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:o}=e;i?t(r,o,e):o&&(n=n||{},n[r]=o)}),n};const o=r(n(92776))},60840(e,t,n){var r,o;o="undefined"!=typeof window?window:this,r=function(){return function(e,t){var n=(void 0!==this?this:e).SVG=function(e){if(n.supported)return e=new n.Doc(e),n.parser.draw||n.prepare(),e};if(n.ns="http://www.w3.org/2000/svg",n.xmlns="http://www.w3.org/2000/xmlns/",n.xlink="http://www.w3.org/1999/xlink",n.svgjs="http://svgjs.com/svgjs",n.supported=!!t.createElementNS&&!!t.createElementNS(n.ns,"svg").createSVGRect,!n.supported)return!1;n.did=1e3,n.eid=function(e){return"Svgjs"+d(e)+n.did++},n.create=function(e){var n=t.createElementNS(this.ns,e);return n.setAttribute("id",this.eid(e)),n},n.extend=function(){var e,t,r,o;for(t=(e=[].slice.call(arguments)).pop(),o=e.length-1;o>=0;o--)if(e[o])for(r in t)e[o].prototype[r]=t[r];n.Set&&n.Set.inherit&&n.Set.inherit()},n.invent=function(e){var t="function"==typeof e.create?e.create:function(){this.constructor.call(this,n.create(e.create))};return e.inherit&&(t.prototype=new e.inherit),e.extend&&n.extend(t,e.extend),e.construct&&n.extend(e.parent||n.Container,e.construct),t},n.adopt=function(t){return t?t.instance?t.instance:((r="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new n.Nested:new n.Doc:"linearGradient"==t.nodeName?new n.Gradient("linear"):"radialGradient"==t.nodeName?new n.Gradient("radial"):n[d(t.nodeName)]?new(n[d(t.nodeName)]):new n.Element(t)).type=t.nodeName,r.node=t,t.instance=r,r instanceof n.Doc&&r.namespace().defs(),r.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),r):null;var r},n.prepare=function(){var e=t.getElementsByTagName("body")[0],r=(e?new n.Doc(e):n.adopt(t.documentElement).nested()).size(2,0);n.parser={body:e||t.documentElement,draw:r.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").attr("focusable","false").node,poly:r.polyline().node,path:r.path().node,native:n.create("svg")}},n.parser={native:n.create("svg")},t.addEventListener("DOMContentLoaded",function(){n.parser.draw||n.prepare()},!1),n.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},n.utils={map:function(e,t){var n,r=e.length,o=[];for(n=0;n<r;n++)o.push(t(e[n]));return o},filter:function(e,t){var n,r=e.length,o=[];for(n=0;n<r;n++)t(e[n])&&o.push(e[n]);return o},radians:function(e){return e%360*Math.PI/180},degrees:function(e){return 180*e/Math.PI%360},filterSVGElements:function(t){return this.filter(t,function(t){return t instanceof e.SVGElement})}},n.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},n.Color=function(e){var t,r;this.r=0,this.g=0,this.b=0,e&&("string"==typeof e?n.regex.isRgb.test(e)?(t=n.regex.rgb.exec(e.replace(n.regex.whitespace,"")),this.r=parseInt(t[1]),this.g=parseInt(t[2]),this.b=parseInt(t[3])):n.regex.isHex.test(e)&&(t=n.regex.hex.exec(4==(r=e).length?["#",r.substring(1,2),r.substring(1,2),r.substring(2,3),r.substring(2,3),r.substring(3,4),r.substring(3,4)].join(""):r),this.r=parseInt(t[1],16),this.g=parseInt(t[2],16),this.b=parseInt(t[3],16)):"object"==typeof e&&(this.r=e.r,this.g=e.g,this.b=e.b))},n.extend(n.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+p(this.r)+p(this.g)+p(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(e){return this.destination=new n.Color(e),this},at:function(e){return this.destination?(e=e<0?0:e>1?1:e,new n.Color({r:~~(this.r+(this.destination.r-this.r)*e),g:~~(this.g+(this.destination.g-this.g)*e),b:~~(this.b+(this.destination.b-this.b)*e)})):this}}),n.Color.test=function(e){return e+="",n.regex.isHex.test(e)||n.regex.isRgb.test(e)},n.Color.isRgb=function(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b},n.Color.isColor=function(e){return n.Color.isRgb(e)||n.Color.test(e)},n.Array=function(e,t){0==(e=(e||[]).valueOf()).length&&t&&(e=t.valueOf()),this.value=this.parse(e)},n.extend(n.Array,{morph:function(e){if(this.destination=this.parse(e),this.value.length!=this.destination.length){for(var t=this.value[this.value.length-1],n=this.destination[this.destination.length-1];this.value.length>this.destination.length;)this.destination.push(n);for(;this.value.length<this.destination.length;)this.value.push(t)}return this},settle:function(){for(var e=0,t=this.value.length,n=[];e<t;e++)-1==n.indexOf(this.value[e])&&n.push(this.value[e]);return this.value=n},at:function(e){if(!this.destination)return this;for(var t=0,r=this.value.length,o=[];t<r;t++)o.push(this.value[t]+(this.destination[t]-this.value[t])*e);return new n.Array(o)},toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(e){return e=e.valueOf(),Array.isArray(e)?e:this.split(e)},split:function(e){return e.trim().split(n.regex.delimiter).map(parseFloat)},reverse:function(){return this.value.reverse(),this},clone:function(){var e=new this.constructor;return e.value=c(this.value),e}}),n.PointArray=function(e,t){n.Array.call(this,e,t||[[0,0]])},n.PointArray.prototype=new n.Array,n.PointArray.prototype.constructor=n.PointArray,n.extend(n.PointArray,{toString:function(){for(var e=0,t=this.value.length,n=[];e<t;e++)n.push(this.value[e].join(","));return n.join(" ")},toLine:function(){return{x1:this.value[0][0],y1:this.value[0][1],x2:this.value[1][0],y2:this.value[1][1]}},at:function(e){if(!this.destination)return this;for(var t=0,r=this.value.length,o=[];t<r;t++)o.push([this.value[t][0]+(this.destination[t][0]-this.value[t][0])*e,this.value[t][1]+(this.destination[t][1]-this.value[t][1])*e]);return new n.PointArray(o)},parse:function(e){var t=[];if(e=e.valueOf(),Array.isArray(e)){if(Array.isArray(e[0]))return e.map(function(e){return e.slice()});if(null!=e[0].x)return e.map(function(e){return[e.x,e.y]})}else e=e.trim().split(n.regex.delimiter).map(parseFloat);e.length%2!=0&&e.pop();for(var r=0,o=e.length;r<o;r+=2)t.push([e[r],e[r+1]]);return t},move:function(e,t){var n=this.bbox();if(e-=n.x,t-=n.y,!isNaN(e)&&!isNaN(t))for(var r=this.value.length-1;r>=0;r--)this.value[r]=[this.value[r][0]+e,this.value[r][1]+t];return this},size:function(e,t){var n,r=this.bbox();for(n=this.value.length-1;n>=0;n--)r.width&&(this.value[n][0]=(this.value[n][0]-r.x)*e/r.width+r.x),r.height&&(this.value[n][1]=(this.value[n][1]-r.y)*t/r.height+r.y);return this},bbox:function(){return n.parser.poly.setAttribute("points",this.toString()),n.parser.poly.getBBox()}});for(var r={M:function(e,t,n){return t.x=n.x=e[0],t.y=n.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},T:function(e,t){return t.x=e[0],t.y=e[1],["T",e[0],e[1]]},Z:function(e,t,n){return t.x=n.x,t.y=n.y,["Z"]},A:function(e,t){return t.x=e[5],t.y=e[6],["A",e[0],e[1],e[2],e[3],e[4],e[5],e[6]]}},o="mlhvqtcsaz".split(""),i=0,a=o.length;i<a;++i)r[o[i]]=function(e){return function(t,n,o){if("H"==e)t[0]=t[0]+n.x;else if("V"==e)t[0]=t[0]+n.y;else if("A"==e)t[5]=t[5]+n.x,t[6]=t[6]+n.y;else for(var i=0,a=t.length;i<a;++i)t[i]=t[i]+(i%2?n.y:n.x);return r[e](t,n,o)}}(o[i].toUpperCase());n.PathArray=function(e,t){n.Array.call(this,e,t||[["M",0,0]])},n.PathArray.prototype=new n.Array,n.PathArray.prototype.constructor=n.PathArray,n.extend(n.PathArray,{toString:function(){return function(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t][0],null!=e[t][1]&&(r+=e[t][1],null!=e[t][2]&&(r+=" ",r+=e[t][2],null!=e[t][3]&&(r+=" ",r+=e[t][3],r+=" ",r+=e[t][4],null!=e[t][5]&&(r+=" ",r+=e[t][5],r+=" ",r+=e[t][6],null!=e[t][7]&&(r+=" ",r+=e[t][7])))));return r+" "}(this.value)},move:function(e,t){var n=this.bbox();if(e-=n.x,t-=n.y,!isNaN(e)&&!isNaN(t))for(var r,o=this.value.length-1;o>=0;o--)"M"==(r=this.value[o][0])||"L"==r||"T"==r?(this.value[o][1]+=e,this.value[o][2]+=t):"H"==r?this.value[o][1]+=e:"V"==r?this.value[o][1]+=t:"C"==r||"S"==r||"Q"==r?(this.value[o][1]+=e,this.value[o][2]+=t,this.value[o][3]+=e,this.value[o][4]+=t,"C"==r&&(this.value[o][5]+=e,this.value[o][6]+=t)):"A"==r&&(this.value[o][6]+=e,this.value[o][7]+=t);return this},size:function(e,t){var n,r,o=this.bbox();for(n=this.value.length-1;n>=0;n--)"M"==(r=this.value[n][0])||"L"==r||"T"==r?(this.value[n][1]=(this.value[n][1]-o.x)*e/o.width+o.x,this.value[n][2]=(this.value[n][2]-o.y)*t/o.height+o.y):"H"==r?this.value[n][1]=(this.value[n][1]-o.x)*e/o.width+o.x:"V"==r?this.value[n][1]=(this.value[n][1]-o.y)*t/o.height+o.y:"C"==r||"S"==r||"Q"==r?(this.value[n][1]=(this.value[n][1]-o.x)*e/o.width+o.x,this.value[n][2]=(this.value[n][2]-o.y)*t/o.height+o.y,this.value[n][3]=(this.value[n][3]-o.x)*e/o.width+o.x,this.value[n][4]=(this.value[n][4]-o.y)*t/o.height+o.y,"C"==r&&(this.value[n][5]=(this.value[n][5]-o.x)*e/o.width+o.x,this.value[n][6]=(this.value[n][6]-o.y)*t/o.height+o.y)):"A"==r&&(this.value[n][1]=this.value[n][1]*e/o.width,this.value[n][2]=this.value[n][2]*t/o.height,this.value[n][6]=(this.value[n][6]-o.x)*e/o.width+o.x,this.value[n][7]=(this.value[n][7]-o.y)*t/o.height+o.y);return this},equalCommands:function(e){var t,r,o;for(e=new n.PathArray(e),o=this.value.length===e.value.length,t=0,r=this.value.length;o&&t<r;t++)o=this.value[t][0]===e.value[t][0];return o},morph:function(e){return e=new n.PathArray(e),this.equalCommands(e)?this.destination=e:this.destination=null,this},at:function(e){if(!this.destination)return this;var t,r,o,i,a=this.value,s=this.destination.value,l=[],c=new n.PathArray;for(t=0,r=a.length;t<r;t++){for(l[t]=[a[t][0]],o=1,i=a[t].length;o<i;o++)l[t][o]=a[t][o]+(s[t][o]-a[t][o])*e;"A"===l[t][0]&&(l[t][4]=+(0!=l[t][4]),l[t][5]=+(0!=l[t][5]))}return c.value=l,c},parse:function(e){if(e instanceof n.PathArray)return e.valueOf();var t,o={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};e="string"==typeof e?e.replace(n.regex.numbersWithDots,l).replace(n.regex.pathLetters," $& ").replace(n.regex.hyphen,"$1 -").trim().split(n.regex.delimiter):e.reduce(function(e,t){return[].concat.call(e,t)},[]);var i=[],a=new n.Point,s=new n.Point,c=0,u=e.length;do{n.regex.isPathLetter.test(e[c])?(t=e[c],++c):"M"==t?t="L":"m"==t&&(t="l"),i.push(r[t].call(null,e.slice(c,c+=o[t.toUpperCase()]).map(parseFloat),a,s))}while(u>c);return i},bbox:function(){return n.parser.path.setAttribute("d",this.toString()),n.parser.path.getBBox()}}),n.Number=n.invent({create:function(e,t){this.value=0,this.unit=t||"","number"==typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"==typeof e?(t=e.match(n.regex.numberAndUnit))&&(this.value=parseFloat(t[1]),"%"==t[5]?this.value/=100:"s"==t[5]&&(this.value*=1e3),this.unit=t[5]):e instanceof n.Number&&(this.value=e.valueOf(),this.unit=e.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(e){return e=new n.Number(e),new n.Number(this+e,this.unit||e.unit)},minus:function(e){return e=new n.Number(e),new n.Number(this-e,this.unit||e.unit)},times:function(e){return e=new n.Number(e),new n.Number(this*e,this.unit||e.unit)},divide:function(e){return e=new n.Number(e),new n.Number(this/e,this.unit||e.unit)},to:function(e){var t=new n.Number(this);return"string"==typeof e&&(t.unit=e),t},morph:function(e){return this.destination=new n.Number(e),e.relative&&(this.destination.value+=this.value),this},at:function(e){return this.destination?new n.Number(this.destination).minus(this).times(e).plus(this):this}}}),n.Element=n.invent({create:function(e){this._stroke=n.defaults.attrs.stroke,this._event=null,this._events={},this.dom={},(this.node=e)&&(this.type=e.nodeName,this.node.instance=this,this._events=e._events||{},this._stroke=e.getAttribute("stroke")||this._stroke)},extend:{x:function(e){return this.attr("x",e)},y:function(e){return this.attr("y",e)},cx:function(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)},cy:function(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)},move:function(e,t){return this.x(e).y(t)},center:function(e,t){return this.cx(e).cy(t)},width:function(e){return this.attr("width",e)},height:function(e){return this.attr("height",e)},size:function(e,t){var r=h(this,e,t);return this.width(new n.Number(r.width)).height(new n.Number(r.height))},clone:function(e){this.writeDataToDom();var t=v(this.node.cloneNode(!0));return e?e.add(t):this.after(t),t},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(e){return this.after(e).remove(),e},addTo:function(e){return e.put(this)},putIn:function(e){return e.add(this)},id:function(e){return this.attr("id",e)},inside:function(e,t){var n=this.bbox();return e>n.x&&t>n.y&&e<n.x+n.width&&t<n.y+n.height},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var e=this.attr("class");return null==e?[]:e.trim().split(n.regex.delimiter)},hasClass:function(e){return-1!=this.classes().indexOf(e)},addClass:function(e){if(!this.hasClass(e)){var t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this},removeClass:function(e){return this.hasClass(e)&&this.attr("class",this.classes().filter(function(t){return t!=e}).join(" ")),this},toggleClass:function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)},reference:function(e){return n.get(this.attr(e))},parent:function(t){var r=this;if(!r.node.parentNode)return null;if(r=n.adopt(r.node.parentNode),!t)return r;for(;r&&r.node instanceof e.SVGElement;){if("string"==typeof t?r.matches(t):r instanceof t)return r;if(!r.node.parentNode||"#document"==r.node.parentNode.nodeName||"#document-fragment"==r.node.parentNode.nodeName)return null;r=n.adopt(r.node.parentNode)}},doc:function(){return this instanceof n.Doc?this:this.parent(n.Doc)},parents:function(e){var t=[],n=this;do{if(!(n=n.parent(e))||!n.node)break;t.push(n)}while(n.parent);return t},matches:function(e){return function(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}(this.node,e)},native:function(){return this.node},svg:function(e){var r=t.createElement("svg");if(!(e&&this instanceof n.Parent))return r.appendChild(e=t.createElement("svg")),this.writeDataToDom(),e.appendChild(this.node.cloneNode(!0)),r.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");r.innerHTML="<svg>"+e.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var o=0,i=r.firstChild.childNodes.length;o<i;o++)this.node.appendChild(r.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(e){return this.dom=e,this},is:function(e){return function(e,t){return e instanceof t}(this,e)}}}),n.easing={"-":function(e){return e},"<>":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)}},n.morph=function(e){return function(t,r){return new n.MorphObj(t,r).at(e)}},n.Situation=n.invent({create:function(e){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new n.Number(e.duration).valueOf(),this.delay=new n.Number(e.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=e.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),n.FX=n.invent({create:function(e){this._target=e,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(e,t,r){"object"==typeof e&&(t=e.ease,r=e.delay,e=e.duration);var o=new n.Situation({duration:e||1e3,delay:r||0,ease:n.easing[t||"-"]||t});return this.queue(o),this},delay:function(e){var t=new n.Situation({duration:e,delay:0,ease:n.easing["-"]});return this.queue(t)},target:function(e){return e&&e instanceof n.Element?(this._target=e,this):this._target},timeToAbsPos:function(e){return(e-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(e){return this.situation.duration/this._speed*e+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=e.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){e.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(e){return("function"==typeof e||e instanceof n.Situation)&&this.situations.push(e),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof n.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var e,t,r,o=this.situation;if(o.init)return this;for(e in o.animations)for(r=this.target()[e](),Array.isArray(r)||(r=[r]),Array.isArray(o.animations[e])||(o.animations[e]=[o.animations[e]]),t=r.length;t--;)o.animations[e][t]instanceof n.Number&&(r[t]=new n.Number(r[t])),o.animations[e][t]=r[t].morph(o.animations[e][t]);for(e in o.attrs)o.attrs[e]=new n.MorphObj(this.target().attr(e),o.attrs[e]);for(e in o.styles)o.styles[e]=new n.MorphObj(this.target().style(e),o.styles[e]);return o.initialTransformation=this.target().matrixify(),o.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(e,t){var n=this.active;return this.active=!1,t&&this.clearQueue(),e&&this.situation&&(!n&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},reset:function(){if(this.situation){var e=this.situation;this.stop(),this.situation=e,this.atStart()}return this},finish:function(){for(this.stop(!0,!1);this.dequeue().situation&&this.stop(!0,!1););return this.clearQueue().clearCurrent(),this},atStart:function(){return this.at(0,!0)},atEnd:function(){return!0===this.situation.loops&&(this.situation.loops=this.situation.loop+1),"number"==typeof this.situation.loops?this.at(this.situation.loops,!0):this.at(1,!0)},at:function(e,t){var n=this.situation.duration/this._speed;return this.absPos=e,t||(this.situation.reversed&&(this.absPos=1-this.absPos),this.absPos+=this.situation.loop),this.situation.start=+new Date-this.absPos*n,this.situation.finish=this.situation.start+n,this.step(!0)},speed:function(e){return 0===e?this.pause():e?(this._speed=e,this.at(this.absPos,!0)):this._speed},loop:function(e,t){var n=this.last();return n.loops=null==e||e,n.loop=0,t&&(n.reversing=!0),this},pause:function(){return this.paused=!0,this.stopAnimFrame(),this},play:function(){return this.paused?(this.paused=!1,this.at(this.absPos,!0)):this},reverse:function(e){var t=this.last();return t.reversed=void 0===e?!t.reversed:e,this},progress:function(e){return e?this.situation.ease(this.pos):this.pos},after:function(e){var t=this.last();return this.target().on("finished.fx",function n(r){r.detail.situation==t&&(e.call(this,t),this.off("finished.fx",n))}),this._callStart()},during:function(e){var t=this.last(),r=function(r){r.detail.situation==t&&e.call(this,r.detail.pos,n.morph(r.detail.pos),r.detail.eased,t)};return this.target().off("during.fx",r).on("during.fx",r),this.after(function(){this.off("during.fx",r)}),this._callStart()},afterAll:function(e){var t=function t(n){e.call(this),this.off("allfinished.fx",t)};return this.target().off("allfinished.fx",t).on("allfinished.fx",t),this._callStart()},duringAll:function(e){var t=function(t){e.call(this,t.detail.pos,n.morph(t.detail.pos),t.detail.eased,t.detail.situation)};return this.target().off("during.fx",t).on("during.fx",t),this.afterAll(function(){this.off("during.fx",t)}),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(e,t,n){return this.last()[n||"animations"][e]=t,this._callStart()},step:function(e){var t,n,r;e||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(t=Math.max(this.absPos,0),n=Math.floor(t),!0===this.situation.loops||n<this.situation.loops?(this.pos=t-n,r=this.situation.loop,this.situation.loop=n):(this.absPos=this.situation.loops,this.pos=1,r=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-r)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var o=this.situation.ease(this.pos);for(var i in this.situation.once)i>this.lastPos&&i<=o&&(this.situation.once[i].call(this.target(),this.pos,o),delete this.situation.once[i]);return this.active&&this.target().fire("during",{pos:this.pos,eased:o,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=o,this):this},eachAt:function(){var e,t,r,o=this,i=this.target(),a=this.situation;for(e in a.animations)r=[].concat(a.animations[e]).map(function(e){return"string"!=typeof e&&e.at?e.at(a.ease(o.pos),o.pos):e}),i[e].apply(i,r);for(e in a.attrs)r=[e].concat(a.attrs[e]).map(function(e){return"string"!=typeof e&&e.at?e.at(a.ease(o.pos),o.pos):e}),i.attr.apply(i,r);for(e in a.styles)r=[e].concat(a.styles[e]).map(function(e){return"string"!=typeof e&&e.at?e.at(a.ease(o.pos),o.pos):e}),i.style.apply(i,r);if(a.transforms.length){for(r=a.initialTransformation,e=0,t=a.transforms.length;e<t;e++){var s=a.transforms[e];s instanceof n.Matrix?r=s.relative?r.multiply((new n.Matrix).morph(s).at(a.ease(this.pos))):r.morph(s).at(a.ease(this.pos)):(s.relative||s.undo(r.extract()),r=r.multiply(s.at(a.ease(this.pos))))}i.matrix(r)}return this},once:function(e,t,n){var r=this.last();return n||(e=r.ease(e)),r.once[e]=t,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:n.Element,construct:{animate:function(e,t,r){return(this.fx||(this.fx=new n.FX(this))).animate(e,t,r)},delay:function(e){return(this.fx||(this.fx=new n.FX(this))).delay(e)},stop:function(e,t){return this.fx&&this.fx.stop(e,t),this},finish:function(){return this.fx&&this.fx.finish(),this},pause:function(){return this.fx&&this.fx.pause(),this},play:function(){return this.fx&&this.fx.play(),this},speed:function(e){if(this.fx){if(null==e)return this.fx.speed();this.fx.speed(e)}return this}}}),n.MorphObj=n.invent({create:function(e,t){return n.Color.isColor(t)?new n.Color(e).morph(t):n.regex.delimiter.test(e)?n.regex.pathLetters.test(e)?new n.PathArray(e).morph(t):new n.Array(e).morph(t):n.regex.numberAndUnit.test(t)?new n.Number(e).morph(t):(this.value=e,void(this.destination=t))},extend:{at:function(e,t){return t<1?this.value:this.destination},valueOf:function(){return this.value}}}),n.extend(n.FX,{attr:function(e,t,n){if("object"==typeof e)for(var r in e)this.attr(r,e[r]);else this.add(e,t,"attrs");return this},style:function(e,t){if("object"==typeof e)for(var n in e)this.style(n,e[n]);else this.add(e,t,"styles");return this},x:function(e,t){if(this.target()instanceof n.G)return this.transform({x:e},t),this;var r=new n.Number(e);return r.relative=t,this.add("x",r)},y:function(e,t){if(this.target()instanceof n.G)return this.transform({y:e},t),this;var r=new n.Number(e);return r.relative=t,this.add("y",r)},cx:function(e){return this.add("cx",new n.Number(e))},cy:function(e){return this.add("cy",new n.Number(e))},move:function(e,t){return this.x(e).y(t)},center:function(e,t){return this.cx(e).cy(t)},size:function(e,t){var r;return this.target()instanceof n.Text?this.attr("font-size",e):(e&&t||(r=this.target().bbox()),e||(e=r.width/r.height*t),t||(t=r.height/r.width*e),this.add("width",new n.Number(e)).add("height",new n.Number(t))),this},width:function(e){return this.add("width",new n.Number(e))},height:function(e){return this.add("height",new n.Number(e))},plot:function(e,t,n,r){return 4==arguments.length?this.plot([e,t,n,r]):this.add("plot",new(this.target().morphArray)(e))},leading:function(e){return this.target().leading?this.add("leading",new n.Number(e)):this},viewbox:function(e,t,r,o){return this.target()instanceof n.Container&&this.add("viewbox",new n.ViewBox(e,t,r,o)),this},update:function(e){if(this.target()instanceof n.Stop){if("number"==typeof e||e instanceof n.Number)return this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]});null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",e.offset)}return this}}),n.Box=n.invent({create:function(e,t,r,o){if(!("object"!=typeof e||e instanceof n.Element))return n.Box.call(this,null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height);4==arguments.length&&(this.x=e,this.y=t,this.width=r,this.height=o),y(this)},extend:{merge:function(e){var t=new this.constructor;return t.x=Math.min(this.x,e.x),t.y=Math.min(this.y,e.y),t.width=Math.max(this.x+this.width,e.x+e.width)-t.x,t.height=Math.max(this.y+this.height,e.y+e.height)-t.y,y(t)},transform:function(e){var t,r=1/0,o=-1/0,i=1/0,a=-1/0;return[new n.Point(this.x,this.y),new n.Point(this.x2,this.y),new n.Point(this.x,this.y2),new n.Point(this.x2,this.y2)].forEach(function(t){t=t.transform(e),r=Math.min(r,t.x),o=Math.max(o,t.x),i=Math.min(i,t.y),a=Math.max(a,t.y)}),(t=new this.constructor).x=r,t.width=o-r,t.y=i,t.height=a-i,y(t),t}}}),n.BBox=n.invent({create:function(e){if(n.Box.apply(this,[].slice.call(arguments)),e instanceof n.Element){var r;try{if(t.documentElement.contains){if(!t.documentElement.contains(e.node))throw new Exception("Element not in the dom")}else{for(var o=e.node;o.parentNode;)o=o.parentNode;if(o!=t)throw new Exception("Element not in the dom")}r=e.node.getBBox()}catch(t){if(e instanceof n.Shape){var i=e.clone(n.parser.draw.instance).show();r=i.node.getBBox(),i.remove()}else r={x:e.node.clientLeft,y:e.node.clientTop,width:e.node.clientWidth,height:e.node.clientHeight}}n.Box.call(this,r)}},inherit:n.Box,parent:n.Element,construct:{bbox:function(){return new n.BBox(this)}}}),n.BBox.prototype.constructor=n.BBox,n.extend(n.Element,{tbox:function(){return console.warn("Use of TBox is deprecated and mapped to RBox. Use .rbox() instead."),this.rbox(this.doc())}}),n.RBox=n.invent({create:function(e){n.Box.apply(this,[].slice.call(arguments)),e instanceof n.Element&&n.Box.call(this,e.node.getBoundingClientRect())},inherit:n.Box,parent:n.Element,extend:{addOffset:function(){return this.x+=e.pageXOffset,this.y+=e.pageYOffset,this}},construct:{rbox:function(e){return e?new n.RBox(this).transform(e.screenCTM().inverse()):new n.RBox(this).addOffset()}}}),n.RBox.prototype.constructor=n.RBox,n.Matrix=n.invent({create:function(e){var t,r=g([1,0,0,1,0,0]);for(e=e instanceof n.Element?e.matrixify():"string"==typeof e?g(e.split(n.regex.delimiter).map(parseFloat)):6==arguments.length?g([].slice.call(arguments)):Array.isArray(e)?g(e):"object"==typeof e?e:r,t=w.length-1;t>=0;--t)this[w[t]]=null!=e[w[t]]?e[w[t]]:r[w[t]]},extend:{extract:function(){var e=f(this,0,1),t=f(this,1,0),r=180/Math.PI*Math.atan2(e.y,e.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(r*Math.PI/180)+this.f*Math.sin(r*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(r*Math.PI/180)+this.e*Math.sin(-r*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),skewX:-r,skewY:180/Math.PI*Math.atan2(t.y,t.x),scaleX:Math.sqrt(this.a*this.a+this.b*this.b),scaleY:Math.sqrt(this.c*this.c+this.d*this.d),rotation:r,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new n.Matrix(this)}},clone:function(){return new n.Matrix(this)},morph:function(e){return this.destination=new n.Matrix(e),this},at:function(e){return this.destination?new n.Matrix({a:this.a+(this.destination.a-this.a)*e,b:this.b+(this.destination.b-this.b)*e,c:this.c+(this.destination.c-this.c)*e,d:this.d+(this.destination.d-this.d)*e,e:this.e+(this.destination.e-this.e)*e,f:this.f+(this.destination.f-this.f)*e}):this},multiply:function(e){return new n.Matrix(this.native().multiply(function(e){return e instanceof n.Matrix||(e=new n.Matrix(e)),e}(e).native()))},inverse:function(){return new n.Matrix(this.native().inverse())},translate:function(e,t){return new n.Matrix(this.native().translate(e||0,t||0))},scale:function(e,t,r,o){return 1==arguments.length?t=e:3==arguments.length&&(o=r,r=t,t=e),this.around(r,o,new n.Matrix(e,0,0,t,0,0))},rotate:function(e,t,r){return e=n.utils.radians(e),this.around(t,r,new n.Matrix(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0))},flip:function(e,t){return"x"==e?this.scale(-1,1,t,0):"y"==e?this.scale(1,-1,0,t):this.scale(-1,-1,e,null!=t?t:e)},skew:function(e,t,r,o){return 1==arguments.length?t=e:3==arguments.length&&(o=r,r=t,t=e),e=n.utils.radians(e),t=n.utils.radians(t),this.around(r,o,new n.Matrix(1,Math.tan(t),Math.tan(e),1,0,0))},skewX:function(e,t,n){return this.skew(e,0,t,n)},skewY:function(e,t,n){return this.skew(0,e,t,n)},around:function(e,t,r){return this.multiply(new n.Matrix(1,0,0,1,e||0,t||0)).multiply(r).multiply(new n.Matrix(1,0,0,1,-e||0,-t||0))},native:function(){for(var e=n.parser.native.createSVGMatrix(),t=w.length-1;t>=0;t--)e[w[t]]=this[w[t]];return e},toString:function(){return"matrix("+A(this.a)+","+A(this.b)+","+A(this.c)+","+A(this.d)+","+A(this.e)+","+A(this.f)+")"}},parent:n.Element,construct:{ctm:function(){return new n.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof n.Nested){var e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new n.Matrix(t)}return new n.Matrix(this.node.getScreenCTM())}}}),n.Point=n.invent({create:function(e,t){var n;n=Array.isArray(e)?{x:e[0],y:e[1]}:"object"==typeof e?{x:e.x,y:e.y}:null!=e?{x:e,y:null!=t?t:e}:{x:0,y:0},this.x=n.x,this.y=n.y},extend:{clone:function(){return new n.Point(this)},morph:function(e,t){return this.destination=new n.Point(e,t),this},at:function(e){return this.destination?new n.Point({x:this.x+(this.destination.x-this.x)*e,y:this.y+(this.destination.y-this.y)*e}):this},native:function(){var e=n.parser.native.createSVGPoint();return e.x=this.x,e.y=this.y,e},transform:function(e){return new n.Point(this.native().matrixTransform(e.native()))}}}),n.extend(n.Element,{point:function(e,t){return new n.Point(e,t).transform(this.screenCTM().inverse())}}),n.extend(n.Element,{attr:function(e,t,r){if(null==e){for(e={},r=(t=this.node.attributes).length-1;r>=0;r--)e[t[r].nodeName]=n.regex.isNumber.test(t[r].nodeValue)?parseFloat(t[r].nodeValue):t[r].nodeValue;return e}if("object"==typeof e)for(t in e)this.attr(t,e[t]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return null==(t=this.node.getAttribute(e))?n.defaults.attrs[e]:n.regex.isNumber.test(t)?parseFloat(t):t;"stroke-width"==e?this.attr("stroke",parseFloat(t)>0?this._stroke:null):"stroke"==e&&(this._stroke=t),"fill"!=e&&"stroke"!=e||(n.regex.isImage.test(t)&&(t=this.doc().defs().image(t,0,0)),t instanceof n.Image&&(t=this.doc().defs().pattern(0,0,function(){this.add(t)}))),"number"==typeof t?t=new n.Number(t):n.Color.isColor(t)?t=new n.Color(t):Array.isArray(t)&&(t=new n.Array(t)),"leading"==e?this.leading&&this.leading(t):"string"==typeof r?this.node.setAttributeNS(r,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!=e&&"x"!=e||this.rebuild(e,t)}return this}}),n.extend(n.Element,{transform:function(e,t){var r,o,i=this;if("object"!=typeof e)return r=new n.Matrix(i).extract(),"string"==typeof e?r[e]:r;if(r=new n.Matrix(i),t=!!t||!!e.relative,null!=e.a)r=t?r.multiply(new n.Matrix(e)):new n.Matrix(e);else if(null!=e.rotation)m(e,i),r=t?r.rotate(e.rotation,e.cx,e.cy):r.rotate(e.rotation-r.extract().rotation,e.cx,e.cy);else if(null!=e.scale||null!=e.scaleX||null!=e.scaleY){if(m(e,i),e.scaleX=null!=e.scale?e.scale:null!=e.scaleX?e.scaleX:1,e.scaleY=null!=e.scale?e.scale:null!=e.scaleY?e.scaleY:1,!t){var a=r.extract();e.scaleX=1*e.scaleX/a.scaleX,e.scaleY=1*e.scaleY/a.scaleY}r=r.scale(e.scaleX,e.scaleY,e.cx,e.cy)}else null!=e.skew||null!=e.skewX||null!=e.skewY?(m(e,i),e.skewX=null!=e.skew?e.skew:null!=e.skewX?e.skewX:0,e.skewY=null!=e.skew?e.skew:null!=e.skewY?e.skewY:0,t||(a=r.extract(),r=r.multiply((new n.Matrix).skew(a.skewX,a.skewY,e.cx,e.cy).inverse())),r=r.skew(e.skewX,e.skewY,e.cx,e.cy)):e.flip?("x"==e.flip||"y"==e.flip?e.offset=null==e.offset?i.bbox()["c"+e.flip]:e.offset:null==e.offset?(o=i.bbox(),e.flip=o.cx,e.offset=o.cy):e.flip=e.offset,r=(new n.Matrix).flip(e.flip,e.offset)):null==e.x&&null==e.y||(t?r=r.translate(e.x,e.y):(null!=e.x&&(r.e=e.x),null!=e.y&&(r.f=e.y)));return this.attr("transform",r)}}),n.extend(n.FX,{transform:function(e,t){var r,o,i=this.target();return"object"!=typeof e?(r=new n.Matrix(i).extract(),"string"==typeof e?r[e]:r):(t=!!t||!!e.relative,null!=e.a?r=new n.Matrix(e):null!=e.rotation?(m(e,i),r=new n.Rotate(e.rotation,e.cx,e.cy)):null!=e.scale||null!=e.scaleX||null!=e.scaleY?(m(e,i),e.scaleX=null!=e.scale?e.scale:null!=e.scaleX?e.scaleX:1,e.scaleY=null!=e.scale?e.scale:null!=e.scaleY?e.scaleY:1,r=new n.Scale(e.scaleX,e.scaleY,e.cx,e.cy)):null!=e.skewX||null!=e.skewY?(m(e,i),e.skewX=null!=e.skewX?e.skewX:0,e.skewY=null!=e.skewY?e.skewY:0,r=new n.Skew(e.skewX,e.skewY,e.cx,e.cy)):e.flip?("x"==e.flip||"y"==e.flip?e.offset=null==e.offset?i.bbox()["c"+e.flip]:e.offset:null==e.offset?(o=i.bbox(),e.flip=o.cx,e.offset=o.cy):e.flip=e.offset,r=(new n.Matrix).flip(e.flip,e.offset)):null==e.x&&null==e.y||(r=new n.Translate(e.x,e.y)),r?(r.relative=t,this.last().transforms.push(r),this._callStart()):this)}}),n.extend(n.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(n.regex.transforms).slice(0,-1).map(function(e){var t=e.trim().split("(");return[t[0],t[1].split(n.regex.delimiter).map(function(e){return parseFloat(e)})]}).reduce(function(e,t){return"matrix"==t[0]?e.multiply(g(t[1])):e[t[0]].apply(e,t[1])},new n.Matrix)},toParent:function(e){if(this==e)return this;var t=this.screenCTM(),n=e.screenCTM().inverse();return this.addTo(e).untransform().transform(n.multiply(t)),this},toDoc:function(){return this.toParent(this.doc())}}),n.Transformation=n.invent({create:function(e,t){if(arguments.length>1&&"boolean"!=typeof t)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(e))for(var n=0,r=this.arguments.length;n<r;++n)this[this.arguments[n]]=e[n];else if("object"==typeof e)for(n=0,r=this.arguments.length;n<r;++n)this[this.arguments[n]]=e[this.arguments[n]];this.inversed=!1,!0===t&&(this.inversed=!0)},extend:{arguments:[],method:"",at:function(e){for(var t=[],r=0,o=this.arguments.length;r<o;++r)t.push(this[this.arguments[r]]);var i=this._undo||new n.Matrix;return i=(new n.Matrix).morph(n.Matrix.prototype[this.method].apply(i,t)).at(e),this.inversed?i.inverse():i},undo:function(e){for(var t=0,r=this.arguments.length;t<r;++t)e[this.arguments[t]]=void 0===this[this.arguments[t]]?0:e[this.arguments[t]];return e.cx=this.cx,e.cy=this.cy,this._undo=new(n[d(this.method)])(e,!0).at(1),this}}}),n.Translate=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(e,t){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),n.Rotate=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(e,t){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["rotation","cx","cy"],method:"rotate",at:function(e){var t=(new n.Matrix).rotate((new n.Number).morph(this.rotation-(this._undo?this._undo.rotation:0)).at(e),this.cx,this.cy);return this.inversed?t.inverse():t},undo:function(e){return this._undo=e,this}}}),n.Scale=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(e,t){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["scaleX","scaleY","cx","cy"],method:"scale"}}),n.Skew=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(e,t){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["skewX","skewY","cx","cy"],method:"skew"}}),n.extend(n.Element,{style:function(e,t){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"==typeof e)for(t in e)this.style(t,e[t]);else{if(!n.regex.isCss.test(e))return this.node.style[u(e)];for(e=e.split(/\s*;\s*/).filter(function(e){return!!e}).map(function(e){return e.split(/\s*:\s*/)});t=e.pop();)this.style(t[0],t[1])}else this.node.style[u(e)]=null===t||n.regex.isBlank.test(t)?"":t;return this}}),n.Parent=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Element,extend:{children:function(){return n.utils.map(n.utils.filterSVGElements(this.node.childNodes),function(e){return n.adopt(e)})},add:function(e,t){return null==t?this.node.appendChild(e.node):e.node!=this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this},put:function(e,t){return this.add(e,t),e},has:function(e){return this.index(e)>=0},index:function(e){return[].slice.call(this.node.childNodes).indexOf(e.node)},get:function(e){return n.adopt(this.node.childNodes[e])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(e,t){var r,o,i=this.children();for(r=0,o=i.length;r<o;r++)i[r]instanceof n.Element&&e.apply(i[r],[r,i]),t&&i[r]instanceof n.Container&&i[r].each(e,t);return this},removeElement:function(e){return this.node.removeChild(e.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),n.extend(n.Parent,{ungroup:function(e,t){return 0===t||this instanceof n.Defs||this.node==n.parser.draw||(e=e||(this instanceof n.Doc?this:this.parent(n.Parent)),t=t||1/0,this.each(function(){return this instanceof n.Defs?this:this instanceof n.Parent?this.ungroup(e,t-1):this.toParent(e)}),this.node.firstChild||this.remove()),this},flatten:function(e,t){return this.ungroup(e,t)}}),n.Container=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Parent}),n.ViewBox=n.invent({create:function(e){var t,r,o,i,a,s,l,c=1,u=1,d=/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/gi;if(e instanceof n.Element){for(s=e,l=e,a=(e.attr("viewBox")||"").match(d),e.bbox,o=new n.Number(e.width()),i=new n.Number(e.height());"%"==o.unit;)c*=o.value,o=new n.Number(s instanceof n.Doc?s.parent().offsetWidth:s.parent().width()),s=s.parent();for(;"%"==i.unit;)u*=i.value,i=new n.Number(l instanceof n.Doc?l.parent().offsetHeight:l.parent().height()),l=l.parent();this.x=0,this.y=0,this.width=o*c,this.height=i*u,this.zoom=1,a&&(t=parseFloat(a[0]),r=parseFloat(a[1]),o=parseFloat(a[2]),i=parseFloat(a[3]),this.zoom=this.width/this.height>o/i?this.height/i:this.width/o,this.x=t,this.y=r,this.width=o,this.height=i)}else e="string"==typeof e?e.match(d).map(function(e){return parseFloat(e)}):Array.isArray(e)?e:"object"==typeof e?[e.x,e.y,e.width,e.height]:4==arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=e[0],this.y=e[1],this.width=e[2],this.height=e[3]},extend:{toString:function(){return this.x+" "+this.y+" "+this.width+" "+this.height},morph:function(e,t,r,o){return this.destination=new n.ViewBox(e,t,r,o),this},at:function(e){return this.destination?new n.ViewBox([this.x+(this.destination.x-this.x)*e,this.y+(this.destination.y-this.y)*e,this.width+(this.destination.width-this.width)*e,this.height+(this.destination.height-this.height)*e]):this}},parent:n.Container,construct:{viewbox:function(e,t,r,o){return 0==arguments.length?new n.ViewBox(this):this.attr("viewBox",new n.ViewBox(e,t,r,o))}}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(e){n.Element.prototype[e]=function(t){return null==t?n.off(this,e):n.on(this,e,t),this}}),n.listenerId=0,n.on=function(e,t,r,o,i){var a=r.bind(o||e),s=e instanceof n.Element?e.node:e;s.instance=s.instance||{_events:{}};var l=s.instance._events;r._svgjsListenerId||(r._svgjsListenerId=++n.listenerId),t.split(n.regex.delimiter).forEach(function(e){var t=e.split(".")[0],n=e.split(".")[1]||"*";l[t]=l[t]||{},l[t][n]=l[t][n]||{},l[t][n][r._svgjsListenerId]=a,s.addEventListener(t,a,i||!1)})},n.off=function(e,t,r,o){var i=e instanceof n.Element?e.node:e;if(i.instance&&("function"!=typeof r||(r=r._svgjsListenerId))){var a=i.instance._events;(t||"").split(n.regex.delimiter).forEach(function(e){var t,s,l=e&&e.split(".")[0],c=e&&e.split(".")[1];if(r)a[l]&&a[l][c||"*"]&&(i.removeEventListener(l,a[l][c||"*"][r],o||!1),delete a[l][c||"*"][r]);else if(l&&c){if(a[l]&&a[l][c]){for(s in a[l][c])n.off(i,[l,c].join("."),s);delete a[l][c]}}else if(c)for(e in a)for(t in a[e])c===t&&n.off(i,[e,c].join("."));else if(l){if(a[l]){for(t in a[l])n.off(i,[l,t].join("."));delete a[l]}}else{for(e in a)n.off(i,e);i.instance._events={}}})}},n.extend(n.Element,{on:function(e,t,r,o){return n.on(this,e,t,r,o),this},off:function(e,t){return n.off(this.node,e,t),this},fire:function(t,r){return t instanceof e.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new n.CustomEvent(t,{detail:r,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),n.Defs=n.invent({create:"defs",inherit:n.Container}),n.G=n.invent({create:"g",inherit:n.Container,extend:{x:function(e){return null==e?this.transform("x"):this.transform({x:e-this.x()},!0)},y:function(e){return null==e?this.transform("y"):this.transform({y:e-this.y()},!0)},cx:function(e){return null==e?this.gbox().cx:this.x(e-this.gbox().width/2)},cy:function(e){return null==e?this.gbox().cy:this.y(e-this.gbox().height/2)},gbox:function(){var e=this.bbox(),t=this.transform();return e.x+=t.x,e.x2+=t.x,e.cx+=t.x,e.y+=t.y,e.y2+=t.y,e.cy+=t.y,e}},construct:{group:function(){return this.put(new n.G)}}}),n.Doc=n.invent({create:function(e){e&&("svg"==(e="string"==typeof e?t.getElementById(e):e).nodeName?this.constructor.call(this,e):(this.constructor.call(this,n.create("svg")),e.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:n.Container,extend:{namespace:function(){return this.attr({xmlns:n.ns,version:"1.1"}).attr("xmlns:xlink",n.xlink,n.xmlns).attr("xmlns:svgjs",n.svgjs,n.xmlns)},defs:function(){var e;return this._defs||((e=this.node.getElementsByTagName("defs")[0])?this._defs=n.adopt(e):this._defs=new n.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName&&"#document-fragment"!=this.node.parentNode.nodeName?this.node.parentNode:null},spof:function(){var e=this.node.getScreenCTM();return e&&this.style("left",-e.e%1+"px").style("top",-e.f%1+"px"),this},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,n.parser.draw.parentNode||this.node.appendChild(n.parser.draw),this},clone:function(e){this.writeDataToDom();var t=this.node,n=v(t.cloneNode(!0));return e?(e.node||e).appendChild(n.node):t.parentNode.insertBefore(n.node,t.nextSibling),n}}}),n.extend(n.Element,{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},previous:function(){return this.siblings()[this.position()-1]},forward:function(){var e=this.position()+1,t=this.parent();return t.removeElement(this).add(this,e),t instanceof n.Doc&&t.node.appendChild(t.defs().node),this},backward:function(){var e=this.position();return e>0&&this.parent().removeElement(this).add(this,e-1),this},front:function(){var e=this.parent();return e.node.appendChild(this.node),e instanceof n.Doc&&e.node.appendChild(e.defs().node),this},back:function(){return this.position()>0&&this.parent().removeElement(this).add(this,0),this},before:function(e){e.remove();var t=this.position();return this.parent().add(e,t),this},after:function(e){e.remove();var t=this.position();return this.parent().add(e,t+1),this}}),n.Mask=n.invent({create:function(){this.constructor.call(this,n.create("mask")),this.targets=[]},inherit:n.Container,extend:{remove:function(){for(var e=this.targets.length-1;e>=0;e--)this.targets[e]&&this.targets[e].unmask();return this.targets=[],n.Element.prototype.remove.call(this),this}},construct:{mask:function(){return this.defs().put(new n.Mask)}}}),n.extend(n.Element,{maskWith:function(e){return this.masker=e instanceof n.Mask?e:this.parent().mask().add(e),this.masker.targets.push(this),this.attr("mask",'url("#'+this.masker.attr("id")+'")')},unmask:function(){return delete this.masker,this.attr("mask",null)}}),n.ClipPath=n.invent({create:function(){this.constructor.call(this,n.create("clipPath")),this.targets=[]},inherit:n.Container,extend:{remove:function(){for(var e=this.targets.length-1;e>=0;e--)this.targets[e]&&this.targets[e].unclip();return this.targets=[],this.parent().removeElement(this),this}},construct:{clip:function(){return this.defs().put(new n.ClipPath)}}}),n.extend(n.Element,{clipWith:function(e){return this.clipper=e instanceof n.ClipPath?e:this.parent().clip().add(e),this.clipper.targets.push(this),this.attr("clip-path",'url("#'+this.clipper.attr("id")+'")')},unclip:function(){return delete this.clipper,this.attr("clip-path",null)}}),n.Gradient=n.invent({create:function(e){this.constructor.call(this,n.create(e+"Gradient")),this.type=e},inherit:n.Container,extend:{at:function(e,t,r){return this.put(new n.Stop).update(e,t,r)},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(e,t,r){return"transform"==e&&(e="gradientTransform"),n.Container.prototype.attr.call(this,e,t,r)}},construct:{gradient:function(e,t){return this.defs().gradient(e,t)}}}),n.extend(n.Gradient,n.FX,{from:function(e,t){return"radial"==(this._target||this).type?this.attr({fx:new n.Number(e),fy:new n.Number(t)}):this.attr({x1:new n.Number(e),y1:new n.Number(t)})},to:function(e,t){return"radial"==(this._target||this).type?this.attr({cx:new n.Number(e),cy:new n.Number(t)}):this.attr({x2:new n.Number(e),y2:new n.Number(t)})}}),n.extend(n.Defs,{gradient:function(e,t){return this.put(new n.Gradient(e)).update(t)}}),n.Stop=n.invent({create:"stop",inherit:n.Element,extend:{update:function(e){return("number"==typeof e||e instanceof n.Number)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new n.Number(e.offset)),this}}}),n.Pattern=n.invent({create:"pattern",inherit:n.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},toString:function(){return this.fill()},attr:function(e,t,r){return"transform"==e&&(e="patternTransform"),n.Container.prototype.attr.call(this,e,t,r)}},construct:{pattern:function(e,t,n){return this.defs().pattern(e,t,n)}}}),n.extend(n.Defs,{pattern:function(e,t,r){return this.put(new n.Pattern).update(r).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})}}),n.Shape=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Element}),n.Bare=n.invent({create:function(e,t){if(this.constructor.call(this,n.create(e)),t)for(var r in t.prototype)"function"==typeof t.prototype[r]&&(this[r]=t.prototype[r])},inherit:n.Element,extend:{words:function(e){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this.node.appendChild(t.createTextNode(e)),this}}}),n.extend(n.Parent,{element:function(e,t){return this.put(new n.Bare(e,t))}}),n.Symbol=n.invent({create:"symbol",inherit:n.Container,construct:{symbol:function(){return this.put(new n.Symbol)}}}),n.Use=n.invent({create:"use",inherit:n.Shape,extend:{element:function(e,t){return this.attr("href",(t||"")+"#"+e,n.xlink)}},construct:{use:function(e,t){return this.put(new n.Use).element(e,t)}}}),n.Rect=n.invent({create:"rect",inherit:n.Shape,construct:{rect:function(e,t){return this.put(new n.Rect).size(e,t)}}}),n.Circle=n.invent({create:"circle",inherit:n.Shape,construct:{circle:function(e){return this.put(new n.Circle).rx(new n.Number(e).divide(2)).move(0,0)}}}),n.extend(n.Circle,n.FX,{rx:function(e){return this.attr("r",e)},ry:function(e){return this.rx(e)}}),n.Ellipse=n.invent({create:"ellipse",inherit:n.Shape,construct:{ellipse:function(e,t){return this.put(new n.Ellipse).size(e,t).move(0,0)}}}),n.extend(n.Ellipse,n.Rect,n.FX,{rx:function(e){return this.attr("rx",e)},ry:function(e){return this.attr("ry",e)}}),n.extend(n.Circle,n.Ellipse,{x:function(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())},y:function(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())},cx:function(e){return null==e?this.attr("cx"):this.attr("cx",e)},cy:function(e){return null==e?this.attr("cy"):this.attr("cy",e)},width:function(e){return null==e?2*this.rx():this.rx(new n.Number(e).divide(2))},height:function(e){return null==e?2*this.ry():this.ry(new n.Number(e).divide(2))},size:function(e,t){var r=h(this,e,t);return this.rx(new n.Number(r.width).divide(2)).ry(new n.Number(r.height).divide(2))}}),n.Line=n.invent({create:"line",inherit:n.Shape,extend:{array:function(){return new n.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(e,t,r,o){return null==e?this.array():(e=void 0!==t?{x1:e,y1:t,x2:r,y2:o}:new n.PointArray(e).toLine(),this.attr(e))},move:function(e,t){return this.attr(this.array().move(e,t).toLine())},size:function(e,t){var n=h(this,e,t);return this.attr(this.array().size(n.width,n.height).toLine())}},construct:{line:function(e,t,r,o){return n.Line.prototype.plot.apply(this.put(new n.Line),null!=e?[e,t,r,o]:[0,0,0,0])}}}),n.Polyline=n.invent({create:"polyline",inherit:n.Shape,construct:{polyline:function(e){return this.put(new n.Polyline).plot(e||new n.PointArray)}}}),n.Polygon=n.invent({create:"polygon",inherit:n.Shape,construct:{polygon:function(e){return this.put(new n.Polygon).plot(e||new n.PointArray)}}}),n.extend(n.Polyline,n.Polygon,{array:function(){return this._array||(this._array=new n.PointArray(this.attr("points")))},plot:function(e){return null==e?this.array():this.clear().attr("points","string"==typeof e?e:this._array=new n.PointArray(e))},clear:function(){return delete this._array,this},move:function(e,t){return this.attr("points",this.array().move(e,t))},size:function(e,t){var n=h(this,e,t);return this.attr("points",this.array().size(n.width,n.height))}}),n.extend(n.Line,n.Polyline,n.Polygon,{morphArray:n.PointArray,x:function(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)},y:function(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)},width:function(e){var t=this.bbox();return null==e?t.width:this.size(e,t.height)},height:function(e){var t=this.bbox();return null==e?t.height:this.size(t.width,e)}}),n.Path=n.invent({create:"path",inherit:n.Shape,extend:{morphArray:n.PathArray,array:function(){return this._array||(this._array=new n.PathArray(this.attr("d")))},plot:function(e){return null==e?this.array():this.clear().attr("d","string"==typeof e?e:this._array=new n.PathArray(e))},clear:function(){return delete this._array,this},move:function(e,t){return this.attr("d",this.array().move(e,t))},x:function(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)},y:function(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)},size:function(e,t){var n=h(this,e,t);return this.attr("d",this.array().size(n.width,n.height))},width:function(e){return null==e?this.bbox().width:this.size(e,this.bbox().height)},height:function(e){return null==e?this.bbox().height:this.size(this.bbox().width,e)}},construct:{path:function(e){return this.put(new n.Path).plot(e||new n.PathArray)}}}),n.Image=n.invent({create:"image",inherit:n.Shape,extend:{load:function(t){if(!t)return this;var r=this,o=new e.Image;return n.on(o,"load",function(){n.off(o);var e=r.parent(n.Pattern);null!==e&&(0==r.width()&&0==r.height()&&r.size(o.width,o.height),e&&0==e.width()&&0==e.height()&&e.size(r.width(),r.height()),"function"==typeof r._loaded&&r._loaded.call(r,{width:o.width,height:o.height,ratio:o.width/o.height,url:t}))}),n.on(o,"error",function(e){n.off(o),"function"==typeof r._error&&r._error.call(r,e)}),this.attr("href",o.src=this.src=t,n.xlink)},loaded:function(e){return this._loaded=e,this},error:function(e){return this._error=e,this}},construct:{image:function(e,t,r){return this.put(new n.Image).load(e).size(t||0,r||t||0)}}}),n.Text=n.invent({create:function(){this.constructor.call(this,n.create("text")),this.dom.leading=new n.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",n.defaults.attrs["font-family"])},inherit:n.Shape,extend:{x:function(e){return null==e?this.attr("x"):this.attr("x",e)},y:function(e){var t=this.attr("y"),n="number"==typeof t?t-this.bbox().y:0;return null==e?"number"==typeof t?t-n:t:this.attr("y","number"==typeof e.valueOf()?e+n:e)},cx:function(e){return null==e?this.bbox().cx:this.x(e-this.bbox().width/2)},cy:function(e){return null==e?this.bbox().cy:this.y(e-this.bbox().height/2)},text:function(e){if(void 0===e){e="";for(var t=this.node.childNodes,r=0,o=t.length;r<o;++r)0!=r&&3!=t[r].nodeType&&1==n.adopt(t[r]).dom.newLined&&(e+="\n"),e+=t[r].textContent;return e}if(this.clear().build(!0),"function"==typeof e)e.call(this,this);else{r=0;for(var i=(e=e.split("\n")).length;r<i;r++)this.tspan(e[r]).newLine()}return this.build(!1).rebuild()},size:function(e){return this.attr("font-size",e).rebuild()},leading:function(e){return null==e?this.dom.leading:(this.dom.leading=new n.Number(e),this.rebuild())},lines:function(){var e=(this.textPath&&this.textPath()||this).node,t=n.utils.map(n.utils.filterSVGElements(e.childNodes),function(e){return n.adopt(e)});return new n.Set(t)},rebuild:function(e){if("boolean"==typeof e&&(this._rebuild=e),this._rebuild){var t=this,r=0,o=this.dom.leading*new n.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(t.textPath()||this.attr("x",t.attr("x")),"\n"==this.text()?r+=o:(this.attr("dy",o+r),r=0))}),this.fire("rebuild")}return this},build:function(e){return this._build=!!e,this},setData:function(e){return this.dom=e,this.dom.leading=new n.Number(e.leading||1.3),this}},construct:{text:function(e){return this.put(new n.Text).text(e)},plain:function(e){return this.put(new n.Text).plain(e)}}}),n.Tspan=n.invent({create:"tspan",inherit:n.Shape,extend:{text:function(e){return null==e?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof e?e.call(this,this):this.plain(e),this)},dx:function(e){return this.attr("dx",e)},dy:function(e){return this.attr("dy",e)},newLine:function(){var e=this.parent(n.Text);return this.dom.newLined=!0,this.dy(e.dom.leading*e.attr("font-size")).attr("x",e.x())}}}),n.extend(n.Text,n.Tspan,{plain:function(e){return!1===this._build&&this.clear(),this.node.appendChild(t.createTextNode(e)),this},tspan:function(e){var t=(this.textPath&&this.textPath()||this).node,r=new n.Tspan;return!1===this._build&&this.clear(),t.appendChild(r.node),r.text(e)},clear:function(){for(var e=(this.textPath&&this.textPath()||this).node;e.hasChildNodes();)e.removeChild(e.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),n.TextPath=n.invent({create:"textPath",inherit:n.Parent,parent:n.Text,construct:{morphArray:n.PathArray,path:function(e){for(var t=new n.TextPath,r=this.doc().defs().path(e);this.node.hasChildNodes();)t.node.appendChild(this.node.firstChild);return this.node.appendChild(t.node),t.attr("href","#"+r,n.xlink),this},array:function(){var e=this.track();return e?e.array():null},plot:function(e){var t=this.track(),n=null;return t&&(n=t.plot(e)),null==e?n:this},track:function(){var e=this.textPath();if(e)return e.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return n.adopt(this.node.firstChild)}}}),n.Nested=n.invent({create:function(){this.constructor.call(this,n.create("svg")),this.style("overflow","visible")},inherit:n.Container,construct:{nested:function(){return this.put(new n.Nested)}}}),n.A=n.invent({create:"a",inherit:n.Container,extend:{to:function(e){return this.attr("href",e,n.xlink)},show:function(e){return this.attr("show",e,n.xlink)},target:function(e){return this.attr("target",e)}},construct:{link:function(e){return this.put(new n.A).to(e)}}}),n.extend(n.Element,{linkTo:function(e){var t=new n.A;return"function"==typeof e?e.call(t,t):t.to(e),this.parent().put(t).put(this)}}),n.Marker=n.invent({create:"marker",inherit:n.Container,extend:{width:function(e){return this.attr("markerWidth",e)},height:function(e){return this.attr("markerHeight",e)},ref:function(e,t){return this.attr("refX",e).attr("refY",t)},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},toString:function(){return"url(#"+this.id()+")"}},construct:{marker:function(e,t,n){return this.defs().marker(e,t,n)}}}),n.extend(n.Defs,{marker:function(e,t,r){return this.put(new n.Marker).size(e,t).ref(e/2,t/2).viewbox(0,0,e,t).attr("orient","auto").update(r)}}),n.extend(n.Line,n.Polyline,n.Polygon,n.Path,{marker:function(e,t,r,o){var i=["marker"];return"all"!=e&&i.push(e),i=i.join("-"),e=arguments[1]instanceof n.Marker?arguments[1]:this.doc().marker(t,r,o),this.attr(i,e)}});var s={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(e,t){return"color"==t?e:e+"-"+t}};function l(e,t,r,o){return r+o.replace(n.regex.dots," .")}function c(e){for(var t=e.slice(0),n=t.length;n--;)Array.isArray(t[n])&&(t[n]=c(t[n]));return t}function u(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function d(e){return e.charAt(0).toUpperCase()+e.slice(1)}function p(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function h(e,t,n){if(null==t||null==n){var r=e.bbox();null==t?t=r.width/r.height*n:null==n&&(n=r.height/r.width*t)}return{width:t,height:n}}function f(e,t,n){return{x:t*e.a+n*e.c+0,y:t*e.b+n*e.d+0}}function g(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}function m(e,t){e.cx=null==e.cx?t.bbox().cx:e.cx,e.cy=null==e.cy?t.bbox().cy:e.cy}function v(t){for(var r=t.childNodes.length-1;r>=0;r--)t.childNodes[r]instanceof e.SVGElement&&v(t.childNodes[r]);return n.adopt(t).id(n.eid(t.nodeName))}function y(e){return null==e.x&&(e.x=0,e.y=0,e.width=0,e.height=0),e.w=e.width,e.h=e.height,e.x2=e.x+e.width,e.y2=e.y+e.height,e.cx=e.x+e.width/2,e.cy=e.y+e.height/2,e}function A(e){return Math.abs(e)>1e-37?e:0}["fill","stroke"].forEach(function(e){var t,r={};r[e]=function(r){if(void 0===r)return this;if("string"==typeof r||n.Color.isRgb(r)||r&&"function"==typeof r.fill)this.attr(e,r);else for(t=s[e].length-1;t>=0;t--)null!=r[s[e][t]]&&this.attr(s.prefix(e,s[e][t]),r[s[e][t]]);return this},n.extend(n.Element,n.FX,r)}),n.extend(n.Element,n.FX,{rotate:function(e,t,n){return this.transform({rotation:e,cx:t,cy:n})},skew:function(e,t,n,r){return 1==arguments.length||3==arguments.length?this.transform({skew:e,cx:t,cy:n}):this.transform({skewX:e,skewY:t,cx:n,cy:r})},scale:function(e,t,n,r){return 1==arguments.length||3==arguments.length?this.transform({scale:e,cx:t,cy:n}):this.transform({scaleX:e,scaleY:t,cx:n,cy:r})},translate:function(e,t){return this.transform({x:e,y:t})},flip:function(e,t){return t="number"==typeof e?e:t,this.transform({flip:e||"both",offset:t})},matrix:function(e){return this.attr("transform",new n.Matrix(6==arguments.length?[].slice.call(arguments):e))},opacity:function(e){return this.attr("opacity",e)},dx:function(e){return this.x(new n.Number(e).plus(this instanceof n.FX?0:this.x()),!0)},dy:function(e){return this.y(new n.Number(e).plus(this instanceof n.FX?0:this.y()),!0)},dmove:function(e,t){return this.dx(e).dy(t)}}),n.extend(n.Rect,n.Ellipse,n.Circle,n.Gradient,n.FX,{radius:function(e,t){var r=(this._target||this).type;return"radial"==r||"circle"==r?this.attr("r",new n.Number(e)):this.rx(e).ry(null==t?e:t)}}),n.extend(n.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(e){return this.node.getPointAtLength(e)}}),n.extend(n.Parent,n.Text,n.Tspan,n.FX,{font:function(e,t){if("object"==typeof e)for(t in e)this.font(t,e[t]);return"leading"==e?this.leading(t):"anchor"==e?this.attr("text-anchor",t):"size"==e||"family"==e||"weight"==e||"stretch"==e||"variant"==e||"style"==e?this.attr("font-"+e,t):this.attr(e,t)}}),n.Set=n.invent({create:function(e){e instanceof n.Set?this.members=e.members.slice():Array.isArray(e)?this.members=e:this.clear()},extend:{add:function(){var e,t,n=[].slice.call(arguments);for(e=0,t=n.length;e<t;e++)this.members.push(n[e]);return this},remove:function(e){var t=this.index(e);return t>-1&&this.members.splice(t,1),this},each:function(e){for(var t=0,n=this.members.length;t<n;t++)e.apply(this.members[t],[t,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(e){return this.index(e)>=0},index:function(e){return this.members.indexOf(e)},get:function(e){return this.members[e]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members},bbox:function(){if(0==this.members.length)return new n.RBox;var e=this.members[0].rbox(this.members[0].doc());return this.each(function(){e=e.merge(this.rbox(this.doc()))}),e}},construct:{set:function(e){return new n.Set(e)}}}),n.FX.Set=n.invent({create:function(e){this.set=e}}),n.Set.inherit=function(){var e=[];for(var t in n.Shape.prototype)"function"==typeof n.Shape.prototype[t]&&"function"!=typeof n.Set.prototype[t]&&e.push(t);for(var t in e.forEach(function(e){n.Set.prototype[e]=function(){for(var t=0,r=this.members.length;t<r;t++)this.members[t]&&"function"==typeof this.members[t][e]&&this.members[t][e].apply(this.members[t],arguments);return"animate"==e?this.fx||(this.fx=new n.FX.Set(this)):this}}),e=[],n.FX.prototype)"function"==typeof n.FX.prototype[t]&&"function"!=typeof n.FX.Set.prototype[t]&&e.push(t);e.forEach(function(e){n.FX.Set.prototype[e]=function(){for(var t=0,n=this.set.members.length;t<n;t++)this.set.members[t].fx[e].apply(this.set.members[t].fx,arguments);return this}})},n.extend(n.Element,{data:function(e,t,n){if("object"==typeof e)for(t in e)this.data(t,e[t]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+e))}catch(t){return this.attr("data-"+e)}else this.attr("data-"+e,null===t?null:!0===n||"string"==typeof t||"number"==typeof t?t:JSON.stringify(t));return this}}),n.extend(n.Element,{remember:function(e,t){if("object"==typeof arguments[0])for(var t in e)this.remember(t,e[t]);else{if(1==arguments.length)return this.memory()[e];this.memory()[e]=t}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this},memory:function(){return this._memory||(this._memory={})}}),n.get=function(e){var r=t.getElementById(function(e){var t=(e||"").toString().match(n.regex.reference);if(t)return t[1]}(e)||e);return n.adopt(r)},n.select=function(e,r){return new n.Set(n.utils.map((r||t).querySelectorAll(e),function(e){return n.adopt(e)}))},n.extend(n.Parent,{select:function(e){return n.select(e,this.node)}});var w="abcdef".split("");if("function"!=typeof e.CustomEvent){var b=function(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=t.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r};b.prototype=e.Event.prototype,n.CustomEvent=b}else n.CustomEvent=e.CustomEvent;return function(t){for(var n=0,r=["moz","webkit"],o=0;o<r.length&&!e.requestAnimationFrame;++o)t.requestAnimationFrame=t[r[o]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[r[o]+"CancelAnimationFrame"]||t[r[o]+"CancelRequestAnimationFrame"];t.requestAnimationFrame=t.requestAnimationFrame||function(e){var r=(new Date).getTime(),o=Math.max(0,16-(r-n)),i=t.setTimeout(function(){e(r+o)},o);return n=r+o,i},t.cancelAnimationFrame=t.cancelAnimationFrame||t.clearTimeout}(e),n}(o,o.document)}.call(t,n,t,e),void 0===r||(e.exports=r)},71158(e,t,n){"use strict";n.d(t,{A:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},2862(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,o=1;o<r;++o)t[o]=t[o].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function i(e){var r="[A-Za-z]",o="[0-9]",i=t(o,"[A-Fa-f]"),a=n(n("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+n("%[89A-Fa-f]"+i+"%"+i+i)+"|"+n("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",l=t("[\\:\\/\\?\\#\\[\\]\\@]",s),c=e?"[\\uE000-\\uF8FF]":"[]",u=t(r,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),d=n(r+t(r,o,"[\\+\\-\\.]")+"*"),p=n(n(a+"|"+t(u,s,"[\\:]"))+"*"),h=(n(n("25[0-5]")+"|"+n("2[0-4]"+o)+"|"+n("1"+o+o)+"|"+n("[1-9]"+o)+"|"+o),n(n("25[0-5]")+"|"+n("2[0-4]"+o)+"|"+n("1"+o+o)+"|"+n("0?[1-9]"+o)+"|0?0?"+o)),f=n(h+"\\."+h+"\\."+h+"\\."+h),g=n(i+"{1,4}"),m=n(n(g+"\\:"+g)+"|"+f),v=n(n(g+"\\:")+"{6}"+m),y=n("\\:\\:"+n(g+"\\:")+"{5}"+m),A=n(n(g)+"?\\:\\:"+n(g+"\\:")+"{4}"+m),w=n(n(n(g+"\\:")+"{0,1}"+g)+"?\\:\\:"+n(g+"\\:")+"{3}"+m),b=n(n(n(g+"\\:")+"{0,2}"+g)+"?\\:\\:"+n(g+"\\:")+"{2}"+m),_=n(n(n(g+"\\:")+"{0,3}"+g)+"?\\:\\:"+g+"\\:"+m),C=n(n(n(g+"\\:")+"{0,4}"+g)+"?\\:\\:"+m),E=n(n(n(g+"\\:")+"{0,5}"+g)+"?\\:\\:"+g),S=n(n(n(g+"\\:")+"{0,6}"+g)+"?\\:\\:"),O=n([v,y,A,w,b,_,C,E,S].join("|")),x=n(n(u+"|"+a)+"+"),D=(n(O+"\\%25"+x),n(O+n("\\%25|\\%(?!"+i+"{2})")+x)),P=n("[vV]"+i+"+\\."+t(u,s,"[\\:]")+"+"),M=n("\\["+n(D+"|"+O+"|"+P)+"\\]"),T=n(n(a+"|"+t(u,s))+"*"),R=n(M+"|"+f+"(?!"+T+")|"+T),I=n(o+"*"),F=n(n(p+"@")+"?"+R+n("\\:"+I)+"?"),k=n(a+"|"+t(u,s,"[\\:\\@]")),L=n(k+"*"),B=n(k+"+"),N=n(n(a+"|"+t(u,s,"[\\@]"))+"+"),j=n(n("\\/"+L)+"*"),U=n("\\/"+n(B+j)+"?"),V=n(N+j),H=n(B+j),G="(?!"+k+")",W=(n(j+"|"+U+"|"+V+"|"+H+"|"+G),n(n(k+"|"+t("[\\/\\?]",c))+"*")),z=n(n(k+"|[\\/\\?]")+"*"),$=n(n("\\/\\/"+F+j)+"|"+U+"|"+H+"|"+G),K=n(d+"\\:"+$+n("\\?"+W)+"?"+n("\\#"+z)+"?"),Q=n(n("\\/\\/"+F+j)+"|"+U+"|"+V+"|"+G),q=n(Q+n("\\?"+W)+"?"+n("\\#"+z)+"?");return n(K+"|"+q),n(d+"\\:"+$+n("\\?"+W)+"?"),n(n("\\/\\/("+n("("+p+")@")+"?("+R+")"+n("\\:("+I+")")+"?)")+"?("+j+"|"+U+"|"+H+"|"+G+")"),n("\\?("+W+")"),n("\\#("+z+")"),n(n("\\/\\/("+n("("+p+")@")+"?("+R+")"+n("\\:("+I+")")+"?)")+"?("+j+"|"+U+"|"+V+"|"+G+")"),n("\\?("+W+")"),n("\\#("+z+")"),n(n("\\/\\/("+n("("+p+")@")+"?("+R+")"+n("\\:("+I+")")+"?)")+"?("+j+"|"+U+"|"+H+"|"+G+")"),n("\\?("+W+")"),n("\\#("+z+")"),n("("+p+")@"),n("\\:("+I+")"),{NOT_SCHEME:new RegExp(t("[^]",r,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]",c),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,s),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,l),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+O+")"+n(n("\\%25|\\%(?!"+i+"{2})")+"("+x+")")+"?\\]?$")}}var a=i(!1),s=i(!0),l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},c=2147483647,u=36,d=/^xn--/,p=/[^\0-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=Math.floor,m=String.fromCharCode;function v(e){throw new RangeError(f[e])}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(h,".")).split("."),t).join(".")}var A=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:u},w=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},b=function(e,t,n){var r=0;for(e=n?g(e/700):e>>1,e+=g(e/t);e>455;r+=u)e=g(e/35);return g(r+36*e/(e+38))},_=function(e){return y(e,function(e){return p.test(e)?"xn--"+function(e){var t=[],n=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e)).length,r=128,o=0,i=72,a=!0,s=!1,l=void 0;try{for(var d,p=e[Symbol.iterator]();!(a=(d=p.next()).done);a=!0){var h=d.value;h<128&&t.push(m(h))}}catch(e){s=!0,l=e}finally{try{!a&&p.return&&p.return()}finally{if(s)throw l}}var f=t.length,y=f;for(f&&t.push("-");y<n;){var A=c,_=!0,C=!1,E=void 0;try{for(var S,O=e[Symbol.iterator]();!(_=(S=O.next()).done);_=!0){var x=S.value;x>=r&&x<A&&(A=x)}}catch(e){C=!0,E=e}finally{try{!_&&O.return&&O.return()}finally{if(C)throw E}}var D=y+1;A-r>g((c-o)/D)&&v("overflow"),o+=(A-r)*D,r=A;var P=!0,M=!1,T=void 0;try{for(var R,I=e[Symbol.iterator]();!(P=(R=I.next()).done);P=!0){var F=R.value;if(F<r&&++o>c&&v("overflow"),F==r){for(var k=o,L=u;;L+=u){var B=L<=i?1:L>=i+26?26:L-i;if(k<B)break;var N=k-B,j=u-B;t.push(m(w(B+N%j,0))),k=g(N/j)}t.push(m(w(k,0))),i=b(o,D,y==f),o=0,++y}}}catch(e){M=!0,T=e}finally{try{!P&&I.return&&I.return()}finally{if(M)throw T}}++o,++r}return t.join("")}(e):e})},C=function(e){return y(e,function(e){return d.test(e)?function(e){var t=[],n=e.length,r=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&v("not-basic"),t.push(e.charCodeAt(s));for(var l=a>0?a+1:0;l<n;){for(var d=r,p=1,h=u;;h+=u){l>=n&&v("invalid-input");var f=A(e.charCodeAt(l++));(f>=u||f>g((c-r)/p))&&v("overflow"),r+=f*p;var m=h<=i?1:h>=i+26?26:h-i;if(f<m)break;var y=u-m;p>g(c/y)&&v("overflow"),p*=y}var w=t.length+1;i=b(r-d,w,0==d),g(r/w)>c-o&&v("overflow"),o+=g(r/w),r%=w,t.splice(r++,0,o)}return String.fromCodePoint.apply(String,t)}(e.slice(4).toLowerCase()):e})},E={};function S(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function O(e){for(var t="",n=0,r=e.length;n<r;){var o=parseInt(e.substr(n+1,2),16);if(o<128)t+=String.fromCharCode(o),n+=3;else if(o>=194&&o<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&o)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(o>=224){if(r-n>=9){var a=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&a)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function x(e,t){function n(e){var n=O(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,S).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,S).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,S).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,S).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,S).replace(t.PCT_ENCODED,o)),e}function D(e){return e.replace(/^0*(.*)/,"$1")||"0"}function P(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=l(n,2)[1];return r?r.split(".").map(D).join("."):e}function M(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=l(n,3),o=r[1],i=r[2];if(o){for(var a=o.toLowerCase().split("::").reverse(),s=l(a,2),c=s[0],u=s[1],d=u?u.split(":").map(D):[],p=c.split(":").map(D),h=t.IPV4ADDRESS.test(p[p.length-1]),f=h?7:8,g=p.length-f,m=Array(f),v=0;v<f;++v)m[v]=d[v]||p[g+v]||"";h&&(m[f-1]=P(m[f-1],t));var y=m.reduce(function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e},[]).sort(function(e,t){return t.length-e.length})[0],A=void 0;if(y&&y.length>1){var w=m.slice(0,y.index),b=m.slice(y.index+y.length);A=w.join(":")+"::"+b.join(":")}else A=m.join(":");return i&&(A+="%"+i),A}return e}var T=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,R=void 0==="".match(/(){0}/)[1];function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?s:a;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(T);if(o){R?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||void 0,n.userinfo=-1!==e.indexOf("@")?o[3]:void 0,n.host=-1!==e.indexOf("//")?o[4]:void 0,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:void 0,n.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),n.host&&(n.host=M(P(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=E[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)x(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=_(n.host.replace(r.PCT_ENCODED,O).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}x(n,a)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}var F=/^\.\.?\//,k=/^\/\.(\/|$)/,L=/^\/\.\.(\/|$)/,B=/^\/?(?:.|\n)*?(?=\/|$)/;function N(e){for(var t=[];e.length;)if(e.match(F))e=e.replace(F,"");else if(e.match(k))e=e.replace(k,"/");else if(e.match(L))e=e.replace(L,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(B);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?s:a,r=[],o=E[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?C(e.host):_(e.host.replace(n.PCT_ENCODED,O).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}x(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=function(e,t){var n=!1!==t.iri?s:a,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(M(P(String(e.host),n),n).replace(n.IPV6ADDRESS,function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"})),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var l=e.path;t.absolutePath||o&&o.absolutePath||(l=N(l)),void 0===i&&(l=l.replace(/^\/\//,"/%2F")),r.push(l)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=I(j(e,n),n),t=I(j(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=N(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=N(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=N(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=N(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function V(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:a.PCT_ENCODED,O)}var H={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},G={scheme:"https",domainHost:H.domainHost,parse:H.parse,serialize:H.serialize};function W(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var z={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=W(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(W(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=l(n,2),o=r[0],i=r[1];e.path=o&&"/"!==o?o:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},$={scheme:"wss",domainHost:z.domainHost,parse:z.parse,serialize:z.serialize},K={},Q="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",q="[0-9A-Fa-f]",Y=n(n("%[EFef]"+q+"%"+q+q+"%"+q+q)+"|"+n("%[89A-Fa-f]"+q+"%"+q+q)+"|"+n("%"+q+q)),X=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Z=new RegExp(Q,"g"),J=new RegExp(Y,"g"),ee=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',X),"g"),te=new RegExp(t("[^]",Q,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ne=te;function re(e){var t=O(e);return t.match(Z)?t:e}var oe={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var o=!1,i={},a=n.query.split("&"),s=0,l=a.length;s<l;++s){var c=a[s].split("=");switch(c[0]){case"to":for(var u=c[1].split(","),d=0,p=u.length;d<p;++d)r.push(u[d]);break;case"subject":n.subject=V(c[1],t);break;case"body":n.body=V(c[1],t);break;default:o=!0,i[V(c[0],t)]=V(c[1],t)}}o&&(n.headers=i)}n.query=void 0;for(var h=0,f=r.length;h<f;++h){var g=r[h].split("@");if(g[0]=V(g[0]),t.unicodeSupport)g[1]=V(g[1],t).toLowerCase();else try{g[1]=_(V(g[1],t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[h]=g.join("@")}return n},serialize:function(e,t){var n,r=e,i=null!=(n=e.to)?n instanceof Array?n:"number"!=typeof n.length||n.split||n.setInterval||n.call?[n]:Array.prototype.slice.call(n):[];if(i){for(var a=0,s=i.length;a<s;++a){var l=String(i[a]),c=l.lastIndexOf("@"),u=l.slice(0,c).replace(J,re).replace(J,o).replace(ee,S),d=l.slice(c+1);try{d=t.iri?C(d):_(V(d,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}i[a]=u+"@"+d}r.path=i.join(",")}var p=e.headers=e.headers||{};e.subject&&(p.subject=e.subject),e.body&&(p.body=e.body);var h=[];for(var f in p)p[f]!==K[f]&&h.push(f.replace(J,re).replace(J,o).replace(te,S)+"="+p[f].replace(J,re).replace(J,o).replace(ne,S));return h.length&&(r.query=h.join("&")),r}},ie=/^([^\:]+)\:(.*)/,ae={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(ie),r=e;if(n){var o=t.scheme||r.scheme||"urn",i=n[1].toLowerCase(),a=n[2],s=o+":"+(t.nid||i),l=E[s];r.nid=i,r.nss=a,r.path=void 0,l&&(r=l.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,o=n+":"+(t.nid||r),i=E[o];i&&(e=i.serialize(e,t));var a=e,s=e.nss;return a.path=(r||t.nid)+":"+s,a}},se=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,le={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(se)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};E[H.scheme]=H,E[G.scheme]=G,E[z.scheme]=z,E[$.scheme]=$,E[oe.scheme]=oe,E[ae.scheme]=ae,E[le.scheme]=le,e.SCHEMES=E,e.pctEncChar=S,e.pctDecChars=O,e.parse=I,e.removeDotSegments=N,e.serialize=j,e.resolveComponents=U,e.resolve=function(e,t,n){var r=function(e,t){var n={scheme:"null"};if(t)for(var r in t)n[r]=t[r];return n}(0,n);return j(U(I(e,r),I(t,r),r,!0),r)},e.normalize=function(e,t){return"string"==typeof e?e=j(I(e,t),t):"object"===r(e)&&(e=I(j(e,t),t)),e},e.equal=function(e,t,n){return"string"==typeof e?e=j(I(e,n),n):"object"===r(e)&&(e=j(e,n)),"string"==typeof t?t=j(I(t,n),n):"object"===r(t)&&(t=j(t,n)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?s.ESCAPE:a.ESCAPE,S)},e.unescapeComponent=V,Object.defineProperty(e,"__esModule",{value:!0})}(t)},10646(e){"use strict";e.exports=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},43225(e){"use strict";e.exports=function(e){return"function"==typeof e}},50709(e,t,n){"use strict";var r=n(10646),o=n(70925);e.exports=function(e){var t;if(!r(e))return!1;if(!(t=e.length))return!1;for(var n=0;n<t;n++)if(!o(e[n]))return!1;return!0}},70925(e,t,n){"use strict";var r=n(72100);e.exports=function(e){return r(e)&&e%1==0}},72100(e){"use strict";e.exports=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()}},64674(e){"use strict";e.exports=function(){}},96298(e,t,n){var r={"./amp/128px.svg":24328,"./amp/16px.svg":93180,"./amp/2021.svg":83756,"./amp/256px.svg":29064,"./amp/32px.svg":43078,"./amp/512px.svg":17911,"./amp/64px.svg":13223,"./amp/ampp-plus.svg":65104,"./amp/light-32px.svg":47191,"./animation/add.svg":93510,"./animation/auto.svg":17948,"./animation/delete.svg":41324,"./animation/next.svg":3530,"./animation/previous.svg":38670,"./animation/reset.svg":56826,"./application/asset-management.svg":76605,"./application/audio-mixer.svg":56385,"./application/audio-production.svg":18051,"./application/av-mux.svg":40573,"./application/capturing.svg":85096,"./application/clean-cut.svg":19915,"./application/clip-play.svg":67418,"./application/clip-player.svg":82083,"./application/clip-record.svg":43547,"./application/control-ampp.svg":39271,"./application/creative-grading.svg":34361,"./application/delay.svg":42306,"./application/flow-monitor.svg":67900,"./application/graphics.svg":88670,"./application/grassvalley-camera-grading.svg":23147,"./application/grassvalley-camera-ldx.svg":98507,"./application/grassvalley-camera-wireless.svg":14485,"./application/grassvalley-camera.svg":22372,"./application/gvui-simple-rev2.svg":9987,"./application/gvui-simple.svg":50595,"./application/gvui.svg":66404,"./application/input.svg":55375,"./application/intercom.svg":33300,"./application/k-frame-LUT.svg":31960,"./application/k-frame-asset.svg":60635,"./application/k-frame-mirror-v2.svg":99197,"./application/k-frame-mirror.svg":72420,"./application/k-frame-plain.svg":87131,"./application/k-frame-watch.svg":62858,"./application/k-frame.svg":95232,"./application/live-producer.svg":19942,"./application/master-control.svg":89407,"./application/monitoring.svg":86795,"./application/multi-viewer.svg":20847,"./application/node-manager.svg":24631,"./application/output.svg":31830,"./application/play-and-record.svg":87483,"./application/playlist.svg":77787,"./application/playout-archive-cloud.svg":56080,"./application/playout-audio-cloud.svg":13876,"./application/playout-video-cloud.svg":65107,"./application/playout.svg":90573,"./application/processing.svg":15828,"./application/production-switching.svg":72883,"./application/replay-ingest.svg":28409,"./application/replay-playout.svg":49837,"./application/replay.svg":68192,"./application/solocaster.svg":73380,"./application/stratus.svg":15529,"./application/test-signal.svg":52742,"./application/tools.svg":68402,"./arrows/back-button.svg":76397,"./arrows/back.svg":79288,"./arrows/down-small.svg":60411,"./arrows/down.svg":41577,"./arrows/forward-button.svg":51065,"./arrows/forward.svg":18892,"./arrows/left-2.svg":80515,"./arrows/left-small.svg":72920,"./arrows/left.svg":35986,"./arrows/nudge-down.svg":52947,"./arrows/nudge-up.svg":29548,"./arrows/page-first.svg":58573,"./arrows/page-last.svg":48601,"./arrows/point-down.svg":18194,"./arrows/point-left.svg":38425,"./arrows/point-right.svg":41924,"./arrows/point-up.svg":55777,"./arrows/right-2.svg":1056,"./arrows/right-small.svg":52379,"./arrows/right.svg":27433,"./arrows/up-small.svg":39436,"./arrows/up.svg":73126,"./audio/audio-disable.svg":97874,"./audio/audio.svg":1429,"./audio/aux-one.svg":77862,"./audio/aux-two.svg":42704,"./audio/crossfade.svg":56845,"./audio/cut.svg":60019,"./audio/edit.svg":54693,"./audio/expand-left.svg":59429,"./audio/expand-right.svg":40328,"./audio/expand.svg":37553,"./audio/levels.svg":34088,"./audio/one.svg":20371,"./audio/options.svg":75773,"./audio/slip.svg":2807,"./audio/track-add-horizontal.svg":50737,"./audio/track-add-vertical.svg":5463,"./audio/track-add.svg":9716,"./audio/two.svg":43889,"./audio/v-fade.svg":84584,"./audio/voice-over.svg":19532,"./bookmark/add.svg":42632,"./bookmark/bookmark-show.svg":73315,"./bookmark/bookmark.svg":37815,"./bookmark/delete.svg":92610,"./bookmark/deselect.svg":58690,"./bookmark/disabled.svg":51275,"./bookmark/hide.svg":66147,"./bookmark/next.svg":60508,"./bookmark/previous.svg":49524,"./bookmark/rename.svg":13085,"./bookmark/sort.svg":83063,"./bookmark/toggle.svg":84715,"./branding/ampp.svg":40134,"./branding/docker.svg":14196,"./branding/favicon-old.svg":19952,"./branding/gv2021.svg":82130,"./branding/gv2021default.svg":87705,"./branding/loginscreen-old.svg":92459,"./branding/menubar-old.svg":58816,"./branding/screensaver-old.svg":14763,"./branding/test.svg":228,"./branding/white.svg":28903,"./checkbox/hidden.svg":45658,"./checkbox/minus.svg":24334,"./checkbox/off.svg":33041,"./checkbox/on.svg":80541,"./comment/add.svg":40563,"./comment/comment.svg":37581,"./effects/alpha.svg":93475,"./effects/bottom.svg":65e3,"./effects/centre.svg":48004,"./effects/crop.svg":38327,"./effects/distribute-horizontally.svg":61940,"./effects/distribute-vertically.svg":71026,"./effects/effects-reset.svg":90903,"./effects/effects.svg":79377,"./effects/fx-folders.svg":88403,"./effects/fx.svg":98523,"./effects/image-blur.svg":97658,"./effects/image-refresh.svg":35410,"./effects/keyframe-add.svg":65503,"./effects/keyframe-delete.svg":26891,"./effects/keyframe-next.svg":83913,"./effects/keyframe-previous.svg":13321,"./effects/left.svg":6362,"./effects/magic-wand.svg":60165,"./effects/middle.svg":12822,"./effects/opacity.svg":40708,"./effects/pixelate.svg":1677,"./effects/right.svg":19889,"./effects/scale-large.svg":8035,"./effects/scale-medium.svg":1567,"./effects/scale-small.svg":99783,"./effects/scale.svg":48805,"./effects/speed-1.svg":71908,"./effects/speed-2.svg":26359,"./effects/top.svg":402,"./effects/transform.svg":61459,"./effects/transparent.svg":8609,"./ex/departures-ui.svg":83708,"./ex/digital-ui.svg":94097,"./ex/sports-ui.svg":25086,"./ex/timeplane-ui.svg":21620,"./file/add-to-folder.svg":16749,"./file/append.svg":4773,"./file/archive-restore.svg":80372,"./file/archive-rights.svg":65703,"./file/archive.svg":45821,"./file/asset-analyze.svg":41792,"./file/asset-operation.svg":21919,"./file/asset.svg":20915,"./file/audio.svg":51257,"./file/bucket-s3.svg":47338,"./file/copy-failed.svg":27768,"./file/copy-success.svg":28268,"./file/copy.svg":24266,"./file/document.svg":56934,"./file/file-1.svg":78701,"./file/file-2.svg":49582,"./file/file-3.svg":54335,"./file/file-4.svg":12128,"./file/file-5.svg":58577,"./file/file-6.svg":4034,"./file/file-7.svg":66675,"./file/file-8.svg":28132,"./file/file-9.svg":82853,"./file/file-delete.svg":429,"./file/file-new.svg":39342,"./file/file.svg":83339,"./file/folder-add.svg":38723,"./file/folder-effects.svg":23044,"./file/folder-empty-1.svg":42151,"./file/folder-empty-2.svg":70644,"./file/folder-empty-3.svg":15573,"./file/folder-empty-4.svg":60298,"./file/folder-empty-5.svg":2267,"./file/folder-empty-6.svg":20904,"./file/folder-empty-7.svg":86297,"./file/folder-empty-8.svg":16478,"./file/folder-empty-9.svg":79055,"./file/folder-empty.svg":29349,"./file/folder-faviourates.svg":96595,"./file/folder-full.svg":18153,"./file/folder-not-allowed.svg":69350,"./file/folder-searches.svg":50102,"./file/folder-up.svg":99389,"./file/folder-watch-disabled.svg":79620,"./file/folder-watch.svg":55635,"./file/formats.svg":46043,"./file/ftp-transfer.svg":81983,"./file/image.svg":14820,"./file/insert.svg":10834,"./file/inspector.svg":26768,"./file/jobs-user.svg":27859,"./file/jobs.svg":82237,"./file/load.svg":15525,"./file/paste-child.svg":42527,"./file/paste-failed.svg":5564,"./file/paste-sibling.svg":29707,"./file/paste-successful.svg":28017,"./file/paste-top.svg":18436,"./file/paste.svg":4974,"./file/premiere.svg":62704,"./file/refresh.svg":30942,"./file/render.svg":97873,"./file/rules-isa.svg":50736,"./file/rules-lt.svg":92403,"./file/s3-cloud.svg":92323,"./file/save.svg":42086,"./file/schedule.svg":41242,"./file/transcode.svg":10950,"./file/video.svg":73790,"./hardware/K2.svg":30636,"./hardware/buttons-hardware.svg":62467,"./hardware/calculator.svg":80259,"./hardware/computer-signal.svg":97545,"./hardware/computer.svg":21716,"./hardware/device-connected.svg":4295,"./hardware/edit.svg":87095,"./hardware/keyboard-disabled.svg":44741,"./hardware/keyboard.svg":81104,"./hardware/power-auto.svg":79106,"./hardware/power-off.svg":11222,"./hardware/power-on.svg":26112,"./hardware/satellite.svg":85490,"./hardware/server-2.svg":80667,"./hardware/server-3-screen.svg":86295,"./hardware/server-audio.svg":4471,"./hardware/server-front.svg":87028,"./hardware/server-video.svg":28376,"./hardware/server.svg":17562,"./hardware/server2-offline.svg":53966,"./hardware/server2.svg":36452,"./hardware/servers-hide.svg":80842,"./hardware/servers-show.svg":2353,"./hardware/signal-disabled.svg":56800,"./hardware/signal.svg":19391,"./hardware/storage-locations.svg":67061,"./hardware/sums.svg":90175,"./hardware/tape.svg":80963,"./hardware/tv.svg":47185,"./image/align-horizontal.svg":2898,"./image/align-vertically.svg":33045,"./image/camera.svg":36891,"./image/graphic.svg":69978,"./image/image.svg":99733,"./image/pen.svg":2943,"./image/placeholder-add.svg":48919,"./image/placeholder.svg":47253,"./image/repeat.svg":16119,"./interface/button-disabled-dark.svg":64154,"./interface/button-disabled.svg":84505,"./interface/close-enclosed.svg":78284,"./interface/close.svg":30356,"./interface/delete.svg":68361,"./interface/dock-left.svg":47969,"./interface/dock-right.svg":3980,"./interface/drag-horizontal.svg":66411,"./interface/drag-vertical.svg":92721,"./interface/eye-disabled.svg":39680,"./interface/eye.svg":33311,"./interface/filter-settings.svg":1280,"./interface/filter.svg":6910,"./interface/group-add.svg":7067,"./interface/hidden.svg":24756,"./interface/link-broken.svg":21306,"./interface/link.svg":3200,"./interface/linked-clips.svg":79073,"./interface/list.svg":344,"./interface/minus.svg":82680,"./interface/move-down.svg":46172,"./interface/move-up.svg":42967,"./interface/move.svg":69399,"./interface/new-group.svg":13360,"./interface/not-allowed.svg":59244,"./interface/options-open-left.svg":76515,"./interface/options-open-right.svg":89990,"./interface/options.svg":8202,"./interface/overview-plus.svg":5914,"./interface/plus-simple.svg":74647,"./interface/plus.svg":65968,"./interface/popout.svg":45059,"./interface/redo.svg":27032,"./interface/save-as.svg":95776,"./interface/save-database.svg":74087,"./interface/save-events.svg":84123,"./interface/save.svg":16231,"./interface/selection.svg":66202,"./interface/snap-arrow-left.svg":30170,"./interface/snap-arrow-right.svg":22545,"./interface/thumbs-down.svg":25272,"./interface/thumbs-up.svg":18251,"./interface/tick-enclosed-green.svg":72003,"./interface/tick-enclosed.svg":92757,"./interface/tick.svg":93447,"./interface/tracks-add.svg":19954,"./interface/tracks.svg":9932,"./interface/undo.svg":32474,"./interface/unlinked-clips.svg":58644,"./interface/upgrade-force.svg":86186,"./interface/upgrade.svg":85980,"./interface/view-thumbnails.svg":53491,"./letters-numbers/1.svg":36498,"./letters-numbers/10.svg":14958,"./letters-numbers/2.svg":18241,"./letters-numbers/3.svg":3440,"./letters-numbers/4.svg":20911,"./letters-numbers/5.svg":58334,"./letters-numbers/6.svg":70429,"./letters-numbers/7.svg":41884,"./letters-numbers/8.svg":44123,"./letters-numbers/9.svg":2154,"./letters-numbers/A.svg":13922,"./letters-numbers/B.svg":34289,"./letters-numbers/C.svg":98336,"./letters-numbers/D.svg":64223,"./letters-numbers/E.svg":35790,"./letters-numbers/F.svg":84141,"./letters-numbers/P.svg":13763,"./letters-numbers/i.svg":71258,"./letters-numbers/o.svg":81188,"./letters/a-enclosed.svg":52005,"./letters/i.svg":81215,"./letters/o.svg":85457,"./marker/add.svg":80410,"./marker/disable.svg":54455,"./marker/in-out.svg":45595,"./marker/marker.svg":40835,"./marker/next.svg":62430,"./marker/previous.svg":79338,"./misc/ANC-rev2.svg":32257,"./misc/ANC.svg":62289,"./misc/MPP.svg":50028,"./misc/NDI.svg":9834,"./misc/apple.svg":27257,"./misc/black.svg":1880,"./misc/bug-accept.svg":96940,"./misc/bug-error.svg":18174,"./misc/bxf-list-locked.svg":23201,"./misc/bxf-list-unlocked.svg":11660,"./misc/bxf-locked-unlocked.svg":19594,"./misc/bxf-locked.svg":47520,"./misc/cache-inactive.svg":40183,"./misc/cache.svg":98195,"./misc/cascade.svg":58203,"./misc/channel-1.svg":51086,"./misc/channel-2.svg":34061,"./misc/channel-3.svg":86700,"./misc/channel-4.svg":92915,"./misc/coins-disabled.svg":56068,"./misc/coins.svg":37907,"./misc/departures-ui.svg":79047,"./misc/digital-channels-ui.svg":6005,"./misc/evergreen.svg":32928,"./misc/helicopter.svg":95852,"./misc/hotlist-add.svg":49494,"./misc/light-disabled.svg":96110,"./misc/light.svg":36145,"./misc/lightning-disabled.svg":56444,"./misc/lightning.svg":89163,"./misc/link-broken.svg":39295,"./misc/map.svg":99775,"./misc/monitor-1.svg":42737,"./misc/monitor-2.svg":85634,"./misc/monitor-3.svg":89363,"./misc/monitor-4.svg":66796,"./misc/nodes.svg":17090,"./misc/overview.svg":98346,"./misc/pay-as-you-go.svg":39445,"./misc/pin-disable.svg":48427,"./misc/pin.svg":94536,"./misc/poc.svg":91303,"./misc/rocket.svg":26667,"./misc/rule-add.svg":76047,"./misc/rule.svg":47261,"./misc/rundown-inactive.svg":69276,"./misc/rundown-show.svg":77744,"./misc/rundown.svg":80922,"./misc/sports-ui.svg":7973,"./misc/subscription.svg":52760,"./misc/touch-disable.svg":77567,"./misc/touch.svg":93916,"./misc/truck.svg":19668,"./misc/wait.svg":92356,"./misc/web.svg":66039,"./misc/white.svg":19670,"./misc/windows.svg":38778,"./misc/workflows-2.svg":56674,"./misc/workflows-trigger.svg":42700,"./misc/workflows.svg":2327,"./notifications/alarm-active-danger.svg":19319,"./notifications/alarm-inactive.svg":17712,"./notifications/alarm.svg":48782,"./notifications/alarms-list.svg":29330,"./notifications/auto.svg":14666,"./notifications/crown-enable.svg":31656,"./notifications/crown-inactive.svg":27778,"./notifications/crown.svg":96360,"./notifications/danger-colour.svg":87843,"./notifications/danger.svg":14978,"./notifications/faviourates-group.svg":98062,"./notifications/flag.svg":19101,"./notifications/heart-inactive.svg":20997,"./notifications/heart.svg":12745,"./notifications/info-blue.svg":20140,"./notifications/info-colour.svg":23220,"./notifications/info.svg":35159,"./notifications/jobs.svg":83039,"./notifications/key-default.svg":68188,"./notifications/key-disabled.svg":60409,"./notifications/lock-all.svg":30964,"./notifications/lock-closed.svg":63119,"./notifications/lock-open.svg":46003,"./notifications/lock-settings.svg":76952,"./notifications/monitor.svg":26875,"./notifications/next-error-down.svg":64882,"./notifications/next-error-left.svg":80985,"./notifications/next-error-right.svg":32324,"./notifications/next-error-up.svg":73537,"./notifications/next-warning-down.svg":98448,"./notifications/next-warning-left.svg":59199,"./notifications/next-warning-right.svg":9754,"./notifications/next-warning-up.svg":33187,"./notifications/pending.svg":79812,"./notifications/protected-reverved.svg":76363,"./notifications/question-mark.svg":32683,"./notifications/star-2.svg":59718,"./notifications/star-3.svg":65047,"./notifications/star.svg":43859,"./notifications/success-colour.svg":89405,"./notifications/tag-live.svg":64696,"./notifications/tx-ready-not-ready.svg":73599,"./notifications/tx-ready.svg":44617,"./notifications/unlock-all.svg":81249,"./notifications/warning-colour.svg":92222,"./notifications/warning-triangle.svg":15658,"./notifications/warning.svg":47237,"./player/add-to-timeline.svg":38945,"./player/create-snapshot.svg":1955,"./player/eject.svg":74821,"./player/elastic-recorder-off.svg":94678,"./player/elastic-recorder.svg":86038,"./player/end-minus.svg":33590,"./player/end-plus.svg":72254,"./player/end.svg":17141,"./player/fast-forward.svg":41252,"./player/frame-backwards.svg":43108,"./player/frame-forwards.svg":44372,"./player/full-screen.svg":96098,"./player/go-to-end.svg":24934,"./player/go-to-in.svg":6234,"./player/go-to-out.svg":30157,"./player/go-to-start.svg":95085,"./player/hotspots.svg":25694,"./player/hud-disabled.svg":26962,"./player/hud-enabled.svg":79289,"./player/in-out-remove.svg":5757,"./player/manual-nominal-start.svg":74512,"./player/mark-in.svg":91295,"./player/mark-out.svg":10346,"./player/parent-duration.svg":51279,"./player/pause.svg":55852,"./player/play-in-out.svg":37595,"./player/play.svg":43268,"./player/playback-looped.svg":75239,"./player/record-prepare.svg":90335,"./player/record-prepear.svg":68489,"./player/record-settings.svg":21681,"./player/record.svg":47133,"./player/rewind-10.svg":68567,"./player/rewind-30.svg":23645,"./player/rewind.svg":66091,"./player/source-tracks.svg":99126,"./player/speed-1x.svg":23979,"./player/speed-2x.svg":16086,"./player/speed-3x.svg":20593,"./player/speed-4x.svg":13916,"./player/speed-5x.svg":82143,"./player/speed-6x.svg":66938,"./player/speed-7x.svg":53973,"./player/speed-8x.svg":19808,"./player/start-minus.svg":64757,"./player/start-plus.svg":26487,"./player/stop.svg":39102,"./player/subclip.svg":82186,"./player/waveform-disable.svg":98840,"./player/waveform.svg":57891,"./search/dropdown.svg":58560,"./search/next.svg":59584,"./search/previous.svg":64928,"./search/search-default.svg":87587,"./search/search-dropdown.svg":14059,"./search/search-faviourate.svg":32614,"./search/search-next.svg":92039,"./search/search-previous.svg":22851,"./search/search.svg":14315,"./search/zoom-in.svg":17914,"./search/zoom-out.svg":94477,"./settings/accounts.svg":83518,"./settings/admin.svg":72643,"./settings/channelsettings.svg":35840,"./settings/home.svg":42415,"./settings/options-components.svg":35613,"./settings/preferences.svg":70392,"./settings/screwdriver-wrench.svg":23790,"./settings/tool-settings.svg":32466,"./settings/tools.svg":42703,"./settings/user-add.svg":30017,"./settings/user-headset.svg":82350,"./settings/user-menubar.svg":12664,"./settings/user-only.svg":85070,"./settings/user-settings.svg":60775,"./settings/user-tools.svg":329,"./settings/user-unknown.svg":80534,"./social/email-send.svg":44163,"./social/facebook.svg":56132,"./social/instagram.svg":11540,"./social/ready.svg":2197,"./social/share.svg":55961,"./social/snapchat.svg":76798,"./social/twitter.svg":79765,"./sport/cycling.svg":28508,"./sport/football.svg":76714,"./sport/golf.svg":22361,"./sport/running.svg":8542,"./sport/swimming.svg":1050,"./sport/tennis.svg":38212,"./table/break-collapse.svg":33148,"./table/break-expand.svg":75045,"./table/collapse-all-breaks.svg":8865,"./table/container-expand.svg":92181,"./table/contanier-collapse.svg":83150,"./table/disable-selected-event-group.svg":2576,"./table/disable-selected-event.svg":24330,"./table/enable-selected-event-group.svg":2457,"./table/enable-selected-event.svg":97407,"./table/exapnd-all.svg":90923,"./table/expand-all-breaks.svg":65822,"./table/highlight-clear.svg":92917,"./table/highlight.svg":22253,"./table/secondaries-collapse.svg":62925,"./table/secondaries-expand.svg":5024,"./table/secondaries-hide.svg":35848,"./table/secondaries-show.svg":61019,"./table/show-collapse.svg":1872,"./table/show-expand.svg":71857,"./table/sort-aescending-table-headers.svg":87387,"./table/sort-ascending.svg":41978,"./table/sort-descending-table-headers.svg":4752,"./table/sort-descending.svg":62154,"./table/tree-close.svg":9076,"./table/tree-open.svg":13048,"./table/un-sorted.svg":59104,"./table/workflow-apply.svg":53699,"./text/A.svg":90933,"./text/backspace-delete.svg":33023,"./text/edit-settings.svg":43758,"./text/edit.svg":58088,"./text/edited.svg":55331,"./text/rename.svg":37754,"./text/text-edit.svg":3626,"./text/text.svg":53785,"./time-date/add.svg":4008,"./time-date/calendar.svg":91097,"./time-date/daylight-saving-back.svg":72240,"./time-date/daylight-saving-forward.svg":17812,"./time-date/duration-long-add.svg":9708,"./time-date/duration-long.svg":42606,"./time-date/duration-short.svg":63098,"./time-date/duration.svg":83867,"./time-date/history.svg":70065,"./time-date/hour-glass.svg":74754,"./time-date/position.svg":56818,"./time-date/remove.svg":49275,"./time-date/tick.svg":27016,"./timeline/aaf.svg":47152,"./timeline/add.svg":289,"./timeline/audio-expand.svg":20491,"./timeline/audio-video.svg":50172,"./timeline/channels.svg":51592,"./timeline/cursor.svg":43134,"./timeline/delete.svg":79641,"./timeline/event-add.svg":89430,"./timeline/fit-height.svg":20551,"./timeline/fit-width.svg":34030,"./timeline/insert-at-end.svg":48847,"./timeline/insert-at-playhead.svg":38172,"./timeline/insert-at-start.svg":33740,"./timeline/insert.svg":26655,"./timeline/magnet-off.svg":7022,"./timeline/magnet-on.svg":51160,"./timeline/move-dark.svg":95676,"./timeline/move.svg":81575,"./timeline/panel-record.svg":82312,"./timeline/panel-source.svg":79268,"./timeline/playhead.svg":84524,"./timeline/razor.svg":97420,"./timeline/remove.svg":32360,"./timeline/replace.svg":42488,"./timeline/ripple-tail-cursor.svg":49192,"./timeline/ripple-top-cursor.svg":62251,"./timeline/roll-cursor.svg":53088,"./timeline/save.svg":2775,"./timeline/segment.svg":91323,"./timeline/settings.svg":10599,"./timeline/sync-edit.svg":65610,"./timeline/timeline-faviourate.svg":57416,"./timeline/timeline.svg":27009,"./timeline/transition-add.svg":43979,"./timeline/transition-audio.svg":33476,"./timeline/transition-disabled.svg":65790,"./timeline/transition-video.svg":17787,"./timeline/transition.svg":35105,"./timeline/trim-center.svg":30850,"./timeline/trim-left.svg":95894,"./timeline/trim-right.svg":4533,"./timeline/trim-tail-cursor.svg":53722,"./timeline/trim-top-cursor.svg":55885,"./timeline/trim.svg":92284,"./timeline/wipe.svg":89289,"./timeline/zoom-to-fit.svg":65359,"./transfer/app-update.svg":18265,"./transfer/cloud-favourites.svg":14500,"./transfer/cloud-install.svg":22221,"./transfer/cloud.svg":43899,"./transfer/download.svg":27136,"./transfer/export-cancel.svg":18861,"./transfer/export.svg":77714,"./transfer/import.svg":56935,"./transfer/publish.svg":61657,"./transfer/transcode.svg":69845,"./transfer/transfers.svg":24960,"./transfer/upload-failed.svg":55251,"./transfer/upload.svg":41563,"./transition/cut-cut.svg":79119,"./transition/cut-fade.svg":59787,"./transition/fade-cut.svg":3165,"./transition/fade-fade.svg":2125,"./transition/mix.svg":91098,"./uccm-symbol/disabled.svg":12548,"./uccm-symbol/error-critical-text.svg":50792,"./uccm-symbol/error-critical.svg":74152,"./uccm-symbol/error-major-text.svg":71906,"./uccm-symbol/error-major.svg":47966,"./uccm-symbol/error-minor-text.svg":65078,"./uccm-symbol/error-minor.svg":41994,"./uccm-symbol/non-existant.svg":318,"./uccm-symbol/normal-operation-text.svg":73923,"./uccm-symbol/normal-operation.svg":17305,"./uccm-symbol/pending.svg":94293,"./uccm-symbol/unknown.svg":38010,"./video/camera-2.svg":25396,"./video/camera-3.svg":63381,"./video/camera-add.svg":24199,"./video/camera-disabled.svg":66690,"./video/camera-signal.svg":12002,"./video/camera-wall.svg":14074,"./video/camera.svg":11813,"./video/clips-list.svg":33622,"./video/cued.svg":37575,"./video/cueing.svg":25527,"./video/gopro.svg":13959,"./video/high-res-and-archived.svg":42460,"./video/high-res-offline.svg":77047,"./video/high-res-online.svg":14219,"./video/k-frame.svg":72547,"./video/live.svg":82006,"./video/loop.svg":99938,"./video/lut-text.svg":42021,"./video/lut.svg":48135,"./video/media-list.svg":90553,"./video/mobile-signal.svg":40123,"./video/nfc.svg":73527,"./video/off-air.svg":79012,"./video/play-list-open-left.svg":32830,"./video/play-list-open-right.svg":57149,"./video/play-list.svg":11755,"./video/proxy-inactive.svg":18626,"./video/proxy.svg":68552,"./video/reserved.svg":65628,"./video/signal.svg":28284,"./video/sizzors.svg":24378,"./video/tool-editor.svg":34640};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=96298},19427(e){"use strict";e.exports=n},11743(e){"use strict";e.exports=r},57293(e){"use strict";e.exports=o},8469(e){"use strict";e.exports=i},39155(e){"use strict";e.exports=a},69514(e){"use strict";e.exports=s},53373(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},54239(e,t,n){"use strict";var r=n(80540);e.exports=r},67169(e,t,n){"use strict";n(63895);var r=n(58003);e.exports=r("Array","fill")},37725(e,t,n){"use strict";n(57603);var r=n(58003);e.exports=r("Array","includes")},11482(e,t,n){"use strict";var r=n(54239);e.exports=r},70814(e,t,n){"use strict";var r=n(52769),o=n(70459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},68137(e){"use strict";e.exports=function(){}},47235(e,t,n){"use strict";var r=n(90262),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},79697(e,t,n){"use strict";var r=n(92137),o=n(44574),i=n(48130);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)t[s++]=e;return t}},61005(e,t,n){"use strict";var r=n(83273),o=n(44574),i=n(48130),a=function(e){return function(t,n,a){var s=r(t),l=i(s);if(0===l)return!e&&-1;var c,u=o(a,l);if(e&&n!=n){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},89932(e,t,n){"use strict";var r=n(46100),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},73999(e,t,n){"use strict";var r=n(82643),o=n(79989),i=n(70480);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},70480(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},57525(e,t,n){"use strict";var r=n(58900),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},82643(e,t,n){"use strict";var r=n(61203);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},59619(e,t,n){"use strict";var r=n(58900),o=n(90262),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},58003(e,t,n){"use strict";var r=n(21003);e.exports=r},83531(e,t,n){"use strict";var r=n(58900).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},5547(e,t,n){"use strict";var r,o,i=n(58900),a=n(83531),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(o=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},9098(e,t,n){"use strict";var r=n(58900),o=n(57013),i=n(9344),a=n(52769),s=n(94543).f,l=n(58696),c=n(68099),u=n(94572),d=n(73999),p=n(70701);n(33753);var h=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return o(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,o,f,g,m,v,y,A,w,b=e.target,_=e.global,C=e.stat,E=e.proto,S=_?r:C?r[b]:r[b]&&r[b].prototype,O=_?c:c[b]||d(c,b,{})[b],x=O.prototype;for(g in t)o=!(n=l(_?g:b+(C?".":"#")+g,e.forced))&&S&&p(S,g),v=O[g],o&&(y=e.dontCallGetSet?(w=s(S,g))&&w.value:S[g]),m=o&&y?y:t[g],(n||E||typeof v!=typeof m)&&(A=e.bind&&o?u(m,r):e.wrap&&o?h(m):E&&a(m)?i(m):m,(e.sham||m&&m.sham||v&&v.sham)&&d(A,"sham",!0),d(O,g,A),E&&(p(c,f=b+"Prototype")||d(c,f,{}),d(c[f],g,m),e.real&&x&&(n||!x[g])&&d(x,g,m)))}},61203(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},57013(e,t,n){"use strict";var r=n(41780),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},94572(e,t,n){"use strict";var r=n(9344),o=n(70814),i=n(41780),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},41780(e,t,n){"use strict";var r=n(61203);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},54713(e,t,n){"use strict";var r=n(41780),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},9344(e,t,n){"use strict";var r=n(89932),o=n(46100);e.exports=function(e){if("Function"===r(e))return o(e)}},46100(e,t,n){"use strict";var r=n(41780),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},21003(e,t,n){"use strict";var r=n(68099),o=n(58900),i=n(52769),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},14674(e,t,n){"use strict";var r=n(70814),o=n(83057);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},58900(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},70701(e,t,n){"use strict";var r=n(46100),o=n(92137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},49665(e,t,n){"use strict";var r=n(82643),o=n(61203),i=n(59619);e.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},41395(e,t,n){"use strict";var r=n(46100),o=n(61203),i=n(89932),a=Object,s=r("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?s(e,""):a(e)}:a},52769(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},58696(e,t,n){"use strict";var r=n(61203),o=n(52769),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===u||n!==c&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},83057(e){"use strict";e.exports=function(e){return null==e}},90262(e,t,n){"use strict";var r=n(52769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},64871(e){"use strict";e.exports=!0},96281(e,t,n){"use strict";var r=n(21003),o=n(52769),i=n(54317),a=n(57460),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},48130(e,t,n){"use strict";var r=n(78146);e.exports=function(e){return r(e.length)}},45777(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},79989(e,t,n){"use strict";var r=n(82643),o=n(49665),i=n(61330),a=n(47235),s=n(65341),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=u(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},94543(e,t,n){"use strict";var r=n(82643),o=n(54713),i=n(87161),a=n(70480),s=n(83273),l=n(65341),c=n(70701),u=n(49665),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},54317(e,t,n){"use strict";var r=n(46100);e.exports=r({}.isPrototypeOf)},87161(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},89258(e,t,n){"use strict";var r=n(54713),o=n(52769),i=n(90262),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},68099(e){"use strict";e.exports={}},95426(e,t,n){"use strict";var r=n(83057),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},33753(e,t,n){"use strict";var r=n(64871),o=n(58900),i=n(57525),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},58141(e,t,n){"use strict";var r=n(33753);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},74603(e,t,n){"use strict";var r=n(5547),o=n(61203),i=n(58900).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},44574(e,t,n){"use strict";var r=n(99903),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},83273(e,t,n){"use strict";var r=n(41395),o=n(95426);e.exports=function(e){return r(o(e))}},99903(e,t,n){"use strict";var r=n(45777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},78146(e,t,n){"use strict";var r=n(99903),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},92137(e,t,n){"use strict";var r=n(95426),o=Object;e.exports=function(e){return o(r(e))}},60493(e,t,n){"use strict";var r=n(54713),o=n(90262),i=n(96281),a=n(14674),s=n(89258),l=n(38655),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},65341(e,t,n){"use strict";var r=n(60493),o=n(96281);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},70459(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},41268(e,t,n){"use strict";var r=n(46100),o=0,i=Math.random(),a=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},57460(e,t,n){"use strict";var r=n(74603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},61330(e,t,n){"use strict";var r=n(82643),o=n(61203);e.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},38655(e,t,n){"use strict";var r=n(58900),o=n(58141),i=n(70701),a=n(41268),s=n(74603),l=n(57460),c=r.Symbol,u=o("wks"),d=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(u,e)||(u[e]=s&&i(c,e)?c[e]:d("Symbol."+e)),u[e]}},63895(e,t,n){"use strict";var r=n(9098),o=n(79697),i=n(68137);r({target:"Array",proto:!0},{fill:o}),i("fill")},57603(e,t,n){"use strict";var r=n(9098),o=n(61005).includes,i=n(61203),a=n(68137),s=i(function(){return!Array(1).includes()}),l=i(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:s||l},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},80540(e,t,n){"use strict";var r=n(67169);e.exports=r},99742(e,t,n){"use strict";n.d(t,{Ak:()=>o,NM:()=>r});let r=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return(i=t)=>{let a="";for(;;){let t=n(o),s=0|o;for(;s--;)if(a+=e[t[s]&r]||"",a.length===i)return a}}},o=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"")},8633(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},2707(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return l[e].call(n.exports,n,n.exports,u),n.loaded=!0,n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var d={};return(()=>{"use strict";u.r(d),u.d(d,{AGGridTypes:()=>LX,AutoSizer:()=>g,DefaultComparator:()=>pz,GVArrayFieldTemplate:()=>OY,GVAudioFader:()=>ue,GVAudioLevels:()=>Eo,GVBooleanCellEditor:()=>DX,GVBooleanCellRenderer:()=>EX,GVBooleanWidget:()=>$Y,GVButton:()=>ko,GVButtonWidget:()=>zY,GVButtons:()=>Lo,GVCarousel:()=>Ta,GVCells:()=>Ra,GVCheckbox:()=>KW,GVCheckboxesWidget:()=>sX,GVCollapsablePanel:()=>Nre,GVColours:()=>Kre,GVCountDowns:()=>Co,GVDateTimeCellRenderer:()=>SX,GVDateTimePicker:()=>ka,GVDisplayPanel:()=>Ba,GVDragDropGrid:()=>Gs,GVDragDropProvider:()=>wc,GVDragItem:()=>bc,GVErrorBoundary:()=>_c,GVFieldTemplate:()=>_Y,GVFileBrowser:()=>fP,GVFileBrowserActions:()=>ax,GVFileSelector:()=>mP,GVFilterList:()=>fL,GVFilterListItem:()=>vP,GVForm:()=>gX,GVFormType:()=>mX,GVFormTypes:()=>o,GVGrid:()=>$X,GVHeroBar:()=>KX,GVIcon:()=>Fo,GVIconSelect:()=>pie,GVIcons:()=>Do,GVInputLabel:()=>cV,GVLabel:()=>CY,GVList:()=>E6,GVListContainer:()=>_2,GVLoading:()=>zW,GVMarkdown:()=>Wne,GVMatrixField:()=>fY,GVMenu:()=>Q3,GVMenuButton:()=>z3,GVMenuDivider:()=>K3,GVMenuItem:()=>G3,GVModal:()=>Kne,GVModalConfirm:()=>Qne,GVModalDefaultButtons:()=>$ne,GVMultiProgressBar:()=>qne,GVNotification:()=>Xne,GVNotificationActions:()=>Ire,GVNotificationConfirmationActions:()=>Fre,GVNumberTimecodeEntry:()=>uie,GVNumericCellEditor:()=>OX,GVNumericInput:()=>QW,GVNumericTrim:()=>oX,GVNumericTrimWidget:()=>aX,GVObjectFieldTemplate:()=>SY,GVOnAirDisplay:()=>Lre,GVOnAirDisplayStates:()=>kre,GVPane:()=>Bre,GVPanel:()=>C6,GVPanelBody:()=>t3,GVPanelButton:()=>AP,GVPanelHeader:()=>_6,GVPanelInput:()=>jre,GVPanelInputs:()=>Ure,GVPanelKeyFrame:()=>Vre,GVPasswordWidget:()=>rX,GVPopout:()=>iie,GVProgressBar:()=>Hre,GVRGBAColorField:()=>DY,GVRadioDial:()=>Wre,GVRangeWidget:()=>tX,GVRating:()=>oie,GVRotaryDial:()=>qre,GVSegmentProgressBar:()=>Yre,GVSelect:()=>Lz,GVSelectWidget:()=>KY,GVSimpleForm:()=>CX,GVSimpleFormFieldType:()=>_X,GVSlider:()=>WY,GVSwitch:()=>kY,GVTable:()=>hY,GVTabs:()=>toe,GVTabsBar:()=>Zre,GVTabsTab:()=>Xre,GVTag:()=>ooe,GVTextArea:()=>rie,GVTextCellEditor:()=>xX,GVTextInput:()=>pL,GVTextInputWithIcon:()=>hL,GVTextWidget:()=>qY,GVTextareaWidget:()=>XY,GVThumbnail:()=>joe,GVThumbnails:()=>Goe,GVTimeCode:()=>Koe,GVTimeCodeResolution:()=>zoe,GVTimePicker:()=>La,GVTimecodeInput:()=>dL,GVTimecodeNavigationType:()=>cie,GVTitleField:()=>dV,GVToastContainer:()=>Tre,GVTooltip:()=>lL,GVUI:()=>c,GVUnauthorised:()=>Qoe,GVVolumeControl:()=>aie,GVWebGLImage:()=>eie,IDragDropGridItemTypes:()=>Ps,IGVTagSize:()=>roe,IGVTagStyle:()=>noe,WrapIfAdditional:()=>bY,applyFilters:()=>gz,applySorting:()=>mz,arraysEqual:()=>lz,calculateHeaderMenuPosition:()=>oz,calculateMenuPosition:()=>iz,cb:()=>qoe,convert:()=>dz,cr:()=>Yoe,fragmentShaderSrc:()=>Zoe,fragmentShaderSrcLuma:()=>nie,getDataWithTrimming:()=>fz,getExtendedTableApi:()=>$q,getTreeDataArray:()=>hz,handleHttpError:()=>hie,isNullOrEmpty:()=>az,isRightClick:()=>vz,renderIcon:()=>Io,reverse:()=>cz,shallowEquality:()=>sz,unique:()=>uz,usePortal:()=>m,usePrevious:()=>v,useWindowDimensions:()=>A,vertexShaderSrc:()=>Xoe,vertexShaderSrcLuma:()=>tie,vw:()=>rz});var n={};u.r(n),u.d(n,{FILE:()=>rc,HTML:()=>ac,TEXT:()=>ic,URL:()=>oc});var r={};u.r(r),u.d(r,{FILE:()=>Ip,TEXT:()=>kp,URL:()=>Fp});var o={};u.r(o),u.d(o,{default:()=>lV,utils:()=>sV,withTheme:()=>aV});var i={};u.r(i),u.d(i,{boolean:()=>N6,booleanish:()=>j6,commaOrSpaceSeparated:()=>W6,commaSeparated:()=>G6,number:()=>V6,overloadedBoolean:()=>U6,spaceSeparated:()=>H6});var a={};u.r(a),u.d(a,{attentionMarkers:()=>A9,contentInitial:()=>h9,disable:()=>w9,document:()=>p9,flow:()=>g9,flowInitial:()=>f9,insideSpan:()=>y9,string:()=>m9,text:()=>v9});var s=u(19427);const l=s.GVDebug.extend("GVUI");class c{static instance;available;static get=()=>(c.instance||(c.instance=new c(!!window._GVUI)),c.instance);constructor(e){this.available=e,this.available||l("Not hosted in GV UI")}}var p=u(31085),h=u(39155),f=u.n(h);class g extends f().Component{state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0};_parentNode;_autoSizer;_window;_detectElementResize;componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=function(e,t){let n;n=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:u.g;const r=void 0!==n.document&&n.document.attachEvent;if(!r){const e=function(){const e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),t=function(){const e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}();var o=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight};const r=function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height};var i=function(n){if(n.target.className&&"function"==typeof n.target.className.indexOf&&n.target.className.indexOf("contract-trigger")<0&&n.target.className.indexOf("expand-trigger")<0)return;const i=this;o(this),this.__resizeRAF__&&t(this.__resizeRAF__),this.__resizeRAF__=e(function(){r(i)&&(i.__resizeLast__.width=i.offsetWidth,i.__resizeLast__.height=i.offsetHeight,i.__resizeListeners__.forEach(function(e){e.call(i,n)}))})},a=!1,s="",l="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");{const e=n.document.createElement("fakeelement");if(void 0!==e.style.animationName&&(a=!0),!1===a)for(let t=0;t<c.length;t++)if(void 0!==e.style[c[t]+"AnimationName"]){s="-"+c[t].toLowerCase()+"-",l=d[t],a=!0;break}}var p="resizeanim",h="@"+s+"keyframes "+p+" { from { opacity: 0; } to { opacity: 0; } } ",f=s+"animation: 1ms "+p+"; "}return{addResizeListener:function(t,a){if(r)t.attachEvent("onresize",a);else{if(!t.__resizeTriggers__){const r=t.ownerDocument,a=n.getComputedStyle(t);a&&"static"==a.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){const n=(h||"")+".resize-triggers { "+(f||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),r.appendChild(o)}}(r),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=r.createElement("div")).className="resize-triggers",t.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',t.appendChild(t.__resizeTriggers__),o(t),t.addEventListener("scroll",i,!0),l&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==p&&o(t)},t.__resizeTriggers__.addEventListener(l,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(a)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",i,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(l,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}componentWillUnmount(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}render(){const{children:e,className:t,disableHeight:n=!1,disableWidth:r=!1,style:o={}}=this.props,{height:i,width:a}=this.state,s={overflow:"visible"},l={};return n||(s.height=0,l.height=i),r||(s.width=0,l.width=a),(0,p.jsx)("div",{className:t,ref:this._setRef,style:{...s,...o},children:e(l)})}_onResize=()=>{const{disableHeight:e=!1,disableWidth:t=!1,onResize:n=()=>{}}=this.props;if(this._parentNode){const r=this._parentNode.offsetHeight||0,o=this._parentNode.offsetWidth||0,i=(this._window||window).getComputedStyle(this._parentNode)||{},a=parseInt(i.paddingLeft,10)||0,s=parseInt(i.paddingRight,10)||0,l=parseInt(i.paddingTop,10)||0,c=parseInt(i.paddingBottom,10)||0,u=r-l-c,d=o-a-s;(!e&&this.state.height!==u||!t&&this.state.width!==d)&&(this.setState({height:r-l-c,width:o-a-s}),n({height:r,width:o}))}};_setRef=e=>{this._autoSizer=e}}function m(e){const t=(0,h.useRef)(null);return(0,h.useEffect)(()=>{const n=document.querySelector(`#${e}`),r=n||function(e){const t=document.createElement("div");return t.setAttribute("id",e),t}(e);var o;return n||(o=r,document.body.lastElementChild&&document.body.insertBefore(o,document.body.lastElementChild.nextElementSibling)),r.appendChild(t.current),function(){t.current.remove(),r.childElementCount||r.remove()}},[e]),t.current||(t.current=document.createElement("div")),t.current}function v(e,t=!0){const n=(0,h.useRef)(e),[r,o]=(0,h.useState)(void 0);return(0,h.useEffect)(()=>{t||o(void 0),o(n.current),n.current=e},[e,t]),r}function y(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function A(){const[e,t]=(0,h.useState)(y());return(0,h.useEffect)(()=>{function e(){t(y())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}var w=u(64674),b=u.n(w),_=Math.sqrt(50),C=Math.sqrt(10),E=Math.sqrt(2);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(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&&I(e,t)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){var t=function(){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}}();return function(){var n,r=R(e);if(t){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return F(e)}(this,n)}}function L(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 r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||N(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 B(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||N(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){if(e){if("string"==typeof e)return j(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)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var U="react-compound-slider:";function V(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){return t.val>n.val?e?-1:1:n.val>t.val?e?1:-1:0}}function H(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.findIndex(function(e){return e.key===t});if(-1!==o){var i=e[o],a=i.key;return i.val===n?e:[].concat(B(e.slice(0,o)),[{key:a,val:n}],B(e.slice(o+1))).sort(V(r))}return e}function G(e,t){if(!e)return[0,0];var n=e.getBoundingClientRect();return[t?n.top:n.left,t?n.bottom:n.right]}function W(e){var t=e.type,n=void 0===t?"":t,r=e.touches;return!r||r.length>1||"touchend"===n.toLowerCase()&&r.length>0}function z(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function K(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,r=0,o=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){var o=t.getValue(e);return e!==o&&(r+=1,b()(!n,"".concat(U," Invalid value encountered. Changing ").concat(e," to ").concat(o,"."))),o}).map(function(e,t){return{key:"$$-".concat(t),val:e}}).sort(V(e));return{handles:o,changes:r}}function Q(e,t,n,r,o){for(var i=-1,a=!0,s=0;s<e.length;s++){var l=e[s],c=t[s];if(!c||c.key!==l.key)return e;c.val!==l.val&&(i=s,a=c.val-l.val>0)}if(-1===i)return e;for(var u=a?n:-n,d=0;d<t.length;d++){var p=t[d],h=t[d+1];if(h&&p.val===h.val){if(d===i){var f=h.val+u;if(o(f)===f){var g=Q(t,H(t,h.key,h.val+u,r),n,r,o);return g===t?e:g}return e}var m=p.val+u;if(o(m)===m){var v=Q(t,H(t,p.key,p.val+u,r),n,r,o);return v===t?e:v}return e}}return t}function q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach(function(t){return t&&t(e)})}}var Y=function(){return{value:0,percent:0}},X=function(e){T(n,e);var t=k(n);function n(){var e;x(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).getRailProps=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.props,r=n.emitMouse,o=n.emitTouch;return O(O({},t),{},{onMouseDown:q(t&&t.onMouseDown,r),onTouchStart:q(t&&t.onTouchStart,o)})},e}return P(n,[{key:"render",value:function(){var e=this.getRailProps,t=this.props,n=t.getEventData,r=t.activeHandleID,o=void 0===r?"":r,i=(0,t.children)({getEventData:n||Y,activeHandleID:o,getRailProps:e});return i&&f().Children.only(i)}}]),n}(h.Component),Z=function(e){T(n,e);var t=k(n);function n(){var e;x(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).autofocus=function(e){e.target instanceof HTMLElement&&e.target.focus()},e.getHandleProps=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.props,o=r.emitKeyboard,i=r.emitMouse,a=r.emitTouch;return O(O({},n),{},{onKeyDown:q(n&&n.onKeyDown,function(e){return o&&o(e,t)}),onMouseDown:q(n&&n.onMouseDown,e.autofocus,function(e){return i&&i(e,t)}),onTouchStart:q(n&&n.onTouchStart,function(e){return a&&a(e,t)})})},e}return P(n,[{key:"render",value:function(){var e=this.getHandleProps,t=this.props,n=t.activeHandleID,r=void 0===n?"":n,o=t.children,i=t.handles,a=o({handles:void 0===i?[]:i,activeHandleID:r,getHandleProps:e});return a&&f().Children.only(a)}}]),n}(h.Component),J=function(){function e(){x(this,e),this.interpolator=void 0,this.domain=[0,1],this.range=[0,1],this.domain=[0,1],this.range=[0,1],this.interpolator=null}return P(e,[{key:"createInterpolator",value:function(e,t){var n=this,r=e[0],o=e[1],i=t[0],a=t[1];return o<r?function(e){return n.interpolateValue(a,i)(n.deinterpolateValue(o,r)(e))}:function(e){return n.interpolateValue(i,a)(n.deinterpolateValue(r,o)(e))}}},{key:"interpolateValue",value:function(e,t){return t-=e=+e,function(n){return e+t*n}}},{key:"deinterpolateValue",value:function(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(){return t}}},{key:"rescale",value:function(){return this.interpolator=null,this}},{key:"getValue",value:function(e){var t=this.domain,n=this.range;return(this.interpolator||(this.interpolator=this.createInterpolator(t,n)))(+e)}},{key:"setDomain",value:function(e){return this.domain=[e[0],e[1]],this.rescale(),this}},{key:"getDomain",value:function(){return this.domain}},{key:"setRange",value:function(e){return this.range=[e[0],e[1]],this}},{key:"getRange",value:function(){return this.range}},{key:"getTicks",value:function(e){var t=this.domain;return function(e,t,n){var r,o,i,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=function(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=_?10:i>=C?5:i>=E?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=_?10:i>=C?5:i>=E?2:1)}(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,i=new Array(o=r-n+1);++s<o;)i[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,i=new Array(o=r-n+1);++s<o;)i[s]=(n+s)/a}return r&&i.reverse(),i}(t[0],t[t.length-1],e||10)}}]),e}(),ee=function(){return{value:0,percent:0}},te=function(e){T(n,e);var t=k(n);function n(){return x(this,n),t.apply(this,arguments)}return P(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.values,r=e.scale,o=void 0===r?new J:r,i=e.count,a=void 0===i?10:i,s=e.getEventData,l=void 0===s?ee:s,c=e.activeHandleID,u=t({getEventData:l,activeHandleID:void 0===c?"":c,ticks:(n||o.getTicks(a)).map(function(e){return{id:"$$-".concat(e),value:e,percent:o.getValue(e)}})});return u&&f().Children.only(u)}}]),n}(h.Component),ne=function(){return{value:0,percent:0}},re=function(e){T(n,e);var t=k(n);function n(){var e;x(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).getTrackProps=function(t){var n=e.props,r=n.emitMouse,o=n.emitTouch;return O(O({},t||{}),{},{onMouseDown:q(t&&t.onMouseDown,r),onTouchStart:q(t&&t.onTouchStart,o)})},e}return P(n,[{key:"render",value:function(){for(var e=this.getTrackProps,t=this.props,n=t.children,r=t.left,o=void 0===r||r,i=t.right,a=void 0===i||i,s=t.scale,l=void 0===s?new J:s,c=t.handles,u=void 0===c?[]:c,d=t.getEventData,p=void 0===d?ne:d,h=t.activeHandleID,g=void 0===h?"":h,m=l.getDomain(),v=[],y=0;y<u.length+1;y++){var A=u[y-1],w=u[y];0===y&&!0===o?A={id:"$",value:m[0],percent:0}:y===u.length&&!0===a&&(w={id:"$",value:m[1],percent:100}),A&&w&&v.push({id:"".concat(A.id,"-").concat(w.id),source:A,target:w})}var b=n({getEventData:p,activeHandleID:g,tracks:v,getTrackProps:e});return b&&f().Children.only(b)}}]),n}(h.Component);function oe(e,t,n){return Math.min(Math.max(e,t),n)}var ie=P(function e(){var t=this;x(this,e),this.step=1,this.domain=[0,1],this.range=[0,1],this.setDomain=function(e){return t.domain=[e[0],e[1]],t},this.setRange=function(e){return t.range=[e[0],e[1]],t},this.setStep=function(e){return t.step=e,t},this.getValue=function(e){var n=L(t.domain,2),r=n[0],o=n[1],i=L(t.range,2),a=i[0],s=i[1],l=t.step,c=(oe(e,r,o)-r)/(o-r);return oe(l*Math.round(c*(s-a)/l)+a,a<s?a:s,s>a?s:a)}}),ae="undefined"!=typeof window&&"undefined"!=typeof document,se=function(){},le=[0,100],ce=function(e){T(n,e);var t=k(n);function n(){var e;x(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={step:.1,values:[],domain:le,handles:[],reversed:!1,activeHandleID:"",valueToPerc:null,valueToStep:null,pixelToStep:null},e.slider=f().createRef(),e.onKeyDown=function(t,n){var r=["ArrowRight","ArrowUp"],o=["ArrowDown","ArrowLeft"],i=F(e),a=i.state.handles,s=i.props,l=s.step,c=void 0===l?.1:l,u=s.reversed,d=void 0!==u&&u,p=s.vertical,h=void 0!==p&&p,f=s.domain,g=void 0===f?[0,100]:f,m=t.key||"".concat(t.keyCode);if(r.concat(o).includes(m)){if(h){var v=[o,r];r=v[0],o=v[1]}t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault();var y=a.find(function(e){return e.key===n});if(y){var A=y.val,w=A;r.includes(m)?w=function(e,t,n,r){var o=r?e-t:e+t;return r?Math.max(n[0],o):Math.min(n[1],o)}(A,c,g,d):o.includes(m)&&(w=function(e,t,n,r){var o=r?e+t:e-t;return r?Math.min(n[1],o):Math.max(n[0],o)}(A,c,g,d));var b=a.map(function(e){return e.key===n?{key:e.key,val:w}:e});e.submitUpdate(b,!0)}}},e.onMouseDown=function(t,n){e.onStart(t,n,!1)},e.onTouchStart=function(t,n){W(t)||e.onStart(t,n,!0)},e.getEventData=function(t,n){var r,o=F(e),i=o.state,a=i.pixelToStep,s=i.valueToPerc,l=o.props.vertical;return a.setDomain(G(e.slider.current,l)),n&&t instanceof TouchEvent?r=a.getValue(z(l,t)):t instanceof MouseEvent&&(r=a.getValue(l?t.clientY:t.pageX)),{value:r,percent:s.getValue(r)}},e.onMouseMove=function(t){var n=F(e),r=n.state,o=r.handles,i=r.pixelToStep,a=r.activeHandleID,s=void 0===a?"":a,l=n.props,c=l.vertical,u=l.reversed,d=void 0!==u&&u;i.setDomain(G(e.slider.current,c));var p=H(o,s,i.getValue(c?t.clientY:t.pageX),d);e.submitUpdate(p)},e.onTouchMove=function(t){var n=F(e),r=n.state,o=r.handles,i=r.pixelToStep,a=r.activeHandleID,s=n.props,l=s.vertical,c=s.reversed;if(null!==i&&!W(t)){i.setDomain(G(e.slider.current,l));var u=H(o,a,i.getValue(z(l,t)),c);e.submitUpdate(u)}},e.onMouseUp=function(){var t=F(e),n=t.state,r=n.handles,o=void 0===r?[]:r,i=n.activeHandleID,a=t.props,s=a.onChange,l=void 0===s?se:s,c=a.onSlideEnd,u=void 0===c?se:c;l(o.map(function(e){return e.val})),u(o.map(function(e){return e.val}),{activeHandleID:i}),e.setState({activeHandleID:""}),ae&&(document.removeEventListener("mousemove",e.onMouseMove),document.removeEventListener("mouseup",e.onMouseUp))},e.onTouchEnd=function(){var t=F(e),n=t.state,r=n.handles,o=n.activeHandleID,i=t.props,a=i.onChange,s=void 0===a?se:a,l=i.onSlideEnd,c=void 0===l?se:l;s(r.map(function(e){return e.val})),c(r.map(function(e){return e.val}),{activeHandleID:o}),e.setState({activeHandleID:""}),ae&&(document.removeEventListener("touchmove",e.onTouchMove),document.removeEventListener("touchend",e.onTouchEnd))},e}return P(n,[{key:"componentDidMount",value:function(){var e=this.state.pixelToStep,t=this.props.vertical;e.setDomain(G(this.slider.current,t))}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"removeListeners",value:function(){ae&&(document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"onStart",value:function(e,t,n){var r=this.state.handles,o=this.props.onSlideStart,i=void 0===o?se:o;n||e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),r.find(function(e){return e.key===t})?(this.setState({activeHandleID:t}),i(r.map(function(e){return e.val}),{activeHandleID:t}),n?this.addTouchEvents():this.addMouseEvents()):(this.setState({activeHandleID:""}),this.handleRailAndTrackClicks(e,n))}},{key:"handleRailAndTrackClicks",value:function(e,t){var n,r=this,o=this.state,i=o.handles,a=o.pixelToStep,s=this.props,l=s.vertical,c=s.reversed,u=void 0!==c&&c,d=this.slider;a.setDomain(G(d.current,l)),n=t?a.getValue(z(l,e)):a.getValue(l?e.clientY:e.pageX);for(var p="",h=1/0,f=0;f<i.length;f++){var g=i[f],m=g.key,v=g.val,y=Math.abs(v-n);y<h&&(p=m,h=y)}var A=H(i,p,n,u);this.setState({activeHandleID:p},function(){r.submitUpdate(A,!0),t?r.addTouchEvents():r.addMouseEvents()})}},{key:"addMouseEvents",value:function(){ae&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}},{key:"addTouchEvents",value:function(){ae&&(document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchend",this.onTouchEnd))}},{key:"submitUpdate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.props,r=n.mode,o=void 0===r?1:r,i=n.step,a=void 0===i?.1:i,s=n.onUpdate,l=void 0===s?se:s,c=n.onChange,u=void 0===c?se:c,d=n.reversed,p=void 0!==d&&d,h=this.state.valueToStep.getValue;this.setState(function(n){var r=n.handles,i=[];if("function"==typeof o)i=o(r,e,a,p,h),b()(Array.isArray(i),"Custom mode function did not return an array.");else switch(o){case 1:i=function(e,t){return t}(0,e);break;case 2:i=function(e,t){for(var n=0;n<e.length;n++){if(e[n].key!==t[n].key)return e;if(t[n+1]&&t[n].val===t[n+1].val)return e}return t}(r,e);break;case 3:i=Q(r,e,a,p,h);break;default:i=e,b()(!1,"".concat(U," Invalid mode value."))}return l(i.map(function(e){return e.val})),t&&u(i.map(function(e){return e.val})),{handles:i}})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handles,r=t.valueToPerc,o=t.activeHandleID,i=this.props,a=i.className,s=i.rootStyle,l=void 0===s?{}:s,c=i.rootProps,u=void 0===c?{}:c,d=i.component,p=void 0===d?"div":d,g=i.disabled,m=void 0!==g&&g,v=i.flatten,y=void 0!==v&&v,A=n.map(function(e){var t=e.key,n=e.val;return{id:t,value:n,percent:r.getValue(n)}}),w=f().Children.map(this.props.children,function(t){return!0===function(e){if(!(0,h.isValidElement)(e))return!1;var t=e.type,n=t?t.name:"";return n===Z.name||n===X.name||n===te.name||n===re.name}(t)?f().cloneElement(t,{scale:r,handles:A,activeHandleID:o,getEventData:e.getEventData,emitKeyboard:m?se:e.onKeyDown,emitMouse:m?se:e.onMouseDown,emitTouch:m?se:e.onTouchStart}):t});return y?f().createElement(f().Fragment,null,f().createElement(p,O(O({},u),{},{style:l,className:a,ref:this.slider})),w):f().createElement(f().Fragment,null,f().createElement(p,O(O({},u),{},{style:l,className:a,ref:this.slider}),w))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.step,r=void 0===n?.1:n,o=e.values,i=e.domain,a=void 0===i?le:i,s=e.reversed,l=void 0!==s&&s,c=e.onUpdate,u=void 0===c?se:c,d=e.onChange,p=void 0===d?se:d,h=e.warnOnChanges,f=void 0!==h&&h,g=t.valueToPerc,m=t.valueToStep,v=t.pixelToStep,y={};if(g&&m&&v||(g=new J,m=new ie,v=new ie,y.valueToPerc=g,y.valueToStep=m,y.pixelToStep=v),t.domain===le||null===t.step||null===t.domain||null===t.reversed||r!==t.step||a[0]!==t.domain[0]||a[1]!==t.domain[1]||l!==t.reversed){var A=L(a,2),w=A[0],_=A[1];m.setStep(r).setRange([w,_]).setDomain([w,_]),!0===l?(g.setDomain([w,_]).setRange([100,0]),v.setStep(r).setRange([_,w])):(g.setDomain([w,_]).setRange([0,100]),v.setStep(r).setRange([w,_])),b()(_>w,"".concat(U," Max must be greater than min (even if reversed). Max is ").concat(_,". Min is ").concat(w,"."));var C=K(o||t.values,l,m,f),E=C.handles;(C.changes||void 0===o||o===t.values)&&(u(E.map(function(e){return e.val})),p(E.map(function(e){return e.val}))),y.step=r,y.values=o,y.domain=a===le?B(a):a,y.handles=E,y.reversed=l}else if(!function(e,t){return e===t||e.length===t.length&&e.reduce(function(e){return function(t,n,r){return t&&e[r]===n}}(t),!0)}(o,t.values)){var S=K(o,l,m,f),O=S.handles;S.changes&&(u(O.map(function(e){return e.val})),p(O.map(function(e){return e.val}))),y.values=o,y.handles=O}return Object.keys(y).length?y:null}}]),n}(h.PureComponent);class ue extends h.Component{static getDerivedStateFromProps(e){let{value:t}=e;if(null==t)if(e.default)if(e.min&&e.max){const n=e.min&&e.default>e.min,r=e.max&&e.default<e.max;t=n&&r?e.default:e.min}else e.min&&e.default<e.min?t=e.min:e.max&&e.default>e.max&&(t=e.max);else t=0;return{value:t}}constructor(e){super(e);let{value:t}=e;if(null==t)if(e.default)if(e.min&&e.max){const n=e.min&&e.default>e.min,r=e.max&&e.default<e.max;t=n&&r?e.default:e.min}else e.min&&e.default<e.min?t=e.min:e.max&&e.default>e.max&&(t=e.max);else t=0;this.state={value:t}}render(){const{value:e}=this.state,{min:t,max:n,step:r,disabled:o,sliderHeight:i="200px",tickValues:a}=this.props;return(0,p.jsx)("div",{className:this.props.thin?"gv-audiofader-thin":"gv-audiofader",onWheel:this.onWheel,children:(0,p.jsxs)(ce,{reversed:!0,vertical:!0,disabled:o,className:"gv-audiofader-container",domain:[t,n],values:[e],step:r||1,mode:2,onChange:this.onChange,onUpdate:this.onUpdate,onSlideStart:this.onSlideStart,onSlideEnd:this.onSlideEnd,rootStyle:{height:i},children:[(0,p.jsx)(X,{children:({getRailProps:e})=>(0,p.jsx)("div",{className:"gv-audiofader-rail",style:{height:i},...e()})}),(0,p.jsx)(Z,{children:({handles:e,getHandleProps:t})=>(0,p.jsx)("div",{children:e.map(e=>(0,p.jsx)(de,{handle:e,getHandleProps:t},e.id))})}),(0,p.jsx)(re,{left:!0,right:!1,children:({tracks:e,getTrackProps:t})=>(0,p.jsx)("div",{children:e.map(({id:e,source:n,target:r})=>(0,p.jsx)(pe,{source:n,target:r,getTrackProps:t},e))})}),(0,p.jsx)(te,{values:a||[10,15,20,25,40,60,85],children:({ticks:e})=>(0,p.jsx)("div",{children:e.map(e=>(0,p.jsx)(he,{tick:e},e.id))})})]})})}onWheel=e=>{this.props.disabled||this.props.onWheel?.(e.deltaY)};valueAdjust=e=>{const{value:t}=this.state;"up"==e?this.onChange([t+1]):"down"==e&&this.onChange([t-1])};onSlideStart=e=>{this.props.onSlideStart&&this.props.onSlideStart(e[0])};onSlideEnd=e=>{this.props.onSlideEnd&&this.props.onSlideEnd(e[0])};onChange=e=>{if(null!==e[0]&&!Number.isNaN(e[0]))return this.setState({value:e[0]}),this.props.onChange(e[0])};onUpdate=e=>{if(null!==e[0]&&!Number.isNaN(e[0]))return this.setState({value:e[0]}),void 0!==this.props.onUpdate?this.props.onUpdate(e[0]):null}}const de=({handle:{id:e,percent:t},getHandleProps:n})=>(0,p.jsx)("div",{className:"gv-audiofader-handle",style:{bottom:100-t+"%"},...n(e),children:(0,p.jsx)("div",{className:"gv-audiofader-handle-line"})}),pe=({source:e,target:t,getTrackProps:n})=>(0,p.jsx)("div",{className:"gv-audiofader-track",style:{bottom:`${e.percent}%`,height:100-t.percent-e.percent+"%"},...n()}),he=({tick:e})=>(0,p.jsxs)("div",{children:[(0,p.jsx)("div",{className:"gv-audiofader-tick",style:{position:"absolute",marginLeft:15,top:`${e.percent}%`}}),(0,p.jsx)("div",{className:"gv-audiofader-tick",style:{position:"absolute",marginLeft:-36,top:`${e.percent}%`}})]});class fe extends Error{}class ge extends fe{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class me extends fe{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ve extends fe{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ye extends fe{}class Ae extends fe{constructor(e){super(`Invalid unit ${e}`)}}class we extends fe{}class be extends fe{constructor(){super("Zone is an abstract class")}}const _e="numeric",Ce="short",Ee="long",Se={year:_e,month:_e,day:_e},Oe={year:_e,month:Ce,day:_e},xe={year:_e,month:Ce,day:_e,weekday:Ce},De={year:_e,month:Ee,day:_e},Pe={year:_e,month:Ee,day:_e,weekday:Ee},Me={hour:_e,minute:_e},Te={hour:_e,minute:_e,second:_e},Re={hour:_e,minute:_e,second:_e,timeZoneName:Ce},Ie={hour:_e,minute:_e,second:_e,timeZoneName:Ee},Fe={hour:_e,minute:_e,hourCycle:"h23"},ke={hour:_e,minute:_e,second:_e,hourCycle:"h23"},Le={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:Ce},Be={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:Ee},Ne={year:_e,month:_e,day:_e,hour:_e,minute:_e},je={year:_e,month:_e,day:_e,hour:_e,minute:_e,second:_e},Ue={year:_e,month:Ce,day:_e,hour:_e,minute:_e},Ve={year:_e,month:Ce,day:_e,hour:_e,minute:_e,second:_e},He={year:_e,month:Ce,day:_e,weekday:Ce,hour:_e,minute:_e},Ge={year:_e,month:Ee,day:_e,hour:_e,minute:_e,timeZoneName:Ce},We={year:_e,month:Ee,day:_e,hour:_e,minute:_e,second:_e,timeZoneName:Ce},ze={year:_e,month:Ee,day:_e,weekday:Ee,hour:_e,minute:_e,timeZoneName:Ee},$e={year:_e,month:Ee,day:_e,weekday:Ee,hour:_e,minute:_e,second:_e,timeZoneName:Ee};class Ke{get type(){throw new be}get name(){throw new be}get ianaName(){return this.name}get isUniversal(){throw new be}offsetName(e,t){throw new be}formatOffset(e,t){throw new be}offset(e){throw new be}equals(e){throw new be}get isValid(){throw new be}}let Qe=null;class qe extends Ke{static get instance(){return null===Qe&&(Qe=new qe),Qe}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return cn(e,t,n)}formatOffset(e,t){return hn(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let Ye={};const Xe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Ze={};class Je extends Ke{static create(e){return Ze[e]||(Ze[e]=new Je(e)),Ze[e]}static resetCache(){Ze={},Ye={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Je.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return cn(e,t,n,this.name)}formatOffset(e,t){return hn(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(r=this.name,Ye[r]||(Ye[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ye[r]);var r;let[o,i,a,s,l,c,u]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const{type:t,value:o}=n[e],i=Xe[t];"era"===t?r[i]=o:Vt(i)||(r[i]=parseInt(o,10))}return r}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,i,a,s,l,c,u]=r;return[a,o,i,s,l,c,u]}(n,t);"BC"===s&&(o=1-Math.abs(o));let d=+t;const p=d%1e3;return d-=p>=0?p:1e3+p,(on({year:o,month:i,day:a,hour:24===l?0:l,minute:c,second:u,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let et={},tt={};function nt(e,t={}){const n=JSON.stringify([e,t]);let r=tt[n];return r||(r=new Intl.DateTimeFormat(e,t),tt[n]=r),r}let rt={},ot={},it=null,at={};function st(e,t,n,r){const o=e.listingMode();return"error"===o?null:"en"===o?n(t):r(t)}class lt{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:o,...i}=n;if(!t||Object.keys(i).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=rt[n];return r||(r=new Intl.NumberFormat(e,t),rt[n]=r),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Yt(this.floor?Math.floor(e):en(e,3),this.padTo)}}class ct{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Je.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||r,this.dtf=nt(t,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ut{constructor(e,t,n){this.opts={style:"long",...n},!t&&Wt()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,o=JSON.stringify([e,r]);let i=ot[o];return i||(i=new Intl.RelativeTimeFormat(e,t),ot[o]=i),i}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&i){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${o[e][0]}`;case-1:return n?"yesterday":`last ${o[e][0]}`;case 0:return n?"today":`this ${o[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,c=o[e],u=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return a?`${s} ${u} ago`:`in ${s} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const dt={firstDay:1,minimalDays:4,weekend:[6,7]};class pt{static fromOpts(e){return pt.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,o=!1){const i=e||St.defaultLocale,a=i||(o?"en-US":it||(it=(new Intl.DateTimeFormat).resolvedOptions().locale,it)),s=t||St.defaultNumberingSystem,l=n||St.defaultOutputCalendar,c=Qt(r)||St.defaultWeekSettings;return new pt(a,s,l,c,i)}static resetCache(){it=null,tt={},rt={},ot={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return pt.create(e,t,n,r)}constructor(e,t,n,r,o){const[i,a,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=nt(e).resolvedOptions(),r=e}catch(o){const i=e.substring(0,n);t=nt(i).resolvedOptions(),r=i}const{numberingSystem:o,calendar:i}=t;return[r,o,i]}}(e);this.locale=i,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?pt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Qt(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return st(this,e,yn,()=>{const n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=bo.utc(2009,n,1);t.push(e(r))}return t}(e=>this.extract(e,n,"month"))),this.monthsCache[r][e]})}weekdays(e,t=!1){return st(this,e,_n,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=bo.utc(2016,11,13+n);t.push(e(r))}return t}(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return st(this,void 0,()=>Cn,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[bo.utc(2016,11,13,9),bo.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return st(this,e,xn,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[bo.utc(-40,1,1),bo.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new lt(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new ct(e,this.intl,t)}relFormatter(e={}){return new ut(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=et[n];return r||(r=new Intl.ListFormat(e,t),et[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:zt()?function(e){let t=at[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,at[e]=t}return t}(this.locale):dt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ht=null;class ft extends Ke{static get utcInstance(){return null===ht&&(ht=new ft(0)),ht}static instance(e){return 0===e?ft.utcInstance:new ft(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new ft(un(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${hn(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${hn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return hn(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class gt extends Ke{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function mt(e,t){if(Vt(e)||null===e)return t;if(e instanceof Ke)return e;if(function(e){return"string"==typeof e}(e)){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?qe.instance:"utc"===n||"gmt"===n?ft.utcInstance:ft.parseSpecifier(n)||Je.create(e)}return Ht(e)?ft.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new gt(e)}let vt,yt=()=>Date.now(),At="system",wt=null,bt=null,_t=null,Ct=60,Et=null;class St{static get now(){return yt}static set now(e){yt=e}static set defaultZone(e){At=e}static get defaultZone(){return mt(At,qe.instance)}static get defaultLocale(){return wt}static set defaultLocale(e){wt=e}static get defaultNumberingSystem(){return bt}static set defaultNumberingSystem(e){bt=e}static get defaultOutputCalendar(){return _t}static set defaultOutputCalendar(e){_t=e}static get defaultWeekSettings(){return Et}static set defaultWeekSettings(e){Et=Qt(e)}static get twoDigitCutoffYear(){return Ct}static set twoDigitCutoffYear(e){Ct=e%100}static get throwOnInvalid(){return vt}static set throwOnInvalid(e){vt=e}static resetCaches(){pt.resetCache(),Je.resetCache()}}class Ot{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const xt=[0,31,59,90,120,151,181,212,243,273,304,334],Dt=[0,31,60,91,121,152,182,213,244,274,305,335];function Pt(e,t){return new Ot("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Mt(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return 0===o?7:o}function Tt(e,t,n){return n+(tn(e)?Dt:xt)[t-1]}function Rt(e,t){const n=tn(e)?Dt:xt,r=n.findIndex(e=>e<t);return{month:r+1,day:t-n[r]}}function It(e,t){return(e-t+7)%7+1}function Ft(e,t=4,n=1){const{year:r,month:o,day:i}=e,a=Tt(r,o,i),s=It(Mt(r,o,i),n);let l,c=Math.floor((a-s+14-t)/7);return c<1?(l=r-1,c=sn(l,t,n)):c>sn(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:s,...fn(e)}}function kt(e,t=4,n=1){const{weekYear:r,weekNumber:o,weekday:i}=e,a=It(Mt(r,1,t),n),s=nn(r);let l,c=7*o+i-a-7+t;c<1?(l=r-1,c+=nn(l)):c>s?(l=r+1,c-=nn(r)):l=r;const{month:u,day:d}=Rt(l,c);return{year:l,month:u,day:d,...fn(e)}}function Lt(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:Tt(t,n,r),...fn(e)}}function Bt(e){const{year:t,ordinal:n}=e,{month:r,day:o}=Rt(t,n);return{year:t,month:r,day:o,...fn(e)}}function Nt(e,t){if(!Vt(e.localWeekday)||!Vt(e.localWeekNumber)||!Vt(e.localWeekYear)){if(!Vt(e.weekday)||!Vt(e.weekNumber)||!Vt(e.weekYear))throw new ye("Cannot mix locale-based week fields with ISO-based week fields");return Vt(e.localWeekday)||(e.weekday=e.localWeekday),Vt(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Vt(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function jt(e){const t=Gt(e.year),n=qt(e.month,1,12),r=qt(e.day,1,rn(e.year,e.month));return t?n?!r&&Pt("day",e.day):Pt("month",e.month):Pt("year",e.year)}function Ut(e){const{hour:t,minute:n,second:r,millisecond:o}=e,i=qt(t,0,23)||24===t&&0===n&&0===r&&0===o,a=qt(n,0,59),s=qt(r,0,59),l=qt(o,0,999);return i?a?s?!l&&Pt("millisecond",o):Pt("second",r):Pt("minute",n):Pt("hour",t)}function Vt(e){return void 0===e}function Ht(e){return"number"==typeof e}function Gt(e){return"number"==typeof e&&e%1==0}function Wt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function zt(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function $t(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{const o=[t(r),r];return e&&n(e[0],o[0])===e[0]?e:o},null)[1]}function Kt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qt(e){if(null==e)return null;if("object"!=typeof e)throw new we("Week settings must be an object");if(!qt(e.firstDay,1,7)||!qt(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!qt(e,1,7)))throw new we("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function qt(e,t,n){return Gt(e)&&e>=t&&e<=n}function Yt(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function Xt(e){return Vt(e)||null===e||""===e?void 0:parseInt(e,10)}function Zt(e){return Vt(e)||null===e||""===e?void 0:parseFloat(e)}function Jt(e){if(!Vt(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function en(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function tn(e){return e%4==0&&(e%100!=0||e%400==0)}function nn(e){return tn(e)?366:365}function rn(e,t){const n=function(e){return e-12*Math.floor(e/12)}(t-1)+1;return 2===n?tn(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function on(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function an(e,t,n){return-It(Mt(e,1,t),n)+t-1}function sn(e,t=4,n=1){const r=an(e,t,n),o=an(e+1,t,n);return(nn(e)-r+o)/7}function ln(e){return e>99?e:e>St.twoDigitCutoffYear?1900+e:2e3+e}function cn(e,t,n,r=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:t,...i},s=new Intl.DateTimeFormat(n,a).formatToParts(o).find(e=>"timezonename"===e.type.toLowerCase());return s?s.value:null}function un(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function dn(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new we(`Invalid unit value ${e}`);return t}function pn(e,t){const n={};for(const r in e)if(Kt(e,r)){const o=e[r];if(null==o)continue;n[t(r)]=dn(o)}return n}function hn(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${Yt(n,2)}:${Yt(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${Yt(n,2)}${Yt(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function fn(e){return function(e){return["hour","minute","second","millisecond"].reduce((t,n)=>(t[n]=e[n],t),{})}(e)}const gn=["January","February","March","April","May","June","July","August","September","October","November","December"],mn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],vn=["J","F","M","A","M","J","J","A","S","O","N","D"];function yn(e){switch(e){case"narrow":return[...vn];case"short":return[...mn];case"long":return[...gn];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const An=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],wn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],bn=["M","T","W","T","F","S","S"];function _n(e){switch(e){case"narrow":return[...bn];case"short":return[...wn];case"long":return[...An];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Cn=["AM","PM"],En=["Before Christ","Anno Domini"],Sn=["BC","AD"],On=["B","A"];function xn(e){switch(e){case"narrow":return[...On];case"short":return[...Sn];case"long":return[...En];default:return null}}function Dn(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Pn={D:Se,DD:Oe,DDD:De,DDDD:Pe,t:Me,tt:Te,ttt:Re,tttt:Ie,T:Fe,TT:ke,TTT:Le,TTTT:Be,f:Ne,ff:Ue,fff:Ge,ffff:ze,F:je,FF:Ve,FFF:We,FFFF:$e};class Mn{static create(e,t={}){return new Mn(e,t)}static parseFormat(e){let t=null,n="",r=!1;const o=[];for(let i=0;i<e.length;i++){const a=e.charAt(i);"'"===a?(n.length>0&&o.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&o.push({literal:r||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(e){return Pn[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Yt(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(t,n)=>this.loc.extract(e,t,n),i=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=(t,r)=>n?function(e,t){return yn(t)[e.month-1]}(e,t):o(r?{month:t}:{month:t,day:"numeric"},"month"),s=(t,r)=>n?function(e,t){return _n(t)[e.weekday-1]}(e,t):o(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=Mn.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?function(e,t){return xn(t)[e.year<0?0:1]}(e,t):o({era:t},"era");return Dn(Mn.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return n?function(e){return Cn[e.hour<12?0:1]}(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?o({day:"numeric"},"day"):this.num(e.day);case"dd":return r?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return s("short",!0);case"cccc":return s("long",!0);case"ccccc":return s("narrow",!0);case"EEE":return s("short",!1);case"EEEE":return s("long",!1);case"EEEEE":return s("narrow",!1);case"L":return r?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return r?o({month:"numeric"},"month"):this.num(e.month);case"MM":return r?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return r?o({year:"numeric"},"year"):this.num(e.year);case"yy":return r?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}})}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=Mn.parseFormat(t),o=r.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]);return Dn(r,(e=>t=>{const r=n(t);return r?this.num(e.get(r),t.length):t})(e.shiftTo(...o.map(n).filter(e=>e))))}}const Tn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Rn(...e){const t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function In(...e){return t=>e.reduce(([e,n,r],o)=>{const[i,a,s]=o(t,r);return[{...e,...i},a||n,s]},[{},null,1]).slice(0,2)}function Fn(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function kn(...e){return(t,n)=>{const r={};let o;for(o=0;o<e.length;o++)r[e[o]]=Xt(t[n+o]);return[r,null,n+o]}}const Ln=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Bn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Nn=RegExp(`${Bn.source}(?:${Ln.source}?(?:\\[(${Tn.source})\\])?)?`),jn=RegExp(`(?:T${Nn.source})?`),Un=kn("weekYear","weekNumber","weekDay"),Vn=kn("year","ordinal"),Hn=RegExp(`${Bn.source} ?(?:${Ln.source}|(${Tn.source}))?`),Gn=RegExp(`(?: ${Hn.source})?`);function Wn(e,t,n){const r=e[t];return Vt(r)?n:Xt(r)}function zn(e,t){return[{hours:Wn(e,t,0),minutes:Wn(e,t+1,0),seconds:Wn(e,t+2,0),milliseconds:Jt(e[t+3])},null,t+4]}function $n(e,t){const n=!e[t]&&!e[t+1],r=un(e[t+1],e[t+2]);return[{},n?null:ft.instance(r),t+3]}function Kn(e,t){return[{},e[t]?Je.create(e[t]):null,t+1]}const Qn=RegExp(`^T?${Bn.source}$`),qn=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Yn(e){const[t,n,r,o,i,a,s,l,c]=e,u="-"===t[0],d=l&&"-"===l[0],p=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:p(Zt(n)),months:p(Zt(r)),weeks:p(Zt(o)),days:p(Zt(i)),hours:p(Zt(a)),minutes:p(Zt(s)),seconds:p(Zt(l),"-0"===l),milliseconds:p(Jt(c),d)}]}const Xn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Zn(e,t,n,r,o,i,a){const s={year:2===t.length?ln(Xt(t)):Xt(t),month:mn.indexOf(n)+1,day:Xt(r),hour:Xt(o),minute:Xt(i)};return a&&(s.second=Xt(a)),e&&(s.weekday=e.length>3?An.indexOf(e)+1:wn.indexOf(e)+1),s}const Jn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function er(e){const[,t,n,r,o,i,a,s,l,c,u,d]=e,p=Zn(t,o,r,n,i,a,s);let h;return h=l?Xn[l]:c?0:un(u,d),[p,new ft(h)]}const tr=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,nr=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,rr=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function or(e){const[,t,n,r,o,i,a,s]=e;return[Zn(t,o,r,n,i,a,s),ft.utcInstance]}function ir(e){const[,t,n,r,o,i,a,s]=e;return[Zn(t,s,n,r,o,i,a),ft.utcInstance]}const ar=Rn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,jn),sr=Rn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,jn),lr=Rn(/(\d{4})-?(\d{3})/,jn),cr=Rn(Nn),ur=In(function(e,t){return[{year:Wn(e,t),month:Wn(e,t+1,1),day:Wn(e,t+2,1)},null,t+3]},zn,$n,Kn),dr=In(Un,zn,$n,Kn),pr=In(Vn,zn,$n,Kn),hr=In(zn,$n,Kn),fr=In(zn),gr=Rn(/(\d{4})-(\d\d)-(\d\d)/,Gn),mr=Rn(Hn),vr=In(zn,$n,Kn),yr="Invalid Duration",Ar={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},wr={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Ar},br={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Ar},_r=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Cr=_r.slice(0).reverse();function Er(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new xr(r)}function Sr(e,t){let n=t.milliseconds??0;for(const r of Cr.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Or(e,t){const n=Sr(e,t)<0?-1:1;_r.reduceRight((r,o)=>{if(Vt(t[o]))return r;if(r){const i=t[r]*n,a=e[o][r],s=Math.floor(i/a);t[o]+=s*n,t[r]-=s*a*n}return o},null),_r.reduce((n,r)=>{if(Vt(t[r]))return n;if(n){const o=t[n]%1;t[n]-=o,t[r]+=o*e[n][r]}return r},null)}class xr{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?br:wr;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||pt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return xr.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new we("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new xr({values:pn(e,xr.normalizeUnit),loc:pt.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Ht(e))return xr.fromMillis(e);if(xr.isDuration(e))return e;if("object"==typeof e)return xr.fromObject(e);throw new we(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return Fn(e,[qn,Yn])}(e);return n?xr.fromObject(n,t):xr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return Fn(e,[Qn,fr])}(e);return n?xr.fromObject(n,t):xr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new we("need to specify a reason the Duration is invalid");const n=e instanceof Ot?e:new Ot(e,t);if(St.throwOnInvalid)throw new ve(n);return new xr({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new Ae(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Mn.create(this.loc,n).formatDurationFromString(this,e):yr}toHuman(e={}){if(!this.isValid)return yr;const t=_r.map(t=>{const n=this.values[t];return Vt(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=en(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},bo.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Sr(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=xr.fromDurationLike(e),n={};for(const e of _r)(Kt(t.values,e)||Kt(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Er(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=xr.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=dn(e(this.values[n],n));return Er(this,{values:t},!0)}get(e){return this[xr.normalizeUnit(e)]}set(e){return this.isValid?Er(this,{values:{...this.values,...pn(e,xr.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return Er(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Or(this.matrix,e),Er(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=function(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}(this.normalize().shiftToAll().toObject());return Er(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map(e=>xr.normalizeUnit(e));const t={},n={},r=this.toObject();let o;for(const i of _r)if(e.indexOf(i)>=0){o=i;let e=0;for(const t in n)e+=this.matrix[t][i]*n[t],n[t]=0;Ht(r[i])&&(e+=r[i]);const a=Math.trunc(e);t[i]=a,n[i]=(1e3*e-1e3*a)/1e3}else Ht(r[i])&&(n[i]=r[i]);for(const e in n)0!==n[e]&&(t[o]+=e===o?n[e]:n[e]/this.matrix[o][e]);return Or(this.matrix,t),Er(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Er(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(const n of _r)if(!t(this.values[n],e.values[n]))return!1;return!0}}const Dr="Invalid Interval";class Pr{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new we("need to specify a reason the Interval is invalid");const n=e instanceof Ot?e:new Ot(e,t);if(St.throwOnInvalid)throw new me(n);return new Pr({invalid:n})}static fromDateTimes(e,t){const n=_o(e),r=_o(t),o=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?Pr.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Pr.invalid("missing or invalid end"):Pr.invalid("missing or invalid start")}(n,r);return null==o?new Pr({start:n,end:r}):o}static after(e,t){const n=xr.fromDurationLike(t),r=_o(e);return Pr.fromDateTimes(r,r.plus(n))}static before(e,t){const n=xr.fromDurationLike(t),r=_o(e);return Pr.fromDateTimes(r.minus(n),r)}static fromISO(e,t){const[n,r]=(e||"").split("/",2);if(n&&r){let e,o,i,a;try{e=bo.fromISO(n,t),o=e.isValid}catch(r){o=!1}try{i=bo.fromISO(r,t),a=i.isValid}catch(r){a=!1}if(o&&a)return Pr.fromDateTimes(e,i);if(o){const n=xr.fromISO(r,t);if(n.isValid)return Pr.after(e,n)}else if(a){const e=xr.fromISO(n,t);if(e.isValid)return Pr.before(i,e)}}return Pr.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?Pr.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(_o).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),n=[];let{s:r}=this,o=0;for(;r<this.e;){const e=t[o]||this.e,i=+e>+this.e?this.e:e;n.push(Pr.fromDateTimes(r,i)),r=i,o+=1}return n}splitBy(e){const t=xr.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,o=1;const i=[];for(;r<this.e;){const e=this.start.plus(t.mapUnits(e=>e*o));n=+e>+this.e?this.e:e,i.push(Pr.fromDateTimes(r,n)),r=n,o+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e===+e.s}abutsEnd(e){return!!this.isValid&&+e.e===+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:Pr.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Pr.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],o=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),i=Array.prototype.concat(...o).sort((e,t)=>e.time-t.time);for(const e of i)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!==+e.time&&r.push(Pr.fromDateTimes(t,e.time)),t=null);return Pr.merge(r)}difference(...e){return Pr.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Dr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Se,t={}){return this.isValid?Mn.create(this.s.loc.clone(t),e).formatInterval(this):Dr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Dr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Dr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Dr}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Dr}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):xr.invalid(this.invalidReason)}mapEndpoints(e){return Pr.fromDateTimes(e(this.s),e(this.e))}}class Mr{static hasDST(e=St.defaultZone){const t=bo.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Je.isValidZone(e)}static normalizeZone(e){return mt(e,St.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||pt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||pt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||pt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||pt.create(t,n,o)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||pt.create(t,n,o)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||pt.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||pt.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return pt.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return pt.create(t,null,"gregory").eras(e)}static features(){return{relative:Wt(),localeWeek:zt()}}}function Tr(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(xr.fromMillis(r).as("days"))}const Rr={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Ir={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Fr=Rr.hanidec.replace(/[\[|\]]/g,"").split("");function kr({numberingSystem:e},t=""){return new RegExp(`${Rr[e||"latn"]}${t}`)}function Lr(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(-1!==e[n].search(Rr.hanidec))t+=Fr.indexOf(e[n]);else for(const e in Ir){const[n,o]=Ir[e];r>=n&&r<=o&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const Br=`[ ${String.fromCharCode(160)}]`,Nr=new RegExp(Br,"g");function jr(e){return e.replace(/\./g,"\\.?").replace(Nr,Br)}function Ur(e){return e.replace(/\./g,"").replace(Nr," ").toLowerCase()}function Vr(e,t){return null===e?null:{regex:RegExp(e.map(jr).join("|")),deser:([n])=>e.findIndex(e=>Ur(n)===Ur(e))+t}}function Hr(e,t){return{regex:e,deser:([,e,t])=>un(e,t),groups:t}}function Gr(e){return{regex:e,deser:([e])=>e}}function Wr(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const zr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let $r=null;function Kr(e,t){return Array.prototype.concat(...e.map(e=>function(e,t){if(e.literal)return e;const n=qr(Mn.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t)))}function Qr(e,t,n){const r=Kr(Mn.parseFormat(n),e),o=r.map(t=>function(e,t){const n=kr(t),r=kr(t,"{2}"),o=kr(t,"{3}"),i=kr(t,"{4}"),a=kr(t,"{6}"),s=kr(t,"{1,2}"),l=kr(t,"{1,3}"),c=kr(t,"{1,6}"),u=kr(t,"{1,9}"),d=kr(t,"{2,4}"),p=kr(t,"{4,6}"),h=e=>({regex:RegExp(Wr(e.val)),deser:([e])=>e,literal:!0}),f=(f=>{if(e.literal)return h(f);switch(f.val){case"G":return Vr(t.eras("short"),0);case"GG":return Vr(t.eras("long"),0);case"y":return Lr(c);case"yy":case"kk":return Lr(d,ln);case"yyyy":case"kkkk":return Lr(i);case"yyyyy":return Lr(p);case"yyyyyy":return Lr(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Lr(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Lr(r);case"MMM":return Vr(t.months("short",!0),1);case"MMMM":return Vr(t.months("long",!0),1);case"LLL":return Vr(t.months("short",!1),1);case"LLLL":return Vr(t.months("long",!1),1);case"o":case"S":return Lr(l);case"ooo":case"SSS":return Lr(o);case"u":return Gr(u);case"uu":return Gr(s);case"uuu":case"E":case"c":return Lr(n);case"a":return Vr(t.meridiems(),0);case"EEE":return Vr(t.weekdays("short",!1),1);case"EEEE":return Vr(t.weekdays("long",!1),1);case"ccc":return Vr(t.weekdays("short",!0),1);case"cccc":return Vr(t.weekdays("long",!0),1);case"Z":case"ZZ":return Hr(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return Hr(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return Gr(/[a-z_+-/]{1,256}?/i);case" ":return Gr(/[^\S\n\r]/);default:return h(f)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=e,f}(t,e)),i=o.find(e=>e.invalidReason);if(i)return{input:t,tokens:r,invalidReason:i.invalidReason};{const[e,n]=function(e){return[`^${e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"")}$`,e]}(o),i=RegExp(e,"i"),[a,s]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const o in n)if(Kt(n,o)){const i=n[o],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(r.slice(t,t+a))),t+=a}return[r,e]}return[r,{}]}(t,i,n),[l,c,u]=s?function(e){let t,n=null;Vt(e.z)||(n=Je.create(e.z)),Vt(e.Z)||(n||(n=new ft(e.Z)),t=e.Z),Vt(e.q)||(e.M=3*(e.q-1)+1),Vt(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Vt(e.u)||(e.S=Jt(e.u));const r=Object.keys(e).reduce((t,n)=>{const r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t},{});return[r,n,t]}(s):[null,null,void 0];if(Kt(s,"a")&&Kt(s,"H"))throw new ye("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:i,rawMatches:a,matches:s,result:l,zone:c,specificOffset:u}}}function qr(e,t){if(!e)return null;const n=Mn.create(t,e).dtFormatter(($r||($r=bo.fromMillis(1555555555555)),$r)),r=n.formatToParts(),o=n.resolvedOptions();return r.map(t=>function(e,t,n){const{type:r,value:o}=e;if("literal"===r){const e=/^\s+$/.test(o);return{literal:!e,val:e?" ":o}}const i=t[r];let a=r;"hour"===r&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=zr[a];if("object"==typeof s&&(s=s[i]),s)return{literal:!1,val:s}}(t,e,o))}const Yr="Invalid DateTime",Xr=864e13;function Zr(e){return new Ot("unsupported zone",`the zone "${e.name}" is not supported`)}function Jr(e){return null===e.weekData&&(e.weekData=Ft(e.c)),e.weekData}function eo(e){return null===e.localWeekData&&(e.localWeekData=Ft(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function to(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new bo({...n,...t,old:n})}function no(e,t,n){let r=e-60*t*1e3;const o=n.offset(r);if(t===o)return[r,t];r-=60*(o-t)*1e3;const i=n.offset(r);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}function ro(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function oo(e,t,n){return no(on(e),t,n)}function io(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:r,month:o,day:Math.min(e.c.day,rn(r,o))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=xr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=on(i);let[l,c]=no(s,n,e.zone);return 0!==a&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function ao(e,t,n,r,o,i){const{setZone:a,zone:s}=n;if(e&&0!==Object.keys(e).length||t){const r=t||s,o=bo.fromObject(e,{...n,zone:r,specificOffset:i});return a?o:o.setZone(s)}return bo.invalid(new Ot("unparsable",`the input "${o}" can't be parsed as ${r}`))}function so(e,t,n=!0){return e.isValid?Mn.create(pt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function lo(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=Yt(e.c.year,n?6:4),t?(r+="-",r+=Yt(e.c.month),r+="-",r+=Yt(e.c.day)):(r+=Yt(e.c.month),r+=Yt(e.c.day)),r}function co(e,t,n,r,o,i){let a=Yt(e.c.hour);return t?(a+=":",a+=Yt(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=":")):a+=Yt(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=Yt(e.c.second),0===e.c.millisecond&&r||(a+=".",a+=Yt(e.c.millisecond,3))),o&&(e.isOffsetFixed&&0===e.offset&&!i?a+="Z":e.o<0?(a+="-",a+=Yt(Math.trunc(-e.o/60)),a+=":",a+=Yt(Math.trunc(-e.o%60))):(a+="+",a+=Yt(Math.trunc(e.o/60)),a+=":",a+=Yt(Math.trunc(e.o%60)))),i&&(a+="["+e.zone.ianaName+"]"),a}const uo={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},po={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ho={ordinal:1,hour:0,minute:0,second:0,millisecond:0},fo=["year","month","day","hour","minute","second","millisecond"],go=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],mo=["year","ordinal","hour","minute","second","millisecond"];function vo(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Ae(e);return t}(e)}}function yo(e,t){const n=mt(t.zone,St.defaultZone),r=pt.fromObject(t),o=St.now();let i,a;if(Vt(e.year))i=o;else{for(const t of fo)Vt(e[t])&&(e[t]=uo[t]);const t=jt(e)||Ut(e);if(t)return bo.invalid(t);const r=n.offset(o);[i,a]=oo(e,r,n)}return new bo({ts:i,zone:n,loc:r,o:a})}function Ao(e,t,n){const r=!!Vt(n.round)||n.round,o=(e,o)=>(e=en(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,o)),i=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return o(i(n.unit),n.unit);for(const e of n.units){const t=i(e);if(Math.abs(t)>=1)return o(t,e)}return o(e>t?-0:0,n.units[n.units.length-1])}function wo(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class bo{constructor(e){const t=e.zone||St.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Ot("invalid input"):null)||(t.isValid?null:Zr(t));this.ts=Vt(e.ts)?St.now():e.ts;let r=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,o]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);r=ro(this.ts,e),n=Number.isNaN(r.year)?new Ot("invalid input"):null,r=n?null:r,o=n?null:e}this._zone=t,this.loc=e.loc||pt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}static now(){return new bo({})}static local(){const[e,t]=wo(arguments),[n,r,o,i,a,s,l]=t;return yo({year:n,month:r,day:o,hour:i,minute:a,second:s,millisecond:l},e)}static utc(){const[e,t]=wo(arguments),[n,r,o,i,a,s,l]=t;return e.zone=ft.utcInstance,yo({year:n,month:r,day:o,hour:i,minute:a,second:s,millisecond:l},e)}static fromJSDate(e,t={}){const n=function(e){return"[object Date]"===Object.prototype.toString.call(e)}(e)?e.valueOf():NaN;if(Number.isNaN(n))return bo.invalid("invalid input");const r=mt(t.zone,St.defaultZone);return r.isValid?new bo({ts:n,zone:r,loc:pt.fromObject(t)}):bo.invalid(Zr(r))}static fromMillis(e,t={}){if(Ht(e))return e<-Xr||e>Xr?bo.invalid("Timestamp out of range"):new bo({ts:e,zone:mt(t.zone,St.defaultZone),loc:pt.fromObject(t)});throw new we(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Ht(e))return new bo({ts:1e3*e,zone:mt(t.zone,St.defaultZone),loc:pt.fromObject(t)});throw new we("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=mt(t.zone,St.defaultZone);if(!n.isValid)return bo.invalid(Zr(n));const r=pt.fromObject(t),o=pn(e,vo),{minDaysInFirstWeek:i,startOfWeek:a}=Nt(o,r),s=St.now(),l=Vt(t.specificOffset)?n.offset(s):t.specificOffset,c=!Vt(o.ordinal),u=!Vt(o.year),d=!Vt(o.month)||!Vt(o.day),p=u||d,h=o.weekYear||o.weekNumber;if((p||c)&&h)throw new ye("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new ye("Can't mix ordinal dates with month/day");const f=h||o.weekday&&!p;let g,m,v=ro(s,l);f?(g=go,m=po,v=Ft(v,i,a)):c?(g=mo,m=ho,v=Lt(v)):(g=fo,m=uo);let y=!1;for(const e of g)Vt(o[e])?o[e]=y?m[e]:v[e]:y=!0;const A=f?function(e,t=4,n=1){const r=Gt(e.weekYear),o=qt(e.weekNumber,1,sn(e.weekYear,t,n)),i=qt(e.weekday,1,7);return r?o?!i&&Pt("weekday",e.weekday):Pt("week",e.weekNumber):Pt("weekYear",e.weekYear)}(o,i,a):c?function(e){const t=Gt(e.year),n=qt(e.ordinal,1,nn(e.year));return t?!n&&Pt("ordinal",e.ordinal):Pt("year",e.year)}(o):jt(o),w=A||Ut(o);if(w)return bo.invalid(w);const b=f?kt(o,i,a):c?Bt(o):o,[_,C]=oo(b,l,n),E=new bo({ts:_,zone:n,o:C,loc:r});return o.weekday&&p&&e.weekday!==E.weekday?bo.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${E.toISO()}`):E}static fromISO(e,t={}){const[n,r]=function(e){return Fn(e,[ar,ur],[sr,dr],[lr,pr],[cr,hr])}(e);return ao(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return Fn(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Jn,er])}(e);return ao(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return Fn(e,[tr,or],[nr,or],[rr,ir])}(e);return ao(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(Vt(e)||Vt(t))throw new we("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:o=null}=n,i=pt.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),[a,s,l,c]=function(e,t,n){const{result:r,zone:o,specificOffset:i,invalidReason:a}=Qr(e,t,n);return[r,o,i,a]}(i,e,t);return c?bo.invalid(c):ao(a,s,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return bo.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return Fn(e,[gr,ur],[mr,vr])}(e);return ao(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new we("need to specify a reason the DateTime is invalid");const n=e instanceof Ot?e:new Ot(e,t);if(St.throwOnInvalid)throw new ge(n);return new bo({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=qr(e,pt.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return Kr(Mn.parseFormat(e),pt.fromObject(t)).map(e=>e.val).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Jr(this).weekYear:NaN}get weekNumber(){return this.isValid?Jr(this).weekNumber:NaN}get weekday(){return this.isValid?Jr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?eo(this).weekday:NaN}get localWeekNumber(){return this.isValid?eo(this).weekNumber:NaN}get localWeekYear(){return this.isValid?eo(this).weekYear:NaN}get ordinal(){return this.isValid?Lt(this.c).ordinal:NaN}get monthShort(){return this.isValid?Mr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Mr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Mr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Mr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=on(this.c),r=this.zone.offset(n-e),o=this.zone.offset(n+e),i=this.zone.offset(n-r*t),a=this.zone.offset(n-o*t);if(i===a)return[this];const s=n-i*t,l=n-a*t,c=ro(s,i),u=ro(l,a);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[to(this,{ts:s}),to(this,{ts:l})]:[this]}get isInLeapYear(){return tn(this.year)}get daysInMonth(){return rn(this.year,this.month)}get daysInYear(){return this.isValid?nn(this.year):NaN}get weeksInWeekYear(){return this.isValid?sn(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?sn(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=Mn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(ft.instance(e),t)}toLocal(){return this.setZone(St.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=mt(e,St.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=oo(n,t,e)}return to(this,{ts:r,zone:e})}return bo.invalid(Zr(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return to(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=pn(e,vo),{minDaysInFirstWeek:n,startOfWeek:r}=Nt(t,this.loc),o=!Vt(t.weekYear)||!Vt(t.weekNumber)||!Vt(t.weekday),i=!Vt(t.ordinal),a=!Vt(t.year),s=!Vt(t.month)||!Vt(t.day),l=a||s,c=t.weekYear||t.weekNumber;if((l||i)&&c)throw new ye("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new ye("Can't mix ordinal dates with month/day");let u;o?u=kt({...Ft(this.c,n,r),...t},n,r):Vt(t.ordinal)?(u={...this.toObject(),...t},Vt(t.day)&&(u.day=Math.min(rn(u.year,u.month),u.day))):u=Bt({...Lt(this.c),...t});const[d,p]=oo(u,this.o,this.zone);return to(this,{ts:d,o:p})}plus(e){return this.isValid?to(this,io(this,xr.fromDurationLike(e))):this}minus(e){return this.isValid?to(this,io(this,xr.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},r=xr.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===r){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?Mn.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Yr}toLocaleString(e=Se,t={}){return this.isValid?Mn.create(this.loc.clone(t),e).formatDateTime(this):Yr}toLocaleParts(e={}){return this.isValid?Mn.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const i="extended"===e;let a=lo(this,i);return a+="T",a+=co(this,i,t,n,r,o),a}toISODate({format:e="extended"}={}){return this.isValid?lo(this,"extended"===e):null}toISOWeekDate(){return so(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:o=!1,format:i="extended"}={}){return this.isValid?(r?"T":"")+co(this,"extended"===i,t,e,n,o):null}toRFC2822(){return so(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return so(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?lo(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),so(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Yr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return xr.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=(s=t,Array.isArray(s)?s:[s]).map(xr.normalizeUnit),i=e.valueOf()>this.valueOf(),a=function(e,t,n,r){let[o,i,a,s]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Tr(e,t);return(n-n%7)/7}],["days",Tr]],o={},i=e;let a,s;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,o[l]=c(e,t),s=i.plus(o),s>t?(o[l]--,(e=i.plus(o))>t&&(s=e,o[l]--,e=i.plus(o))):e=s);return[e,o,s,a]}(e,t,n);const l=t-o,c=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===c.length&&(a<t&&(a=o.plus({[s]:1})),a!==o&&(i[s]=(i[s]||0)+l/(a-o)));const u=xr.fromObject(i,r);return c.length>0?xr.fromMillis(l,r).shiftTo(...c).plus(u):u}(i?this:e,i?e:this,o,r);var s;return i?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(bo.now(),e,t)}until(e){return this.isValid?Pr.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const r=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(t,n)<=r&&r<=o.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||bo.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(r=e.unit,o=void 0),Ao(t,this.plus(n),{...e,numeric:"always",units:r,unit:o})}toRelativeCalendar(e={}){return this.isValid?Ao(e.base||bo.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(bo.isDateTime))throw new we("min requires all arguments be DateTimes");return $t(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(bo.isDateTime))throw new we("max requires all arguments be DateTimes");return $t(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:o=null}=n;return Qr(pt.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return bo.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return Se}static get DATE_MED(){return Oe}static get DATE_MED_WITH_WEEKDAY(){return xe}static get DATE_FULL(){return De}static get DATE_HUGE(){return Pe}static get TIME_SIMPLE(){return Me}static get TIME_WITH_SECONDS(){return Te}static get TIME_WITH_SHORT_OFFSET(){return Re}static get TIME_WITH_LONG_OFFSET(){return Ie}static get TIME_24_SIMPLE(){return Fe}static get TIME_24_WITH_SECONDS(){return ke}static get TIME_24_WITH_SHORT_OFFSET(){return Le}static get TIME_24_WITH_LONG_OFFSET(){return Be}static get DATETIME_SHORT(){return Ne}static get DATETIME_SHORT_WITH_SECONDS(){return je}static get DATETIME_MED(){return Ue}static get DATETIME_MED_WITH_SECONDS(){return Ve}static get DATETIME_MED_WITH_WEEKDAY(){return He}static get DATETIME_FULL(){return Ge}static get DATETIME_FULL_WITH_SECONDS(){return We}static get DATETIME_HUGE(){return ze}static get DATETIME_HUGE_WITH_SECONDS(){return $e}}function _o(e){if(bo.isDateTime(e))return e;if(e&&e.valueOf&&Ht(e.valueOf()))return bo.fromJSDate(e);if(e&&"object"==typeof e)return bo.fromObject(e);throw new we(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var Co;!function(e){e[e.Fast=100]="Fast",e[e.Medium=250]="Medium",e[e.Slow=500]="Slow"}(Co||(Co={}));class Eo extends h.PureComponent{canvasRef;drawRef;peak=0;peakTime=null;peakHold=!1;width=10;instant;height=300;peakMinHeight;peakValue;constructor(e){super(e),this.instant=0,this.canvasRef=(0,h.createRef)()}componentDidMount(){const e=setInterval(()=>this.valueProcess(),50);this.setState({intervalId:e})}componentDidUpdate(){this.valueProcess()}componentWillUnmount(){clearInterval(this.state.intervalId)}valueProcess=()=>{this.instant<1e-4&&(this.instant=0);const e=Math.max(this.props.value/140,.85*(this.instant??0));e>=this.peak&&(this.peak=e,this.peakTime=bo.utc()),null!=this.peakTime&&bo.utc().diff(this.peakTime).as("milliseconds")>1e3&&(this.peak=Math.max(e,.95*this.peak)),this.peakHold=this.peak===e,this.instant=e,this.drawRef||this.drawLoop()};drawLoop=()=>{if(this.canvasRef.current){const e=this.canvasRef.current.getContext("2d");e.clearRect(0,0,this.width,this.height);const t=20,n=this.height/t,r=this.instant*this.height*1.4/n;for(let o=0;o<r;o++)e.fillStyle=o>.75*t?"#ff4452":o>.6*t?"#ffcb75":"#8bc675",e.fillRect(0,this.height-n*o,this.width,2-n);const o=this.peak*this.height*1.4/n;e.fillStyle="white";const i=n*(r+1);this.peakMinHeight=i;const a=this.peakHold?n*Math.round(o):n*o;this.peakValue=a,0!==a&&e.fillRect(0,this.height-(a<=i?i:a),this.width,2),this.drawRef=window.requestAnimationFrame(this.drawLoop)}};render(){return(0,p.jsx)("div",{style:{display:"inline-block",margin:"2px "},children:(0,p.jsx)("canvas",{ref:this.canvasRef,id:"bar",width:this.width,height:this.height})},"level")}}var So=u(53373),Oo=u.n(So),xo=u(25873);const Do=["amp-128px","amp-16px","amp-2021","amp-256px","amp-32px","amp-512px","amp-64px","amp-ampp-plus","amp-light-32px","animation-add","animation-auto","animation-delete","animation-next","animation-previous","animation-reset","application-asset-management","application-audio-mixer","application-audio-production","application-av-mux","application-capturing","application-clean-cut","application-clip-play","application-clip-player","application-clip-record","application-control-ampp","application-creative-grading","application-delay","application-flow-monitor","application-graphics","application-grassvalley-camera-grading","application-grassvalley-camera-ldx","application-grassvalley-camera-wireless","application-grassvalley-camera","application-gvui-simple-rev2","application-gvui-simple","application-gvui","application-input","application-intercom","application-k-frame-asset","application-k-frame-LUT","application-k-frame-mirror-v2","application-k-frame-mirror","application-k-frame-plain","application-k-frame-watch","application-k-frame","application-live-producer","application-master-control","application-monitoring","application-multi-viewer","application-node-manager","application-output","application-play-and-record","application-playlist","application-playout-archive-cloud","application-playout-audio-cloud","application-playout-video-cloud","application-playout","application-processing","application-production-switching","application-replay-ingest","application-replay-playout","application-replay","application-solocaster","application-stratus","application-test-signal","application-tools","arrows-back-button","arrows-back","arrows-down-small","arrows-down","arrows-forward-button","arrows-forward","arrows-left-2","arrows-left-small","arrows-left","arrows-nudge-down","arrows-nudge-up","arrows-page-first","arrows-page-last","arrows-point-down","arrows-point-left","arrows-point-right","arrows-point-up","arrows-right-2","arrows-right-small","arrows-right","arrows-up-small","arrows-up","audio-audio-disable","audio","audio-aux-one","audio-aux-two","audio-crossfade","audio-cut","audio-edit","audio-expand-left","audio-expand-right","audio-expand","audio-levels","audio-one","audio-options","audio-slip","audio-track-add-horizontal","audio-track-add-vertical","audio-track-add","audio-two","audio-v-fade","audio-voice-over","bookmark-add","bookmark-bookmark-show","bookmark","bookmark-delete","bookmark-deselect","bookmark-disabled","bookmark-hide","bookmark-next","bookmark-previous","bookmark-rename","bookmark-sort","bookmark-toggle","branding-ampp","branding-docker","branding-favicon-old","branding-gv2021","branding-gv2021default","branding-loginscreen-old","branding-menubar-old","branding-screensaver-old","branding-test","branding-white","checkbox-hidden","checkbox-minus","checkbox-off","checkbox-on","comment-add","comment","effects-alpha","effects-bottom","effects-centre","effects-crop","effects-distribute-horizontally","effects-distribute-vertically","effects-effects-reset","effects","effects-fx-folders","effects-fx","effects-image-blur","effects-image-refresh","effects-keyframe-add","effects-keyframe-delete","effects-keyframe-next","effects-keyframe-previous","effects-left","effects-magic-wand","effects-middle","effects-opacity","effects-pixelate","effects-right","effects-scale-large","effects-scale-medium","effects-scale-small","effects-scale","effects-speed-1","effects-speed-2","effects-top","effects-transform","effects-transparent","ex-departures-ui","ex-digital-ui","ex-sports-ui","ex-timeplane-ui","file-add-to-folder","file-append","file-archive-restore","file-archive-rights","file-archive","file-asset-analyze","file-asset-operation","file-asset","file-audio","file-bucket-s3","file-copy-failed","file-copy-success","file-copy","file-document","file-file-1","file-file-2","file-file-3","file-file-4","file-file-5","file-file-6","file-file-7","file-file-8","file-file-9","file-file-delete","file-file-new","file","file-folder-add","file-folder-effects","file-folder-empty-1","file-folder-empty-2","file-folder-empty-3","file-folder-empty-4","file-folder-empty-5","file-folder-empty-6","file-folder-empty-7","file-folder-empty-8","file-folder-empty-9","file-folder-empty","file-folder-faviourates","file-folder-full","file-folder-not-allowed","file-folder-searches","file-folder-up","file-folder-watch-disabled","file-folder-watch","file-formats","file-ftp-transfer","file-image","file-insert","file-inspector","file-jobs-user","file-jobs","file-load","file-paste-child","file-paste-failed","file-paste-sibling","file-paste-successful","file-paste-top","file-paste","file-premiere","file-refresh","file-render","file-rules-isa","file-rules-lt","file-s3-cloud","file-save","file-schedule","file-transcode","file-video","hardware-buttons-hardware","hardware-calculator","hardware-computer-signal","hardware-computer","hardware-device-connected","hardware-edit","hardware-K2","hardware-keyboard-disabled","hardware-keyboard","hardware-power-auto","hardware-power-off","hardware-power-on","hardware-satellite","hardware-server-2","hardware-server-3-screen","hardware-server-audio","hardware-server-front","hardware-server-video","hardware-server","hardware-server2-offline","hardware-server2","hardware-servers-hide","hardware-servers-show","hardware-signal-disabled","hardware-signal","hardware-storage-locations","hardware-sums","hardware-tape","hardware-tv","image-align-horizontal","image-align-vertically","image-camera","image-graphic","image","image-pen","image-placeholder-add","image-placeholder","image-repeat","interface-button-disabled-dark","interface-button-disabled","interface-close-enclosed","interface-close","interface-delete","interface-dock-left","interface-dock-right","interface-drag-horizontal","interface-drag-vertical","interface-eye-disabled","interface-eye","interface-filter-settings","interface-filter","interface-group-add","interface-hidden","interface-link-broken","interface-link","interface-linked-clips","interface-list","interface-minus","interface-move-down","interface-move-up","interface-move","interface-new-group","interface-not-allowed","interface-options-open-left","interface-options-open-right","interface-options","interface-overview-plus","interface-plus-simple","interface-plus","interface-popout","interface-redo","interface-save-as","interface-save-database","interface-save-events","interface-save","interface-selection","interface-snap-arrow-left","interface-snap-arrow-right","interface-thumbs-down","interface-thumbs-up","interface-tick-enclosed-green","interface-tick-enclosed","interface-tick","interface-tracks-add","interface-tracks","interface-undo","interface-unlinked-clips","interface-upgrade-force","interface-upgrade","interface-view-thumbnails","letters-a-enclosed","letters-i","letters-o","letters-numbers-1","letters-numbers-10","letters-numbers-2","letters-numbers-3","letters-numbers-4","letters-numbers-5","letters-numbers-6","letters-numbers-7","letters-numbers-8","letters-numbers-9","letters-numbers-A","letters-numbers-B","letters-numbers-C","letters-numbers-D","letters-numbers-E","letters-numbers-F","letters-numbers-i","letters-numbers-o","letters-numbers-P","marker-add","marker-disable","marker-in-out","marker","marker-next","marker-previous","misc-ANC-rev2","misc-ANC","misc-apple","misc-black","misc-bug-accept","misc-bug-error","misc-bxf-list-locked","misc-bxf-list-unlocked","misc-bxf-locked-unlocked","misc-bxf-locked","misc-cache-inactive","misc-cache","misc-cascade","misc-channel-1","misc-channel-2","misc-channel-3","misc-channel-4","misc-coins-disabled","misc-coins","misc-departures-ui","misc-digital-channels-ui","misc-evergreen","misc-helicopter","misc-hotlist-add","misc-light-disabled","misc-light","misc-lightning-disabled","misc-lightning","misc-link-broken","misc-map","misc-monitor-1","misc-monitor-2","misc-monitor-3","misc-monitor-4","misc-MPP","misc-NDI","misc-nodes","misc-overview","misc-pay-as-you-go","misc-pin-disable","misc-pin","misc-poc","misc-rocket","misc-rule-add","misc-rule","misc-rundown-inactive","misc-rundown-show","misc-rundown","misc-sports-ui","misc-subscription","misc-touch-disable","misc-touch","misc-truck","misc-wait","misc-web","misc-white","misc-windows","misc-workflows-2","misc-workflows-trigger","misc-workflows","notifications-alarm-active-danger","notifications-alarm-inactive","notifications-alarm","notifications-alarms-list","notifications-auto","notifications-crown-enable","notifications-crown-inactive","notifications-crown","notifications-danger-colour","notifications-danger","notifications-faviourates-group","notifications-flag","notifications-heart-inactive","notifications-heart","notifications-info-blue","notifications-info-colour","notifications-info","notifications-jobs","notifications-key-default","notifications-key-disabled","notifications-lock-all","notifications-lock-closed","notifications-lock-open","notifications-lock-settings","notifications-monitor","notifications-next-error-down","notifications-next-error-left","notifications-next-error-right","notifications-next-error-up","notifications-next-warning-down","notifications-next-warning-left","notifications-next-warning-right","notifications-next-warning-up","notifications-pending","notifications-protected-reverved","notifications-question-mark","notifications-star-2","notifications-star-3","notifications-star","notifications-success-colour","notifications-tag-live","notifications-tx-ready-not-ready","notifications-tx-ready","notifications-unlock-all","notifications-warning-colour","notifications-warning-triangle","notifications-warning","player-add-to-timeline","player-create-snapshot","player-eject","player-elastic-recorder-off","player-elastic-recorder","player-end-minus","player-end-plus","player-end","player-fast-forward","player-frame-backwards","player-frame-forwards","player-full-screen","player-go-to-end","player-go-to-in","player-go-to-out","player-go-to-start","player-hotspots","player-hud-disabled","player-hud-enabled","player-in-out-remove","player-manual-nominal-start","player-mark-in","player-mark-out","player-parent-duration","player-pause","player-play-in-out","player-play","player-playback-looped","player-record-prepare","player-record-prepear","player-record-settings","player-record","player-rewind-10","player-rewind-30","player-rewind","player-source-tracks","player-speed-1x","player-speed-2x","player-speed-3x","player-speed-4x","player-speed-5x","player-speed-6x","player-speed-7x","player-speed-8x","player-start-minus","player-start-plus","player-stop","player-subclip","player-waveform-disable","player-waveform","search-dropdown","search-next","search-previous","search-search-default","search-search-dropdown","search-search-faviourate","search-search-next","search-search-previous","search","search-zoom-in","search-zoom-out","settings-accounts","settings-admin","settings-channelsettings","settings-home","settings-options-components","settings-preferences","settings-screwdriver-wrench","settings-tool-settings","settings-tools","settings-user-add","settings-user-headset","settings-user-menubar","settings-user-only","settings-user-settings","settings-user-tools","settings-user-unknown","social-email-send","social-facebook","social-instagram","social-ready","social-share","social-snapchat","social-twitter","sport-cycling","sport-football","sport-golf","sport-running","sport-swimming","sport-tennis","table-break-collapse","table-break-expand","table-collapse-all-breaks","table-container-expand","table-contanier-collapse","table-disable-selected-event-group","table-disable-selected-event","table-enable-selected-event-group","table-enable-selected-event","table-exapnd-all","table-expand-all-breaks","table-highlight-clear","table-highlight","table-secondaries-collapse","table-secondaries-expand","table-secondaries-hide","table-secondaries-show","table-show-collapse","table-show-expand","table-sort-aescending-table-headers","table-sort-ascending","table-sort-descending-table-headers","table-sort-descending","table-tree-close","table-tree-open","table-un-sorted","table-workflow-apply","text-A","text-backspace-delete","text-edit-settings","text-edit","text-edited","text-rename","text-text-edit","text","time-date-add","time-date-calendar","time-date-daylight-saving-back","time-date-daylight-saving-forward","time-date-duration-long-add","time-date-duration-long","time-date-duration-short","time-date-duration","time-date-history","time-date-hour-glass","time-date-position","time-date-remove","time-date-tick","timeline-aaf","timeline-add","timeline-audio-expand","timeline-audio-video","timeline-channels","timeline-cursor","timeline-delete","timeline-event-add","timeline-fit-height","timeline-fit-width","timeline-insert-at-end","timeline-insert-at-playhead","timeline-insert-at-start","timeline-insert","timeline-magnet-off","timeline-magnet-on","timeline-move-dark","timeline-move","timeline-panel-record","timeline-panel-source","timeline-playhead","timeline-razor","timeline-remove","timeline-replace","timeline-ripple-tail-cursor","timeline-ripple-top-cursor","timeline-roll-cursor","timeline-save","timeline-segment","timeline-settings","timeline-sync-edit","timeline-timeline-faviourate","timeline","timeline-transition-add","timeline-transition-audio","timeline-transition-disabled","timeline-transition-video","timeline-transition","timeline-trim-center","timeline-trim-left","timeline-trim-right","timeline-trim-tail-cursor","timeline-trim-top-cursor","timeline-trim","timeline-wipe","timeline-zoom-to-fit","transfer-app-update","transfer-cloud-favourites","transfer-cloud-install","transfer-cloud","transfer-download","transfer-export-cancel","transfer-export","transfer-import","transfer-publish","transfer-transcode","transfer-transfers","transfer-upload-failed","transfer-upload","transition-cut-cut","transition-cut-fade","transition-fade-cut","transition-fade-fade","transition-mix","uccm-symbol-disabled","uccm-symbol-error-critical-text","uccm-symbol-error-critical","uccm-symbol-error-major-text","uccm-symbol-error-major","uccm-symbol-error-minor-text","uccm-symbol-error-minor","uccm-symbol-non-existant","uccm-symbol-normal-operation-text","uccm-symbol-normal-operation","uccm-symbol-pending","uccm-symbol-unknown","video-camera-2","video-camera-3","video-camera-add","video-camera-disabled","video-camera-signal","video-camera-wall","video-camera","video-clips-list","video-cued","video-cueing","video-gopro","video-high-res-and-archived","video-high-res-offline","video-high-res-online","video-k-frame","video-live","video-loop","video-lut-text","video-lut","video-media-list","video-mobile-signal","video-nfc","video-off-air","video-play-list-open-left","video-play-list-open-right","video-play-list","video-proxy-inactive","video-proxy","video-reserved","video-signal","video-sizzors","video-tool-editor"],Po={"amp-128px":"amp/128px","amp-16px":"amp/16px","amp-2021":"amp/2021","amp-256px":"amp/256px","amp-32px":"amp/32px","amp-512px":"amp/512px","amp-64px":"amp/64px","amp-ampp-plus":"amp/ampp-plus","amp-light-32px":"amp/light-32px","animation-add":"animation/add","animation-auto":"animation/auto","animation-delete":"animation/delete","animation-next":"animation/next","animation-previous":"animation/previous","animation-reset":"animation/reset","application-asset-management":"application/asset-management","application-audio-mixer":"application/audio-mixer","application-audio-production":"application/audio-production","application-av-mux":"application/av-mux","application-capturing":"application/capturing","application-clean-cut":"application/clean-cut","application-clip-play":"application/clip-play","application-clip-player":"application/clip-player","application-clip-record":"application/clip-record","application-control-ampp":"application/control-ampp","application-creative-grading":"application/creative-grading","application-delay":"application/delay","application-flow-monitor":"application/flow-monitor","application-graphics":"application/graphics","application-grassvalley-camera-grading":"application/grassvalley-camera-grading","application-grassvalley-camera-ldx":"application/grassvalley-camera-ldx","application-grassvalley-camera-wireless":"application/grassvalley-camera-wireless","application-grassvalley-camera":"application/grassvalley-camera","application-gvui-simple-rev2":"application/gvui-simple-rev2","application-gvui-simple":"application/gvui-simple","application-gvui":"application/gvui","application-input":"application/input","application-intercom":"application/intercom","application-k-frame-asset":"application/k-frame-asset","application-k-frame-LUT":"application/k-frame-LUT","application-k-frame-mirror-v2":"application/k-frame-mirror-v2","application-k-frame-mirror":"application/k-frame-mirror","application-k-frame-plain":"application/k-frame-plain","application-k-frame-watch":"application/k-frame-watch","application-k-frame":"application/k-frame","application-live-producer":"application/live-producer","application-master-control":"application/master-control","application-monitoring":"application/monitoring","application-multi-viewer":"application/multi-viewer","application-node-manager":"application/node-manager","application-output":"application/output","application-play-and-record":"application/play-and-record","application-playlist":"application/playlist","application-playout-archive-cloud":"application/playout-archive-cloud","application-playout-audio-cloud":"application/playout-audio-cloud","application-playout-video-cloud":"application/playout-video-cloud","application-playout":"application/playout","application-processing":"application/processing","application-production-switching":"application/production-switching","application-replay-ingest":"application/replay-ingest","application-replay-playout":"application/replay-playout","application-replay":"application/replay","application-solocaster":"application/solocaster","application-stratus":"application/stratus","application-test-signal":"application/test-signal","application-tools":"application/tools","arrows-back-button":"arrows/back-button","arrows-back":"arrows/back","arrows-down-small":"arrows/down-small","arrows-down":"arrows/down","arrows-forward-button":"arrows/forward-button","arrows-forward":"arrows/forward","arrows-left-2":"arrows/left-2","arrows-left-small":"arrows/left-small","arrows-left":"arrows/left","arrows-nudge-down":"arrows/nudge-down","arrows-nudge-up":"arrows/nudge-up","arrows-page-first":"arrows/page-first","arrows-page-last":"arrows/page-last","arrows-point-down":"arrows/point-down","arrows-point-left":"arrows/point-left","arrows-point-right":"arrows/point-right","arrows-point-up":"arrows/point-up","arrows-right-2":"arrows/right-2","arrows-right-small":"arrows/right-small","arrows-right":"arrows/right","arrows-up-small":"arrows/up-small","arrows-up":"arrows/up","audio-audio-disable":"audio/audio-disable",audio:"audio/audio","audio-aux-one":"audio/aux-one","audio-aux-two":"audio/aux-two","audio-crossfade":"audio/crossfade","audio-cut":"audio/cut","audio-edit":"audio/edit","audio-expand-left":"audio/expand-left","audio-expand-right":"audio/expand-right","audio-expand":"audio/expand","audio-levels":"audio/levels","audio-one":"audio/one","audio-options":"audio/options","audio-slip":"audio/slip","audio-track-add-horizontal":"audio/track-add-horizontal","audio-track-add-vertical":"audio/track-add-vertical","audio-track-add":"audio/track-add","audio-two":"audio/two","audio-v-fade":"audio/v-fade","audio-voice-over":"audio/voice-over","bookmark-add":"bookmark/add","bookmark-bookmark-show":"bookmark/bookmark-show",bookmark:"bookmark/bookmark","bookmark-delete":"bookmark/delete","bookmark-deselect":"bookmark/deselect","bookmark-disabled":"bookmark/disabled","bookmark-hide":"bookmark/hide","bookmark-next":"bookmark/next","bookmark-previous":"bookmark/previous","bookmark-rename":"bookmark/rename","bookmark-sort":"bookmark/sort","bookmark-toggle":"bookmark/toggle","branding-ampp":"branding/ampp","branding-docker":"branding/docker","branding-favicon-old":"branding/favicon-old","branding-gv2021":"branding/gv2021","branding-gv2021default":"branding/gv2021default","branding-loginscreen-old":"branding/loginscreen-old","branding-menubar-old":"branding/menubar-old","branding-screensaver-old":"branding/screensaver-old","branding-test":"branding/test","branding-white":"branding/white","checkbox-hidden":"checkbox/hidden","checkbox-minus":"checkbox/minus","checkbox-off":"checkbox/off","checkbox-on":"checkbox/on","comment-add":"comment/add",comment:"comment/comment","effects-alpha":"effects/alpha","effects-bottom":"effects/bottom","effects-centre":"effects/centre","effects-crop":"effects/crop","effects-distribute-horizontally":"effects/distribute-horizontally","effects-distribute-vertically":"effects/distribute-vertically","effects-effects-reset":"effects/effects-reset",effects:"effects/effects","effects-fx-folders":"effects/fx-folders","effects-fx":"effects/fx","effects-image-blur":"effects/image-blur","effects-image-refresh":"effects/image-refresh","effects-keyframe-add":"effects/keyframe-add","effects-keyframe-delete":"effects/keyframe-delete","effects-keyframe-next":"effects/keyframe-next","effects-keyframe-previous":"effects/keyframe-previous","effects-left":"effects/left","effects-magic-wand":"effects/magic-wand","effects-middle":"effects/middle","effects-opacity":"effects/opacity","effects-pixelate":"effects/pixelate","effects-right":"effects/right","effects-scale-large":"effects/scale-large","effects-scale-medium":"effects/scale-medium","effects-scale-small":"effects/scale-small","effects-scale":"effects/scale","effects-speed-1":"effects/speed-1","effects-speed-2":"effects/speed-2","effects-top":"effects/top","effects-transform":"effects/transform","effects-transparent":"effects/transparent","ex-departures-ui":"ex/departures-ui","ex-digital-ui":"ex/digital-ui","ex-sports-ui":"ex/sports-ui","ex-timeplane-ui":"ex/timeplane-ui","file-add-to-folder":"file/add-to-folder","file-append":"file/append","file-archive-restore":"file/archive-restore","file-archive-rights":"file/archive-rights","file-archive":"file/archive","file-asset-analyze":"file/asset-analyze","file-asset-operation":"file/asset-operation","file-asset":"file/asset","file-audio":"file/audio","file-bucket-s3":"file/bucket-s3","file-copy-failed":"file/copy-failed","file-copy-success":"file/copy-success","file-copy":"file/copy","file-document":"file/document","file-file-1":"file/file-1","file-file-2":"file/file-2","file-file-3":"file/file-3","file-file-4":"file/file-4","file-file-5":"file/file-5","file-file-6":"file/file-6","file-file-7":"file/file-7","file-file-8":"file/file-8","file-file-9":"file/file-9","file-file-delete":"file/file-delete","file-file-new":"file/file-new",file:"file/file","file-folder-add":"file/folder-add","file-folder-effects":"file/folder-effects","file-folder-empty-1":"file/folder-empty-1","file-folder-empty-2":"file/folder-empty-2","file-folder-empty-3":"file/folder-empty-3","file-folder-empty-4":"file/folder-empty-4","file-folder-empty-5":"file/folder-empty-5","file-folder-empty-6":"file/folder-empty-6","file-folder-empty-7":"file/folder-empty-7","file-folder-empty-8":"file/folder-empty-8","file-folder-empty-9":"file/folder-empty-9","file-folder-empty":"file/folder-empty","file-folder-faviourates":"file/folder-faviourates","file-folder-full":"file/folder-full","file-folder-not-allowed":"file/folder-not-allowed","file-folder-searches":"file/folder-searches","file-folder-up":"file/folder-up","file-folder-watch-disabled":"file/folder-watch-disabled","file-folder-watch":"file/folder-watch","file-formats":"file/formats","file-ftp-transfer":"file/ftp-transfer","file-image":"file/image","file-insert":"file/insert","file-inspector":"file/inspector","file-jobs-user":"file/jobs-user","file-jobs":"file/jobs","file-load":"file/load","file-paste-child":"file/paste-child","file-paste-failed":"file/paste-failed","file-paste-sibling":"file/paste-sibling","file-paste-successful":"file/paste-successful","file-paste-top":"file/paste-top","file-paste":"file/paste","file-premiere":"file/premiere","file-refresh":"file/refresh","file-render":"file/render","file-rules-isa":"file/rules-isa","file-rules-lt":"file/rules-lt","file-s3-cloud":"file/s3-cloud","file-save":"file/save","file-schedule":"file/schedule","file-transcode":"file/transcode","file-video":"file/video","hardware-buttons-hardware":"hardware/buttons-hardware","hardware-calculator":"hardware/calculator","hardware-computer-signal":"hardware/computer-signal","hardware-computer":"hardware/computer","hardware-device-connected":"hardware/device-connected","hardware-edit":"hardware/edit","hardware-K2":"hardware/K2","hardware-keyboard-disabled":"hardware/keyboard-disabled","hardware-keyboard":"hardware/keyboard","hardware-power-auto":"hardware/power-auto","hardware-power-off":"hardware/power-off","hardware-power-on":"hardware/power-on","hardware-satellite":"hardware/satellite","hardware-server-2":"hardware/server-2","hardware-server-3-screen":"hardware/server-3-screen","hardware-server-audio":"hardware/server-audio","hardware-server-front":"hardware/server-front","hardware-server-video":"hardware/server-video","hardware-server":"hardware/server","hardware-server2-offline":"hardware/server2-offline","hardware-server2":"hardware/server2","hardware-servers-hide":"hardware/servers-hide","hardware-servers-show":"hardware/servers-show","hardware-signal-disabled":"hardware/signal-disabled","hardware-signal":"hardware/signal","hardware-storage-locations":"hardware/storage-locations","hardware-sums":"hardware/sums","hardware-tape":"hardware/tape","hardware-tv":"hardware/tv","image-align-horizontal":"image/align-horizontal","image-align-vertically":"image/align-vertically","image-camera":"image/camera","image-graphic":"image/graphic",image:"image/image","image-pen":"image/pen","image-placeholder-add":"image/placeholder-add","image-placeholder":"image/placeholder","image-repeat":"image/repeat","interface-button-disabled-dark":"interface/button-disabled-dark","interface-button-disabled":"interface/button-disabled","interface-close-enclosed":"interface/close-enclosed","interface-close":"interface/close","interface-delete":"interface/delete","interface-dock-left":"interface/dock-left","interface-dock-right":"interface/dock-right","interface-drag-horizontal":"interface/drag-horizontal","interface-drag-vertical":"interface/drag-vertical","interface-eye-disabled":"interface/eye-disabled","interface-eye":"interface/eye","interface-filter-settings":"interface/filter-settings","interface-filter":"interface/filter","interface-group-add":"interface/group-add","interface-hidden":"interface/hidden","interface-link-broken":"interface/link-broken","interface-link":"interface/link","interface-linked-clips":"interface/linked-clips","interface-list":"interface/list","interface-minus":"interface/minus","interface-move-down":"interface/move-down","interface-move-up":"interface/move-up","interface-move":"interface/move","interface-new-group":"interface/new-group","interface-not-allowed":"interface/not-allowed","interface-options-open-left":"interface/options-open-left","interface-options-open-right":"interface/options-open-right","interface-options":"interface/options","interface-overview-plus":"interface/overview-plus","interface-plus-simple":"interface/plus-simple","interface-plus":"interface/plus","interface-popout":"interface/popout","interface-redo":"interface/redo","interface-save-as":"interface/save-as","interface-save-database":"interface/save-database","interface-save-events":"interface/save-events","interface-save":"interface/save","interface-selection":"interface/selection","interface-snap-arrow-left":"interface/snap-arrow-left","interface-snap-arrow-right":"interface/snap-arrow-right","interface-thumbs-down":"interface/thumbs-down","interface-thumbs-up":"interface/thumbs-up","interface-tick-enclosed-green":"interface/tick-enclosed-green","interface-tick-enclosed":"interface/tick-enclosed","interface-tick":"interface/tick","interface-tracks-add":"interface/tracks-add","interface-tracks":"interface/tracks","interface-undo":"interface/undo","interface-unlinked-clips":"interface/unlinked-clips","interface-upgrade-force":"interface/upgrade-force","interface-upgrade":"interface/upgrade","interface-view-thumbnails":"interface/view-thumbnails","letters-a-enclosed":"letters/a-enclosed","letters-i":"letters/i","letters-o":"letters/o","letters-numbers-1":"letters-numbers/1","letters-numbers-10":"letters-numbers/10","letters-numbers-2":"letters-numbers/2","letters-numbers-3":"letters-numbers/3","letters-numbers-4":"letters-numbers/4","letters-numbers-5":"letters-numbers/5","letters-numbers-6":"letters-numbers/6","letters-numbers-7":"letters-numbers/7","letters-numbers-8":"letters-numbers/8","letters-numbers-9":"letters-numbers/9","letters-numbers-A":"letters-numbers/A","letters-numbers-B":"letters-numbers/B","letters-numbers-C":"letters-numbers/C","letters-numbers-D":"letters-numbers/D","letters-numbers-E":"letters-numbers/E","letters-numbers-F":"letters-numbers/F","letters-numbers-i":"letters-numbers/i","letters-numbers-o":"letters-numbers/o","letters-numbers-P":"letters-numbers/P","marker-add":"marker/add","marker-disable":"marker/disable","marker-in-out":"marker/in-out",marker:"marker/marker","marker-next":"marker/next","marker-previous":"marker/previous","misc-ANC-rev2":"misc/ANC-rev2","misc-ANC":"misc/ANC","misc-apple":"misc/apple","misc-black":"misc/black","misc-bug-accept":"misc/bug-accept","misc-bug-error":"misc/bug-error","misc-bxf-list-locked":"misc/bxf-list-locked","misc-bxf-list-unlocked":"misc/bxf-list-unlocked","misc-bxf-locked-unlocked":"misc/bxf-locked-unlocked","misc-bxf-locked":"misc/bxf-locked","misc-cache-inactive":"misc/cache-inactive","misc-cache":"misc/cache","misc-cascade":"misc/cascade","misc-channel-1":"misc/channel-1","misc-channel-2":"misc/channel-2","misc-channel-3":"misc/channel-3","misc-channel-4":"misc/channel-4","misc-coins-disabled":"misc/coins-disabled","misc-coins":"misc/coins","misc-departures-ui":"misc/departures-ui","misc-digital-channels-ui":"misc/digital-channels-ui","misc-evergreen":"misc/evergreen","misc-helicopter":"misc/helicopter","misc-hotlist-add":"misc/hotlist-add","misc-light-disabled":"misc/light-disabled","misc-light":"misc/light","misc-lightning-disabled":"misc/lightning-disabled","misc-lightning":"misc/lightning","misc-link-broken":"misc/link-broken","misc-map":"misc/map","misc-monitor-1":"misc/monitor-1","misc-monitor-2":"misc/monitor-2","misc-monitor-3":"misc/monitor-3","misc-monitor-4":"misc/monitor-4","misc-MPP":"misc/MPP","misc-NDI":"misc/NDI","misc-nodes":"misc/nodes","misc-overview":"misc/overview","misc-pay-as-you-go":"misc/pay-as-you-go","misc-pin-disable":"misc/pin-disable","misc-pin":"misc/pin","misc-poc":"misc/poc","misc-rocket":"misc/rocket","misc-rule-add":"misc/rule-add","misc-rule":"misc/rule","misc-rundown-inactive":"misc/rundown-inactive","misc-rundown-show":"misc/rundown-show","misc-rundown":"misc/rundown","misc-sports-ui":"misc/sports-ui","misc-subscription":"misc/subscription","misc-touch-disable":"misc/touch-disable","misc-touch":"misc/touch","misc-truck":"misc/truck","misc-wait":"misc/wait","misc-web":"misc/web","misc-white":"misc/white","misc-windows":"misc/windows","misc-workflows-2":"misc/workflows-2","misc-workflows-trigger":"misc/workflows-trigger","misc-workflows":"misc/workflows","notifications-alarm-active-danger":"notifications/alarm-active-danger","notifications-alarm-inactive":"notifications/alarm-inactive","notifications-alarm":"notifications/alarm","notifications-alarms-list":"notifications/alarms-list","notifications-auto":"notifications/auto","notifications-crown-enable":"notifications/crown-enable","notifications-crown-inactive":"notifications/crown-inactive","notifications-crown":"notifications/crown","notifications-danger-colour":"notifications/danger-colour","notifications-danger":"notifications/danger","notifications-faviourates-group":"notifications/faviourates-group","notifications-flag":"notifications/flag","notifications-heart-inactive":"notifications/heart-inactive","notifications-heart":"notifications/heart","notifications-info-blue":"notifications/info-blue","notifications-info-colour":"notifications/info-colour","notifications-info":"notifications/info","notifications-jobs":"notifications/jobs","notifications-key-default":"notifications/key-default","notifications-key-disabled":"notifications/key-disabled","notifications-lock-all":"notifications/lock-all","notifications-lock-closed":"notifications/lock-closed","notifications-lock-open":"notifications/lock-open","notifications-lock-settings":"notifications/lock-settings","notifications-monitor":"notifications/monitor","notifications-next-error-down":"notifications/next-error-down","notifications-next-error-left":"notifications/next-error-left","notifications-next-error-right":"notifications/next-error-right","notifications-next-error-up":"notifications/next-error-up","notifications-next-warning-down":"notifications/next-warning-down","notifications-next-warning-left":"notifications/next-warning-left","notifications-next-warning-right":"notifications/next-warning-right","notifications-next-warning-up":"notifications/next-warning-up","notifications-pending":"notifications/pending","notifications-protected-reverved":"notifications/protected-reverved","notifications-question-mark":"notifications/question-mark","notifications-star-2":"notifications/star-2","notifications-star-3":"notifications/star-3","notifications-star":"notifications/star","notifications-success-colour":"notifications/success-colour","notifications-tag-live":"notifications/tag-live","notifications-tx-ready-not-ready":"notifications/tx-ready-not-ready","notifications-tx-ready":"notifications/tx-ready","notifications-unlock-all":"notifications/unlock-all","notifications-warning-colour":"notifications/warning-colour","notifications-warning-triangle":"notifications/warning-triangle","notifications-warning":"notifications/warning","player-add-to-timeline":"player/add-to-timeline","player-create-snapshot":"player/create-snapshot","player-eject":"player/eject","player-elastic-recorder-off":"player/elastic-recorder-off","player-elastic-recorder":"player/elastic-recorder","player-end-minus":"player/end-minus","player-end-plus":"player/end-plus","player-end":"player/end","player-fast-forward":"player/fast-forward","player-frame-backwards":"player/frame-backwards","player-frame-forwards":"player/frame-forwards","player-full-screen":"player/full-screen","player-go-to-end":"player/go-to-end","player-go-to-in":"player/go-to-in","player-go-to-out":"player/go-to-out","player-go-to-start":"player/go-to-start","player-hotspots":"player/hotspots","player-hud-disabled":"player/hud-disabled","player-hud-enabled":"player/hud-enabled","player-in-out-remove":"player/in-out-remove","player-manual-nominal-start":"player/manual-nominal-start","player-mark-in":"player/mark-in","player-mark-out":"player/mark-out","player-parent-duration":"player/parent-duration","player-pause":"player/pause","player-play-in-out":"player/play-in-out","player-play":"player/play","player-playback-looped":"player/playback-looped","player-record-prepare":"player/record-prepare","player-record-prepear":"player/record-prepear","player-record-settings":"player/record-settings","player-record":"player/record","player-rewind-10":"player/rewind-10","player-rewind-30":"player/rewind-30","player-rewind":"player/rewind","player-source-tracks":"player/source-tracks","player-speed-1x":"player/speed-1x","player-speed-2x":"player/speed-2x","player-speed-3x":"player/speed-3x","player-speed-4x":"player/speed-4x","player-speed-5x":"player/speed-5x","player-speed-6x":"player/speed-6x","player-speed-7x":"player/speed-7x","player-speed-8x":"player/speed-8x","player-start-minus":"player/start-minus","player-start-plus":"player/start-plus","player-stop":"player/stop","player-subclip":"player/subclip","player-waveform-disable":"player/waveform-disable","player-waveform":"player/waveform","search-dropdown":"search/dropdown","search-next":"search/next","search-previous":"search/previous","search-search-default":"search/search-default","search-search-dropdown":"search/search-dropdown","search-search-faviourate":"search/search-faviourate","search-search-next":"search/search-next","search-search-previous":"search/search-previous",search:"search/search","search-zoom-in":"search/zoom-in","search-zoom-out":"search/zoom-out","settings-accounts":"settings/accounts","settings-admin":"settings/admin","settings-channelsettings":"settings/channelsettings","settings-home":"settings/home","settings-options-components":"settings/options-components","settings-preferences":"settings/preferences","settings-screwdriver-wrench":"settings/screwdriver-wrench","settings-tool-settings":"settings/tool-settings","settings-tools":"settings/tools","settings-user-add":"settings/user-add","settings-user-headset":"settings/user-headset","settings-user-menubar":"settings/user-menubar","settings-user-only":"settings/user-only","settings-user-settings":"settings/user-settings","settings-user-tools":"settings/user-tools","settings-user-unknown":"settings/user-unknown","social-email-send":"social/email-send","social-facebook":"social/facebook","social-instagram":"social/instagram","social-ready":"social/ready","social-share":"social/share","social-snapchat":"social/snapchat","social-twitter":"social/twitter","sport-cycling":"sport/cycling","sport-football":"sport/football","sport-golf":"sport/golf","sport-running":"sport/running","sport-swimming":"sport/swimming","sport-tennis":"sport/tennis","table-break-collapse":"table/break-collapse","table-break-expand":"table/break-expand","table-collapse-all-breaks":"table/collapse-all-breaks","table-container-expand":"table/container-expand","table-contanier-collapse":"table/contanier-collapse","table-disable-selected-event-group":"table/disable-selected-event-group","table-disable-selected-event":"table/disable-selected-event","table-enable-selected-event-group":"table/enable-selected-event-group","table-enable-selected-event":"table/enable-selected-event","table-exapnd-all":"table/exapnd-all","table-expand-all-breaks":"table/expand-all-breaks","table-highlight-clear":"table/highlight-clear","table-highlight":"table/highlight","table-secondaries-collapse":"table/secondaries-collapse","table-secondaries-expand":"table/secondaries-expand","table-secondaries-hide":"table/secondaries-hide","table-secondaries-show":"table/secondaries-show","table-show-collapse":"table/show-collapse","table-show-expand":"table/show-expand","table-sort-aescending-table-headers":"table/sort-aescending-table-headers","table-sort-ascending":"table/sort-ascending","table-sort-descending-table-headers":"table/sort-descending-table-headers","table-sort-descending":"table/sort-descending","table-tree-close":"table/tree-close","table-tree-open":"table/tree-open","table-un-sorted":"table/un-sorted","table-workflow-apply":"table/workflow-apply","text-A":"text/A","text-backspace-delete":"text/backspace-delete","text-edit-settings":"text/edit-settings","text-edit":"text/edit","text-edited":"text/edited","text-rename":"text/rename","text-text-edit":"text/text-edit",text:"text/text","time-date-add":"time-date/add","time-date-calendar":"time-date/calendar","time-date-daylight-saving-back":"time-date/daylight-saving-back","time-date-daylight-saving-forward":"time-date/daylight-saving-forward","time-date-duration-long-add":"time-date/duration-long-add","time-date-duration-long":"time-date/duration-long","time-date-duration-short":"time-date/duration-short","time-date-duration":"time-date/duration","time-date-history":"time-date/history","time-date-hour-glass":"time-date/hour-glass","time-date-position":"time-date/position","time-date-remove":"time-date/remove","time-date-tick":"time-date/tick","timeline-aaf":"timeline/aaf","timeline-add":"timeline/add","timeline-audio-expand":"timeline/audio-expand","timeline-audio-video":"timeline/audio-video","timeline-channels":"timeline/channels","timeline-cursor":"timeline/cursor","timeline-delete":"timeline/delete","timeline-event-add":"timeline/event-add","timeline-fit-height":"timeline/fit-height","timeline-fit-width":"timeline/fit-width","timeline-insert-at-end":"timeline/insert-at-end","timeline-insert-at-playhead":"timeline/insert-at-playhead","timeline-insert-at-start":"timeline/insert-at-start","timeline-insert":"timeline/insert","timeline-magnet-off":"timeline/magnet-off","timeline-magnet-on":"timeline/magnet-on","timeline-move-dark":"timeline/move-dark","timeline-move":"timeline/move","timeline-panel-record":"timeline/panel-record","timeline-panel-source":"timeline/panel-source","timeline-playhead":"timeline/playhead","timeline-razor":"timeline/razor","timeline-remove":"timeline/remove","timeline-replace":"timeline/replace","timeline-ripple-tail-cursor":"timeline/ripple-tail-cursor","timeline-ripple-top-cursor":"timeline/ripple-top-cursor","timeline-roll-cursor":"timeline/roll-cursor","timeline-save":"timeline/save","timeline-segment":"timeline/segment","timeline-settings":"timeline/settings","timeline-sync-edit":"timeline/sync-edit","timeline-timeline-faviourate":"timeline/timeline-faviourate",timeline:"timeline/timeline","timeline-transition-add":"timeline/transition-add","timeline-transition-audio":"timeline/transition-audio","timeline-transition-disabled":"timeline/transition-disabled","timeline-transition-video":"timeline/transition-video","timeline-transition":"timeline/transition","timeline-trim-center":"timeline/trim-center","timeline-trim-left":"timeline/trim-left","timeline-trim-right":"timeline/trim-right","timeline-trim-tail-cursor":"timeline/trim-tail-cursor","timeline-trim-top-cursor":"timeline/trim-top-cursor","timeline-trim":"timeline/trim","timeline-wipe":"timeline/wipe","timeline-zoom-to-fit":"timeline/zoom-to-fit","transfer-app-update":"transfer/app-update","transfer-cloud-favourites":"transfer/cloud-favourites","transfer-cloud-install":"transfer/cloud-install","transfer-cloud":"transfer/cloud","transfer-download":"transfer/download","transfer-export-cancel":"transfer/export-cancel","transfer-export":"transfer/export","transfer-import":"transfer/import","transfer-publish":"transfer/publish","transfer-transcode":"transfer/transcode","transfer-transfers":"transfer/transfers","transfer-upload-failed":"transfer/upload-failed","transfer-upload":"transfer/upload","transition-cut-cut":"transition/cut-cut","transition-cut-fade":"transition/cut-fade","transition-fade-cut":"transition/fade-cut","transition-fade-fade":"transition/fade-fade","transition-mix":"transition/mix","uccm-symbol-disabled":"uccm-symbol/disabled","uccm-symbol-error-critical-text":"uccm-symbol/error-critical-text","uccm-symbol-error-critical":"uccm-symbol/error-critical","uccm-symbol-error-major-text":"uccm-symbol/error-major-text","uccm-symbol-error-major":"uccm-symbol/error-major","uccm-symbol-error-minor-text":"uccm-symbol/error-minor-text","uccm-symbol-error-minor":"uccm-symbol/error-minor","uccm-symbol-non-existant":"uccm-symbol/non-existant","uccm-symbol-normal-operation-text":"uccm-symbol/normal-operation-text","uccm-symbol-normal-operation":"uccm-symbol/normal-operation","uccm-symbol-pending":"uccm-symbol/pending","uccm-symbol-unknown":"uccm-symbol/unknown","video-camera-2":"video/camera-2","video-camera-3":"video/camera-3","video-camera-add":"video/camera-add","video-camera-disabled":"video/camera-disabled","video-camera-signal":"video/camera-signal","video-camera-wall":"video/camera-wall","video-camera":"video/camera","video-clips-list":"video/clips-list","video-cued":"video/cued","video-cueing":"video/cueing","video-gopro":"video/gopro","video-high-res-and-archived":"video/high-res-and-archived","video-high-res-offline":"video/high-res-offline","video-high-res-online":"video/high-res-online","video-k-frame":"video/k-frame","video-live":"video/live","video-loop":"video/loop","video-lut-text":"video/lut-text","video-lut":"video/lut","video-media-list":"video/media-list","video-mobile-signal":"video/mobile-signal","video-nfc":"video/nfc","video-off-air":"video/off-air","video-play-list-open-left":"video/play-list-open-left","video-play-list-open-right":"video/play-list-open-right","video-play-list":"video/play-list","video-proxy-inactive":"video/proxy-inactive","video-proxy":"video/proxy","video-reserved":"video/reserved","video-signal":"video/signal","video-sizzors":"video/sizzors","video-tool-editor":"video/tool-editor"},Mo="Uf_QO",To=(e=>{const t={};return e.keys().forEach(n=>{t[n]=e(n)}),t})(u(96298)),Ro=e=>"checkbox-on"===e?"#408fe0":"checkbox-minus"===e||"checkbox-off"===e?"#0a121d":"#fff",Io=e=>{const t=document.createElement("span");return(0,xo.H)(t).render((0,p.jsx)(Fo,{className:e.className,icon:e.icon,style:e.style})),t},Fo=({icon:e,active:t,className:n,mask:r,color:o=Ro(e),style:i,tag:a="div",size:s="15",iconStyle:l,width:c=s,height:u=s})=>{var d;d={iconStyle:l,mask:r},Object.entries(d).forEach(([e,t])=>{void 0!==t&&console.warn(`${e} prop is deprecated in GVIcon component`)});const f=(e=>{const[t,n]=(0,h.useState)(!0),[r,o]=(0,h.useState)(null);return(0,h.useEffect)(()=>{let r=!0;return t||n(!0),(async()=>{try{o((await To[`./${e}.svg`])?.default(null))}catch(e){console.error(e)}finally{r&&n(!1)}})(),()=>{r=!1}},[e]),!t&&r?r:(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",children:(0,p.jsx)("g",{})})})(Po[e]),g={width:c,height:u,className:Oo()("gv-icon",`gv-icon-${e}`,"OLU_3",n,{[Mo]:t}),style:{...i,"--fill-color":o},"data-fill":o};return(0,h.createElement)(a,{className:"TOWkE"},(0,h.cloneElement)(f,g))};class ko extends f().PureComponent{render(){const{groupStart:e,group:t,groupEnd:n,panelThin:r,panelLarge:o,type:i="button",id:a,style:s="primary",text:l,icon:c,disabled:u,children:d,className:h,hint:g,tabIndex:m,onClick:v,onMouseDown:y,onMouseUp:A,onMouseEnter:w,onMouseLeave:b,onMouseOver:_,onFocus:C,onTouchStart:E,onTouchEnd:S}=this.props;let O=f().Children.toArray(d);const x=Oo()({"gv-button":!0,[`gv-button-${s||"primary"}`]:!0,"gv-button-text":l,"gv-button-audiopanel-thin":r,"gv-button-audiopanel-large":o,"gv-button-icon":c,"gv-button-group":t,"gv-button-group-start":e,"gv-button-group-end":n,[h]:h});l&&(O=(0,p.jsx)("span",{className:"gv-button-text-content",children:O},"text"));const D=(0,p.jsx)(Fo,{size:"19",icon:c,className:h});return(0,p.jsx)("button",{id:a,className:x,type:i,onClick:v,disabled:u,title:g,tabIndex:m,onMouseDown:y,onMouseUp:A,onMouseEnter:w,onMouseLeave:b,onMouseOver:_,onFocus:C,onTouchStart:E,onTouchEnd:S,children:c&&d?(0,p.jsxs)("div",{className:"gv-button-icon-with-text",children:[D,O]}):c?D:O})}}class Lo extends h.PureComponent{render(){const e=h.Children.count(this.props.children);return(0,p.jsx)("span",{className:`gv-buttons ${this.props.className?this.props.className:""}`,children:h.Children.map(this.props.children,(t,n)=>(0,h.cloneElement)(t,{disabled:this.props.disabled||t?.props?.disabled,groupStart:0===n,groupEnd:n===e-1,group:!0}))})}}function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach(function(t){Ho(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vo(e,t,n){return t&&Uo(e.prototype,t),n&&Uo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Go(){return(Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Wo(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&&$o(e,t)}function zo(e){return(zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $o(e,t){return($o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ko(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Qo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qo(e){var t=function(){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}}();return function(){var n,r=zo(e);if(t){var o=zo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qo(e)}(this,n)}}function Yo(e){return function(e){if(Array.isArray(e))return Xo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Xo(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)?Xo(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zo(e,t){return e(t={exports:{}},t.exports),t.exports}function Jo(){}function ei(){}function ti(e){return e.map(function(e){return!1===e?null:e}).join(" ").replace(/\s+/g," ").trim()}function ni(e,t){return 100/e*t/t}function ri(e,t){return 100*e/t}function oi(e){return"".concat(e,"%")}function ii(e,t,n){if(e===t)return!0;var r=bi[wi(e)],o=bi[wi(t)];return!(!r||r!==o)&&r(e,t,n)}function ai(e){return function(t,n,r){if(!r)return e(t,n,[]);for(var o,i=r.length;o=r[--i];)if(o[0]===t&&o[1]===n)return!0;return e(t,n,r)}}function si(e){var t=[];for(var n in e)"constructor"!==n&&t.push(n);return t}function li(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ui(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function ci(e,t,n){return e.concat(t).map(function(e){return li(e,n)})}function ui(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||ci,n.isMergeableObject=n.isMergeableObject||Ci;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=li(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=ui(e[o],t[o],n):r[o]=li(t[o],n)}),r}(e,t,n):li(t,n)}function di(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return{}},n=function(n){function r(e,n){var i;return jo(this,r),(i=o.call(this,e,n)).state=t(No({},n.state)),i.updateStateProps=i.updateStateProps.bind(Qo(i)),i}Wo(r,n);var o=qo(r);return Vo(r,[{key:"componentDidMount",value:function(){this.context.subscribe(this.updateStateProps)}},{key:"shouldComponentUpdate",value:function(e,t){return!_i(t,this.state)||!_i(e,this.props)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.updateStateProps)}},{key:"updateStateProps",value:function(){this.setState(t(No({},this.context.state)))}},{key:"render",value:function(){var t=this,n=Oi(this.state,this.props);return f().createElement(e,Go({ref:function(e){t.instance=e}},n,{carouselStore:{getStoreState:this.context.getStoreState,masterSpinnerError:this.context.masterSpinnerError,masterSpinnerSuccess:this.context.masterSpinnerSuccess,setStoreState:this.context.setStoreState,subscribeMasterSpinner:this.context.subscribeMasterSpinner,unsubscribeAllMasterSpinner:this.context.unsubscribeAllMasterSpinner,unsubscribeMasterSpinner:this.context.unsubscribeMasterSpinner}}),this.props.children)}}]),r}(f().Component);return Ho(n,"contextType",xi),Ho(n,"propTypes",{children:mi.children}),Ho(n,"defaultProps",{children:null}),n}ei.resetWarningCache=Jo;var pi=Zo(function(e){e.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){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:ei,resetWarningCache:Jo};return n.PropTypes=n,n}()}),hi="loading",fi="success",gi="error",mi={children:pi.oneOfType([pi.arrayOf(pi.node),pi.node]),direction:pi.oneOf(["forward","backward"]),height:function(e,t){var n=e[t];return"vertical"!==e.orientation||null!==n&&"number"==typeof n?null:new Error("Missing required property '".concat(t,"' when orientation is vertical.  You must supply a number representing the height in pixels"))},orientation:pi.oneOf(["horizontal","vertical"]),isBgImage:function(e,t){return!0===e[t]&&"img"===e.tag?new Error("HTML img elements should not have a backgroundImage.  Please use ".concat(t," for other block-level HTML tags, like div, a, section, etc...")):null}},vi=function(e){var t=e.min,n=e.max,r=e.x;return Math.min(n,Math.max(t,r))},yi=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],Ai=function(e){function t(e){var r;return jo(this,t),(r=n.call(this,e)).handleOnClick=r.handleOnClick.bind(Qo(r)),r}Wo(t,e);var n=qo(t);return Vo(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.carouselStore,r=t.currentSlide,o=t.onClick,i=t.step,a=t.infinite,s=t.visibleSlides,l=t.totalSlides-s,c=Math.max(r-i,0);a&&(c=0===r?l:c),n.setStoreState({currentSlide:c,isPlaying:!1},null!==o&&o.call(this,e))}},{key:"render",value:function(){var e=this.props,n=(e.carouselStore,e.className),r=(e.currentSlide,e.disabled,e.onClick,e.step,e.totalSlides,e.visibleSlides,e.infinite),o=Ko(e,yi),i=ti(["buttonBack___1mlaL","carousel__back-button",n]),a=t.setDisabled(this.props.disabled,this.props.currentSlide,r);return f().createElement("button",Go({type:"button","aria-label":"previous",className:i,onClick:this.handleOnClick,disabled:a},o),this.props.children)}}],[{key:"setDisabled",value:function(e,t,n){return null!==e?e:0===t&&!n}}]),t}(f().Component);Ho(Ai,"propTypes",{carouselStore:pi.object.isRequired,children:mi.children.isRequired,className:pi.string,currentSlide:pi.number.isRequired,disabled:pi.bool,onClick:pi.func,step:pi.number.isRequired,totalSlides:pi.number.isRequired,visibleSlides:pi.number.isRequired,infinite:pi.bool}),Ho(Ai,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1});var wi=Zo(function(e,t){var n={}.toString,r="undefined"!=typeof window?window.Node:Function;e.exports=t=function(e){var t=typeof e;if("object"!=t)return t;if("object"==(t=o[n.call(e)]))return e instanceof Map?"map":e instanceof Set?"set":"object";if(t)return t;if(e instanceof r)switch(e.nodeType){case 1:return"element";case 3:return"text-node";case 9:return"document";case 11:return"document-fragment";default:return"dom-node"}};var o=t.types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object Set]":"set","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Map]":"map","[object Text]":"text-node","[object Uint8Array]":"bit-array","[object Uint16Array]":"bit-array","[object Uint32Array]":"bit-array","[object Uint8ClampedArray]":"bit-array","[object Error]":"error","[object FormData]":"form-data","[object File]":"file","[object Blob]":"blob"}}),bi=(wi.types,{number:function(e,t){return e!=e&&t!=t},function:function(e,t,n){return e.toString()===t.toString()&&bi.object(e,t,n)&&ii(e.prototype,t.prototype)},date:function(e,t){return+e==+t},regexp:function(e,t){return e.toString()===t.toString()},element:function(e,t){return e.outerHTML===t.outerHTML},textnode:function(e,t){return e.textContent===t.textContent}});bi.arguments=bi["bit-array"]=bi.array=ai(function(e,t,n){var r=e.length;if(r!==t.length)return!1;for(n.push([e,t]);r--;)if(!ii(e[r],t[r],n))return!1;return!0}),bi.object=ai(function(e,t,n){if("function"==typeof e.equal)return n.push([e,t]),e.equal(t,n);var r=si(e),o=si(t),i=r.length;if(i!==o.length)return!1;for(r.sort(),o.sort();i--;)if(r[i]!==o[i])return!1;for(n.push([e,t]),i=r.length;i--;){var a=r[i];if(!ii(e[a],t[a],n))return!1}return!0});var _i=ii,Ci=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Ei}(e)}(e)},Ei="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;ui.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return ui(e,n,t)},{})};var Si,Oi=ui,xi=f().createContext(),Di=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(n){!t.hasOwnProperty(n)||null===t[n]||"object"!=typeof t[n]&&"function"!=typeof t[n]||Object.isFrozen(t[n])||e(t[n])}),t},Pi={masterSpinnerFinished:!1},Mi=function(){function e(t){jo(this,e),this.state=Di(Oi(Pi,t)),this.subscriptions=[],this.masterSpinnerSubscriptions={},this.setStoreState=this.setStoreState.bind(this),this.getStoreState=this.getStoreState.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.updateSubscribers=this.updateSubscribers.bind(this),this.subscribeMasterSpinner=this.subscribeMasterSpinner.bind(this),this.unsubscribeMasterSpinner=this.unsubscribeMasterSpinner.bind(this),this.unsubscribeAllMasterSpinner=this.unsubscribeAllMasterSpinner.bind(this),this.masterSpinnerSuccess=this.masterSpinnerSuccess.bind(this),this.masterSpinnerError=this.masterSpinnerError.bind(this)}return Vo(e,[{key:"setStoreState",value:function(e,t){this.state=Di(Oi(this.state,e)),this.updateSubscribers(t)}},{key:"getStoreState",value:function(){return Oi({},this.state)}},{key:"subscribe",value:function(e){this.subscriptions.push(e)}},{key:"unsubscribe",value:function(e){var t=this.subscriptions.indexOf(e);-1!==t&&this.subscriptions.splice(t,1)}},{key:"updateSubscribers",value:function(e){this.subscriptions.forEach(function(e){return e()}),"function"==typeof e&&e(this.getStoreState())}},{key:"subscribeMasterSpinner",value:function(e){-1===Object.keys(this.masterSpinnerSubscriptions).indexOf(e)&&(this.masterSpinnerSubscriptions[e]={success:!1,error:!1,complete:!1})}},{key:"unsubscribeMasterSpinner",value:function(e){return-1!==Object.keys(this.masterSpinnerSubscriptions).indexOf(e)&&(this.setMasterSpinnerFinished(),delete this.masterSpinnerSubscriptions[e])}},{key:"unsubscribeAllMasterSpinner",value:function(){this.masterSpinnerSubscriptions={},this.setMasterSpinnerFinished()}},{key:"masterSpinnerSuccess",value:function(e){this.masterSpinnerSubscriptions[e].success=!0,this.masterSpinnerSubscriptions[e].complete=!0,this.setMasterSpinnerFinished()}},{key:"masterSpinnerError",value:function(e){this.masterSpinnerSubscriptions[e].error=!0,this.masterSpinnerSubscriptions[e].complete=!0,this.setMasterSpinnerFinished()}},{key:"setMasterSpinnerFinished",value:function(){this.setStoreState({masterSpinnerFinished:this.isMasterSpinnerFinished()})}},{key:"isMasterSpinnerFinished",value:function(){var e=this;return 0===Object.keys(this.masterSpinnerSubscriptions).filter(function(t){return!0!==e.masterSpinnerSubscriptions[t].complete}).length}}]),e}(),Ti=["children","className","currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","naturalSlideHeight","naturalSlideWidth","orientation","playDirection","step","dragStep","tag","totalSlides","touchEnabled","dragEnabled","visibleSlides","infinite","isIntrinsicHeight"],Ri=(Si=function(e){function t(e){var r;if(jo(this,t),r=n.call(this,e),e.isIntrinsicHeight&&"horizontal"!==e.orientation)throw Error('isIntrinsicHeight can only be used in "horizontal" orientation. See Readme for more information.');var o={currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,disableKeyboard:e.disableKeyboard,hasMasterSpinner:e.hasMasterSpinner,imageErrorCount:0,imageSuccessCount:0,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,masterSpinnerThreshold:0,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,privateUnDisableAnimation:!1,slideSize:ni(e.totalSlides,e.visibleSlides),slideTraySize:ri(e.totalSlides,e.visibleSlides),step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,dragEnabled:e.dragEnabled,visibleSlides:e.visibleSlides,infinite:e.infinite,isIntrinsicHeight:e.isIntrinsicHeight};return r.carouselStore=new Mi(o),r}Wo(t,e);var n=qo(t);return Vo(t,[{key:"componentDidUpdate",value:function(e){var t=this,n={};["currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPlaying","naturalSlideHeight","naturalSlideWidth","lockOnWindowScroll","orientation","playDirection","step","dragStep","totalSlides","touchEnabled","dragEnabled","visibleSlides"].forEach(function(r){e[r]!==t.props[r]&&(n[r]=t.props[r])}),this.props.currentSlide!==e.currentSlide&&!this.props.disableAnimation&&(n.disableAnimation=!0,n.privateUnDisableAnimation=!0),this.props.totalSlides===e.totalSlides&&this.props.visibleSlides===e.visibleSlides||(n.slideSize=ni(this.props.totalSlides,this.props.visibleSlides),n.slideTraySize=ri(this.props.totalSlides,this.props.visibleSlides)),this.carouselStore.state.currentSlide>=this.props.totalSlides&&(n.currentSlide=Math.max(this.props.totalSlides-1,0)),Object.keys(n).length>0&&this.carouselStore.setStoreState(n)}},{key:"componentWillUnmount",value:function(){this.carouselStore.unsubscribeAllMasterSpinner()}},{key:"getStore",value:function(){return this.carouselStore}},{key:"render",value:function(){var e=this.props,t=(e.children,e.className,e.currentSlide,e.disableAnimation,e.disableKeyboard,e.hasMasterSpinner,e.interval,e.isPageScrollLocked,e.isPlaying,e.lockOnWindowScroll,e.naturalSlideHeight,e.naturalSlideWidth,e.orientation,e.playDirection,e.step,e.dragStep,e.tag),n=(e.totalSlides,e.touchEnabled,e.dragEnabled,e.visibleSlides,e.infinite,e.isIntrinsicHeight,Ko(e,Ti)),r=ti(["carousel",this.props.className]);return f().createElement(t,Go({className:r},n),f().createElement(xi.Provider,{value:this.carouselStore},this.props.children))}}]),t}(f().Component),Ho(Si,"propTypes",{children:mi.children.isRequired,className:pi.string,currentSlide:pi.number,disableAnimation:pi.bool,disableKeyboard:pi.bool,hasMasterSpinner:pi.bool,interval:pi.number,isPageScrollLocked:pi.bool,isPlaying:pi.bool,lockOnWindowScroll:pi.bool,naturalSlideHeight:pi.number.isRequired,naturalSlideWidth:pi.number.isRequired,orientation:mi.orientation,playDirection:mi.direction,step:pi.number,dragStep:pi.number,tag:pi.string,totalSlides:pi.number.isRequired,touchEnabled:pi.bool,dragEnabled:pi.bool,visibleSlides:pi.number,infinite:pi.bool,isIntrinsicHeight:pi.bool}),Ho(Si,"defaultProps",{className:null,currentSlide:0,disableAnimation:!1,disableKeyboard:!1,hasMasterSpinner:!1,interval:5e3,isPageScrollLocked:!1,isPlaying:!1,lockOnWindowScroll:!1,orientation:"horizontal",playDirection:"forward",step:1,dragStep:1,tag:"div",touchEnabled:!0,dragEnabled:!0,visibleSlides:1,infinite:!1,isIntrinsicHeight:!1}),Si);xi.Consumer;var Ii,Fi,ki,Li,Bi,Ni,ji=di(Ai,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),Ui=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],Vi=(Ii=function(e){function t(){var e;return jo(this,t),(e=n.call(this)).handleOnClick=e.handleOnClick.bind(Qo(e)),e}Wo(t,e);var n=qo(t);return Vo(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.carouselStore,r=t.onClick;n.setStoreState({currentSlide:0,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.className),n=e.currentSlide,r=e.disabled,o=(e.onClick,e.totalSlides,Ko(e,Ui)),i=ti(["buttonFirst___2rhFr","carousel__first-button",t]),a=null!==r?r:0===n;return f().createElement("button",Go({type:"button","aria-label":"first",className:i,onClick:this.handleOnClick,disabled:a},o),this.props.children)}}]),t}(f().Component),Ho(Ii,"propTypes",{carouselStore:pi.object.isRequired,children:mi.children.isRequired,className:pi.string,currentSlide:pi.number.isRequired,disabled:pi.bool,onClick:pi.func,totalSlides:pi.number.isRequired}),Ho(Ii,"defaultProps",{className:null,disabled:null,onClick:null}),Ii),Hi=(di(Vi,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides}}),"buttonNext___2mOCa"),Gi=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],Wi=(Fi=function(e){function t(e){var r;return jo(this,t),(r=n.call(this,e)).handleOnClick=r.handleOnClick.bind(Qo(r)),r}Wo(t,e);var n=qo(t);return Vo(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.currentSlide,r=t.onClick,o=t.step,i=t.carouselStore,a=t.infinite,s=t.totalSlides-t.visibleSlides,l=o+n,c=Math.min(l,s);a&&(c=s===n?0:c),i.setStoreState({currentSlide:c,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,n=(e.carouselStore,e.className),r=e.currentSlide,o=e.disabled,i=(e.onClick,e.step,e.totalSlides),a=e.visibleSlides,s=e.infinite,l=Ko(e,Gi),c=ti([Hi,"carousel__next-button",n]),u=t.setDisabled(o,r,a,i,s);return f().createElement("button",Go({type:"button","aria-label":"next",className:c,onClick:this.handleOnClick,disabled:u},l),this.props.children)}}],[{key:"setDisabled",value:function(e,t,n,r,o){return null!==e?e:t>=r-n&&!o}}]),t}(f().PureComponent),Ho(Fi,"propTypes",{carouselStore:pi.object.isRequired,children:mi.children.isRequired,className:pi.string,currentSlide:pi.number.isRequired,disabled:pi.bool,onClick:pi.func,step:pi.number.isRequired,totalSlides:pi.number.isRequired,visibleSlides:pi.number.isRequired,infinite:pi.bool}),Ho(Fi,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1}),Fi),zi=di(Wi,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),$i=["carouselStore","className","currentSlide","disabled","onClick","totalSlides","visibleSlides"],Ki=(ki=function(e){function t(){var e;return jo(this,t),(e=n.call(this)).handleOnClick=e.handleOnClick.bind(Qo(e)),e}Wo(t,e);var n=qo(t);return Vo(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.carouselStore,r=t.onClick,o=t.totalSlides,i=t.visibleSlides;n.setStoreState({currentSlide:o-i,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.className),n=e.currentSlide,r=e.disabled,o=(e.onClick,e.totalSlides),i=e.visibleSlides,a=Ko(e,$i),s=ti(["buttonLast___2yuh0","carousel__last-button",t]),l=null!==r?r:n>=o-i;return f().createElement("button",Go({type:"button","aria-label":"last",className:s,onClick:this.handleOnClick,disabled:l},a),this.props.children)}}]),t}(f().Component),Ho(ki,"propTypes",{carouselStore:pi.object.isRequired,children:mi.children.isRequired,className:pi.string,currentSlide:pi.number.isRequired,disabled:pi.bool,onClick:pi.func,totalSlides:pi.number.isRequired,visibleSlides:pi.number.isRequired}),Ho(ki,"defaultProps",{className:null,disabled:null,onClick:null}),ki),Qi=(di(Ki,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),"buttonNext___3Lm3s"),qi=["carouselStore","children","childrenPaused","childrenPlaying","className","isPlaying","onClick"],Yi=(Li=function(e){function t(e){var r;return jo(this,t),(r=n.call(this,e)).handleOnClick=r.handleOnClick.bind(Qo(r)),r}Wo(t,e);var n=qo(t);return Vo(t,[{key:"handleOnClick",value:function(e){var t=this.props.onClick;this.props.carouselStore.setStoreState({isPlaying:!this.props.isPlaying},null!==t&&t.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.childrenPaused),n=e.childrenPlaying,r=e.className,o=e.isPlaying,i=(e.onClick,Ko(e,qi)),a=ti([Qi,"carousel__play-button",r]);return f().createElement("button",Go({type:"button","aria-label":"play",className:a,onClick:this.handleOnClick},i),o&&n,!o&&t,this.props.children)}}]),t}(f().PureComponent),Ho(Li,"propTypes",{carouselStore:pi.object.isRequired,children:pi.node,childrenPaused:pi.node,childrenPlaying:pi.node,className:pi.string,isPlaying:pi.bool.isRequired,onClick:pi.func}),Ho(Li,"defaultProps",{children:null,childrenPaused:null,childrenPlaying:null,className:null,onClick:null}),Li),Xi=(di(Yi,function(e){return{isPlaying:e.isPlaying}}),{dot:"dot___3c3SI"}),Zi=["carouselStore","children","className","currentSlide","disabled","onClick","selected","slide","totalSlides","visibleSlides"],Ji=(Bi=function(e){function t(e){var r;return jo(this,t),(r=n.call(this,e)).handleOnClick=r.handleOnClick.bind(Qo(r)),r}Wo(t,e);var n=qo(t);return Vo(t,[{key:"handleOnClick",value:function(e){var t=this.props,n=t.carouselStore,r=t.onClick,o=t.slide,i=t.totalSlides,a=t.visibleSlides,s=o>=i-a?i-a:o;n.setStoreState({currentSlide:s,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.className),n=e.currentSlide,r=e.disabled,o=(e.onClick,e.selected),i=e.slide,a=(e.totalSlides,e.visibleSlides),s=Ko(e,Zi),l=i>=n&&i<n+a,c="boolean"==typeof o?o:l,u="boolean"==typeof r?r:!0===l,d=ti([Xi.dot,c&&Xi.dotSelected,"carousel__dot","carousel__dot--".concat(i),c&&"carousel__dot--selected",t]);return f().createElement("button",Go({"aria-label":"slide dot",type:"button",onClick:this.handleOnClick,className:d,disabled:u},s),this.props.children)}}]),t}(f().Component),Ho(Bi,"propTypes",{carouselStore:pi.object.isRequired,children:mi.children,className:pi.string,currentSlide:pi.number.isRequired,disabled:pi.bool,onClick:pi.func,selected:pi.bool,slide:pi.number.isRequired,totalSlides:pi.number.isRequired,visibleSlides:pi.number.isRequired}),Ho(Bi,"defaultProps",{children:null,className:null,disabled:null,onClick:null,selected:null}),Bi),ea=di(Ji,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),ta={},na=["renderDots"],ra=["carouselStore","children","className","currentSlide","dotNumbers","totalSlides","visibleSlides","disableActiveDots","showAsSelectedForCurrentSlideOnly","renderDots"],oa=(Ni=function(e){function t(){return jo(this,t),n.apply(this,arguments)}Wo(t,e);var n=qo(t);return Vo(t,[{key:"renderDots",value:function(){var e=this.props,t=e.currentSlide,n=e.totalSlides,r=e.visibleSlides,o=e.disableActiveDots,i=e.showAsSelectedForCurrentSlideOnly,a=e.renderDots;if(a){var s=this.props;return s.renderDots,a(Ko(s,na))}for(var l=[],c=0;c<n;c+=1){var u=i?c===t:c>=t&&c<t+r,d=c>=n-r?n-r:c;l.push(f().createElement(ea,{key:c,slide:d,selected:u,disabled:!!o&&u},f().createElement("span",{className:ti["carousel__dot-group-dot"]},this.props.dotNumbers&&c+1)))}return l}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children),n=e.className,r=(e.currentSlide,e.dotNumbers,e.totalSlides,e.visibleSlides,e.disableActiveDots,e.showAsSelectedForCurrentSlideOnly,e.renderDots,Ko(e,ra)),o=ti([ta.DotGroup,"carousel__dot-group",n]);return f().createElement("div",Go({className:o},r),this.renderDots(),t)}}]),t}(f().Component),Ho(Ni,"propTypes",{children:mi.children,className:pi.string,currentSlide:pi.number.isRequired,carouselStore:pi.object.isRequired,totalSlides:pi.number.isRequired,visibleSlides:pi.number.isRequired,dotNumbers:pi.bool,disableActiveDots:pi.bool,showAsSelectedForCurrentSlideOnly:pi.bool,renderDots:pi.func}),Ho(Ni,"defaultProps",{children:null,className:null,dotNumbers:!1,disableActiveDots:!0,showAsSelectedForCurrentSlideOnly:!1,renderDots:null}),Ni),ia=di(oa,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),aa={image:"image___xtQGH"},sa=["src","alt"],la=["carouselStore","children","className","hasMasterSpinner","isBgImage","onError","onLoad","renderError","renderLoading","style","tag"],ca=function(e){function t(e){var r;return jo(this,t),(r=n.call(this,e)).state={imageStatus:hi},r.handleImageLoad=r.handleImageLoad.bind(Qo(r)),r.handleImageError=r.handleImageError.bind(Qo(r)),r.image=null,r}Wo(t,e);var n=qo(t);return Vo(t,[{key:"componentDidMount",value:function(){t.subscribeMasterSpinner(this.props),this.initImage()}},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&(t.unsubscribeMasterSpinner(e),t.subscribeMasterSpinner(this.props),this.initImage())}},{key:"componentWillUnmount",value:function(){t.unsubscribeMasterSpinner(this.props),this.image.removeEventListener("load",this.handleImageLoad),this.image.removeEventListener("error",this.handleImageError),this.image=null}},{key:"initImage",value:function(){if(this.setState({imageStatus:hi}),this.image=document.createElement("img"),this.image.addEventListener("load",this.handleImageLoad,!1),this.image.addEventListener("error",this.handleImageError,!1),this.image.src=this.props.src,this.image.readyState||this.image.complete){var e=this.image.src;this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",this.image.src=e}}},{key:"handleImageLoad",value:function(e){this.setState({imageStatus:fi}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerSuccess(this.props.src),this.props.onLoad&&this.props.onLoad(e)}},{key:"handleImageError",value:function(e){this.setState({imageStatus:gi}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerError(this.props.src),this.props.onError&&this.props.onError(e)}},{key:"tempTag",value:function(){return"img"===this.props.tag?"div":this.props.tag}},{key:"customRender",value:function(e){return"function"==typeof this.props[e]?this.props[e]():this.props.children}},{key:"renderLoading",value:function(e){var t=this.tempTag(),n=ti([aa.image,aa.imageLoading,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--loading",this.props.className]);return f().createElement(t,Go({className:n},e),this.customRender("renderLoading"))}},{key:"renderError",value:function(e){var t=this.tempTag(),n=ti([aa.image,aa.imageError,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--error",this.props.className]);return f().createElement(t,Go({className:n},e),this.customRender("renderError"))}},{key:"renderSuccess",value:function(e){var t=this.props,n=t.style,r=t.tag,o=ti([aa.image,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--success",this.props.className]),i=Go({},n),a=e;if("img"!==r){var s=e.src;e.alt,a=Ko(e,sa),i=Go({},n,{backgroundImage:'url("'.concat(s,'")'),backgroundSize:"cover"})}return f().createElement(r,Go({className:o,style:i},a),this.props.children)}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.className,e.hasMasterSpinner,e.isBgImage,e.onError,e.onLoad,e.renderError,e.renderLoading,e.style,e.tag,Ko(e,la));switch(this.state.imageStatus){case hi:return this.renderLoading(t);case fi:return this.renderSuccess(t);case gi:return this.renderError(t);default:throw new Error("unknown value for this.state.imageStatus")}}}],[{key:"subscribeMasterSpinner",value:function(e){e.hasMasterSpinner&&e.carouselStore.subscribeMasterSpinner(e.src)}},{key:"unsubscribeMasterSpinner",value:function(e){e.hasMasterSpinner&&e.carouselStore.unsubscribeMasterSpinner(e.src)}}]),t}(f().Component);Ho(ca,"propTypes",{alt:pi.string,carouselStore:pi.object.isRequired,children:mi.children,className:pi.string,hasMasterSpinner:pi.bool.isRequired,isBgImage:mi.isBgImage,onError:pi.func,onLoad:pi.func,renderError:pi.func,renderLoading:pi.func,src:pi.string.isRequired,style:pi.object,tag:pi.string}),Ho(ca,"defaultProps",{alt:"",children:null,className:null,isBgImage:!1,onError:null,onLoad:null,renderError:null,renderLoading:null,style:null,tag:"img"});var ua,da,pa,ha,fa=di(ca,function(e){return{hasMasterSpinner:e.hasMasterSpinner,orientation:e.orientation}}),ga=["className"],ma=(ua=function(e){function t(){return jo(this,t),n.apply(this,arguments)}Wo(t,e);var n=qo(t);return Vo(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=Ko(e,ga),r=ti(["spinner___27VUp","carousel__spinner",t]);return f().createElement("div",Go({className:r},n))}}]),t}(f().PureComponent),Ho(ua,"propTypes",{className:pi.string}),Ho(ua,"defaultProps",{className:null}),ua),va={container:"container___2O72F",overlay:"overlay___IV4qY",hover:"hover___MYy31",zoom:"zoom___3kqYk",loading:"loading___1pvNI",imageLoadingSpinnerContainer:"imageLoadingSpinnerContainer___3UIPD"},ya=["alt","bgImageProps","bgImageTag","carouselStore","className","imageClassName","overlayClassName","isPinchZoomEnabled","spinner","src","srcZoomed","tag"],Aa=(da=function(e){function t(e){var r;return jo(this,t),(r=n.call(this,e)).state={isImageLoading:!0,isHovering:!1,isZooming:!1,x:null,y:null,scale:1},r.tpCache={},r.handleImageComplete=r.handleImageComplete.bind(Qo(r)),r.handleOnMouseMove=r.handleOnMouseMove.bind(Qo(r)),r.handleOnMouseOut=r.handleOnMouseOut.bind(Qo(r)),r.handleOnMouseOver=r.handleOnMouseOver.bind(Qo(r)),r.handleOnTouchEnd=r.handleOnTouchEnd.bind(Qo(r)),r.handleOnTouchMove=r.handleOnTouchMove.bind(Qo(r)),r.handleOnTouchStart=r.handleOnTouchStart.bind(Qo(r)),r}Wo(t,e);var n=qo(t);return Vo(t,[{key:"componentDidUpdate",value:function(e,t){!1===t.isZooming&&!0===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),!0===t.isZooming&&!1===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1})}},{key:"handleImageComplete",value:function(){this.setState({isImageLoading:!1})}},{key:"handleOnMouseOver",value:function(){this.state.isZooming||this.setState({isHovering:!0,scale:2})}},{key:"handleOnMouseOut",value:function(){this.state.isZooming||this.setState({isHovering:!1,scale:1})}},{key:"handleOnMouseMove",value:function(e){if(!this.state.isZooming){var t=oi(e.nativeEvent.offsetX/e.target.offsetWidth*100),n=oi(e.nativeEvent.offsetY/e.target.offsetHeight*100);this.setState({x:t,y:n})}}},{key:"handleOnTouchStart",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(Yo(e.targetTouches).forEach(function(e){t.tpCache[e.identifier]={clientX:e.clientX,clientY:e.clientY}}),this.setState(function(e){return{isZooming:e.isZooming||Object.keys(t.tpCache).length>1}}))}},{key:"handleOnTouchMove",value:function(e){var n=this;if(this.state.isZooming){e.persist();var r=Yo(e.targetTouches).filter(function(e){return n.tpCache[e.identifier]}).slice(0,2);if(2===r.length){e.stopPropagation();var o=e.target.getBoundingClientRect(),i=r[0].identifier,a=r[1].identifier,s={x1:this.tpCache[i].clientX,y1:this.tpCache[i].clientY,x2:this.tpCache[a].clientX,y2:this.tpCache[a].clientY};s.distance=t.distanceBetweenTwoTouches(No({},s));var l=t.midpointBetweenTwoTouches(No({},s));s.cx=l.x,s.cy=l.y;var c={x1:r[0].clientX,y1:r[0].clientY,x2:r[1].clientX,y2:r[1].clientY};c.distance=t.distanceBetweenTwoTouches(No({},c));var u=t.midpointBetweenTwoTouches(No({},c));c.cx=u.x,c.cy=u.y;var d=oi(vi({min:0,max:100,x:(c.cx-o.left)/o.width*100})),p=oi(vi({min:0,max:100,x:(c.cy-o.top)/o.height*100})),h=function(e){return vi({min:1,max:3,x:e.scale+(c.distance-s.distance)/100})};this.setState(function(e){return{isZooming:1!==h(e),scale:h(e),x:d,y:p}})}}}},{key:"handleOnTouchEnd",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(Yo(e.changedTouches).forEach(function(e){delete t.tpCache[e.identifier]}),0===Object.keys(this.tpCache).length&&this.setState({isZooming:!1}))}},{key:"renderLoading",value:function(){if(this.state.isImageLoading){var e=this.props.spinner;return f().createElement("div",{className:ti([va.imageLoadingSpinnerContainer,"carousel__image-loading-spinner-container"])},e&&e(),!e&&f().createElement(ma,null))}return null}},{key:"render",value:function(){var e=this.props,t=e.alt,n=e.bgImageProps,r=e.bgImageTag,o=(e.carouselStore,e.className),i=e.imageClassName,a=e.overlayClassName,s=(e.isPinchZoomEnabled,e.spinner,e.src),l=e.srcZoomed,c=e.tag,u=Ko(e,ya),d=ti([va.container,o]),p=ti([va.image,"carousel__zoom-image",i]),h=ti([va.overlay,"carousel__zoom-image-overlay",this.state.isHovering&&va.hover,this.state.isZooming&&va.zoom,this.state.isHovering&&"carousel__zoom-image-overlay--hovering",this.state.isZooming&&"carousel__zoom-image-overlay--zooming",a]),g={};return(this.state.isHovering||this.state.isZooming)&&(g.transformOrigin="".concat(this.state.x," ").concat(this.state.y),g.transform="scale(".concat(this.state.scale,")")),f().createElement(c,Go({className:d},u),f().createElement(fa,Go({alt:t,className:p,tag:r,src:s,onLoad:this.handleImageComplete,onError:this.handleImageComplete},n)),f().createElement(fa,{className:h,tag:"div",src:l||s,style:g,isBgImage:!0,onFocus:this.handleOnMouseOver,onMouseOver:this.handleOnMouseOver,onBlur:this.handleOnMouseOut,onMouseOut:this.handleOnMouseOut,onMouseMove:this.handleOnMouseMove,onTouchStart:this.handleOnTouchStart,onTouchEnd:this.handleOnTouchEnd,onTouchMove:this.handleOnTouchMove}),this.renderLoading())}}],[{key:"midpointBetweenTwoTouches",value:function(e){var t=e.x1,n=e.y1;return{x:(t+e.x2)/2,y:(n+e.y2)/2}}},{key:"distanceBetweenTwoTouches",value:function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return Math.sqrt(Math.pow(r-t,2)+Math.pow(o-n,2))}}]),t}(f().Component),Ho(da,"propTypes",{alt:pi.string,bgImageProps:pi.object,bgImageTag:pi.string,carouselStore:pi.object.isRequired,className:pi.string,imageClassName:pi.string,overlayClassName:pi.string,spinner:pi.func,src:pi.string.isRequired,srcZoomed:pi.string,tag:pi.string,isPinchZoomEnabled:pi.bool}),Ho(da,"defaultProps",{alt:void 0,bgImageProps:{},bgImageTag:"div",className:null,imageClassName:null,overlayClassName:null,isPinchZoomEnabled:!0,spinner:null,srcZoomed:null,tag:"div"}),da),wa=(di(Aa,function(){return{}}),{slide:"slide___3-Nqo",slideHorizontal:"slideHorizontal___1NzNV",slideInner:"slideInner___2mfX9",focusRing:"focusRing___1airF"}),ba=["ariaLabel","carouselStore","children","className","classNameHidden","classNameVisible","currentSlide","index","innerClassName","innerTag","naturalSlideHeight","naturalSlideWidth","onBlur","onFocus","orientation","slideSize","style","tabIndex","tag","totalSlides","visibleSlides","isIntrinsicHeight"],_a=(pa=function(e){function t(e){var r;return jo(this,t),(r=n.call(this,e)).handleOnFocus=r.handleOnFocus.bind(Qo(r)),r.handleOnBlur=r.handleOnBlur.bind(Qo(r)),r.state={focused:!1},r}Wo(t,e);var n=qo(t);return Vo(t,[{key:"isVisible",value:function(){var e=this.props,t=e.currentSlide,n=e.index,r=e.visibleSlides;return n>=t&&n<t+r}},{key:"handleOnFocus",value:function(e){var t=this,n=this.props.onFocus;this.setState({focused:!0},function(){null!==n&&n.call(t,e)})}},{key:"handleOnBlur",value:function(e){var t=this,n=this.props.onBlur;this.setState({focused:!1},function(){null!==n&&n.call(t,e)})}},{key:"renderFocusRing",value:function(){return this.state.focused?f().createElement("div",{className:[wa.focusRing,"carousel__slide-focus-ring"].join(" ")}):null}},{key:"render",value:function(){var e=this,t=this.props,n=t.ariaLabel,r=(t.carouselStore,t.children,t.className),o=t.classNameHidden,i=t.classNameVisible,a=(t.currentSlide,t.index,t.innerClassName),s=t.innerTag,l=t.naturalSlideHeight,c=t.naturalSlideWidth,u=(t.onBlur,t.onFocus,t.orientation),d=t.slideSize,p=t.style,h=t.tabIndex,g=t.tag,m=t.totalSlides,v=(t.visibleSlides,t.isIntrinsicHeight),y=Ko(t,ba),A={};"horizontal"===u?(A.width=oi(d),A.paddingBottom=oi(100*l/(c*m))):(A.width=oi(100),A.paddingBottom=oi(100*l/c));var w={};v&&("horizontal"===u?A.height="unset":A.width="unset",A.paddingBottom="unset",w.position="unset");var b=Go({},A,p),_=this.isVisible(),C=ti([wa.slide,"horizontal"===u&&wa.slideHorizontal,"carousel__slide",this.state.focused&&"carousel__slide--focused",_&&i,_&&"carousel__slide--visible",!_&&o,!_&&"carousel__slide--hidden",r]),E=ti([wa.slideInner,"carousel__inner-slide",a]),S=this.isVisible()?0:-1,O="number"==typeof h?h:S;return f().createElement(g,Go({ref:function(t){e.tagRef=t},tabIndex:O,"aria-selected":this.isVisible(),"aria-label":n,role:"option",onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,className:C,style:b},y),f().createElement(s,{ref:function(t){e.innerTagRef=t},className:E,style:w},this.props.children,this.renderFocusRing()))}}]),t}(f().PureComponent),Ho(pa,"propTypes",{ariaLabel:pi.string,carouselStore:pi.object,children:mi.children,className:pi.string,classNameHidden:pi.string,classNameVisible:pi.string,currentSlide:pi.number.isRequired,index:pi.number.isRequired,innerClassName:pi.string,innerTag:pi.string,naturalSlideHeight:pi.number.isRequired,naturalSlideWidth:pi.number.isRequired,onBlur:pi.func,onFocus:pi.func,orientation:mi.orientation.isRequired,slideSize:pi.number.isRequired,style:pi.object,tabIndex:pi.number,tag:pi.string,totalSlides:pi.number.isRequired,visibleSlides:pi.number.isRequired,isIntrinsicHeight:pi.bool}),Ho(pa,"defaultProps",{ariaLabel:"slide",carouselStore:null,children:null,className:null,classNameHidden:null,classNameVisible:null,innerClassName:null,innerTag:"div",onBlur:null,onFocus:null,style:{},tabIndex:null,tag:"div",isIntrinsicHeight:!1}),pa),Ca=di(_a,function(e){return{currentSlide:e.currentSlide,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,slideSize:e.slideSize,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}}),Ea=function(){function e(){jo(this,e)}return Vo(e,[{key:"parents",value:function(e,t){return null===e.parentNode?t:this.parents(e.parentNode,t.concat([e]))}},{key:"scrollParent",value:function(t){for(var n=this.parents(t.parentNode,[]),r=0;r<n.length;r+=1)if(e.scroll(n[r]))return n[r];return document.scrollingElement||document.documentElement}},{key:"getScrollParent",value:function(t){return e.isNodeValid(t)?this.scrollParent(t):null}}],[{key:"style",value:function(e,t){return getComputedStyle(e,null).getPropertyValue(t)}},{key:"overflow",value:function(t){return e.style(t,"overflow")+e.style(t,"overflow-y")+e.style(t,"overflow-x")}},{key:"scroll",value:function(t){return/(auto|scroll)/.test(e.overflow(t))}},{key:"isNodeValid",value:function(e){return e instanceof HTMLElement||e instanceof SVGElement}}]),e}(),Sa={horizontalSlider:"horizontalSlider___281Ls",horizontalSliderTray:"horizontalSliderTray___1L-0W",verticalSlider:"verticalSlider___34ZFD",verticalSliderTray:"verticalSliderTray___267D8",verticalTray:"verticalTray___12Key",verticalSlideTrayWrap:"verticalSlideTrayWrap___2nO7o",sliderTray:"sliderTray___-vHFQ",sliderAnimation:"sliderAnimation___300FY",masterSpinnerContainer:"masterSpinnerContainer___1Z6hB"},Oa=["ariaLabel","carouselStore","children","className","classNameAnimation","classNameTray","classNameTrayWrap","currentSlide","disableAnimation","disableKeyboard","dragEnabled","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","masterSpinnerFinished","moveThreshold","naturalSlideHeight","naturalSlideWidth","onMasterSpinner","orientation","playDirection","privateUnDisableAnimation","slideSize","slideTraySize","spinner","style","tabIndex","totalSlides","touchEnabled","trayProps","trayTag","visibleSlides","isIntrinsicHeight"],xa=["dragStep","step","infinite","preventVerticalScrollOnTouch","preventingVerticalScroll","horizontalPixelThreshold","verticalPixelThreshold"],Da=["className","onClickCapture","onMouseDown","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","ref","style"],Pa=(ha=function(e){function t(e){var r;return jo(this,t),(r=n.call(this,e)).getSliderRef=r.getSliderRef.bind(Qo(r)),r.handleDocumentScroll=r.handleDocumentScroll.bind(Qo(r)),r.handleOnClickCapture=r.handleOnClickCapture.bind(Qo(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(Qo(r)),r.handleOnMouseDown=r.handleOnMouseDown.bind(Qo(r)),r.handleOnMouseMove=r.handleOnMouseMove.bind(Qo(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(Qo(r)),r.handleOnTouchCancel=r.handleOnTouchCancel.bind(Qo(r)),r.handleOnTouchEnd=r.handleOnTouchEnd.bind(Qo(r)),r.handleOnTouchMove=r.handleOnTouchMove.bind(Qo(r)),r.handleOnTouchStart=r.handleOnTouchStart.bind(Qo(r)),r.playBackward=r.playBackward.bind(Qo(r)),r.playForward=r.playForward.bind(Qo(r)),r.callCallback=r.callCallback.bind(Qo(r)),r.blockWindowScroll=r.blockWindowScroll.bind(Qo(r)),r.state={cancelNextClick:!1,deltaX:0,deltaY:0,isBeingMouseDragged:!1,isBeingTouchDragged:!1,preventingVerticalScroll:!1,startX:0,startY:0},r.interval=null,r.isDocumentScrolling=null,r.moveTimer=null,r.originalOverflow=null,r.scrollParent=null,r.scrollStopTimer=null,r}Wo(t,e);var n=qo(t);return Vo(t,[{key:"componentDidMount",value:function(){this.props.lockOnWindowScroll&&window.addEventListener("scroll",this.handleDocumentScroll,!1),(this.props.touchEnabled||this.props.preventVerticalScrollOnTouch)&&window.addEventListener("touchmove",this.blockWindowScroll,!1),document.documentElement.addEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.addEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.addEventListener("mouseup",this.handleOnMouseUp,!1),this.props.isPlaying&&this.play()}},{key:"componentDidUpdate",value:function(e){!e.isPlaying&&this.props.isPlaying&&this.play(),e.isPlaying&&!this.props.isPlaying&&this.stop(),!e.isPageScrollLocked&&this.props.isPageScrollLocked&&this.lockScroll(),e.isPageScrollLocked&&!this.props.isPageScrollLocked&&this.unlockScroll(),!1===e.privateUnDisableAnimation&&!0===this.props.privateUnDisableAnimation&&this.props.carouselStore.setStoreState({privateUnDisableAnimation:!1,disableAnimation:!1})}},{key:"componentWillUnmount",value:function(){document.documentElement.removeEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.removeEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.removeEventListener("mouseup",this.handleOnMouseUp,!1),window.removeEventListener("scroll",this.handleDocumentScroll,!1),window.removeEventListener("touchmove",this.blockWindowScroll,!1),this.stop(),window.cancelAnimationFrame.call(window,this.moveTimer),window.clearTimeout(this.scrollStopTimer),this.isDocumentScrolling=null,this.moveTimer=null,this.scrollStopTimer=null}},{key:"getSliderRef",value:function(e){this.sliderTrayElement=e}},{key:"fakeOnDragStart",value:function(e){var t=e.screenX,n=e.screenY,r=e.touchDrag,o=void 0!==r&&r,i=e.mouseDrag,a=void 0!==i&&i;this.props.carouselStore.setStoreState({isPlaying:!1}),window.cancelAnimationFrame.call(window,this.moveTimer),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),this.setState({isBeingTouchDragged:o,isBeingMouseDragged:a,startX:t,startY:n})}},{key:"fakeOnDragMove",value:function(e,t){var n=this;this.moveTimer=window.requestAnimationFrame.call(window,function(){n.setState(function(r){return{deltaX:e-r.startX,deltaY:t-r.startY,preventingVerticalScroll:Math.abs(t-r.startY)<=n.props.verticalPixelThreshold&&Math.abs(e-r.startX)>=n.props.horizontalPixelThreshold}})})}},{key:"fakeOnDragEnd",value:function(){window.cancelAnimationFrame.call(window,this.moveTimer),this.computeCurrentSlide(),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1}),this.setState({deltaX:0,deltaY:0,isBeingTouchDragged:!1,isBeingMouseDragged:!1}),this.isDocumentScrolling=!this.props.lockOnWindowScroll&&null}},{key:"callCallback",value:function(e,t){var n=this.props.trayProps;n&&"function"==typeof n[e]&&(t.persist(),n[e](t))}},{key:"handleOnMouseDown",value:function(e){this.props.dragEnabled?(e.preventDefault(),this.fakeOnDragStart({screenX:e.screenX,screenY:e.screenY,mouseDrag:!0}),this.callCallback("onMouseDown",e)):this.callCallback("onMouseDown",e)}},{key:"handleOnMouseMove",value:function(e){this.state.isBeingMouseDragged&&(this.setState({cancelNextClick:!0}),e.preventDefault(),this.fakeOnDragMove(e.screenX,e.screenY))}},{key:"handleOnMouseUp",value:function(e){this.state.isBeingMouseDragged&&(e.preventDefault(),this.fakeOnDragEnd())}},{key:"handleOnClickCapture",value:function(e){this.state.cancelNextClick?(e.preventDefault(),this.setState({cancelNextClick:!1}),this.callCallback("onClickCapture",e)):this.callCallback("onClickCapture",e)}},{key:"handleOnTouchStart",value:function(e){if(this.props.touchEnabled){"vertical"===this.props.orientation&&e.preventDefault();var t=e.targetTouches[0];this.fakeOnDragStart({screenX:t.screenX,screenY:t.screenY,touchDrag:!0}),this.callCallback("onTouchStart",e)}else this.callCallback("onTouchStart",e)}},{key:"handleDocumentScroll",value:function(){var e=this;this.props.touchEnabled&&(this.isDocumentScrolling=!0,window.clearTimeout(this.scrollStopTimer),this.scrollStopTimer=window.setTimeout(function(){e.isDocumentScrolling=!1},66))}},{key:"handleOnTouchMove",value:function(e){if(!this.props.touchEnabled||this.props.lockOnWindowScroll&&this.isDocumentScrolling)this.callCallback("onTouchMove",e);else{window.cancelAnimationFrame.call(window,this.moveTimer);var t=e.targetTouches[0];t&&(this.fakeOnDragMove(t.screenX,t.screenY),this.callCallback("onTouchMove",e))}}},{key:"forward",value:function(){var e=this.props,t=e.currentSlide,n=e.step,r=e.totalSlides,o=e.visibleSlides;return Math.min(t+n,r-o)}},{key:"backward",value:function(){var e=this.props,t=e.currentSlide,n=e.step;return Math.max(t-n,0)}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,n=this.props,r=n.carouselStore,o=n.currentSlide,i=n.disableKeyboard,a=n.totalSlides,s=n.visibleSlides,l={};!0===i||a<=s||(37===t&&(e.preventDefault(),this.focus(),l.currentSlide=Math.max(0,o-1),l.isPlaying=!1),39===t&&(e.preventDefault(),this.focus(),l.currentSlide=Math.min(a-s,o+1),l.isPlaying=!1),r.setStoreState(l))}},{key:"playForward",value:function(){var e=this.props,t=e.carouselStore,n=e.currentSlide;t.setStoreState({currentSlide:this.forward()===n?0:this.forward()})}},{key:"playBackward",value:function(){var e=this.props,t=e.carouselStore,n=e.currentSlide,r=e.totalSlides,o=e.visibleSlides;t.setStoreState({currentSlide:this.backward()===n?r-o:this.backward()})}},{key:"play",value:function(){var e=this.props.playDirection;this.interval=setInterval("forward"===e?this.playForward:this.playBackward,this.props.interval)}},{key:"stop",value:function(){window.clearInterval(this.interval),this.interval=null}},{key:"lockScroll",value:function(){var e=new Ea;this.scrollParent=e.getScrollParent(this.sliderTrayElement),this.scrollParent&&(this.originalOverflow=this.originalOverflow||this.scrollParent.style.overflow,this.scrollParent.style.overflow="hidden")}},{key:"unlockScroll",value:function(){this.scrollParent&&(this.scrollParent.style.overflow=this.originalOverflow,this.originalOverflow=null,this.scrollParent=null)}},{key:"blockWindowScroll",value:function(e){this.state.preventingVerticalScroll&&(e.preventDefault(),e.stopImmediatePropagation())}},{key:"computeCurrentSlide",value:function(){var e=t.slideSizeInPx(this.props.orientation,this.sliderTrayElement.clientWidth,this.sliderTrayElement.clientHeight,this.props.totalSlides),n=t.slidesMoved(this.props.moveThreshold,this.props.orientation,this.state.deltaX,this.state.deltaY,e,this.props.dragStep),r=this.props.totalSlides-Math.min(this.props.totalSlides,this.props.visibleSlides),o=vi({min:0,max:r,x:this.props.currentSlide+n});this.props.infinite&&(this.props.currentSlide>=r&&n>0&&(o=0),0===this.props.currentSlide&&n<0&&(o=r)),this.props.carouselStore.setStoreState({currentSlide:o})}},{key:"focus",value:function(){this.sliderElement.focus()}},{key:"handleOnTouchEnd",value:function(e){this.endTouchMove(),this.callCallback("onTouchEnd",e)}},{key:"handleOnTouchCancel",value:function(e){this.endTouchMove(),this.callCallback("onTouchCancel",e)}},{key:"endTouchMove",value:function(){this.props.touchEnabled&&this.fakeOnDragEnd()}},{key:"renderMasterSpinner",value:function(){var e=this.props,t=e.hasMasterSpinner,n=e.masterSpinnerFinished,r=e.spinner;return t&&!n?("function"==typeof this.props.onMasterSpinner&&this.props.onMasterSpinner(),f().createElement("div",{className:ti([Sa.masterSpinnerContainer,"carousel__master-spinner-container"])},r&&r(),!r&&f().createElement(ma,null))):null}},{key:"render",value:function(){var e=this,t=this.props,n=t.ariaLabel,r=(t.carouselStore,t.children),o=t.className,i=t.classNameAnimation,a=t.classNameTray,s=t.classNameTrayWrap,l=t.currentSlide,c=t.disableAnimation,u=(t.disableKeyboard,t.dragEnabled,t.hasMasterSpinner,t.interval,t.isPageScrollLocked,t.isPlaying,t.lockOnWindowScroll,t.masterSpinnerFinished,t.moveThreshold,t.naturalSlideHeight),d=t.naturalSlideWidth,p=(t.onMasterSpinner,t.orientation),h=(t.playDirection,t.privateUnDisableAnimation,t.slideSize),g=t.slideTraySize,m=(t.spinner,t.style),v=t.tabIndex,y=(t.totalSlides,t.touchEnabled,t.trayProps),A=t.trayTag,w=t.visibleSlides,b=t.isIntrinsicHeight,_=Ko(t,Oa),C=Go({},m),E={};"vertical"===p&&(E.height=0,E.paddingBottom=oi(100*u*w/d),E.width=oi(100));var S={},O=oi(h*l*-1);(this.state.isBeingTouchDragged||this.state.isBeingMouseDragged||c)&&(S.transition="none"),b&&(S.display="flex",S.alignItems="stretch"),"vertical"===p?(S.transform="translateY(".concat(O,") translateY(").concat(this.state.deltaY,"px)"),S.width=oi(100),S.flexDirection="column"):(S.width=oi(g),S.transform="translateX(".concat(O,") translateX(").concat(this.state.deltaX,"px)"),S.flexDirection="row");var x=ti(["vertical"===p?Sa.verticalSlider:Sa.horizontalSlider,"carousel__slider","vertical"===p?"carousel__slider--vertical":"carousel__slider--horizontal",o]),D=ti([Sa.sliderTrayWrap,"carousel__slider-tray-wrapper","vertical"===p?Sa.verticalSlideTrayWrap:Sa.horizontalTrayWrap,"vertical"===p?"carousel__slider-tray-wrap--vertical":"carousel__slider-tray-wrap--horizontal",s]),P=ti([Sa.sliderTray,i||Sa.sliderAnimation,"carousel__slider-tray","vertical"===p?Sa.verticalTray:Sa.horizontalTray,"vertical"===p?"carousel__slider-tray--vertical":"carousel__slider-tray--horizontal",a]),M=null!==v?v:0,T=(_.dragStep,_.step,_.infinite,_.preventVerticalScrollOnTouch,_.preventingVerticalScroll,_.horizontalPixelThreshold,_.verticalPixelThreshold,Ko(_,xa)),R=(y.className,y.onClickCapture,y.onMouseDown,y.onTouchCancel,y.onTouchEnd,y.onTouchMove,y.onTouchStart,y.ref,y.style,Ko(y,Da));return f().createElement("div",Go({ref:function(t){e.sliderElement=t},className:x,"aria-live":"polite","aria-label":n,style:C,tabIndex:M,onKeyDown:this.handleOnKeyDown,role:"listbox"},T),f().createElement("div",{className:D,style:E},f().createElement(A,Go({ref:this.getSliderRef,className:P,style:S,onTouchStart:this.handleOnTouchStart,onTouchMove:this.handleOnTouchMove,onTouchEnd:this.handleOnTouchEnd,onTouchCancel:this.handleOnTouchCancel,onMouseDown:this.handleOnMouseDown,onClickCapture:this.handleOnClickCapture},R),r),this.renderMasterSpinner()))}}],[{key:"slideSizeInPx",value:function(e,t,n,r){return("horizontal"===e?t:n)/r}},{key:"slidesMoved",value:function(e,t,n,r,o,i){var a="horizontal"===t?n:r,s=Math.abs(Math.round(a/o)),l=Math.abs(a)>=o*e?i:0,c=Math.max(l,s);if(a<0)return c;var u=-c;return 0===u?0:u}}]),t}(f().Component),Ho(ha,"propTypes",{ariaLabel:pi.string,carouselStore:pi.object.isRequired,children:pi.node.isRequired,className:pi.string,classNameAnimation:pi.string,classNameTray:pi.string,classNameTrayWrap:pi.string,currentSlide:pi.number.isRequired,disableAnimation:pi.bool,disableKeyboard:pi.bool,dragEnabled:pi.bool.isRequired,dragStep:pi.number,hasMasterSpinner:pi.bool.isRequired,infinite:pi.bool,interval:pi.number.isRequired,isPageScrollLocked:pi.bool.isRequired,isPlaying:pi.bool.isRequired,lockOnWindowScroll:pi.bool.isRequired,preventVerticalScrollOnTouch:pi.bool,horizontalPixelThreshold:pi.number,verticalPixelThreshold:pi.number,masterSpinnerFinished:pi.bool.isRequired,moveThreshold:pi.number,naturalSlideHeight:pi.number.isRequired,naturalSlideWidth:pi.number.isRequired,onMasterSpinner:pi.func,orientation:mi.orientation.isRequired,playDirection:mi.direction.isRequired,privateUnDisableAnimation:pi.bool,slideSize:pi.number.isRequired,slideTraySize:pi.number.isRequired,spinner:pi.func,step:pi.number.isRequired,style:pi.object,tabIndex:pi.number,totalSlides:pi.number.isRequired,touchEnabled:pi.bool.isRequired,trayProps:pi.shape({className:pi.string,onClickCapture:pi.func,onMouseDown:pi.func,onTouchCancel:pi.func,onTouchEnd:pi.func,onTouchMove:pi.func,onTouchStart:pi.func,ref:pi.shape({}),style:pi.string}),trayTag:pi.string,visibleSlides:pi.number,isIntrinsicHeight:pi.bool}),Ho(ha,"defaultProps",{ariaLabel:"slider",className:null,classNameAnimation:null,classNameTray:null,classNameTrayWrap:null,disableAnimation:!1,disableKeyboard:!1,dragStep:1,infinite:!1,preventVerticalScrollOnTouch:!0,horizontalPixelThreshold:15,verticalPixelThreshold:10,moveThreshold:.1,onMasterSpinner:null,privateUnDisableAnimation:!1,spinner:null,style:{},tabIndex:null,trayProps:{},trayTag:"div",visibleSlides:1,isIntrinsicHeight:!1}),ha),Ma=di(Pa,function(e){return{currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,privateUnDisableAnimation:e.privateUnDisableAnimation,disableKeyboard:e.disableKeyboard,dragEnabled:e.dragEnabled,hasMasterSpinner:e.hasMasterSpinner,infinite:e.infinite,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,preventingVerticalScroll:e.preventingVerticalScroll,masterSpinnerFinished:e.masterSpinnerFinished,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,slideSize:e.slideSize,slideTraySize:e.slideTraySize,step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}});const Ta=e=>{const{autosize:t,...n}=e;if(t)return(0,p.jsx)(g,{style:{width:"100%",height:"100%"},children:({width:e,height:t})=>(0,p.jsx)(Ta,{className:"gv-carousel-autosize",...n,width:e-6,height:t-6})});const r=Ri;return(0,p.jsxs)(r,{className:Oo()("gv-carousel",e.className,!e.className&&"gv-carousel-default"),naturalSlideWidth:1920,naturalSlideHeight:1080,isIntrinsicHeight:!0,totalSlides:e.items.length,infinite:e.loop,isPlaying:!!e.play,interval:1e3*e.play,style:{width:e.width,height:e.height},children:[(0,p.jsx)(Ma,{style:{},children:e.items.map((t,n)=>(0,p.jsx)(Ca,{index:n,children:(0,h.cloneElement)(t,{style:{...t.props.style,objectFit:"contain"},width:e.width??480,height:e.height??270})},n))}),(0,p.jsx)(ia,{className:"gv-carousel-dots",disableActiveDots:!0}),(0,p.jsxs)("div",{className:"gv-carousel-buttons",children:[(0,p.jsx)(ji,{className:"gv-carousel-back",children:(0,p.jsx)(Fo,{size:"17",icon:"arrows-back-button"})}),(0,p.jsx)(zi,{className:"gv-carousel-forward",children:(0,p.jsx)(Fo,{size:"17",icon:"arrows-forward-button"})})]})]})},Ra=e=>{const[t,n]=(0,h.useState)(0),{children:r,className:o,cellHeight:i,cellWidth:a,rowGap:s,columnGap:l,column:c}=e,u={gridTemplateColumns:`repeat(auto-fill, ${a}px)`,gridTemplateRows:`repeat(auto-fill, ${i}px)`,gridAutoColumns:`${a}`,gridColumnGap:`${l}px`,gridRowGap:`${s}px`,gridAutoRows:`${i}`};return(0,p.jsx)("div",{className:Oo()("gv-cells",o),children:(0,p.jsx)(g,{className:Oo()({"gv-cells-autosizer":!0,"gv-cells-autosizer--column":c}),disableWidth:c,style:{width:"100%",height:"100%"},children:({width:e,height:o})=>{if(0===e||0===o)return null;let d=e,f=o;c?f-=40:d-=64;const g=h.Children.count(r),m=Math.floor(f/(i+(s??0))),v=c?1:Math.floor(d/(a+(l??0))),y=m*v,A=g<y?0:Math.ceil(g/y)-1,w={width:c?a:v*a+(v-1)*(l??0)+"px",height:m*i+(m-1)*(s??0)+"px"},b=()=>n(0===t?0:t-1),_=()=>n(t===A?A:t+1),C=h.Children.toArray(r).slice(t*y,t*y+y);return(0,p.jsxs)(p.Fragment,{children:[!c&&0!==A&&(0,p.jsx)("div",{onClick:b,className:Oo()("gv-cells-navigation","gv-cells-navigation-left",{"gv-cells-navigation-disabled":0===t}),style:{height:w.height},children:(0,p.jsx)("div",{children:(0,p.jsx)(Fo,{icon:"arrows-left",size:"32"})})}),(0,p.jsx)("div",{style:w,children:(0,p.jsx)("div",{className:Oo()("gv-cells-grid"),style:{...u},children:C})}),!c&&0!==A&&(0,p.jsx)("div",{onClick:_,className:Oo()("gv-cells-navigation","gv-cells-navigation-right",{"gv-cells-navigation-disabled":t===A}),style:{height:w.height},children:(0,p.jsx)("div",{children:(0,p.jsx)(Fo,{icon:"arrows-right",size:"32"})})}),c&&(0,p.jsxs)("div",{children:[(0,p.jsx)(ko,{icon:"arrows-left",onClick:b,style:"page",disabled:0===t}),(0,p.jsx)(ko,{icon:"arrows-right",onClick:_,style:"page",disabled:t===A||Number.isNaN(A)})]})]})}})})};var Ia=u(57553),Fa=u.n(Ia);const ka=e=>{const[t,n]=(0,h.useState)(e.selected??new Date);return(0,p.jsx)(Fa(),{selected:t,onChange:t=>{const r=t instanceof Date?t:new Date(t);e.onChange&&e.onChange(r),e.onFormChange&&e.onFormChange(r.toJSON()),n(t)},showTimeInput:e.showTimeInput??!0,maxDate:null===e.maxDate||void 0===e.maxDate?void 0:e.maxDate?e.maxDate:new Date,minDate:e.minDate,dateFormat:e.dateFormat??"MMMM dd yyyy HH:mm",onCalendarClose:e.onCalendarClose,shouldCloseOnSelect:e.shouldCloseOnSelect??!1,readOnly:e.readOnly,id:e.id,tabIndex:e.tabIndex,showMonthYearPicker:e.isMonthPicker,showYearPicker:e.isYearPicker,onKeyUp:t=>e.onKeyUp&&e.onKeyUp(t),timeIntervals:e.timeIntervals,showTimeSelect:e.showTimeSelect,showTimeSelectOnly:e.showTimeSelectOnly,timeFormat:e.timeFormat,inline:e.inline})},La=e=>{const{style:t="default",id:n,disabled:r,onChange:o,onFormChange:i,onBlur:a,onFocus:s,value:l}=e,c=Oo()(`gv-timepicker-${t}`,e.className,e.classNames),[u,d]=(0,h.useState)(l);return(0,p.jsx)("div",{className:"gv-timepicker",children:(0,p.jsx)("input",{id:n,disabled:r,className:c,type:"time",step:"2",onChange:e=>{o?.(e.target.value),i?.(e.target.value),d(e.target.value)},onFocus:e=>s?.(e.target.value),onBlur:e=>a?.(e.target.value),value:u})})},Ba=e=>{const{className:t,size:n,panelText:r="default"}=e,o="default"===n?5:6,i=r.length<=o?`${r}`:`${r.substring(0,o)}`,a=Oo()({"gv-display-panel":!0,[`gv-display-panel-${n}`]:!!n,[t]:t});return(0,p.jsx)("div",{className:a,children:(0,p.jsx)("div",{className:"panelText",children:r?`${i}`:""})})};var Na=u(45250),ja=u.n(Na),Ua=u(38792);const Va="undefined"!=typeof window?h.useLayoutEffect:h.useEffect;function Ha(e,t,n){return function(e,t,n){const[r,o]=function(e,t,n){const[r,o]=(0,h.useState)(()=>t(e)),i=(0,h.useCallback)(()=>{const i=t(e);Ua(r,i)||(o(i),n&&n())},[r,e,n]);return Va(i),[r,i]}(e,t,n);return Va(function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})},[e,o]),r}(t,e||(()=>({})),()=>n.reconnect())}function Ga(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,h.useMemo)(()=>"function"==typeof e?e():e,n)}function Wa(e){return(0,h.useMemo)(()=>e.hooks.dropTarget(),[e])}function za(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a<i.length;a++){const l=i[a];if(!s(l))return!1;const c=e[l],u=t[l];if(o=n?n.call(r,c,u,l):void 0,!1===o||void 0===o&&c!==u)return!1}return!0}function $a(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ka(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,function(){return n[r++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function Qa(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=function(e){return(t=null,n=null)=>{if(!(0,h.isValidElement)(t)){const r=t;return e(r,n),r}const r=t;return function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(r),function(e,t){const n=e.ref;return Ka("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,h.cloneElement)(e,{ref:e=>{qa(n,e),qa(t,e)}}):(0,h.cloneElement)(e,{ref:t})}(r,n?t=>e(t,n):e)}}(r);t[n]=()=>e}}),t}function qa(e,t){"function"==typeof e?e(t):e.current=t}class Ya{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!za(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Qa({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,$a(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}const Xa=(0,h.createContext)({dragDropManager:void 0});function Za(){const{dragDropManager:e}=(0,h.useContext)(Xa);return Ka(null!=e,"Expected drag drop context"),e}let Ja=!1;class es{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;Ka(!Ja,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Ja=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Ja=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}class ts{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}var ns=u(12784),rs=u.n(ns),os=u(97331),is=u.n(os);const as={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let ss;const ls=new Uint8Array(16);function cs(){if(!ss&&(ss="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ss))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ss(ls)}const us=[];for(let e=0;e<256;++e)us.push((e+256).toString(16).slice(1));const ds=function(e,t,n){if(as.randomUUID&&!t&&!e)return as.randomUUID();const r=(e=e||{}).random||(e.rng||cs)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return us[e[t+0]]+us[e[t+1]]+us[e[t+2]]+us[e[t+3]]+"-"+us[e[t+4]]+us[e[t+5]]+"-"+us[e[t+6]]+us[e[t+7]]+"-"+us[e[t+8]]+us[e[t+9]]+"-"+us[e[t+10]]+us[e[t+11]]+us[e[t+12]]+us[e[t+13]]+us[e[t+14]]+us[e[t+15]]}(r)};var ps=u(3514),hs=u.n(ps);const fs=({itemPosition:e,canDrop:t,showDragShadow:n})=>{const r={bottom:"0%",left:"0%",right:"0%",top:"0%"},o=t?"green":"red";if(e){const{top:t,left:n,height:o,width:i}=e;r.bottom=`${Math.max(100-t-o,0)}%`,r.top=`${Math.max(t,0)}%`,r.left=`${Math.max(n,0)}%`,r.right=`${Math.max(100-n-i,0)}%`}return(0,p.jsx)("div",{style:{pointerEvents:"none"},children:!hs()(e)&&n&&(0,p.jsx)("div",{style:{position:"absolute",...r,background:o}})})};var gs=u(60840),ms=u.n(gs);const vs=({gridColumnCount:e,gridRowCount:t,id:n,display:r})=>{const o=(0,h.useRef)(null),i=(0,h.useCallback)(()=>{const n=100/e,r=100/t;for(let t=0;t<e+1;t++)o.current.line(t*n+"%","0%",t*n+"%","100%").stroke({width:1,color:"#7e7e7e"});for(let e=0;e<t+1;e++)o.current.line("0%",e*r+"%","100%",e*r+"%").stroke({width:1,color:"#7e7e7e"})},[e,t]);return(0,h.useEffect)(()=>{o.current?o.current.clear():o.current=ms()(`${n}-cells`),i()},[i,n]),(0,p.jsx)("div",{style:{opacity:r?100:0,display:"flex",flexWrap:"wrap",height:"100%",left:0,position:"absolute",top:0,width:"100%"},id:`${n}-cells`})};var ys=u(46108),As=u.n(ys);function ws(e){return(0,h.useMemo)(()=>e.hooks.dragSource(),[e])}function bs(e){return(0,h.useMemo)(()=>e.hooks.dragPreview(),[e])}class _s{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!za(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!za(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Qa({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,$a(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,$a(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}let Cs,Es=!1,Ss=!1;class Os{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ka(!Es,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Es=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Es=!1}}isDragging(){if(!this.sourceId)return!1;Ka(!Ss,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ss=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Ss=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}class xs{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function Ds(e,t){const n=Ga(e,t);Ka(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=function(){const e=Za();return(0,h.useMemo)(()=>new Os(e),[e])}(),o=function(e,t){const n=Za(),r=(0,h.useMemo)(()=>new _s(n.getBackend()),[n]);return Va(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Va(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}(n.options,n.previewOptions);return function(e,t,n){const r=Za(),o=function(e,t,n){const r=(0,h.useMemo)(()=>new xs(e,t,n),[t,n]);return(0,h.useEffect)(()=>{r.spec=e},[e]),r}(e,t,n),i=function(e){return(0,h.useMemo)(()=>{const t=e.type;return Ka(null!=t,"spec.type must be defined"),t},[e])}(e);Va(function(){if(null!=i){const[e,a]=function(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}(i,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),a}},[r,t,n,o,i])}(n,r,o),[Ha(n.collect,r,o),ws(o),bs(o)]}const Ps={GRIDITEM:"griditem"},Ms="add",Ts="duplicate",Rs="move",Is="resize",Fs=({resizeIsDragging:e,itemUuid:t})=>{const[,n]=Ds(()=>({type:Ps.GRIDITEM,item:()=>(e(!0),{action:Is,itemUuid:t}),end:()=>{e(!1)},collect:e=>({isDragging:e.isDragging()})}),[e,t]);return(0,p.jsx)("div",{ref:n,style:{borderBottom:"solid",borderRadius:"1px",borderRight:"solid",bottom:0,color:"#777F8B",cursor:"se-resize",margin:"7px",padding:"7px",pointerEvents:"auto",position:"absolute",right:0,zIndex:20}})},ks=({itemPosition:e,itemUuid:t,removeItem:n,setItemSelection:r,itemSelected:o,editMode:i,children:a,duplicate:s})=>{const[{isDragging:l},c,u]=Ds(()=>({type:Ps.GRIDITEM,item:()=>{const n=As()(e);return s?{action:Ts,newItemPosition:n,itemUuid:ds(),originalItemUuid:t}:{action:Rs,itemUuid:t}},canDrag:()=>i,collect:e=>({didDrop:e.didDrop(),isDragging:e.isDragging()})}),[e,t,i,s]),[d,f]=(0,h.useState)(!1);(0,h.useEffect)(()=>{u((Cs||(Cs=new Image,Cs.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Cs))},[u]);const g=i?(0,p.jsx)(Fs,{resizeIsDragging:f,itemUuid:t}):null,m=i?(0,p.jsx)("div",{style:{padding:"10px",position:"absolute",right:0,top:0,zIndex:19},onClick:e=>{e.stopPropagation(),n(t)},children:(0,p.jsx)(Fo,{icon:"interface-close"})}):null;return(0,p.jsxs)("div",{ref:c,onClick:e=>{e.stopPropagation(),r(t)},style:{borderColor:"#b3cad1",borderRadius:"3px",borderWidth:"1px",boxSizing:"border-box",display:"flex",position:"absolute",zIndex:20,borderStyle:o&&i?"solid":"none",height:`${e.height}%`,left:`${e.left}%`,opacity:d||l?.6:1,padding:3,top:`${e.top}%`,width:`${e.width}%`},children:[(0,p.jsx)("div",{style:{backgroundColor:"#3a424d",borderRadius:"3px",flexGrow:100,overflow:"hidden"},children:a}),g,m]})};var Ls=u(69514),Bs=u.n(Ls);function Ns(e,t,n,r,o){const i=Ls.findDOMNode(t.current).getBoundingClientRect(),a=i.width/o,s=Vs(n.width,i.width)+e.getDifferenceFromInitialOffset().x;let l=Math.max(Math.ceil((s-a/4)/a),1);l<n.minWidth&&(l=n.minWidth);const c=Us(a*l,i.width),u=i.height/r,d=Vs(n.height,i.height)+e.getDifferenceFromInitialOffset().y;let p=Math.max(Math.ceil((d-u/4)/u),1);p<n.minHeight&&(p=n.minHeight);const h=Us(u*p,i.height);return{...n,width:c,widthMultiplier:l,height:h,heightMultiplier:p}}function js(e,t,n,r,o){let i=1,a=1;n&&(i=n.widthMultiplier,a=n.heightMultiplier);const s=Ls.findDOMNode(t.current).getBoundingClientRect(),l=s.width/o,c=s.height/r,u=Math.floor((e.getSourceClientOffset().x-s.left)/l),d=Math.floor((e.getSourceClientOffset().y-s.top)/c),p=Us(l*u,s.width),h=Us(c*d,s.height),f=Us(i*l,s.width),g=Us(a*c,s.height);return{...n,gridX:u,gridY:d,left:p,top:h,width:f,height:g,widthMultiplier:i,heightMultiplier:a}}function Us(e,t){return 100*e/t}function Vs(e,t){return e/100*t}const Hs=e=>{const{editMode:t,itemPositions:n,onItemPositionChange:r,onItemRemove:o,onItemSelect:i,onItemDuplicate:a,onItemsResize:s,gridRowCount:l,gridColumnCount:c,scaleGridToParent:u,itemSelectedUuid:d,clickAndDrag:f,children:g}=e,[m,v]=(0,h.useState)(null),[y,A]=(0,h.useState)(!0),[w,b]=(0,h.useState)(1),[_,C]=(0,h.useState)(!1),[E,S]=(0,h.useState)(!1),O=(0,h.useRef)(null),x=(0,h.useRef)(null),D=(0,h.useRef)(null),P=(0,h.useRef)(!1),M=(0,h.useRef)(!1),T=(0,h.useRef)([]),R=(0,h.useMemo)(()=>l*c,[l,c]),[{isOverCurrent:I},F]=function(e,t){const n=Ga(e,t),r=function(){const e=Za();return(0,h.useMemo)(()=>new es(e),[e])}(),o=function(e){const t=Za(),n=(0,h.useMemo)(()=>new Ya(t.getBackend()),[t]);return Va(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}(n.options);return function(e,t,n){const r=Za(),o=function(e,t){const n=(0,h.useMemo)(()=>new ts(e,t),[t]);return(0,h.useEffect)(()=>{n.spec=e},[e]),n}(e,t),i=function(e){const{accept:t}=e;return(0,h.useMemo)(()=>(Ka(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}(e);Va(function(){const[e,a]=function(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}(i,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),a},[r,t,o,n,i.map(e=>e.toString()).join("|")])}(n,r,o),[Ha(n.collect,r,o),Wa(o)]}(()=>({accept:Ps.GRIDITEM,drop:(t,n)=>n.isOver({shallow:!0})?(z(t,n),{id:e.id}):null,hover:(e,t)=>{t.isOver({shallow:!0})&&V(e,t)},collect:e=>({isOver:!!e.isOver(),isOverCurrent:e.isOver({shallow:!0})})}),[n,m]);(0,h.useEffect)(()=>(document.addEventListener("keydown",B),document.addEventListener("keyup",N),()=>{document.removeEventListener("keydown",B),document.removeEventListener("keyup",N)}),[]),(0,h.useEffect)(()=>{S(I),!I&&m&&v(null)},[I]),(0,h.useEffect)(()=>{if(s){const e={};(0,Na.each)(n,(t,n)=>{const{gridX:r,gridY:o,widthMultiplier:i,heightMultiplier:a}=t,s=r/c*100,u=o/l*100,d=i*(100/c),p=a*(100/l),h={...t,left:s,top:u,width:d,height:p},f=(e,t)=>Math.round(e*10**t)/10**t,g=f(s+d,5)>100;f(u+p,5)>100||g||(e[n]=h)}),s(e)}},[l,c]);const k=(0,h.useCallback)(e=>{i&&i(e)},[i]);(0,h.useEffect)(()=>{t||k("")},[t,k]);const L=(e,t)=>{r(e,t)},B=e=>{"Alt"===e.key&&C(!0)},N=e=>{"Alt"===e.key&&C(!1)},j=e=>{o(e),e===d&&k("")},U=(0,h.useCallback)(()=>{const e=(0,Na.fill)(Array(R),!1,0,R-1);for(const t of Object.keys(n)){const r=(0,Na.get)(n,t);if(r){const n=c*r.gridY+r.gridX;for(let o=n;o<n+r.widthMultiplier;o++)for(let n=0;n<r.heightMultiplier;n++)e[o+n*c]=t}}T.current=e},[R,c,n]);(0,h.useEffect)(()=>{U()},[U]);const V=(0,Na.throttle)((e,t)=>{if(!t.getItem())return;const{itemUuid:r,action:o}=e;let i=(0,Na.cloneDeep)(m);switch(o===Is&&(i=(0,Na.cloneDeep)((0,Na.get)(n,[r]))),i||(i=o===Ms?e.itemPosition:o===Ts?e.newItemPosition:(0,Na.cloneDeep)((0,Na.get)(n,[r]))),o){case Ms:case Rs:case Ts:i=js(t,x,i,l,c);break;case Is:i=Ns(t,x,i,l,c)}const a=G(i,r);a!==y&&A(a),(0,Na.isEqual)(i,m)||v(i)},10),H=(0,h.useCallback)((e,t)=>e+c*t,[c]),G=(0,h.useCallback)((e,t)=>{const{gridX:n,gridY:r,widthMultiplier:o,heightMultiplier:i}=e,a=[];for(let e=n;e<n+o;e++)for(let t=r;t<r+i;t++)a.push(H(e,t));for(const e of a)if(T.current[e]!==t&&T.current[e])return!1;return W(e)},[H]),W=e=>{const{top:t,height:n,left:r,width:o}=e;return!(t<0||r<0||Math.floor(t+n)>100||Math.floor(r+o)>100)},z=(e,t)=>{let r=(0,Na.cloneDeep)(m);if(y){const{itemUuid:o,action:i}=e;switch(i){case Is:r=(0,Na.cloneDeep)((0,Na.get)(n,[o])),r=Ns(t,x,r,l,c),L(o,r);break;case Rs:case Ms:r=js(t,x,r,l,c),L(o,r);break;case Ts:r=js(t,x,r,l,c),a&&a(e.originalItemUuid,o),L(o,r)}}v(null),C(!1)},$=(0,h.useCallback)(()=>{const t=O.current,n=t.getBoundingClientRect().width/e.width,r=(window.innerHeight-t.getBoundingClientRect().top)/e.height;(n!==w||r<w)&&u&&b(Math.min(n,r))},[w,u,e.height,e.width]),K=(0,Na.throttle)($,10);(0,h.useEffect)(()=>(window.addEventListener("resize",K),K(),()=>{window.removeEventListener("resize",K)}),[K]);const Q=(0,h.useCallback)(()=>{f&&M.current&&P.current&&G(m,"")&&r(ds(),m),P.current=!1,v(null),S(!1)},[f,m,G,r]);(0,h.useEffect)(()=>(window.addEventListener("mouseup",Q),()=>{window.removeEventListener("mouseup",Q)}),[Q]);const q=(e,t=!1)=>{const{x:n,y:r,width:o,height:i}=D.current.getBoundingClientRect(),{clientX:a,clientY:s}=e,u=a-n,d=s-r,p=i/l,h=o/c;return{gridX:t?Math.floor(u/h):Math.ceil(u/h),gridY:t?Math.floor(d/p):Math.ceil(d/p)}},Y=Number.isNaN(e.width)?e.width:`${e.width}px`,X=Number.isNaN(e.height)?e.height:`${e.height}px`,Z=u?{marginLeft:"50%",transform:`scale(${w}) translateX(-50%)`,transformOrigin:"0% 0% 0px"}:null;return function({skipOnMount:e=!1,refreshMode:t,refreshRate:n=1e3,refreshOptions:r,handleWidth:o=!0,handleHeight:i=!0,targetRef:a,observerOptions:s,onResize:l}={}){const c=(0,h.useRef)(e),[u,d]=(0,h.useState)({width:void 0,height:void 0}),[p,f]=(0,h.useState)((null==a?void 0:a.current)||null);a&&setTimeout(()=>{a.current!==p&&f(a.current)},0);const g=(0,h.useMemo)(()=>new Proxy(e=>{e!==p&&f(e)},{get:(e,t)=>"current"===t?p:e[t],set:(e,t,n)=>("current"===t?f(n):e[t]=n,!0)}),[p]),m=(0,h.useCallback)((e,t)=>(e.width!==t.width||e.height!==t.height)&&!(e.width===t.width&&!i||e.height===t.height&&!o),[o,i]),v=(0,h.useCallback)(e=>{(o||i)&&(c.current?c.current=!1:e.forEach(e=>{const{width:t,height:n}=(null==e?void 0:e.contentRect)||{};d(e=>m(e,{width:t,height:n})?{width:t,height:n}:e)}))},[o,i,c,m]),y=(0,h.useCallback)(((e,t,n,r)=>{switch(t){case"debounce":return rs()(e,n,r);case"throttle":return is()(e,n,r);default:return e}})(v,t,n,r),[v,t,n,r]);(0,h.useEffect)(()=>{let e;return p?(e=new window.ResizeObserver(y),e.observe(p,s)):(u.width||u.height)&&d({width:void 0,height:void 0}),()=>{var t,n,r;null===(t=null==e?void 0:e.disconnect)||void 0===t||t.call(e),null===(r=(n=y).cancel)||void 0===r||r.call(n)}},[y,p]),(0,h.useEffect)(()=>{null==l||l(u.width,u.height)},[u]),Object.assign({ref:g},u)}({handleWidth:!0,onResize:K}),(0,p.jsx)("div",{style:{flexGrow:1e3,height:"100%",width:"100%"},ref:O,children:(0,p.jsx)("div",{style:{paddingTop:100*l/c+"%",position:"relative",width:"100%"},children:(0,p.jsxs)("div",{style:{width:Y,height:X,...Z,display:"flex",flexWrap:"wrap",left:0,position:"absolute",top:0},ref:e=>{x.current=e,F(e)},children:[(0,p.jsx)("div",{style:{width:"100%"},ref:D,onMouseDown:e=>{if(M.current=!0,f){const t=1,n=1,{gridX:r,gridY:o}=q(e,!0),i={gridX:r,gridY:o,height:t/l*100,heightMultiplier:t,left:r/c*100,top:o/l*100,width:n/c*100,widthMultiplier:n};P.current=!0,v(i),S(!0)}},onMouseMove:e=>{if(m&&P.current&&f){const{gridX:t,gridY:n}=q(e),{gridX:r,gridY:o}=m,i=Math.max(t-r,1),a=Math.max(n-o,1),s=i/c*100,u=a/l*100,d={...m,height:u,heightMultiplier:a,width:s,widthMultiplier:i},p=G(d,"");p!==y&&A(p),(0,Na.isEqual)(d,m)||v(d)}},onMouseEnter:()=>M.current=!0,onMouseLeave:()=>{A(!1),M.current=!1},children:(0,p.jsx)(vs,{display:t,id:e.id,gridRowCount:l,gridColumnCount:c})}),(()=>{const e=[];return(0,Na.forOwn)(n,(n,r)=>{let o=null;if(h.Children.forEach(g,e=>{(0,Na.get)(e,["key"])===r&&(o=e)}),(0,Na.every)(["width","height","top","left"],(0,Na.partial)(Na.has,n))){const i=P.current?"none":"auto";e.push((0,p.jsx)("div",{style:{pointerEvents:i},children:(0,p.jsx)(ks,{itemPosition:n,itemUuid:r,removeItem:j,setItemSelection:k,itemSelected:d===r,editMode:t,duplicate:_,children:o})},r))}}),e})(),(0,p.jsx)(fs,{itemPosition:m,canDrop:y,showDragShadow:E})]})})})},Gs=e=>(0,p.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,p.jsx)(Hs,{...e})});function Ws(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var zs="function"==typeof Symbol&&Symbol.observable||"@@observable",$s=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ks={INIT:"@@redux/INIT"+$s(),REPLACE:"@@redux/REPLACE"+$s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+$s()}};function Qs(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ws(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ws(1));return n(Qs)(e,t)}if("function"!=typeof e)throw new Error(Ws(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(Ws(3));return i}function d(e){if("function"!=typeof e)throw new Error(Ws(4));if(l)throw new Error(Ws(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(Ws(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Ws(7));if(void 0===e.type)throw new Error(Ws(8));if(l)throw new Error(Ws(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:Ks.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Ws(10));o=e,p({type:Ks.REPLACE})}})[zs]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Ws(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[zs]=function(){return this},e},r}function qs(e,t,n){return t.split(".").reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function Ys(e){return"object"==typeof e}const Xs="dnd-core/INIT_COORDS",Zs="dnd-core/BEGIN_DRAG",Js="dnd-core/PUBLISH_DRAG_SOURCE",el="dnd-core/HOVER",tl="dnd-core/DROP",nl="dnd-core/END_DRAG";function rl(e,t){return{type:Xs,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const ol={type:Xs,payload:{clientOffset:null,sourceClientOffset:null}};function il(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(rl(o)),function(e,t,n){Ka(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){Ka(n.getSource(e),"Expected sourceIds to be registered.")})}(t,a,s);const l=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==l)return void e.dispatch(ol);let c=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){Ka("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),c=i(l)}e.dispatch(rl(o,c));const u=s.getSource(l).beginDrag(a,l);if(null==u)return;!function(e){Ka(Ys(e),"Item must be an object.")}(u),s.pinSource(l);const d=s.getSourceType(l);return{type:Zs,payload:{itemType:d,item:u,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}}function al(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){al(e,t,n[t])})}return e}function ll(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){Ka(e.isDragging(),"Cannot call drop while not dragging."),Ka(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach((o,i)=>{const a=function(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;return function(e){Ka(void 0===e||Ys(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}(o,i,r,n),s={type:tl,payload:{dropResult:sl({},t,a)}};e.dispatch(s)})}}function cl(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){Ka(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:nl}}}function ul(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function dl(e){return function(t,{clientOffset:n}={}){!function(e){Ka(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];ul(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){Ka(t.isDragging(),"Cannot call hover while not dragging."),Ka(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];Ka(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array."),Ka(n.getTarget(r),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,i),{type:el,payload:{targetIds:r,clientOffset:n||null}}}}function pl(e){return function(){if(e.getMonitor().isDragging())return{type:Js}}}class hl{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,n=function(e){return{beginDrag:il(e),publishDragSource:pl(e),hover:dl(e),drop:ll(e),endDrag:cl(e)}}(this);return Object.keys(n).reduce((r,o)=>{const i=n[o];var a;return r[o]=(a=i,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function fl(e,t){return{x:e.x-t.x,y:e.y-t.y}}const gl=[],ml=[];gl.__IS_NONE__=!0,ml.__IS_ALL__=!0;class vl{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;Ka("function"==typeof e,"listener must be a function."),Ka(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),o=t.stateId;try{const i=o===r||o===r+1&&!function(e,t){if(e===gl)return!1;if(e===ml||void 0===t)return!0;const n=(r=e,t.filter(e=>r.indexOf(e)>-1));var r;return n.length>0}(t.dirtyHandlerIds,n);i||e()}finally{r=o}})}subscribeToOffsetChange(e){Ka("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return Ka(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return Ka(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&ul(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return Ka(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!ul(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?fl(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?fl(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const yl=void 0!==u.g?u.g:self,Al=yl.MutationObserver||yl.WebKitMutationObserver;function wl(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const bl="function"==typeof Al?function(e){let t=1;const n=new Al(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:wl;class _l{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Cl=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=bl(this.flush),this.requestErrorThrow=wl(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},El=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new _l(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Cl.registerPendingError),Sl="dnd-core/ADD_SOURCE",Ol="dnd-core/ADD_TARGET",xl="dnd-core/REMOVE_SOURCE",Dl="dnd-core/REMOVE_TARGET";function Pl(e,t){t&&Array.isArray(e)?e.forEach(e=>Pl(e,!1)):Ka("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Ml;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Ml||(Ml={}));let Tl=0;function Rl(e){switch(e[0]){case"S":return Ml.SOURCE;case"T":return Ml.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Il(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class Fl{addSource(e,t){Pl(e),function(e){Ka("function"==typeof e.canDrag,"Expected canDrag to be a function."),Ka("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Ka("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(Ml.SOURCE,e,t);return this.store.dispatch(function(e){return{type:Sl,payload:{sourceId:e}}}(n)),n}addTarget(e,t){Pl(e,!0),function(e){Ka("function"==typeof e.canDrop,"Expected canDrop to be a function."),Ka("function"==typeof e.hover,"Expected hover to be a function."),Ka("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(Ml.TARGET,e,t);return this.store.dispatch(function(e){return{type:Ol,payload:{targetId:e}}}(n)),n}containsHandler(e){return Il(this.dragSources,e)||Il(this.dropTargets,e)}getSource(e,t=!1){return Ka(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ka(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ka(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ka(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Rl(e)===Ml.SOURCE}isTargetId(e){return Rl(e)===Ml.TARGET}removeSource(e){var t;Ka(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:xl,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Cl.enqueueTask(El.create(t))}removeTarget(e){Ka(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Dl,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);Ka(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Ka(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=function(e){const t=(Tl++).toString();switch(e){case Ml.SOURCE:return`S${t}`;case Ml.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===Ml.SOURCE?this.dragSources.set(r,n):e===Ml.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const kl=(e,t)=>e===t;function Ll(e=gl,t){switch(t.type){case el:break;case Sl:case Ol:case Dl:case xl:return gl;default:return ml}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach((e,t)=>{1===e&&o.push(t)}),o}(n,r),i=o.length>0||!function(e,t,n=kl){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r);if(!i)return gl;const a=r[r.length-1],s=n[n.length-1];return a!==s&&(a&&o.push(a),s&&o.push(s)),o}function Bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nl={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function jl(e=Nl,t){const{payload:n}=t;switch(t.type){case Xs:case Zs:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case el:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Bl(e,t,n[t])})}return e}({},e,{clientOffset:n.clientOffset});case nl:case tl:return Nl;default:return e}var r,o}function Ul(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ul(e,t,n[t])})}return e}const Hl={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Gl(e=Hl,t){const{payload:n}=t;switch(t.type){case Zs:return Vl({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Js:return Vl({},e,{isSourcePublic:!0});case el:return Vl({},e,{targetIds:n.targetIds});case Dl:return-1===e.targetIds.indexOf(n.targetId)?e:Vl({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter(e=>e!==o))});case tl:return Vl({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case nl:return Vl({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function Wl(e=0,t){switch(t.type){case Sl:case Ol:return e+1;case xl:case Dl:return e-1;default:return e}}function zl(e=0){return e+1}function $l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){$l(e,t,n[t])})}return e}function Ql(e={},t){return{dirtyHandlerIds:Ll(e.dirtyHandlerIds,{type:t.type,payload:Kl({},t.payload,{prevTargetIds:qs(e,"dragOperation.targetIds",[])})}),dragOffset:jl(e.dragOffset,t),refCount:Wl(e.refCount,t),dragOperation:Gl(e.dragOperation,t),stateId:zl(e.stateId)}}function ql(e,t=void 0,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Qs(Ql,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new vl(o,new Fl(o)),a=new hl(o,i),s=e(a,t,n);return a.receiveBackend(s),a}let Yl=0;const Xl=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Zl=(0,h.memo)(function(e){var{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children"]);const[r,o]=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=function(e,t=Jl(),n,r){const o=t;return o[Xl]||(o[Xl]={dragDropManager:ql(e,t,n,r)}),o[Xl]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(n);return(0,h.useEffect)(()=>{if(o){const e=Jl();return++Yl,()=>{0===--Yl&&(e[Xl]=null)}}},[]),(0,p.jsx)(Xa.Provider,{value:r,children:t})});function Jl(){return void 0!==u.g?u.g:window}function ec(e){let t=null;return()=>(null==t&&(t=e()),t)}class tc{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach(e=>o.push(e)),o}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter(e=>e!==r)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class nc{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const rc="__NATIVE_FILE__",oc="__NATIVE_URL__",ic="__NATIVE_TEXT__",ac="__NATIVE_HTML__";function sc(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return null!=r?r:n}const lc={[rc]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[ac]:{exposeProperties:{html:(e,t)=>sc(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[oc]:{exposeProperties:{urls:(e,t)=>sc(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[ic]:{exposeProperties:{text:(e,t)=>sc(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function cc(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(lc).filter(e=>{const n=lc[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}const uc=ec(()=>/firefox/i.test(navigator.userAgent)),dc=ec(()=>Boolean(window.safari));class pc{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let s,l=0,c=i.length-1;for(;l<=c;){s=Math.floor(.5*(l+c));const r=t[s];if(r<e)l=s+1;else{if(!(r>e))return n[s];c=s-1}}a=Math.max(0,c);const u=e-t[a],d=u*u;return n[a]+r[a]*u+o[a]*d+i[a]*u*d}constructor(e,t){const{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort((t,n)=>e[t]<e[n]?-1:1);const o=[],i=[],a=[];let s,l;for(let r=0;r<n-1;r++)s=e[r+1]-e[r],l=t[r+1]-t[r],i.push(s),o.push(l),a.push(l/s);const c=[a[0]];for(let e=0;e<i.length-1;e++){const t=a[e],n=a[e+1];if(t*n<=0)c.push(0);else{s=i[e];const r=i[e+1],o=s+r;c.push(3*o/((o+r)/t+(o+s)/n))}}c.push(a[a.length-1]);const u=[],d=[];let p;for(let e=0;e<c.length-1;e++){p=a[e];const t=c[e],n=1/i[e],r=t+c[e+1]-p-p;u.push((p-t-r)*n),d.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=c,this.c2s=u,this.c3s=d}}function hc(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function fc(e){return{x:e.clientX,y:e.clientY}}class gc{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function mc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){mc(e,t,n[t])})}return e}class yc{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return vc({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return vc({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(n).some(t=>n[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=lc[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new nc(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&hc(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=fc(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=cc(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=function(e,t,n,r,o){const i="IMG"===(v=t).nodeName&&(uc()||!(null===(y=document.documentElement)||void 0===y?void 0:y.contains(v))),a=hc(i?e:t),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:l,offsetHeight:c}=e,{anchorX:u,anchorY:d}=r,{dragPreviewWidth:p,dragPreviewHeight:h}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return dc()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,l,c),{offsetX:f,offsetY:g}=o,m=0===g||g;var v,y;return{x:0===f||f?f:new pc([0,.5,1],[s.x,s.x/l*p,s.x+p-l]).interpolate(u),y:m?g:(()=>{let e=new pc([0,.5,1],[s.y,s.y/c*h,s.y+h-c]).interpolate(d);return dc()&&i&&(e+=(window.devicePixelRatio-1)*h),e})()}}(t,o,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:s});r.setDragImage(o,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=cc(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:fc(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=fc(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):cc(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:fc(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new gc(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new tc(this.isNodeInDocument)}}const Ac=function(e,t,n){return new yc(e,t,n)},wc=({children:e})=>(0,p.jsx)(Zl,{backend:Ac,children:e}),bc=({className:e,widthMultiplier:t,heightMultiplier:n,children:r})=>{const[,o]=Ds(()=>({type:Ps.GRIDITEM,item:()=>({itemUuid:ds(),action:Ms,itemPosition:{widthMultiplier:t,heightMultiplier:n}}),collect:e=>({isDragging:!!e.isDragging()})}),[t,n]);return(0,p.jsx)("div",{className:e,ref:o,children:r})};class _c extends h.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}constructor(e){super(e),this.state={hasError:!1}}componentDidCatch(e,t){if(window.__GVLOGGING__){const n=window.__GVLOGGING__.Error(`An error occured while rendering. [${e.name}] ${e.message}`,{componentStack:t.componentStack,error:e.name,react:"error",stack:e.stack},["React","Render"]);this.setState({errorId:n.getId(),info:t})}else console.error(`An error occured while rendering. [${e.name}] ${e.message}`,{componentStack:t.componentStack,error:e.name,stack:e.stack},e,t),this.setState({info:t})}render(){return this.state.hasError?(0,p.jsxs)("div",{style:{padding:"10px",overflow:"auto"},children:[(0,p.jsxs)("h2",{children:["Render Error:",this.state.error.name]}),(0,p.jsx)("h3",{children:"A problem occured whilst rendering a component."}),this.state.errorId&&(0,p.jsxs)("p",{children:["Error ID:",(0,p.jsx)("strong",{children:this.state.errorId})]}),(0,p.jsx)("pre",{style:{display:"none"},children:this.state.error&&this.state.error.message}),(0,p.jsx)("pre",{style:{display:"none"},children:this.state.error&&this.state.error.stack}),(0,p.jsx)("pre",{style:{display:"none"},children:this.state.info&&this.state.info.componentStack})]}):this.props.children}resetError=()=>{this.setState({hasError:!1})}}function Cc(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Ec(e,t){if(null==e)return{};var n,r,o=Cc(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sc(){return Sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sc.apply(null,arguments)}function Oc(e){return Oc="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},Oc(e)}function xc(e){return e&&"object"===Oc(e)&&e.constructor===Object}function Dc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Sc({},e):e;return xc(e)&&xc(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(xc(t[o])&&o in e?r[o]=Dc(e[o],t[o],n):r[o]=t[o])}),r}var Pc=["xs","sm","md","lg","xl"];function Mc(e){var t=function(e){if("object"!=Oc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Oc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oc(t)?t:t+""}function Tc(e,t,n){return(t=Mc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rc(e,t,n){var r;return Sc({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Sc({paddingLeft:t(2),paddingRight:t(2)},n,Tc({},e.up("sm"),Sc({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Tc(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Tc(r,e.up("sm"),{minHeight:64}),r)},n)}function Ic(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}const Fc={black:"#000",white:"#fff"},kc={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function Lc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Bc(e){if(e.type)return e;if("#"===e.charAt(0))return Bc(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Ic(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map(function(e){return parseFloat(e)})}}function Nc(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function jc(e){var t="hsl"===(e=Bc(e)).type?Bc(function(e){var t=(e=Bc(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Nc({type:s,values:l})}(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Uc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return jc(e)>.5?Hc(e,t):Gc(e,t)}function Vc(e,t){return e=Bc(e),t=Lc(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Nc(e)}function Hc(e,t){if(e=Bc(e),t=Lc(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Nc(e)}function Gc(e,t){if(e=Bc(e),t=Lc(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Nc(e)}var Wc={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Fc.white,default:kc[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},zc={text:{primary:Fc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:kc[800],default:"#303030"},action:{active:Fc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function $c(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Gc(e.main,o):"dark"===t&&(e.dark=Hc(e.main,i)))}function Kc(e){return Math.round(1e5*e)/1e5}var Qc={textTransform:"uppercase"},qc='"Roboto", "Helvetica", "Arial", sans-serif';function Yc(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?qc:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,p=void 0===d?500:d,h=n.fontWeightBold,f=void 0===h?700:h,g=n.htmlFontSize,m=void 0===g?16:g,v=n.allVariants,y=n.pxToRem,A=Ec(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),w=a/14,b=y||function(e){return"".concat(e/m*w,"rem")},_=function(e,t,n,r,i){return Sc({fontFamily:o,fontWeight:e,fontSize:b(t),lineHeight:n},o===qc?{letterSpacing:"".concat(Kc(r/t),"em")}:{},i,v)},C={h1:_(l,96,1.167,-1.5),h2:_(l,60,1.2,-.5),h3:_(u,48,1.167,0),h4:_(u,34,1.235,.25),h5:_(u,24,1.334,0),h6:_(p,20,1.6,.15),subtitle1:_(u,16,1.75,.15),subtitle2:_(p,14,1.57,.1),body1:_(u,16,1.5,.15),body2:_(u,14,1.43,.15),button:_(p,14,1.75,.4,Qc),caption:_(u,12,1.66,.4),overline:_(u,12,2.66,1,Qc)};return Dc(Sc({htmlFontSize:m,pxToRem:b,round:Kc,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:f},C),A,{clone:!1})}function Xc(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const Zc=["none",Xc(0,2,1,-1,0,1,1,0,0,1,3,0),Xc(0,3,1,-2,0,2,2,0,0,1,5,0),Xc(0,3,3,-2,0,3,4,0,0,1,8,0),Xc(0,2,4,-1,0,4,5,0,0,1,10,0),Xc(0,3,5,-1,0,5,8,0,0,1,14,0),Xc(0,3,5,-1,0,6,10,0,0,1,18,0),Xc(0,4,5,-2,0,7,10,1,0,2,16,1),Xc(0,5,5,-3,0,8,10,1,0,3,14,2),Xc(0,5,6,-3,0,9,12,1,0,3,16,2),Xc(0,6,6,-3,0,10,14,1,0,4,18,3),Xc(0,6,7,-4,0,11,15,1,0,4,20,3),Xc(0,7,8,-4,0,12,17,2,0,5,22,4),Xc(0,7,8,-4,0,13,19,2,0,5,24,4),Xc(0,7,9,-4,0,14,21,2,0,5,26,4),Xc(0,8,9,-5,0,15,22,2,0,6,28,5),Xc(0,8,10,-5,0,16,24,2,0,6,30,5),Xc(0,8,11,-5,0,17,26,2,0,6,32,5),Xc(0,9,11,-5,0,18,28,2,0,7,34,6),Xc(0,9,12,-6,0,19,29,2,0,7,36,6),Xc(0,10,13,-6,0,20,31,3,0,8,38,7),Xc(0,10,13,-6,0,21,33,3,0,8,40,7),Xc(0,10,14,-6,0,22,35,3,0,8,42,7),Xc(0,11,14,-7,0,23,36,3,0,9,44,8),Xc(0,11,15,-7,0,24,38,3,0,9,46,8)],Jc={borderRadius:4};function eu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tu(e,t){if(e){if("string"==typeof e)return eu(e,t);var n={}.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)?eu(e,t):void 0}}function nu(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 r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||tu(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.")}()}var ru={xs:0,sm:600,md:960,lg:1280,xl:1920},ou={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(ru[e],"px)")}};function iu(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||ou;return t.reduce(function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e},{})}if("object"===Oc(t)){var o=e.theme.breakpoints||ou;return Object.keys(t).reduce(function(e,r){return e[o.up(r)]=n(t[r]),e},{})}return n(t)}const au=function(e,t){return t?Dc(e,t,{clone:!1}):e};var su={m:"margin",p:"padding"},lu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uu=function(){var e={};return function(t){return void 0===e[t]&&(e[t]=function(e){if(e.length>2){if(!cu[e])return[e];e=cu[e]}var t=nu(e.split(""),2),n=t[0],r=t[1],o=su[n],i=lu[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}(t)),e[t]}}(),du=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function pu(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function hu(e){var t=pu(e.theme);return Object.keys(e).map(function(n){if(-1===du.indexOf(n))return null;var r=function(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}(uu(n),t),o=e[n];return iu(e,o,r)}).reduce(au,{})}hu.propTypes={},hu.filterProps=du;const fu=hu;var gu={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},mu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vu(e){return"".concat(Math.round(e),"ms")}const yu={easing:gu,duration:mu,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?mu.standard:n,o=t.easing,i=void 0===o?gu.easeInOut:o,a=t.delay,s=void 0===a?0:a;return Ec(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof r?r:vu(r)," ").concat(i," ").concat("string"==typeof s?s:vu(s))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Au={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},wu=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=Ec(e,["breakpoints","mixins","palette","spacing","typography"]),d=function(e){var t=e.primary,n=void 0===t?{light:"#7986cb",main:"#3f51b5",dark:"#303f9f"}:t,r=e.secondary,o=void 0===r?{light:"#ff4081",main:"#f50057",dark:"#c51162"}:r,i=e.error,a=void 0===i?{light:"#e57373",main:"#f44336",dark:"#d32f2f"}:i,s=e.warning,l=void 0===s?{light:"#ffb74d",main:"#ff9800",dark:"#f57c00"}:s,c=e.info,u=void 0===c?{light:"#64b5f6",main:"#2196f3",dark:"#1976d2"}:c,d=e.success,p=void 0===d?{light:"#81c784",main:"#4caf50",dark:"#388e3c"}:d,h=e.type,f=void 0===h?"light":h,g=e.contrastThreshold,m=void 0===g?3:g,v=e.tonalOffset,y=void 0===v?.2:v,A=Ec(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function w(e){var t=function(e,t){var n=jc(e),r=jc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,zc.text.primary)>=m?zc.text.primary:Wc.text.primary;return t}var b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Sc({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Ic(4,t));if("string"!=typeof e.main)throw new Error(Ic(5,JSON.stringify(e.main)));return $c(e,"light",n,y),$c(e,"dark",r,y),e.contrastText||(e.contrastText=w(e.main)),e},_={dark:zc,light:Wc};return Dc(Sc({common:Fc,type:f,primary:b(n),secondary:b(o,"A400","A200","A700"),error:b(a),warning:b(l),info:b(u),success:b(p),grey:kc,contrastThreshold:m,getContrastText:w,augmentColor:b,tonalOffset:y},_[f]),A)}(a),p=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=Ec(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=Pc.indexOf(t);return r===Pc.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Pc[r+1]]?n[Pc[r+1]]:t)-a/100).concat(o,")")}return Sc({keys:Pc,values:n,up:l,down:function(e){var t=Pc.indexOf(e)+1,r=n[Pc[t]];return t===Pc.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=pu({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map(function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(s),f=Dc({breakpoints:p,direction:"ltr",mixins:Rc(p,h,o),overrides:{},palette:d,props:{},shadows:Zc,typography:Yc(d,c),spacing:h,shape:Jc,transitions:yu,zIndex:Au},u),g=arguments.length,m=new Array(g>1?g-1:0),v=1;v<g;v++)m[v-1]=arguments[v];return m.reduce(function(e,t){return Dc(e,t)},f)},bu=f().createContext(null);function _u(){return f().useContext(bu)}const Cu="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Eu=function(e){var t=e.children,n=e.theme,r=_u(),o=f().useMemo(function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Sc({},e,t)}(r,n);return null!=e&&(e[Cu]=null!==r),e},[n,r]);return f().createElement(bu.Provider,{value:o},t)};var Su=u(52743),Ou=u.n(Su);function xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xu(Object(n),!0).forEach(function(t){Tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pu(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Mu="function"==typeof Symbol&&Symbol.observable||"@@observable",Tu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ru={INIT:"@@redux/INIT"+Tu(),REPLACE:"@@redux/REPLACE"+Tu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Tu()}};function Iu(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Pu(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Pu(1));return n(Iu)(e,t)}if("function"!=typeof e)throw new Error(Pu(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(Pu(3));return i}function d(e){if("function"!=typeof e)throw new Error(Pu(4));if(l)throw new Error(Pu(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(Pu(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Pu(7));if(void 0===e.type)throw new Error(Pu(8));if(l)throw new Error(Pu(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:Ru.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Pu(10));o=e,p({type:Ru.REPLACE})}})[Mu]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Pu(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[Mu]=function(){return this},e},r}function Fu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function ku(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(Pu(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map(function(e){return e(o)});return r=Fu.apply(void 0,i)(n.dispatch),Du(Du({},n),{},{dispatch:r})}}}var Lu="dnd-core/INIT_COORDS",Bu="dnd-core/BEGIN_DRAG",Nu="dnd-core/PUBLISH_DRAG_SOURCE",ju="dnd-core/HOVER",Uu="dnd-core/DROP",Vu="dnd-core/END_DRAG",Hu=function(e,t){return e===t};function Gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gu(Object(n),!0).forEach(function(t){zu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $u={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ku(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$u,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case Lu:case Bu:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case ju:return e=n.clientOffset,t=o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:Wu(Wu({},n),{},{clientOffset:o.clientOffset});case Vu:case Uu:return $u;default:return n}}var Qu="dnd-core/ADD_SOURCE",qu="dnd-core/ADD_TARGET",Yu="dnd-core/REMOVE_SOURCE",Xu="dnd-core/REMOVE_TARGET";function Zu(e){return Zu="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},Zu(e)}function Ju(e,t,n){return t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:n||null},e)}function ed(e){return"object"===Zu(e)}function td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?td(Object(n),!0).forEach(function(t){rd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):td(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var od={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function id(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:od,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case Bu:return nd(nd({},n),{},{itemType:o.itemType,item:o.item,sourceId:o.sourceId,isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case Nu:return nd(nd({},n),{},{isSourcePublic:!0});case ju:return nd(nd({},n),{},{targetIds:o.targetIds});case Xu:return-1===n.targetIds.indexOf(o.targetId)?n:nd(nd({},n),{},{targetIds:(e=n.targetIds,t=o.targetId,e.filter(function(e){return e!==t}))});case Uu:return nd(nd({},n),{},{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case Vu:return nd(nd({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function ad(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case Qu:case qu:return e+1;case Yu:case Xu:return e-1;default:return e}}var sd=[],ld=[];function cd(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case ju:break;case Qu:case qu:case Xu:case Yu:return sd;default:return ld}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,o=t.prevTargetIds,i=void 0===o?[]:o,a=function(e,t){var n=new Map,r=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var o=[];return n.forEach(function(e,t){1===e&&o.push(t)}),o}(r,i),s=a.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hu;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(r,i);if(!s)return sd;var l=i[i.length-1],c=r[r.length-1];return l!==c&&(l&&a.push(l),c&&a.push(c)),a}function ud(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function dd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(n),!0).forEach(function(t){hd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:cd(e.dirtyHandlerIds,{type:t.type,payload:pd(pd({},t.payload),{},{prevTargetIds:Ju(e,"dragOperation.targetIds",[])})}),dragOffset:Ku(e.dragOffset,t),refCount:ad(e.refCount,t),dragOperation:id(e.dragOperation,t),stateId:ud(e.stateId)}}function gd(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,function(){return r[a++]}))).name="Invariant Violation"}throw i.framesToPop=1,i}}function md(e,t){return{type:Lu,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}sd.__IS_NONE__=!0,ld.__IS_ALL__=!0;var vd={type:Lu,payload:{clientOffset:null,sourceClientOffset:null}};function yd(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,i=n.clientOffset,a=n.getSourceClientOffset,s=e.getMonitor(),l=e.getRegistry();e.dispatch(md(i)),function(e,t,n){gd(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){gd(n.getSource(e),"Expected sourceIds to be registered.")})}(t,s,l);var c=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,s);if(null!==c){var u=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){gd("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),u=a(c)}e.dispatch(md(i,u));var d=l.getSource(c).beginDrag(s,c);!function(e){gd(ed(e),"Item must be an object.")}(d),l.pinSource(c);var p=l.getSourceType(c);return{type:Bu,payload:{itemType:p,item:d,sourceId:c,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!o}}}e.dispatch(vd)}}function Ad(e){return function(){if(e.getMonitor().isDragging())return{type:Nu}}}function wd(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function bd(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){gd(Array.isArray(e),"Expected targetIds to be an array.")}(t);var r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){gd(t.isDragging(),"Cannot call hover while not dragging."),gd(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var o=e[r];gd(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array."),gd(n.getTarget(o),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){for(var r=e.length-1;r>=0;r--){var o=e[r];wd(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,i),{type:ju,payload:{targetIds:r,clientOffset:n||null}}}}function _d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_d(Object(n),!0).forEach(function(t){Ed(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ed(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sd(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();!function(e){gd(e.isDragging(),"Cannot call drop while not dragging."),gd(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var o=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(function(o,i){var a=function(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;return function(e){gd(void 0===e||ed(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}(o,i,r,n),s={type:Uu,payload:{dropResult:Cd(Cd({},t),a)}};e.dispatch(s)})}}function Od(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){gd(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:Vu}}}function xd(e,t){return{x:e.x-t.x,y:e.y-t.y}}var Dd,Pd=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=n}var t;return t=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;gd("function"==typeof e,"listener must be a function."),gd(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId;return this.store.subscribe(function(){var o=t.store.getState(),i=o.stateId;try{var a=i===r||i===r+1&&!function(e,t){if(e===sd)return!1;if(e===ld||void 0===t)return!0;var n,r=(n=e,t.filter(function(e){return n.indexOf(e)>-1}));return r.length>0}(o.dirtyHandlerIds,n);a||e()}finally{r=i}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;gd("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return gd(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return gd(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&wd(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return gd(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();if(r&&!wd(n,r))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(e);return t?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return t=(e=this.store.getState().dragOffset).clientOffset,n=e.initialClientOffset,r=e.initialSourceClientOffset,t&&n&&r?xd(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null;var e,t,n,r}},{key:"getDifferenceFromInitialOffset",value:function(){return t=(e=this.store.getState().dragOffset).clientOffset,n=e.initialClientOffset,t&&n?xd(t,n):null;var e,t,n}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),Md=0;function Td(e){return Td="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},Td(e)}function Rd(e,t){t&&Array.isArray(e)?e.forEach(function(e){return Rd(e,!1)}):gd("string"==typeof e||"symbol"===Td(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Dd||(Dd={}));const Id=void 0!==u.g?u.g:self,Fd=Id.MutationObserver||Id.WebKitMutationObserver;function kd(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const Ld="function"==typeof Fd?function(e){let t=1;const n=new Fd(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:kd;class Bd{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Nd=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Ld(this.flush),this.requestErrorThrow=kd(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},jd=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new Bd(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Nd.registerPendingError);function Ud(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vd(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)?Vd(e,t):void 0}}(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 Vd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hd(e){switch(e[0]){case"S":return Dd.SOURCE;case"T":return Dd.TARGET;default:gd(!1,"Cannot parse handler ID: ".concat(e))}}function Gd(e,t){var n=e.entries(),r=!1;do{var o=n.next(),i=o.done;if(Ud(o.value,2)[1]===t)return!0;r=!!i}while(!r);return!1}var Wd=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t;return t=[{key:"addSource",value:function(e,t){Rd(e),function(e){gd("function"==typeof e.canDrag,"Expected canDrag to be a function."),gd("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),gd("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(Dd.SOURCE,e,t);return this.store.dispatch(function(e){return{type:Qu,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){Rd(e,!0),function(e){gd("function"==typeof e.canDrop,"Expected canDrop to be a function."),gd("function"==typeof e.hover,"Expected hover to be a function."),gd("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(Dd.TARGET,e,t);return this.store.dispatch(function(e){return{type:qu,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return Gd(this.dragSources,e)||Gd(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return gd(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return gd(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return gd(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return gd(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Hd(e)===Dd.SOURCE}},{key:"isTargetId",value:function(e){return Hd(e)===Dd.TARGET}},{key:"removeSource",value:function(e){var t=this;gd(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Yu,payload:{sourceId:e}}}(e)),Nd.enqueueTask(jd.create(function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){gd(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Xu,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);gd(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){gd(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=function(e){var t=(Md++).toString();switch(e){case Dd.SOURCE:return"S".concat(t);case Dd.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}(e);return this.types.set(r,t),e===Dd.SOURCE?this.dragSources.set(r,n):e===Dd.TARGET&&this.dropTargets.set(r,n),r}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),zd=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var r=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Iu(fd,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n);this.store=r,this.monitor=new Pd(r,new Wd(r)),r.subscribe(this.handleRefCountChange)}var t;return t=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:yd(e),publishDragSource:Ad(e),hover:bd(e),drop:Sd(e),endDrag:Od(e)}}(this);return Object.keys(n).reduce(function(r,o){var i,a=n[o];return r[o]=(i=a,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=i.apply(e,r);void 0!==a&&t(a)}),r},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function $d(e,t,n,r){var o=new zd(r),i=e(o,t,n);return o.receiveBackend(i),o}var Kd=h.createContext({dragDropManager:void 0}),Qd="undefined"!=typeof window?h.useLayoutEffect:h.useEffect;function qd(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}function Yd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xd(e,t,n){var r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(t.push(i.value),2!==t.length);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}}(e)||function(e){if(e){if("string"==typeof e)return Yd(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Yd(e,2):void 0}}(e)||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.")}()}((0,h.useState)(function(){return t(e)})),o=r[0],i=r[1],a=(0,h.useCallback)(function(){var r=t(e);qd(o,r)||(i(r),n&&n())},[o,e,n]);return Qd(a,[]),[o,a]}function Zd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jd(e,t,n){var r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(t.push(i.value),2!==t.length);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}}(e)||function(e){if(e){if("string"==typeof e)return Zd(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Zd(e,2):void 0}}(e)||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.")}()}(Xd(e,t,n)),o=r[0],i=r[1];return Qd(function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),o}function ep(){var e=(0,h.useContext)(Kd).dragDropManager;return gd(null!=e,"Expected drag drop context"),e}var tp=!1,np=!1,rp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t;return(t=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){gd(!tp,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return tp=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{tp=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;gd(!np,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return np=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{np=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function op(e,t){"function"==typeof e?e(t):e.current=t}function ip(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,h.isValidElement)(t)){var r=t;return e(r,n),r}var o=t;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(o);var i=n?function(t){return e(t,n)}:e;return function(e,t){var n=e.ref;return gd("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?(0,h.cloneElement)(e,{ref:function(e){op(n,e),op(t,e)}}):(0,h.cloneElement)(e,{ref:t})}(o,i)}}(r);t[n]=function(){return o}}}),t}function ap(e){return ap="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},ap(e)}function sp(e){return null!==e&&"object"===ap(e)&&Object.prototype.hasOwnProperty.call(e,"current")}var lp=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=ip({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,sp(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,sp(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t;return(t=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!qd(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!qd(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function cp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function up(e){return up="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},up(e)}function dp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pp(e){var t=(0,h.useRef)(e);t.current=e,gd(null!=e.item,"item must be defined"),gd(null!=e.item.type,"item type must be defined");var n,r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(t.push(i.value),2!==t.length);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}}(e)||function(e){if(e){if("string"==typeof e)return dp(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?dp(e,2):void 0}}(e)||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.")}()}((n=ep(),[(0,h.useMemo)(function(){return new rp(n)},[n]),(0,h.useMemo)(function(){return new lp(n.getBackend())},[n])])),o=r[0],i=r[1];!function(e,t,n){var r=ep(),o=(0,h.useMemo)(function(){return{beginDrag:function(){var n=e.current,r=n.begin,o=n.item;if(r){var i=r(t);return gd(null==i||"object"===up(i),"dragSpec.begin() must either return an object, undefined, or null"),i||o||{}}return o||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(n,r){var o=e.current.isDragging;return o?o(t):r===n.getSourceId()},endDrag:function(){var r=e.current.end;r&&r(t.getItem(),t),n.reconnect()}}},[]);Qd(function(){var i=function(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}(e.current.item.type,o,r),a=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(t.push(i.value),2!==t.length);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}}(e)||function(e){if(e){if("string"==typeof e)return cp(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?cp(e,2):void 0}}(e)||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.")}()}(i),s=a[0],l=a[1];return t.receiveHandlerId(s),n.receiveHandlerId(s),l},[])}(t,o,i);var a=Jd(o,t.current.collect||function(){return{}},function(){return i.reconnect()}),s=(0,h.useMemo)(function(){return i.hooks.dragSource()},[i]),l=(0,h.useMemo)(function(){return i.hooks.dragPreview()},[i]);return Qd(function(){i.dragSourceOptions=t.current.options||null,i.reconnect()},[i]),Qd(function(){i.dragPreviewOptions=t.current.previewOptions||null,i.reconnect()},[i]),[a,s,l]}var hp=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=ip({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,sp(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t;return(t=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!qd(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),fp=!1,gp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t;return(t=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;gd(!fp,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return fp=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{fp=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function mp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yp(e){var t=(0,h.useRef)(e);t.current=e,gd(null!=e.accept,"accept must be defined");var n,r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(t.push(i.value),2!==t.length);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}}(e)||function(e){if(e){if("string"==typeof e)return vp(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?vp(e,2):void 0}}(e)||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.")}()}((n=ep(),[(0,h.useMemo)(function(){return new gp(n)},[n]),(0,h.useMemo)(function(){return new hp(n.getBackend())},[n])])),o=r[0],i=r[1];!function(e,t,n){var r=ep(),o=(0,h.useMemo)(function(){return{canDrop:function(){var n=e.current.canDrop;return!n||n(t.getItem(),t)},hover:function(){var n=e.current.hover;n&&n(t.getItem(),t)},drop:function(){var n=e.current.drop;if(n)return n(t.getItem(),t)}}},[t]);Qd(function(){var i=function(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}(e.current.accept,o,r),a=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(t.push(i.value),2!==t.length);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}}(e)||function(e){if(e){if("string"==typeof e)return mp(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?mp(e,2):void 0}}(e)||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.")}()}(i),s=a[0],l=a[1];return t.receiveHandlerId(s),n.receiveHandlerId(s),l},[t,n])}(t,o,i);var a=Jd(o,t.current.collect||function(){return{}},function(){return i.reconnect()}),s=(0,h.useMemo)(function(){return i.hooks.dropTarget()},[i]);return Qd(function(){i.dropTargetOptions=e.options||null,i.reconnect()},[e.options]),[a,s]}function Ap(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bp=0,_p=(0,h.memo)(function(e){var t=e.children,n=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ep(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t;return o[Cp]||(o[Cp]=function(e,t,n,r){return{dragDropManager:$d(e,t,n,r)}}(e,t,n,r)),o[Cp]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children"])),r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(t.push(i.value),2!==t.length);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}}(e)||function(e){if(e){if("string"==typeof e)return wp(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?wp(e,2):void 0}}(e)||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.")}()}(n),o=r[0],i=r[1];return h.useEffect(function(){return i&&bp++,function(){i&&0===--bp&&(Ep()[Cp]=null)}},[]),h.createElement(Kd.Provider,{value:o},t)});_p.displayName="DndProvider";var Cp=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function Ep(){return void 0!==u.g?u.g:window}function Sp(e){var t=null;return function(){return null==t&&(t=e()),t}}var Op=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t;return t=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach(function(e){return o.push(e)}),o}(this.entered.filter(function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))}),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter(function(e){return e!==n})),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),xp=Sp(function(){return/firefox/i.test(navigator.userAgent)}),Dp=Sp(function(){return Boolean(window.safari)}),Pp=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort(function(e,n){return t[e]<t[n]?-1:1});for(var a,s,l=[],c=[],u=[],d=0;d<r-1;d++)a=t[d+1]-t[d],s=n[d+1]-n[d],c.push(a),l.push(s),u.push(s/a);for(var p=[u[0]],h=0;h<c.length-1;h++){var f=u[h],g=u[h+1];if(f*g<=0)p.push(0);else{a=c[h];var m=c[h+1],v=a+m;p.push(3*v/((v+m)/f+(v+a)/g))}}p.push(u[u.length-1]);for(var y,A=[],w=[],b=0;b<p.length-1;b++){y=u[b];var _=p[b],C=1/c[b],E=_+p[b+1]-y-y;A.push((y-_-E)*C),w.push(E*C*C)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=A,this.c3s=w}var t;return t=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,l=0,c=i.length-1;l<=c;){var u=t[s=Math.floor(.5*(l+c))];if(u<e)l=s+1;else{if(!(u>e))return n[s];c=s-1}}var d=e-t[a=Math.max(0,c)],p=d*d;return n[a]+r[a]*d+o[a]*p+i[a]*d*p}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Mp(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function Tp(e){return{x:e.clientX,y:e.clientY}}var Rp,Ip="__NATIVE_FILE__",Fp="__NATIVE_URL__",kp="__NATIVE_TEXT__";function Lp(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},"");return null!=r?r:n}function Bp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Np=(Bp(Rp={},Ip,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),Bp(Rp,Fp,{exposeProperties:{urls:function(e,t){return Lp(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),Bp(Rp,kp,{exposeProperties:{text:function(e,t){return Lp(e,t,"")}},matchesTypes:["Text","text/plain"]}),Rp),jp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t;return t=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Up(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(Np).filter(function(e){return Np[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}var Vp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t;return(t=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hp(Object(n),!0).forEach(function(t){Wp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zp,$p=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){var t=r.sourceNodes.get(e);return t&&Mp(t)||null},this.endDragNativeItem=function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&r.document&&r.document.body&&document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=r.currentDragSourceNode;r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=Tp(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,i=Up(o);if(r.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var a=r.monitor.getSourceId(),s=r.sourceNodes.get(a),l=r.sourcePreviewNodes.get(a)||s;if(l){var c=r.getCurrentSourcePreviewNodeOptions(),u=function(e,t,n,r,o){var i,a,s="IMG"===(i=t).nodeName&&(xp()||!(null===(a=document.documentElement)||void 0===a?void 0:a.contains(i))),l=Mp(s?e:t),c={x:n.x-l.x,y:n.y-l.y},u=e.offsetWidth,d=e.offsetHeight,p=r.anchorX,h=r.anchorY,f=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return Dp()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(s,t,u,d),g=f.dragPreviewWidth,m=f.dragPreviewHeight,v=o.offsetX,y=o.offsetY,A=0===y||y;return{x:0===v||v?v:new Pp([0,.5,1],[c.x,c.x/u*g,c.x+g-u]).interpolate(p),y:A?y:function(){var e=new Pp([0,.5,1],[c.y,c.y/d*m,c.y+m-d]).interpolate(h);return Dp()&&s&&(e+=(window.devicePixelRatio-1)*m),e}()}}(s,l,n,{anchorX:c.anchorX,anchorY:c.anchorY},{offsetX:c.offsetX,offsetY:c.offsetY});o.setDragImage(l,u.x,u.y)}}try{null==o||o.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout(function(){return r.actions.publishDragSource()},0)}else if(i)r.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=Up(t);n&&r.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=r.dragEnterTargetIds;r.dragEnterTargetIds=[],r.monitor.isDragging()&&(r.altKeyPressed=e.altKey,xp()||r.actions.hover(t,{clientOffset:Tp(e)}),t.some(function(e){return r.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.actions.hover(t||[],{clientOffset:Tp(e)}),(t||[]).some(function(e){return r.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(e){var t;r.dropTargetIds=[],e.preventDefault(),r.isDraggingNativeItem()&&(null===(t=r.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),r.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:Tp(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new Vp(n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new Op(this.isNodeInDocument)}var t;return t=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Gp({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return Gp({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(r).some(function(t){return r[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new jp(Np[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),Kp=function(e,t){return new $p(e,t)},Qp=u(75985),qp=u.n(Qp),Yp=h.createContext(null),Xp=(Yp.Consumer,Yp.Provider),Zp=Yp,Jp=function(e,t){return Jp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Jp(e,t)};function eh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Jp(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var th,nh,rh,oh=function(){return oh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oh.apply(this,arguments)};function ih(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function ah(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function sh(e){return e.type===nh.literal}function lh(e){return e.type===nh.argument}function ch(e){return e.type===nh.number}function uh(e){return e.type===nh.date}function dh(e){return e.type===nh.time}function ph(e){return e.type===nh.select}function hh(e){return e.type===nh.plural}function fh(e){return e.type===nh.pound}function gh(e){return e.type===nh.tag}function mh(e){return!(!e||"object"!=typeof e||e.type!==rh.number)}function vh(e){return!(!e||"object"!=typeof e||e.type!==rh.dateTime)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(th||(th={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(nh||(nh={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(rh||(rh={}));var yh=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ah=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function wh(e){var t={};return e.replace(Ah,function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var bh=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function _h(e){return e.replace(/^(.*?)-/,"")}var Ch=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Eh=/^(@+)?(\+|#+)?[rs]?$/g,Sh=/(\*)(0+)|(#+)(0+)|(0+)/g,Oh=/^(0+)$/;function xh(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Eh,function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),t}function Dh(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ph(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Oh.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Mh(e){return Dh(e)||{}}function Th(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=_h(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=oh(oh(oh({},t),{notation:"scientific"}),o.options.reduce(function(e,t){return oh(oh({},e),Mh(t))},{}));continue;case"engineering":t=oh(oh(oh({},t),{notation:"engineering"}),o.options.reduce(function(e,t){return oh(oh({},e),Mh(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Sh,function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Oh.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Ch.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ch,function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var i=o.options[0];"w"===i?t=oh(oh({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=oh(oh({},t),xh(i)))}else if(Eh.test(o.stem))t=oh(oh({},t),xh(o.stem));else{var a=Dh(o.stem);a&&(t=oh(oh({},t),a));var s=Ph(o.stem);s&&(t=oh(oh({},t),s))}}return t}var Rh,Ih={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Fh(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(Ih[n||""]||Ih[r||""]||Ih["".concat(r,"-001")]||Ih["001"])[0]}var kh=new RegExp("^".concat(yh.source,"*")),Lh=new RegExp("".concat(yh.source,"*$"));function Bh(e,t){return{start:e,end:t}}var Nh=!!String.prototype.startsWith,jh=!!String.fromCodePoint,Uh=!!Object.fromEntries,Vh=!!String.prototype.codePointAt,Hh=!!String.prototype.trimStart,Gh=!!String.prototype.trimEnd,Wh=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},zh=!0;try{zh="a"===(null===(Rh=Jh("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Rh?void 0:Rh[0])}catch(RA){zh=!1}var $h,Kh=Nh?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Qh=jh?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},qh=Uh?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},Yh=Vh?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},Xh=Hh?function(e){return e.trimStart()}:function(e){return e.replace(kh,"")},Zh=Gh?function(e){return e.trimEnd()}:function(e){return e.replace(Lh,"")};function Jh(e,t){return new RegExp(e,t)}if(zh){var ef=Jh("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$h=function(e,t){var n;return ef.lastIndex=t,null!==(n=ef.exec(e)[1])&&void 0!==n?n:""}}else $h=function(e,t){for(var n=[];;){var r=Yh(e,t);if(void 0===r||of(r)||af(r))break;n.push(r),t+=r>=65536?2:1}return Qh.apply(void 0,n)};var tf=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(th.UNMATCHED_CLOSING_TAG,Bh(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&nf(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:nh.pound,location:Bh(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:nh.literal,value:"<".concat(r,"/>"),location:Bh(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!nf(this.char()))return this.error(th.INVALID_TAG,Bh(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(th.UNMATCHED_CLOSING_TAG,Bh(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:nh.tag,value:r,children:i,location:Bh(n,this.clonePosition())},err:null}:this.error(th.INVALID_TAG,Bh(a,this.clonePosition())))}return this.error(th.UNCLOSED_TAG,Bh(n,this.clonePosition()))}return this.error(th.INVALID_TAG,Bh(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&rf(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=Bh(n,this.clonePosition());return{val:{type:nh.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(nf(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Qh.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Qh(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(th.EXPECT_ARGUMENT_CLOSING_BRACE,Bh(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(th.EMPTY_ARGUMENT,Bh(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(th.MALFORMED_ARGUMENT,Bh(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(th.EXPECT_ARGUMENT_CLOSING_BRACE,Bh(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:nh.argument,value:r,location:Bh(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(th.EXPECT_ARGUMENT_CLOSING_BRACE,Bh(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(th.MALFORMED_ARGUMENT,Bh(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=$h(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Bh(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(th.EXPECT_ARGUMENT_TYPE,Bh(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(h=Zh(v.val)).length)return this.error(th.EXPECT_ARGUMENT_STYLE,Bh(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:Bh(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var u=Bh(r,this.clonePosition());if(l&&Kh(null==l?void 0:l.style,"::",0)){var d=Xh(l.style.slice(2));if("number"===a)return(v=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?v:{val:{type:nh.number,value:n,location:u,style:v.val},err:null};if(0===d.length)return this.error(th.EXPECT_DATE_TIME_SKELETON,u);var p=d;this.locale&&(p=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),l=Fh(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=l+n}else n+="J"===o?"H":o}return n}(d,this.locale));var h={type:rh.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?wh(p):{}};return{val:{type:"date"===a?nh.date:nh.time,value:n,location:u,style:h},err:null}}return{val:{type:"number"===a?nh.number:"date"===a?nh.date:nh.time,value:n,location:u,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(th.EXPECT_SELECT_ARGUMENT_OPTIONS,Bh(f,oh({},f)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(th.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Bh(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(th.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,th.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=v.val}var y,A=this.tryParsePluralOrSelectOptions(e,a,t,g);if(A.err)return A;if((y=this.tryParseArgumentClose(r)).err)return y;var w=Bh(r,this.clonePosition());return"select"===a?{val:{type:nh.select,value:n,options:qh(A.val),location:w},err:null}:{val:{type:nh.plural,value:n,options:qh(A.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:w},err:null};default:return this.error(th.INVALID_ARGUMENT_TYPE,Bh(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(th.EXPECT_ARGUMENT_CLOSING_BRACE,Bh(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(th.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Bh(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(bh).filter(function(e){return e.length>0});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(th.INVALID_NUMBER_SKELETON,t)}return{val:{type:rh.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Th(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,a=[],s=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(th.EXPECT_PLURAL_ARGUMENT_SELECTOR,th.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=Bh(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(s.has(l))return this.error("select"===t?th.DUPLICATE_SELECT_ARGUMENT_SELECTOR:th.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?th.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:th.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Bh(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var f=this.tryParseArgumentClose(p);if(f.err)return f;a.push([l,{value:h.val,location:Bh(p,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?th.EXPECT_SELECT_ARGUMENT_SELECTOR:th.EXPECT_PLURAL_ARGUMENT_SELECTOR,Bh(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(th.MISSING_OTHER_CLAUSE,Bh(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=Bh(r,this.clonePosition());return o?Wh(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Yh(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Kh(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&of(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function nf(e){return e>=97&&e<=122||e>=65&&e<=90}function rf(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function of(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function af(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function sf(e){e.forEach(function(e){if(delete e.location,ph(e)||hh(e))for(var t in e.options)delete e.options[t].location,sf(e.options[t].value);else ch(e)&&mh(e.style)||(uh(e)||dh(e))&&vh(e.style)?delete e.style.location:gh(e)&&sf(e.children)})}function lf(e,t){void 0===t&&(t={}),t=oh({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new tf(e,t).parse();if(n.err){var r=SyntaxError(th[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||sf(n.val),n.val}function cf(e,t){var n=t&&t.cache?t.cache:vf,r=t&&t.serializer?t.serializer:ff;return(t&&t.strategy?t.strategy:hf)(e,{cache:n,serializer:r})}function uf(e,t,n,r){var o=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(r)?r:n(r),i=t.get(o);return void 0===i&&(i=e.call(this,r),t.set(o,i)),i}function df(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function pf(e,t,n,r,o){return n.bind(t,e,r,o)}function hf(e,t){return pf(e,this,1===e.length?uf:df,t.cache.create(),t.serializer)}var ff=function(){return JSON.stringify(arguments)};function gf(){this.cache=Object.create(null)}gf.prototype.get=function(e){return this.cache[e]},gf.prototype.set=function(e,t){this.cache[e]=t};var mf,vf={create:function(){return new gf}},yf={variadic:function(e,t){return pf(e,this,df,t.cache.create(),t.serializer)},monadic:function(e,t){return pf(e,this,uf,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(mf||(mf={}));var Af,wf=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return eh(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),bf=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),mf.INVALID_VALUE,o)||this}return eh(t,e),t}(wf),_f=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),mf.INVALID_VALUE,r)||this}return eh(t,e),t}(wf),Cf=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),mf.MISSING_VALUE,n)||this}return eh(t,e),t}(wf);function Ef(e){return"function"==typeof e}function Sf(e,t,n,r,o,i,a){if(1===e.length&&sh(e[0]))return[{type:Af.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(sh(u))s.push({type:Af.literal,value:u.value});else if(fh(u))"number"==typeof i&&s.push({type:Af.literal,value:n.getNumberFormat(t).format(i)});else{var d=u.value;if(!o||!(d in o))throw new Cf(d,a);var p=o[d];if(lh(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?Af.literal:Af.object,value:p});else if(uh(u)){var h="string"==typeof u.style?r.date[u.style]:vh(u.style)?u.style.parsedOptions:void 0;s.push({type:Af.literal,value:n.getDateTimeFormat(t,h).format(p)})}else if(dh(u))h="string"==typeof u.style?r.time[u.style]:vh(u.style)?u.style.parsedOptions:r.time.medium,s.push({type:Af.literal,value:n.getDateTimeFormat(t,h).format(p)});else if(ch(u))(h="string"==typeof u.style?r.number[u.style]:mh(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:Af.literal,value:n.getNumberFormat(t,h).format(p)});else{if(gh(u)){var f=u.children,g=u.value,m=o[g];if(!Ef(m))throw new _f(g,"function",a);var v=m(Sf(f,t,n,r,o,i).map(function(e){return e.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(e){return{type:"string"==typeof e?Af.literal:Af.object,value:e}}))}if(ph(u)){if(!(y=u.options[p]||u.options.other))throw new bf(u.value,p,Object.keys(u.options),a);s.push.apply(s,Sf(y.value,t,n,r,o))}else if(hh(u)){var y;if(!(y=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new wf('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',mf.MISSING_INTL_API,a);var A=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));y=u.options[A]||u.options.other}if(!y)throw new bf(u.value,p,Object.keys(u.options),a);s.push.apply(s,Sf(y.value,t,n,r,o,p-(u.offset||0)))}}}}return(w=s).length<2?w:w.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===Af.literal&&t.type===Af.literal?n.value+=t.value:e.push(t),e},[]);var w}function Of(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Af||(Af={}));var xf,Df=function(){function e(t,n,r,o){var i=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=i.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===Af.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Sf(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:i.resolvedLocale.toString()}},this.getAst=function(){return i.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce(function(n,r){var o,i;return n[r]=(o=e[r],(i=t[r])?oh(oh(oh({},o||{}),i||{}),Object.keys(o).reduce(function(e,t){return e[t]=oh(oh({},o[t]),i[t]||{}),e},{})):o),n},oh({},e)):e}(e.formats,r),this.formatters=o&&o.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:cf(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ih([void 0],t,!1)))},{cache:Of(e.number),strategy:yf.variadic}),getDateTimeFormat:cf(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ih([void 0],t,!1)))},{cache:Of(e.dateTime),strategy:yf.variadic}),getPluralRules:cf(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ih([void 0],t,!1)))},{cache:Of(e.pluralRules),strategy:yf.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=lf,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(xf||(xf={}));var Pf=function(e){function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r," \n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return eh(t,e),t}(Error),Mf=function(e){function t(t,n){return e.call(this,xf.UNSUPPORTED_FORMATTER,t,n)||this}return eh(t,e),t}(Pf),Tf=function(e){function t(t,n){return e.call(this,xf.INVALID_CONFIG,t,n)||this}return eh(t,e),t}(Pf),Rf=function(e){function t(t,n){return e.call(this,xf.MISSING_DATA,t,n)||this}return eh(t,e),t}(Pf),If=function(e){function t(t,n,r){return e.call(this,xf.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(n,"\n"),r)||this}return eh(t,e),t}(Pf),Ff=function(e){function t(t,n,r,o){var i=e.call(this,"".concat(t," \nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description," \n"),n,o)||this;return i.descriptor=r,i}return eh(t,e),t}(If),kf=function(e){function t(t,n){var r=e.call(this,xf.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;return r.descriptor=t,r}return eh(t,e),t}(Pf);function Lf(e,t,n){return void 0===n&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}var Bf={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function Nf(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function jf(e,t,n,r){var o,i=e&&e[t];if(i&&(o=i[n]),o)return o;r(new Mf("No ".concat(t," format named: ").concat(n)))}function Uf(e){ah(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Vf=oh(oh({},Bf),{textComponent:h.Fragment});function Hf(){var e=h.useContext(Zp);return Uf(e),e}function Gf(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=oh({timeZone:t},e[r]),n},{})}function Wf(e,t){return Object.keys(oh(oh({},e),t)).reduce(function(n,r){return n[r]=oh(oh({},e[r]||{}),t[r]||{}),n},{})}function zf(e,t){if(!t)return e;var n=Df.formats;return oh(oh(oh({},n),e),{date:Wf(Gf(n.date,t),Gf(e.date||{},t)),time:Wf(Gf(n.time,t),Gf(e.time||{},t))})}function $f(e,t,n,r,o){var i=e.locale,a=e.formats,s=e.messages,l=e.defaultLocale,c=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,p=e.timeZone,h=e.defaultRichTextElements;void 0===n&&(n={id:""});var f=n.id,g=n.defaultMessage;ah(!!f,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var m=String(f),v=s&&Object.prototype.hasOwnProperty.call(s,m)&&s[m];if(Array.isArray(v)&&1===v.length&&v[0].type===nh.literal)return v[0].value;if(!r&&v&&"string"==typeof v&&!h)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=oh(oh({},h),r||{}),a=zf(a,p),c=zf(c,p),!v){if(!1===u&&""===v)return v;if((!g||i&&i.toLowerCase()!==l.toLowerCase())&&d(new kf(n,i)),g)try{return t.getMessageFormat(g,l,c,o).format(r)}catch(e){return d(new Ff('Error formatting default message for: "'.concat(m,'", rendering default message verbatim'),i,n,e)),"string"==typeof g?g:m}return m}try{return t.getMessageFormat(v,i,a,oh({formatters:t},o||{})).format(r)}catch(e){d(new Ff('Error formatting message: "'.concat(m,'", using ').concat(g?"default message":"id"," as fallback."),i,n,e))}if(g)try{return t.getMessageFormat(g,l,c,o).format(r)}catch(e){d(new Ff('Error formatting the default message for: "'.concat(m,'", rendering message verbatim'),i,n,e))}return"string"==typeof v?v:"string"==typeof g?g:m}var Kf=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Qf(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=a&&jf(o,"number",a,i)||{};return t(r,Lf(n,Kf,s))}function qf(e,t,n,r){void 0===r&&(r={});try{return Qf(e,t,r).format(n)}catch(t){e.onError(new Pf(xf.FORMAT_ERROR,"Error formatting number.",t))}return String(n)}function Yf(e,t,n,r){void 0===r&&(r={});try{return Qf(e,t,r).formatToParts(n)}catch(t){e.onError(new Pf(xf.FORMAT_ERROR,"Error formatting number.",t))}return[]}var Xf=["numeric","style"];function Zf(e,t,n,r,o){void 0===o&&(o={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new wf('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',mf.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=!!a&&jf(o,"relative",a,i)||{};return t(r,Lf(n,Xf,s))}(e,t,o).format(n,r)}catch(t){e.onError(new If("Error formatting relative time.",e.locale,t))}return String(n)}var Jf=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function eg(e,t,n,r){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;void 0===r&&(r={});var l=r.format,c=oh(oh({},s&&{timeZone:s}),l&&jf(i,t,l,a)),u=Lf(r,Jf,c);return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=oh(oh({},u),{hour:"numeric",minute:"numeric"})),n(o,u)}function tg(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return eg(e,"date",t,a).format(s)}catch(t){e.onError(new Pf(xf.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function ng(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return eg(e,"time",t,a).format(s)}catch(t){e.onError(new Pf(xf.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function rg(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=n[2],s=void 0===a?{}:a,l=e.timeZone,c=e.locale,u=e.onError,d=Lf(s,Jf,l?{timeZone:l}:{});try{return t(c,d).formatRange(o,i)}catch(e){u(new Pf(xf.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function og(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return eg(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Pf(xf.FORMAT_ERROR,"Error formatting date.",t))}return[]}function ig(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return eg(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Pf(xf.FORMAT_ERROR,"Error formatting time.",t))}return[]}var ag=["localeMatcher","type"];function sg(e,t,n,r){var o=e.locale,i=e.onError;void 0===r&&(r={}),Intl.PluralRules||i(new wf('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',mf.MISSING_INTL_API));var a=Lf(r,ag);try{return t(o,a).select(n)}catch(e){i(new If("Error formatting plural.",o,e))}return"other"}var lg=["localeMatcher","type","style"],cg=Date.now();function ug(e,t,n,r){void 0===r&&(r={});var o=dg(e,t,n,r).reduce(function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e},[]);return 1===o.length?o[0]:o}function dg(e,t,n,r){var o=e.locale,i=e.onError;void 0===r&&(r={}),Intl.ListFormat||i(new wf('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',mf.MISSING_INTL_API));var a=Lf(r,lg);try{var s={},l=n.map(function(e,t){if("object"==typeof e){var n=function(e){return"".concat(cg,"_").concat(e,"_").concat(cg)}(t);return s[n]=e,n}return String(e)});return t(o,a).formatToParts(l).map(function(e){return"literal"===e.type?e:oh(oh({},e),{value:s[e.value]||e.value})})}catch(e){i(new Pf(xf.FORMAT_ERROR,"Error formatting list.",e))}return n}var pg=["localeMatcher","style","type","fallback"];function hg(e,t,n,r){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new wf('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',mf.MISSING_INTL_API));var a=Lf(r,pg);try{return t(o,a).of(n)}catch(e){i(new Pf(xf.FORMAT_ERROR,"Error formatting display name.",e))}}function fg(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function gg(e){return e?Object.keys(e).reduce(function(t,n){var r,o=e[n];return t[n]=Ef(o)?(r=o,function(e){return r(h.Children.toArray(e))}):o,t},{}):e}var mg=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=gg(r),s=$f.apply(void 0,ih([e,t,n,a],o,!1));return Array.isArray(s)?h.Children.toArray(s):s},vg=function(e,t){var n=e.defaultRichTextElements,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["defaultRichTextElements"]),o=gg(n),i=function(e,t){var n=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=cf(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ih([void 0],t,!1)))},{cache:Nf(e.dateTime),strategy:yf.variadic}),i=cf(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ih([void 0],t,!1)))},{cache:Nf(e.number),strategy:yf.variadic}),a=cf(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ih([void 0],t,!1)))},{cache:Nf(e.pluralRules),strategy:yf.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:cf(function(e,t,n,r){return new Df(e,t,n,oh({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},r||{}))},{cache:Nf(e.message),strategy:yf.variadic}),getRelativeTimeFormat:cf(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,ih([void 0],e,!1)))},{cache:Nf(e.relativeTime),strategy:yf.variadic}),getPluralRules:a,getListFormat:cf(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,ih([void 0],e,!1)))},{cache:Nf(e.list),strategy:yf.variadic}),getDisplayNames:cf(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,ih([void 0],e,!1)))},{cache:Nf(e.displayNames),strategy:yf.variadic})}}(t),r=oh(oh({},Bf),e),o=r.locale,i=r.defaultLocale,a=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new Rf('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new Rf('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Tf('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),function(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(r),oh(oh({},r),{formatters:n,formatNumber:qf.bind(null,r,n.getNumberFormat),formatNumberToParts:Yf.bind(null,r,n.getNumberFormat),formatRelativeTime:Zf.bind(null,r,n.getRelativeTimeFormat),formatDate:tg.bind(null,r,n.getDateTimeFormat),formatDateToParts:og.bind(null,r,n.getDateTimeFormat),formatTime:ng.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:rg.bind(null,r,n.getDateTimeFormat),formatTimeToParts:ig.bind(null,r,n.getDateTimeFormat),formatPlural:sg.bind(null,r,n.getPluralRules),formatMessage:$f.bind(null,r,n),$t:$f.bind(null,r,n),formatList:ug.bind(null,r,n.getListFormat),formatListToParts:dg.bind(null,r,n.getListFormat),formatDisplayName:hg.bind(null,r,n.getDisplayNames)})}(oh(oh(oh({},Vf),r),{defaultRichTextElements:o}),t);return oh(oh({},i),{formatMessage:mg.bind(null,{locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o},i.formatters)})},yg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:vg(fg(t.props),t.cache),prevConfig:fg(t.props)},t}return eh(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=fg(e);return function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var a=n[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}(n,o)?null:{intl:vg(o,r),prevConfig:o}},t.prototype.render=function(){return Uf(this.state.intl),h.createElement(Xp,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Vf,t}(h.PureComponent);const Ag=yg;function wg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bg(){return bg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bg.apply(this,arguments)}function _g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}u(53685);var Cg,Eg=(0,h.createContext)(),Sg={context:Cg=Eg,withTheme:function(e){return function(t){var n=f().forwardRef(function(n,r){return f().createElement(e.Consumer,null,function(e){return f().createElement(t,bg({theme:e,ref:r},n))})});return qp()(n,t),n}}(Cg),useTheme:function(e){return function(){return f().useContext(e)}}(Cg),ThemeProvider:function(e){var t=function(t){var n,r;function o(){for(var n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return wg(_g(_g(n=t.call.apply(t,[this].concat(o))||this)),"cachedTheme",void 0),wg(_g(_g(n)),"lastOuterTheme",void 0),wg(_g(_g(n)),"lastTheme",void 0),wg(_g(_g(n)),"renderProvider",function(t){var r=n.props.children;return f().createElement(e.Provider,{value:n.getTheme(t)},r)}),n}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var i=o.prototype;return i.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var n=this.props.theme;this.cachedTheme=e?bg({},e,n):n}return this.cachedTheme},i.render=function(){return this.props.children?f().createElement(e.Consumer,null,this.renderProvider):null},o}(f().Component);return t}(Cg)},Og=Sg.ThemeProvider,xg="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};const Dg="object"===("undefined"==typeof window?"undefined":xg(window))&&"object"===("undefined"==typeof document?"undefined":xg(document))&&9===document.nodeType;function Pg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mc(r.key),r)}}function Mg(e,t,n){return t&&Pg(e.prototype,t),n&&Pg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tg(e,t){return Tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tg(e,t)}function Rg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tg(e,t)}function Ig(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Fg={}.constructor;function kg(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(kg);if(e.constructor!==Fg)return e;var t={};for(var n in e)t[n]=kg(e[n]);return t}function Lg(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=kg(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var Bg=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Ng=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Bg(e[n]," ");else t=Bg(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function jg(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Ug(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function Vg(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=jg(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var h=d[p];null!=h&&(r&&(r+=l),r+=Ug(p+":"+c+Ng(h)+";",i))}}else for(var f in a){var g=a[f];null!=g&&(r&&(r+=l),r+=Ug(f+":"+c+Ng(g)+";",i))}for(var m in t){var v=t[m];null!=v&&"fallbacks"!==m&&(r&&(r+=l),r+=Ug(m+":"+c+Ng(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Ug(""+e+c+"{"+r,--i)+Ug("}",i)):r}var Hg=/([[\].#*$><+~=|^:(),"'`\s])/g,Gg="undefined"!=typeof CSS&&CSS.escape,Wg=function(e){return Gg?Gg(e):e.replace(Hg,"\\$1")},zg=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),$g=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Ig(Ig(o)),s),o.selectorText="."+Wg(o.id)),o}Rg(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Ng(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?Sc({},e,{allowEmpty:!0}):e;return Vg(this.selectorText,this.style,n)},Mg(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(zg),Kg={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new $g(e,t,n)}},Qg={indent:1,children:!0},qg=/@([\w-]+)/,Yg=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(qg);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new wm(Sc({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Qg);var t=jg(e).linebreak;if(null==e.indent&&(e.indent=Qg.indent),null==e.children&&(e.children=Qg.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Xg=/@container|@media|@supports\s+/,Zg={onCreateRule:function(e,t,n){return Xg.test(e)?new Yg(e,t,n):null}},Jg={indent:1,children:!0},em=/@keyframes\s+([\w-]+)/,tm=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(em);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:Wg(a(this,i)),this.rules=new wm(Sc({},n,{parent:this})),t)this.rules.add(s,t[s],Sc({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Jg);var t=jg(e).linebreak;if(null==e.indent&&(e.indent=Jg.indent),null==e.children&&(e.children=Jg.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),nm=/@keyframes\s+/,rm=/\$([\w-]+)/g,om=function(e,t){return"string"==typeof e?e.replace(rm,function(e,n){return n in t?t[n]:e}):e},im=function(e,t,n){var r=e[t],o=om(r,n);o!==r&&(e[t]=o)},am={onCreateRule:function(e,t,n){return"string"==typeof e&&nm.test(e)?new tm(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&im(e,"animation-name",n.keyframes),"animation"in e&&im(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return om(e,r.keyframes);default:return e}}},sm=function(e){function t(){return e.apply(this,arguments)||this}return Rg(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?Sc({},e,{allowEmpty:!0}):e;return Vg(this.key,this.style,n)},t}(zg),lm={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new sm(e,t,n):null}},cm=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=jg(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Vg(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Vg(this.at,this.style,e)},e}(),um=/@font-face/,dm={onCreateRule:function(e,t,n){return um.test(e)?new cm(e,t,n):null}},pm=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Vg(this.key,this.style,e)},e}(),hm={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new pm(e,t,n):null}},fm=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),gm={"@charset":!0,"@import":!0,"@namespace":!0},mm={onCreateRule:function(e,t,n){return e in gm?new fm(e,t,n):null}},vm=[Kg,Zg,am,lm,dm,hm,mm],ym={process:!0},Am={force:!0,process:!0},wm=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=Sc({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Wg(this.classes[d]));var p=Lg(d,t,u);if(!p)return null;this.register(p);var h=void 0===u.index?this.index.length:u.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=Sc({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof $g?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof tm&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof $g?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof tm&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=ym);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Am)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,Am)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=jg(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),bm=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Sc({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new wm(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),_m=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Cm=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Cc(t,["attached"]),o=jg(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},Mg(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Em=new Cm,Sm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Om="2f1acc6c3a606b082e5eef5e54414ffb";null==Sm[Om]&&(Sm[Om]=0);var xm=Sm[Om]++,Dm=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+xm+o+t:i+n.key+"-"+xm+(o?"-"+o:"")+"-"+t}},Pm=function(e){var t;return function(){return t||(t=e()),t}},Mm=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Tm=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Ng(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Rm=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Im=function(e,t){return e.selectorText=t,e.selectorText===t},Fm=Pm(function(){return document.querySelector("head")}),km=Pm(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Lm=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Bm=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Nm=function(){function e(e){this.getPropertyValue=Mm,this.setProperty=Tm,this.removeProperty=Rm,this.setSelector=Im,this.hasInsertedRules=!1,this.cssRules=[],e&&Em.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=km();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=Em.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=Fm(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Fm().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=Bm(n,t);if(!1===(o=Lm(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=Bm(n,t),l=Lm(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof bm&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),jm=0,Um=function(){function e(e){this.id=jm++,this.version="10.10.0",this.plugins=new _m,this.options={id:{minify:!1},createGenerateId:Dm,Renderer:Dg?Nm:null,plugins:[]},this.generateId=Dm({minify:!1});for(var t=0;t<vm.length;t++)this.plugins.use(vm[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Sc({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Em.index?0:Em.index+1);var r=new bm(e,Sc({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Em.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Sc({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=Lg(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),Vm=function(e){return new Um(e)},Hm=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},Mg(e,[{key:"size",get:function(){return this.length}}]),e}(),Gm="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Wm(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Wm(r);i&&(t||(t={}),t[n]=i)}}return t}Vm();var zm=Date.now(),$m="fnValues"+zm,Km="fnStyle"+ ++zm;const Qm=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Lg(e,{},n);return r[Km]=t,r},onProcessStyle:function(e,t){if($m in t||Km in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[$m]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Km];i&&(o.style=i(e)||{});var a=o[$m];if(a)for(var s in a)o.prop(s,a[s](e),r)}}};var qm=u(71158),Ym=function(e){return e&&e[qm.A]&&e===e[qm.A]()},Xm=/;\n/,Zm=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},n=e.split(Xm),r=0;r<n.length;r++){var o=(n[r]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var a=o.substr(0,i).trim(),s=o.substr(i+1).trim();t[a]=s}}}return t}(e.style))},Jm="@global",ev=function(){function e(e,t,n){for(var r in this.type="global",this.at=Jm,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new wm(Sc({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),tv=function(){function e(e,t,n){this.type="global",this.at=Jm,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,Sc({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),nv=/\s*,\s*/g;function rv(e,t){for(var n=e.split(nv),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}const ov=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Jm)return new ev(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new tv(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Jm]:null;if(o){for(var i in o)t.addRule(i,o[i],Sc({},n,{selector:rv(i,e.selector)}));delete r[Jm]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Jm){var i=rv(o.substr(7),e.selector);t.addRule(i,r[o],Sc({},n,{selector:i})),delete r[o]}}(e,t))}}};var iv=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},av="extendCurrValue"+Date.now();function sv(e,t,n,r){return void 0===r&&(r={}),function(e,t,n,r){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var o=0;o<e.extend.length;o++){var i=e.extend[o];sv("string"==typeof i?Sc({},e,{extend:i}):e.extend[o],t,n,r)}else for(var a in e.extend)"extend"!==a?iv(e.extend[a])?(a in r||(r[a]={}),sv(e.extend[a],t,n,r[a])):r[a]=e.extend[a]:sv(e.extend.extend,t,n,r);else{if(!n)return;var s=n.getRule(e.extend);if(!s)return;if(s===t)return;var l=s.options.parent;l&&sv(l.rules.raw[e.extend],t,n,r)}}(e,t,n,r),function(e,t,n,r){for(var o in e)"extend"!==o&&(iv(r[o])&&iv(e[o])?sv(e[o],t,n,r[o]):iv(e[o])?r[o]=sv(e[o],t,n):r[o]=e[o])}(e,t,n,r),r}const lv=function(){return{onProcessStyle:function(e,t,n){return"extend"in e?sv(e,t,n):e},onChangeValue:function(e,t,n){if("extend"!==t)return e;if(null==e||!1===e){for(var r in n[av])n.prop(r,null);return n[av]=null,null}if("object"==typeof e){for(var o in e)n.prop(o,e[o]);n[av]=e}return null}}};var cv=/\s*,\s*/g,uv=/&/g,dv=/\$([\w-]+)/g;const pv=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(cv),r=e.split(cv),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(uv,a):a+" "+l}return o}function n(e,t,n){if(n)return Sc({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Sc({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=n(l,c,a),d){var h=t(u,l.selector);s||(s=e(c,i)),h=h.replace(dv,s);var f=l.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],Sc({},a,{selector:h})):c.addRule(f,r[u],Sc({},a,{selector:h}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}};function hv(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(!hv(e,t[n]))return!1;return!0}if(t.indexOf(" ")>-1)return hv(e,t.split(" "));var r=e.options.parent;if("$"===t[0]){var o=r.getRule(t.substr(1));return!!o&&o!==e&&(r.classes[e.key]+=" "+r.classes[o.key],!0)}return r.classes[e.key]+=" "+t,!0}const fv=function(){return{onProcessStyle:function(e,t){return"composes"in e?(hv(t,e.composes),delete e.composes,e):e}}};var gv=/[A-Z]/g,mv=/^ms-/,vv={};function yv(e){return"-"+e.toLowerCase()}const Av=function(e){if(vv.hasOwnProperty(e))return vv[e];var t=e.replace(gv,yv);return vv[e]=mv.test(t)?"-"+t:t};function wv(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:Av(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(wv):t.fallbacks=wv(e.fallbacks)),t}const bv=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=wv(e[t]);return e}return wv(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Av(t);return t===r?e:(n.prop(r,e),null)}}};var _v=Gm&&CSS?CSS.px:"px",Cv=Gm&&CSS?CSS.ms:"ms",Ev=Gm&&CSS?CSS.percent:"%";function Sv(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Ov=Sv({"animation-delay":Cv,"animation-duration":Cv,"background-position":_v,"background-position-x":_v,"background-position-y":_v,"background-size":_v,border:_v,"border-bottom":_v,"border-bottom-left-radius":_v,"border-bottom-right-radius":_v,"border-bottom-width":_v,"border-left":_v,"border-left-width":_v,"border-radius":_v,"border-right":_v,"border-right-width":_v,"border-top":_v,"border-top-left-radius":_v,"border-top-right-radius":_v,"border-top-width":_v,"border-width":_v,"border-block":_v,"border-block-end":_v,"border-block-end-width":_v,"border-block-start":_v,"border-block-start-width":_v,"border-block-width":_v,"border-inline":_v,"border-inline-end":_v,"border-inline-end-width":_v,"border-inline-start":_v,"border-inline-start-width":_v,"border-inline-width":_v,"border-start-start-radius":_v,"border-start-end-radius":_v,"border-end-start-radius":_v,"border-end-end-radius":_v,margin:_v,"margin-bottom":_v,"margin-left":_v,"margin-right":_v,"margin-top":_v,"margin-block":_v,"margin-block-end":_v,"margin-block-start":_v,"margin-inline":_v,"margin-inline-end":_v,"margin-inline-start":_v,padding:_v,"padding-bottom":_v,"padding-left":_v,"padding-right":_v,"padding-top":_v,"padding-block":_v,"padding-block-end":_v,"padding-block-start":_v,"padding-inline":_v,"padding-inline-end":_v,"padding-inline-start":_v,"mask-position-x":_v,"mask-position-y":_v,"mask-size":_v,height:_v,width:_v,"min-height":_v,"max-height":_v,"min-width":_v,"max-width":_v,bottom:_v,left:_v,top:_v,right:_v,inset:_v,"inset-block":_v,"inset-block-end":_v,"inset-block-start":_v,"inset-inline":_v,"inset-inline-end":_v,"inset-inline-start":_v,"box-shadow":_v,"text-shadow":_v,"column-gap":_v,"column-rule":_v,"column-rule-width":_v,"column-width":_v,"font-size":_v,"font-size-delta":_v,"letter-spacing":_v,"text-decoration-thickness":_v,"text-indent":_v,"text-stroke":_v,"text-stroke-width":_v,"word-spacing":_v,motion:_v,"motion-offset":_v,outline:_v,"outline-offset":_v,"outline-width":_v,perspective:_v,"perspective-origin-x":Ev,"perspective-origin-y":Ev,"transform-origin":Ev,"transform-origin-x":Ev,"transform-origin-y":Ev,"transform-origin-z":Ev,"transition-delay":Cv,"transition-duration":Cv,"vertical-align":_v,"flex-basis":_v,"shape-margin":_v,size:_v,gap:_v,grid:_v,"grid-gap":_v,"row-gap":_v,"grid-row-gap":_v,"grid-column-gap":_v,"grid-template-rows":_v,"grid-template-columns":_v,"grid-auto-rows":_v,"grid-auto-columns":_v,"box-shadow-x":_v,"box-shadow-y":_v,"box-shadow-blur":_v,"box-shadow-spread":_v,"font-line-height":_v,"text-shadow-x":_v,"text-shadow-y":_v,"text-shadow-blur":_v});function xv(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=xv(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=xv(o,t[o],n);else for(var i in t)t[i]=xv(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Ov[e];return!a||0===t&&a===_v?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}const Dv=function(e){void 0===e&&(e={});var t=Sv(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=xv(r,e[r],t);return e},onChangeValue:function(e,n){return xv(n,e,t)}}};var Pv={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},Mv={position:!0,size:!0},Tv={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},Rv={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function Iv(e,t,n,r){return null==n[t]?e:0===e.length?[]:Array.isArray(e[0])?Iv(e[0],t,n,r):"object"==typeof e[0]?function(e,t,n){return e.map(function(e){return Fv(e,t,n,!1,!0)})}(e,t,r):[e]}function Fv(e,t,n,r,o){if(!Tv[t]&&!Rv[t])return[];var i=[];if(Rv[t]&&(e=function(e,t,n,r){for(var o in n){var i=n[o];if(void 0!==e[o]&&(r||!t.prop(i))){var a,s=kv((a={},a[i]=e[o],a),t)[i];r?t.style.fallbacks[i]=s:t.style[i]=s}delete e[o]}return e}(e,n,Rv[t],r)),Object.keys(e).length)for(var a in Tv[t])e[a]?Array.isArray(e[a])?i.push(null===Mv[a]?e[a]:e[a].join(" ")):i.push(e[a]):null!=Tv[t][a]&&i.push(Tv[t][a]);return!i.length||o?i:[i]}function kv(e,t,n){for(var r in e){var o=e[r];if(Array.isArray(o)){if(!Array.isArray(o[0])){if("fallbacks"===r){for(var i=0;i<e.fallbacks.length;i++)e.fallbacks[i]=kv(e.fallbacks[i],t,!0);continue}e[r]=Iv(o,r,Pv,t),e[r].length||delete e[r]}}else if("object"==typeof o){if("fallbacks"===r){e.fallbacks=kv(e.fallbacks,t,!0);continue}e[r]=Fv(o,r,t,n),e[r].length||delete e[r]}else""===e[r]&&delete e[r]}return e}function Lv(e){return function(e){if(Array.isArray(e))return eu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tu(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.")}()}var Bv="",Nv="",jv="",Uv="",Vv=Dg&&"ontouchstart"in document.documentElement;if(Dg){var Hv={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Gv=document.createElement("p").style;for(var Wv in Hv)if(Wv+"Transform"in Gv){Bv=Wv,Nv=Hv[Wv];break}"Webkit"===Bv&&"msHyphens"in Gv&&(Bv="ms",Nv=Hv.ms,Uv="edge"),"Webkit"===Bv&&"-apple-trailing-word"in Gv&&(jv="apple")}var zv=Bv,$v=Nv,Kv=jv,Qv=Uv,qv=Vv,Yv={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===zv?"-webkit-"+e:$v+e)}},Xv={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===zv?$v+"print-"+e:e)}},Zv=/[-\s]+(.)?/g;function Jv(e,t){return t?t.toUpperCase():""}function ey(e){return e.replace(Zv,Jv)}function ty(e){return ey("-"+e)}var ny,ry={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===zv){var n="mask-image";if(ey(n)in t)return e;if(zv+ty(n)in t)return $v+e}return e}},oy={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Kv||qv?e:$v+e)}},iy={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:$v+e)}},ay={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:$v+e)}},sy={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===zv||"ms"===zv&&"edge"!==Qv?$v+e:e)}},ly={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===zv||"ms"===zv||"apple"===Kv?$v+e:e)}},cy={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===zv?"WebkitColumn"+ty(e)in t&&$v+"column-"+e:"Moz"===zv&&"page"+ty(e)in t&&"page-"+e)}},uy={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===zv)return e;var n=e.replace("-inline","");return zv+ty(n)in t&&$v+n}},dy={supportedProperty:function(e,t){return ey(e)in t&&e}},py={supportedProperty:function(e,t){var n=ty(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:zv+n in t?$v+e:"Webkit"!==zv&&"Webkit"+n in t&&"-webkit-"+e}},hy={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===zv?""+$v+e:e)}},fy={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===zv?$v+"scroll-chaining":e)}},gy={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},my={supportedProperty:function(e,t){var n=gy[e];return!!n&&zv+ty(n)in t&&$v+n}},vy={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},yy=Object.keys(vy),Ay=function(e){return $v+e},wy={supportedProperty:function(e,t,n){var r=n.multiple;if(yy.indexOf(e)>-1){var o=vy[e];if(!Array.isArray(o))return zv+ty(o)in t&&$v+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(zv+ty(o[0])in t))return!1;return o.map(Ay)}return!1}},by=[Yv,Xv,ry,oy,iy,ay,sy,ly,cy,uy,dy,py,hy,fy,my,wy],_y=by.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Cy=by.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Lv(t.noPrefill)),e},[]),Ey={};if(Dg){ny=document.createElement("p");var Sy=window.getComputedStyle(document.documentElement,"");for(var Oy in Sy)isNaN(Oy)||(Ey[Sy[Oy]]=Sy[Oy]);Cy.forEach(function(e){return delete Ey[e]})}function xy(e,t){if(void 0===t&&(t={}),!ny)return e;if(null!=Ey[e])return Ey[e];"transition"!==e&&"transform"!==e||(t[e]=e in ny.style);for(var n=0;n<_y.length&&(Ey[e]=_y[n](e,ny.style,t),!Ey[e]);n++);try{ny.style[e]=""}catch(e){return!1}return Ey[e]}var Dy,Py={},My={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ty=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ry(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?xy(t):", "+xy(n))||t||n}function Iy(e,t){var n=t;if(!Dy||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Py[r])return Py[r];try{Dy.style[e]=n}catch(e){return Py[r]=!1,!1}if(My[e])n=n.replace(Ty,Ry);else if(""===Dy.style[e]&&("-ms-flex"===(n=$v+n)&&(Dy.style[e]="-ms-flexbox"),Dy.style[e]=n,""===Dy.style[e]))return Py[r]=!1,!1;return Dy.style[e]="",Py[r]=n,Py[r]}Dg&&(Dy=document.createElement("p"));const Fy=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=xy(n);i&&i!==n&&(o=!0);var a=!1,s=Iy(i,Ng(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===zv?e:"@"+$v+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Iy(t,Ng(e))||e}}},ky=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}},Ly=function(e){return void 0===e&&(e={}),{plugins:[Qm(),(t=e.observable,{onCreateRule:function(e,n,r){if(!Ym(n))return null;var o=n,i=Lg(e,{},r);return o.subscribe(function(e){for(var n in e)i.prop(n,e[n],t)}),i},onProcessRule:function(e){if(!e||"style"===e.type){var n=e,r=n.style,o=function(e){var o=r[e];if(!Ym(o))return"continue";delete r[e],o.subscribe({next:function(r){n.prop(e,r,t)}})};for(var i in r)o(i)}}}),{onProcessRule:Zm},ov(),lv(),pv(),fv(),bv(),Dv(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var n=0;n<e.length;n++)e[n]=kv(e[n],t);return e}return kv(e,t)}},Fy(),ky()]};var t};var By=Vm(Ly()),Ny=function(e){void 0===e&&(e=By);var t,n=new Map,r=0,o=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function i(){var e=arguments,t=JSON.stringify(e),i=n.get(t);if(i)return i.className;var a=[];for(var s in e){var l=e[s];if(Array.isArray(l))for(var c=0;c<l.length;c++)a.push(l[c]);else a.push(l)}for(var u={},d=[],p=0;p<a.length;p++){var h=a[p];if(h){var f=h;if("string"==typeof h){var g=n.get(h);g&&(g.labels.length&&d.push.apply(d,g.labels),f=g.style)}f.label&&-1===d.indexOf(f.label)&&d.push(f.label),Object.assign(u,f)}}delete u.label;var m=(0===d.length?"css":d.join("-"))+"-"+r++;o().addRule(m,u);var v=o().classes[m],y={style:u,labels:d,className:v};return n.set(t,y),n.set(v,y),v}return i.getSheet=o,i}();const jy=Ny;var Uy=Number.MIN_SAFE_INTEGER||-1e9,Vy=(0,h.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!Dg}),Hy=new Map,Gy=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new Hm),n[t];var r=Hy.get(t);return r||(r=new Hm,Hy.set(t,r)),r},Wy=function(e){var t=e.sheet,n=e.context,r=e.index,o=e.theme;t&&(Gy(n,r).manage(o),n.registry&&n.registry.add(t))},zy=Vm(Ly()),$y=new WeakMap,Ky=function(e){return $y.get(e)},Qy=function(e,t){var n=Ky(e);if(n){var r={};for(var o in n.dynamicStyles)for(var i=e.rules.index.length,a=e.addRule(o,n.dynamicStyles[o]),s=i;s<e.rules.index.length;s++){var l=e.rules.index[s];e.updateOne(l,t),r[a===l?o:l.key]=l}return r}};function qy(e){return e?h.useEffect:f().useInsertionEffect||h.useLayoutEffect}var Yy={},Xy=function(e,t){void 0===t&&(t={});var n=t,r=n.index,o=void 0===r?Uy++:r,i=n.theming,a=n.name,s=Cc(n,["index","theming","name"]),l=i&&i.context||Eg,c={};return function(t){var n=(0,h.useRef)(!0),r=(0,h.useContext)(Vy),i=function(t){return"function"==typeof e&&(t||(0,h.useContext)(l))||Yy}(t&&t.theme),u=(0,h.useMemo)(function(){var n=function(e){if(!e.context.disableStylesGeneration){var t=Gy(e.context,e.index),n=t.get(e.theme);if(n)return n;var r=e.context.jss||zy,o=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),i=Wm(o),a=r.createStyleSheet(o,function(e,t){var n;e.context.id&&null!=e.context.id.minify&&(n=e.context.id.minify);var r=e.context.classNamePrefix||"";e.name&&!n&&(r+=e.name.replace(/\s/g,"-")+"-");var o="";return e.name&&(o=e.name+", "),o+="function"==typeof e.styles?"Themed":"Unthemed",Sc({},e.sheetOptions,{index:e.index,meta:o,classNamePrefix:r,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==i));return function(e,t){$y.set(e,t)}(a,{dynamicStyles:i,styles:o}),t.add(e.theme,a),a}}({context:r,styles:e,name:a,theme:i,index:o,sheetOptions:s});return n&&r.isSSR&&Wy({index:o,context:r,sheet:n,theme:i}),[n,n?Qy(n,t):null]},[r,i]),d=u[0],p=u[1];qy(r.isSSR)(function(){d&&p&&!n.current&&function(e,t,n){for(var r in n)t.updateOne(n[r],e)}(t,d,p)},[t]),qy(r.isSSR)(function(){return d&&Wy({index:o,context:r,sheet:d,theme:i}),function(){d&&(function(e){e.sheet&&Gy(e.context,e.index).unmanage(e.theme)}({index:o,context:r,sheet:d,theme:i}),p&&function(e,t){for(var n in t)e.deleteRule(t[n])}(d,p))}},[d]);var f=(0,h.useMemo)(function(){return d&&p?function(e,t){if(!t)return e.classes;var n=Ky(e);if(!n)return e.classes;var r={};for(var o in n.styles)r[o]=e.classes[o],o in t&&(r[o]+=" "+e.classes[t[o].key]);return r}(d,p):c},[d,p]);return(0,h.useDebugValue)(f),(0,h.useDebugValue)(i===Yy?"No theme":i),(0,h.useEffect)(function(){n.current=!1}),f}};Symbol("react-jss-styled"),function(e){void 0===e&&(e=jy)}();var Zy=f().createContext(null),Jy=function(e){e()},eA={notify:function(){},get:function(){return[]}};function tA(e,t){var n,r=eA;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=Jy,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=eA)},getListeners:function(){return r}};return a}var nA="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?h.useLayoutEffect:h.useEffect;const rA=function(e){var t=e.store,n=e.context,r=e.children,o=(0,h.useMemo)(function(){var e=tA(t);return{store:t,subscription:e}},[t]),i=(0,h.useMemo)(function(){return t.getState()},[t]);nA(function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[o,i]);var a=n||Zy;return f().createElement(a.Provider,{value:o},r)};function oA(){return(0,h.useContext)(Zy)}function iA(e){void 0===e&&(e=Zy);var t=e===Zy?oA:function(){return(0,h.useContext)(e)};return function(){return t().store}}u(15994);var aA,sA=iA(),lA=function(e){void 0===e&&(e=Zy);var t=e===Zy?sA:iA(e);return function(){return t().dispatch}}(),cA=function(e,t){return e===t},uA=function(e){void 0===e&&(e=Zy);var t=e===Zy?oA:function(){return(0,h.useContext)(e)};return function(e,n){void 0===n&&(n=cA);var r=t(),o=function(e,t,n,r){var o,i=(0,h.useReducer)(function(e){return e+1},0),a=i[1],s=(0,h.useMemo)(function(){return tA(n,r)},[n,r]),l=(0,h.useRef)(),c=(0,h.useRef)(),u=(0,h.useRef)(),d=(0,h.useRef)(),p=n.getState();try{if(e!==c.current||p!==u.current||l.current){var f=e(p);o=void 0!==d.current&&t(f,d.current)?d.current:f}else o=d.current}catch(e){throw l.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),e}return nA(function(){c.current=e,u.current=p,d.current=o,l.current=void 0}),nA(function(){function e(){try{var e=n.getState();if(e===u.current)return;var r=c.current(e);if(t(r,d.current))return;d.current=r,u.current=e}catch(e){l.current=e}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}},[n,s]),o}(e,n,r.store,r.subscription);return(0,h.useDebugValue)(o),o}}();aA=Ls.unstable_batchedUpdates,Jy=aA;var dA=u(58653),pA=u.n(dA),hA="NOT_FOUND",fA=function(e,t){return e===t},gA=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,a=0,s={memoizeOptions:void 0},l=r.pop();if("object"==typeof l&&(s=l,l=r.pop()),"function"!=typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=s.memoizeOptions,u=void 0===c?n:c,d=Array.isArray(u)?u:[u],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),h=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(d)),f=e(function(){for(var e=[],t=p.length,n=0;n<t;n++)e.push(p[n].apply(null,arguments));return i=h.apply(null,e)});return Object.assign(f,{resultFunc:l,memoizedResultFunc:h,dependencies:p,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),f}}(function(e,t){var n="object"==typeof t?t:{equalityCheck:t},r=n.equalityCheck,o=void 0===r?fA:r,i=n.maxSize,a=void 0===i?1:i,s=n.resultEqualityCheck,l=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(o),c=1===a?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:hA},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(l):function(e,t){var n=[];function r(e){var r=n.findIndex(function(n){return t(e,n.key)});if(r>-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return hA}return{get:r,put:function(t,o){r(t)===hA&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(a,l);function u(){var t=c.get(arguments);if(t===hA){if(t=e.apply(null,arguments),s){var n=c.getEntries().find(function(e){return s(e.value,t)});n&&(t=n.value)}c.put(arguments,t)}return t}return u.clearCache=function(){return c.clear()},u});function mA(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vA(e){return!!e&&!!e[nw]}function yA(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===rw}(e)||Array.isArray(e)||!!e[tw]||!!(null===(t=e.constructor)||void 0===t?void 0:t[tw])||EA(e)||SA(e))}function AA(e,t,n){void 0===n&&(n=!1),0===wA(e)?(n?Object.keys:ow)(e).forEach(function(r){n&&"symbol"==typeof r||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function wA(e){var t=e[nw];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:EA(e)?2:SA(e)?3:0}function bA(e,t){return 2===wA(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _A(e,t,n){var r=wA(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function CA(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function EA(e){return XA&&e instanceof Map}function SA(e){return ZA&&e instanceof Set}function OA(e){return e.o||e.t}function xA(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=iw(e);delete t[nw];for(var n=ow(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function DA(e,t){return void 0===t&&(t=!1),MA(e)||vA(e)||!yA(e)||(wA(e)>1&&(e.set=e.add=e.clear=e.delete=PA),Object.freeze(e),t&&AA(e,function(e,t){return DA(t,!0)},!0)),e}function PA(){mA(2)}function MA(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function TA(e){var t=aw[e];return t||mA(18,e),t}function RA(){return qA}function IA(e,t){t&&(TA("Patches"),e.u=[],e.s=[],e.v=t)}function FA(e){kA(e),e.p.forEach(BA),e.p=null}function kA(e){e===qA&&(qA=e.l)}function LA(e){return qA={p:[],l:qA,h:e,m:!0,_:0}}function BA(e){var t=e[nw];0===t.i||1===t.i?t.j():t.g=!0}function NA(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||TA("ES5").S(t,e,r),r?(n[nw].P&&(FA(t),mA(4)),yA(e)&&(e=jA(t,e),t.l||VA(t,e)),t.u&&TA("Patches").M(n[nw].t,e,t.u,t.s)):e=jA(t,n,[]),FA(t),t.u&&t.v(t.u,t.s),e!==ew?e:void 0}function jA(e,t,n){if(MA(t))return t;var r=t[nw];if(!r)return AA(t,function(o,i){return UA(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return VA(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=xA(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),AA(i,function(t,i){return UA(e,r,o,t,i,n,a)}),VA(e,o,!1),n&&e.u&&TA("Patches").N(r,n,e.u,e.s)}return r.o}function UA(e,t,n,r,o,i,a){if(vA(o)){var s=jA(e,o,i&&t&&3!==t.i&&!bA(t.R,r)?i.concat(r):void 0);if(_A(n,r,s),!vA(s))return;e.m=!1}else a&&n.add(o);if(yA(o)&&!MA(o)){if(!e.h.D&&e._<1)return;jA(e,o),t&&t.A.l||VA(e,o)}}function VA(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&DA(t,n)}function HA(e,t){var n=e[nw];return(n?OA(n):e)[t]}function GA(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function WA(e){e.P||(e.P=!0,e.l&&WA(e.l))}function zA(e){e.o||(e.o=xA(e.t))}function $A(e,t,n){var r=EA(t)?TA("MapSet").F(t,n):SA(t)?TA("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:RA(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=sw;n&&(o=[r],i=lw);var a=Proxy.revocable(o,i),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):TA("ES5").J(t,n);return(n?n.A:RA()).p.push(r),r}function KA(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return xA(e)}var QA,qA,YA="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),XA="undefined"!=typeof Map,ZA="undefined"!=typeof Set,JA="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ew=YA?Symbol.for("immer-nothing"):((QA={})["immer-nothing"]=!0,QA),tw=YA?Symbol.for("immer-draftable"):"__$immer_draftable",nw=YA?Symbol.for("immer-state"):"__$immer_state",rw=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),ow="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,iw=Object.getOwnPropertyDescriptors||function(e){var t={};return ow(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},aw={},sw={get:function(e,t){if(t===nw)return e;var n=OA(e);if(!bA(n,t))return function(e,t,n){var r,o=GA(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!yA(r)?r:r===HA(e.t,t)?(zA(e),e.o[t]=$A(e.A.h,r,e)):r},has:function(e,t){return t in OA(e)},ownKeys:function(e){return Reflect.ownKeys(OA(e))},set:function(e,t,n){var r=GA(OA(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=HA(OA(e),t),i=null==o?void 0:o[nw];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(CA(n,o)&&(void 0!==n||bA(e.t,t)))return!0;zA(e),WA(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==HA(e.t,t)||t in e.t?(e.R[t]=!1,zA(e),WA(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=OA(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){mA(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){mA(12)}},lw={};AA(sw,function(e,t){lw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),lw.deleteProperty=function(e,t){return lw.set.call(this,e,t,void 0)},lw.set=function(e,t,n){return sw.set.call(this,e[0],t,n,e[0])};var cw=function(){function e(e){var t=this;this.O=JA,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(e,function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))})}}var a;if("function"!=typeof n&&mA(6),void 0!==r&&"function"!=typeof r&&mA(7),yA(e)){var s=LA(t),l=$A(t,e,void 0),c=!0;try{a=n(l),c=!1}finally{c?FA(s):kA(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(e){return IA(s,r),NA(e,s)},function(e){throw FA(s),e}):(IA(s,r),NA(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===ew&&(a=void 0),t.D&&DA(a,!0),r){var u=[],d=[];TA("Patches").M(e,a,u,d),r(u,d)}return a}mA(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,function(t){return e.apply(void 0,[t].concat(o))})};var r,o,i=t.produce(e,n,function(e,t){r=e,o=t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return[e,r,o]}):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){yA(e)||mA(8),vA(e)&&(e=function(e){return vA(e)||mA(22,e),function e(t){if(!yA(t))return t;var n,r=t[nw],o=wA(t);if(r){if(!r.P&&(r.i<4||!TA("ES5").K(r)))return r.t;r.I=!0,n=KA(t,o),r.I=!1}else n=KA(t,o);return AA(n,function(t,o){r&&function(e,t){return 2===wA(e)?e.get(t):e[t]}(r.t,t)===o||_A(n,t,e(o))}),3===o?new Set(n):n}(e)}(e));var t=LA(this),n=$A(this,e,void 0);return n[nw].C=!0,kA(t),n},t.finishDraft=function(e,t){var n=(e&&e[nw]).A;return IA(n,t),NA(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!JA&&mA(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=TA("Patches").$;return vA(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}(),uw=new cw,dw=uw.produce;uw.produceWithPatches.bind(uw),uw.setAutoFreeze.bind(uw),uw.setUseProxies.bind(uw),uw.applyPatches.bind(uw),uw.createDraft.bind(uw),uw.finishDraft.bind(uw);const pw=dw;function hw(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var fw=hw();fw.withExtraArgument=hw;const gw=fw;var mw=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vw=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},yw=Object.defineProperty,Aw=Object.defineProperties,ww=Object.getOwnPropertyDescriptors,bw=Object.getOwnPropertySymbols,_w=Object.prototype.hasOwnProperty,Cw=Object.prototype.propertyIsEnumerable,Ew=function(e,t,n){return t in e?yw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Sw=function(e,t){for(var n in t||(t={}))_w.call(t,n)&&Ew(e,n,t[n]);if(bw)for(var r=0,o=bw(t);r<o.length;r++)n=o[r],Cw.call(t,n)&&Ew(e,n,t[n]);return e},Ow=function(e,t){return Aw(e,ww(t))},xw="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Fu:Fu.apply(null,arguments)};function Dw(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return Sw(Sw({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Pw=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return mw(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,vw([void 0],e[0].concat(this)))):new(t.bind.apply(t,vw([void 0],e.concat(this))))},t}(Array),Mw=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return mw(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,vw([void 0],e[0].concat(this)))):new(t.bind.apply(t,vw([void 0],e.concat(this))))},t}(Array);function Tw(e){return yA(e)?pw(e,function(){}):e}function Rw(e){var t,n=function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,e.actionCreatorCheck,new Pw);return n&&(function(e){return"boolean"==typeof e}(n)?r.push(gw):r.push(gw.withExtraArgument(n.extraArgument))),r}(e)},r=e||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,s=void 0===a?n():a,l=r.devTools,c=void 0===l||l,u=r.preloadedState,d=void 0===u?void 0:u,p=r.enhancers,h=void 0===p?void 0:p;if("function"==typeof i)t=i;else{if(!function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:Ru.INIT}))throw new Error(Pu(12));if(void 0===n(void 0,{type:Ru.PROBE_UNKNOWN_ACTION()}))throw new Error(Pu(13))})}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],d=c(u,t);if(void 0===d)throw t&&t.type,new Error(Pu(14));o[l]=d,r=r||d!==u}return(r=r||a.length!==Object.keys(e).length)?o:e}}(i)}var f=s;"function"==typeof f&&(f=f(n));var g=ku.apply(void 0,f),m=Fu;c&&(m=xw(Sw({trace:!1},"object"==typeof c&&c)));var v=new Mw(g),y=v;return Array.isArray(h)?y=vw([g],h):"function"==typeof h&&(y=h(v)),Iu(t,d,m.apply(void 0,y))}function Iw(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"==typeof e?e:e.type;if(!r)throw new Error("`builder.addCase` cannot be called with an empty action type");if(r in n)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}var Fw=["name","message","stack","code"],kw=function(e,t){this.payload=e,this.meta=t},Lw=function(e,t){this.payload=e,this.meta=t},Bw=function(e){if("object"==typeof e&&null!==e){for(var t={},n=0,r=Fw;n<r.length;n++){var o=r[n];"string"==typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}};function Nw(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}!function(){function e(e,t,n){var r=Dw(e+"/fulfilled",function(e,t,n,r){return{payload:e,meta:Ow(Sw({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}}),o=Dw(e+"/pending",function(e,t,n){return{payload:void 0,meta:Ow(Sw({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}}),i=Dw(e+"/rejected",function(e,t,r,o,i){return{payload:o,error:(n&&n.serializeError||Bw)(e||"Rejected"),meta:Ow(Sw({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}}),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){},e}();return Object.assign(function(e){return function(s,l,c){var u,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}(),p=new a;function h(e){u=e,p.abort()}var f=function(){return a=this,f=function(){var a,f,g,m,v,y;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(A){switch(A.label){case 0:return A.trys.push([0,4,,5]),function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}(m=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:l,extra:c}))?[4,m]:[3,2];case 1:m=A.sent(),A.label=2;case 2:if(!1===m||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=new Promise(function(e,t){return p.signal.addEventListener("abort",function(){return t({name:"AbortError",message:u||"Aborted"})})}),s(o(d,e,null==(f=null==n?void 0:n.getPendingMeta)?void 0:f.call(n,{requestId:d,arg:e},{getState:l,extra:c}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:s,getState:l,extra:c,requestId:d,signal:p.signal,abort:h,rejectWithValue:function(e,t){return new kw(e,t)},fulfillWithValue:function(e,t){return new Lw(e,t)}})).then(function(t){if(t instanceof kw)throw t;return t instanceof Lw?r(t.payload,d,e,t.meta):r(t,d,e)})])];case 3:return g=A.sent(),[3,5];case 4:return y=A.sent(),g=y instanceof kw?i(null,d,e,y.payload,y.meta):i(y,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(g)&&g.meta.condition||s(g),[2,g]}})},new Promise(function(e,t){var n=function(e){try{o(f.next(e))}catch(e){t(e)}},r=function(e){try{o(f.throw(e))}catch(e){t(e)}},o=function(t){return t.done?e(t.value):Promise.resolve(t.value).then(n,r)};o((f=f.apply(a,null)).next())});var a,f}();return Object.assign(f,{abort:h,requestId:d,arg:e,unwrap:function(){return f.then(Nw)}})}},{pending:o,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}(),Object.assign;var jw="listenerMiddleware";Dw(jw+"/add"),Dw(jw+"/removeAll"),Dw(jw+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:void 0!==u.g?u.g:globalThis),"undefined"!=typeof window&&window.requestAnimationFrame&&window.requestAnimationFrame,function(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[nw];return sw.get(t,e)},set:function(t){var n=this[nw];sw.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][nw];if(!o.P)switch(o.i){case 5:r(o)&&WA(o);break;case 4:n(o)&&WA(o)}}}function n(e){for(var t=e.t,n=e.k,r=ow(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==nw){var a=t[i];if(void 0===a&&!bA(t,i))return!0;var s=n[i],l=s&&s[nw];if(l?l.t!==a:!CA(s,a))return!0}}var c=!!t[nw];return r.length!==ow(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o={};!function(e,t){aw.ES5||(aw.ES5=t)}(0,{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=iw(n);delete i[nw];for(var a=ow(i),s=0;s<a.length;s++){var l=a[s];i[l]=e(l,t||!!i[l].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:RA(),P:!1,I:!1,R:{},l:n,t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,nw,{value:i,writable:!0}),o},S:function(e,n,o){o?vA(n)&&n[nw].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[nw];if(n){var o=n.t,i=n.k,a=n.R,s=n.i;if(4===s)AA(i,function(t){t!==nw&&(void 0!==o[t]||bA(o,t)?a[t]||e(i[t]):(a[t]=!0,WA(n)))}),AA(o,function(e){void 0!==i[e]||bA(i,e)||(a[e]=!1,WA(n))});else if(5===s){if(r(n)&&(WA(n),a.length=!0),i.length<o.length)for(var l=i.length;l<o.length;l++)a[l]=!1;else for(var c=o.length;c<i.length;c++)a[c]=!0;for(var u=Math.min(i.length,o.length),d=0;d<u;d++)i.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&e(i[d])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}();var Uw=function(e){return function(t,n,r){return e(t,n,r)*r}},Vw=function(e,t){if(e)throw Error("Invalid sort config: "+t)},Hw=function(e){var t=e||{},n=t.asc,r=t.desc,o=n?1:-1,i=n||r;return Vw(!i,"Expected `asc` or `desc` property"),Vw(n&&r,"Ambiguous object with `asc` and `desc` config properties"),{order:o,sortBy:i,comparer:e.comparer&&Uw(e.comparer)}};function Gw(e,t,n){if(void 0===e||!0===e)return function(e,r){return t(e,r,n)};if("string"==typeof e)return Vw(e.includes("."),"String syntax not allowed for nested properties."),function(r,o){return t(r[e],o[e],n)};if("function"==typeof e)return function(r,o){return t(e(r),e(o),n)};if(Array.isArray(e)){var r=(o=t,function e(t,n,r,i,a,s,l){var c,u;if("string"==typeof t)c=s[t],u=l[t];else{if("function"!=typeof t){var d=Hw(t);return e(d.sortBy,n,r,d.order,d.comparer||o,s,l)}c=t(s),u=t(l)}var p=a(c,u,i);return(0===p||null==c&&null==u)&&n.length>r?e(n[r],n,r+1,i,a,s,l):p});return function(o,i){return r(e[0],e,1,n,t,o,i)}}var o,i=Hw(e);return Gw(i.sortBy,i.comparer||t,i.order)}var Ww=function(e,t,n,r){return Array.isArray(t)?(Array.isArray(n)&&n.length<2&&(n=n[0]),t.sort(Gw(n,r,e))):t};function zw(e){var t=Uw(e.comparer);return function(e){return{asc:function(n){return Ww(1,e,n,t)},desc:function(n){return Ww(-1,e,n,t)},by:function(n){return Ww(1,e,n,t)}}}}var $w=zw({comparer:function(e,t,n){return null==e?n:null==t?-n:e<t?-1:e===t?0:1}});$w.createNewInstance=zw;const Kw=$w;class Qw{static getDescendantProperty(e,t,n=[]){let r,o,i,a,s,l;if(t){if(i=t.indexOf("."),-1===i?r=t:(r=t.slice(0,i),o=t.slice(i+1)),a=e[r],null!=a)if(o||"string"!=typeof a&&"number"!=typeof a)if("[object Array]"===Object.prototype.toString.call(a))for(s=0,l=a.length;s<l;s++)Qw.getDescendantProperty(a[s],o,n);else o&&Qw.getDescendantProperty(a,o,n);else n.push(a)}else n.push(e);return n}}class qw{constructor(e=[],t=[],n={}){Array.isArray(t)||(n=t,t=[]),this.haystack=e,this.keys=t,this.options=Object.assign({caseSensitive:!1,sort:!1},n)}search(e=""){if(""===e)return this.haystack;const t=[];for(let n=0;n<this.haystack.length;n++){const r=this.haystack[n];if(0===this.keys.length){const n=qw.isMatch(r,e,this.options.caseSensitive);n&&t.push({item:r,score:n})}else for(let n=0;n<this.keys.length;n++){const o=Qw.getDescendantProperty(r,this.keys[n]);let i=!1;for(let n=0;n<o.length;n++){const a=qw.isMatch(o[n],e,this.options.caseSensitive);if(a){i=!0,t.push({item:r,score:a});break}}if(i)break}}return this.options.sort&&t.sort((e,t)=>e.score-t.score),t.map(e=>e.item)}static isMatch(e,t,n){e=String(e),t=String(t),n||(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase());const r=qw.nearestIndexesFor(e,t);return!!r&&(e===t?1:r.length>1?r[r.length-1]-r[0]+2:2+r[0])}static nearestIndexesFor(e,t){const n=t.split("");let r=[];return qw.indexesOfFirstLetter(e,t).forEach((t,o)=>{let i=t+1;r[o]=[t];for(let t=1;t<n.length;t++){const a=n[t];if(i=e.indexOf(a,i),-1===i){r[o]=!1;break}r[o].push(i),i++}}),r=r.filter(e=>!1!==e),!!r.length&&r.sort((e,t)=>1===e.length?e[0]-t[0]:(e=e[e.length-1]-e[0])-(t=t[t.length-1]-t[0]))[0]}static indexesOfFirstLetter(e,t){const n=t[0];return e.split("").map((e,t)=>e===n&&t).filter(e=>!1!==e)}}var Yw=u(80714),Xw=u.n(Yw),Zw=u(71680),Jw=u.n(Zw),eb=u(35992),tb=u.n(eb);function nb(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}function rb(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}const ob=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?au(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r};function ib(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}const ab=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=ib(e.theme,o)||{};return iu(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=ib(a,e)||e,i&&(t=i(t))),!1===r?t:Tc({},r,t)})};return a.propTypes={},a.filterProps=[t],a};function sb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}const lb=ob(ab({prop:"border",themeKey:"borders",transform:sb}),ab({prop:"borderTop",themeKey:"borders",transform:sb}),ab({prop:"borderRight",themeKey:"borders",transform:sb}),ab({prop:"borderBottom",themeKey:"borders",transform:sb}),ab({prop:"borderLeft",themeKey:"borders",transform:sb}),ab({prop:"borderColor",themeKey:"palette"}),ab({prop:"borderRadius",themeKey:"shape"})),cb=ob(ab({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),ab({prop:"display"}),ab({prop:"overflow"}),ab({prop:"textOverflow"}),ab({prop:"visibility"}),ab({prop:"whiteSpace"})),ub=ob(ab({prop:"flexBasis"}),ab({prop:"flexDirection"}),ab({prop:"flexWrap"}),ab({prop:"justifyContent"}),ab({prop:"alignItems"}),ab({prop:"alignContent"}),ab({prop:"order"}),ab({prop:"flex"}),ab({prop:"flexGrow"}),ab({prop:"flexShrink"}),ab({prop:"alignSelf"}),ab({prop:"justifyItems"}),ab({prop:"justifySelf"})),db=ob(ab({prop:"gridGap"}),ab({prop:"gridColumnGap"}),ab({prop:"gridRowGap"}),ab({prop:"gridColumn"}),ab({prop:"gridRow"}),ab({prop:"gridAutoFlow"}),ab({prop:"gridAutoColumns"}),ab({prop:"gridAutoRows"}),ab({prop:"gridTemplateColumns"}),ab({prop:"gridTemplateRows"}),ab({prop:"gridTemplateAreas"}),ab({prop:"gridArea"})),pb=ob(ab({prop:"position"}),ab({prop:"zIndex",themeKey:"zIndex"}),ab({prop:"top"}),ab({prop:"right"}),ab({prop:"bottom"}),ab({prop:"left"})),hb=ob(ab({prop:"color",themeKey:"palette"}),ab({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),fb=ab({prop:"boxShadow",themeKey:"shadows"});function gb(e){return e<=1?"".concat(100*e,"%"):e}var mb=ab({prop:"width",transform:gb}),vb=ab({prop:"maxWidth",transform:gb}),yb=ab({prop:"minWidth",transform:gb}),Ab=ab({prop:"height",transform:gb}),wb=ab({prop:"maxHeight",transform:gb}),bb=ab({prop:"minHeight",transform:gb});ab({prop:"size",cssProperty:"width",transform:gb}),ab({prop:"size",cssProperty:"height",transform:gb});const _b=ob(mb,vb,yb,Ab,wb,bb,ab({prop:"boxSizing"})),Cb=ob(ab({prop:"fontFamily",themeKey:"typography"}),ab({prop:"fontSize",themeKey:"typography"}),ab({prop:"fontStyle",themeKey:"typography"}),ab({prop:"fontWeight",themeKey:"typography"}),ab({prop:"letterSpacing"}),ab({prop:"lineHeight"}),ab({prop:"textAlign"}));function Eb(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Eb(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const Sb=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Eb(e))&&(r&&(r+=" "),r+=t);return r};function Ob(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=Sc({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}var xb={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};const Db=xb;var Pb=["checked","disabled","error","focused","focusVisible","required","expanded","selected"],Mb=Vm({plugins:[Qm(),ov(),pv(),bv(),Dv(),"undefined"==typeof window?null:Fy(),ky()]}),Tb={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Pb.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Cu]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}(),jss:Mb,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Rb=f().createContext(Tb),Ib=-1e9;const Fb={};function kb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?Fb:i,s=Ec(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=Sc({},o);return Object.keys(i).forEach(function(e){a[e]=Dc(a[e],i[e])}),a},options:{}}}(e),c=n||r||"makeStyles";return l.options={index:Ib+=1,name:n,meta:c,classNamePrefix:c},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=_u()||a,r=Sc({},f().useContext(Rb),s),i=f().useRef(),c=f().useRef();!function(o,a){var s,u,d=f().useRef([]),p=f().useMemo(function(){return{}},a);d.current!==p&&(d.current=p,function(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Db.get(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Db.set(o.sheetsManager,i,r,s));var l=Sc({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=Db.get(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,Sc({link:!1},l))).attach(),o.sheetsCache&&Db.set(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Wm(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Sc({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Ob({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}(u={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t},e),c.current=!1,i.current=u,s=function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Db.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Db.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(u)}),f().useEffect(function(){return function(){s&&s()}},[p])}(0,[t,l]),f().useEffect(function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0});var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Ob({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}const Lb=wu();var Bb=function(e){return function(e){var t=function(t){var n=e(t);return t.css?Sc({},au(n,e(Sc({theme:t.theme},t.css))),rb(t.css,[e.filterProps])):t.sx?Sc({},au(n,e(Sc({theme:t.theme},t.sx))),rb(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(Lv(e.filterProps)),t}(e)}(ob(lb,cb,ub,db,pb,hb,fb,_b,fu,Cb));const Nb=(jb=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=Ec(r,["name"]),a=kb("function"==typeof t?function(e){return{root:function(n){return t(Sc({theme:e},n))}}}:{root:t},Sc({Component:e,name:o||e.displayName,classNamePrefix:o},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var s=f().forwardRef(function(t,r){var o=t.children,i=t.className,s=t.clone,l=t.component,c=Ec(t,["children","className","clone","component"]),u=a(t),d=Sb(u.root,i),p=c;if(n&&(p=function(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}(p,n)),s)return f().cloneElement(o,Sc({className:Sb(o.props.className,d)},p));if("function"==typeof o)return o(Sc({className:d},p));var h=l||e;return f().createElement(h,Sc({ref:r,className:d},p),o)});return qp()(s,e),s}}("div"),function(e,t){return jb(e,Sc({defaultTheme:Lb},t))})(Bb,{name:"MuiBox"});var jb;function Ub(e){return e&&e.ownerDocument||document}function Vb(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Hb(e,t){return h.useMemo(function(){return null==e&&null==t?null:function(n){Vb(e,n),Vb(t,n)}},[e,t])}var Gb="undefined"!=typeof window?h.useLayoutEffect:h.useEffect;function Wb(e){var t=h.useRef(e);return Gb(function(){t.current=e}),h.useCallback(function(){return t.current.apply(void 0,arguments)},[])}function zb(e){return e.substring(2).toLowerCase()}const $b=function(e){var t=e.children,n=e.disableReactTree,r=void 0!==n&&n,o=e.mouseEvent,i=void 0===o?"onClick":o,a=e.onClickAway,s=e.touchEvent,l=void 0===s?"onTouchEnd":s,c=h.useRef(!1),u=h.useRef(null),d=h.useRef(!1),p=h.useRef(!1);h.useEffect(function(){return setTimeout(function(){d.current=!0},0),function(){d.current=!1}},[]);var f=h.useCallback(function(e){u.current=Ls.findDOMNode(e)},[]),g=Hb(t.ref,f),m=Wb(function(e){var t=p.current;p.current=!1,d.current&&u.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e)&&(c.current?c.current=!1:(e.composedPath?e.composedPath().indexOf(u.current)>-1:!Ub(u.current).documentElement.contains(e.target)||u.current.contains(e.target))||!r&&t||a(e))}),v=function(e){return function(n){p.current=!0;var r=t.props[e];r&&r(n)}},y={ref:g};return!1!==l&&(y[l]=v(l)),h.useEffect(function(){if(!1!==l){var e=zb(l),t=Ub(u.current),n=function(){c.current=!0};return t.addEventListener(e,m),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,m),t.removeEventListener("touchmove",n)}}},[m,l]),!1!==i&&(y[i]=v(i)),h.useEffect(function(){if(!1!==i){var e=zb(i),t=Ub(u.current);return t.addEventListener(e,m),function(){t.removeEventListener(e,m)}}},[m,i]),h.createElement(h.Fragment,null,h.cloneElement(t,y))},Kb="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Qb(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function qb(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on".concat(t),n)}function Yb(e,t){const n=t.slice(0,t.length-1);for(let t=0;t<n.length;t++)n[t]=e[n[t].toLowerCase()];return n}function Xb(e){"string"!=typeof e&&(e="");const t=(e=e.replace(/\s/g,"")).split(",");let n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}const Zb={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Kb?173:189,"=":Kb?61:187,";":Kb?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},Jb={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},e_={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},t_={16:!1,18:!1,17:!1,91:!1},n_={};for(let e=1;e<20;e++)Zb["f".concat(e)]=111+e;let r_=[],o_=null,i_="all";const a_=new Map,s_=e=>Zb[e.toLowerCase()]||Jb[e.toLowerCase()]||e.toUpperCase().charCodeAt(0);function l_(e){i_=e||"all"}function c_(){return i_||"all"}function u_(e){if(void 0===e)Object.keys(n_).forEach(e=>{Array.isArray(n_[e])&&n_[e].forEach(e=>d_(e)),delete n_[e]}),g_(null);else if(Array.isArray(e))e.forEach(e=>{e.key&&d_(e)});else if("object"==typeof e)e.key&&d_(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let[o,i]=n;"function"==typeof o&&(i=o,o=""),d_({key:e,scope:o,method:i,splitKey:"+"})}}const d_=e=>{let{key:t,scope:n,method:r,splitKey:o="+"}=e;Xb(t).forEach(e=>{const t=e.split(o),i=t.length,a=t[i-1],s="*"===a?"*":s_(a);if(!n_[s])return;n||(n=c_());const l=i>1?Yb(Jb,t):[],c=[];n_[s]=n_[s].filter(e=>{const t=(!r||e.method===r)&&e.scope===n&&function(e,t){const n=e.length>=t.length?e:t,r=e.length>=t.length?t:e;let o=!0;for(let e=0;e<n.length;e++)-1===r.indexOf(n[e])&&(o=!1);return o}(e.mods,l);return t&&c.push(e.element),!t}),c.forEach(e=>g_(e))})};function p_(e,t,n,r){if(t.element!==r)return;let o;if(t.scope===n||"all"===t.scope){o=t.mods.length>0;for(const e in t_)Object.prototype.hasOwnProperty.call(t_,e)&&(!t_[e]&&t.mods.indexOf(+e)>-1||t_[e]&&-1===t.mods.indexOf(+e))&&(o=!1);(0!==t.mods.length||t_[16]||t_[18]||t_[17]||t_[91])&&!o&&"*"!==t.shortcut||(t.keys=[],t.keys=t.keys.concat(r_),!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function h_(e,t){const n=n_["*"];let r=e.keyCode||e.which||e.charCode;if(e.key&&"capslock"===e.key.toLowerCase())return;if(!f_.filter.call(this,e))return;if(93!==r&&224!==r||(r=91),-1===r_.indexOf(r)&&229!==r&&r_.push(r),["metaKey","ctrlKey","altKey","shiftKey"].forEach(t=>{const n=e_[t];e[t]&&-1===r_.indexOf(n)?r_.push(n):!e[t]&&r_.indexOf(n)>-1?r_.splice(r_.indexOf(n),1):"metaKey"===t&&e[t]&&(r_=r_.filter(e=>e in e_||e===r))}),r in t_){t_[r]=!0;for(const t in Jb)if(Object.prototype.hasOwnProperty.call(Jb,t)){const n=e_[Jb[t]];f_[t]=e[n]}if(!n)return}for(const t in t_)Object.prototype.hasOwnProperty.call(t_,t)&&(t_[t]=e[e_[t]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===r_.indexOf(17)&&r_.push(17),-1===r_.indexOf(18)&&r_.push(18),t_[17]=!0,t_[18]=!0);const o=c_();if(n)for(let r=0;r<n.length;r++)n[r].scope===o&&("keydown"===e.type&&n[r].keydown||"keyup"===e.type&&n[r].keyup)&&p_(e,n[r],o,t);if(!(r in n_))return;const i=n_[r],a=i.length;for(let n=0;n<a;n++)if(("keydown"===e.type&&i[n].keydown||"keyup"===e.type&&i[n].keyup)&&i[n].key){const r=i[n],{splitKey:a}=r,s=r.key.split(a),l=[];for(let e=0;e<s.length;e++)l.push(s_(s[e]));l.sort().join("")===r_.sort().join("")&&p_(e,r,o,t)}}function f_(e,t,n){r_=[];const r=Xb(e);let o=[],i="all",a=document,s=0,l=!1,c=!0,u="+",d=!1,p=!1;for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(l=t.keyup),void 0!==t.keydown&&(c=t.keydown),void 0!==t.capture&&(d=t.capture),"string"==typeof t.splitKey&&(u=t.splitKey),!0===t.single&&(p=!0)),"string"==typeof t&&(i=t),p&&u_(e,i);s<r.length;s++)o=[],(e=r[s].split(u)).length>1&&(o=Yb(Jb,e)),(e="*"===(e=e[e.length-1])?"*":s_(e))in n_||(n_[e]=[]),n_[e].push({keyup:l,keydown:c,scope:i,mods:o,shortcut:r[s],method:n,key:r[s],splitKey:u,element:a});if(void 0!==a&&window){if(!a_.has(a)){const e=function(){return h_(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,a)},t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event;h_(e,a),function(e){let t=e.keyCode||e.which||e.charCode;e.key&&"capslock"===e.key.toLowerCase()&&(t=s_(e.key));const n=r_.indexOf(t);if(n>=0&&r_.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&r_.splice(0,r_.length),93!==t&&224!==t||(t=91),t in t_){t_[t]=!1;for(const e in Jb)Jb[e]===t&&(f_[e]=!1)}}(e)};a_.set(a,{keydownListener:e,keyupListenr:t,capture:d}),Qb(a,"keydown",e,d),Qb(a,"keyup",t,d)}if(!o_){const e=()=>{r_=[]};o_={listener:e,capture:d},Qb(window,"focus",e,d)}}}function g_(e){const t=Object.values(n_).flat();if(t.findIndex(t=>{let{element:n}=t;return n===e})<0){const{keydownListener:t,keyupListenr:n,capture:r}=a_.get(e)||{};t&&n&&(qb(e,"keyup",n,r),qb(e,"keydown",t,r),a_.delete(e))}if((t.length<=0||a_.size<=0)&&(Object.keys(a_).forEach(e=>{const{keydownListener:t,keyupListenr:n,capture:r}=a_.get(e)||{};t&&n&&(qb(e,"keyup",n,r),qb(e,"keydown",t,r),a_.delete(e))}),a_.clear(),Object.keys(n_).forEach(e=>delete n_[e]),o_)){const{listener:e,capture:t}=o_;qb(window,"focus",e,t),o_=null}}const m_={getPressedKeyString:function(){return r_.map(e=>(e=>Object.keys(Zb).find(t=>Zb[t]===e))(e)||(e=>Object.keys(Jb).find(t=>Jb[t]===e))(e)||String.fromCharCode(e))},setScope:l_,getScope:c_,deleteScope:function(e,t){let n,r;e||(e=c_());for(const t in n_)if(Object.prototype.hasOwnProperty.call(n_,t))for(n=n_[t],r=0;r<n.length;)n[r].scope===e?n.splice(r,1).forEach(e=>{let{element:t}=e;return g_(t)}):r++;c_()===e&&l_(t||"all")},getPressedKeyCodes:function(){return r_.slice(0)},getAllKeyCodes:function(){const e=[];return Object.keys(n_).forEach(t=>{n_[t].forEach(t=>{let{key:n,scope:r,mods:o,shortcut:i}=t;e.push({scope:r,shortcut:i,mods:o,keys:n.split("+").map(e=>s_(e))})})}),e},isPressed:function(e){return"string"==typeof e&&(e=s_(e)),-1!==r_.indexOf(e)},filter:function(e){const t=e.target||e.srcElement,{tagName:n}=t;let r=!0;const o="INPUT"===n&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||"TEXTAREA"===n||"SELECT"===n)&&!t.readOnly)&&(r=!1),r},trigger:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(n_).forEach(n=>{n_[n].filter(n=>n.scope===t&&n.shortcut===e).forEach(e=>{e&&e.method&&e.method()})})},unbind:u_,keyMap:Zb,modifier:Jb,modifierMap:e_};for(const e in m_)Object.prototype.hasOwnProperty.call(m_,e)&&(f_[e]=m_[e]);if("undefined"!=typeof window){const e=window.hotkeys;f_.noConflict=t=>(t&&window.hotkeys===f_&&(window.hotkeys=e),f_),window.hotkeys=f_}var v_=u(524);const y_=function(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=Ec(t,["defaultTheme","withTheme","name"]),l=a,c=kb(e,Sc({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=f().forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=Ec(e,["classes","innerRef"]),u=c(Sc({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=_u()||r,a&&(d=nb({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),f().createElement(n,Sc({ref:s||t,classes:u},d))});return qp()(u,n),u}}(e,Sc({defaultTheme:Lb},t))};function A_(e){if("string"!=typeof e)throw new Error(Ic(7));return e.charAt(0).toUpperCase()+e.slice(1)}var w_={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},b_=h.forwardRef(function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,f=e.noWrap,g=void 0!==f&&f,m=e.paragraph,v=void 0!==m&&m,y=e.variant,A=void 0===y?"body1":y,w=e.variantMapping,b=void 0===w?w_:w,_=Ec(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(v?"p":b[A]||w_[A])||"span";return h.createElement(C,Sc({className:Sb(o.root,i,"inherit"!==A&&o[A],"initial"!==s&&o["color".concat(A_(s))],g&&o.noWrap,p&&o.gutterBottom,v&&o.paragraph,"inherit"!==r&&o["align".concat(A_(r))],"initial"!==u&&o["display".concat(A_(u))]),ref:t},_))});const __=y_(function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},{name:"MuiTypography"})(b_);var C_=h.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"inherit":i,s=e.component,l=void 0===s?"svg":s,c=e.fontSize,u=void 0===c?"default":c,d=e.htmlColor,p=e.titleAccess,f=e.viewBox,g=void 0===f?"0 0 24 24":f,m=Ec(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return h.createElement(l,Sc({className:Sb(r.root,o,"inherit"!==a&&r["color".concat(A_(a))],"default"!==u&&r["fontSize".concat(A_(u))]),focusable:"false",viewBox:g,color:d,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:t},m),n,p?h.createElement("title",null,p):null)});C_.muiName="SvgIcon";const E_=y_(function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}},{name:"MuiSvgIcon"})(C_);function S_(e,t){var n=function(t,n){return f().createElement(E_,Sc({ref:n},t),e)};return n.muiName=E_.muiName,f().memo(f().forwardRef(n))}const O_=S_(h.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var x_=!0,D_=!1,P_=null,M_={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function T_(e){e.metaKey||e.altKey||e.ctrlKey||(x_=!0)}function R_(){x_=!1}function I_(){"hidden"===this.visibilityState&&D_&&(x_=!0)}function F_(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return x_||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!M_[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function k_(){D_=!0,window.clearTimeout(P_),P_=window.setTimeout(function(){D_=!1},100)}const L_=f().createContext(null);function B_(e,t){var n=Object.create(null);return e&&h.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,h.isValidElement)(e)?t(e):e}(e)}),n}function N_(e,t,n){return null!=n[t]?n[t]:e.props[t]}function j_(e,t,n){var r=B_(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if((0,h.isValidElement)(a)){var s=i in t,l=i in r,c=t[i],u=(0,h.isValidElement)(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&(0,h.isValidElement)(c)&&(o[i]=(0,h.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:N_(a,"exit",e),enter:N_(a,"enter",e)})):o[i]=(0,h.cloneElement)(a,{in:!1}):o[i]=(0,h.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:N_(a,"exit",e),enter:N_(a,"enter",e)})}}),o}var U_=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},V_=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ig(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Rg(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,B_(n.children,function(e){return(0,h.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:N_(e,"appear",n),enter:N_(e,"enter",n),exit:N_(e,"exit",n)})})):j_(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=B_(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Sc({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Cc(e,["component","childFactory"]),o=this.state.contextValue,i=U_(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?f().createElement(L_.Provider,{value:o},i):f().createElement(L_.Provider,{value:o},f().createElement(t,r,i))},t}(f().Component);V_.propTypes={},V_.defaultProps={component:"div",childFactory:function(e){return e}};const H_=V_;var G_="undefined"==typeof window?h.useEffect:h.useLayoutEffect;const W_=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=h.useState(!1),p=d[0],f=d[1],g=Sb(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+i,left:-a/2+o},v=Sb(t.child,p&&t.childLeaving,r&&t.childPulsate),y=Wb(c);return G_(function(){if(!s){f(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}},[y,s,u]),h.createElement("span",{className:g,style:m},h.createElement("span",{className:v}))};var z_=h.forwardRef(function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=Ec(e,["center","classes","className"]),s=h.useState([]),l=s[0],c=s[1],u=h.useRef(0),d=h.useRef(null);h.useEffect(function(){d.current&&(d.current(),d.current=null)},[l]);var p=h.useRef(!1),f=h.useRef(null),g=h.useRef(null),m=h.useRef(null);h.useEffect(function(){return function(){clearTimeout(f.current)}},[]);var v=h.useCallback(function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c(function(e){return[].concat(Lv(e),[h.createElement(W_,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])}),u.current+=1,d.current=a},[o]),y=h.useCallback(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var u,d,h,y=c?null:m.current,A=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(A.width/2),d=Math.round(A.height/2);else{var w=e.touches?e.touches[0]:e,b=w.clientX,_=w.clientY;u=Math.round(b-A.left),d=Math.round(_-A.top)}if(s)(h=Math.sqrt((2*Math.pow(A.width,2)+Math.pow(A.height,2))/3))%2==0&&(h+=1);else{var C=2*Math.max(Math.abs((y?y.clientWidth:0)-u),u)+2,E=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;h=Math.sqrt(Math.pow(C,2)+Math.pow(E,2))}e.touches?null===g.current&&(g.current=function(){v({pulsate:i,rippleX:u,rippleY:d,rippleSize:h,cb:n})},f.current=setTimeout(function(){g.current&&(g.current(),g.current=null)},80)):v({pulsate:i,rippleX:u,rippleY:d,rippleSize:h,cb:n})}},[r,v]),A=h.useCallback(function(){y({},{pulsate:!0})},[y]),w=h.useCallback(function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(f.current=setTimeout(function(){w(e,t)}));g.current=null,c(function(e){return e.length>0?e.slice(1):e}),d.current=t},[]);return h.useImperativeHandle(t,function(){return{pulsate:A,start:y,stop:w}},[A,y,w]),h.createElement("span",Sc({className:Sb(o.root,i),ref:m},a),h.createElement(H_,{component:null,exit:!0},l))});const $_=y_(function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}},{flip:!1,name:"MuiTouchRipple"})(h.memo(z_));var K_=h.forwardRef(function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,p=void 0!==d&&d,f=e.disableRipple,g=void 0!==f&&f,m=e.disableTouchRipple,v=void 0!==m&&m,y=e.focusRipple,A=void 0!==y&&y,w=e.focusVisibleClassName,b=e.onBlur,_=e.onClick,C=e.onFocus,E=e.onFocusVisible,S=e.onKeyDown,O=e.onKeyUp,x=e.onMouseDown,D=e.onMouseLeave,P=e.onMouseUp,M=e.onTouchEnd,T=e.onTouchMove,R=e.onTouchStart,I=e.onDragLeave,F=e.tabIndex,k=void 0===F?0:F,L=e.TouchRippleProps,B=e.type,N=void 0===B?"button":B,j=Ec(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),U=h.useRef(null),V=h.useRef(null),H=h.useState(!1),G=H[0],W=H[1];p&&G&&W(!1);var z={isFocusVisible:F_,onBlurVisible:k_,ref:h.useCallback(function(e){var t,n=Ls.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",T_,!0),t.addEventListener("mousedown",R_,!0),t.addEventListener("pointerdown",R_,!0),t.addEventListener("touchstart",R_,!0),t.addEventListener("visibilitychange",I_,!0))},[])},$=z.isFocusVisible,K=z.onBlurVisible,Q=z.ref;function q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;return Wb(function(r){return t&&t(r),!n&&V.current&&V.current[e](r),!0})}h.useImperativeHandle(n,function(){return{focusVisible:function(){W(!0),U.current.focus()}}},[]),h.useEffect(function(){G&&A&&!g&&V.current.pulsate()},[g,A,G]);var Y=q("start",x),X=q("stop",I),Z=q("stop",P),J=q("stop",function(e){G&&e.preventDefault(),D&&D(e)}),ee=q("start",R),te=q("stop",M),ne=q("stop",T),re=q("stop",function(e){G&&(K(e),W(!1)),b&&b(e)},!1),oe=Wb(function(e){U.current||(U.current=e.currentTarget),$(e)&&(W(!0),E&&E(e)),C&&C(e)}),ie=function(){var e=Ls.findDOMNode(U.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},ae=h.useRef(!1),se=Wb(function(e){A&&!ae.current&&G&&V.current&&" "===e.key&&(ae.current=!0,e.persist(),V.current.stop(e,function(){V.current.start(e)})),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!p&&(e.preventDefault(),_&&_(e))}),le=Wb(function(e){A&&" "===e.key&&V.current&&G&&!e.defaultPrevented&&(ae.current=!1,e.persist(),V.current.stop(e,function(){V.current.pulsate(e)})),O&&O(e),_&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&_(e)}),ce=u;"button"===ce&&j.href&&(ce="a");var ue={};"button"===ce?(ue.type=N,ue.disabled=p):("a"===ce&&j.href||(ue.role="button"),ue["aria-disabled"]=p);var de=Hb(r,t),pe=Hb(Q,U),he=Hb(de,pe),fe=h.useState(!1),ge=fe[0],me=fe[1];h.useEffect(function(){me(!0)},[]);var ve=ge&&!g&&!p;return h.createElement(ce,Sc({className:Sb(s.root,l,G&&[s.focusVisible,w],p&&s.disabled),onBlur:re,onClick:_,onFocus:oe,onKeyDown:se,onKeyUp:le,onMouseDown:Y,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:te,onTouchMove:ne,onTouchStart:ee,ref:he,tabIndex:p?-1:k},ue,j),a,ve?h.createElement($_,Sc({ref:V,center:i},L)):null)});const Q_=y_({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(K_),q_=y_(function(e){return{root:{display:"flex",marginLeft:e.spacing(.5),marginRight:e.spacing(.5),backgroundColor:e.palette.grey[100],color:e.palette.grey[700],borderRadius:2,cursor:"pointer","&:hover, &:focus":{backgroundColor:e.palette.grey[200]},"&:active":{boxShadow:e.shadows[0],backgroundColor:Uc(e.palette.grey[200],.12)}},icon:{width:24,height:16}}},{name:"PrivateBreadcrumbCollapsed"})(function(e){var t=e.classes,n=Ec(e,["classes"]);return h.createElement(Q_,Sc({component:"li",className:t.root,focusRipple:!0},n),h.createElement(O_,{className:t.icon}))});var Y_=h.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"nav":i,s=e.expandText,l=void 0===s?"Show path":s,c=e.itemsAfterCollapse,u=void 0===c?1:c,d=e.itemsBeforeCollapse,p=void 0===d?1:d,f=e.maxItems,g=void 0===f?8:f,m=e.separator,v=void 0===m?"/":m,y=Ec(e,["children","classes","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),A=h.useState(!1),w=A[0],b=A[1],_=h.Children.toArray(n).filter(function(e){return h.isValidElement(e)}).map(function(e,t){return h.createElement("li",{className:r.li,key:"child-".concat(t)},e)});return h.createElement(__,Sc({ref:t,component:a,color:"textSecondary",className:Sb(r.root,o)},y),h.createElement("ol",{className:r.ol},function(e,t,n){return e.reduce(function(r,o,i){return i<e.length-1?r=r.concat(o,h.createElement("li",{"aria-hidden":!0,key:"separator-".concat(i),className:t},n)):r.push(o),r},[])}(w||g&&_.length<=g?_:function(e){return p+u>=e.length?e:[].concat(Lv(e.slice(0,p)),[h.createElement(q_,{"aria-label":l,key:"ellipsis",onClick:function(e){b(!0);var t=e.currentTarget.parentNode.querySelector("a[href],button,[tabindex]");t&&t.focus()}})],Lv(e.slice(e.length-u,e.length)))}(_),r.separator,v)))});const X_=y_({root:{},ol:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"},li:{},separator:{display:"flex",userSelect:"none",marginLeft:8,marginRight:8}},{name:"MuiBreadcrumbs"})(Y_);var Z_=h.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,f=e.disableFocusRipple,g=void 0!==f&&f,m=e.endIcon,v=e.focusVisibleClassName,y=e.fullWidth,A=void 0!==y&&y,w=e.size,b=void 0===w?"medium":w,_=e.startIcon,C=e.type,E=void 0===C?"button":C,S=e.variant,O=void 0===S?"text":S,x=Ec(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),D=_&&h.createElement("span",{className:Sb(r.startIcon,r["iconSize".concat(A_(b))])},_),P=m&&h.createElement("span",{className:Sb(r.endIcon,r["iconSize".concat(A_(b))])},m);return h.createElement(Q_,Sc({className:Sb(r.root,r[O],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(O).concat(A_(a))],"medium"!==b&&[r["".concat(O,"Size").concat(A_(b))],r["size".concat(A_(b))]],p&&r.disableElevation,u&&r.disabled,A&&r.fullWidth),component:l,disabled:u,focusRipple:!g,focusVisibleClassName:Sb(r.focusVisible,v),ref:t,type:E},x),h.createElement("span",{className:r.label},D,n,P))});const J_=y_(function(e){return{root:Sc({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Vc(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Vc(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Vc(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Vc(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Vc(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Vc(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Vc(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}},{name:"MuiButton"})(Z_);function eC(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout(function(){e.apply(a,o)},n)}return r.clear=function(){clearTimeout(t)},r}function tC(e){return Ub(e).defaultView||window}function nC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}},function(){})}var rC="undefined"!=typeof window?h.useLayoutEffect:h.useEffect;const oC=h.forwardRef(function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=h.useState(null),l=s[0],c=s[1],u=Hb(h.isValidElement(n)?n.ref:null,t);return rC(function(){i||c(function(e){return e="function"==typeof e?e():e,Ls.findDOMNode(e)}(r)||document.body)},[r,i]),rC(function(){if(l&&!i)return Vb(t,l),function(){Vb(t,null)}},[t,l,i]),rC(function(){a&&(l||i)&&a()},[a,l,i]),i?h.isValidElement(n)?h.cloneElement(n,{ref:u}):n:l?Ls.createPortal(n,l):l});function iC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aC(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function sC(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lC(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function cC(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Lv(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&sC(e,r)})}function uC(e,t){var n=-1;return e.some(function(e,r){return!!t(e)&&(n=r,!0)}),n}var dC=function(){function e(){iC(this,e),this.modals=[],this.containers=[]}return Mg(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&sC(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);cC(t,e.mountNode,e.modalRef,r,!0);var o=uC(this.containers,function(e){return e.container===t});return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=uC(this.containers,function(t){return-1!==t.modals.indexOf(e)}),r=this.containers[n];r.restore||(r.restore=function(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Ub(e);return t.body===e?tC(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=aC();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(lC(i)+a,"px"),n=Ub(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(lC(e)+a,"px")})}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")}),r.forEach(function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)})}}(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=uC(this.containers,function(t){return-1!==t.modals.indexOf(e)}),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&sC(e.modalRef,!0),cC(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&sC(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const pC=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=h.useRef(),p=h.useRef(null),f=h.useRef(null),g=h.useRef(),m=h.useRef(null),v=h.useCallback(function(e){m.current=Ls.findDOMNode(e)},[]),y=Hb(t.ref,v),A=h.useRef();return h.useEffect(function(){A.current=u},[u]),!A.current&&u&&"undefined"!=typeof window&&(g.current=l().activeElement),h.useEffect(function(){if(u){var e=Ub(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!i&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?f.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval(function(){t()},50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}},[r,i,s,c,u]),h.createElement(h.Fragment,null,h.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),h.cloneElement(t,{ref:y}),h.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))};var hC={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const fC=h.forwardRef(function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=Ec(e,["invisible","open"]);return o?h.createElement("div",Sc({"aria-hidden":!0,ref:t},i,{style:Sc({},hC.root,r?hC.invisible:{},i.style)})):null});var gC=new dC;const mC=h.forwardRef(function(e,t){var n=_u(),r=nb({name:"MuiModal",props:Sc({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?fC:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,f=r.disableBackdropClick,g=void 0!==f&&f,m=r.disableEnforceFocus,v=void 0!==m&&m,y=r.disableEscapeKeyDown,A=void 0!==y&&y,w=r.disablePortal,b=void 0!==w&&w,_=r.disableRestoreFocus,C=void 0!==_&&_,E=r.disableScrollLock,S=void 0!==E&&E,O=r.hideBackdrop,x=void 0!==O&&O,D=r.keepMounted,P=void 0!==D&&D,M=r.manager,T=void 0===M?gC:M,R=r.onBackdropClick,I=r.onClose,F=r.onEscapeKeyDown,k=r.onRendered,L=r.open,B=Ec(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),N=h.useState(!0),j=N[0],U=N[1],V=h.useRef({}),H=h.useRef(null),G=h.useRef(null),W=Hb(G,t),z=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),$=function(){return Ub(H.current)},K=function(){return V.current.modalRef=G.current,V.current.mountNode=H.current,V.current},Q=function(){T.mount(K(),{disableScrollLock:S}),G.current.scrollTop=0},q=Wb(function(){var e=function(e){return e="function"==typeof e?e():e,Ls.findDOMNode(e)}(u)||$().body;T.add(K(),e),G.current&&Q()}),Y=h.useCallback(function(){return T.isTopModal(K())},[T]),X=Wb(function(e){H.current=e,e&&(k&&k(),L&&Y()?Q():sC(G.current,!0))}),Z=h.useCallback(function(){T.remove(K())},[T]);if(h.useEffect(function(){return function(){Z()}},[Z]),h.useEffect(function(){L?q():z&&c||Z()},[L,Z,z,c,q]),!P&&!L&&(!z||j))return null;var J=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Au}),ee={};return void 0===s.props.tabIndex&&(ee.tabIndex=s.props.tabIndex||"-1"),z&&(ee.onEnter=nC(function(){U(!1)},s.props.onEnter),ee.onExited=nC(function(){U(!0),c&&Z()},s.props.onExited)),h.createElement(oC,{ref:X,container:u,disablePortal:b},h.createElement("div",Sc({ref:W,onKeyDown:function(e){"Escape"===e.key&&Y()&&(F&&F(e),A||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},B,{style:Sc({},J.root,!L&&j?J.hidden:{},B.style)}),x?null:h.createElement(i,Sc({open:L,onClick:function(e){e.target===e.currentTarget&&(R&&R(e),!g&&I&&I(e,"backdropClick"))}},a)),h.createElement(pC,{disableEnforceFocus:v,disableAutoFocus:p,disableRestoreFocus:C,getDoc:$,isEnabled:Y,open:L},h.cloneElement(s,ee))))});var vC="unmounted",yC="exited",AC="entering",wC="entered",bC="exiting",_C=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=yC,r.appearStatus=AC):o=wC:o=t.unmountOnExit||t.mountOnEnter?vC:yC,r.state={status:o},r.nextCallback=null,r}Rg(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===vC?{status:yC}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==AC&&n!==wC&&(t=AC):n!==AC&&n!==wC||(t=bC)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===AC){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Bs().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yC&&this.setState({status:vC})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Bs().findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:AC},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:wC},function(){t.props.onEntered(i,a)})})})):this.safeSetState({status:wC},function(){t.props.onEntered(i)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Bs().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:bC},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:yC},function(){e.props.onExited(r)})})})):this.safeSetState({status:yC},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Bs().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===vC)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Cc(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return f().createElement(L_.Provider,{value:null},"function"==typeof n?n(e,r):f().cloneElement(f().Children.only(n),r))},t}(f().Component);function CC(){}_C.contextType=L_,_C.propTypes={},_C.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:CC,onEntering:CC,onEntered:CC,onExit:CC,onExiting:CC,onExited:CC},_C.UNMOUNTED=vC,_C.EXITED=yC,_C.ENTERING=AC,_C.ENTERED=wC,_C.EXITING=bC;const EC=_C;function SC(){return _u()||Lb}function OC(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function xC(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var DC={entering:{opacity:1,transform:xC(1)},entered:{opacity:1,transform:"none"}},PC=h.forwardRef(function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,p=e.style,f=e.timeout,g=void 0===f?"auto":f,m=e.TransitionComponent,v=void 0===m?EC:m,y=Ec(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=h.useRef(),w=h.useRef(),b=SC(),_=b.unstable_strictMode&&!o,C=h.useRef(null),E=Hb(n.ref,t),S=Hb(_?C:void 0,E),O=function(e){return function(t,n){if(e){var r=nu(_?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},x=O(l),D=O(function(e,t){!function(e){e.scrollTop}(e);var n,r=OC({style:p,timeout:g},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===g?(n=b.transitions.getAutoHeightDuration(e.clientHeight),w.current=n):n=o,e.style.transition=[b.transitions.create("opacity",{duration:n,delay:i}),b.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)}),P=O(s),M=O(d),T=O(function(e){var t,n=OC({style:p,timeout:g},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===g?(t=b.transitions.getAutoHeightDuration(e.clientHeight),w.current=t):t=r,e.style.transition=[b.transitions.create("opacity",{duration:t,delay:o}),b.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=xC(.75),c&&c(e)}),R=O(u);return h.useEffect(function(){return function(){clearTimeout(A.current)}},[]),h.createElement(v,Sc({appear:!0,in:i,nodeRef:_?C:void 0,onEnter:D,onEntered:P,onEntering:x,onExit:T,onExited:R,onExiting:M,addEndListener:function(e,t){var n=_?e:t;"auto"===g&&(A.current=setTimeout(n,w.current||0))},timeout:"auto"===g?null:g},y),function(e,t){return h.cloneElement(n,Sc({style:Sc({opacity:0,transform:xC(.75),visibility:"exited"!==e||i?void 0:"hidden"},DC[e],p,n.props.style),ref:S},t))})});PC.muiSupportAuto=!0;const MC=PC;var TC=h.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,p=Ec(e,["classes","className","component","square","elevation","variant"]);return h.createElement(i,Sc({className:Sb(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))});const RC=y_(function(e){var t={};return e.shadows.forEach(function(e,n){t["elevation".concat(n)]={boxShadow:e}}),Sc({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)},{name:"MuiPaper"})(TC);function IC(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function FC(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function kC(e){return[e.horizontal,e.vertical].map(function(e){return"number"==typeof e?"".concat(e,"px"):e}).join(" ")}function LC(e){return"function"==typeof e?e():e}var BC=h.forwardRef(function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,p=e.container,f=e.elevation,g=void 0===f?8:f,m=e.getContentAnchorEl,v=e.marginThreshold,y=void 0===v?16:v,A=e.onEnter,w=e.onEntered,b=e.onEntering,_=e.onExit,C=e.onExited,E=e.onExiting,S=e.open,O=e.PaperProps,x=void 0===O?{}:O,D=e.transformOrigin,P=void 0===D?{vertical:"top",horizontal:"left"}:D,M=e.TransitionComponent,T=void 0===M?MC:M,R=e.transitionDuration,I=void 0===R?"auto":R,F=e.TransitionProps,k=void 0===F?{}:F,L=Ec(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),B=h.useRef(),N=h.useCallback(function(e){if("anchorPosition"===l)return a;var t=LC(r),n=(t&&1===t.nodeType?t:Ub(B.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+IC(n,o),left:n.left+FC(n,i.horizontal)}},[r,i.horizontal,i.vertical,a,l]),j=h.useCallback(function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t},[i.vertical,l,m]),U=h.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:IC(e,P.vertical)+t,horizontal:FC(e,P.horizontal)}},[P.horizontal,P.vertical]),V=h.useCallback(function(e){var t=j(e),n={width:e.offsetWidth,height:e.offsetHeight},o=U(n,t);if("none"===l)return{top:null,left:null,transformOrigin:kC(o)};var i=N(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=tC(LC(r)),p=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var f=a-y;a-=f,o.vertical+=f}else if(c>p){var g=c-p;a-=g,o.vertical+=g}if(s<y){var m=s-y;s-=m,o.horizontal+=m}else if(u>h){var v=u-h;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:kC(o)}},[r,l,N,j,U,y]),H=h.useCallback(function(){var e=B.current;if(e){var t=V(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}},[V]),G=h.useCallback(function(e){B.current=Ls.findDOMNode(e)},[]);h.useEffect(function(){S&&H()}),h.useImperativeHandle(n,function(){return S?{updatePosition:function(){H()}}:null},[S,H]),h.useEffect(function(){if(S){var e=eC(function(){H()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}},[S,H]);var W=I;"auto"!==I||T.muiSupportAuto||(W=void 0);var z=p||(r?Ub(LC(r)).body:void 0);return h.createElement(mC,Sc({container:z,open:S,ref:t,BackdropProps:{invisible:!0},className:Sb(u.root,d)},L),h.createElement(T,Sc({appear:!0,in:S,onEnter:A,onEntered:w,onExit:_,onExited:C,onExiting:E,timeout:W},k,{onEntering:nC(function(e,t){b&&b(e,t),H()},k.onEntering)}),h.createElement(RC,Sc({elevation:g,ref:G},x,{className:Sb(u.paper,x.className)}),c)))});const NC=y_({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(BC),jC=h.createContext({});var UC=h.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,p=Ec(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=h.useMemo(function(){return{dense:l}},[l]);return h.createElement(jC.Provider,{value:f},h.createElement(a,Sc({className:Sb(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))});const VC=y_({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(UC);function HC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function GC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function WC(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function zC(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&WC(s,i)&&!l)return void s.focus();s=o(e,s,n)}}var $C="undefined"==typeof window?h.useEffect:h.useLayoutEffect,KC=h.forwardRef(function(e,t){var n=e.actions,r=e.autoFocus,o=void 0!==r&&r,i=e.autoFocusItem,a=void 0!==i&&i,s=e.children,l=e.className,c=e.disabledItemsFocusable,u=void 0!==c&&c,d=e.disableListWrap,p=void 0!==d&&d,f=e.onKeyDown,g=e.variant,m=void 0===g?"selectedMenu":g,v=Ec(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),y=h.useRef(null),A=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$C(function(){o&&y.current.focus()},[o]),h.useImperativeHandle(n,function(){return{adjustStyleForScrollbar:function(e,t){var n=!y.current.style.width;if(e.clientHeight<y.current.clientHeight&&n){var r="".concat(aC(),"px");y.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,y.current.style.width="calc(100% + ".concat(r,")")}return y.current}}},[]);var w=Hb(h.useCallback(function(e){y.current=Ls.findDOMNode(e)},[]),t),b=-1;h.Children.forEach(s,function(e,t){h.isValidElement(e)&&(e.props.disabled||("selectedMenu"===m&&e.props.selected||-1===b)&&(b=t))});var _=h.Children.map(s,function(e,t){if(t===b){var n={};return a&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===m&&(n.tabIndex=0),h.cloneElement(e,n)}return e});return h.createElement(VC,Sc({role:"menu",ref:w,className:l,onKeyDown:function(e){var t=y.current,n=e.key,r=Ub(t).activeElement;if("ArrowDown"===n)e.preventDefault(),zC(t,r,p,u,HC);else if("ArrowUp"===n)e.preventDefault(),zC(t,r,p,u,GC);else if("Home"===n)e.preventDefault(),zC(t,null,p,u,HC);else if("End"===n)e.preventDefault(),zC(t,null,p,u,GC);else if(1===n.length){var o=A.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var s=r&&!o.repeating&&WC(r,o);o.previousKeyMatched&&(s||zC(t,r,!1,u,HC,o))?e.preventDefault():o.previousKeyMatched=!1}f&&f(e)},tabIndex:o?0:-1},v),_)});const QC=KC;var qC={vertical:"top",horizontal:"right"},YC={vertical:"top",horizontal:"left"},XC=h.forwardRef(function(e,t){var n=e.autoFocus,r=void 0===n||n,o=e.children,i=e.classes,a=e.disableAutoFocusItem,s=void 0!==a&&a,l=e.MenuListProps,c=void 0===l?{}:l,u=e.onClose,d=e.onEntering,p=e.open,f=e.PaperProps,g=void 0===f?{}:f,m=e.PopoverClasses,v=e.transitionDuration,y=void 0===v?"auto":v,A=e.variant,w=void 0===A?"selectedMenu":A,b=Ec(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),_=SC(),C=r&&!s&&p,E=h.useRef(null),S=h.useRef(null),O=-1;h.Children.map(o,function(e,t){h.isValidElement(e)&&(e.props.disabled||("menu"!==w&&e.props.selected||-1===O)&&(O=t))});var x=h.Children.map(o,function(e,t){return t===O?h.cloneElement(e,{ref:function(t){S.current=Ls.findDOMNode(t),Vb(e.ref,t)}}):e});return h.createElement(NC,Sc({getContentAnchorEl:function(){return S.current},classes:m,onClose:u,onEntering:function(e,t){E.current&&E.current.adjustStyleForScrollbar(e,_),d&&d(e,t)},anchorOrigin:"rtl"===_.direction?qC:YC,transformOrigin:"rtl"===_.direction?qC:YC,PaperProps:Sc({},g,{classes:Sc({},g.classes,{root:i.paper})}),open:p,ref:t,transitionDuration:y},b),h.createElement(QC,Sc({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:E,autoFocus:r&&(-1===O||s),autoFocusItem:C,variant:w},c,{className:Sb(i.list,c.className)}),x))});const ZC=y_({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(XC);var JC=h.forwardRef(function(e,t){var n=e.classes,r=e.className,o=Ec(e,["classes","className"]),i=h.useContext(jC);return h.createElement("div",Sc({className:Sb(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))});const eE=y_(function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}},{name:"MuiListItemIcon"})(JC);var tE=h.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,f=Ec(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),g=h.useContext(jC).dense,m=null!=c?c:n;null==m||m.type===__||a||(m=h.createElement(__,Sc({variant:g?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var v=d;return null==v||v.type===__||a||(v=h.createElement(__,Sc({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),v)),h.createElement("div",Sc({className:Sb(r.root,o,g&&r.dense,l&&r.inset,m&&v&&r.multiline),ref:t},f),m,v)});const nE=y_({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(tE);function rE(e,t){return h.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var oE="undefined"==typeof window?h.useEffect:h.useLayoutEffect,iE=h.forwardRef(function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=e.ContainerComponent,f=void 0===p?"li":p,g=e.ContainerProps,m=(g=void 0===g?{}:g).className,v=Ec(g,["className"]),y=e.dense,A=void 0!==y&&y,w=e.disabled,b=void 0!==w&&w,_=e.disableGutters,C=void 0!==_&&_,E=e.divider,S=void 0!==E&&E,O=e.focusVisibleClassName,x=e.selected,D=void 0!==x&&x,P=Ec(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),M=h.useContext(jC),T={dense:A||M.dense||!1,alignItems:r},R=h.useRef(null);oE(function(){i&&R.current&&R.current.focus()},[i]);var I=h.Children.toArray(l),F=I.length&&rE(I[I.length-1],["ListItemSecondaryAction"]),k=Hb(h.useCallback(function(e){R.current=Ls.findDOMNode(e)},[]),t),L=Sc({className:Sb(c.root,u,T.dense&&c.dense,!C&&c.gutters,S&&c.divider,b&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,F&&c.secondaryAction,D&&c.selected),disabled:b},P),B=d||"li";return s&&(L.component=d||"div",L.focusVisibleClassName=Sb(c.focusVisible,O),B=Q_),F?(B=L.component||d?B:"div","li"===f&&("li"===B?B="div":"li"===L.component&&(L.component="div")),h.createElement(jC.Provider,{value:T},h.createElement(f,Sc({className:Sb(c.container,m),ref:k},v),h.createElement(B,L,I),I.pop()))):h.createElement(jC.Provider,{value:T},h.createElement(B,Sc({ref:k},L),I))});const aE=y_(function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}},{name:"MuiListItem"})(iE);var sE=h.forwardRef(function(e,t){var n,r=e.classes,o=e.className,i=e.component,a=void 0===i?"li":i,s=e.disableGutters,l=void 0!==s&&s,c=e.ListItemClasses,u=e.role,d=void 0===u?"menuitem":u,p=e.selected,f=e.tabIndex,g=Ec(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==f?f:-1),h.createElement(aE,Sc({button:!0,role:d,tabIndex:n,component:a,selected:p,disableGutters:l,classes:Sc({dense:r.dense},c),className:Sb(r.root,o,p&&r.selected,!l&&r.gutters),ref:t},g))});const lE=y_(function(e){return{root:Sc({},e.typography.body1,Tc({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Sc({},e.typography.body2,{minHeight:"auto"})}},{name:"MuiMenuItem"})(sE);var cE=h.createContext();function uE(){return h.useContext(cE)}const dE=cE;var pE=h.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,s=e.disablePointerEvents,l=void 0!==s&&s,c=e.disableTypography,u=void 0!==c&&c,d=e.position,p=e.variant,f=Ec(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),g=uE()||{},m=p;return p&&g.variant,g&&!m&&(m=g.variant),h.createElement(dE.Provider,{value:null},h.createElement(a,Sc({className:Sb(r.root,o,l&&r.disablePointerEvents,g.hiddenLabel&&r.hiddenLabel,"filled"===m&&r.filled,{start:r.positionStart,end:r.positionEnd}[d],"dense"===g.margin&&r.marginDense),ref:t},f),"string"!=typeof n||u?n:h.createElement(__,{color:"textSecondary"},n)))});const hE=y_({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(pE);function fE(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce(function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e},{})}function gE(e,t){return parseInt(e[t],10)||0}var mE="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,vE={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},yE=h.forwardRef(function(e,t){var n=e.onChange,r=e.rows,o=e.rowsMax,i=e.rowsMin,a=void 0===i?1:i,s=e.style,l=e.value,c=Ec(e,["onChange","rows","rowsMax","rowsMin","style","value"]),u=r||a,d=h.useRef(null!=l).current,p=h.useRef(null),f=Hb(t,p),g=h.useRef(null),m=h.useRef(0),v=h.useState({}),y=v[0],A=v[1],w=h.useCallback(function(){var t=p.current,n=window.getComputedStyle(t),r=g.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],a=gE(n,"padding-bottom")+gE(n,"padding-top"),s=gE(n,"border-bottom-width")+gE(n,"border-top-width"),l=r.scrollHeight-a;r.value="x";var c=r.scrollHeight-a,d=l;u&&(d=Math.max(Number(u)*c,d)),o&&(d=Math.min(Number(o)*c,d));var h=(d=Math.max(d,c))+("border-box"===i?a+s:0),f=Math.abs(d-l)<=1;A(function(e){return m.current<20&&(h>0&&Math.abs((e.outerHeightStyle||0)-h)>1||e.overflow!==f)?(m.current+=1,{overflow:f,outerHeightStyle:h}):e})},[o,u,e.placeholder]);return h.useEffect(function(){var e=eC(function(){m.current=0,w()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}},[w]),mE(function(){w()}),h.useEffect(function(){m.current=0},[l]),h.createElement(h.Fragment,null,h.createElement("textarea",Sc({value:l,onChange:function(e){m.current=0,d||w(),n&&n(e)},ref:f,rows:u,style:Sc({height:y.outerHeightStyle,overflow:y.overflow?"hidden":null},s)},c)),h.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:Sc({},vE,s)}))});const AE=yE;function wE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function bE(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(wE(e.value)&&""!==e.value||t&&wE(e.defaultValue)&&""!==e.defaultValue)}var _E="undefined"==typeof window?h.useEffect:h.useLayoutEffect,CE=h.forwardRef(function(e,t){var n=e["aria-describedby"],r=e.autoComplete,o=e.autoFocus,i=e.classes,a=e.className,s=(e.color,e.defaultValue),l=e.disabled,c=e.endAdornment,u=(e.error,e.fullWidth),d=void 0!==u&&u,p=e.id,f=e.inputComponent,g=void 0===f?"input":f,m=e.inputProps,v=void 0===m?{}:m,y=e.inputRef,A=(e.margin,e.multiline),w=void 0!==A&&A,b=e.name,_=e.onBlur,C=e.onChange,E=e.onClick,S=e.onFocus,O=e.onKeyDown,x=e.onKeyUp,D=e.placeholder,P=e.readOnly,M=e.renderSuffix,T=e.rows,R=e.rowsMax,I=e.rowsMin,F=e.startAdornment,k=e.type,L=void 0===k?"text":k,B=e.value,N=Ec(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),j=null!=v.value?v.value:B,U=h.useRef(null!=j).current,V=h.useRef(),H=h.useCallback(function(e){},[]),G=Hb(v.ref,H),W=Hb(y,G),z=Hb(V,W),$=h.useState(!1),K=$[0],Q=$[1],q=uE(),Y=fE({props:e,muiFormControl:q,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Y.focused=q?q.focused:K,h.useEffect(function(){!q&&l&&K&&(Q(!1),_&&_())},[q,l,K,_]);var X=q&&q.onFilled,Z=q&&q.onEmpty,J=h.useCallback(function(e){bE(e)?X&&X():Z&&Z()},[X,Z]);_E(function(){U&&J({value:j})},[j,J,U]),h.useEffect(function(){J(V.current)},[]);var ee=g,te=Sc({},v,{ref:z});return"string"!=typeof ee?te=Sc({inputRef:z,type:L},te,{ref:null}):w?!T||R||I?(te=Sc({rows:T,rowsMax:R},te),ee=AE):ee="textarea":te=Sc({type:L},te),h.useEffect(function(){q&&q.setAdornedStart(Boolean(F))},[q,F]),h.createElement("div",Sc({className:Sb(i.root,i["color".concat(A_(Y.color||"primary"))],a,Y.disabled&&i.disabled,Y.error&&i.error,d&&i.fullWidth,Y.focused&&i.focused,q&&i.formControl,w&&i.multiline,F&&i.adornedStart,c&&i.adornedEnd,"dense"===Y.margin&&i.marginDense),onClick:function(e){V.current&&e.currentTarget===e.target&&V.current.focus(),E&&E(e)},ref:t},N),F,h.createElement(dE.Provider,{value:null},h.createElement(ee,Sc({"aria-invalid":Y.error,"aria-describedby":n,autoComplete:r,autoFocus:o,defaultValue:s,disabled:Y.disabled,id:p,onAnimationStart:function(e){J("mui-auto-fill-cancel"===e.animationName?V.current:{value:"x"})},name:b,placeholder:D,readOnly:P,required:Y.required,rows:T,value:j,onKeyDown:O,onKeyUp:x},te,{className:Sb(i.input,v.className,Y.disabled&&i.disabled,w&&i.inputMultiline,Y.hiddenLabel&&i.inputHiddenLabel,F&&i.inputAdornedStart,c&&i.inputAdornedEnd,"search"===L&&i.inputTypeSearch,"dense"===Y.margin&&i.inputMarginDense),onBlur:function(e){_&&_(e),v.onBlur&&v.onBlur(e),q&&q.onBlur?q.onBlur(e):Q(!1)},onChange:function(e){if(!U){var t=e.target||V.current;if(null==t)throw new Error(Ic(1));J({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];v.onChange&&v.onChange.apply(v,[e].concat(r)),C&&C.apply(void 0,[e].concat(r))},onFocus:function(e){Y.disabled?e.stopPropagation():(S&&S(e),v.onFocus&&v.onFocus(e),q&&q.onFocus?q.onFocus(e):Q(!0))}}))),c,M?M(Sc({},Y,{startAdornment:F})):null)});const EE=y_(function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Sc({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}},{name:"MuiInputBase"})(CE);var SE=h.forwardRef(function(e,t){var n=e.disableUnderline,r=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,s=void 0===a?"input":a,l=e.multiline,c=void 0!==l&&l,u=e.type,d=void 0===u?"text":u,p=Ec(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return h.createElement(EE,Sc({classes:Sc({},r,{root:Sb(r.root,!n&&r.underline),underline:null}),fullWidth:i,inputComponent:s,multiline:c,ref:t,type:d},p))});SE.muiName="Input";const OE=y_(function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}},{name:"MuiInput"})(SE);var xE=h.forwardRef(function(e,t){var n=e.disableUnderline,r=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,s=void 0===a?"input":a,l=e.multiline,c=void 0!==l&&l,u=e.type,d=void 0===u?"text":u,p=Ec(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return h.createElement(EE,Sc({classes:Sc({},r,{root:Sb(r.root,!n&&r.underline),underline:null}),fullWidth:i,inputComponent:s,multiline:c,ref:t,type:d},p))});xE.muiName="Input";const DE=y_(function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},{name:"MuiFilledInput"})(xE);var PE=h.forwardRef(function(e,t){e.children;var n=e.classes,r=e.className,o=e.label,i=e.labelWidth,a=e.notched,s=e.style,l=Ec(e,["children","classes","className","label","labelWidth","notched","style"]),c="rtl"===SC().direction?"right":"left";if(void 0!==o)return h.createElement("fieldset",Sc({"aria-hidden":!0,className:Sb(n.root,r),ref:t,style:s},l),h.createElement("legend",{className:Sb(n.legendLabelled,a&&n.legendNotched)},o?h.createElement("span",null,o):h.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var u=i>0?.75*i+8:.01;return h.createElement("fieldset",Sc({"aria-hidden":!0,style:Sc(Tc({},"padding".concat(A_(c)),8),s),className:Sb(n.root,r),ref:t},l),h.createElement("legend",{className:n.legend,style:{width:a?u:.01}},h.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))});const ME=y_(function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}},{name:"PrivateNotchedOutline"})(PE);var TE=h.forwardRef(function(e,t){var n=e.classes,r=e.fullWidth,o=void 0!==r&&r,i=e.inputComponent,a=void 0===i?"input":i,s=e.label,l=e.labelWidth,c=void 0===l?0:l,u=e.multiline,d=void 0!==u&&u,p=e.notched,f=e.type,g=void 0===f?"text":f,m=Ec(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return h.createElement(EE,Sc({renderSuffix:function(e){return h.createElement(ME,{className:n.notchedOutline,label:s,labelWidth:c,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Sc({},n,{root:Sb(n.root,n.underline),notchedOutline:null}),fullWidth:o,inputComponent:a,multiline:d,ref:t,type:g},m))});TE.muiName="Input";const RE=y_(function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},{name:"MuiOutlinedInput"})(TE);function IE(){return h.useContext(dE)}var FE=h.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=(e.color,e.component),a=void 0===i?"label":i,s=(e.disabled,e.error,e.filled,e.focused,e.required,Ec(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),l=fE({props:e,muiFormControl:IE(),states:["color","required","focused","disabled","error","filled"]});return h.createElement(a,Sc({className:Sb(r.root,r["color".concat(A_(l.color||"primary"))],o,l.disabled&&r.disabled,l.error&&r.error,l.filled&&r.filled,l.focused&&r.focused,l.required&&r.required),ref:t},s),n,l.required&&h.createElement("span",{"aria-hidden":!0,className:Sb(r.asterisk,l.error&&r.error)}," ","*"))});const kE=y_(function(e){return{root:Sc({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}},{name:"MuiFormLabel"})(FE);var LE=h.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.disableAnimation,i=void 0!==o&&o,a=(e.margin,e.shrink),s=(e.variant,Ec(e,["classes","className","disableAnimation","margin","shrink","variant"])),l=IE(),c=a;void 0===c&&l&&(c=l.filled||l.focused||l.adornedStart);var u=fE({props:e,muiFormControl:l,states:["margin","variant"]});return h.createElement(kE,Sc({"data-shrink":c,className:Sb(n.root,r,l&&n.formControl,!i&&n.animated,c&&n.shrink,"dense"===u.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[u.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},s))});const BE=y_(function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}},{name:"MuiInputLabel"})(LE);var NE=h.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"primary":i,s=e.component,l=void 0===s?"div":s,c=e.disabled,u=void 0!==c&&c,d=e.error,p=void 0!==d&&d,f=e.fullWidth,g=void 0!==f&&f,m=e.focused,v=e.hiddenLabel,y=void 0!==v&&v,A=e.margin,w=void 0===A?"none":A,b=e.required,_=void 0!==b&&b,C=e.size,E=e.variant,S=void 0===E?"standard":E,O=Ec(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),x=h.useState(function(){var e=!1;return n&&h.Children.forEach(n,function(t){if(rE(t,["Input","Select"])){var n=rE(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}}),e}),D=x[0],P=x[1],M=h.useState(function(){var e=!1;return n&&h.Children.forEach(n,function(t){rE(t,["Input","Select"])&&bE(t.props,!0)&&(e=!0)}),e}),T=M[0],R=M[1],I=h.useState(!1),F=I[0],k=I[1],L=void 0!==m?m:F;u&&L&&k(!1);var B=h.useCallback(function(){R(!0)},[]),N={adornedStart:D,setAdornedStart:P,color:a,disabled:u,error:p,filled:T,focused:L,fullWidth:g,hiddenLabel:y,margin:("small"===C?"dense":void 0)||w,onBlur:function(){k(!1)},onEmpty:h.useCallback(function(){R(!1)},[]),onFilled:B,onFocus:function(){k(!0)},registerEffect:void 0,required:_,variant:S};return h.createElement(dE.Provider,{value:N},h.createElement(l,Sc({className:Sb(r.root,o,"none"!==w&&r["margin".concat(A_(w))],g&&r.fullWidth),ref:t},O),n))});const jE=y_({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(NE);var UE=h.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"p":i,s=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Ec(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),l=fE({props:e,muiFormControl:IE(),states:["variant","margin","disabled","error","filled","focused","required"]});return h.createElement(a,Sc({className:Sb(r.root,("filled"===l.variant||"outlined"===l.variant)&&r.contained,o,l.disabled&&r.disabled,l.error&&r.error,l.filled&&r.filled,l.focused&&r.focused,l.required&&r.required,"dense"===l.margin&&r.marginDense),ref:t},s)," "===n?h.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):n)});const VE=y_(function(e){return{root:Sc({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}},{name:"MuiFormHelperText"})(UE);function HE(e,t){return"object"===Oc(t)&&null!==t?e===t:String(e)===String(t)}var GE=h.forwardRef(function(e,t){var n=e["aria-label"],r=e.autoFocus,o=e.autoWidth,i=e.children,a=e.classes,s=e.className,l=e.defaultValue,c=e.disabled,u=e.displayEmpty,d=e.IconComponent,p=e.inputRef,f=e.labelId,g=e.MenuProps,m=void 0===g?{}:g,v=e.multiple,y=e.name,A=e.onBlur,w=e.onChange,b=e.onClose,_=e.onFocus,C=e.onOpen,E=e.open,S=e.readOnly,O=e.renderValue,x=e.SelectDisplayProps,D=void 0===x?{}:x,P=e.tabIndex,M=(e.type,e.value),T=e.variant,R=void 0===T?"standard":T,I=Ec(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),F=function(e){var t=e.controlled,n=e.default,r=h.useRef(void 0!==t).current,o=h.useState(n),i=o[0],a=o[1];return[r?t:i,h.useCallback(function(e){r||a(e)},[])]}({controlled:M,default:l,name:"Select"}),k=nu(F,2),L=k[0],B=k[1],N=h.useRef(null),j=h.useState(null),U=j[0],V=j[1],H=h.useRef(null!=E).current,G=h.useState(),W=G[0],z=G[1],$=h.useState(!1),K=$[0],Q=$[1],q=Hb(t,p);h.useImperativeHandle(q,function(){return{focus:function(){U.focus()},node:N.current,value:L}},[U,L]),h.useEffect(function(){r&&U&&U.focus()},[r,U]),h.useEffect(function(){if(U){var e=Ub(U).getElementById(f);if(e){var t=function(){getSelection().isCollapsed&&U.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}},[f,U]);var Y,X,Z=function(e,t){e?C&&C(t):b&&b(t),H||(z(o?null:U.clientWidth),Q(e))},J=h.Children.toArray(i),ee=function(e){return function(t){var n;if(v||Z(!1,t),v){n=Array.isArray(L)?L.slice():[];var r=L.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),L!==n&&(B(n),w&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:y}}),w(t,e)))}},te=null!==U&&(H?E:K);delete I["aria-invalid"];var ne=[],re=!1;(bE({value:L})||u)&&(O?Y=O(L):re=!0);var oe=J.map(function(e){if(!h.isValidElement(e))return null;var t;if(v){if(!Array.isArray(L))throw new Error(Ic(2));(t=L.some(function(t){return HE(t,e.props.value)}))&&re&&ne.push(e.props.children)}else(t=HE(L,e.props.value))&&re&&(X=e.props.children);return h.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ee(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});re&&(Y=v?ne.join(", "):X);var ie,ae=W;!o&&H&&U&&(ae=U.clientWidth),ie=void 0!==P?P:c?null:0;var se=D.id||(y?"mui-component-select-".concat(y):void 0);return h.createElement(h.Fragment,null,h.createElement("div",Sc({className:Sb(a.root,a.select,a.selectMenu,a[R],s,c&&a.disabled),ref:V,tabIndex:ie,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":te?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[f,se].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){S||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Z(!0,e))},onMouseDown:c||S?null:function(e){0===e.button&&(e.preventDefault(),U.focus(),Z(!0,e))},onBlur:function(e){!te&&A&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:y}}),A(e))},onFocus:_},D,{id:se}),function(e){return null==e||"string"==typeof e&&!e.trim()}(Y)?h.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):Y),h.createElement("input",Sc({value:Array.isArray(L)?L.join(","):L,name:y,ref:N,"aria-hidden":!0,onChange:function(e){var t=J.map(function(e){return e.props.value}).indexOf(e.target.value);if(-1!==t){var n=J[t];B(n.props.value),w&&w(e,n)}},tabIndex:-1,className:a.nativeInput,autoFocus:r},I)),h.createElement(d,{className:Sb(a.icon,a["icon".concat(A_(R))],te&&a.iconOpen,c&&a.disabled)}),h.createElement(ZC,Sc({id:"menu-".concat(y||""),anchorEl:U,open:te,onClose:function(e){Z(!1,e)}},m,{MenuListProps:Sc({"aria-labelledby":f,role:"listbox",disableListWrap:!0},m.MenuListProps),PaperProps:Sc({},m.PaperProps,{style:Sc({minWidth:ae},null!=m.PaperProps?m.PaperProps.style:null)})}),oe))});const WE=GE,zE=S_(h.createElement("path",{d:"M7 10l5 5 5-5z"})),$E=h.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.disabled,i=e.IconComponent,a=e.inputRef,s=e.variant,l=void 0===s?"standard":s,c=Ec(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return h.createElement(h.Fragment,null,h.createElement("select",Sc({className:Sb(n.root,n.select,n[l],r,o&&n.disabled),disabled:o,ref:a||t},c)),e.multiple?null:h.createElement(i,{className:Sb(n.icon,n["icon".concat(A_(l))],o&&n.disabled)}))});var KE=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},QE=h.createElement(OE,null),qE=h.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.IconComponent,i=void 0===o?zE:o,a=e.input,s=void 0===a?QE:a,l=e.inputProps,c=(e.variant,Ec(e,["children","classes","IconComponent","input","inputProps","variant"])),u=fE({props:e,muiFormControl:IE(),states:["variant"]});return h.cloneElement(s,Sc({inputComponent:$E,inputProps:Sc({children:n,classes:r,IconComponent:i,variant:u.variant,type:void 0},l,s?s.props.inputProps:{}),ref:t},c))});qE.muiName="Select",y_(KE,{name:"MuiNativeSelect"})(qE);var YE=KE,XE=h.createElement(OE,null),ZE=h.createElement(DE,null),JE=h.forwardRef(function e(t,n){var r=t.autoWidth,o=void 0!==r&&r,i=t.children,a=t.classes,s=t.displayEmpty,l=void 0!==s&&s,c=t.IconComponent,u=void 0===c?zE:c,d=t.id,p=t.input,f=t.inputProps,g=t.label,m=t.labelId,v=t.labelWidth,y=void 0===v?0:v,A=t.MenuProps,w=t.multiple,b=void 0!==w&&w,_=t.native,C=void 0!==_&&_,E=t.onClose,S=t.onOpen,O=t.open,x=t.renderValue,D=t.SelectDisplayProps,P=t.variant,M=void 0===P?"standard":P,T=Ec(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),R=C?$E:WE,I=fE({props:t,muiFormControl:IE(),states:["variant"]}).variant||M,F=p||{standard:XE,outlined:h.createElement(RE,{label:g,labelWidth:y}),filled:ZE}[I];return h.cloneElement(F,Sc({inputComponent:R,inputProps:Sc({children:i,IconComponent:u,variant:I,type:void 0,multiple:b},C?{id:d}:{autoWidth:o,displayEmpty:l,labelId:m,MenuProps:A,onClose:E,onOpen:S,open:O,renderValue:x,SelectDisplayProps:Sc({id:d},D)},f,{classes:f?Ob({baseClasses:a,newClasses:f.classes,Component:e}):a},p?p.props.inputProps:{}),ref:n},T))});JE.muiName="Select";const eS=y_(YE,{name:"MuiSelect"})(JE);var tS={standard:OE,filled:DE,outlined:RE},nS=h.forwardRef(function(e,t){var n=e.autoComplete,r=e.autoFocus,o=void 0!==r&&r,i=e.children,a=e.classes,s=e.className,l=e.color,c=void 0===l?"primary":l,u=e.defaultValue,d=e.disabled,p=void 0!==d&&d,f=e.error,g=void 0!==f&&f,m=e.FormHelperTextProps,v=e.fullWidth,y=void 0!==v&&v,A=e.helperText,w=e.hiddenLabel,b=e.id,_=e.InputLabelProps,C=e.inputProps,E=e.InputProps,S=e.inputRef,O=e.label,x=e.multiline,D=void 0!==x&&x,P=e.name,M=e.onBlur,T=e.onChange,R=e.onFocus,I=e.placeholder,F=e.required,k=void 0!==F&&F,L=e.rows,B=e.rowsMax,N=e.select,j=void 0!==N&&N,U=e.SelectProps,V=e.type,H=e.value,G=e.variant,W=void 0===G?"standard":G,z=Ec(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]),$={};if("outlined"===W&&(_&&void 0!==_.shrink&&($.notched=_.shrink),O)){var K,Q=null!==(K=null==_?void 0:_.required)&&void 0!==K?K:k;$.label=h.createElement(h.Fragment,null,O,Q&&" *")}j&&(U&&U.native||($.id=void 0),$["aria-describedby"]=void 0);var q=A&&b?"".concat(b,"-helper-text"):void 0,Y=O&&b?"".concat(b,"-label"):void 0,X=tS[W],Z=h.createElement(X,Sc({"aria-describedby":q,autoComplete:n,autoFocus:o,defaultValue:u,fullWidth:y,multiline:D,name:P,rows:L,rowsMax:B,type:V,value:H,id:b,inputRef:S,onBlur:M,onChange:T,onFocus:R,placeholder:I,inputProps:C},$,E));return h.createElement(jE,Sc({className:Sb(a.root,s),disabled:p,error:g,fullWidth:y,hiddenLabel:w,ref:t,required:k,color:c,variant:W},z),O&&h.createElement(BE,Sc({htmlFor:b,id:Y},_),O),j?h.createElement(eS,Sc({"aria-describedby":q,id:b,labelId:Y,value:H,input:Z},U),i):Z,A&&h.createElement(VE,Sc({id:q},m),A))});const rS=y_({root:{}},{name:"MuiTextField"})(nS);let oS;oS="undefined"!=typeof window?window:"undefined"!=typeof self?self:u.g;let iS=null,aS=null;const sS=oS.clearTimeout,lS=oS.setTimeout,cS=oS.cancelAnimationFrame||oS.mozCancelAnimationFrame||oS.webkitCancelAnimationFrame,uS=oS.requestAnimationFrame||oS.mozRequestAnimationFrame||oS.webkitRequestAnimationFrame;null==cS||null==uS?(iS=sS,aS=function(e){return lS(e,20)}):(iS=function([e,t]){cS(e),sS(t)},aS=function(e){const t=uS(function(){sS(n),e()}),n=lS(function(){cS(t),e()},20);return[t,n]});class dS extends h.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i;if(!e&&this.state.height!==c||!t&&this.state.width!==u){this.setState({height:c,width:u});const e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof n&&n({height:c,width:u,get scaledHeight(){return e(),c},get scaledWidth(){return e(),u}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,r,o,i,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&iS(this.__resizeRAF__),this.__resizeRAF__=aS(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=oS.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:i=!1,nonce:a,onResize:s,style:l={},tagName:c="div",...u}=this.props,{height:d,width:p}=this.state,f={overflow:"visible"},g={};let m=!1;return r||(0===d&&(m=!0),f.height=0,g.height=d,g.scaledHeight=d),o||(0===p&&(m=!0),f.width=0,g.width=p,g.scaledWidth=p),i&&(m=!1),(0,h.createElement)(c,{ref:this._setRef,style:{...f,...l},...u},!m&&e(g))}}var pS=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function hS(e,t){return e===t||!(!pS(e)||!pS(t))}function fS(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!hS(e[n],t[n]))return!1;return!0}const gS=function(e,t){var n;void 0===t&&(t=fS);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}};var mS="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function vS(e){cancelAnimationFrame(e.id)}function yS(e,t){var n=mS(),r={id:requestAnimationFrame(function o(){mS()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var AS=-1;function wS(e){if(void 0===e&&(e=!1),-1===AS||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),AS=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return AS}var bS=null;function _S(e){if(void 0===e&&(e=!1),null===bS||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?bS="positive-descending":(t.scrollLeft=1,bS=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),bS}return bS}var CS=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t},ES=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},SS=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},OS=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var c=a+1;c<=n;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},xS=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?DS(e,t,n,i,0,r):PS(e,t,n,Math.max(0,i),r)},DS=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=OS(e,t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},PS=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&OS(e,t,r,n).offset<o;)r+=a,a*=2;return DS(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},MS=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=OS(e,t,n,i),c="column"===e?SS(t,i):ES(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=u+s?"auto":"center"),r){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);default:return o>=d&&o<=u?o:d>u||o<d?d:u}},TS=function(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,Ig(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ig(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=gS(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=gS(function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&c),h=e+":"+t;if(p.hasOwnProperty(h))o=p[h];else{var f=n(r.props,t,r._instanceProps),g="rtl"===l;p[h]=o={position:"absolute",left:g?void 0:f,right:g?f:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=gS(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(_S()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&vS(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=yS(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Rg(t,e),t.getDerivedStateFromProps=function(e,t){return function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance}(e,t),v(e),null};var y=t.prototype;return y.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},y.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,h=i.width,f=this.state,g=f.scrollLeft,m=f.scrollTop,v=wS();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var y=a(this.props,this._instanceProps),A=s(this.props,this._instanceProps)>h?v:0,w=y>d?v:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,g,this._instanceProps,w):g,scrollTop:void 0!==o?c(this.props,o,n,m,this._instanceProps,A):m})},y.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(_S()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vS(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?CS:p,g=e.outerElementType,m=e.outerTagName,v=e.rowCount,y=e.style,A=e.useIsScrolling,w=e.width,b=this.state.isScrolling,_=this._getHorizontalRangeToRender(),C=_[0],E=_[1],S=this._getVerticalRangeToRender(),O=S[0],x=S[1],D=[];if(r>0&&v)for(var P=O;P<=x;P++)for(var M=C;M<=E;M++)D.push((0,h.createElement)(t,{columnIndex:M,data:d,isScrolling:A?b:void 0,key:f({columnIndex:M,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,M)}));var T=a(this.props,this._instanceProps),R=s(this.props,this._instanceProps);return(0,h.createElement)(g||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Sc({position:"relative",height:i,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},(0,h.createElement)(c||u||"div",{children:D,ref:l,style:{height:T,pointerEvents:b?"none":void 0,width:R}}))},y._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],h=u[2],f=u[3];this._callOnItemsRendered(a,s,d,p,l,c,h,f)}if("function"==typeof r){var g=this.state,m=g.horizontalScrollDirection,v=g.scrollLeft,y=g.scrollTop,A=g.scrollUpdateWasRequested,w=g.verticalScrollDirection;this._callOnScroll(v,y,m,w,A)}},y._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var h=r(this.props,d,this._instanceProps),f=o(this.props,h,d,this._instanceProps),g=u&&"backward"!==c?1:Math.max(1,p),m=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,h-g),Math.max(0,Math.min(t-1,f+m)),h,f]},y._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),g=s&&"backward"!==l?1:Math.max(1,u),m=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-g),Math.max(0,Math.min(i-1,h+m)),d,h]},t}(h.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}({getColumnOffset:function(e,t,n){return OS("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return xS("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=OS("column",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=OS("column",e,c,r).size;return c},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:ES,getEstimatedTotalWidth:SS,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return MS("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return MS("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return OS("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return xS("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=OS("row",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=OS("row",e,c,r).size;return c},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),RS=function(e,t){return e},IS=function(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,Ig(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ig(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=gS(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=gS(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),h="horizontal"===a||"horizontal"===l,f="rtl"===a,g=h?d:0;u[e]=t={position:"absolute",left:f?void 0:g,right:f?g:void 0,top:h?0:d,height:h?"100%":p,width:h?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=gS(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(_S()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&vS(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=yS(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Rg(t,e),t.getDerivedStateFromProps=function(e,t){return function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance}(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?wS():0:l.scrollHeight>l.clientHeight?wS():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(_S()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vS(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?RS:d,f=e.layout,g=e.outerElementType,m=e.outerTagName,v=e.style,y=e.useIsScrolling,A=e.width,w=this.state.isScrolling,b="horizontal"===o||"horizontal"===f,_=b?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],S=C[1],O=[];if(c>0)for(var x=E;x<=S;x++)O.push((0,h.createElement)(t,{data:u,key:p(x,u),index:x,isScrolling:y?w:void 0,style:this._getItemStyle(x)}));var D=r(this.props,this._instanceProps);return(0,h.createElement)(g||m||"div",{className:n,onScroll:_,ref:this._outerRefSetter,style:Sc({position:"relative",height:i,width:A,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},(0,h.createElement)(s||l||"div",{children:O,ref:a,style:{height:b?"100%":D,pointerEvents:w?"none":void 0,width:b?D:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(h.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:s,h=Math.max(0,l*c-p),f=Math.min(h,t*c),g=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=g-p&&r<=f+p?"auto":"center"),n){case"start":return f;case"end":return g;case"center":var m=Math.round(g+(f-g)/2);return m<Math.ceil(p/2)?0:m>h+Math.floor(p/2)?h:m;default:return r>=g&&r<=f?r:r<g?g:f}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}}),FS=h.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"default":o,a=e.component,s=void 0===a?"li":a,l=e.disableGutters,c=void 0!==l&&l,u=e.disableSticky,d=void 0!==u&&u,p=e.inset,f=void 0!==p&&p,g=Ec(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return h.createElement(s,Sc({className:Sb(n.root,r,"default"!==i&&n["color".concat(A_(i))],f&&n.inset,!d&&n.sticky,!c&&n.gutters),ref:t},g))});const kS=y_(function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}},{name:"MuiListSubheader"})(FS);function LS(){return LS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LS.apply(this,arguments)}function BS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NS(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return BS(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)?BS(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var jS,US={},VS=function(e){var t=(0,h.useRef)(US);return t.current===US&&(t.current=e()),t.current},HS=function(e){var t=(0,h.useRef)(e);return(0,h.useEffect)(function(){t.current=e},[t,e]),t},GS=function(){function e(){}return e.error=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).error.apply(e,["[Chonky runtime error]"].concat(n))},e.warn=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).warn.apply(e,["[Chonky runtime warning]"].concat(n))},e.debug=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).debug.apply(e,["[Chonky runtime debug]"].concat(n))},e.formatBullets=function(e){return"\n- "+e.join("\n- ")},e}(),WS=function(){function e(){}return e.isDirectory=function(e){return!!e&&!0===e.isDir},e.isHidden=function(e){return!!e&&!0===e.isHidden},e.isSymlink=function(e){return!!e&&!0===e.isSymlink},e.isEncrypted=function(e){return!!e&&!0===e.isEncrypted},e.isClickable=function(e){return!!e},e.isOpenable=function(e){return!!e&&!1!==e.openable},e.isSelectable=function(e){return!!e&&!1!==e.selectable},e.isDraggable=function(e){return!!e&&!1!==e.draggable},e.isDroppable=function(e){return!(!e||(!e.isDir||!1===e.droppable)&&!0!==e.droppable)},e.isDndOpenable=function(t){return!(!e.isOpenable(t)||(!t.isDir||!1===t.dndOpenable)&&!0!==t.dndOpenable)},e.getModDate=function(t){return t&&null!==t.modDate&&void 0!==t.modDate?e.parseDate(t.modDate):null},e.parseDate=function(e){if("string"==typeof e||"number"==typeof e)try{return new Date(e)}catch(t){GS.error("Could not convert provided string/number into a date: "+t.message+" ","Invalid value:",e)}return e instanceof Date&&!isNaN(e.getTime())?e:(GS.warn("Unsupported date representation:",e),null)},e.getChildrenCount=function(e){return e&&"number"==typeof e.childrenCount?e.childrenCount:null},e}(),zS=function(e,t){var n=[],r=[];if("folderChain"!==e&&"fileActions"!==e||t)if(Array.isArray(t)){for(var o=0,i=0,a=new Set,s=new Set,l=0;l<t.length;++l){var c=t[l];c?"object"!=typeof c?o++:!c.id||"fileActions"!==e&&!c.name?i++:a.has(c.id)?s.add(c.id):(a.add(c.id),n.push(c)):"fileActions"===e?o++:n.push(null)}if(o&&r.push("Detected "+o+' file(s) of invalid type. Remember that "files" array should contain either objects or nulls.'),i&&r.push("Detected "+i+' file(s) that are missing the required fields. Remember that file object should define an "id" and a "name".'),s.size>0){var u='"'+Array.from(s).join('", "')+'"';r.push("Detected "+s.size+" file IDs that are used multiple times. Remember that each file should have a unique IDs. The following IDs were seen multiple times: "+u)}}else r.push('Expected "'+e+'" prop to be an array, got "'+typeof t+'" instead.');if(r.length>0){var d,p,h="\n- "+r.join("\n- ");"folderChain"===e?(d="folder chain",p="files"):"fileActions"===e?(d="file actions",p="file actions"):(d="files",p="files"),GS.error("Errors were detected when sanitizing the "+d+" array. Offending "+p+" were removed from the array. Summary of validation errors: "+h)}return{sanitizedArray:n,errorMessages:r}},$S="show_hidden_files",KS="show_folders_first";!function(e){e.ASC="asc",e.DESC="desc"}(jS||(jS={}));var QS,qS,YS=function(e){return e.instanceId},XS=function(e){return e.fileActionMap},ZS=function(e){return e.fileActionIds},JS=function(e){return function(t){return XS(t)[e]}},eO=function(e){return e.toolbarItems},tO=function(e){return e.contextMenuItems},nO=function(e){return e.folderChain},rO=function(e){var t=nO(e);return t.length>0?t[t.length-1]:null},oO=function(e){var t=nO(e);return t.length>1?t[t.length-2]:null},iO=function(e){return e.fileMap},aO=function(e){return e.cleanFileIds},sO=function(e){return function(t){return e?iO(t)[e]:null}},lO=function(e){return e.hiddenFileIdMap},cO=function(e){return Object.keys(lO(e)).length},uO=function(e){return e.searchString},dO=function(e){return e.selectionMap},pO=function(e){return Object.keys(dO(e))},hO=function(e){return pO(e).length},fO=function(e){return function(t){return!!e&&!!dO(t)[e]}},gO=function(e){var t=iO(e);return Object.keys(dO(e)).map(function(e){return t[e]})},mO=function(e){return function(t){var n;return null==(n=$O(t,e))?void 0:n.length}},vO=function(e){return e.fileViewConfig},yO=function(e){return e.sortActionId},AO=function(e){return e.sortOrder},wO=function(e){return function(t){return function(e){return e.optionMap}(t)[e]}},bO=function(e){return e.thumbnailGenerator},_O=function(e){return e.doubleClickDelay},CO=function(e){return e.disableDragAndDrop},EO=function(e){return e.clearSelectionOnOutsideClick},SO=function(e){return e.contextMenuMounted},OO=function(e){return e.contextMenuConfig},xO=function(e){return e.fileActionMap},DO=function(e){return e.optionMap},PO=function(e){return e.fileMap},MO=function(e){return e.fileIds},TO=function(e){return e.cleanFileIds},RO=function(e){return e.sortActionId},IO=function(e){return e.sortOrder},FO=function(e){return e.searchString},kO=function(e){return e.lastClick},LO=function(e){return gA([xO,e],function(e,t){return t&&e[t]?e[t]:null})},BO=function(e,t){return void 0===t&&(t=void 0),gA([DO],function(n){var r=n[e];return void 0===r?t:r})},NO=function(e){return gA([PO,e],function(e,t){return t.map(function(t){return t&&e[t]?e[t]:null})})},jO=gA([MO,IO,NO(MO),LO(RO),BO(KS,!1)],function(e,t,n,r,o){if(!r)return e;var i=function(e){return function(t){return e(t)}},a=[];if(o&&a.push({desc:i(WS.isDirectory)}),r.sortKeySelector){var s,l=t===jS.ASC?"asc":"desc";a.push(((s={})[l]=i(r.sortKeySelector),s))}return 0===a.length?e:Kw([].concat(n)).by(a).map(function(e){return e?e.id:null})}),UO=gA([NO(TO)],function(e){return new qw(e,["name"],{caseSensitive:!1})}),VO=gA([TO,FO,UO],function(e,t,n){return t?n.search(t).map(function(e){return e.id}):e}),HO=gA([VO,NO(TO),BO($S)],function(e,t,n){var r=new Set(e),o={};return t.forEach(function(e){e&&(r.has(e.id)?!n&&WS.isHidden(e)&&(o[e.id]=!0):o[e.id]=!0)}),o}),GO=gA([jO,HO],function(e,t){return e.filter(function(e){return!e||!t[e]})}),WO={getFileActionMap:xO,getOptionMap:DO,getFileMap:PO,getFileIds:MO,getCleanFileIds:TO,getSortActionId:RO,getSortOrder:IO,getSearchString:FO,_getLastClick:kO,getSortedFileIds:jO,getSearcher:UO,getSearchFilteredFileIds:VO,getHiddenFileIdMap:HO,getDisplayFileIds:GO,getLastClickIndex:gA([kO,jO],function(e,t){return!e||e.index>t.length-1||e.fileId!=t[e.index]?null:e.index}),makeGetAction:LO,makeGetOptionValue:BO,makeGetFiles:NO},zO=function(e,t){return!!dO(e)[t.id]},$O=function(e,t){return function(e){return function(t){var n=t.fileActionMap[e];if(n&&n.requiresSelection)return function(e){for(var t=e.fileMap,n=e.selectionMap,r=Object.keys(n).map(function(e){return t[e]}),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return i.reduce(function(e,t){return t?e.filter(t):e},r)}(t,n.fileFilter)}}(t)(e)},KO=function(e,t){return function(n){var r,o=zS("fileActions",e),i=o.sanitizedArray,a=o.errorMessages;if(Array.isArray(t)){var s=new Set(t);r=lx.filter(function(e){return!s.has(e.id)})}else r=t?[]:lx;var l=function(){for(var e,t=new Set,n=function(e){return!!t.add(e.id)},r=function(e){return!t.has(e.id)},o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=i.map(function(e){var t=e.filter(r);return t.map(n),t});return(e=new Array).concat.apply(e,s)}(i,sx,r),c={};l.map(function(e){return e.option?c[e.option.id]=e.option.defaultValue:null}),n(px.setRawFileActions(e)),n(px.setFileActionsErrorMessages(a)),n(px.setFileActions(l)),n(px.setOptionDefaults(c)),n(QO(l))}},QO=function(e){return function(t){for(var n,r=new Set([ax.OpenParentFolder.id]),o=[],i={},a=[],s={},l=function(e,t,n){if(t[n])return t[n];var r={name:n,fileActionIds:[]};return e.push(r),t[n]=r,r},c=NS(e);!(n=c()).done;){var u=n.value,d=u.button;d&&(d.toolbar&&!r.has(u.id)&&(d.group?l(o,i,d.group).fileActionIds.push(u.id):o.push(u.id)),d.contextMenu&&(d.group?l(a,s,d.group).fileActionIds.push(u.id):a.push(u.id)))}t(px.updateFileActionMenuItems([o,a]))}},qO=function(e){return function(t,n){var r=n().fileActionMap,o=e?r[e]:null;o&&o.fileViewConfig&&t(px.setFileViewConfig(o.fileViewConfig))}},YO=function(e){return function(t,n){if(e){var r=n(),o=r.sortActionId,i=r.sortOrder,a=r.fileActionMap[e];if(a&&a.sortKeySelector){var s=i===jS.ASC?jS.DESC:jS.ASC;o!==e&&(s=jS.ASC),t(px.setSort({actionId:e,order:s}))}}}},XO=function(e,t){return function(n,r){GS.debug("FILE ACTION REQUEST: ["+e.id+"]","action:",e,"payload:",t);var o=r(),i=YS(o);XS(o)[e.id]||GS.warn('The action "'+e.id+'" was requested, but it is not registered. The action will still be dispatched, but this might indicate a bug in the code. Please register your actions by passing them to "fileActions" prop.');var a=gO(o),s=e.fileFilter?a.filter(e.fileFilter):a;if(!e.requiresSelection||0!==s.length){var l=function(e){var t,n=OO(e);return n&&n.triggerFileId&&null!=(t=iO(e)[n.triggerFileId])?t:null}(o),c={instanceId:i,selectedFiles:a,selectedFilesForAction:s,contextMenuTriggerFile:l};e.sortKeySelector&&n(YO(e.id));var u=e.fileViewConfig;u&&n(px.setFileViewConfig(u));var d=e.option;d&&n(px.toggleOption(d.id)),e.selectionTransform&&n(function(e){return function(t,n){var r=e.selectionTransform;if(r){var o=n(),i=new Set(Object.keys(dO(o))),a=new Set(Object.keys(lO(o))),s=r({prevSelection:i,fileIds:aO(o),fileMap:iO(o),hiddenFileIds:a});s&&(0===s.size?t(px.clearSelection()):t(px.selectFiles({fileIds:Array.from(s),reset:!0})))}}}(e));var p=e.effect,h=void 0;if(p)try{h=p({action:e,payload:t,state:c,reduxDispatch:n,getReduxState:r})}catch(t){GS.error("User-defined effect function for action "+e.id+" threw an error: "+t.message)}return Promise.resolve(h).then(function(r){var o={id:e.id,action:e,payload:t,state:c};ZO(n,o,r)}).catch(function(r){GS.error("User-defined effect function for action "+e.id+" returned a promise that was rejected: "+r.message);var o={id:e.id,action:e,payload:t,state:c};ZO(n,o,void 0)})}GS.warn('Internal components requested the "'+e.id+'" file action, but the selection for this action was empty. This might a bug in the code of the presentational components.')}},ZO=function(e,t,n){!0===n||e(function(e){return function(t,n){GS.debug("FILE ACTION DISPATCH: ["+e.id+"]","data:",e);var r=n(),o=XS(r)[e.id],i=function(e){return e.externalFileActionHandler}(r);o?i&&Promise.resolve(i(e)).catch(function(e){return GS.error("User-defined file action handler threw an error: "+e.message)}):GS.warn('Internal components dispatched the "'+e.id+'" file action, but such action was not registered.')}}(t))};!function(e){e.List="list",e.Compact="compact",e.Grid="grid"}(QS||(QS={})),function(e){e.loading="loading",e.dropdown="dropdown",e.placeholder="placeholder",e.dndDragging="dndDragging",e.dndCanDrop="dndCanDrop",e.dndCannotDrop="dndCannotDrop",e.openFiles="openFiles",e.openParentFolder="openParentFolder",e.copy="copy",e.paste="paste",e.share="share",e.search="search",e.selectAllFiles="selectAllFiles",e.clearSelection="clearSelection",e.sortAsc="sortAsc",e.sortDesc="sortDesc",e.toggleOn="toggleOn",e.toggleOff="toggleOff",e.list="list",e.compact="compact",e.smallThumbnail="smallThumbnail",e.largeThumbnail="largeThumbnail",e.folder="folder",e.folderCreate="folderCreate",e.folderOpen="folderOpen",e.folderChainSeparator="folderChainSeparator",e.download="download",e.upload="upload",e.trash="trash",e.fallbackIcon="fallbackIcon",e.symlink="symlink",e.hidden="hidden",e.file="file",e.license="license",e.code="code",e.config="config",e.model="model",e.database="database",e.text="text",e.archive="archive",e.image="image",e.video="video",e.info="info",e.key="key",e.lock="lock",e.music="music",e.terminal="terminal",e.users="users",e.linux="linux",e.ubuntu="ubuntu",e.windows="windows",e.rust="rust",e.python="python",e.nodejs="nodejs",e.php="php",e.git="git",e.adobe="adobe",e.pdf="pdf",e.excel="excel",e.word="word",e.flash="flash"}(qS||(qS={}));var JO,ex=function(e,t){if(void 0!==e.__payloadType&&(e.hotkeys||e.button)){var n='Invalid definition was provided for file action "'+e.id+'". Actions that specify hotkeys or buttons cannot define a payload type. If your application requires this functionality, define two actions and chain them using effects.';throw GS.error(n),new Error(n)}return e.effect=t,e},tx=function e(t,n){return t?n(t)?t:t.parentElement?e(t.parentElement,n):null:t},nx=function(e,t,n){return n?typeof e===n?e:t:void 0!==e?e:t},rx={MouseClickFile:ex({id:"mouse_click_file",__payloadType:{}},function(e){var t,n=e.payload,r=e.reduxDispatch,o=e.getReduxState;if("double"===n.clickType)WS.isOpenable(n.file)&&r(XO(ax.OpenFiles,{targetFile:n.file,files:[n.file]}));else{var i=o().disableSelection;if(WS.isSelectable(n.file)&&!i)if(n.ctrlKey)r(px.toggleSelection({fileId:n.file.id,exclusive:!1})),r(px.setLastClickIndex({index:n.fileDisplayIndex,fileId:n.file.id}));else if(n.shiftKey){var a=WO.getLastClickIndex(o());if("number"==typeof a){var s=a,l=n.fileDisplayIndex;if(s>l){var c=[l,s];s=c[0],l=c[1]}r((t={rangeStart:s,rangeEnd:l},function(e,n){var r=n();if(!r.disableSelection){var o=WO.getDisplayFileIds(r).slice(t.rangeStart,t.rangeEnd+1).filter(function(e){return e&&WS.isSelectable(r.fileMap[e])});e(px.selectFiles({fileIds:o,reset:!!t.reset}))}}))}else r(px.toggleSelection({fileId:n.file.id,exclusive:!1})),r(px.setLastClickIndex({index:n.fileDisplayIndex,fileId:n.file.id}))}else r(px.toggleSelection({fileId:n.file.id,exclusive:!0})),r(px.setLastClickIndex({index:n.fileDisplayIndex,fileId:n.file.id}));else n.ctrlKey||i||r(px.clearSelection()),r(px.setLastClickIndex({index:n.fileDisplayIndex,fileId:n.file.id}))}}),KeyboardClickFile:ex({id:"keyboard_click_file",__payloadType:{}},function(e){var t=e.payload,n=e.reduxDispatch,r=e.getReduxState;n(px.setLastClickIndex({index:t.fileDisplayIndex,fileId:t.file.id})),t.enterKey?0===hO(r())&&n(XO(ax.OpenFiles,{targetFile:t.file,files:[t.file]})):t.spaceKey&&WS.isSelectable(t.file)&&n(px.toggleSelection({fileId:t.file.id,exclusive:t.ctrlKey}))}),StartDragNDrop:ex({id:"start_drag_n_drop",__payloadType:{}},function(e){var t=e.payload,n=e.reduxDispatch,r=e.getReduxState,o=t.draggedFile;zO(r(),o)||WS.isSelectable(o)&&n(px.selectFiles({fileIds:[o.id],reset:!0}))}),EndDragNDrop:ex({id:"end_drag_n_drop",__payloadType:{}},function(e){var t=e.payload,n=e.reduxDispatch,r=e.getReduxState;if(!zO(r(),t.destination)){var o=t.draggedFile,i=t.selectedFiles,a=i.length>0?i:[o];n(XO(ax.MoveFiles,LS({},t,{files:a})))}}),MoveFiles:ex({id:"move_files",__payloadType:{}}),ChangeSelection:ex({id:"change_selection",__payloadType:{}}),OpenFiles:ex({id:"open_files",__payloadType:{}}),OpenParentFolder:ex({id:"open_parent_folder",hotkeys:["backspace"],button:{name:"Go up a directory",toolbar:!0,contextMenu:!1,icon:qS.openParentFolder,iconOnly:!0}},function(e){var t=e.reduxDispatch,n=e.getReduxState,r=oO(n());WS.isOpenable(r)?t(XO(ax.OpenFiles,{targetFile:r,files:[r]})):GS.warn("Open parent folder effect was triggered  even though the parent folder is not openable. This indicates a bug in presentation components.")}),OpenFileContextMenu:ex({id:"open_file_context_menu",__payloadType:{}},function(e){var t,n,r=e.payload,o=e.reduxDispatch,i=e.getReduxState,a=(t=i(),(n=r.triggerFileId)?iO(t)[n]:null);a&&(zO(i(),a)||(WS.isSelectable(a)?o(px.selectFiles({fileIds:[r.triggerFileId],reset:!0})):o(px.clearSelection()))),o(px.showContextMenu({triggerFileId:r.triggerFileId,mouseX:r.clientX-2,mouseY:r.clientY-4}))})},ox={OpenSelection:ex({id:"open_selection",hotkeys:["enter"],requiresSelection:!0,fileFilter:WS.isOpenable,button:{name:"Open selection",toolbar:!0,contextMenu:!0,group:"Actions",icon:qS.openFiles}},function(e){var t=e.state;(0,e.reduxDispatch)(XO(rx.OpenFiles,{files:t.selectedFilesForAction}))}),SelectAllFiles:ex({id:"select_all_files",hotkeys:["ctrl+a"],button:{name:"Select all files",toolbar:!0,contextMenu:!0,group:"Actions",icon:qS.selectAllFiles},selectionTransform:function(e){var t=e.fileIds,n=e.hiddenFileIds,r=new Set;return t.map(function(e){n.has(e)||r.add(e)}),r}}),ClearSelection:ex({id:"clear_selection",hotkeys:["escape"],button:{name:"Clear selection",toolbar:!0,contextMenu:!0,group:"Actions",icon:qS.clearSelection},selectionTransform:function(e){return 0===e.prevSelection.size?null:new Set}}),EnableListView:ex({id:"enable_list_view",fileViewConfig:{mode:QS.List,entryHeight:30},button:{name:"Switch to List view",toolbar:!0,icon:qS.list,iconOnly:!0}}),EnableCompactView:ex({id:"enable_compact_view",fileViewConfig:{mode:QS.Compact,entryHeight:40,entryWidth:220},button:{name:"Switch to Compact view",toolbar:!0,icon:qS.compact,iconOnly:!0}}),EnableGridView:ex({id:"enable_grid_view",fileViewConfig:{mode:QS.Grid,entryWidth:165,entryHeight:130},button:{name:"Switch to Grid view",toolbar:!0,icon:qS.smallThumbnail,iconOnly:!0}}),SortFilesByName:ex({id:"sort_files_by_name",sortKeySelector:function(e){return e?e.name.toLowerCase():void 0},button:{name:"Sort by name",toolbar:!0,group:"Options"}}),SortFilesBySize:ex({id:"sort_files_by_size",sortKeySelector:function(e){return e?e.size:void 0},button:{name:"Sort by size",toolbar:!0,group:"Options"}}),SortFilesByDate:ex({id:"sort_files_by_date",sortKeySelector:function(e){return e?e.modDate:void 0},button:{name:"Sort by date",toolbar:!0,group:"Options"}}),ToggleHiddenFiles:ex({id:"toggle_hidden_files",hotkeys:["ctrl+h"],option:{id:$S,defaultValue:!0},button:{name:"Show hidden files",toolbar:!0,group:"Options"}}),ToggleShowFoldersFirst:ex({id:"toggle_show_folders_first",option:{id:KS,defaultValue:!0},button:{name:"Show folders first",toolbar:!0,group:"Options"}}),FocusSearchInput:ex({id:"focus_search_input",hotkeys:["ctrl+f"]},function(e){var t=(0,e.getReduxState)().focusSearchInput;t&&t()}),ToggleDarkMode:ex({id:"enable_dark_mode",option:{id:"dark_mode",defaultValue:!1},button:{name:"Enable dark mode",toolbar:!0,icon:qS.list,iconOnly:!0}})},ix={CopyFiles:ex({id:"copy_files",requiresSelection:!0,hotkeys:["ctrl+c"],button:{name:"Copy selection",toolbar:!0,contextMenu:!0,group:"Actions",icon:qS.copy}}),CreateFolder:ex({id:"create_folder",button:{name:"Create folder",toolbar:!0,tooltip:"Create a folder",icon:qS.folderCreate}}),UploadFiles:ex({id:"upload_files",button:{name:"Upload files",toolbar:!0,tooltip:"Upload files",icon:qS.upload}}),DownloadFiles:ex({id:"download_files",requiresSelection:!0,button:{name:"Download files",toolbar:!0,contextMenu:!0,group:"Actions",icon:qS.download}}),DeleteFiles:ex({id:"delete_files",requiresSelection:!0,hotkeys:["delete"],button:{name:"Delete files",toolbar:!0,contextMenu:!0,group:"Actions",icon:qS.trash}})},ax=LS({},rx,ox,ix),sx=[ax.MouseClickFile,ax.KeyboardClickFile,ax.StartDragNDrop,ax.EndDragNDrop,ax.MoveFiles,ax.ChangeSelection,ax.OpenFiles,ax.OpenParentFolder,ax.OpenFileContextMenu],lx=[ax.OpenSelection,ax.SelectAllFiles,ax.ClearSelection,ax.EnableListView,ax.EnableGridView,ax.SortFilesByName,ax.SortFilesBySize,ax.SortFilesByDate,ax.ToggleHiddenFiles,ax.ToggleShowFoldersFirst,ax.FocusSearchInput],cx={instanceId:"CHONKY_INVALID_ID",externalFileActionHandler:null,rawFileActions:[],fileActionsErrorMessages:[],fileActionMap:{},fileActionIds:[],toolbarItems:[],contextMenuItems:[],rawFolderChain:null,folderChainErrorMessages:[],folderChain:[],rawFiles:[],filesErrorMessages:[],fileMap:{},fileIds:[],cleanFileIds:[],sortedFileIds:[],hiddenFileIdMap:{},focusSearchInput:null,searchString:"",searchMode:"currentFolder",selectionMap:{},disableSelection:!1,fileViewConfig:ax.EnableGridView.fileViewConfig,sortActionId:null,sortOrder:jS.ASC,optionMap:{},thumbnailGenerator:null,doubleClickDelay:300,disableDragAndDrop:!1,clearSelectionOnOutsideClick:!0,lastClick:null,contextMenuMounted:!1,contextMenuConfig:null},ux={setExternalFileActionHandler:function(e,t){var n;e.externalFileActionHandler=null!=(n=t.payload)?n:null},setRawFileActions:function(e,t){e.rawFileActions=t.payload},setFileActionsErrorMessages:function(e,t){e.fileActionsErrorMessages=t.payload},setFileActions:function(e,t){var n={};t.payload.map(function(e){return n[e.id]=e});var r=t.payload.map(function(e){return e.id});e.fileActionMap=n,e.fileActionIds=r},updateFileActionMenuItems:function(e,t){var n=t.payload;e.toolbarItems=n[0],e.contextMenuItems=n[1]},setRawFolderChain:function(e,t){var n=t.payload,r=zS("folderChain",n),o=r.sanitizedArray,i=r.errorMessages;e.rawFolderChain=n,e.folderChain=o,e.folderChainErrorMessages=i},setRawFiles:function(e,t){var n=t.payload,r=zS("files",n),o=r.sanitizedArray,i=r.errorMessages;e.rawFiles=n,e.filesErrorMessages=i;var a={};o.forEach(function(e){e&&(a[e.id]=e)});var s=o.map(function(e){return e?e.id:null}),l=s.filter(function(e){return!!e});e.fileMap=a,e.fileIds=s,e.cleanFileIds=l;for(var c=0,u=Object.keys(e.selectionMap);c<u.length;c++){var d=u[c];a[d]||delete e.selectionMap[d]}},setSortedFileIds:function(e,t){e.sortedFileIds=t.payload},setHiddenFileIds:function(e,t){e.hiddenFileIdMap=t.payload;for(var n=0,r=Object.keys(e.selectionMap);n<r.length;n++){var o=r[n];e.hiddenFileIdMap[o]&&delete e.selectionMap[o]}},setFocusSearchInput:function(e,t){e.focusSearchInput=t.payload},setSearchString:function(e,t){e.searchString=t.payload},selectAllFiles:function(e){e.fileIds.filter(function(t){return t&&WS.isSelectable(e.fileMap[t])}).map(function(t){return t?e.selectionMap[t]=!0:null})},selectFiles:function(e,t){e.disableSelection||(t.payload.reset&&(e.selectionMap={}),t.payload.fileIds.filter(function(t){return t&&WS.isSelectable(e.fileMap[t])}).map(function(t){return e.selectionMap[t]=!0}))},toggleSelection:function(e,t){if(!e.disableSelection){var n=!!e.selectionMap[t.payload.fileId];t.payload.exclusive&&(e.selectionMap={}),n?delete e.selectionMap[t.payload.fileId]:WS.isSelectable(e.fileMap[t.payload.fileId])&&(e.selectionMap[t.payload.fileId]=!0)}},clearSelection:function(e){e.disableSelection||0!==Object.keys(e.selectionMap).length&&(e.selectionMap={})},setSelectionDisabled:function(e,t){e.disableSelection=t.payload,0!==Object.keys(e.selectionMap).length&&(e.selectionMap={})},setFileViewConfig:function(e,t){e.fileViewConfig=t.payload},setSort:function(e,t){e.sortActionId=t.payload.actionId,e.sortOrder=t.payload.order},setOptionDefaults:function(e,t){for(var n=0,r=Object.keys(t.payload);n<r.length;n++){var o=r[n];o in e.optionMap||(e.optionMap[o]=t.payload[o])}},toggleOption:function(e,t){e.optionMap[t.payload]=!e.optionMap[t.payload]},setThumbnailGenerator:function(e,t){e.thumbnailGenerator=t.payload},setDoubleClickDelay:function(e,t){e.doubleClickDelay=t.payload},setDisableDragAndDrop:function(e,t){e.disableDragAndDrop=t.payload},setClearSelectionOnOutsideClick:function(e,t){e.clearSelectionOnOutsideClick=t.payload},setLastClickIndex:function(e,t){e.lastClick=t.payload},setContextMenuMounted:function(e,t){e.contextMenuMounted=t.payload},showContextMenu:function(e,t){e.contextMenuConfig=t.payload},hideContextMenu:function(e){e.contextMenuConfig&&(e.contextMenuConfig=null)}},dx=function(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:Tw(e.initialState),o=e.reducers||{},i=Object.keys(o),a={},s={},l={};function c(){var t="function"==typeof e.extraReducers?Iw(e.extraReducers):[e.extraReducers],n=t[0],o=void 0===n?{}:n,i=t[1],a=void 0===i?[]:i,l=t[2],c=void 0===l?void 0:l,u=Sw(Sw({},o),s);return function(e,t,n){void 0===n&&(n=[]);var r,o=Iw(t),i=o[0],a=o[1],s=o[2];if(function(e){return"function"==typeof e}(e))r=function(){return Tw(e())};else{var l=Tw(e);r=function(){return l}}function c(e,t){void 0===e&&(e=r());var n=vw([i[t.type]],a.filter(function(e){return(0,e.matcher)(t)}).map(function(e){return e.reducer}));return 0===n.filter(function(e){return!!e}).length&&(n=[s]),n.reduce(function(e,n){if(n){var r;if(vA(e))return void 0===(r=n(e,t))?e:r;if(yA(e))return pw(e,function(e){return n(e,t)});if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e},e)}return c.getInitialState=r,c}(r,function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0,r=a;n<r.length;n++){var o=r[n];e.addMatcher(o.matcher,o.reducer)}c&&e.addDefaultCase(c)})}return i.forEach(function(e){var n,r,i=o[e],c=t+"/"+e;"reducer"in i?(n=i.reducer,r=i.prepare):n=i,a[e]=n,s[c]=n,l[e]=r?Dw(c,r):Dw(c)}),{name:t,reducer:function(e,t){return n||(n=c()),n(e,t)},actions:l,caseReducers:a,getInitialState:function(){return n||(n=c()),n.getInitialState()}}}({name:"root",initialState:cx,reducers:ux}),px=dx.actions,hx=dx.reducer,fx=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=(0,h.useCallback)(function(t){return e.apply(void 0,n)(t)},[e].concat(n));return uA(o)},gx=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=lA();(0,h.useEffect)(function(){o(e.apply(void 0,n))},[o,e].concat(n))},mx=function(e,t){var n=lA();(0,h.useEffect)(function(){n(e(t))},[n,e,t])},vx=function(){return f().createElement("span",{title:"No icon component found. Please follow Chonky installation instructions to provide a pre-made icon component (or a custom icon)."},"⚠️")},yx={fileActions:null,onFileAction:null,thumbnailGenerator:null,doubleClickDelay:300,disableSelection:!1,disableDefaultFileActions:!1,disableDragAndDrop:!1,disableDragAndDropProvider:!1,defaultSortActionId:ax.SortFilesByName.id,defaultFileViewActionId:ax.EnableGridView.id,clearSelectionOnOutsideClick:!0,iconComponent:vx,darkMode:!1,i18n:{}};!function(e){e.Toolbar="toolbar",e.FileList="fileList",e.FileEntry="fileEntry",e.FileContextMenu="contextMenu",e.FileActions="actions",e.FileActionGroups="actionGroups"}(JO||(JO={}));var Ax=function(e,t){return"chonky."+e+"."+t},wx=function(e,t){return"chonky."+JO.FileActions+"."+e+"."+t},bx=function(e){var t=Hf();return(0,h.useMemo)(function(){var n,r;if(!e)return{buttonName:"",buttonTooltip:void 0};var o,i=t.formatMessage({id:wx(e.id,"button.name"),defaultMessage:null==(n=e.button)?void 0:n.name}),a=void 0;return null!=(r=e.button)&&r.tooltip&&(a=t.formatMessage({id:wx(e.id,"button.tooltip"),defaultMessage:null==(o=e.button)?void 0:o.tooltip})),{buttonName:i,buttonTooltip:a}},[e,t])},_x=function(e){var t=Hf(),n=(0,h.useContext)(Ex);return(0,h.useMemo)(function(){return{fileModDateString:n.formatFileModDate(t,e),fileSizeString:n.formatFileSize(t,e)}},[e,n,t])},Cx={formatFileModDate:function(e,t){var n=WS.getModDate(t);return n?e.formatDate(n,{dateStyle:"medium",timeStyle:"short"}):null},formatFileSize:function(e,t){if(!t||"number"!=typeof t.size)return null;var n=t.size,r=Jw()(n,{bits:!1,output:"object"});return"B"===r.symbol?Math.round(r.value/10)/100+" KB":"KB"===r.symbol?Math.round(r.value)+" "+r.symbol:r.value+" "+r.symbol}},Ex=(0,h.createContext)(Cx),Sx=(0,h.createContext)(vx),Ox=["3g2","3gp","3gpp","asf","asx","avi","dvb","f4v","fli","flv","fvt","h261","h263","h264","jpgm","jpgv","jpm","m1v","m2v","m4u","m4v","mj2","mjp2","mk3d","mks","mkv","mng","mov","movie","mp4","mp4v","mpe","mpeg","mpg","mpg4","mxu","ogv","pyv","qt","smv","ts","uvh","uvm","uvp","uvs","uvu","uvv","uvvh","uvvm","uvvp","uvvs","uvvu","uvvv","viv","vob","webm","wm","wmv","wmx","wvx"],xx=["3ds","apng","azv","bmp","bmp","btif","cgm","cmx","djv","djvu","drle","dwg","dxf","emf","exr","fbs","fh","fh4","fh5","fh7","fhc","fits","fpx","fst","g3","gif","heic","heics","heif","heifs","ico","ico","ief","jls","jng","jp2","jpe","jpeg","jpf","jpg","jpg2","jpm","jpx","jxr","ktx","mdi","mmr","npx","pbm","pct","pcx","pcx","pgm","pic","png","pnm","ppm","psd","pti","ras","rgb","rlc","sgi","sid","sub","svg","svgz","t38","tap","tfx","tga","tif","tiff","uvg","uvi","uvvg","uvvi","vtf","wbmp","wdp","webp","wmf","xbm","xif","xpm","xwd"],Dx=["3gpp","aac","adp","aif","aifc","aiff","au","caf","dra","dts","dtshd","ecelp4800","ecelp7470","ecelp9600","eol","flac","kar","lvp","m2a","m3a","m3u","m4a","m4a","mid","midi","mka","mp2","mp2a","mp3","mp3","mp4a","mpga","oga","ogg","pya","ra","ra","ram","rip","rmi","rmp","s3m","sil","snd","spx","uva","uvva","wav","wav","wav","wax","weba","wma","xm"],Px=["#bbbbbb","#d65c5c","#d6665c","#d6705c","#d67a5c","#d6855c","#d68f5c","#d6995c","#d6a35c","#d6ad5c","#d6b85c","#d6c25c","#d6cc5c","#d6d65c","#ccd65c","#c2d65c","#b8d65c","#add65c","#a3d65c","#99d65c","#8fd65c","#85d65c","#7ad65c","#70d65c","#66d65c","#5cd65c","#5cd666","#5cd670","#5cd67a","#5cd685","#5cd68f","#5cd699","#5cd6a3","#5cd6ad","#5cd6b8","#5cd6c2","#5cd6cc","#5cd6d6","#5cccd6","#5cc2d6","#5cb8d6","#5cadd6","#5ca3d6","#5c99d6","#5c8fd6","#5c85d6","#5c7ad6","#5c70d6","#5c66d6","#5c5cd6","#665cd6","#705cd6","#7a5cd6","#855cd6","#8f5cd6","#995cd6","#a35cd6","#ad5cd6","#b85cd6","#c25cd6","#cc5cd6","#d65cd6","#d65ccc","#d65cc2","#d65cb8","#d65cad","#d65ca3","#d65c99","#d65c8f","#d65c85","#d65c7a","#d65c70","#d65c66"],Mx=["#777","#8f3d3d","#8f443d","#8f4b3d","#8f523d","#8f583d","#8f5f3d","#8f663d","#8f6d3d","#8f743d","#8f7a3d","#8f813d","#8f883d","#8f8f3d","#888f3d","#818f3d","#7a8f3d","#748f3d","#6d8f3d","#668f3d","#5f8f3d","#588f3d","#528f3d","#4b8f3d","#448f3d","#3d8f3d","#3d8f44","#3d8f4b","#3d8f52","#3d8f58","#3d8f5f","#3d8f66","#3d8f6d","#3d8f74","#3d8f7a","#3d8f81","#3d8f88","#3d8f8f","#3d888f","#3d818f","#3d7a8f","#3d748f","#3d6d8f","#3d668f","#3d5f8f","#3d588f","#3d528f","#3d4b8f","#3d448f","#3d3d8f","#443d8f","#4b3d8f","#523d8f","#583d8f","#5f3d8f","#663d8f","#6d3d8f","#743d8f","#7a3d8f","#813d8f","#883d8f","#8f3d8f","#8f3d88","#8f3d81","#8f3d7a","#8f3d74","#8f3d6d","#8f3d66","#8f3d5f","#8f3d58","#8f3d52","#8f3d4b","#8f3d44"],Tx=function(){for(var e=0,t=[[qS.license,["license"]],[qS.config,["sfk","ini","yml","toml","iml"]],[qS.model,["3ds","obj","ply","fbx"]],[qS.database,["csv","json","sql","sqlite","sqlite3","npy","npz","rec","idx","hdf5"]],[qS.text,["txt","md","mdx"]],[qS.archive,["zip","rar","tar","tar.gz","7z"]],[qS.image,xx],[qS.video,Ox],[qS.code,["html","php","css","sass","scss","less","cpp","h","hpp","c","xml"]],[qS.info,["bib","readme","nfo"]],[qS.key,["pem","pub"]],[qS.lock,["lock","lock.json","shrinkwrap.json"]],[qS.music,Dx],[qS.terminal,["run","sh"]],[qS.trash,[".Trashes"]],[qS.users,["authors","contributors"]],[qS.linux,["AppImage"]],[qS.ubuntu,["deb"]],[qS.windows,["exe"]],[qS.rust,["rs","rlib"]],[qS.python,["py","ipynb"]],[qS.nodejs,["js","jsx","ts","tsx","d.ts"]],[qS.php,["php"]],[qS.git,[".gitignore"]],[qS.adobe,["psd"]],[qS.pdf,["pdf"]],[qS.excel,["xls","xlsx"]],[qS.word,["doc","docx","odt"]],[qS.flash,["swf"]]],n=new(tb())({ignoreCase:!0}),r=0,o=t;r<o.length;r++)for(var i=o[r],a=i[0],s=i[1],l=0;l<s.length;++l){var c={icon:a,colorCode:(e+=5)%(Px.length-1)+1};n.put(s[l],c,!0)}return n}(),Rx={colors:{debugRed:"#fabdbd",debugBlue:"#bdd8fa",debugGreen:"#d2fabd",debugPurple:"#d2bdfa",debugYellow:"#fae9bd",textActive:"#09f"},fontSizes:{rootPrimary:15},margins:{rootLayoutMargin:8},toolbar:{size:30,lineHeight:"30px",fontSize:15,buttonRadius:4},dnd:{canDropColor:"green",cannotDropColor:"red",canDropMask:"rgba(180, 235, 180, 0.75)",cannotDropMask:"rgba(235, 180, 180, 0.75)",fileListCanDropMaskOne:"rgba(180, 235, 180, 0.1)",fileListCanDropMaskTwo:"rgba(180, 235, 180, 0.2)",fileListCannotDropMaskOne:"rgba(235, 180, 180, 0.1)",fileListCannotDropMaskTwo:"rgba(235, 180, 180, 0.2)"},dragLayer:{border:"solid 2px #09f",padding:"7px 10px",borderRadius:2},fileList:{desktopGridGutter:8,mobileGridGutter:5},gridFileEntry:{childrenCountSize:"1.6em",iconColorFocused:"#000",iconSize:"2.4em",iconColor:"#fff",borderRadius:5,fontSize:14,fileColorTint:"rgba(255, 255, 255, 0.4)",folderBackColorTint:"rgba(255, 255, 255, 0.1)",folderFrontColorTint:"rgba(255, 255, 255, 0.4)"},listFileEntry:{propertyFontSize:14,iconFontSize:"1.1em",iconBorderRadius:5,fontSize:14}},Ix={gridFileEntry:{fileColorTint:"rgba(50, 50, 50, 0.4)",folderBackColorTint:"rgba(50, 50, 50, 0.4)",folderFrontColorTint:"rgba(50, 50, 50, 0.15)"}},Fx={fontSizes:{rootPrimary:13},margins:{rootLayoutMargin:4},toolbar:{size:28,lineHeight:"28px",fontSize:13},gridFileEntry:{fontSize:13},listFileEntry:{propertyFontSize:12,iconFontSize:"1em",fontSize:13}},kx=function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=_u(),r=nb({theme:n,name:"MuiUseMediaQuery",props:{}}),o="function"==typeof e?e(n):e;o=o.replace(/^@media( ?)/m,"");var i="undefined"!=typeof window&&void 0!==window.matchMedia,a=Sc({},r,t),s=a.defaultMatches,l=void 0!==s&&s,c=a.matchMedia,u=void 0===c?i?window.matchMedia:null:c,d=a.noSsr,p=void 0!==d&&d,f=a.ssrMatchMedia,g=void 0===f?null:f,m=h.useState(function(){return p&&i?u(o).matches:g?g(o).matches:l}),v=m[0],y=m[1];return h.useEffect(function(){var e=!0;if(i){var t=u(o),n=function(){e&&y(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}},[o,u,i]),v}("(max-width:480px)")},Lx=function(e,t){return"repeating-linear-gradient(45deg,"+e+","+e+" 10px,"+t+" 0,"+t+" 20px)"},Bx=function(e){return Xy(e)},Nx=function(e){var t={},n=Xy(function(n){var r=e(n),o={};return Object.keys(r).map(function(e){var n="chonky-"+e;o["@global ."+n]=r[e],t[e]=n}),o});return function(){var e=n.apply(void 0,arguments),r={};return Object.keys(t).map(function(e){r[e]=t[e]}),LS({},r,e)}},jx=function(e){return[e,"!important"]},Ux=Oo(),Vx=f().memo(f().forwardRef(function(e,t){var n;return mx(px.setRawFiles,null!=(n=e.files)?n:cx.rawFiles),mx(px.setRawFolderChain,e.folderChain),gx(KO,nx(e.fileActions,yx.fileActions),nx(e.disableDefaultFileActions,yx.disableDefaultFileActions)),gx(px.setExternalFileActionHandler,nx(e.onFileAction,yx.onFileAction)),gx(px.setSelectionDisabled,nx(e.disableSelection,yx.disableSelection,"boolean")),gx(YO,nx(e.defaultSortActionId,yx.defaultSortActionId)),gx(qO,nx(e.defaultFileViewActionId,yx.defaultFileViewActionId,"string")),gx(px.setThumbnailGenerator,nx(e.thumbnailGenerator,yx.thumbnailGenerator)),gx(px.setDoubleClickDelay,nx(e.doubleClickDelay,yx.doubleClickDelay,"number")),gx(px.setDisableDragAndDrop,nx(e.disableDragAndDrop,yx.disableDragAndDrop,"boolean")),gx(px.setClearSelectionOnOutsideClick,nx(e.clearSelectionOnOutsideClick,yx.clearSelectionOnOutsideClick,"boolean")),function(e){var t=sA(),n=lA();(0,h.useImperativeHandle)(e,function(){return{getFileSelection:function(){var e=dO(t.getState());return new Set(Object.keys(e))},setFileSelection:function(e,t){void 0===t&&(t=!0);var r=Array.from(e);n(px.selectFiles({fileIds:r,reset:t}))},requestFileAction:function(e,t){return Promise.resolve(n(XO(e,t))).then()}}},[t,n])}(t),null}));Vx.displayName="ChonkyBusinessLogicInner";var Hx=f().memo(Vx);Hx.displayName="ChonkyBusinessLogic";var Gx=function(){return!!(0,h.useContext)(Kd).dragDropManager},Wx="dnd-chonky-file-entry",zx={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},$x=function(e,t,n){if(!e||!t||!n)return{display:"none"};var r="translate("+(e.x+(n.x-t.x))+"px, "+(e.y+(n.y-t.y))+"px)";return{transform:r,WebkitTransform:r}},Kx=function(){var e,t,n,r,o,i=Qx(),a=(e=function(e){return{item:e.getItem(),itemType:e.getItemType(),initialCursorOffset:e.getInitialClientOffset(),initialFileOffset:e.getInitialSourceClientOffset(),currentFileOffset:e.getSourceClientOffset(),isDragging:e.isDragging()}},n=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(t.push(i.value),2!==t.length);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}}(e)||function(e){if(e){if("string"==typeof e)return Ap(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ap(e,2):void 0}}(e)||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.")}()}(Xd(t=ep().getMonitor(),e)),r=n[0],o=n[1],(0,h.useEffect)(function(){return t.subscribeToOffsetChange(o)}),(0,h.useEffect)(function(){return t.subscribeToStateChange(o)}),r),s=a.itemType,l=a.item,c=a.initialCursorOffset,u=a.initialFileOffset,d=a.currentFileOffset;if(!a.isDragging||s!==Wx||!l.payload)return null;var p=l.payload.selectedFiles.length;return f().createElement("div",{style:zx},f().createElement("div",{style:$x(c,u,d)},f().createElement("div",{className:i.fileDragPreview},f().createElement("b",null,l.payload.draggedFile.name),p>1&&f().createElement(f().Fragment,null," and ",f().createElement("strong",null,p-1," other file",p-1!=1?"s":"")))))},Qx=Nx(function(e){return{fileDragPreview:{boxShadow:"2px 2px 5px "+e.palette.divider,backgroundColor:e.palette.background.default,borderRadius:e.dragLayer.borderRadius,fontSize:e.fontSizes.rootPrimary,color:e.palette.text.primary,padding:e.dragLayer.padding,border:e.dragLayer.border,display:"inline-block"}}}),qx=f().memo(function(e){var t=e.fileActionId,n=lA(),r=fx(JS,t);return(0,h.useEffect)(function(){if(r&&r.hotkeys&&0!==r.hotkeys.length){var e=r.hotkeys.join(","),t=function(e){e.preventDefault(),n(XO(r,void 0))};return f_(e,t),function(){return f_.unbind(e,t)}}},[n,r]),null}),Yx=function(e){var t=e.children,n=lA(),r=uA(ZS),o=uA(CO),i=uA(EO),a=(0,h.useCallback)(function(e){var t;i&&(t=e.target,!tx(t,function(e){return e.tagName&&"button"===e.tagName.toLowerCase()}))&&n(px.clearSelection())},[n,i]),s=(0,h.useMemo)(function(){return r.map(function(e){return f().createElement(qx,{key:"file-action-listener-"+e,fileActionId:e})})},[r]),l=Gx(),c=function(){var e=lA(),t=HS(uA(SO));return(0,h.useCallback)(function(n){if(t.current&&!n.altKey){n.preventDefault();var r,o,i=(r=n.target,o=tx(r,function(e){return e.tagName&&"div"===e.tagName.toLowerCase()&&e.dataset&&e.dataset.chonkyFileId}),o?o.dataset.chonkyFileId:null);e(XO(ax.OpenFileContextMenu,{clientX:n.clientX,clientY:n.clientY,triggerFileId:i}))}},[t,e])}(),u=Xx();return f().createElement($b,{onClickAway:a},f().createElement(Nb,{className:u.chonkyRoot,onContextMenu:c},!o&&l&&f().createElement(Kx,null),s,t||null))},Xx=Nx(function(e){return{chonkyRoot:{backgroundColor:e.palette.background.paper,border:"solid 1px "+e.palette.divider,padding:e.margins.rootLayoutMargin,fontSize:e.fontSizes.rootPrimary,color:e.palette.text.primary,touchAction:"manipulation",fontFamily:"sans-serif",flexDirection:"column",boxSizing:"border-box",textAlign:"left",borderRadius:4,display:"flex",height:"100%",webkitTouchCallout:"none",webkitUserSelect:"none",mozUserSelect:"none",msUserSelect:"none",userSelect:"none"}}}),Zx=f().forwardRef(function(e,t){var n,r=e.instanceId,o=e.iconComponent,i=e.children,a=nx(e.disableDragAndDrop,yx.disableDragAndDrop,"boolean"),s=nx(e.disableDragAndDropProvider,yx.disableDragAndDropProvider,"boolean"),l=nx(e.darkMode,yx.darkMode,"boolean"),c=nx(e.i18n,yx.i18n),u=(0,h.useMemo)(function(){return LS({},Cx,null==c?void 0:c.formatters)},[c]),d=function(e){var t=VS(function(){return Rw({preloadedState:LS({},cx,{instanceId:e}),reducer:hx,middleware:function(e){return e({serializableCheck:!1})},devTools:{name:"chonky_"+e}})});return function(e){(0,h.useEffect)(function(){var t=Xw()(function(){return dO(e.getState())}),n=[e.subscribe(t(function(t,n){if(t!==n){var r=pO(e.getState()),o=new Set(r);e.dispatch(XO(ax.ChangeSelection,{selection:o}))}}))];return function(){for(var e,t=NS(n);!(e=t()).done;)(0,e.value)()}},[e])}(t),t}(VS(function(){return null!=r?r:pA().generate()})),p=kx(),g=(0,h.useMemo)(function(){var e=wu({palette:{type:l?"dark":"light"}}),t=Ou()(e,Ou()(Rx,l?Ix:{}));return p?Ou()(t,Fx):t},[l,p]),m=f().createElement(f().Fragment,null,f().createElement(Hx,Object.assign({ref:t},e)),f().createElement(Yx,null,i));return f().createElement(Ag,Object.assign({locale:"en",defaultLocale:"en"},c),f().createElement(Ex.Provider,{value:u},f().createElement(rA,{store:d},f().createElement(Og,{theme:g},f().createElement(Eu,{theme:g},f().createElement(Sx.Provider,{value:null!=(n=null!=o?o:yx.iconComponent)?n:vx},a||s?m:f().createElement(_p,{backend:Kp},m)))))))});Zx.displayName="FileBrowser";var Jx,eD=function(e){var t=e.file,n=e.forceDisableDrop,r=e.includeChildrenDrops,o=HS(uA(nO)),i=(0,h.useCallback)(function(e,n){if(n.canDrop())return{dropTarget:t}},[t]),a=(0,h.useCallback)(function(e,i){if(n||!WS.isDroppable(t)||!i.isOver({shallow:!0})&&!r)return!1;var a=e.payload,s=a.source,l=a.draggedFile,c=a.selectedFiles,u=new Set;u.add(t.id),o.current.map(function(e){e&&u.add(e.id)});for(var d,p=NS([l].concat(c));!(d=p()).done;){var h=d.value;if(u.has(h.id))return!1}return t.id!==(null==s?void 0:s.id)},[n,t,r,o]),s=(0,h.useCallback)(function(e){return{isOver:e.isOver(),isOverCurrent:e.isOver({shallow:!0}),canDrop:e.canDrop()}},[]),l=function(){var e=Gx(),t=(0,h.useCallback)(function(){return[{},function(){return null}]},[]);return(e?yp:t).apply(void 0,arguments)}({accept:Wx,drop:i,canDrop:a,collect:s}),c=l[0];return{dndIsOver:c.isOver,dndIsOverCurrent:c.isOverCurrent,dndCanDrop:c.canDrop,drop:l[1]}},tD=function(e,t){var n=lA(),r=HS(uA(rO));(0,h.useEffect)(function(){var o,i=null;return t.dndIsOver&&WS.isDndOpenable(e)&&e.id!==(null==(o=r.current)?void 0:o.id)&&(i=setTimeout(function(){return n(XO(rx.OpenFiles,{targetFile:e,files:[e]}))},1500)),function(){i&&clearTimeout(i)}},[n,e,t.dndIsOver,r])},nD=f().memo(function(e){var t=function(e,t){return e+Math.floor(Math.random()*Math.floor(t-e))}(e.minLength,e.maxLength),n="&nbsp;".repeat(t),r=rD();return f().createElement("span",{className:r.textPlaceholder,dangerouslySetInnerHTML:{__html:n}})}),rD=Bx(function(){return{"@keyframes loading-placeholder":{"0%":{opacity:.2},"50%":{opacity:.4},"100%":{opacity:.2}},textPlaceholder:{animationName:"$loading-placeholder",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDuration:"1.5s",backgroundColor:"#ccc",whiteSpace:"nowrap",overflow:"hidden",borderRadius:4,maxWidth:"40%",minWidth:20}}}),oD=function(e){return(0,h.useMemo)(function(){return LS({role:"listitem"},{"data-test-id":"file-entry","data-chonky-file-id":e?e.id:void 0})},[e])},iD=function(e,t,n){var r=function(e){return(0,h.useMemo)(function(){return e?!0===e.isDir?{icon:qS.folder,colorCode:0}:Tx.getWithCheckpoints(e.name,".",!0)||{icon:qS.file,colorCode:32}:{icon:qS.loading,colorCode:0}},[e])}(e),o=sD(e),i=o.thumbnailUrl,a=o.thumbnailLoading;return(0,h.useMemo)(function(){var o=i?Mx[r.colorCode]:Px[r.colorCode],s=a||!e,l=a?qS.loading:r.icon;return{childrenCount:WS.getChildrenCount(e),icon:e&&void 0!==e.icon?e.icon:l,iconSpin:s,thumbnailUrl:i,color:e&&void 0!==e.color?e.color:o,selected:t,focused:!!n}},[e,n,r,t,a,i])},aD=function(e){var t=null;return e.dndIsOver?t=e.dndCanDrop?qS.dndCanDrop:qS.dndCannotDrop:e.dndIsDragging&&(t=qS.dndDragging),t},sD=function(e){var t=uA(bO),n=(0,h.useState)(null),r=n[0],o=n[1],i=(0,h.useState)(!1),a=i[0],s=i[1],l=(0,h.useRef)(0);return(0,h.useEffect)(function(){var n=!1;return e&&(t?(0===l.current&&s(!0),l.current++,Promise.resolve().then(function(){return t(e)}).then(function(e){n||(s(!1),e&&"string"==typeof e&&o(e))}).catch(function(e){n||s(!1),GS.error('User-defined "thumbnailGenerator" handler threw an error: '+e.message)})):e.thumbnailUrl&&o(e.thumbnailUrl)),function(){n=!0}},[e,o,s,t]),{thumbnailUrl:r,thumbnailLoading:a}};!function(e){e[e.Hidden=0]="Hidden",e[e.Disabled=1]="Disabled",e[e.Default=2]="Default",e[e.Active=3]="Active"}(Jx||(Jx={}));var lD=function(e){var t=lA(),n=fx(JS,e);return(0,h.useCallback)(function(){return t(XO(n,void 0))},[t,n])},cD=function(e){var t,n=uA(oO),r=uA(vO),o=uA(yO),i=uA(AO),a=fx(JS,e),s=fx(wO,null==a||null==(t=a.option)?void 0:t.id),l=0===fx(mO,e);return(0,h.useMemo)(function(){var e,t;if(!a)return{icon:null,active:!1,disabled:!0};var c=null!=(e=null==(t=a.button)?void 0:t.icon)?e:null;a.sortKeySelector?c=o===a.id?i===jS.ASC?qS.sortAsc:qS.sortDesc:qS.placeholder:a.option&&(c=s?qS.toggleOn:qS.toggleOff);var u=a.id===o,d=a.fileViewConfig===r,p=!!a.option&&!!s,h=!1,f=!1;void 0!==a.customVisibility&&(h=a.customVisibility()===Jx.Disabled,f=a.customVisibility()===Jx.Active);var g=u||d||p||f,m=!!a.requiresSelection&&l||h;return a.id===ax.OpenParentFolder.id&&(m=m||!WS.isOpenable(n)),{icon:c,active:g,disabled:m}},[n,r,o,i,a,s,l])},uD=f().memo(function(e){var t,n=e.className,r=e.text,o=e.tooltip,i=e.active,a=e.icon,s=e.iconOnly,l=e.onClick,c=e.disabled,u=e.dropdown,d=dD(),p=(0,h.useContext)(Sx),g=a||s?f().createElement("div",{className:s?"":d.iconWithText},f().createElement(p,{icon:a||qS.fallbackIcon,fixedWidth:!0})):null,m=Ux(((t={})[null!=n?n:""]=!0,t[d.baseButton]=!0,t[d.iconOnlyButton]=s,t[d.activeButton]=!!i,t));return f().createElement(J_,{className:m,onClick:l,title:o||r,disabled:c||!l},g,r&&!s&&f().createElement("span",null,r),u&&f().createElement("div",{className:d.iconDropdown},f().createElement(p,{icon:a||qS.dropdown,fixedWidth:!0})))}),dD=Nx(function(e){return{baseButton:{fontSize:jx(e.toolbar.fontSize),textTransform:jx("none"),letterSpacing:jx(0),minWidth:jx("auto"),lineHeight:e.toolbar.lineHeight,height:e.toolbar.size,paddingBottom:jx(0),paddingTop:jx(0)},iconWithText:{marginRight:8},iconOnlyButton:{width:e.toolbar.size,textAlign:"center"},iconDropdown:{fontSize:"0.7em",marginLeft:2,marginTop:1},activeButton:{color:jx(e.colors.textActive)}}}),pD=f().memo(function(e){var t=e.fileActionId,n=fx(JS,t),r=lD(t),o=cD(t),i=o.icon,a=o.active,s=o.disabled,l=bx(n),c=l.buttonName,u=l.buttonTooltip;if(!n)return null;var d=n.button;return d?void 0!==n.customVisibility&&n.customVisibility()===Jx.Hidden?null:f().createElement(uD,{text:c,tooltip:u,icon:i,iconOnly:d.iconOnly,active:a,onClick:r,disabled:s}):null}),hD=f().memo(function(e){var t,n=e.first,r=e.current,o=e.item,i=o.file,a=o.disabled,s=o.onClick,l=eD({file:i,forceDisableDrop:!i||r}),c=l.dndIsOver,u=l.dndCanDrop,d=l.drop,p=(0,h.useMemo)(function(){return{dndIsOver:c,dndCanDrop:u,dndIsDragging:!1}},[u,c]);tD(i,p);var g=aD(p),m=(0,h.useContext)(Sx),v=fD(p),y=Ux(((t={})[v.baseBreadcrumb]=!0,t[v.disabledBreadcrumb]=a,t[v.currentBreadcrumb]=r,t)),A=i?i.name:"Loading...",w=n&&void 0===(null==i?void 0:i.folderChainIcon)?qS.folder:null==i?void 0:i.folderChainIcon;return f().createElement("div",{className:v.buttonContainer,ref:i?d:null},i&&g&&f().createElement("div",{className:v.dndIndicator},f().createElement(m,{icon:g,fixedWidth:!0})),f().createElement(uD,{icon:w,className:y,text:A,disabled:a,onClick:s}))}),fD=Bx(function(e){return{buttonContainer:{position:"relative"},baseBreadcrumb:{color:function(t){var n=e.palette.text.primary;return t.dndIsOver&&(n=t.dndCanDrop?e.dnd.canDropColor:e.dnd.cannotDropColor),jx(n)}},disabledBreadcrumb:{color:function(){return jx(e.palette.text.disabled)}},currentBreadcrumb:{textDecoration:jx("underline")},dndIndicator:{color:function(t){return t.dndCanDrop?e.dnd.canDropColor:e.dnd.cannotDropColor},backgroundColor:function(t){return t.dndCanDrop?e.dnd.canDropMask:e.dnd.cannotDropMask},lineHeight:"calc("+e.toolbar.lineHeight+" - 6px)",transform:"translateX(-50%) translateY(-50%)",borderRadius:e.toolbar.buttonRadius,height:e.toolbar.size-6,width:e.toolbar.size-6,boxSizing:"border-box",position:"absolute",textAlign:"center",left:"50%",top:"50%",zIndex:5}}}),gD=f().memo(function(){var e=mD(),t=function(){var e=uA(nO),t=lA(),n=(0,h.useMemo)(function(){var n=[];if(!e)return n;for(var r=function(r){var o=e[r];n.push({file:o,disabled:!o,onClick:WS.isOpenable(o)&&r!==e.length-1?function(){return t(XO(ax.OpenFiles,{targetFile:o,files:[o]}))}:void 0})},o=0;o<e.length;++o)r(o);return n},[t,e]);return n}(),n=(0,h.useMemo)(function(){for(var e=[],n=0;n<t.length;++n){var r="folder-chain-"+n,o=f().createElement(hD,{key:r,first:0===n,current:n===t.length-1,item:t[n]});e.push(o)}return e},[t]);return f().createElement(Nb,{className:e.navbarWrapper},f().createElement(Nb,{className:e.navbarContainer},f().createElement(pD,{fileActionId:ax.OpenParentFolder.id}),f().createElement(X_,{className:e.navbarBreadcrumbs,classes:{separator:e.separator}},n)))}),mD=Nx(function(e){return{navbarWrapper:{paddingBottom:e.margins.rootLayoutMargin},navbarContainer:{display:"flex"},upDirectoryButton:{fontSize:jx(e.toolbar.fontSize),height:e.toolbar.size,width:e.toolbar.size,padding:"0px !important"},navbarBreadcrumbs:{fontSize:jx(e.toolbar.fontSize),flexGrow:100},separator:{marginRight:jx(4),marginLeft:jx(4)}}}),vD=f().forwardRef(function(e,t){var n,r=e.text,o=e.active,i=e.icon,a=e.onClick,s=e.disabled,l=yD(),c=(0,h.useContext)(Sx),u=Ux(((n={})[l.baseButton]=!0,n[l.activeButton]=o,n));return f().createElement(lE,{ref:t,className:u,onClick:a,disabled:s},i&&f().createElement(eE,{className:l.icon},f().createElement(c,{icon:i,fixedWidth:!0})),f().createElement(nE,{primaryTypographyProps:{className:l.text}},r))}),yD=Nx(function(e){return{baseButton:{lineHeight:jx(e.toolbar.lineHeight),height:jx(e.toolbar.size),minHeight:jx("auto"),minWidth:jx("auto"),padding:jx(20)},icon:{fontSize:jx(e.toolbar.fontSize),minWidth:jx("auto"),color:jx("inherit"),marginRight:8},text:{fontSize:jx(e.toolbar.fontSize)},activeButton:{color:jx(e.colors.textActive)}}}),AD=f().forwardRef(function(e,t){var n=e.fileActionId,r=e.onClickFollowUp,o=fx(JS,n),i=lD(n),a=cD(n),s=a.icon,l=a.active,c=a.disabled,u=bx(o).buttonName,d=(0,h.useCallback)(function(){i(),r&&r()},[r,i]);return o&&o.button?void 0!==o.customVisibility&&o.customVisibility()===Jx.Hidden?null:f().createElement(vD,{ref:t,text:u,icon:s,onClick:d,active:l,disabled:c}):null}),wD=f().memo(function(e){var t,n,r=e.name,o=e.fileActionIds,i=f().useState(null),a=i[0],s=i[1],l=(0,h.useCallback)(function(e){return s(e.currentTarget)},[s]),c=(0,h.useCallback)(function(){return s(null)},[s]),u=(0,h.useMemo)(function(){return o.map(function(e){return f().createElement(AD,{key:"menu-item-"+e,fileActionId:e,onClickFollowUp:c})})},[o,c]),d=(t=r,n=Hf(),(0,h.useMemo)(function(){return n.formatMessage({id:Ax(JO.FileActionGroups,t),defaultMessage:t})},[t,n])),p=bD();return f().createElement(f().Fragment,null,f().createElement(uD,{text:d,onClick:l,dropdown:!0}),f().createElement(ZC,{autoFocus:!0,keepMounted:!0,elevation:2,anchorEl:a,onClose:c,open:Boolean(a),transitionDuration:150,classes:{list:p.dropdownList}},u))}),bD=Nx(function(){return{dropdownList:{paddingBottom:jx(0),paddingTop:jx(0)}}}),_D=f().memo(function(){var e=CD(),t=uA(WO.getDisplayFileIds),n=uA(hO),r=uA(cO),o=Hf(),i=o.formatMessage({id:Ax(JO.Toolbar,"visibleFileCount"),defaultMessage:"{fileCount, plural,\n                =0 {# items}\n                one {# item}\n                other {# items}\n            }"},{fileCount:t.length}),a=o.formatMessage({id:Ax(JO.Toolbar,"selectedFileCount"),defaultMessage:"{fileCount, plural,\n                =0 {}\n                other {# selected}\n            }"},{fileCount:n}),s=o.formatMessage({id:Ax(JO.Toolbar,"hiddenFileCount"),defaultMessage:"{fileCount, plural,\n                =0 {}\n                other {# hidden}\n            }"},{fileCount:r});return f().createElement("div",{className:e.infoContainer},f().createElement(__,{className:e.infoText,variant:"body1"},i,(a||s)&&f().createElement("span",{className:e.extraInfoSpan},"(",f().createElement("span",{className:e.selectionSizeText},a),a&&s&&", ",f().createElement("span",{className:e.hiddenCountText},s),")")))}),CD=Nx(function(e){return{infoContainer:{height:e.toolbar.size,display:"flex"},infoText:{lineHeight:jx(e.toolbar.lineHeight),fontSize:jx(e.toolbar.fontSize),marginLeft:jx(12),height:e.toolbar.size},extraInfoSpan:{marginRight:jx(8),marginLeft:jx(8),opacity:.8},selectionSizeText:{color:e.colors.textActive},hiddenCountText:{}}}),ED=f().memo(function(){var e=Hf().formatMessage({id:Ax(JO.Toolbar,"searchPlaceholder"),defaultMessage:"Search"}),t=SD(),n=(0,h.useContext)(Sx),r=(0,h.useRef)(),o=lA(),i=uA(uO),a=(0,h.useState)(i),s=a[0],l=a[1],c=function(e){var t=(0,h.useState)(e),n=t[0],r=t[1];return(0,h.useEffect)(function(){var t=setTimeout(function(){r(e)},300);return function(){clearTimeout(t)}},[e,300]),[n,r]}(s),u=c[0],d=(0,h.useState)(!1),p=d[0],g=d[1];(0,h.useEffect)(function(){return o(px.setFocusSearchInput(function(){r.current&&r.current.focus()})),function(){o(px.setFocusSearchInput(null))}},[o]),(0,h.useEffect)(function(){g(!1),o(px.setSearchString(u))},[u,o]);var m=(0,h.useCallback)(function(e){g(!0),l(e.currentTarget.value)},[]),v=(0,h.useCallback)(function(e){"Escape"===e.key&&(l(""),o(px.setSearchString("")),r.current&&r.current.blur())},[o]);return f().createElement(rS,{className:t.searchFieldContainer,size:"small",variant:"outlined",value:s,placeholder:e,onChange:m,inputRef:r,InputProps:{onKeyUp:v,startAdornment:f().createElement(hE,{className:t.searchIcon,position:"start"},f().createElement(n,{icon:p?qS.loading:qS.search,spin:p})),className:t.searchFieldInput},inputProps:{className:t.searchFieldInputInner}})}),SD=Nx(function(e){return{searchFieldContainer:{height:e.toolbar.size,width:150},searchIcon:{fontSize:"0.9em",opacity:.75},searchFieldInput:{lineHeight:jx(0),padding:jx(0),margin:jx(0),fontSize:jx(e.toolbar.fontSize),borderRadius:e.toolbar.buttonRadius,height:e.toolbar.size-4,paddingLeft:jx(8),marginTop:2},searchFieldInputInner:{lineHeight:jx(e.toolbar.size-4+"px"),fontSize:jx(e.toolbar.fontSize),height:jx(e.toolbar.size-4),padding:jx([0,8,0,0]),margin:jx(0),"-webkit-appearance":"none"}}}),OD=f().memo(function(){var e=xD(),t=uA(eO),n=(0,h.useMemo)(function(){for(var e=[],n=0;n<t.length;++n){var r=t[n],o="toolbar-item-"+("string"==typeof r?r:r.name),i="string"==typeof r?f().createElement(pD,{key:o,fileActionId:r}):f().createElement(wD,{key:o,name:r.name,fileActionIds:r.fileActionIds});e.push(i)}return e},[t]);return f().createElement("div",{className:e.toolbarWrapper},f().createElement("div",{className:e.toolbarContainer},f().createElement("div",{className:e.toolbarLeft},f().createElement(ED,null),f().createElement(_D,null)),f().createElement("div",{className:e.toolbarRight},n)))}),xD=Nx(function(e){return{toolbarWrapper:{},toolbarContainer:{flexWrap:"wrap-reverse",display:"flex"},toolbarLeft:{paddingBottom:e.margins.rootLayoutMargin,flexWrap:"nowrap",flexGrow:1e4,display:"flex"},toolbarLeftFiller:{flexGrow:1e4},toolbarRight:{paddingBottom:e.margins.rootLayoutMargin,flexWrap:"nowrap",display:"flex"}}}),DD=function(e){var t=e.width,n=e.height,r=PD(),o=(0,h.useContext)(Sx),i={width:t,height:n},a=Hf().formatMessage({id:Ax(JO.FileList,"nothingToShow"),defaultMessage:"Nothing to show"});return f().createElement("div",{className:r.fileListEmpty,style:i},f().createElement("div",{className:r.fileListEmptyContent},f().createElement(o,{icon:qS.folderOpen}),"  ",a))},PD=Nx(function(e){return{fileListEmpty:{color:e.palette.text.disabled,position:"relative",textAlign:"center",fontSize:"1.2em"},fileListEmptyContent:{transform:"translateX(-50%) translateY(-50%)",position:"absolute",left:"50%",top:"50%"}}}),MD=function(e){var t=e.children,n=e.wrapperTag,r=e.passthroughProps,o=e.onSingleClick,i=e.onDoubleClick,a=e.onKeyboardClick,s=e.setFocused,l=function(e,t){var n=uA(_O),r=(0,h.useRef)({clickCount:0,clickTimeout:null});return(0,h.useCallback)(function(o){var i={altKey:o.altKey,ctrlKey:o.ctrlKey||o.metaKey,shiftKey:o.shiftKey};r.current.clickCount++,1===r.current.clickCount?(e&&(o.preventDefault(),e(i)),r.current.clickCount=1,r.current.clickTimeout=setTimeout(function(){return r.current.clickCount=0},n)):2===r.current.clickCount&&(t&&(o.preventDefault(),t(i)),"number"==typeof r.current.clickTimeout&&(clearTimeout(r.current.clickTimeout),r.current.clickTimeout=null,r.current.clickCount=0))},[n,e,t,r])}(o,i),c=function(e){return(0,h.useCallback)(function(t){if(e){var n={enterKey:"Enter"===t.nativeEvent.code,spaceKey:"Space"===t.nativeEvent.code,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey};(n.spaceKey||n.enterKey)&&(t.preventDefault(),t.stopPropagation(),e(n))}},[e])}(a),u={onFocus:(0,h.useCallback)(function(){return s&&s(!0)},[s]),onBlur:(0,h.useCallback)(function(){return s&&s(!1)},[s])};(o||i||a)&&(u.onClick=l,u.onKeyDown=c,u.tabIndex=0);var d=LS({},u,r);return f().createElement(n,Object.assign({},d),t)},TD=f().memo(function(e){var t=e.file,n=e.className,r=function(e){var t=(0,h.useMemo)(function(){var t=[];return WS.isHidden(e)&&t.push(qS.hidden),WS.isSymlink(e)&&t.push(qS.symlink),WS.isEncrypted(e)&&t.push(qS.lock),t},[e]),n=(0,h.useContext)(Sx),r=(0,h.useMemo)(function(){return t.map(function(e,t){return f().createElement(n,{key:"file-modifier-"+t,icon:e})})},[n,t]);return r}(t),o=function(e){return(0,h.useMemo)(function(){if(!e)return f().createElement(nD,{minLength:15,maxLength:20});var t,n,r,o=null;return WS.isDirectory(e)?t=e.name:(o=null!=(n=e.ext)?n:(r=e.name.split(".")).length?"."+r[r.length-1]:"",t=e.name.substr(0,e.name.length-o.length)),f().createElement(f().Fragment,null,t,o&&f().createElement("span",{className:"chonky-file-entry-description-title-extension"},o))},[e])}(t),i=RD();return f().createElement("span",{className:n,title:t?t.name:void 0},r.length>0&&f().createElement("span",{className:i.modifierIcons},r),o)});TD.displayName="FileEntryName";var RD=Bx(function(e){return{modifierIcons:{color:e.palette.text.hint,position:"relative",fontSize:"0.775em",paddingRight:5}}}),ID=f().memo(function(e){var t=e.file,n=e.selected,r=e.focused,o=iD(t,n,r),i=_x(t),a=i.fileModDateString,s=i.fileSizeString,l=FD(o),c=(0,h.useContext)(Sx),u=oD(t);return f().createElement("div",Object.assign({className:l.listFileEntry},u),f().createElement("div",{className:l.listFileEntryIcon},f().createElement(c,{icon:o.icon,spin:o.iconSpin,fixedWidth:!0})),f().createElement("div",{className:l.listFileEntryDescription},f().createElement("div",{className:l.listFileEntryName,title:t?t.name:void 0},f().createElement(TD,{file:t})),f().createElement("div",{className:l.listFileEntryProperties},f().createElement("div",{className:l.listFileEntryProperty},t?null!=a?a:f().createElement("span",null,"—"):f().createElement(nD,{minLength:5,maxLength:15})),f().createElement("div",{className:l.listFileEntryProperty},t?null!=s?s:f().createElement("span",null,"—"):f().createElement(nD,{minLength:10,maxLength:20})))),f().createElement("div",{className:"chonky-file-entry-outline"}),f().createElement("div",{className:"chonky-file-entry-selection"}))}),FD=Bx(function(e){return{listFileEntry:{fontSize:e.listFileEntry.fontSize,alignItems:"center",position:"relative",display:"flex",height:"100%"},listFileEntryIcon:{backgroundColor:function(e){return e.color},boxShadow:"inset rgba(255, 255, 255, 0.5) 0 0 0 999px",borderRadius:e.listFileEntry.iconBorderRadius,fontSize:e.listFileEntry.iconFontSize,color:"#fff",padding:8},listFileEntryDescription:{flexDirection:"column",display:"flex",flexGrow:1},listFileEntryName:{padding:[0,8,4,8]},listFileEntryProperties:{fontSize:e.listFileEntry.propertyFontSize,flexDirection:"row",display:"flex"},listFileEntryProperty:{padding:[0,8],opacity:.4}}}),kD=f().memo(function(e){var t=e.file,n=e.children,r=function(e){var t=function(e){var t=sA(),n=HS(e),r=(0,h.useCallback)(function(){var e=t.getState();return{sourceInstanceId:YS(e),source:rO(e),draggedFile:n.current,selectedFiles:gO(e)}},[t,n]),o=lA(),i=(0,h.useCallback)(function(){return WS.isDraggable(n.current)},[n]),a=(0,h.useCallback)(function(){var e={type:Wx,payload:r()};return o(XO(ax.StartDragNDrop,e.payload)),e},[o,r]),s=(0,h.useCallback)(function(e,t){var n=t.getDropResult();WS.isDraggable(e.payload.draggedFile)&&n&&n.dropTarget&&o(XO(ax.EndDragNDrop,LS({},e.payload,{destination:n.dropTarget,copy:"copy"===n.dropEffect})))},[o]),l=function(){var e=Gx(),t=(0,h.useCallback)(function(){return[{},function(){return null},function(){return null}]},[]);return(e?pp:t).apply(void 0,arguments)}({item:(0,h.useMemo)(function(){return{type:Wx,payload:{}}},[]),canDrag:i,begin:a,end:s,collect:(0,h.useCallback)(function(e){return{isDragging:e.isDragging()}},[])}),c=l[0].isDragging,u=l[1],d=l[2];return(0,h.useEffect)(function(){d((zp||((zp=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),zp),{captureDraggingState:!0})},[d]),{dndIsDragging:c,drag:u}}(e),n=t.dndIsDragging,r=t.drag,o=eD({file:e}),i=o.dndIsOver,a=o.dndCanDrop;return{drop:o.drop,drag:r,dndState:(0,h.useMemo)(function(){return{dndIsDragging:n,dndIsOver:i,dndCanDrop:a}},[a,n,i])}}(t),o=r.drop,i=r.drag,a=r.dndState;tD(t,a);var s=LD();return f().createElement("div",{ref:o,className:s.fillParent},f().createElement("div",{ref:WS.isDraggable(t)?i:null,className:s.fillParent},n(a)))}),LD=Bx(function(){return{fillParent:{height:"100%"}}}),BD=f().memo(function(e){var t=e.className,n=e.thumbnailUrl,r=n?{backgroundImage:"url('"+n+"')"}:{},o=ND();return f().createElement("div",{className:Oo()([t,o.fileThumbnail]),style:r})});BD.displayName="FileThumbnail";var ND=Nx(function(){return{fileThumbnail:{backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain"}}}),jD=f().memo(function(e){var t,n=e.className,r=e.dndState,o=aD(r),i=UD(r),a=(0,h.useContext)(Sx);if(!o)return null;var s=Ux(((t={})[i.dndIndicator]=!0,t[n]=!0,t));return f().createElement("div",{className:s},f().createElement(a,{icon:o}))}),UD=Bx(function(e){return{dndIndicator:{color:function(t){return t.dndIsOver?t.dndCanDrop?e.dnd.canDropColor:e.dnd.cannotDropColor:"#000"},boxSizing:"border-box",position:"absolute",fontSize:"1.2em",opacity:.6,padding:6,"&:before":{borderBottom:"50px solid transparent",borderLeft:"50px solid #fff",position:"absolute",content:'""',zIndex:-1,left:0,top:0}}}}),VD=f().memo(function(e){var t,n=e.className,r=e.entryState,o=e.dndState,i=HD(r),a=WD(r),s=zD(r),l=Ux(((t={})[i.previewFile]=!0,t[n||""]=!!n,t));return f().createElement("div",{className:l},f().createElement("div",{className:i.folderBackSideMid},f().createElement("div",{className:i.folderBackSideTop}),f().createElement("div",{className:i.folderFrontSide},f().createElement(jD,{className:a.dndIndicator,dndState:o}),f().createElement("div",{className:Ux([a.fileIcon,i.fileIcon])},r.childrenCount),f().createElement("div",{className:s.selectionIndicator}),f().createElement(BD,{className:a.thumbnail,thumbnailUrl:r.thumbnailUrl}))))});VD.displayName="GridEntryPreviewFolder";var HD=Bx(function(e){return{previewFile:{borderRadius:e.gridFileEntry.borderRadius,position:"relative",overflow:"hidden"},folderBackSideTop:{backgroundColor:function(e){return e.color},boxShadow:function(t){var n=e.gridFileEntry.folderBackColorTint;return t.focused?n="rgba(0, 0, 0, 0.3)":t.selected&&(n="rgba(0, 153, 255, .4)"),"inset "+n+" 0 0 0 999px"},borderTopLeftRadius:e.gridFileEntry.borderRadius,borderTopRightRadius:10,position:"absolute",right:"60%",height:13,top:-10,left:0,"&:after":{borderRightColor:e.palette.background.paper,borderTopColor:e.palette.background.paper,borderBottomColor:"transparent",borderLeftColor:"transparent",borderWidth:[0,15,10,0],borderStyle:"solid",position:"absolute",display:"block",content:'""',right:0,top:0}},folderBackSideMid:{backgroundColor:function(e){return e.color},boxShadow:function(t){var n=e.gridFileEntry.folderBackColorTint;return t.focused?n="rgba(0, 0, 0, 0.3)":t.selected&&(n="rgba(0, 153, 255, .4)"),"inset "+n+" 0 0 0 999px"},borderTopRightRadius:e.gridFileEntry.borderRadius,position:"absolute",bottom:0,right:0,left:0,top:10},folderFrontSide:{boxShadow:function(t){var n=[];return t.focused&&n.push("inset rgba(0, 0, 0, 1) 0 0 0 3px"),t.selected&&n.push("inset rgba(0, 153, 255, .65) 0 0 0 3px"),n.push("inset "+e.gridFileEntry.folderFrontColorTint+" 0 0 0 999px"),n.join(", ")},backgroundColor:function(e){return e.color},borderRadius:e.gridFileEntry.borderRadius,position:"absolute",overflow:"hidden",bottom:0,right:0,left:0,top:10},fileIcon:{fontSize:jx(e.gridFileEntry.childrenCountSize)}}}),GD=f().memo(function(e){var t,n=e.className,r=e.entryState,o=e.dndState,i=WD(r),a=zD(r),s=(0,h.useContext)(Sx),l=Ux(((t={})[i.previewFile]=!0,t[n||""]=!!n,t));return f().createElement("div",{className:l},f().createElement(jD,{className:i.dndIndicator,dndState:o}),f().createElement("div",{className:i.fileIcon},f().createElement(s,{icon:r.icon,spin:r.iconSpin})),f().createElement("div",{className:a.selectionIndicator}),f().createElement(BD,{className:i.thumbnail,thumbnailUrl:r.thumbnailUrl}))});GD.displayName="GridEntryPreviewFile";var WD=Bx(function(e){return{previewFile:{boxShadow:function(t){var n=[];return t.selected&&n.push("inset rgba(0,153,255, .65) 0 0 0 3px"),t.focused&&n.push("inset rgba(0, 0, 0, 1) 0 0 0 3px"),n.push("inset "+e.gridFileEntry.fileColorTint+" 0 0 0 999px"),n.join(", ")},backgroundColor:function(e){return e.color},borderRadius:e.gridFileEntry.borderRadius,position:"relative",overflow:"hidden"},dndIndicator:{zIndex:14},fileIcon:{transform:"translateX(-50%) translateY(-50%)",fontSize:e.gridFileEntry.iconSize,opacity:function(e){return e.thumbnailUrl&&!e.focused?0:1},color:function(t){return t.focused?e.gridFileEntry.iconColorFocused:e.gridFileEntry.iconColor},position:"absolute",left:"50%",zIndex:12,top:"50%"},thumbnail:{borderRadius:e.gridFileEntry.borderRadius,position:"absolute",zIndex:6,bottom:5,right:5,left:5,top:5}}}),zD=Bx(function(){return{selectionIndicator:{display:function(e){return e.selected?"block":"none"},background:"repeating-linear-gradient(45deg,rgba(0,153,255,.14),rgba(0,153,255,.14) 10px,rgba(0,153,255,.25) 0,rgba(0,153,255,.25) 20px)",backgroundColor:"rgba(0, 153, 255, .14)",position:"absolute",height:"100%",width:"100%",zIndex:10},focusIndicator:{display:function(e){return e.focused?"block":"none"},boxShadow:"inset rgba(0, 0, 0, 1) 0 0 0 2px",position:"absolute",height:"100%",width:"100%",zIndex:11}}}),$D=f().memo(function(e){var t,n=e.file,r=e.selected,o=e.focused,i=e.dndState,a=WS.isDirectory(n),s=iD(n,r,o),l=KD(s),c=oD(n),u=Ux(((t={})[l.gridFileEntry]=!0,t));return f().createElement("div",Object.assign({className:u},c),a?f().createElement(VD,{className:l.gridFileEntryPreview,entryState:s,dndState:i}):f().createElement(GD,{className:l.gridFileEntryPreview,entryState:s,dndState:i}),f().createElement("div",{className:l.gridFileEntryNameContainer},f().createElement(TD,{className:l.gridFileEntryName,file:n})))});$D.displayName="GridEntry";var KD=Bx(function(e){return{gridFileEntry:{flexDirection:"column",display:"flex",height:"100%"},gridFileEntryPreview:{flexGrow:1},gridFileEntryNameContainer:{fontSize:e.gridFileEntry.fontSize,wordBreak:"break-word",textAlign:"center",paddingTop:5},gridFileEntryName:{backgroundColor:function(e){return e.selected?"rgba(0,153,255, .25)":"transparent"},textDecoration:function(e){return e.focused?"underline":"none"},borderRadius:3,padding:[2,4]}}}),QD=f().memo(function(e){var t=e.file,n=e.selected,r=e.focused,o=e.dndState,i=iD(t,n,r),a=aD(o),s=_x(t),l=s.fileModDateString,c=s.fileSizeString,u=(0,h.useMemo)(function(){return{entryState:i,dndState:o}},[o,i]),d=qD(u),p=zD(i),g=(0,h.useContext)(Sx),m=oD(t);return f().createElement("div",Object.assign({className:d.listFileEntry},m),f().createElement("div",{className:p.focusIndicator}),f().createElement("div",{className:Ux([p.selectionIndicator,d.listFileEntrySelection])}),f().createElement("div",{className:d.listFileEntryIcon},f().createElement(g,{icon:null!=a?a:i.icon,spin:!a&&i.iconSpin,fixedWidth:!0})),f().createElement("div",{className:d.listFileEntryName,title:t?t.name:void 0},f().createElement(TD,{file:t})),f().createElement("div",{className:d.listFileEntryProperty},t?null!=l?l:f().createElement("span",null,"—"):f().createElement(nD,{minLength:5,maxLength:15})),f().createElement("div",{className:d.listFileEntryProperty},t?null!=c?c:f().createElement("span",null,"—"):f().createElement(nD,{minLength:10,maxLength:20})))}),qD=Bx(function(e){return{listFileEntry:{boxShadow:"inset "+e.palette.divider+" 0 -1px 0",fontSize:e.listFileEntry.fontSize,color:function(t){var n=t.dndState;return n.dndIsOver?n.dndCanDrop?e.dnd.canDropColor:e.dnd.cannotDropColor:"inherit"},alignItems:"center",position:"relative",display:"flex",height:"100%"},listFileEntrySelection:{opacity:.6},listFileEntryIcon:{color:function(t){var n=t.entryState,r=t.dndState;return r.dndIsOver?r.dndCanDrop?e.dnd.canDropColor:e.dnd.cannotDropColor:n.color},fontSize:e.listFileEntry.iconFontSize,boxSizing:"border-box",padding:[2,4],zIndex:20},listFileEntryName:{textOverflow:"ellipsis",boxSizing:"border-box",whiteSpace:"nowrap",overflow:"hidden",flex:"1 1 300px",paddingLeft:8,zIndex:20},listFileEntryProperty:{fontSize:e.listFileEntry.propertyFontSize,boxSizing:"border-box",whiteSpace:"nowrap",overflow:"hidden",flex:"0 1 150px",padding:[2,8],zIndex:20}}}),YD={dndIsDragging:!1,dndIsOver:!1,dndCanDrop:!1},XD=f().memo(function(e){var t,n=e.fileId,r=e.displayIndex,o=e.fileViewMode,i=ZD(),a=fx(sO,n),s=fx(fO,n),l=uA(CO),c=function(e,t){var n=lA(),r=(0,h.useCallback)(function(r,o){e&&n(XO(ax.MouseClickFile,{clickType:o,file:e,fileDisplayIndex:t,altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey}))},[n,e,t]),o=(0,h.useCallback)(function(r){e&&n(XO(ax.KeyboardClickFile,{file:e,fileDisplayIndex:t,enterKey:r.enterKey,spaceKey:r.spaceKey,altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey}))},[n,e,t]);return{onSingleClick:(0,h.useCallback)(function(e){return r(e,"single")},[r]),onDoubleClick:(0,h.useCallback)(function(e){return r(e,"double")},[r]),onKeyboardClick:o}}(a,r),u=(0,h.useState)(!1),d=u[0],p=u[1],g=LS({wrapperTag:"div",passthroughProps:{className:i.fileEntryClickableWrapper}},WS.isClickable(a)?c:void 0,{setFocused:p}),m={file:a,selected:s,focused:d};return t=o===QS.List?QD:o===QS.Compact?ID:$D,l?f().createElement(MD,Object.assign({},g),f().createElement(t,Object.assign({},m,{dndState:YD}))):f().createElement(kD,{file:a},function(e){return f().createElement(MD,Object.assign({},g),f().createElement(t,Object.assign({},m,{dndState:e})))})});XD.displayName="SmartFileEntry";var ZD=Nx(function(){return{fileEntryClickableWrapper:{outline:"none !important",position:"relative",height:"100%"}}}),JD=function(e,t,n,r){var o,i,a=r?5:8,s=void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")?0:18;return r?i=(e-a-s)/(o=2):(i=n.entryWidth,o=Math.max(1,Math.floor((e-s)/(i+a)))),{rowCount:Math.ceil(t/o),columnCount:o,gutter:a,rowHeight:n.entryHeight,columnWidth:i}},eP=f().memo(function(e){var t=e.width,n=e.height,r=uA(vO),o=uA(WO.getDisplayFileIds),i=(0,h.useMemo)(function(){return o.length},[o]),a=(0,h.useRef)(),s=kx(),l=(0,h.useState)(JD(t,i,r,s)),c=l[0],u=l[1],d=(0,h.useRef)(c);(0,h.useEffect)(function(){var e=d.current,n=JD(t,i,r,s);d.current=n,a.current&&(e.rowCount!==n.rowCount&&a.current.resetAfterRowIndex(Math.min(e.rowCount,n.rowCount)-1),e.columnCount!==n.columnCount&&a.current.resetAfterColumnIndex(Math.min(e.columnCount,n.rowCount)-1),e.columnWidth!==n.columnWidth&&a.current.resetAfterIndices({columnIndex:0,rowIndex:0})),u(n)},[u,d,s,t,r,i]);var p=(0,h.useMemo)(function(){var e=d;return{getColumnWidth:function(t){return e.current.columnWidth+(t===e.current.columnCount-1?0:e.current.gutter)},getRowHeight:function(t){return e.current.rowHeight+(t===e.current.rowCount-1?0:e.current.gutter)}}},[d]),g=HS(uA(WO.getDisplayFileIds)),m=(0,h.useCallback)(function(e){var t,n=e.rowIndex*d.current.columnCount+e.columnIndex;return null!=(t=g.current[n])?t:"loading-file-"+n},[d,g]),v=(0,h.useCallback)(function(e){var t=d,n=e.rowIndex*t.current.columnCount+e.columnIndex,i=o[n];if(void 0===o[n])return null;var a=LS({},e.style,{paddingRight:e.columnIndex===t.current.columnCount-1?0:t.current.gutter,paddingBottom:e.rowIndex===t.current.rowCount-1?0:t.current.gutter,boxSizing:"border-box"});return f().createElement("div",{style:a},f().createElement(XD,{fileId:null!=i?i:null,displayIndex:n,fileViewMode:r.mode}))},[o,r.mode]),y=tP();return(0,h.useMemo)(function(){return f().createElement(TS,{ref:a,className:y.gridContainer,estimatedRowHeight:c.rowHeight+c.gutter,rowHeight:p.getRowHeight,estimatedColumnWidth:c.columnWidth+c.gutter,columnWidth:p.getColumnWidth,columnCount:c.columnCount,height:n,rowCount:c.rowCount,width:t,itemKey:m},v)},[y.gridContainer,c.rowHeight,c.gutter,c.columnWidth,c.columnCount,c.rowCount,p.getRowHeight,p.getColumnWidth,n,t,m,v])}),tP=Nx(function(){return{gridContainer:{}}}),nP=f().memo(function(e){var t=e.width,n=e.height,r=uA(vO),o=(0,h.useRef)(),i=uA(WO.getDisplayFileIds),a=HS(i),s=(0,h.useCallback)(function(e){var t;return null!=(t=a.current[e])?t:"loading-file-"+e},[a]),l=rP(),c=(0,h.useMemo)(function(){return f().createElement(IS,{ref:o,className:l.listContainer,itemSize:r.entryHeight,height:n,itemCount:i.length,width:t,itemKey:s},function(e){var t;return f().createElement("div",{style:e.style},f().createElement(XD,{fileId:null!=(t=i[e.index])?t:null,displayIndex:e.index,fileViewMode:QS.List}))})},[l.listContainer,r.entryHeight,n,i,t,s]);return c}),rP=Bx(function(e){return{listContainer:{borderTop:"solid 1px "+e.palette.divider}}}),oP=f().memo(function(e){var t=uA(WO.getDisplayFileIds),n=uA(vO),r=uA(rO),o=eD({file:r}),i=o.drop,a=o.dndCanDrop,s=o.dndIsOverCurrent,l=(0,h.useMemo)(function(){return{dndCanDrop:a,dndIsOverCurrent:s}},[a,s]),c=iP(l),u=aP(n),d=e.onScroll,p=(0,h.useCallback)(function(e){var r=e.width,o=e.height;return 0===t.length?f().createElement(DD,{width:r,height:n.entryHeight}):n.mode===QS.List?f().createElement(nP,{width:r,height:o}):f().createElement(eP,{width:r,height:o})},[t,n]),g=(0,h.useContext)(Sx);return f().createElement("div",{onScroll:d,ref:i,className:Ux([u.fileListWrapper,c.fileListWrapper]),role:"list"},f().createElement("div",{className:c.dndDropZone},f().createElement("div",{className:c.dndDropZoneIcon},f().createElement(g,{icon:a?qS.dndCanDrop:qS.dndCannotDrop}))),f().createElement(dS,{disableHeight:!1},p))});oP.displayName="FileList";var iP=Bx(function(e){return{fileListWrapper:{minHeight:ax.EnableGridView.fileViewConfig.entryHeight+2,background:function(t){return t.dndIsOverCurrent&&t.dndCanDrop?t.dndCanDrop?Lx(e.dnd.fileListCanDropMaskOne,e.dnd.fileListCanDropMaskTwo):Lx(e.dnd.fileListCannotDropMaskOne,e.dnd.fileListCannotDropMaskTwo):"none"}},dndDropZone:{display:function(e){return e.dndIsOverCurrent&&e.dndCanDrop?"block":"none"},borderRadius:e.gridFileEntry.borderRadius,pointerEvents:"none",position:"absolute",height:"100%",width:"100%",zIndex:2},dndDropZoneIcon:{backgroundColor:function(t){return t.dndCanDrop?e.dnd.canDropMask:e.dnd.cannotDropMask},color:function(t){return t.dndCanDrop?e.dnd.canDropColor:e.dnd.cannotDropColor},borderRadius:e.gridFileEntry.borderRadius,transform:"translateX(-50%) translateY(-50%)",position:"absolute",textAlign:"center",lineHeight:"60px",fontSize:"2em",left:"50%",height:60,top:"50%",width:60}}}),aP=Nx(function(){return{fileListWrapper:{height:"100%",maxHeight:"100%"}}}),sP=f().memo(function(){var e=lA();(0,h.useEffect)(function(){return e(px.setContextMenuMounted(!0)),function(){e(px.setContextMenuMounted(!1))}},[e]);var t=Hf().formatMessage({id:Ax(JO.FileContextMenu,"browserMenuShortcut"),defaultMessage:"Browser menu: {shortcut}"},{shortcut:f().createElement("strong",null,"Alt + Right Click")}),n=uA(OO),r=uA(tO),o=function(){var e=lA();return(0,h.useCallback)(function(){return e(px.hideContextMenu())},[e])}(),i=(0,h.useMemo)(function(){for(var e=[],t=function(t){var n=r[t];"string"==typeof n?e.push(f().createElement(AD,{key:"context-menu-item-"+n,fileActionId:n,onClickFollowUp:o})):n.fileActionIds.map(function(t){return e.push(f().createElement(AD,{key:"context-menu-item-"+n.name+"-"+t,fileActionId:t,onClickFollowUp:o}))})},n=0;n<r.length;++n)t(n);return e},[r,o]),a=(0,h.useMemo)(function(){return n?{top:n.mouseY,left:n.mouseX}:void 0},[n]),s=lP();return f().createElement(ZC,{elevation:2,disablePortal:!0,onClose:o,transitionDuration:150,open:!!n,anchorPosition:a,anchorReference:"anchorPosition",classes:{list:s.contextMenuList}},i,f().createElement(kS,{component:"div",className:s.browserMenuTooltip},t))}),lP=Nx(function(){return{contextMenuList:{paddingBottom:jx(0),paddingTop:jx(0)},browserMenuTooltip:{lineHeight:jx("30px"),fontSize:jx("0.7em")}}});f().memo(f().forwardRef(function(e,t){var n=e.onScroll;return f().createElement(Zx,Object.assign({ref:t},e),f().createElement(gD,null),f().createElement(OD,null),f().createElement(oP,{onScroll:n}),f().createElement(sP,null))})).displayName="FullFileBrowser";const cP=s.GVDebug.extend("files:chonkyIcon"),uP=(0,h.memo)(e=>{let t,n;switch(e.icon){case qS.video:t="video-camera";break;case qS.image:t="image-placeholder";break;case qS.file:case qS.text:case qS.archive:t="file";break;case qS.folder:t="file-folder-empty";break;case qS.folderOpen:t="file-folder-add";break;case qS.dropdown:t="arrows-down-small";break;case qS.search:t="search-search-default";break;case qS.loading:t="notifications-pending";break;case qS.sortAsc:t="table-sort-descending";break;case qS.sortDesc:t="table-sort-ascending";break;case qS.list:case qS.compact:t="interface-list";break;case qS.smallThumbnail:case qS.largeThumbnail:t="interface-view-thumbnails";break;case qS.openParentFolder:t="file-folder-up";break;case qS.clearSelection:t="table-highlight-clear";break;case qS.selectAllFiles:t="interface-selection";break;case qS.openFiles:t="file-load";break;case qS.placeholder:t="interface-minus";break;case qS.toggleOn:t="checkbox-on";break;case qS.toggleOff:t="checkbox-off";break;case qS.dndDragging:n="gold",t="notifications-pending";break;case qS.dndCannotDrop:n="red",t="interface-not-allowed";break;case qS.dndCanDrop:n="green",t="file-add-to-folder";break;case qS.hidden:t="interface-eye-disabled";break;case qS.symlink:t="interface-link";break;case qS.lock:t="notifications-lock-closed";break;default:Do.includes(e.icon)?t=e.icon:(cP("unknown",e.icon),t="uccm-symbol-unknown")}return(0,p.jsx)(Fo,{className:e.className,color:n,icon:t,active:!0,size:"1em"})}),dP=Zx,pP=s.GVDebug.extend("files:browser");!function(e){for(var t=0,n=Object.keys(yx);t<n.length;t++){var r=n[t];r in e&&(yx[r]=e[r])}}({iconComponent:uP});const hP=pP.extend("render");class fP extends h.PureComponent{render(){const{className:e,disableNavBar:t,disableToolBar:n,disableFileList:r,disableContextMenu:o,style:i,...a}=this.props;return hP("render",this.props),(0,p.jsx)("div",{className:Oo()("gv-filebrowser",e),style:i,children:(0,p.jsxs)(dP,{darkMode:!0,...a,children:[!t&&(0,p.jsx)(gD,{}),!n&&(0,p.jsx)(OD,{}),!r&&(0,p.jsx)(oP,{}),!o&&(0,p.jsx)(sP,{})]})})}}const gP=s.GVDebug.extend("files:selector"),mP=e=>{const{className:t,style:n,singleFile:r,disableSelection:o,...i}=e,[a,l]=(0,h.useState)(),[c,u]=(0,h.useState)(),[d,f]=(0,h.useState)(),g=v(a);(0,h.useEffect)(()=>{const t=e.folderChainKey??null;let{rootFolder:n}=e;"rootFolderId"in e&&(n=e.files.find(t=>t?.id===e.rootFolderId));const r=n?[n]:[{id:" ",name:"​",isDir:!0,folderChainIcon:""}],o=y(t);l(o??r),f(t??"")},[]),(0,h.useEffect)(()=>{u(e.files)},[e.files]),(0,h.useEffect)(()=>{g!==a&&w(a??[]),d&&m(a)},[a]);const m=e=>{s.GVStorage.get("filebrowser").storage.setItem(`folderchain-${d}`,JSON.stringify(e))},y=e=>{try{const t=s.GVStorage.get("filebrowser").storage.getItem(`folderchain-${e}`);if(t)return gP("Loading folder chain",t),null!=t?JSON.parse(t):null}catch(e){gP("Failed to load/parse folder chain",e)}return null},A=(t,n)=>{const r=a.indexOf(t)??-1;n&&e.onOpenFile?.(n,a),l(r>-1?a?.slice(void 0,r+1):[...a??[],t]),d&&m(a)},w=async(t,n=!1)=>{let r=[];if(e.getFiles){r=[null];const o=await e.getFiles(t,n);return a===t&&(r=o),u(r),o}const{files:o}=e,i=t?t[t.length-1]?.id:" ",s=o?.filter(e=>" "!==i?!!e?.parentId&&e.parentId===i:!e?.parentId||" "===e.parentId)??[];return a===t&&(r=s),u(r),s};return(0,p.jsx)("div",{className:Oo()("gv-fileselector",t),style:n,children:(0,p.jsx)(fP,{folderChain:a??[],disableContextMenu:!0,disableDragAndDrop:!0,...i,files:c??[],disableSelection:r||o,onFileAction:async t=>{if(gP(t.id,t),"open_files"===t.id)if(!0===t.payload.targetFile?.isDir)A(t.payload.targetFile,t.payload.files);else if(t.payload.files&&1===t.payload.files.length&&!0===t.payload.files[0]?.isDir){const e=t.payload.files[0];A(e,t.payload.files)}else e.onOpenFile?.(t.payload.files,a);return e.onFileAction?.(t)}})})},vP=e=>(0,p.jsx)("div",{title:e.label,className:Oo()("gv-filter-list-item",{"gv-filter-list-item-selected":e.selected,"gv-filter-list-item-disabled":e.disabled}),onClick:()=>!e.disabled&&e.onClick(e.value),children:e.label}),yP=e=>{const t=e.replace(/\s/g,"");try{const e=Buffer.from(t.substring(0,12),"base64"),n=new Uint8Array(e);if(66===n[0]&&77===n[1])return"bmp";if(255===n[0]&&216===n[1])return"jpeg";if(137===n[0]&&80===n[1]&&78===n[2]&&71===n[3])return"png"}catch(e){console.warn("Could not detect image format from base64 data, defaulting to jpeg")}return"jpeg"},AP=e=>{const t=(0,h.useRef)(null),n=(0,h.useRef)(null),r=(0,h.useRef)(null),[o,i]=(0,h.useState)(e.DefaultStatus??"Off"),{buttonStyle:a,disabled:s,className:l,primaryIcon:c,imageData:u,primary:d,secondary:f,size:g,fontSize:m,fullText:v,customContent:y,onMouseDown:A,onMouseUp:w,onMouseEnter:b,onMouseLeave:_,onTouchStart:C,onTouchEnd:E,style:S,tooltip:O,flash:x}=e;(0,h.useEffect)(()=>{if(!t.current)return;const e=requestAnimationFrame(()=>{(r.current?.clientWidth??0)>0&&F("primary")});return()=>cancelAnimationFrame(e)},[d]),(0,h.useEffect)(()=>{if(!n.current)return;const e=requestAnimationFrame(()=>{(r.current?.clientWidth??0)>0&&F("secondary")});return()=>cancelAnimationFrame(e)},[f]),(0,h.useEffect)(()=>{const e=e=>{var t;"panelFlash"===e.animationName&&((t=e.target,t.getAnimations().find(e=>"panelFlash"===e.animationName)).startTime=0)};return document.addEventListener("animationstart",e),()=>{document.removeEventListener("animationstart",e)}},[]);const D=""==e.size?4:8,P=v?d:`${d}`.substring(0,4),M=v?f:`${f}`.substring(0,D),T=void 0!==e.state?e.state:"On"===o,R=void 0!==e.state?!e.state:"Off"===o,I=Oo()({"gv-panel-button":!0,[`gv-panel-button-${a||"light"}`]:!0,[`gv-panel-button-${g}`]:!!g,[`gv-panel-button-${m}`]:!!m,"gv-panel-button-stateOn":T,"gv-panel-button-stateOff":R&&!x,"gv-panel-button-stateFlashing":R&&x,"gv-panel-button-unassigned":!e.primary&&!e.secondary&&!e.primaryIcon,[l]:l}),F=e=>{const o=2*+window.getComputedStyle(r.current).getPropertyValue("padding").slice(0,-2),i=r.current.clientWidth-o,a=r.current.clientHeight-o;let s,l="primary"==e?24:14;s="primary"==e?t:n,s.current.style.fontSize=`${l}px`;let c=s.current.scrollWidth<=i&&s.current.scrollHeight<=a;for(;!c&&l>6;)l--,s.current.style.fontSize=`${l}px`,c=s.current.scrollWidth<=i&&s.current.scrollHeight<=a};return(0,p.jsx)("button",{className:I,onClick:t=>{void 0!==e.state||void 0!==e.onClick?e.onClick(t):i(e=>"Off"===e?"On":"On"===e?"Off":"Unassigned")},disabled:s,onMouseDown:A,onMouseUp:w,onMouseEnter:b,onMouseLeave:_,onTouchStart:C,onTouchEnd:E,ref:r,style:S,title:O,children:y?e.children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{ref:n,className:"secondary",children:(0,p.jsx)("div",{children:e.secondary?`${M}`:""})}),(0,p.jsx)("div",{ref:t,className:"primary",children:u?(0,p.jsx)("img",{src:`data:image/${yP(u)};base64,${u}`,alt:"",style:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto",objectFit:"contain",display:"block",margin:"4px auto"}}):c?(0,p.jsx)(Fo,{icon:c,active:!0,className:"primaryIcon"}):e.primary?(0,p.jsx)("div",{children:P}):""})]})})};var wP=u(39067),bP=u.n(wP),_P="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),CP=new Uint8Array(16);function EP(){if(!_P)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _P(CP)}for(var SP=[],OP=0;OP<256;++OP)SP[OP]=(OP+256).toString(16).substr(1);const xP=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||EP)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||function(e){var t=0,n=SP;return[n[e[t++]],n[e[t++]],n[e[t++]],n[e[t++]],"-",n[e[t++]],n[e[t++]],"-",n[e[t++]],n[e[t++]],"-",n[e[t++]],n[e[t++]],"-",n[e[t++]],n[e[t++]],n[e[t++]],n[e[t++]],n[e[t++]],n[e[t++]]].join("")}(o)};function DP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DP(Object(n),!0).forEach(function(t){TP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function TP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RP(){return RP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RP.apply(this,arguments)}function IP(e){return IP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IP(e)}function FP(e,t){return FP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},FP(e,t)}function kP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var LP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u.g?u.g:"undefined"!=typeof self?self:{},BP=function(e){return e&&e.Math==Math&&e},NP=BP("object"==typeof globalThis&&globalThis)||BP("object"==typeof window&&window)||BP("object"==typeof self&&self)||BP("object"==typeof LP&&LP)||function(){return this}()||Function("return this")(),jP={},UP=function(e){try{return!!e()}catch(e){return!0}},VP=!UP(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),HP=!UP(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),GP=HP,WP=Function.prototype.call,zP=GP?WP.bind(WP):function(){return WP.apply(WP,arguments)},$P={},KP={}.propertyIsEnumerable,QP=Object.getOwnPropertyDescriptor,qP=QP&&!KP.call({1:2},1);$P.f=qP?function(e){var t=QP(this,e);return!!t&&t.enumerable}:KP;var YP,XP,ZP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},JP=HP,eM=Function.prototype,tM=eM.call,nM=JP&&eM.bind.bind(tM,tM),rM=function(e){return JP?nM(e):function(){return tM.apply(e,arguments)}},oM=rM,iM=oM({}.toString),aM=oM("".slice),sM=function(e){return aM(iM(e),8,-1)},lM=sM,cM=rM,uM=function(e){if("Function"===lM(e))return cM(e)},dM=UP,pM=sM,hM=Object,fM=uM("".split),gM=dM(function(){return!hM("z").propertyIsEnumerable(0)})?function(e){return"String"==pM(e)?fM(e,""):hM(e)}:hM,mM=function(e){return null==e},vM=mM,yM=TypeError,AM=function(e){if(vM(e))throw yM("Can't call method on "+e);return e},wM=gM,bM=AM,_M=function(e){return wM(bM(e))},CM="object"==typeof document&&document.all,EM={all:CM,IS_HTMLDDA:void 0===CM&&void 0!==CM},SM=EM.all,OM=EM.IS_HTMLDDA?function(e){return"function"==typeof e||e===SM}:function(e){return"function"==typeof e},xM=OM,DM=EM.all,PM=EM.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:xM(e)||e===DM}:function(e){return"object"==typeof e?null!==e:xM(e)},MM=NP,TM=OM,RM=function(e,t){return arguments.length<2?(n=MM[e],TM(n)?n:void 0):MM[e]&&MM[e][t];var n},IM=uM({}.isPrototypeOf),FM=NP,kM=RM("navigator","userAgent")||"",LM=FM.process,BM=FM.Deno,NM=LM&&LM.versions||BM&&BM.version,jM=NM&&NM.v8;jM&&(XP=(YP=jM.split("."))[0]>0&&YP[0]<4?1:+(YP[0]+YP[1])),!XP&&kM&&(!(YP=kM.match(/Edge\/(\d+)/))||YP[1]>=74)&&(YP=kM.match(/Chrome\/(\d+)/))&&(XP=+YP[1]);var UM=XP,VM=UP,HM=!!Object.getOwnPropertySymbols&&!VM(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&UM&&UM<41}),GM=HM&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,WM=RM,zM=OM,$M=IM,KM=Object,QM=GM?function(e){return"symbol"==typeof e}:function(e){var t=WM("Symbol");return zM(t)&&$M(t.prototype,KM(e))},qM=String,YM=OM,XM=TypeError,ZM=function(e){if(YM(e))return e;throw XM(function(e){try{return qM(e)}catch(e){return"Object"}}(e)+" is not a function")},JM=ZM,eT=mM,tT=zP,nT=OM,rT=PM,oT=TypeError,iT={exports:{}},aT=NP,sT=Object.defineProperty,lT=function(e,t){try{sT(aT,e,{value:t,configurable:!0,writable:!0})}catch(n){aT[e]=t}return t},cT=lT,uT="__core-js_shared__",dT=NP[uT]||cT(uT,{}),pT=dT;(iT.exports=function(e,t){return pT[e]||(pT[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var hT=AM,fT=Object,gT=function(e){return fT(hT(e))},mT=gT,vT=uM({}.hasOwnProperty),yT=Object.hasOwn||function(e,t){return vT(mT(e),t)},AT=uM,wT=0,bT=Math.random(),_T=AT(1..toString),CT=function(e){return"Symbol("+(void 0===e?"":e)+")_"+_T(++wT+bT,36)},ET=NP,ST=iT.exports,OT=yT,xT=CT,DT=HM,PT=GM,MT=ST("wks"),TT=ET.Symbol,RT=TT&&TT.for,IT=PT?TT:TT&&TT.withoutSetter||xT,FT=function(e){if(!OT(MT,e)||!DT&&"string"!=typeof MT[e]){var t="Symbol."+e;DT&&OT(TT,e)?MT[e]=TT[e]:MT[e]=PT&&RT?RT(t):IT(t)}return MT[e]},kT=zP,LT=PM,BT=QM,NT=TypeError,jT=FT("toPrimitive"),UT=QM,VT=function(e){var t=function(e,t){if(!LT(e)||BT(e))return e;var n,r=function(e,t){var n=e[t];return eT(n)?void 0:JM(n)}(e,jT);if(r){if(void 0===t&&(t="default"),n=kT(r,e,t),!LT(n)||BT(n))return n;throw NT("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&nT(n=e.toString)&&!rT(r=tT(n,e)))return r;if(nT(n=e.valueOf)&&!rT(r=tT(n,e)))return r;if("string"!==t&&nT(n=e.toString)&&!rT(r=tT(n,e)))return r;throw oT("Can't convert object to primitive value")}(e,t)}(e,"string");return UT(t)?t:t+""},HT=PM,GT=NP.document,WT=HT(GT)&&HT(GT.createElement),zT=function(e){return WT?GT.createElement(e):{}},$T=zT,KT=!VP&&!UP(function(){return 7!=Object.defineProperty($T("div"),"a",{get:function(){return 7}}).a}),QT=VP,qT=zP,YT=$P,XT=ZP,ZT=_M,JT=VT,eR=yT,tR=KT,nR=Object.getOwnPropertyDescriptor;jP.f=QT?nR:function(e,t){if(e=ZT(e),t=JT(t),tR)try{return nR(e,t)}catch(e){}if(eR(e,t))return XT(!qT(YT.f,e,t),e[t])};var rR={},oR=VP&&UP(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),iR=PM,aR=String,sR=TypeError,lR=function(e){if(iR(e))return e;throw sR(aR(e)+" is not an object")},cR=VP,uR=KT,dR=oR,pR=lR,hR=VT,fR=TypeError,gR=Object.defineProperty,mR=Object.getOwnPropertyDescriptor,vR="enumerable",yR="configurable",AR="writable";rR.f=cR?dR?function(e,t,n){if(pR(e),t=hR(t),pR(n),"function"==typeof e&&"prototype"===t&&"value"in n&&AR in n&&!n[AR]){var r=mR(e,t);r&&r[AR]&&(e[t]=n.value,n={configurable:yR in n?n[yR]:r[yR],enumerable:vR in n?n[vR]:r[vR],writable:!1})}return gR(e,t,n)}:gR:function(e,t,n){if(pR(e),t=hR(t),pR(n),uR)try{return gR(e,t,n)}catch(e){}if("get"in n||"set"in n)throw fR("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var wR=rR,bR=ZP,_R=VP?function(e,t,n){return wR.f(e,t,bR(1,n))}:function(e,t,n){return e[t]=n,e},CR={exports:{}},ER=VP,SR=yT,OR=Function.prototype,xR=ER&&Object.getOwnPropertyDescriptor,DR=SR(OR,"name"),PR={EXISTS:DR,PROPER:DR&&"something"===function(){}.name,CONFIGURABLE:DR&&(!ER||ER&&xR(OR,"name").configurable)},MR=OM,TR=dT,RR=uM(Function.toString);MR(TR.inspectSource)||(TR.inspectSource=function(e){return RR(e)});var IR,FR,kR,LR=TR.inspectSource,BR=OM,NR=NP.WeakMap,jR=BR(NR)&&/native code/.test(String(NR)),UR=iT.exports,VR=CT,HR=UR("keys"),GR=function(e){return HR[e]||(HR[e]=VR(e))},WR={},zR=jR,$R=NP,KR=PM,QR=_R,qR=yT,YR=dT,XR=GR,ZR=WR,JR="Object already initialized",eI=$R.TypeError,tI=$R.WeakMap;if(zR||YR.state){var nI=YR.state||(YR.state=new tI);nI.get=nI.get,nI.has=nI.has,nI.set=nI.set,IR=function(e,t){if(nI.has(e))throw eI(JR);return t.facade=e,nI.set(e,t),t},FR=function(e){return nI.get(e)||{}},kR=function(e){return nI.has(e)}}else{var rI=XR("state");ZR[rI]=!0,IR=function(e,t){if(qR(e,rI))throw eI(JR);return t.facade=e,QR(e,rI,t),t},FR=function(e){return qR(e,rI)?e[rI]:{}},kR=function(e){return qR(e,rI)}}var oI={set:IR,get:FR,has:kR,enforce:function(e){return kR(e)?FR(e):IR(e,{})},getterFor:function(e){return function(t){var n;if(!KR(t)||(n=FR(t)).type!==e)throw eI("Incompatible receiver, "+e+" required");return n}}},iI=UP,aI=OM,sI=yT,lI=VP,cI=PR.CONFIGURABLE,uI=LR,dI=oI.enforce,pI=oI.get,hI=Object.defineProperty,fI=lI&&!iI(function(){return 8!==hI(function(){},"length",{value:8}).length}),gI=String(String).split("String"),mI=CR.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!sI(e,"name")||cI&&e.name!==t)&&(lI?hI(e,"name",{value:t,configurable:!0}):e.name=t),fI&&n&&sI(n,"arity")&&e.length!==n.arity&&hI(e,"length",{value:n.arity});try{n&&sI(n,"constructor")&&n.constructor?lI&&hI(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=dI(e);return sI(r,"source")||(r.source=gI.join("string"==typeof t?t:"")),e};Function.prototype.toString=mI(function(){return aI(this)&&pI(this).source||uI(this)},"toString");var vI=OM,yI=rR,AI=CR.exports,wI=lT,bI={},_I=Math.ceil,CI=Math.floor,EI=Math.trunc||function(e){var t=+e;return(t>0?CI:_I)(t)},SI=EI,OI=function(e){var t=+e;return t!=t||0===t?0:SI(t)},xI=OI,DI=Math.max,PI=Math.min,MI=OI,TI=Math.min,RI=function(e){return(t=e.length)>0?TI(MI(t),9007199254740991):0;var t},II=_M,FI=RI,kI=function(e){return function(t,n,r){var o,i=II(t),a=FI(i),s=function(e,t){var n=xI(e);return n<0?DI(n+t,0):PI(n,t)}(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},LI={includes:kI(!0),indexOf:kI(!1)},BI=yT,NI=_M,jI=LI.indexOf,UI=WR,VI=uM([].push),HI=function(e,t){var n,r=NI(e),o=0,i=[];for(n in r)!BI(UI,n)&&BI(r,n)&&VI(i,n);for(;t.length>o;)BI(r,n=t[o++])&&(~jI(i,n)||VI(i,n));return i},GI=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],WI=HI,zI=GI.concat("length","prototype");bI.f=Object.getOwnPropertyNames||function(e){return WI(e,zI)};var $I={};$I.f=Object.getOwnPropertySymbols;var KI=RM,QI=bI,qI=$I,YI=lR,XI=uM([].concat),ZI=KI("Reflect","ownKeys")||function(e){var t=QI.f(YI(e)),n=qI.f;return n?XI(t,n(e)):t},JI=yT,eF=ZI,tF=jP,nF=rR,rF=UP,oF=OM,iF=/#|\.prototype\./,aF=function(e,t){var n=lF[sF(e)];return n==uF||n!=cF&&(oF(t)?rF(t):!!t)},sF=aF.normalize=function(e){return String(e).replace(iF,".").toLowerCase()},lF=aF.data={},cF=aF.NATIVE="N",uF=aF.POLYFILL="P",dF=aF,pF=NP,hF=jP.f,fF=_R,gF=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(vI(n)&&AI(n,i,r),r.global)o?e[t]=n:wI(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:yI.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},mF=lT,vF=function(e,t,n){for(var r=eF(t),o=nF.f,i=tF.f,a=0;a<r.length;a++){var s=r[a];JI(e,s)||n&&JI(n,s)||o(e,s,i(t,s))}},yF=dF,AF=ZM,wF=HP,bF=uM(uM.bind),_F=sM,CF=Array.isArray||function(e){return"Array"==_F(e)},EF={};EF[FT("toStringTag")]="z";var SF="[object z]"===String(EF),OF=OM,xF=sM,DF=FT("toStringTag"),PF=Object,MF="Arguments"==xF(function(){return arguments}()),TF=SF?xF:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=PF(e),DF))?n:MF?xF(t):"Object"==(r=xF(t))&&OF(t.callee)?"Arguments":r},RF=uM,IF=UP,FF=OM,kF=TF,LF=LR,BF=function(){},NF=[],jF=RM("Reflect","construct"),UF=/^\s*(?:class|function)\b/,VF=RF(UF.exec),HF=!UF.exec(BF),GF=function(e){if(!FF(e))return!1;try{return jF(BF,NF,e),!0}catch(e){return!1}},WF=function(e){if(!FF(e))return!1;switch(kF(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return HF||!!VF(UF,LF(e))}catch(e){return!0}};WF.sham=!0;var zF=!jF||IF(function(){var e;return GF(GF.call)||!GF(Object)||!GF(function(){e=!0})||e})?WF:GF,$F=CF,KF=zF,QF=PM,qF=FT("species"),YF=Array,XF=gM,ZF=gT,JF=RI,ek=function(e,t){return new(function(e){var t;return $F(e)&&(t=e.constructor,(KF(t)&&(t===YF||$F(t.prototype))||QF(t)&&null===(t=t[qF]))&&(t=void 0)),void 0===t?YF:t}(e))(0===t?0:t)},tk=uM([].push),nk=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(l,c,u,d){for(var p,h,f=ZF(l),g=XF(f),m=function(e,t){return AF(e),void 0===t?e:wF?bF(e,t):function(){return e.apply(t,arguments)}}(c,u),v=JF(g),y=0,A=d||ek,w=t?A(l,v):n||a?A(l,0):void 0;v>y;y++)if((s||y in g)&&(h=m(p=g[y],y,f),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return y;case 2:tk(w,p)}else switch(e){case 4:return!1;case 7:tk(w,p)}return i?-1:r||o?o:w}},rk={forEach:nk(0),map:nk(1),filter:nk(2),some:nk(3),every:nk(4),find:nk(5),findIndex:nk(6),filterReject:nk(7)},ok={},ik=HI,ak=GI,sk=Object.keys||function(e){return ik(e,ak)},lk=VP,ck=oR,uk=rR,dk=lR,pk=_M,hk=sk;ok.f=lk&&!ck?Object.defineProperties:function(e,t){dk(e);for(var n,r=pk(t),o=hk(t),i=o.length,a=0;i>a;)uk.f(e,n=o[a++],r[n]);return e};var fk,gk=RM("document","documentElement"),mk=lR,vk=ok,yk=GI,Ak=WR,wk=gk,bk=zT,_k="prototype",Ck="script",Ek=GR("IE_PROTO"),Sk=function(){},Ok=function(e){return"<"+Ck+">"+e+"</"+Ck+">"},xk=function(e){e.write(Ok("")),e.close();var t=e.parentWindow.Object;return e=null,t},Dk=function(){try{fk=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Dk="undefined"!=typeof document?document.domain&&fk?xk(fk):(t=bk("iframe"),n="java"+Ck+":",t.style.display="none",wk.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Ok("document.F=Object")),e.close(),e.F):xk(fk);for(var r=yk.length;r--;)delete Dk[_k][yk[r]];return Dk()};Ak[Ek]=!0;var Pk=Object.create||function(e,t){var n;return null!==e?(Sk[_k]=mk(e),n=new Sk,Sk[_k]=null,n[Ek]=e):n=Dk(),void 0===t?n:vk.f(n,t)},Mk=FT,Tk=Pk,Rk=rR.f,Ik=Mk("unscopables"),Fk=Array.prototype;null==Fk[Ik]&&Rk(Fk,Ik,{configurable:!0,value:Tk(null)});var kk=rk.find,Lk="find",Bk=!0;Lk in[]&&Array(1)[Lk](function(){Bk=!1}),function(e,t){var n,r,o,i,a,s=e.target,l=e.global,c=e.stat;if(n=l?pF:c?pF[s]||mF(s,{}):(pF[s]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=hF(n,r))&&a.value:n[r],!yF(l?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;vF(i,o)}(e.sham||o&&o.sham)&&fF(i,"sham",!0),gF(n,r,i,e)}}({target:"Array",proto:!0,forced:Bk},{find:function(e){return kk(this,e,arguments.length>1?arguments[1]:void 0)}}),function(e){Fk[Ik][e]=!0}(Lk);var Nk="__react_tooltip_hide_event",jk="__react_tooltip_rebuild_event",Uk="__react_tooltip_show_event",Vk=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)},Hk=function(e,t){var n=this.state.show,r=this.props.id,o=this.isCapture(t.currentTarget),i=t.currentTarget.getAttribute("currentItem");o||t.stopPropagation(),n&&"true"===i?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),Gk(t.currentTarget,this.getTargetArray(r)),this.showTooltip(t))},Gk=function(e,t){for(var n=0;n<t.length;n++)e!==t[n]?t[n].setAttribute("currentItem","false"):t[n].setAttribute("currentItem","true")},Wk={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:TP({},t,n)})},get:function(e,t){var n=e[this.id];if(void 0!==n)return n[t]}},zk=function(e,t,n){for(var r,o,i=t.respectEffect,a=void 0!==i&&i,s=t.customEvent,l=void 0!==s&&s,c=this.props.id,u=null,d=n.target;null===u&&null!==d;)o=d,u=d.getAttribute("data-tip")||null,r=d.getAttribute("data-for")||null,d=d.parentElement;if(d=o||n.target,!this.isCustomEvent(d)||l){var p=null==c&&null==r||r===c;if(null!=u&&(!a||"float"===this.getEffect(d))&&p){var h=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);h.currentTarget=d,e(h)}}},$k=function(e,t){var n={};return e.forEach(function(e){var r=e.getAttribute(t);r&&r.split(" ").forEach(function(e){return n[e]=!0})}),n},Kk=function(){return document.getElementsByTagName("body")[0]};function Qk(e,t,n,r,o,i,a){var s,l=qk(n),c=l.width,u=l.height,d=qk(t),p=d.width,h=d.height,f=Yk(e,t,i),g=f.mouseX,m=f.mouseY,v=Xk(i,p,h,c,u),y=Zk(a),A=y.extraOffsetX,w=y.extraOffsetY,b=window.innerWidth,_=window.innerHeight,C=Jk(n),E=C.parentTop,S=C.parentLeft,O=function(e){var t=v[e].l;return g+t+A},x=function(e){var t=v[e].t;return m+t+w},D=function(e){return!function(e){return function(e){return O(e)<0}(e)||function(e){return function(e){var t=v[e].r;return g+t+A}(e)>b}(e)||function(e){return x(e)<0}(e)||function(e){return function(e){var t=v[e].b;return m+t+w}(e)>_}(e)}(e)},P={top:D("top"),bottom:D("bottom"),left:D("left"),right:D("right")},M=function(){var e,t=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return kP(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)?kP(e,t):void 0}}(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(o.split(",").concat(r,["top","bottom","left","right"]));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(P[n])return n}}catch(e){t.e(e)}finally{t.f()}return r}(),T=!1;return M&&M!==r&&(T=!0,s=M),T?{isNewState:!0,newState:{place:s}}:{isNewState:!1,position:{left:parseInt(O(r)-S,10),top:parseInt(x(r)-E,10)}}}var qk=function(e){var t=e.getBoundingClientRect(),n=t.height,r=t.width;return{height:parseInt(n,10),width:parseInt(r,10)}},Yk=function(e,t,n){var r=t.getBoundingClientRect(),o=r.top,i=r.left,a=qk(t),s=a.width,l=a.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:i+s/2,mouseY:o+l/2}},Xk=function(e,t,n,r,o){var i,a,s,l;return"float"===e?(i={l:-r/2,r:r/2,t:-(o+3+2),b:-3},s={l:-r/2,r:r/2,t:15,b:o+3+2+12},l={l:-(r+3+2),r:-3,t:-o/2,b:o/2},a={l:3,r:r+3+2,t:-o/2,b:o/2}):"solid"===e&&(i={l:-r/2,r:r/2,t:-(n/2+o+2),b:-n/2},s={l:-r/2,r:r/2,t:n/2,b:n/2+o+2},l={l:-(r+t/2+2),r:-t/2,t:-o/2,b:o/2},a={l:t/2,r:r+t/2+2,t:-o/2,b:o/2}),{top:i,bottom:s,left:l,right:a}},Zk=function(e){var t=0,n=0;for(var r in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===r?n-=parseInt(e[r],10):"bottom"===r?n+=parseInt(e[r],10):"left"===r?t-=parseInt(e[r],10):"right"===r&&(t+=parseInt(e[r],10));return{extraOffsetX:t,extraOffsetY:n}},Jk=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 eL(e,t,n,r){if(t)return t;if(null!=n)return n;if(null===n)return null;var o=/<br\s*\/?>/;return r&&"false"!==r&&o.test(e)?e.split(o).map(function(e,t){return f().createElement("span",{key:t,className:"multi-line"},e)}):e}function tL(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 nL(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map(function(t){return e[t]})}var rL,oL,iL,aL={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"}},sL={tooltip:3,arrow:0},lL=function(e){e.hide=function(e){Vk(Nk,{target:e})},e.rebuild=function(){Vk(jk)},e.show=function(e){Vk(Uk,{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)}}}(rL=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(Nk,this.globalHide),window.addEventListener(Nk,this.globalHide,!1),window.removeEventListener(jk,this.globalRebuild),window.addEventListener(jk,this.globalRebuild,!1),window.removeEventListener(Uk,this.globalShow),window.addEventListener(Uk,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(Nk,this.globalHide),window.removeEventListener(jk,this.globalRebuild),window.removeEventListener(Uk,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(rL=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,r=n.event,o=n.eventOff,i=e.getAttribute("data-event")||r,a=e.getAttribute("data-event-off")||o;i.split(" ").forEach(function(n){e.removeEventListener(n,Wk.get(e,n));var r=Hk.bind(t,a);Wk.set(e,n,r),e.addEventListener(n,r,!1)}),a&&a.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,r=t.eventOff,o=n||e.getAttribute("data-event"),i=r||e.getAttribute("data-event-off");e.removeEventListener(o,Wk.get(e,n)),i&&e.removeEventListener(i,this.hideTooltip)}}(rL=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(rL=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(rL=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,n=this.state,r=n.event,o=n.eventOff,i=n.possibleCustomEvents,a=n.possibleCustomEventsOff,s=Kk(),l=$k(e,"data-event"),c=$k(e,"data-event-off");null!=r&&(l[r]=!0),null!=o&&(c[o]=!0),i.split(" ").forEach(function(e){return l[e]=!0}),a.split(" ").forEach(function(e){return c[e]=!0}),this.unbindBodyListener(s);var u=this.bodyModeListeners={};for(var d in null==r&&(u.mouseover=zk.bind(this,this.showTooltip,{}),u.mousemove=zk.bind(this,this.updateTooltip,{respectEffect:!0}),u.mouseout=zk.bind(this,this.hideTooltip,{})),l)u[d]=zk.bind(this,function(e){var n=e.currentTarget.getAttribute("data-event-off")||o;Hk.call(t,n,e)},{customEvent:!0});for(var p in c)u[p]=zk.bind(this,this.hideTooltip,{customEvent:!0});for(var h in u)s.addEventListener(h,u[h])},e.prototype.unbindBodyListener=function(e){e=e||Kk();var t=this.bodyModeListeners;for(var n in t)e.removeEventListener(n,t[n])}}((oL=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&FP(e,t)}(i,e);var t,n,r,o=function(e){var t=function(){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}}();return function(){var n,r=IP(e);if(t){var o=IP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={uuid:e.uuid||"t"+xP(),place:e.place||"top",desiredPlace:e.place||"top",type:e.type||"dark",effect:e.effect||"float",show:!1,border:!1,borderClass:"border",customColors:{},customRadius:{},offset:{},padding:e.padding,extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:tL(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},t.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),t.mount=!0,t.delayShowLoop=null,t.delayHideLoop=null,t.delayReshow=null,t.intervalUpdateContent=null,t}return t=i,n=[{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;e.insecure;var t=e.resizeHide,n=e.disableInternalStyle;this.mount=!0,this.bindListener(),this.bindWindowEvents(t),n||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 r=document.createElement("style");r.textContent='.__react_component_tooltip {\n  border-radius: 3px;\n  display: inline-block;\n  font-size: 13px;\n  left: -999em;\n  opacity: 0;\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  bottom: 0;\n  left: 50%;\n  margin-left: -11px;\n}\n.__react_component_tooltip.place-bottom::before {\n  top: 0;\n  left: 50%;\n  margin-left: -11px;\n}\n.__react_component_tooltip.place-left::before {\n  right: 0;\n  top: 50%;\n  margin-top: -9px;\n}\n.__react_component_tooltip.place-right::before {\n  left: 0;\n  top: 50%;\n  margin-top: -9px;\n}\n.__react_component_tooltip .multi-line {\n  display: block;\n  padding: 2px 0;\n  text-align: center;\n}',r.setAttribute("data-react-tooltip","true"),t.appendChild(r)}}}},{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 r=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(r,'"]')}else t="[data-tip]:not([data-for])";return nL(document.getElementsByTagName("*")).filter(function(e){return e.shadowRoot}).forEach(function(e){n=n.concat(nL(e.shadowRoot.querySelectorAll(t)))}),n.concat(nL(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff,o=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),r=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),t.addEventListener("focus",e.showTooltip,n),"float"===r&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n),t.addEventListener("blur",e.hideTooltip,n))}),r&&(window.removeEventListener(r,this.hideTooltip),window.addEventListener(r,this.hideTooltip,o)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(n).forEach(function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)}),r&&window.removeEventListener(r,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,r=t.children;return n&&(e=Array.isArray(n)?n[0]&&n[0](this.state.originTooltip):n(this.state.originTooltip)),eL(this.state.originTooltip,r,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,r=n.multiline,o=n.getContent,i=e.currentTarget.getAttribute("data-tip"),a=e.currentTarget.getAttribute("data-multiline")||r||!1,s=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.props.id||this.state.uuid);var c=e.currentTarget.getAttribute("data-place")||this.props.place||"top",u=s?"solid":this.getEffect(e.currentTarget),d=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},p=Qk(e,e.currentTarget,this.tooltipRef,c.split(",")[0],c,u,d);p.position&&this.props.overridePosition&&(p.position=this.props.overridePosition(p.position,e,e.currentTarget,this.tooltipRef,c,c,u,d));var h=p.isNewState?p.newState.place:c.split(",")[0];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:a,desiredPlace:c,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},customRadius:{tooltip:f.getAttribute("data-tooltip-radius")||m.props.tooltipRadius||"3",arrow:f.getAttribute("data-arrow-radius")||m.props.arrowRadius||"0"},effect:u,offset:d,padding:f.getAttribute("data-padding")||m.props.padding,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,borderClass:f.getAttribute("data-border-class")||m.props.borderClass||"border",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),o&&Array.isArray(o)&&(m.intervalUpdateContent=setInterval(function(){if(m.mount){var e=m.props.getContent,t=eL(i,"",e[0](),a),n=m.isEmptyTip(t);m.setState({isEmptyTip:n}),m.updatePosition()}},o[1]))})};g?this.delayReshow=setTimeout(v,g):v()}}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,r=n.delayShow,o=n.disable,i=this.props,a=i.afterShow,s=i.disable,l=this.getTooltipContent(),c=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!(this.isEmptyTip(l)||o||s)){var u=this.state.show?0:parseInt(r,10),d=function(){if(Array.isArray(l)&&l.length>0||l){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:c,show:!0},function(){t.updatePosition(function(){n&&a&&a(e)})})}};this.delayShowLoop&&clearTimeout(this.delayShowLoop),u?this.delayShowLoop=setTimeout(d,u):(this.delayShowLoop=null,d())}}},{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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},o=this.state.disable,i=r.isScroll?0:this.state.delayHide,a=this.props,s=a.afterHide,l=a.disable,c=this.getTooltipContent();if(this.mount&&!(this.isEmptyTip(c)||o||l)){if(t&&(!this.getTargetArray(this.props.id).some(function(t){return t===e.currentTarget})||!this.state.show))return;e&&e.currentTarget&&e.currentTarget.removeAttribute&&e.currentTarget.removeAttribute("aria-describedby");var u=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},function(){n.removeScrollListener(n.state.currentTarget),t&&s&&s(e)}))};this.clearTimer(),i?this.delayHideLoop=setTimeout(u,parseInt(i,10)):u()}}},{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(e){var t=this,n=this.state,r=n.currentEvent,o=n.currentTarget,i=n.place,a=n.desiredPlace,s=n.effect,l=n.offset,c=this.tooltipRef,u=Qk(r,o,c,i,a,s,l);if(u.position&&this.props.overridePosition&&(u.position=this.props.overridePosition(u.position,r,o,c,i,a,s,l)),u.isNewState)return this.setState(u.newState,function(){t.updatePosition(e)});e&&"function"==typeof e&&e(),c.style.left=u.position.left+"px",c.style.top=u.position.top+"px"}},{key:"clearTimer",value:function(){this.delayShowLoop&&(clearTimeout(this.delayShowLoop),this.delayShowLoop=null),this.delayHideLoop&&(clearTimeout(this.delayHideLoop),this.delayHideLoop=null),this.delayReshow&&(clearTimeout(this.delayReshow),this.delayReshow=null),this.intervalUpdateContent&&(clearInterval(this.intervalUpdateContent),this.intervalUpdateContent=null)}},{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,t=this.state,n=t.extraClass,r=t.html,o=t.ariaProps,a=t.disable,s=t.uuid,l=this.getTooltipContent(),c=this.isEmptyTip(l),u=this.props.disableInternalStyle?"":function(e,t,n,r,o,i){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"8px 21px",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:sL,o=t.text,i=t.background,a=t.border,s=t.arrow,l=r.arrow,c=r.tooltip;return"\n  \t.".concat(e," {\n\t    color: ").concat(o,";\n\t    background: ").concat(i,";\n\t    border: 1px solid ").concat(a,";\n\t    border-radius: ").concat(c,"px;\n\t    padding: ").concat(n,";\n  \t}\n\n  \t.").concat(e,".place-top {\n        margin-top: -10px;\n    }\n    .").concat(e,'.place-top::before {\n        content: "";\n        background-color: inherit;\n        position: absolute;\n        z-index: -1;\n        width: 18px;\n        height: 10px;\n    }\n    .').concat(e,'.place-top::after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        border-top-right-radius: ').concat(l,"px;\n        border: 1px solid ").concat(a,";\n        background-color: ").concat(s,";\n        z-index: -2;\n        bottom: -6px;\n        left: 50%;\n        margin-left: -8px;\n        transform: rotate(135deg);\n    }\n\n    .").concat(e,".place-bottom {\n        margin-top: 10px;\n    }\n    .").concat(e,'.place-bottom::before {\n        content: "";\n        background-color: inherit;\n        position: absolute;\n        z-index: -1;\n        width: 18px;\n        height: 10px;\n    }\n    .').concat(e,'.place-bottom::after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        border-top-right-radius: ').concat(l,"px;\n        border: 1px solid ").concat(a,";\n        background-color: ").concat(s,";\n        z-index: -2;\n        top: -6px;\n        left: 50%;\n        margin-left: -8px;\n        transform: rotate(45deg);\n    }\n\n    .").concat(e,".place-left {\n        margin-left: -10px;\n    }\n    .").concat(e,'.place-left::before {\n        content: "";\n        background-color: inherit;\n        position: absolute;\n        z-index: -1;\n        width: 10px;\n        height: 18px;\n    }\n    .').concat(e,'.place-left::after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        border-top-right-radius: ').concat(l,"px;\n        border: 1px solid ").concat(a,";\n        background-color: ").concat(s,";\n        z-index: -2;\n        right: -6px;\n        top: 50%;\n        margin-top: -6px;\n        transform: rotate(45deg);\n    }\n\n    .").concat(e,".place-right {\n        margin-left: 10px;\n    }\n    .").concat(e,'.place-right::before {\n        content: "";\n        background-color: inherit;\n        position: absolute;\n        z-index: -1;\n        width: 10px;\n        height: 18px;\n    }\n    .').concat(e,'.place-right::after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        border-top-right-radius: ').concat(l,"px;\n        border: 1px solid ").concat(a,";\n        background-color: ").concat(s,";\n        z-index: -2;\n        left: -6px;\n        top: 50%;\n        margin-top: -6px;\n        transform: rotate(-135deg);\n    }\n  ")}(e,function(e,t,n){var r=e.text,o=e.background,i=e.border,a=e.arrow?e.arrow:e.background,s=function(e){return aL[e]?PP({},aL[e]):void 0}(t);return r&&(s.text=r),o&&(s.background=o),n&&(s.border=i||("light"===t?"black":"white")),a&&(s.arrow=a),s}(t,n,r),o,i)}(this.state.uuid,this.state.customColors,this.state.type,this.state.border,this.state.padding,this.state.customRadius),d="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||a||c?"":" show")+(this.state.border?" "+this.state.borderClass:"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),p=this.props.wrapper;i.supportedWrappers.indexOf(p)<0&&(p=i.defaultProps.wrapper);var h=[d,n].filter(Boolean).join(" ");if(r){var g="".concat(l).concat(u?'\n<style aria-hidden="true">'.concat(u,"</style>"):"");return f().createElement(p,RP({className:"".concat(h),id:this.props.id||s,ref:function(t){return e.tooltipRef=t}},o,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:g}}))}return f().createElement(p,RP({className:"".concat(h),id:this.props.id||s},o,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),u&&f().createElement("style",{dangerouslySetInnerHTML:{__html:u},"aria-hidden":"true"}),l)}}],r=[{key:"propTypes",get:function(){return{uuid:bP().string,children:bP().any,place:bP().string,type:bP().string,effect:bP().string,offset:bP().object,padding:bP().string,multiline:bP().bool,border:bP().bool,borderClass:bP().string,textColor:bP().string,backgroundColor:bP().string,borderColor:bP().string,arrowColor:bP().string,arrowRadius:bP().string,tooltipRadius:bP().string,insecure:bP().bool,class:bP().string,className:bP().string,id:bP().string,html:bP().bool,delayHide:bP().number,delayUpdate:bP().number,delayShow:bP().number,event:bP().string,eventOff:bP().string,isCapture:bP().bool,globalEventOff:bP().string,getContent:bP().any,afterShow:bP().func,afterHide:bP().func,overridePosition:bP().func,disable:bP().bool,scrollHide:bP().bool,resizeHide:bP().bool,wrapper:bP().string,bodyMode:bP().bool,possibleCustomEvents:bP().string,possibleCustomEventsOff:bP().string,clickable:bP().bool,disableInternalStyle:bP().bool}}},{key:"getDerivedStateFromProps",value:function(e,t){var n=t.ariaProps,r=tL(e);return Object.keys(r).some(function(e){return r[e]!==n[e]})?PP(PP({},t),{},{ariaProps:r}):null}}],n&&MP(t.prototype,n),r&&MP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(f().Component),TP(oL,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),TP(oL,"supportedWrappers",["div","span"]),TP(oL,"displayName","ReactTooltip"),(iL=rL=oL).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 r=t[n],o=0;o<r.removedNodes.length;o++)if(r.removedNodes[o]===e.state.currentTarget)return void e.hideTooltip()});n.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=n}},rL=void(iL.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||rL))||rL)||rL)||rL)||rL)||rL)||rL;const cL={"hh:mm:ss:ff":8,"mm:ss:ff":6,"ss:ff":4,ff:2},uL={"hh:mm:ss:ff":"200px","mm:ss:ff":"150px","ss:ff":"100px",ff:"50px"},dL=e=>{const{frameRate:t,disabled:n,onChange:r,onUpdate:o,onEnter:i,onBlur:a,onFocus:l,value:c,style:u,inputKey:d,inputRef:f}=e,g=e.withRestore??!0,m=e.minValue??1e3,v=e.defaultValue??0,y=e.timerResolution??"hh:mm:ss:ff",A=(0,h.useMemo)(()=>{const e=cL[y];return Array.from({length:e},()=>"0").join("")},[y]),[w,b]=(0,h.useState)(v?(0,s.calculateTimecodeFromMilliseconds)(v,t,y):A),[_,C]=(0,h.useState)(" "),[E,S]=(0,h.useState)(!1),O=(0,h.useRef)(null),x=(0,h.useRef)(null),D=(0,h.useRef)(!1),P=(0,h.useRef)(A),M=(0,h.useRef)(ds()),T=(0,h.useCallback)(e=>e?e.match(/.{1,2}/g):A.match(/.{1,2}/g),[A]);(0,h.useEffect)(()=>{o&&o((0,s.calculateMillisecondsFromTimecode)(T(w.padStart(8,"0")).join(":"),t,y))},[w,o,t,y,T]),(0,h.useEffect)(()=>{!n&&E?(clearTimeout(O.current),O.current=setTimeout(()=>C("|"===_?" ":"|"),1e3)):C(" ")},[_,n,E]),(0,h.useEffect)(()=>{void 0!==c&&b((0,s.calculateTimecodeFromMilliseconds)(c,t,y))},[c,t,y]);const R=e=>{const n=(0,s.calculateMillisecondsFromTimecode)(T(e.padStart(8,"0")).join(":"),t,y);n!==c&&r&&r(n),b(e)},I=e=>{let n=e;(0,s.calculateMillisecondsFromTimecode)(T(n.padStart(8,"0")).join(":"),t,y)<m&&(n=(0,s.calculateTimecodeFromMilliseconds)(m??v??0,t,y)),x.current&&(clearTimeout(x.current),x.current=null),x.current=setTimeout(()=>{R(n)},100)},F=(0,h.useMemo)(()=>{const e=T(w).reverse().map(Number),n=e.map((n,r)=>{const o=n<10,i=e.slice(r+1).some(e=>0!==e),a=0!==n||i?"":"gv-timecode-dimmed";return o?(0,p.jsxs)("span",{className:`${n<10}`,children:[(0,p.jsx)("span",{className:i?"":"gv-timecode-dimmed",children:"0"}),(0,p.jsx)("span",{className:0!==n||i?"":"gv-timecode-dimmed",children:n}),0!==r&&(0,p.jsx)("span",{className:a,children:1===r&&t?t.getSeparator():":"})]},r):(0,p.jsxs)("span",{children:[n,0!==r&&(0,p.jsx)("span",{className:a,children:1===r&&t?t.getSeparator():":"})]},r)}).reverse();return n},[w,n,t,T]);return(0,p.jsxs)("div",{style:{position:"relative"},children:[(0,p.jsx)(lL,{id:`transition-clear-${M.current}`,place:"top",effect:"solid",children:"Restore default."}),(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"row",marginTop:"10px",marginRight:"10px"},children:[(0,p.jsxs)("div",{onClick:()=>{n||(P.current=w,S(!0))},onKeyDown:e=>{if(!n){switch(e.key){case"Enter":e.preventDefault(),i?.();break;case"Backspace":if(w===A)break;b(`0${w.slice(0,-1)}`);break;case".":if(w===A)break;b(`${w}00`.slice(2));break;default:if(Number.isNaN(Number(e.key)))break;R((w+e.key).slice(1))}D.current=!0}},ref:f,id:d,tabIndex:0,onFocus:()=>(e=>{n||(S(!0),l?.((0,s.calculateMillisecondsFromTimecode)(T(e.padStart(8,"0")).join(":"),t,y)))})(w),onBlur:()=>(e=>{if(n)return;S(!1);const r=D.current?e:P.current;I(r),D.current=!1,P.current=A,a?.((0,s.calculateMillisecondsFromTimecode)(T(r.padStart(8,"0")).join(":"),t,y))})(w),className:"gv-timecode-display",style:{cursor:n?"default":"text",marginRight:"2px",marginTop:"0px",outline:"none",minWidth:`${uL[y??"ss:ff"]}`,filter:E?"brigthness(1.2)":n?"brightness(0.7)":""},children:[F,(0,p.jsx)("span",{className:"gv-timecode-cursor",style:{cursor:"default",minWidth:"10px"},children:_})]},d??M.current),(0,p.jsx)("div",{style:{...u&&u["gv-timecode-spacer"]}}),(0,p.jsx)("span",{"data-tip":!0,"data-for":n?"":`transition-clear-${M.current}`,children:!n&&g&&(0,p.jsx)(AP,{style:{width:"62px",height:"62px"},primaryIcon:"interface-undo",onMouseDown:e=>{e.preventDefault()},onClick:()=>{D.current=!0,P.current=A,I((0,s.calculateTimecodeFromMilliseconds)(v??0,t,y)),a?.((0,s.calculateMillisecondsFromTimecode)(T(v.toString().padStart(8,"0")).join(":"),t,y))}})})]})]})},pL=e=>{const{style:t="default"}=e,n=Oo()("gv-textinput",`gv-textinput-${t}`,e.className,e.classNames);return(0,p.jsx)("input",{autoComplete:e.autoComplete??"off",placeholder:e.placeholder||"Enter a value...",className:n,name:e.name,title:e.hint,autoFocus:e.autoFocus,onChange:t=>{const n="password"===e.type?t.target.value.trim():t.target.value;e.onChange&&e.onChange(n)},onBlur:t=>{const n="password"===e.type?t.target.value.trim():t.target.value;e.onBlur&&e.onBlur(n)},onFocus:t=>(e.textSelectedOnFocus&&t.target.select(),e.onFocus&&e.onFocus(t.target.value)),value:e.uncontrolled?void 0:void 0===e.value?"":e.value,defaultValue:e.defaultValue,ref:e.inputRef,disabled:e.disabled,type:e.type||"text",id:e.id,tabIndex:e.tabIndex,onKeyUp:t=>e.onKeyUp&&e.onKeyUp(t),onKeyDown:t=>e.onKeyDown&&e.onKeyDown(t),spellCheck:e.spellcheck})},hL=e=>(0,p.jsxs)("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:[(0,p.jsx)(Fo,{style:{width:"15px",height:"15px",backgroundSize:"cover",position:"absolute",zIndex:30,marginLeft:"6px",top:"6px"},icon:e.icon}),(0,p.jsx)(pL,{...e,style:"searchWithIcon"})]}),fL=e=>{const[t,n]=(0,h.useState)(""),r=e.searchDisabled??!1,o=t?.toLowerCase(),{items:i,selected:a,onSelect:s,filter:l,filterValue:c,className:u,style:d}=e;return(0,p.jsxs)("div",{className:Oo()("gv-filter-list",!!u&&u),style:d,children:[!r&&(0,p.jsxs)("div",{className:"gv-filter-list-search",children:[(0,p.jsx)(Fo,{icon:"search",size:"25",active:!!t}),(0,p.jsx)(pL,{placeholder:"Search here...",value:t,style:"search",onChange:n})]}),(0,p.jsx)("div",{className:"gv-filter-list-items",children:i.filter(e=>l?l(e):c&&e.value.toLowerCase().includes(o)||e.label.toLowerCase().includes(o)).map((e,t)=>(0,p.jsx)(vP,{onClick:s,selected:a===e.value,...e},`filter-list-${t}`))})]})};var gL=u(82451),mL=u.n(gL);const vL=Array.isArray,yL="object"==typeof u.g&&u.g&&u.g.Object===Object&&u.g;var AL="object"==typeof self&&self&&self.Object===Object&&self;const wL=yL||AL||Function("return this")(),bL=wL.Symbol;var _L=Object.prototype,CL=_L.hasOwnProperty,EL=_L.toString,SL=bL?bL.toStringTag:void 0,OL=Object.prototype.toString,xL=bL?bL.toStringTag:void 0;const DL=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":xL&&xL in Object(e)?function(e){var t=CL.call(e,SL),n=e[SL];try{e[SL]=void 0;var r=!0}catch(e){}var o=EL.call(e);return r&&(t?e[SL]=n:delete e[SL]),o}(e):function(e){return OL.call(e)}(e)},PL=function(e){return null!=e&&"object"==typeof e},ML=function(e){return"symbol"==typeof e||PL(e)&&"[object Symbol]"==DL(e)};var TL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,RL=/^\w*$/;const IL=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},FL=function(e){if(!IL(e))return!1;var t=DL(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},kL=wL["__core-js_shared__"];var LL=function(){var e=/[^.]+$/.exec(kL&&kL.keys&&kL.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),BL=Function.prototype.toString;const NL=function(e){if(null!=e){try{return BL.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var jL=/^\[object .+?Constructor\]$/,UL=Function.prototype,VL=Object.prototype,HL=UL.toString,GL=VL.hasOwnProperty,WL=RegExp("^"+HL.call(GL).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const zL=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!IL(e)||(t=e,LL&&LL in t))&&(FL(e)?WL:jL).test(NL(e));var t}(n)?n:void 0},$L=zL(Object,"create");var KL=Object.prototype.hasOwnProperty,QL=Object.prototype.hasOwnProperty;function qL(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qL.prototype.clear=function(){this.__data__=$L?$L(null):{},this.size=0},qL.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qL.prototype.get=function(e){var t=this.__data__;if($L){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return KL.call(t,e)?t[e]:void 0},qL.prototype.has=function(e){var t=this.__data__;return $L?void 0!==t[e]:QL.call(t,e)},qL.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$L&&void 0===t?"__lodash_hash_undefined__":t,this};const YL=qL,XL=function(e,t){return e===t||e!=e&&t!=t},ZL=function(e,t){for(var n=e.length;n--;)if(XL(e[n][0],t))return n;return-1};var JL=Array.prototype.splice;function eB(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}eB.prototype.clear=function(){this.__data__=[],this.size=0},eB.prototype.delete=function(e){var t=this.__data__,n=ZL(t,e);return!(n<0||(n==t.length-1?t.pop():JL.call(t,n,1),--this.size,0))},eB.prototype.get=function(e){var t=this.__data__,n=ZL(t,e);return n<0?void 0:t[n][1]},eB.prototype.has=function(e){return ZL(this.__data__,e)>-1},eB.prototype.set=function(e,t){var n=this.__data__,r=ZL(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const tB=eB,nB=zL(wL,"Map"),rB=function(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function oB(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oB.prototype.clear=function(){this.size=0,this.__data__={hash:new YL,map:new(nB||tB),string:new YL}},oB.prototype.delete=function(e){var t=rB(this,e).delete(e);return this.size-=t?1:0,t},oB.prototype.get=function(e){return rB(this,e).get(e)},oB.prototype.has=function(e){return rB(this,e).has(e)},oB.prototype.set=function(e,t){var n=rB(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const iB=oB;function aB(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(aB.Cache||iB),n}aB.Cache=iB;const sB=aB;var lB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cB=/\\(\\)?/g,uB=function(){var e=sB(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(lB,function(e,n,r,o){t.push(r?o.replace(cB,"$1"):n||e)}),t},function(e){return 500===t.size&&t.clear(),e}),t=e.cache;return e}();const dB=uB,pB=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o};var hB=bL?bL.prototype:void 0,fB=hB?hB.toString:void 0;const gB=function e(t){if("string"==typeof t)return t;if(vL(t))return pB(t,e)+"";if(ML(t))return fB?fB.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},mB=function(e){return null==e?"":gB(e)},vB=function(e,t){return vL(e)?e:function(e,t){if(vL(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ML(e))||RL.test(e)||!TL.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:dB(mB(e))},yB=function(e){if("string"==typeof e||ML(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},AB=function(e,t){for(var n=0,r=(t=vB(t,e)).length;null!=e&&n<r;)e=e[yB(t[n++])];return n&&n==r?e:void 0},wB=function(){try{var e=zL(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var bB=Object.prototype.hasOwnProperty;const _B=function(e,t,n){var r=e[t];bB.call(e,t)&&XL(r,n)&&(void 0!==n||t in e)||function(e,t,n){"__proto__"==t&&wB?wB(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}(e,t,n)};var CB=/^(?:0|[1-9]\d*)$/;const EB=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&CB.test(e))&&e>-1&&e%1==0&&e<t},SB=function(e,t,n,r){if(!IL(e))return e;for(var o=-1,i=(t=vB(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var l=yB(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=IL(u)?u:EB(t[o+1])?[]:{})}_B(s,l,c),s=s[l]}return e},OB=function(e,t){return null!=e&&t in Object(e)},xB=function(e){return PL(e)&&"[object Arguments]"==DL(e)};var DB=Object.prototype,PB=DB.hasOwnProperty,MB=DB.propertyIsEnumerable;const TB=xB(function(){return arguments}())?xB:function(e){return PL(e)&&PB.call(e,"callee")&&!MB.call(e,"callee")},RB=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},IB=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};var FB=bL?bL.isConcatSpreadable:void 0;const kB=function(e){return vL(e)||TB(e)||!!(FB&&e&&e[FB])},LB=function e(t,n,r,o,i){var a=-1,s=t.length;for(r||(r=kB),i||(i=[]);++a<s;){var l=t[a];n>0&&r(l)?n>1?e(l,n-1,r,o,i):IB(i,l):o||(i[i.length]=l)}return i},BB=function(e){return null!=e&&e.length?LB(e,1):[]};var NB=Math.max;const jB=function(e,t,n){return t=NB(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=NB(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}},UB=function(e){return function(){return e}},VB=function(e){return e};var HB=wB?function(e,t){return wB(e,"toString",{configurable:!0,enumerable:!1,value:UB(t),writable:!0})}:VB;const GB=HB;var WB=Date.now;const zB=($B=GB,KB=0,QB=0,function(){var e=WB(),t=16-(e-QB);if(QB=e,t>0){if(++KB>=800)return arguments[0]}else KB=0;return $B.apply(void 0,arguments)});var $B,KB,QB;const qB=function(e){return zB(jB(e,void 0,BB),e+"")}(function(e,t){return null==e?{}:function(e,t){return function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=AB(e,a);n(0,a)&&SB(i,vB(a,e),s)}return i}(e,t,function(t,n){return function(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=vB(t,e)).length,i=!1;++r<o;){var a=yB(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&RB(o)&&EB(a,o)&&(vL(e)||TB(e))}(e,t,OB)}(e,n)})}(e,t)});var YB=Object.prototype;const XB=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||YB)},ZB=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var JB=Object.prototype.hasOwnProperty;const eN=zL(wL,"DataView"),tN=zL(wL,"Promise"),nN=zL(wL,"Set"),rN=zL(wL,"WeakMap");var oN="[object Map]",iN="[object Promise]",aN="[object Set]",sN="[object WeakMap]",lN="[object DataView]",cN=NL(eN),uN=NL(nB),dN=NL(tN),pN=NL(nN),hN=NL(rN),fN=DL;(eN&&fN(new eN(new ArrayBuffer(1)))!=lN||nB&&fN(new nB)!=oN||tN&&fN(tN.resolve())!=iN||nN&&fN(new nN)!=aN||rN&&fN(new rN)!=sN)&&(fN=function(e){var t=DL(e),n="[object Object]"==t?e.constructor:void 0,r=n?NL(n):"";if(r)switch(r){case cN:return lN;case uN:return oN;case dN:return iN;case pN:return aN;case hN:return sN}return t});const gN=fN,mN=function(e){return null!=e&&RB(e.length)&&!FL(e)};var vN=t&&!t.nodeType&&t,yN=vN&&e&&!e.nodeType&&e,AN=yN&&yN.exports===vN?wL.Buffer:void 0;const wN=(AN?AN.isBuffer:void 0)||function(){return!1};var bN={};bN["[object Float32Array]"]=bN["[object Float64Array]"]=bN["[object Int8Array]"]=bN["[object Int16Array]"]=bN["[object Int32Array]"]=bN["[object Uint8Array]"]=bN["[object Uint8ClampedArray]"]=bN["[object Uint16Array]"]=bN["[object Uint32Array]"]=!0,bN["[object Arguments]"]=bN["[object Array]"]=bN["[object ArrayBuffer]"]=bN["[object Boolean]"]=bN["[object DataView]"]=bN["[object Date]"]=bN["[object Error]"]=bN["[object Function]"]=bN["[object Map]"]=bN["[object Number]"]=bN["[object Object]"]=bN["[object RegExp]"]=bN["[object Set]"]=bN["[object String]"]=bN["[object WeakMap]"]=!1;var _N=t&&!t.nodeType&&t,CN=_N&&e&&!e.nodeType&&e,EN=CN&&CN.exports===_N&&yL.process,SN=function(){try{return CN&&CN.require&&CN.require("util").types||EN&&EN.binding&&EN.binding("util")}catch(e){}}(),ON=SN&&SN.isTypedArray;const xN=ON?function(e){return function(t){return e(t)}}(ON):function(e){return PL(e)&&RB(e.length)&&!!bN[DL(e)]};var DN=Object.prototype.hasOwnProperty,PN=u(37725),MN=u.n(PN),TN=u(587),RN=u.n(TN),IN=u(11482),FN=u.n(IN);function kN(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new iB;++t<n;)this.add(e[t])}kN.prototype.add=kN.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},kN.prototype.has=function(e){return this.__data__.has(e)};const LN=kN,BN=function(e){return e!=e},NN=function(e,t){return!(null==e||!e.length)&&function(e,t){return t==t?function(e,t){for(var n=-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1}(e,t):function(e,t){for(var n=e.length,r=-1;++r<n;)if(t(e[r],r,e))return r;return-1}(e,BN)}(e,t)>-1},jN=function(e,t){return e.has(t)},UN=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var VN=nN&&1/UN(new nN([,-0]))[1]==1/0?function(e){return new nN(e)}:function(){};const HN=VN,GN=function(e){return PL(e)&&mN(e)},WN=function(e){return zB(jB(e,void 0,VB),e+"")}(function(e){return function(e){var t=-1,n=NN,r=e.length,o=!0,i=[],a=i;if(r>=200){var s=HN(e);if(s)return UN(s);o=!1,n=jN,a=new LN}else a=i;e:for(;++t<r;){var l=e[t],c=l;if(l=0!==l?l:0,o&&c==c){for(var u=a.length;u--;)if(a[u]===c)continue e;i.push(l)}else n(a,c,void 0)||(a!==i&&a.push(c),i.push(l))}return i}(LB(e,1,GN,!0))});var zN=u(45838),$N=u(82174),KN=u.n($N),QN=u(99742);function qN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function YN(e,t,n){return t&&qN(e.prototype,t),n&&qN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function XN(){return XN=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XN.apply(this,arguments)}function ZN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,JN(e,t)}function JN(e,t){return JN=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},JN(e,t)}function ej(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function tj(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function nj(e){var t=e.type,n=void 0===t?"default":t,r=e.icon,o=e.className,i=ej(e,["type","icon","className"]);return f().createElement("button",XN({type:"button",className:"btn btn-"+n+" "+o},i),f().createElement("i",{className:"glyphicon glyphicon-"+r}))}function rj(e){var t=e.className,n=e.onClick,r=e.disabled;return f().createElement("div",{className:"row"},f().createElement("p",{className:"col-xs-3 col-xs-offset-9 text-right "+t},f().createElement(nj,{type:"info",icon:"plus",className:"btn-add col-xs-12","aria-label":"Add",tabIndex:"0",onClick:n,disabled:r})))}var oj=bP().shape({ArrayFieldTemplate:bP().elementType,FieldTemplate:bP().elementType,ObjectFieldTemplate:bP().elementType,definitions:bP().object.isRequired,rootSchema:bP().object,fields:bP().objectOf(bP().elementType).isRequired,formContext:bP().object.isRequired,widgets:bP().objectOf(bP().oneOfType([bP().func,bP().object])).isRequired}),ij=(bP().bool,bP().bool,bP().object,bP().any,bP().object,bP().func,bP().func.isRequired,bP().func,bP().string,bP().bool,oj.isRequired,bP().bool,bP().object.isRequired,bP().bool,bP().bool,bP().bool,cj()),aj=null,sj=null,lj="__rjsf_rootSchema";function cj(){var e=new(KN())({errorDataPath:"property",allErrors:!0,multipleOfPrecision:8,schemaId:"auto",unknownFormats:"ignore"});return e.addFormat("data-url",/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/),e.addFormat("color",/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/),e}function uj(e,t){void 0===t&&(t="root");var n=[];return"__errors"in e&&(n=n.concat(e.__errors.map(function(e){return{stack:t+": "+e}}))),Object.keys(e).reduce(function(t,n){return"__errors"!==n&&(t=t.concat(uj(e[n],n))),t},n)}function dj(e){var t={__errors:[],addError:function(e){this.__errors.push(e)}};return Dj(e)?Object.keys(e).reduce(function(t,n){var r;return XN({},t,((r={})[n]=dj(e[n]),r))},t):Array.isArray(e)?e.reduce(function(e,t,n){var r;return XN({},e,((r={})[n]=dj(t),r))},t):t}function pj(e){return Object.keys(e).reduce(function(t,n){var r,o;return"addError"===n?t:XN({},t,"__errors"===n?((o={})[n]=e[n],o):((r={})[n]=pj(e[n]),r))},{})}function hj(e,t,n,r,o,i){void 0===o&&(o=[]),void 0===i&&(i={}),e=Cj(t,e,t,!0);var a=!eU(sj,o),s=!eU(aj,i);(a||s)&&(ij=cj()),o&&a&&Array.isArray(o)&&(ij.addMetaSchema(o),sj=o),i&&s&&Dj(i)&&(Object.keys(i).forEach(function(e){ij.addFormat(e,i[e])}),aj=i);var l=null;try{ij.validate(t,e)}catch(e){l=e}var c=function(e){return void 0===e&&(e=[]),null===e?[]:e.map(function(e){var t=e.dataPath,n=e.keyword,r=e.message,o=e.params,i=e.schemaPath,a=""+t;return{name:n,property:a,message:r,params:o,stack:(a+" "+r).trim(),schemaPath:i}})}(ij.errors);ij.errors=null;var u=l&&l.message&&"string"==typeof l.message&&l.message.includes("no schema with key or ref ");u&&(c=[].concat(c,[{stack:l.message}])),"function"==typeof r&&(c=r(c));var d=function(e){return e.length?e.reduce(function(e,t){var n=t.property,r=t.message,o=function(e){return vL(e)?pB(e,yB):ML(e)?[e]:function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(dB(mB(e)))}(n),i=e;o.length>0&&""===o[0]&&o.splice(0,1);var a=o.slice(0),s=Array.isArray(a),l=0;for(a=s?a:a[Symbol.iterator]();;){var c;if(s){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var u=c;u in i||(i[u]={}),i=i[u]}return Array.isArray(i.__errors)?i.__errors=i.__errors.concat(r):r&&(i.__errors=[r]),e},{}):{}}(c);if(u&&(d=XN({},d,{$schema:{__errors:[l.message]}})),"function"!=typeof n)return{errors:c,errorSchema:d};var p=Pj(d,pj(n(e,dj(e))),!0);return{errors:uj(p),errorSchema:p}}function fj(e){var t=e;if(e.constructor===Object)for(var n in t=XN({},e)){var r=t[n];"$ref"===n&&"string"==typeof r&&r.startsWith("#")?t[n]=lj+r:t[n]=fj(r)}else if(Array.isArray(e)){t=[].concat(e);for(var o=0;o<t.length;o++)t[o]=fj(t[o])}return t}function gj(e,t,n){try{return ij.addSchema(n,lj).validate(fj(e),t)}catch(e){return!1}finally{ij.removeSchema(lj)}}var mj="__additional_property",vj={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function yj(e,t,n){if(!e.additionalProperties)return!1;var r=Sj(t).expandable;return!1===r?r:void 0===e.maxProperties||Object.keys(n).length<e.maxProperties}function Aj(e){var t=e.type;return!t&&e.const?Hj(e.const):!t&&e.enum?"string":t||!e.properties&&!e.additionalProperties?t instanceof Array&&2===t.length&&t.includes("null")?t.find(function(e){return"null"!==e}):t:"object"}function wj(e,t,n){void 0===n&&(n={});var r=Aj(e);if("function"==typeof t||(0,v_.isForwardRef)(f().createElement(t))||(0,v_.isMemo)(t))return function(e){if(!e.MergedWidget){var t=e.defaultProps&&e.defaultProps.options||{};e.MergedWidget=function(n){var r=n.options,o=void 0===r?{}:r,i=ej(n,["options"]);return f().createElement(e,XN({options:XN({},t,o)},i))}}return e.MergedWidget}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(n.hasOwnProperty(t))return wj(e,n[t],n);if(!vj.hasOwnProperty(r))throw new Error('No widget for type "'+r+'"');if(vj[r].hasOwnProperty(t))return wj(e,n[vj[r][t]],n);throw new Error('No widget "'+t+'" for type "'+r+'"')}function bj(e,t,n){void 0===n&&(n={});try{return wj(e,t,n),!0}catch(e){if(e.message&&(e.message.startsWith("No widget")||e.message.startsWith("Unsupported widget")))return!1;throw e}}function _j(e,t,n,r,o){void 0===r&&(r={}),void 0===o&&(o=!1);var i=Dj(e)?e:{},a=Dj(r)?r:{},s=t;if(Dj(s)&&Dj(i.default))s=Pj(s,i.default);else if("default"in i)s=i.default;else{if("$ref"in i)return _j(Vj(i.$ref,n),s,n,a,o);if("dependencies"in i)return _j(Qj(i,n,a),s,n,a,o);Bj(i)?s=i.items.map(function(e,r){return _j(e,Array.isArray(t)?t[r]:void 0,n,a,o)}):"oneOf"in i?i=i.oneOf[dU(void 0,i.oneOf,n)]:"anyOf"in i&&(i=i.anyOf[dU(void 0,i.anyOf,n)])}switch(void 0===s&&(s=i.default),Aj(i)){case"object":return Object.keys(i.properties||{}).reduce(function(e,t){var r=_j(i.properties[t],(s||{})[t],n,(a||{})[t],o);return(o||void 0!==r)&&(e[t]=r),e},{});case"array":if(Array.isArray(s)&&(s=s.map(function(e,t){return _j(i.items[t]||i.additionalItems||{},e,n)})),Array.isArray(r)&&(s=r.map(function(e,t){return _j(i.items,(s||{})[t],n,e)})),i.minItems){if(kj(i,n))return s||[];var l=s?s.length:0;if(i.minItems>l){var c=s||[],u=Array.isArray(i.items)?i.additionalItems:i.items,d=FN()(new Array(i.minItems-l),_j(u,u.defaults,n));return c.concat(d)}}}return s}function Cj(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=!1),!Dj(e))throw new Error("Invalid schema: "+e);var o=_j(Kj(e,n,t),e.default,n,t,r);return void 0===t?o:Dj(t)||Array.isArray(t)?Ej(o,t):0===t||!1===t||""===t?t:t||o}function Ej(e,t){if(Array.isArray(t))return Array.isArray(e)||(e=[]),t.map(function(t,n){return e[n]?Ej(e[n],t):t});if(Dj(t)){var n=Object.assign({},e);return Object.keys(t).reduce(function(n,r){return n[r]=Ej(e?e[r]:{},t[r]),n},n)}return t}function Sj(e){return Object.keys(e).filter(function(e){return 0===e.indexOf("ui:")}).reduce(function(t,n){var r,o=e[n];return"ui:widget"===n&&Dj(o)?(console.warn("Setting options via ui:widget object is deprecated, use ui:options instead"),XN({},t,o.options||{},{widget:o.component})):"ui:options"===n&&Dj(o)?XN({},t,o):XN({},t,((r={})[n.substring(3)]=o,r))},{})}function Oj(e){var t=Sj(e),n={props:{disabled:!1},submitText:"Submit",norender:!1};return t&&t.submitButtonOptions?Object.assign({},n,t.submitButtonOptions):n}function xj(e,t,n){var r=Sj(t).label,o=void 0===r||r,i=Aj(e);return"array"===i&&(o=kj(e,n)||Lj(e,t,n)||Nj(t)),"object"===i&&(o=!1),"boolean"!==i||t["ui:widget"]||(o=!1),t["ui:field"]&&(o=!1),o}function Dj(e){return!("undefined"!=typeof File&&e instanceof File||"object"!=typeof e||null===e||Array.isArray(e))}function Pj(e,t,n){void 0===n&&(n=!1);var r=Object.assign({},e);return Object.keys(t).reduce(function(r,o){var i=e?e[o]:{},a=t[o];return e&&e.hasOwnProperty(o)&&Dj(a)?r[o]=Pj(i,a,n):n&&Array.isArray(i)&&Array.isArray(a)?r[o]=i.concat(a):r[o]=a,r},r)}function Mj(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;var t=Number(e),n="number"==typeof t&&!Number.isNaN(t);return/\.\d*0$/.test(e)?e:n?t:e}}function Tj(e,t){if(!Array.isArray(t))return e;var n,r=function(e){return e.reduce(function(e,t){return e[t]=!0,e},{})},o=r(e),i=t.filter(function(e){return"*"===e||o[e]}),a=r(i),s=e.filter(function(e){return!a[e]}),l=i.indexOf("*");if(-1===l){if(s.length)throw new Error("uiSchema order list does not contain "+((n=s).length>1?"properties '"+n.join("', '")+"'":"property '"+n[0]+"'"));return i}if(l!==i.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var c=[].concat(i);return c.splice.apply(c,[l,1].concat(s)),c}function Rj(e){return Array.isArray(e.enum)&&1===e.enum.length||e.hasOwnProperty("const")}function Ij(e){if(Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(e.hasOwnProperty("const"))return e.const;throw new Error("schema cannot be inferred as a constant")}function Fj(e,t){void 0===t&&(t={});var n=Kj(e,t),r=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(r)&&r.every(function(e){return Rj(e)})}function kj(e,t){return void 0===t&&(t={}),!(!e.uniqueItems||!e.items)&&Fj(e.items,t)}function Lj(e,t,n){if(void 0===n&&(n={}),"files"===t["ui:widget"])return!0;if(e.items){var r=Kj(e.items,n);return"string"===r.type&&"data-url"===r.format}return!1}function Bj(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(function(e){return Dj(e)})}function Nj(e){return"widget"in Sj(e)&&"hidden"!==Sj(e).widget}function jj(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),Dj(e.additionalItems)}function Uj(e){return e.enum?e.enum.map(function(t,n){return{label:e.enumNames&&e.enumNames[n]||String(t),value:t}}):(e.oneOf||e.anyOf).map(function(e){var t=Ij(e);return{schema:e,label:e.title||String(t),value:t}})}function Vj(e,t){void 0===t&&(t={});var n=e;if(!e.startsWith("#"))throw new Error("Could not find a definition for "+n+".");e=decodeURIComponent(e.substring(1));var r=zN.get(t,e);if(void 0===r)throw new Error("Could not find a definition for "+n+".");return r.hasOwnProperty("$ref")?Vj(r.$ref,t):r}var Hj=function(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"};function Gj(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e=XN({},e,{properties:XN({},e.properties)}),n=Dj(n)?n:{},Object.keys(n).forEach(function(r){var o;e.properties.hasOwnProperty(r)||(o=e.additionalProperties.hasOwnProperty("$ref")?Kj({$ref:e.additionalProperties.$ref},t,n):e.additionalProperties.hasOwnProperty("type")?XN({},e.additionalProperties):{type:Hj(n[r])},e.properties[r]=o,e.properties[r][mj]=!0)}),e}var Wj=function(e,t,n){var r=e.if,o=e.then,i=e.else,a=ej(e,["if","then","else"]),s=gj(r,n,t)?o:i;return Kj(s?Zj(a,Kj(s,t,n)):a,t,n)};function zj(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e.hasOwnProperty("$ref")?$j(e,t,n):e.hasOwnProperty("dependencies")?Kj(Qj(e,t,n),t,n):e.hasOwnProperty("allOf")?XN({},e,{allOf:e.allOf.map(function(e){return Kj(e,t,n)})}):e}function $j(e,t,n){return Kj(XN({},Vj(e.$ref,t),ej(e,["$ref"])),t,n)}function Kj(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),!Dj(e))return{};var r=zj(e,t,n);if(e.hasOwnProperty("if"))return Wj(e,t,n);if(r.properties){var o={};Object.entries(r.properties).forEach(function(e){var i=e[0],a=e[1],s=n&&n[i],l=Dj(s)?s:{},c=Kj(a,t,l);o[i]=c,a!==c&&r.properties!==o&&(r=XN({},r,{properties:o}))})}if("allOf"in e)try{r=RN()(XN({},r,{allOf:r.allOf}))}catch(e){return console.warn("could not merge subschemas in allOf:\n"+e),ej(r,["allOf"])}return r.hasOwnProperty("additionalProperties")&&!1!==r.additionalProperties?Gj(r,t,n):r}function Qj(e,t,n){var r=e.dependencies,o=void 0===r?{}:r,i=ej(e,["dependencies"]);return"oneOf"in i?i=i.oneOf[dU(n,i.oneOf,t)]:"anyOf"in i&&(i=i.anyOf[dU(n,i.anyOf,t)]),qj(o,i,t,n)}function qj(e,t,n,r){for(var o in e)if(void 0!==r[o]&&(!t.properties||o in t.properties)){var i=e[o],a=ej(e,[o].map(tj));return Array.isArray(i)?t=Yj(t,i):Dj(i)&&(t=Xj(t,n,r,o,i)),qj(a,t,n,r)}return t}function Yj(e,t){return t?XN({},e,{required:Array.isArray(e.required)?Array.from(new Set([].concat(e.required,t))):t}):e}function Xj(e,t,n,r,o){var i=Kj(o,t,n),a=i.oneOf;if(e=Zj(e,ej(i,["oneOf"])),void 0===a)return e;if(!Array.isArray(a))throw new Error("invalid: it is some "+typeof a+" instead of an array");var s=a.map(function(e){return e.hasOwnProperty("$ref")?$j(e,t,n):e});return function(e,t,n,r,o){var i=o.filter(function(e){if(!e.properties)return!1;var t=e.properties[r];if(t){var o,i={type:"object",properties:(o={},o[r]=t,o)};return 0===hj(n,i).errors.length}});if(1!==i.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),e;var a=i[0];return Zj(e,Kj(XN({},a,{properties:ej(a.properties,[r].map(tj))}),t,n))}(e,t,n,r,s)}function Zj(e,t){var n=Object.assign({},e);return Object.keys(t).reduce(function(n,r){var o=e?e[r]:{},i=t[r];return e&&e.hasOwnProperty(r)&&Dj(i)?n[r]=Zj(o,i):e&&t&&("object"===Aj(e)||"object"===Aj(t))&&"required"===r&&Array.isArray(o)&&Array.isArray(i)?n[r]=WN(o,i):n[r]=i,n},n)}function Jj(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function eU(e,t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(Jj(e)||Jj(t)){if(!Jj(e)||!Jj(t))return!1;var o=Array.prototype.slice;return eU(o.call(e),o.call(t),n,r)}if(e.constructor!==t.constructor)return!1;var i=Object.keys(e),a=Object.keys(t);if(0===i.length&&0===a.length)return!0;if(i.length!==a.length)return!1;for(var s,l=n.length;l--;)if(n[l]===e)return r[l]===t;n.push(e),r.push(t),i.sort(),a.sort();for(var c=i.length-1;c>=0;c--)if(i[c]!==a[c])return!1;for(var u=i.length-1;u>=0;u--)if(!eU(e[s=i[u]],t[s],n,r))return!1;return n.pop(),r.pop(),!0}function tU(e,t,n){var r=e.props,o=e.state;return!eU(r,t)||!eU(o,n)}function nU(e,t,n,r,o,i){void 0===r&&(r={}),void 0===o&&(o="root"),void 0===i&&(i="_");var a={$id:t||o};if("$ref"in e||"dependencies"in e||"allOf"in e)return nU(Kj(e,n,r),t,n,r,o,i);if("items"in e&&!e.items.$ref)return nU(e.items,t,n,r,o,i);if("object"!==e.type)return a;for(var s in e.properties||{}){var l=e.properties[s],c=a.$id+i+s;a[s]=nU(Dj(l)?l:{},c,n,(r||{})[s],o,i)}return a}function rU(e,t,n,r){void 0===t&&(t=""),void 0===r&&(r={});var o={$name:t.replace(/^\./,"")};if("$ref"in e||"dependencies"in e||"allOf"in e)return rU(Kj(e,n,r),t,n,r);if(e.hasOwnProperty("additionalProperties")&&(o.__rjsf_additionalProperties=!0),e.hasOwnProperty("items")&&Array.isArray(r))r.forEach(function(r,i){o[i]=rU(e.items,t+"."+i,n,r)});else if(e.hasOwnProperty("properties"))for(var i in e.properties)o[i]=rU(e.properties[i],t+"."+i,n,(r||{})[i]);return o}function oU(e,t){if(void 0===t&&(t=!0),!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};var n=new Date(e);if(Number.isNaN(n.getTime()))throw new Error("Unable to parse date "+e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:t?n.getUTCHours():0,minute:t?n.getUTCMinutes():0,second:t?n.getUTCSeconds():0}}function iU(e,t){var n=e.year,r=e.month,o=e.day,i=e.hour,a=void 0===i?0:i,s=e.minute,l=void 0===s?0:s,c=e.second,u=void 0===c?0:c;void 0===t&&(t=!0);var d=Date.UTC(n,r-1,o,a,l,u),p=new Date(d).toJSON();return t?p:p.slice(0,10)}function aU(e){if(!e)return"";var t=new Date(e);return lU(t.getFullYear(),4)+"-"+lU(t.getMonth()+1,2)+"-"+lU(t.getDate(),2)+"T"+lU(t.getHours(),2)+":"+lU(t.getMinutes(),2)+":"+lU(t.getSeconds(),2)+"."+lU(t.getMilliseconds(),3)}function sU(e){if(e)return new Date(e).toJSON()}function lU(e,t){for(var n=String(e);n.length<t;)n="0"+n;return n}function cU(e){var t,n=e.split(","),r=n[0].split(";"),o=r[0].replace("data:",""),i=r.filter(function(e){return"name"===e.split("=")[0]});t=1!==i.length?"unknown":i[0].split("=")[1];for(var a=atob(n[1]),s=[],l=0;l<a.length;l++)s.push(a.charCodeAt(l));return{blob:new window.Blob([new Uint8Array(s)],{type:o}),name:t}}function uU(e){var t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||0===e.minimum)&&(t.min=e.minimum),(e.maximum||0===e.maximum)&&(t.max=e.maximum),t}function dU(e,t,n){if(void 0===e)return 0;for(var r=0;r<t.length;r++){var o=t[r];if(o.properties){var i={anyOf:Object.keys(o.properties).map(function(e){return{required:[e]}})},a=void 0;if(o.anyOf){var s=XN({},o);s.allOf?s.allOf=s.allOf.slice():s.allOf=[],s.allOf.push(i),a=s}else a=Object.assign({},o,i);if(delete a.required,gj(a,e,n))return r}else if(gj(o,e,n))return r}return 0}function pU(e){return!!e.const||!(!e.enum||1!==e.enum.length||!0!==e.enum[0])||(e.anyOf&&1===e.anyOf.length?pU(e.anyOf[0]):e.oneOf&&1===e.oneOf.length?pU(e.oneOf[0]):!!e.allOf&&e.allOf.some(pU))}var hU={__proto__:null,ADDITIONAL_PROPERTY_FLAG:mj,canExpand:yj,getSchemaType:Aj,getWidget:wj,hasWidget:bj,getDefaultFormState:Cj,mergeDefaultsWithFormData:Ej,getUiOptions:Sj,getSubmitButtonOptions:Oj,getDisplayLabel:xj,isObject:Dj,mergeObjects:Pj,asNumber:Mj,orderProperties:Tj,isConstant:Rj,toConstant:Ij,isSelect:Fj,isMultiSelect:kj,isFilesArray:Lj,isFixedItems:Bj,isCustomWidget:Nj,allowAdditionalItems:jj,optionsList:Uj,findSchemaDefinition:Vj,guessType:Hj,stubExistingAdditionalProperties:Gj,resolveSchema:zj,retrieveSchema:Kj,mergeSchemas:Zj,deepEquals:eU,shouldRender:tU,toIdSchema:nU,toPathSchema:rU,parseDateString:oU,toDateString:iU,utcToLocal:aU,localToUTC:sU,pad:lU,dataURItoBlob:cU,rangeSpec:uU,getMatchingOption:dU,schemaRequiresTrueValue:pU};function fU(e){var t=e.TitleField,n=e.idSchema,r=e.title,o=e.required;if(!r)return null;var i=n.$id+"__title";return f().createElement(t,{id:i,title:r,required:o})}function gU(e){var t=e.DescriptionField,n=e.idSchema,r=e.description;if(!r)return null;var o=n.$id+"__description";return f().createElement(t,{id:o,description:r})}function mU(e){var t={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return f().createElement("div",{key:e.key,className:e.className},f().createElement("div",{className:e.hasToolbar?"col-xs-9":"col-xs-12"},e.children),e.hasToolbar&&f().createElement("div",{className:"col-xs-3 array-item-toolbox"},f().createElement("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"}},(e.hasMoveUp||e.hasMoveDown)&&f().createElement(nj,{icon:"arrow-up","aria-label":"Move up",className:"array-item-move-up",tabIndex:"-1",style:t,disabled:e.disabled||e.readonly||!e.hasMoveUp,onClick:e.onReorderClick(e.index,e.index-1)}),(e.hasMoveUp||e.hasMoveDown)&&f().createElement(nj,{icon:"arrow-down",className:"array-item-move-down","aria-label":"Move down",tabIndex:"-1",style:t,disabled:e.disabled||e.readonly||!e.hasMoveDown,onClick:e.onReorderClick(e.index,e.index+1)}),e.hasRemove&&f().createElement(nj,{type:"danger",icon:"remove","aria-label":"Remove",className:"array-item-remove",tabIndex:"-1",style:t,disabled:e.disabled||e.readonly,onClick:e.onDropIndexClick(e.index)}))))}function vU(e){return f().createElement("fieldset",{className:e.className,id:e.idSchema.$id},f().createElement(fU,{key:"array-field-title-"+e.idSchema.$id,TitleField:e.TitleField,idSchema:e.idSchema,title:e.uiSchema["ui:title"]||e.title,required:e.required}),(e.uiSchema["ui:description"]||e.schema.description)&&f().createElement("div",{className:"field-description",key:"field-description-"+e.idSchema.$id},e.uiSchema["ui:description"]||e.schema.description),f().createElement("div",{className:"row array-item-list",key:"array-item-list-"+e.idSchema.$id},e.items&&e.items.map(mU)),e.canAdd&&f().createElement(rj,{className:"array-item-add",onClick:e.onAddClick,disabled:e.disabled||e.readonly}))}function yU(e){return f().createElement("fieldset",{className:e.className,id:e.idSchema.$id},f().createElement(fU,{key:"array-field-title-"+e.idSchema.$id,TitleField:e.TitleField,idSchema:e.idSchema,title:e.uiSchema["ui:title"]||e.title,required:e.required}),(e.uiSchema["ui:description"]||e.schema.description)&&f().createElement(gU,{key:"array-field-description-"+e.idSchema.$id,DescriptionField:e.DescriptionField,idSchema:e.idSchema,description:e.uiSchema["ui:description"]||e.schema.description}),f().createElement("div",{className:"row array-item-list",key:"array-item-list-"+e.idSchema.$id},e.items&&e.items.map(function(e){return mU(e)})),e.canAdd&&f().createElement(rj,{className:"array-item-add",onClick:e.onAddClick,disabled:e.disabled||e.readonly}))}function AU(){return(0,QN.Ak)()}function wU(e){return Array.isArray(e)?e.map(function(e){return{key:AU(),item:e}}):[]}function bU(e){return e.map(function(e){return e.item})}var _U=function(e){function t(t){var n;(n=e.call(this,t)||this)._getNewFormDataRow=function(){var e=n.props,t=e.schema,r=e.registry.rootSchema,o=t.items;return Bj(t)&&jj(t)&&(o=t.additionalItems),Cj(o,void 0,r)},n.onAddClick=function(e){e&&e.preventDefault();var t=n.props.onChange,r={key:AU(),item:n._getNewFormDataRow()},o=[].concat(n.state.keyedFormData,[r]);n.setState({keyedFormData:o,updatedKeyedFormData:!0},function(){return t(bU(o))})},n.onAddIndexClick=function(e){return function(t){t&&t.preventDefault();var r=n.props.onChange,o={key:AU(),item:n._getNewFormDataRow()},i=[].concat(n.state.keyedFormData);i.splice(e,0,o),n.setState({keyedFormData:i,updatedKeyedFormData:!0},function(){return r(bU(i))})}},n.onDropIndexClick=function(e){return function(t){t&&t.preventDefault();var r,o=n.props.onChange,i=n.state.keyedFormData;if(n.props.errorSchema){r={};var a=n.props.errorSchema;for(var s in a)(s=parseInt(s))<e?r[s]=a[s]:s>e&&(r[s-1]=a[s])}var l=i.filter(function(t,n){return n!==e});n.setState({keyedFormData:l,updatedKeyedFormData:!0},function(){return o(bU(l),r)})}},n.onReorderClick=function(e,t){return function(r){r&&(r.preventDefault(),r.target.blur());var o,i=n.props.onChange;if(n.props.errorSchema){o={};var a=n.props.errorSchema;for(var s in a)s==e?o[t]=a[e]:s==t?o[e]=a[t]:o[s]=a[s]}var l,c=n.state.keyedFormData,u=((l=c.slice()).splice(e,1),l.splice(t,0,c[e]),l);n.setState({keyedFormData:u},function(){return i(bU(u),o)})}},n.onChangeForIndex=function(e){return function(t,r){var o,i=n.props,a=i.formData,s=i.onChange,l=a.map(function(n,r){return e===r?void 0===t?null:t:n});s(l,r&&n.props.errorSchema&&XN({},n.props.errorSchema,((o={})[e]=r,o)))}},n.onSelectChange=function(e){n.props.onChange(e)};var r=wU(t.formData);return n.state={keyedFormData:r,updatedKeyedFormData:!1},n}ZN(t,e),t.getDerivedStateFromProps=function(e,t){if(t.updatedKeyedFormData)return{updatedKeyedFormData:!1};var n=e.formData||[],r=t.keyedFormData||[],o=n.length===r.length?r.map(function(e,t){return{key:e.key,item:n[t]}}):wU(n);return{keyedFormData:o}};var n=t.prototype;return n.isItemRequired=function(e){return Array.isArray(e.type)?!MN()(e.type,"null"):"null"!==e.type},n.canAddItem=function(e){var t=this.props,n=t.schema,r=Sj(t.uiSchema).addable;return!1!==r&&(r=void 0===n.maxItems||e.length<n.maxItems),r},n.render=function(){var e=this.props,t=e.schema,n=e.uiSchema,r=e.idSchema,o=e.registry,i=o.rootSchema;if(!t.hasOwnProperty("items")){var a=o.fields.UnsupportedField;return f().createElement(a,{schema:t,idSchema:r,reason:"Missing items definition"})}return kj(t,i)?this.renderMultiSelect():Nj(n)?this.renderCustomWidget():Bj(t)?this.renderFixedArray():Lj(t,n,i)?this.renderFiles():this.renderNormalArray()},n.renderNormalArray=function(){var e=this,t=this.props,n=t.schema,r=t.uiSchema,o=t.errorSchema,i=t.idSchema,a=t.name,s=t.required,l=t.disabled,c=t.readonly,u=t.hideError,d=t.autofocus,p=t.registry,h=t.onBlur,g=t.onFocus,m=t.idPrefix,v=t.idSeparator,y=void 0===v?"_":v,A=t.rawErrors,w=void 0===n.title?a:n.title,b=p.ArrayFieldTemplate,_=p.rootSchema,C=p.fields,E=p.formContext,S=C.TitleField,O=C.DescriptionField,x=Kj(n.items,_),D=bU(this.state.keyedFormData),P={canAdd:this.canAddItem(D),items:this.state.keyedFormData.map(function(t,a){var s=t.key,l=t.item,c=Kj(n.items,_,l),u=o?o[a]:void 0,p=nU(c,i.$id+y+a,_,l,m,y);return e.renderArrayFieldItem({key:s,index:a,canMoveUp:a>0,canMoveDown:a<D.length-1,itemSchema:c,itemIdSchema:p,itemErrorSchema:u,itemData:l,itemUiSchema:r.items,autofocus:d&&0===a,onBlur:h,onFocus:g})}),className:"field field-array field-array-of-"+x.type,DescriptionField:O,disabled:l,idSchema:i,uiSchema:r,onAddClick:this.onAddClick,readonly:c,hideError:u,required:s,schema:n,title:w,TitleField:S,formContext:E,formData:D,rawErrors:A,registry:p},M=r["ui:ArrayFieldTemplate"]||b||yU;return f().createElement(M,P)},n.renderCustomWidget=function(){var e=this.props,t=e.schema,n=e.idSchema,r=e.uiSchema,o=e.disabled,i=e.readonly,a=e.hideError,s=e.required,l=e.placeholder,c=e.autofocus,u=e.onBlur,d=e.onFocus,p=e.formData,h=e.registry,g=e.rawErrors,m=e.name,v=h.widgets,y=h.formContext,A=t.title||m,w=XN({},Sj(r)),b=w.widget,_=ej(w,["widget"]),C=wj(t,b,v);return f().createElement(C,{id:n&&n.$id,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:d,options:_,schema:t,uiSchema:r,registry:h,value:p,disabled:o,readonly:i,hideError:a,required:s,label:A,placeholder:l,formContext:y,autofocus:c,rawErrors:g})},n.renderMultiSelect=function(){var e=this.props,t=e.schema,n=e.idSchema,r=e.uiSchema,o=e.formData,i=e.disabled,a=e.readonly,s=e.required,l=e.placeholder,c=e.autofocus,u=e.onBlur,d=e.onFocus,p=e.registry,h=e.rawErrors,g=e.name,m=this.props.formData,v=p.widgets,y=p.rootSchema,A=p.formContext,w=Kj(t.items,y,o),b=t.title||g,_=Uj(w),C=XN({},Sj(r),{enumOptions:_}),E=C.widget,S=void 0===E?"select":E,O=ej(C,["widget"]),x=wj(t,S,v);return f().createElement(x,{id:n&&n.$id,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:d,options:O,schema:t,uiSchema:r,registry:p,value:m,disabled:i,readonly:a,required:s,label:b,placeholder:l,formContext:A,autofocus:c,rawErrors:h})},n.renderFiles=function(){var e=this.props,t=e.schema,n=e.uiSchema,r=e.idSchema,o=e.name,i=e.disabled,a=e.readonly,s=e.autofocus,l=e.onBlur,c=e.onFocus,u=e.registry,d=e.rawErrors,p=t.title||o,h=this.props.formData,g=u.widgets,m=u.formContext,v=Sj(n),y=v.widget,A=void 0===y?"files":y,w=ej(v,["widget"]),b=wj(t,A,g);return f().createElement(b,{options:w,id:r&&r.$id,multiple:!0,onChange:this.onSelectChange,onBlur:l,onFocus:c,schema:t,uiSchema:n,title:p,value:h,disabled:i,readonly:a,registry:u,formContext:m,autofocus:s,rawErrors:d})},n.renderFixedArray=function(){var e=this,t=this.props,n=t.schema,r=t.uiSchema,o=t.formData,i=t.errorSchema,a=t.idPrefix,s=t.idSeparator,l=void 0===s?"_":s,c=t.idSchema,u=t.name,d=t.required,p=t.disabled,h=t.readonly,g=t.autofocus,m=t.registry,v=t.onBlur,y=t.onFocus,A=t.rawErrors,w=n.title||u,b=this.props.formData,_=m.ArrayFieldTemplate,C=m.rootSchema,E=m.fields,S=m.formContext,O=E.TitleField,x=n.items.map(function(e,t){return Kj(e,C,o[t])}),D=jj(n)?Kj(n.additionalItems,C,o):null;(!b||b.length<x.length)&&(b=(b=b||[]).concat(new Array(x.length-b.length)));var P={canAdd:this.canAddItem(b)&&D,className:"field field-array field-array-fixed-items",disabled:p,idSchema:c,formData:o,items:this.state.keyedFormData.map(function(t,o){var s=t.key,u=t.item,d=o>=x.length,p=d?Kj(n.additionalItems,C,u):x[o],h=nU(p,c.$id+l+o,C,u,a,l),f=d?r.additionalItems||{}:Array.isArray(r.items)?r.items[o]:r.items||{},m=i?i[o]:void 0;return e.renderArrayFieldItem({key:s,index:o,canRemove:d,canMoveUp:o>=x.length+1,canMoveDown:d&&o<b.length-1,itemSchema:p,itemData:u,itemUiSchema:f,itemIdSchema:h,itemErrorSchema:m,autofocus:g&&0===o,onBlur:v,onFocus:y})}),onAddClick:this.onAddClick,readonly:h,required:d,registry:m,schema:n,uiSchema:r,title:w,TitleField:O,formContext:S,rawErrors:A},M=r["ui:ArrayFieldTemplate"]||_||vU;return f().createElement(M,P)},n.renderArrayFieldItem=function(e){var t=e.key,n=e.index,r=e.canRemove,o=void 0===r||r,i=e.canMoveUp,a=void 0===i||i,s=e.canMoveDown,l=void 0===s||s,c=e.itemSchema,u=e.itemData,d=e.itemUiSchema,p=e.itemIdSchema,h=e.itemErrorSchema,g=e.autofocus,m=e.onBlur,v=e.onFocus,y=e.rawErrors,A=this.props,w=A.disabled,b=A.readonly,_=A.uiSchema,C=A.registry.fields.SchemaField,E=Sj(_),S=E.orderable,O=void 0===S||S,x=E.removable,D={moveUp:O&&a,moveDown:O&&l,remove:(void 0===x||x)&&o};return D.toolbar=Object.keys(D).some(function(e){return D[e]}),{children:f().createElement(C,{index:n,schema:c,uiSchema:d,formData:u,errorSchema:h,idPrefix:this.props.idPrefix,idSeparator:this.props.idSeparator,idSchema:p,required:this.isItemRequired(c),onChange:this.onChangeForIndex(n),onBlur:m,onFocus:v,registry:this.props.registry,disabled:this.props.disabled,readonly:this.props.readonly,hideError:this.props.hideError,autofocus:g,rawErrors:y}),className:"array-item",disabled:w,hasToolbar:D.toolbar,hasMoveUp:D.moveUp,hasMoveDown:D.moveDown,hasRemove:D.remove,index:n,key:t,onAddIndexClick:this.onAddIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:b}},YN(t,[{key:"itemTitle",get:function(){var e=this.props.schema;return e.items.title||e.items.description||"Item"}}]),t}(h.Component);function CU(e){var t,n=e.schema,r=e.name,o=e.uiSchema,i=e.idSchema,a=e.formData,s=e.registry,l=e.required,c=e.disabled,u=e.readonly,d=e.autofocus,p=e.onChange,h=e.onFocus,g=e.onBlur,m=e.rawErrors,v=n.title,y=s.widgets,A=s.formContext,w=s.fields,b=Sj(o),_=b.widget,C=void 0===_?"checkbox":_,E=ej(b,["widget"]),S=wj(n,C,y);return t=Array.isArray(n.oneOf)?Uj({oneOf:n.oneOf.map(function(e){return XN({},e,{title:e.title||(!0===e.const?"Yes":"No")})})}):Uj({enum:n.enum||[!0,!1],enumNames:n.enumNames||(n.enum&&!1===n.enum[0]?["No","Yes"]:["Yes","No"])}),f().createElement(S,{options:XN({},E,{enumOptions:t}),schema:n,uiSchema:o,id:i&&i.$id,onChange:p,onFocus:h,onBlur:g,label:void 0===v?r:v,value:a,required:l,disabled:c,readonly:u,registry:s,formContext:A,autofocus:d,rawErrors:m,DescriptionField:w.DescriptionField})}_U.defaultProps={uiSchema:{},formData:[],idSchema:{},required:!1,disabled:!1,readonly:!1,autofocus:!1},CU.defaultProps={uiSchema:{},disabled:!1,readonly:!1,autofocus:!1};var EU=function(e){function t(t){var n;(n=e.call(this,t)||this).onOptionChange=function(e){var t=parseInt(e,10),r=n.props,o=r.formData,i=r.onChange,a=r.options,s=r.registry.rootSchema,l=Kj(a[t],s,o),c=void 0;if("object"===Hj(o)&&("object"===l.type||l.properties)){c=Object.assign({},o);var u=a.slice();u.splice(t,1);var d=u,p=Array.isArray(d),h=0;for(d=p?d:d[Symbol.iterator]();;){var f;if(p){if(h>=d.length)break;f=d[h++]}else{if((h=d.next()).done)break;f=h.value}var g=f;if(g.properties)for(var m in g.properties)c.hasOwnProperty(m)&&delete c[m]}}i(Cj(a[t],c,s)),n.setState({selectedOption:parseInt(e,10)})};var r=n.props,o=r.formData,i=r.options;return n.state={selectedOption:n.getMatchingOption(o,i)},n}ZN(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){if(!eU(this.props.formData,e.formData)&&this.props.idSchema.$id===e.idSchema.$id){var n=this.getMatchingOption(this.props.formData,this.props.options);if(!t||n===this.state.selectedOption)return;this.setState({selectedOption:n})}},n.getMatchingOption=function(e,t){var n=dU(e,t,this.props.registry.rootSchema);return 0!==n?n:this&&this.state?this.state.selectedOption:0},n.render=function(){var e,t=this.props,n=t.baseType,r=t.disabled,o=t.readonly,i=t.hideError,a=t.errorSchema,s=t.formData,l=t.idPrefix,c=t.idSeparator,u=t.idSchema,d=t.onBlur,p=t.onChange,h=t.onFocus,g=t.options,m=t.registry,v=t.uiSchema,y=t.schema,A=m.fields.SchemaField,w=m.widgets,b=this.state.selectedOption,_=Sj(v),C=_.widget,E=void 0===C?"select":C,S=ej(_,["widget"]),O=wj({type:"number"},E,w),x=g[b]||null;x&&(e=x.type?x:Object.assign({},x,{type:n}));var D=g.map(function(e,t){return{label:e.title||"Option "+(t+1),value:t}});return f().createElement("div",{className:"panel panel-default panel-body"},f().createElement("div",{className:"form-group"},f().createElement(O,XN({id:u.$id+(y.oneOf?"__oneof_select":"__anyof_select"),schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:d,onFocus:h,value:b,options:{enumOptions:D},registry:m},S))),null!==x&&f().createElement(A,{schema:e,uiSchema:v,errorSchema:a,idSchema:u,idPrefix:l,idSeparator:c,formData:s,onChange:p,onBlur:d,onFocus:h,registry:m,disabled:r,readonly:o,hideError:i}))},t}(h.Component);EU.defaultProps={disabled:!1,readonly:!1,hideError:!1,errorSchema:{},idSchema:{},uiSchema:{}};var SU=/\.([0-9]*0)*$/,OU=/[0.]0*$/,xU=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleChange=function(e){n.setState({lastValue:e}),"."===(""+e).charAt(0)&&(e="0"+e);var t="string"==typeof e&&e.match(SU)?Mj(e.replace(OU,"")):Mj(e);n.props.onChange(t)},n.state={lastValue:t.value},n}return ZN(t,e),t.prototype.render=function(){var e=this.props.registry.fields.StringField,t=this.props,n=t.formData,r=ej(t,["formData"]),o=this.state.lastValue,i=n;if("string"==typeof o&&"number"==typeof i){var a=new RegExp((""+i).replace(".","\\.")+"\\.?0*$");o.match(a)&&(i=o)}return f().createElement(e,XN({},r,{formData:i,onChange:this.handleChange}))},t}(f().Component);function DU(e){var t=e.TitleField,n=e.DescriptionField;return f().createElement("fieldset",{id:e.idSchema.$id},(e.uiSchema["ui:title"]||e.title)&&f().createElement(t,{id:e.idSchema.$id+"__title",title:e.title||e.uiSchema["ui:title"],required:e.required,formContext:e.formContext}),e.description&&f().createElement(n,{id:e.idSchema.$id+"__description",description:e.description,formContext:e.formContext}),e.properties.map(function(e){return e.content}),yj(e.schema,e.uiSchema,e.formData)&&f().createElement(rj,{className:"object-property-expand",onClick:e.onAddClick(e.schema),disabled:e.disabled||e.readonly}))}xU.defaultProps={uiSchema:{}};var PU=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={wasPropertyKeyModified:!1,additionalProperties:{}},t.onPropertyChange=function(e,n){return void 0===n&&(n=!1),function(r,o){var i,a;void 0===r&&n&&(r="");var s=XN({},t.props.formData,((i={})[e]=r,i));t.props.onChange(s,o&&t.props.errorSchema&&XN({},t.props.errorSchema,((a={})[e]=o,a)))}},t.onDropPropertyClick=function(e){return function(n){n.preventDefault();var r=t.props,o=r.onChange,i=XN({},r.formData);delete i[e],o(i)}},t.getAvailableKey=function(e,t){for(var n=0,r=e;t.hasOwnProperty(r);)r=e+"-"+ ++n;return r},t.onKeyChange=function(e){return function(n,r){var o,i;if(e!==n){n=t.getAvailableKey(n,t.props.formData);var a=XN({},t.props.formData),s=((o={})[e]=n,o),l=Object.keys(a).map(function(e){var t;return(t={})[s[e]||e]=a[e],t}),c=Object.assign.apply(Object,[{}].concat(l));t.setState({wasPropertyKeyModified:!0}),t.props.onChange(c,r&&t.props.errorSchema&&XN({},t.props.errorSchema,((i={})[n]=r,i)))}}},t.handleAddClick=function(e){return function(){var n=e.additionalProperties.type,r=XN({},t.props.formData);if(e.additionalProperties.hasOwnProperty("$ref")){var o=t.props.registry;n=Kj({$ref:e.additionalProperties.$ref},o.rootSchema,t.props.formData).type}r[t.getAvailableKey("newKey",r)]=t.getDefaultValue(n),t.props.onChange(r)}},t}ZN(t,e);var n=t.prototype;return n.isRequired=function(e){var t=this.props.schema;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)},n.getDefaultValue=function(e){switch(e){case"string":default:return"New Value";case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{}}},n.render=function(){var e,t=this,n=this.props,r=n.uiSchema,o=n.formData,i=n.errorSchema,a=n.idSchema,s=n.name,l=n.required,c=n.disabled,u=n.readonly,d=n.hideError,p=n.idPrefix,h=n.idSeparator,g=n.onBlur,m=n.onFocus,v=n.registry,y=v.rootSchema,A=v.fields,w=v.formContext,b=A.SchemaField,_=A.TitleField,C=A.DescriptionField,E=Kj(this.props.schema,y,o),S=void 0===E.title?s:E.title,O=r["ui:description"]||E.description;try{e=Tj(Object.keys(E.properties||{}),r["ui:order"])}catch(e){return f().createElement("div",null,f().createElement("p",{className:"config-error",style:{color:"red"}},"Invalid ",s||"root"," object field configuration:",f().createElement("em",null,e.message),"."),f().createElement("pre",null,JSON.stringify(E)))}var x=r["ui:ObjectFieldTemplate"]||v.ObjectFieldTemplate||DU,D={title:r["ui:title"]||S,description:O,TitleField:_,DescriptionField:C,properties:e.map(function(e){var n=E.properties[e].hasOwnProperty(mj),s=n?r.additionalProperties:r[e],y=s&&"hidden"===s["ui:widget"];return{content:f().createElement(b,{key:e,name:e,required:t.isRequired(e),schema:E.properties[e],uiSchema:s,errorSchema:i[e],idSchema:a[e],idPrefix:p,idSeparator:h,formData:(o||{})[e],wasPropertyKeyModified:t.state.wasPropertyKeyModified,onKeyChange:t.onKeyChange(e),onChange:t.onPropertyChange(e,n),onBlur:g,onFocus:m,registry:v,disabled:c,readonly:u,hideError:d,onDropPropertyClick:t.onDropPropertyClick}),name:e,readonly:u,disabled:c,required:l,hidden:y}}),readonly:u,disabled:c,required:l,idSchema:a,uiSchema:r,schema:E,formData:o,formContext:w,registry:v};return f().createElement(x,XN({},D,{onAddClick:this.handleAddClick}))},t}(h.Component);PU.defaultProps={uiSchema:{},formData:{},errorSchema:{},idSchema:{},required:!1,disabled:!1,readonly:!1};var MU={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function TU(e){var t=e.label,n=e.required,r=e.id;return t?f().createElement("label",{className:"control-label",htmlFor:r},t,n&&f().createElement("span",{className:"required"},"*")):null}function RU(e){var t=e.id,n=e.label,r=e.onChange;return f().createElement("input",{className:"form-control",type:"text",id:t,onBlur:function(e){return r(e.target.value)},defaultValue:n})}function IU(e){var t=e.id,n=e.help;return n?"string"==typeof n?f().createElement("p",{id:t,className:"help-block"},n):f().createElement("div",{id:t,className:"help-block"},n):null}function FU(e){var t=e.errors,n=void 0===t?[]:t;return 0===n.length?null:f().createElement("div",null,f().createElement("ul",{className:"error-detail bs-callout bs-callout-info"},n.filter(function(e){return!!e}).map(function(e,t){return f().createElement("li",{className:"text-danger",key:t},e)})))}function kU(e){var t=e.id,n=e.label,r=e.children,o=e.errors,i=e.help,a=e.description,s=e.hidden,l=e.required,c=e.displayLabel;return s?f().createElement("div",{className:"hidden"},r):f().createElement(LU,e,c&&f().createElement(TU,{label:n,required:l,id:t}),c&&a?a:null,r,o,i)}function LU(e){var t=e.id,n=e.classNames,r=e.disabled,o=e.label,i=e.onKeyChange,a=e.onDropPropertyClick,s=e.readonly,l=e.required,c=o+" Key";return e.schema.hasOwnProperty(mj)?f().createElement("div",{className:n},f().createElement("div",{className:"row"},f().createElement("div",{className:"col-xs-5 form-additional"},f().createElement("div",{className:"form-group"},f().createElement(TU,{label:c,required:l,id:t+"-key"}),f().createElement(RU,{label:o,required:l,id:t+"-key",onChange:i}))),f().createElement("div",{className:"form-additional form-group col-xs-5"},e.children),f().createElement("div",{className:"col-xs-2"},f().createElement(nj,{type:"danger",icon:"remove",className:"array-item-remove btn-block",tabIndex:"-1",style:{border:"0"},disabled:r||s,onClick:a(o)})))):f().createElement("div",{className:n},e.children)}kU.defaultProps={hidden:!1,readonly:!1,required:!1,displayLabel:!0};var BU=function(e){function t(){return e.apply(this,arguments)||this}ZN(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e,t){return!eU(this.props,e)},n.render=function(){return function(e){var t=e.uiSchema,n=e.formData,r=e.errorSchema,o=e.idPrefix,i=e.idSeparator,a=e.name,s=e.onChange,l=e.onKeyChange,c=e.onDropPropertyClick,u=e.required,d=e.registry,p=e.wasPropertyKeyModified,h=void 0!==p&&p,g=d.rootSchema,m=d.fields,v=d.formContext,y=t["ui:FieldTemplate"]||d.FieldTemplate||kU,A=e.idSchema,w=Kj(e.schema,g,n),b=function(e,t,n,r){var o=t["ui:field"];if("function"==typeof o)return o;if("string"==typeof o&&o in r)return r[o];var i=MU[Aj(e)];return i||!e.anyOf&&!e.oneOf?i in r?r[i]:function(){var t=r.UnsupportedField;return f().createElement(t,{schema:e,idSchema:n,reason:"Unknown field type "+e.type})}:function(){return null}}(w,t,A=Pj(nU(w,null,g,n,o,i),A),m),_=m.DescriptionField,C=Boolean(e.disabled||t["ui:disabled"]),E=Boolean(e.readonly||t["ui:readonly"]||e.schema.readOnly||w.readOnly),S=t["ui:hideError"],O=void 0===S?e.hideError:Boolean(S),x=Boolean(e.autofocus||t["ui:autofocus"]);if(0===Object.keys(w).length)return null;var D,P=xj(w,t,g),M=r.__errors,T=ej(r,["__errors"]),R=f().createElement(b,XN({},e,{idSchema:A,schema:w,uiSchema:XN({},t,{classNames:void 0}),disabled:C,readonly:E,hideError:O,autofocus:x,errorSchema:T,formContext:v,rawErrors:M})),I=A.$id;D=h?a:t["ui:title"]||e.schema.title||w.title||a;var F=t["ui:description"]||e.schema.description||w.description,k=M,L=t["ui:help"],B="hidden"===t["ui:widget"],N=["form-group","field","field-"+w.type];!O&&k&&k.length>0&&N.push("field-error has-error has-danger"),N.push(t.classNames),N=N.join(" ").trim();var j={description:f().createElement(_,{id:I+"__description",description:F,formContext:v}),rawDescription:F,help:f().createElement(IU,{id:I+"__help",help:L}),rawHelp:"string"==typeof L?L:void 0,errors:O?void 0:f().createElement(FU,{errors:k}),rawErrors:O?void 0:k,id:I,label:D,hidden:B,onChange:s,onKeyChange:l,onDropPropertyClick:c,required:u,disabled:C,readonly:E,hideError:O,displayLabel:P,classNames:N,formContext:v,formData:n,fields:m,schema:w,uiSchema:t,registry:d},U=d.fields.AnyOfField,V=d.fields.OneOfField;return f().createElement(y,j,f().createElement(f().Fragment,null,R,w.anyOf&&!Fj(w)&&f().createElement(U,{disabled:C,readonly:E,hideError:O,errorSchema:r,formData:n,idPrefix:o,idSchema:A,idSeparator:i,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:w.anyOf.map(function(e){return Kj(e,g,n)}),baseType:w.type,registry:d,schema:w,uiSchema:t}),w.oneOf&&!Fj(w)&&f().createElement(V,{disabled:C,readonly:E,hideError:O,errorSchema:r,formData:n,idPrefix:o,idSchema:A,idSeparator:i,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:w.oneOf.map(function(e){return Kj(e,g,n)}),baseType:w.type,registry:d,schema:w,uiSchema:t})))}(this.props)},t}(f().Component);function NU(e){var t=e.schema,n=e.name,r=e.uiSchema,o=e.idSchema,i=e.formData,a=e.required,s=e.disabled,l=e.readonly,c=e.autofocus,u=e.onChange,d=e.onBlur,p=e.onFocus,h=e.registry,g=e.rawErrors,m=t.title,v=t.format,y=h.widgets,A=h.formContext,w=Fj(t)&&Uj(t),b=w?"select":"text";v&&bj(t,v,y)&&(b=v);var _=Sj(r),C=_.widget,E=void 0===C?b:C,S=_.placeholder,O=void 0===S?"":S,x=ej(_,["widget","placeholder"]),D=wj(t,E,y);return f().createElement(D,{options:XN({},x,{enumOptions:w}),schema:t,uiSchema:r,id:o&&o.$id,label:void 0===m?n:m,value:i,onChange:u,onBlur:d,onFocus:p,required:a,disabled:s,readonly:l,formContext:A,autofocus:c,registry:h,placeholder:O,rawErrors:g})}BU.defaultProps={uiSchema:{},errorSchema:{},idSchema:{},disabled:!1,readonly:!1,autofocus:!1,hideError:!1},NU.defaultProps={uiSchema:{},disabled:!1,readonly:!1,autofocus:!1};var jU={AnyOfField:EU,ArrayField:_U,BooleanField:CU,DescriptionField:function(e){var t=e.id,n=e.description;return n?"string"==typeof n?f().createElement("p",{id:t,className:"field-description"},n):f().createElement("div",{id:t,className:"field-description"},n):null},NumberField:xU,ObjectField:PU,OneOfField:EU,SchemaField:BU,StringField:NU,TitleField:function(e){var t=e.id,n=e.title,r=e.required;return f().createElement("legend",{id:t},n,r&&f().createElement("span",{className:"required"},"*"))},NullField:function(e){function t(){return e.apply(this,arguments)||this}ZN(t,e);var n=t.prototype;return n.componentDidMount=function(){void 0===this.props.formData&&this.props.onChange(null)},n.render=function(){return null},t}(h.Component),UnsupportedField:function(e){var t=e.schema,n=e.idSchema,r=e.reason;return f().createElement("div",{className:"unsupported-field"},f().createElement("p",null,"Unsupported field schema",n&&n.$id&&f().createElement("span",null," for"," field ",f().createElement("code",null,n.$id)),r&&f().createElement("em",null,": ",r),"."),t&&f().createElement("pre",null,JSON.stringify(t,null,2)))}};function UU(e,t){for(var n=[],r=e;r<=t;r++)n.push({value:r,label:lU(r,2)});return n}function VU(e){var t=e.type,n=e.range,r=e.value,o=e.select,i=e.rootId,a=e.disabled,s=e.readonly,l=e.autofocus,c=e.registry,u=e.onBlur,d=i+"_"+t,p=c.widgets.SelectWidget;return f().createElement(p,{schema:{type:"integer"},id:d,className:"form-control",options:{enumOptions:UU(n[0],n[1])},placeholder:t,value:r,disabled:a,readonly:s,autofocus:l,onChange:function(e){return o(t,e)},onBlur:u})}var HU=function(e){function t(t){var n;return(n=e.call(this,t)||this).onChange=function(e,t){var r;n.setState(((r={})[e]=void 0===t?-1:t,r),function(){var e;e=n.state,Object.keys(e).every(function(t){return-1!==e[t]})&&n.props.onChange(iU(n.state,n.props.time))})},n.setNow=function(e){e.preventDefault();var t=n.props,r=t.time,o=t.disabled,i=t.readonly,a=t.onChange;if(!o&&!i){var s=oU((new Date).toJSON(),r);n.setState(s,function(){return a(iU(n.state,r))})}},n.clear=function(e){e.preventDefault();var t=n.props,r=t.time,o=t.disabled,i=t.readonly,a=t.onChange;o||i||n.setState(oU("",r),function(){return a(void 0)})},n.state=oU(t.value,t.time),n}ZN(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){e.value&&e.value!==oU(this.props.value,this.props.time)&&this.setState(oU(this.props.value,this.props.time))},n.shouldComponentUpdate=function(e,t){return tU(this,e,t)},n.render=function(){var e=this,t=this.props,n=t.id,r=t.disabled,o=t.readonly,i=t.autofocus,a=t.registry,s=t.onBlur,l=t.options;return f().createElement("ul",{className:"list-inline"},this.dateElementProps.map(function(t,l){return f().createElement("li",{key:l},f().createElement(VU,XN({rootId:n,select:e.onChange},t,{disabled:r,readonly:o,registry:a,onBlur:s,autofocus:i&&0===l})))}),("undefined"===l.hideNowButton||!l.hideNowButton)&&f().createElement("li",null,f().createElement("a",{href:"#",className:"btn btn-info btn-now",onClick:this.setNow},"Now")),("undefined"===l.hideClearButton||!l.hideClearButton)&&f().createElement("li",null,f().createElement("a",{href:"#",className:"btn btn-warning btn-clear",onClick:this.clear},"Clear")))},YN(t,[{key:"dateElementProps",get:function(){var e=this.props,t=e.time,n=e.options,r=this.state,o=r.year,i=r.month,a=r.day,s=r.hour,l=r.minute,c=r.second,u=[{type:"year",range:n.yearsRange,value:o},{type:"month",range:[1,12],value:i},{type:"day",range:[1,31],value:a}];return t&&u.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:c}),u}}]),t}(h.Component);function GU(e){var t=e.registry.widgets.AltDateWidget;return f().createElement(t,XN({time:!0},e))}function WU(e){if(!e.id)throw console.log("No id for",e),new Error("no id for props "+JSON.stringify(e));var t=e.value,n=e.readonly,r=e.disabled,o=e.autofocus,i=e.onBlur,a=e.onFocus,s=e.options,l=e.schema,c=ej(e,["value","readonly","disabled","autofocus","onBlur","onFocus","options","schema","uiSchema","formContext","registry","rawErrors"]);return s.inputType?c.type=s.inputType:c.type||("number"===l.type?(c.type="number",c.step="any"):"integer"===l.type?(c.type="number",c.step="1"):c.type="text"),s.autocomplete&&(c.autoComplete=s.autocomplete),l.multipleOf&&(c.step=l.multipleOf),void 0!==l.minimum&&(c.min=l.minimum),void 0!==l.maximum&&(c.max=l.maximum),[f().createElement("input",XN({key:c.id,className:"form-control",readOnly:n,disabled:r,autoFocus:o,value:null==t?"":t},c,{list:l.examples?"examples_"+c.id:null,onChange:function(t){var n=t.target.value;return e.onChange(""===n?s.emptyValue:n)},onBlur:i&&function(e){return i(c.id,e.target.value)},onFocus:a&&function(e){return a(c.id,e.target.value)}})),l.examples?f().createElement("datalist",{key:"datalist_"+c.id,id:"examples_"+c.id},[].concat(new Set(l.examples.concat(l.default?[l.default]:[]))).map(function(e){return f().createElement("option",{key:e,value:e})})):null]}function zU(e){var t=e.schema,n=e.id,r=e.value,o=e.disabled,i=e.readonly,a=e.label,s=e.autofocus,l=e.onBlur,c=e.onFocus,u=e.onChange,d=e.DescriptionField,p=pU(t);return f().createElement("div",{className:"checkbox "+(o||i?"disabled":"")},t.description&&f().createElement(d,{description:t.description}),f().createElement("label",null,f().createElement("input",{type:"checkbox",id:n,checked:void 0!==r&&r,required:p,disabled:o||i,autoFocus:s,onChange:function(e){return u(e.target.checked)},onBlur:l&&function(e){return l(n,e.target.checked)},onFocus:c&&function(e){return c(n,e.target.checked)}}),f().createElement("span",null,a)))}function $U(e){var t=e.id,n=e.disabled,r=e.options,o=e.value,i=e.autofocus,a=e.readonly,s=e.onChange,l=r.enumOptions,c=r.enumDisabled,u=r.inline;return f().createElement("div",{className:"checkboxes",id:t},l.map(function(e,r){var d=-1!==o.indexOf(e.value),p=c&&-1!=c.indexOf(e.value),h=n||p||a?"disabled":"",g=f().createElement("span",null,f().createElement("input",{type:"checkbox",id:t+"_"+r,checked:d,disabled:n||p||a,autoFocus:i&&0===r,onChange:function(t){var n=l.map(function(e){return e.value});t.target.checked?s(function(e,t,n){var r=n.indexOf(e);return t.slice(0,r).concat(e,t.slice(r)).sort(function(e,t){return n.indexOf(e)>n.indexOf(t)})}(e.value,o,n)):s(function(e,t){return t.filter(function(t){return t!==e})}(e.value,o))}}),f().createElement("span",null,e.label));return u?f().createElement("label",{key:r,className:"checkbox-inline "+h},g):f().createElement("div",{key:r,className:"checkbox "+h},f().createElement("label",null,g))}))}function KU(e,t){return e.replace(";base64",";name="+encodeURIComponent(t)+";base64")}function QU(e){var t=e.name,n=e.size,r=e.type;return new Promise(function(o,i){var a=new window.FileReader;a.onerror=i,a.onload=function(e){o({dataURL:KU(e.target.result,t),name:t,size:n,type:r})},a.readAsDataURL(e)})}function qU(e){var t=e.filesInfo;return 0===t.length?null:f().createElement("ul",{className:"file-info"},t.map(function(e,t){var n=e.name,r=e.size,o=e.type;return f().createElement("li",{key:t},f().createElement("strong",null,n)," (",o,", ",r," bytes)")}))}HU.defaultProps={time:!1,disabled:!1,readonly:!1,autofocus:!1,options:{yearsRange:[1900,(new Date).getFullYear()+2]}},GU.defaultProps=XN({},HU.defaultProps,{time:!0}),WU.defaultProps={required:!1,disabled:!1,readonly:!1,autofocus:!1},zU.defaultProps={autofocus:!1},$U.defaultProps={autofocus:!1,options:{inline:!1}};var YU=function(e){function t(t){var n;(n=e.call(this,t)||this).onChange=function(e){var t,r=n.props,o=r.multiple,i=r.onChange;(t=e.target.files,Promise.all([].map.call(t,QU))).then(function(e){var t={values:e.map(function(e){return e.dataURL}),filesInfo:e};n.setState(t,function(){i(o?t.values:t.values[0])})})};var r,o=t.value,i=Array.isArray(o)?o:[o];return n.state={values:i,filesInfo:(r=i,r.filter(function(e){return void 0!==e}).map(function(e){var t=cU(e),n=t.blob;return{name:t.name,size:n.size,type:n.type}}))},n}ZN(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e,t){return tU(this,e,t)},n.render=function(){var e=this,t=this.props,n=t.multiple,r=t.id,o=t.readonly,i=t.disabled,a=t.autofocus,s=t.options,l=this.state.filesInfo;return f().createElement("div",null,f().createElement("p",null,f().createElement("input",{ref:function(t){return e.inputRef=t},id:r,type:"file",disabled:o||i,onChange:this.onChange,defaultValue:"",autoFocus:a,multiple:n,accept:s.accept})),f().createElement(qU,{filesInfo:l}))},t}(h.Component);function XU(e){var t=e.options,n=e.value,r=e.required,o=e.disabled,i=e.readonly,a=e.autofocus,s=e.onBlur,l=e.onFocus,c=e.onChange,u=e.id,d=Math.random().toString(),p=t.enumOptions,h=t.enumDisabled,g=t.inline;return f().createElement("div",{className:"field-radio-group",id:u},p.map(function(e,t){var p=e.value===n,m=h&&-1!=h.indexOf(e.value),v=o||m||i?"disabled":"",y=f().createElement("span",null,f().createElement("input",{type:"radio",checked:p,name:d,required:r,value:e.value,disabled:o||m||i,autoFocus:a&&0===t,onChange:function(t){return c(e.value)},onBlur:s&&function(e){return s(u,e.target.value)},onFocus:l&&function(e){return l(u,e.target.value)}}),f().createElement("span",null,e.label));return g?f().createElement("label",{key:t,className:"radio-inline "+v},y):f().createElement("div",{key:t,className:"radio "+v},f().createElement("label",null,y))}))}YU.defaultProps={autofocus:!1},XU.defaultProps={autofocus:!1};var ZU=new Set(["number","integer"]);function JU(e,t){var n=e.type,r=e.items;if(""!==t){if("array"===n&&r&&ZU.has(r.type))return t.map(Mj);if("boolean"===n)return"true"===t;if("number"===n)return Mj(t);if(e.enum){if(e.enum.every(function(e){return"number"===Hj(e)}))return Mj(t);if(e.enum.every(function(e){return"boolean"===Hj(e)}))return"true"===t}return t}}function eV(e,t){return t?[].slice.call(e.target.options).filter(function(e){return e.selected}).map(function(e){return e.value}):e.target.value}function tV(e){var t=e.schema,n=e.id,r=e.options,o=e.value,i=e.required,a=e.disabled,s=e.readonly,l=e.multiple,c=e.autofocus,u=e.onChange,d=e.onBlur,p=e.onFocus,h=e.placeholder,g=r.enumOptions,m=r.enumDisabled,v=l?[]:"";return f().createElement("select",{id:n,multiple:l,className:"form-control",value:void 0===o?v:o,required:i,disabled:a||s,autoFocus:c,onBlur:d&&function(e){var r=eV(e,l);d(n,JU(t,r))},onFocus:p&&function(e){var r=eV(e,l);p(n,JU(t,r))},onChange:function(e){var n=eV(e,l);u(JU(t,n))}},!l&&void 0===t.default&&f().createElement("option",{value:""},h),g.map(function(e,t){var n=e.value,r=e.label,o=m&&-1!=m.indexOf(n);return f().createElement("option",{key:t,value:n,disabled:o},r)}))}function nV(e){var t=e.id,n=e.options,r=e.placeholder,o=e.value,i=e.required,a=e.disabled,s=e.readonly,l=e.autofocus,c=e.onChange,u=e.onBlur,d=e.onFocus;return f().createElement("textarea",{id:t,className:"form-control",value:o||"",placeholder:r,required:i,disabled:a,readOnly:s,autoFocus:l,rows:n.rows,onBlur:u&&function(e){return u(t,e.target.value)},onFocus:d&&function(e){return d(t,e.target.value)},onChange:function(e){var t=e.target.value;return c(""===t?n.emptyValue:t)}})}tV.defaultProps={autofocus:!1},nV.defaultProps={autofocus:!1,options:{}};var rV={BaseInput:WU,PasswordWidget:function(e){var t=e.registry.widgets.BaseInput;return f().createElement(t,XN({type:"password"},e))},RadioWidget:XU,UpDownWidget:function(e){var t=e.registry.widgets.BaseInput;return f().createElement(t,XN({type:"number"},e,uU(e.schema)))},RangeWidget:function(e){var t=e.schema,n=e.value,r=e.registry.widgets.BaseInput;return f().createElement("div",{className:"field-range-wrapper"},f().createElement(r,XN({type:"range"},e,uU(t))),f().createElement("span",{className:"range-view"},n))},SelectWidget:tV,TextWidget:function(e){var t=e.registry.widgets.BaseInput;return f().createElement(t,e)},DateWidget:function(e){var t=e.onChange,n=e.registry.widgets.BaseInput;return f().createElement(n,XN({type:"date"},e,{onChange:function(e){return t(e||void 0)}}))},DateTimeWidget:function(e){var t=e.value,n=e.onChange,r=e.registry.widgets.BaseInput;return f().createElement(r,XN({type:"datetime-local"},e,{value:aU(t),onChange:function(e){return n(sU(e))}}))},AltDateWidget:HU,AltDateTimeWidget:GU,EmailWidget:function(e){var t=e.registry.widgets.BaseInput;return f().createElement(t,XN({type:"email"},e))},URLWidget:function(e){var t=e.registry.widgets.BaseInput;return f().createElement(t,XN({type:"url"},e))},TextareaWidget:nV,HiddenWidget:function(e){var t=e.id,n=e.value;return f().createElement("input",{type:"hidden",id:t,value:void 0===n?"":n})},ColorWidget:function(e){var t=e.disabled,n=e.readonly,r=e.registry.widgets.BaseInput;return f().createElement(r,XN({type:"color"},e,{disabled:t||n}))},FileWidget:YU,CheckboxWidget:zU,CheckboxesWidget:$U,SubmitButton:function(e){var t=Oj(e.uiSchema),n=t.submitText,r=t.norender,o=t.props;return f().createElement("div",null,!r&&f().createElement("button",XN({type:"submit"},o,{className:"btn btn-info"}),n))}};function oV(){return{fields:jU,widgets:rV,definitions:{},rootSchema:{},formContext:{}}}var iV=function(e){function t(t){var n;return(n=e.call(this,t)||this).getUsedFormData=function(e,t){if(0===t.length&&"object"!=typeof e)return e;var n=qB(e,t);return Array.isArray(e)?Object.keys(n).map(function(e){return n[e]}):n},n.getFieldNames=function(e,t){return function e(n,r,o){return void 0===r&&(r=[]),void 0===o&&(o=[""]),Object.keys(n).forEach(function(i){if("object"==typeof n[i]){var a=o.map(function(e){return e+"."+i});n[i].__rjsf_additionalProperties&&""!==n[i].$name?r.push(n[i].$name):e(n[i],r,a)}else"$name"===i&&""!==n[i]&&o.forEach(function(e){e=e.replace(/^\./,"");var n=function(e,t){var n=null==e?void 0:AB(e,t);return void 0===n?void 0:n}(t,e);("object"!=typeof n||function(e){if(null==e)return!0;if(mN(e)&&(vL(e)||"string"==typeof e||"function"==typeof e.splice||wN(e)||xN(e)||TB(e)))return!e.length;var t=gN(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(XB(e))return!function(e){if(!XB(e))return ZB(e);var t=[];for(var n in Object(e))JB.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e).length;for(var n in e)if(DN.call(e,n))return!1;return!0}(n))&&r.push(e)})}),r}(e)},n.onChange=function(e,t){(Dj(e)||Array.isArray(e))&&(e=n.getStateFromProps(n.props,e).formData);var r=!n.props.noValidate&&n.props.liveValidate,o={formData:e},i=e;if(!0===n.props.omitExtraData&&!0===n.props.liveOmit){var a=rU(Kj(n.state.schema,n.state.schema,e),"",n.state.schema,e),s=n.getFieldNames(a,e);o={formData:i=n.getUsedFormData(e,s)}}if(r){var l=n.validate(i),c=l.errors,u=l.errorSchema,d=c,p=u;n.props.extraErrors&&(c=uj(u=Pj(u,n.props.extraErrors,!0))),o={formData:i,errors:c,errorSchema:u,schemaValidationErrors:d,schemaValidationErrorSchema:p}}else if(!n.props.noValidate&&t){var h=n.props.extraErrors?Pj(t,n.props.extraErrors,!0):t;o={formData:i,errorSchema:h,errors:uj(h)}}n.setState(o,function(){return n.props.onChange&&n.props.onChange(n.state)})},n.onBlur=function(){var e;n.props.onBlur&&(e=n.props).onBlur.apply(e,arguments)},n.onFocus=function(){var e;n.props.onFocus&&(e=n.props).onFocus.apply(e,arguments)},n.onSubmit=function(e){if(e.preventDefault(),e.target===e.currentTarget){e.persist();var t,r,o=n.state.formData;if(!0===n.props.omitExtraData){var i=rU(Kj(n.state.schema,n.state.schema,o),"",n.state.schema,o),a=n.getFieldNames(i,o);o=n.getUsedFormData(o,a)}if(!n.props.noValidate){var s=n.validate(o),l=s.errors,c=s.errorSchema,u=l,d=c;if(Object.keys(l).length>0)return n.props.extraErrors&&(c=Pj(c,n.props.extraErrors,!0),l=uj(c)),void n.setState({errors:l,errorSchema:c,schemaValidationErrors:u,schemaValidationErrorSchema:d},function(){n.props.onError?n.props.onError(l):console.error("Form validation failed",l)})}n.props.extraErrors?r=uj(t=n.props.extraErrors):(t={},r=[]),n.setState({formData:o,errors:r,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},function(){n.props.onSubmit&&n.props.onSubmit(XN({},n.state,{formData:o,status:"submitted"}),e)})}},n.state=n.getStateFromProps(t,t.formData),n.props.onChange&&!eU(n.state.formData,n.props.formData)&&n.props.onChange(n.state),n.formElement=null,n}ZN(t,e);var n=t.prototype;return n.UNSAFE_componentWillReceiveProps=function(e){var t=this.getStateFromProps(e,e.formData);eU(t.formData,e.formData)||eU(t.formData,this.state.formData)||!this.props.onChange||this.props.onChange(t),this.setState(t)},n.getStateFromProps=function(e,t){var n,r,o,i,a=this.state||{},s="schema"in e?e.schema:this.props.schema,l="uiSchema"in e?e.uiSchema:this.props.uiSchema,c=void 0!==t,u="liveValidate"in e?e.liveValidate:this.props.liveValidate,d=c&&!e.noValidate&&u,p=s,h=Cj(s,t,p),f=Kj(s,p,h),g=e.customFormats,m=e.additionalMetaSchemas;if(d){var v=this.validate(h,s,m,g);o=n=v.errors,i=r=v.errorSchema}else{var y=e.noValidate?{errors:[],errorSchema:{}}:e.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};n=y.errors,r=y.errorSchema,o=a.schemaValidationErrors,i=a.schemaValidationErrorSchema}e.extraErrors&&(n=uj(r=Pj(r,e.extraErrors,!0)));var A={schema:s,uiSchema:l,idSchema:nU(f,l["ui:rootFieldId"],p,h,e.idPrefix,e.idSeparator),formData:h,edit:c,errors:n,errorSchema:r,additionalMetaSchemas:m};return o&&(A.schemaValidationErrors=o,A.schemaValidationErrorSchema=i),A},n.shouldComponentUpdate=function(e,t){return tU(this,e,t)},n.validate=function(e,t,n,r){void 0===t&&(t=this.props.schema),void 0===n&&(n=this.props.additionalMetaSchemas),void 0===r&&(r=this.props.customFormats);var o=this.props,i=o.validate,a=o.transformErrors;return hj(e,Kj(t,this.getRegistry().rootSchema,e),i,a,n,r)},n.renderErrors=function(){var e=this.state,t=e.errors,n=e.errorSchema,r=e.schema,o=e.uiSchema,i=this.props,a=i.ErrorList,s=i.showErrorList,l=i.formContext;return t.length&&0!=s?f().createElement(a,{errors:t,errorSchema:n,schema:r,uiSchema:o,formContext:l}):null},n.getRegistry=function(){var e=oV(),t=e.fields,n=e.widgets;return{fields:XN({},t,this.props.fields),widgets:XN({},n,this.props.widgets),ArrayFieldTemplate:this.props.ArrayFieldTemplate,ObjectFieldTemplate:this.props.ObjectFieldTemplate,FieldTemplate:this.props.FieldTemplate,definitions:this.props.schema.definitions||{},rootSchema:this.props.schema,formContext:this.props.formContext||{}}},n.submit=function(){this.formElement&&this.formElement.dispatchEvent(new CustomEvent("submit",{cancelable:!0}))},n.render=function(){var e=this,t=this.props,n=t.children,r=t.id,o=t.idPrefix,i=t.idSeparator,a=t.className,s=t.tagName,l=t.name,c=t.method,u=t.target,d=t.action,p=t.autocomplete,h=t.autoComplete,g=t.enctype,m=t.acceptcharset,v=t.noHtml5Validate,y=t.disabled,A=t.readonly,w=t.formContext,b=t._internalFormWrapper,_=this.state,C=_.schema,E=_.uiSchema,S=_.formData,O=_.errorSchema,x=_.idSchema,D=this.getRegistry(),P=D.fields.SchemaField,M=b?s:void 0,T=b||s||"form",R=D.widgets.SubmitButton;p&&console.warn("Using autocomplete property of Form is deprecated, use autoComplete instead.");var I=h||p;return f().createElement(T,{className:a||"rjsf",id:r,name:l,method:c,target:u,action:d,autoComplete:I,encType:g,acceptCharset:m,noValidate:v,onSubmit:this.onSubmit,as:M,ref:function(t){e.formElement=t}},this.renderErrors(),f().createElement(P,{schema:C,uiSchema:E,errorSchema:O,idSchema:x,idPrefix:o,idSeparator:i,formContext:w,formData:S,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:D,disabled:y,readonly:A}),n||f().createElement(R,{uiSchema:E}))},t}(h.Component);function aV(e){return(0,h.forwardRef)(function(t,n){var r=t.fields,o=t.widgets,i=ej(t,["fields","widgets"]);return r=XN({},e.fields,r),o=XN({},e.widgets,o),f().createElement(iV,XN({},e,i,{fields:r,widgets:o,ref:n}))})}iV.defaultProps={uiSchema:{},noValidate:!1,liveValidate:!1,disabled:!1,readonly:!1,noHtml5Validate:!1,ErrorList:function(e){var t=e.errors;return f().createElement("div",{className:"panel panel-danger errors"},f().createElement("div",{className:"panel-heading"},f().createElement("h3",{className:"panel-title"},"Errors")),f().createElement("ul",{className:"list-group"},t.map(function(e,t){return f().createElement("li",{key:t,className:"list-group-item text-danger"},e.stack)})))},omitExtraData:!1},aV.propTypes={widgets:bP().object,fields:bP().object};var sV=XN({},hU,{getDefaultRegistry:oV});const lV=iV,cV=e=>(0,p.jsxs)("div",{className:Oo()({"gv-form-label":!0,"gv-form-disabled":e.disabled}),style:e.style,children:[e.children,e.required&&(0,p.jsx)("span",{className:"gv-form-label-required",children:" *"})]}),uV=s.GVDebug.extend("form").extend("fields").extend("title").extend("constructor"),dV=e=>{uV("constructor",e);const{title:t,required:n}=e;return(0,p.jsx)(cV,{required:n,children:t})};var pV=u(46123),hV=u.n(pV),fV=u(40105),gV=u.n(fV),mV=u(95479),vV=u.n(mV);const yV="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function AV(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function wV(e){return"nodeType"in e}function bV(e){var t,n;return e?AV(e)?e:wV(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function _V(e){const{Document:t}=bV(e);return e instanceof t}function CV(e){return!AV(e)&&e instanceof bV(e).HTMLElement}function EV(e){return e instanceof bV(e).SVGElement}function SV(e){return e?AV(e)?e.document:wV(e)?_V(e)?e:CV(e)||EV(e)?e.ownerDocument:document:document:document}const OV=yV?h.useLayoutEffect:h.useEffect;function xV(e){const t=(0,h.useRef)(e);return OV(()=>{t.current=e}),(0,h.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function DV(e,t){void 0===t&&(t=[e]);const n=(0,h.useRef)(e);return OV(()=>{n.current!==e&&(n.current=e)},t),n}function PV(e,t){const n=(0,h.useRef)();return(0,h.useMemo)(()=>{const t=e(n.current);return n.current=t,t},[...t])}function MV(e){const t=xV(e),n=(0,h.useRef)(null),r=(0,h.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function TV(e){const t=(0,h.useRef)();return(0,h.useEffect)(()=>{t.current=e},[e]),t.current}let RV={};function IV(e,t){return(0,h.useMemo)(()=>{if(t)return t;const n=null==RV[e]?0:RV[e]+1;return RV[e]=n,e+"-"+n},[e,t])}function FV(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t},{...t})}}const kV=FV(1),LV=FV(-1);function BV(e){if(!e)return!1;const{KeyboardEvent:t}=bV(e.target);return t&&e instanceof t}function NV(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=bV(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const jV=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[jV.Translate.toString(e),jV.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),UV="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function VV(e){return e.matches(UV)?e:e.querySelector(UV)}const HV={display:"none"};function GV(e){let{id:t,value:n}=e;return f().createElement("div",{id:t,style:HV},n)}function WV(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return f().createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const zV=(0,h.createContext)(null),$V={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},KV={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function QV(e){let{announcements:t=KV,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=$V}=e;const{announce:i,announcement:a}=function(){const[e,t]=(0,h.useState)("");return{announce:(0,h.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=IV("DndLiveRegion"),[l,c]=(0,h.useState)(!1);if((0,h.useEffect)(()=>{c(!0)},[]),function(e){const t=(0,h.useContext)(zV);(0,h.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,h.useMemo)(()=>({onDragStart(e){let{active:n}=e;i(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&i(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;i(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;i(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;i(t.onDragCancel({active:n,over:r}))}}),[i,t])),!l)return null;const u=f().createElement(f().Fragment,null,f().createElement(GV,{id:r,value:o.draggable}),f().createElement(WV,{id:s,announcement:a}));return n?(0,Ls.createPortal)(u,n):u}var qV;function YV(){}function XV(e,t){return(0,h.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(qV||(qV={}));const ZV=Object.freeze({x:0,y:0});function JV(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function eH(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function tH(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function nH(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function rH(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function oH(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const iH=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=oH(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=JV(oH(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(eH)};function aH(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*s;return Number((o/(n+r-o)).toFixed(4))}return 0}const sH=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=aH(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(tH)};function lH(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ZV}const cH={ignoreTransform:!1};function uH(e,t){void 0===t&&(t=cH);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=bV(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,t,r))}const{top:r,left:o,width:i,height:a,bottom:s,right:l}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:l}}function dH(e){return uH(e,{ignoreTransform:!0})}function pH(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(_V(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!CV(o)||EV(o))return n;if(n.includes(o))return n;const i=bV(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=bV(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=bV(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function hH(e){const[t]=pH(e,1);return null!=t?t:null}function fH(e){return yV&&e?AV(e)?e:wV(e)?_V(e)||e===SV(e).scrollingElement?window:CV(e)?e:null:null:null}function gH(e){return AV(e)?e.scrollX:e.scrollLeft}function mH(e){return AV(e)?e.scrollY:e.scrollTop}function vH(e){return{x:gH(e),y:mH(e)}}var yH;function AH(e){return!(!yV||!e)&&e===document.scrollingElement}function wH(e){const t={x:0,y:0},n=AH(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(yH||(yH={}));const bH={x:.2,y:.2};function _H(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===o&&(o=bH);const{isTop:c,isBottom:u,isLeft:d,isRight:p}=wH(e),h={x:0,y:0},f={x:0,y:0},g=t.height*o.y,m=t.width*o.x;return!c&&i<=t.top+g?(h.y=yH.Backward,f.y=r*Math.abs((t.top+g-i)/g)):!u&&l>=t.bottom-g&&(h.y=yH.Forward,f.y=r*Math.abs((t.bottom-g-l)/g)),!p&&s>=t.right-m?(h.x=yH.Forward,f.x=r*Math.abs((t.right-m-s)/m)):!d&&a<=t.left+m&&(h.x=yH.Backward,f.x=r*Math.abs((t.left+m-a)/m)),{direction:h,speed:f}}function CH(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function EH(e){return e.reduce((e,t)=>kV(e,vH(t)),ZV)}const SH=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+gH(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+mH(t),0)}]];class OH{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=pH(t),r=EH(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of SH)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class xH{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function DH(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var PH,MH;function TH(e){e.preventDefault()}function RH(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(PH||(PH={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(MH||(MH={}));const IH={start:[MH.Space,MH.Enter],cancel:[MH.Esc],end:[MH.Space,MH.Enter]},FH=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case MH.Right:return{...n,x:n.x+25};case MH.Left:return{...n,x:n.x-25};case MH.Down:return{...n,y:n.y+25};case MH.Up:return{...n,y:n.y-25}}};class kH{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new xH(SV(t)),this.windowListeners=new xH(bV(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(PH.Resize,this.handleCancel),this.windowListeners.add(PH.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(PH.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=uH),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);hH(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(ZV)}handleKeyDown(e){if(BV(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=IH,coordinateGetter:i=FH,scrollBehavior:a="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:ZV;this.referenceCoordinates||(this.referenceCoordinates=c);const u=i(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=LV(u,c),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:s,isLeft:l,isBottom:c,maxScroll:d,minScroll:p}=wH(n),h=CH(n),f={x:Math.min(o===MH.Right?h.right-h.width/2:h.right,Math.max(o===MH.Right?h.left:h.left+h.width/2,u.x)),y:Math.min(o===MH.Down?h.bottom-h.height/2:h.bottom,Math.max(o===MH.Down?h.top:h.top+h.height/2,u.y))},g=o===MH.Right&&!s||o===MH.Left&&!l,m=o===MH.Down&&!c||o===MH.Up&&!i;if(g&&f.x!==u.x){const e=n.scrollLeft+t.x,i=o===MH.Right&&e<=d.x||o===MH.Left&&e>=p.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===MH.Right?n.scrollLeft-d.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&f.y!==u.y){const e=n.scrollTop+t.y,i=o===MH.Down&&e<=d.y||o===MH.Up&&e>=p.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===MH.Down?n.scrollTop-d.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,kV(LV(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function LH(e){return Boolean(e&&"distance"in e)}function BH(e){return Boolean(e&&"delay"in e)}kH.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=IH,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class NH{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=bV(e);return e instanceof t?e:SV(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=SV(i),this.documentListeners=new xH(this.document),this.listeners=new xH(n),this.windowListeners=new xH(bV(i)),this.initialCoordinates=null!=(r=NV(o))?r:ZV,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(PH.Resize,this.handleCancel),this.windowListeners.add(PH.DragStart,TH),this.windowListeners.add(PH.VisibilityChange,this.handleCancel),this.windowListeners.add(PH.ContextMenu,TH),this.documentListeners.add(PH.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(BH(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(LH(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(PH.Click,RH,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(PH.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const s=null!=(t=NV(e))?t:ZV,l=LV(r,s);if(!n&&a){if(LH(a)){if(null!=a.tolerance&&DH(l,a.tolerance))return this.handleCancel();if(DH(l,a.distance))return this.handleStart()}return BH(a)&&DH(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===MH.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const jH={move:{name:"pointermove"},end:{name:"pointerup"}};class UH extends NH{constructor(e){const{event:t}=e,n=SV(t.target);super(e,jH,n)}}UH.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const VH={move:{name:"mousemove"},end:{name:"mouseup"}};var HH;!function(e){e[e.RightClick=2]="RightClick"}(HH||(HH={}));class GH extends NH{constructor(e){super(e,VH,SV(e.event.target))}}GH.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==HH.RightClick&&(null==r||r({event:n}),!0)}}];const WH={move:{name:"touchmove"},end:{name:"touchend"}};class zH extends NH{constructor(e){super(e,WH)}static setup(){return window.addEventListener(WH.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(WH.move.name,e)};function e(){}}}var $H,KH;zH.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}($H||($H={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(KH||(KH={}));const QH={x:{[yH.Backward]:!1,[yH.Forward]:!1},y:{[yH.Backward]:!1,[yH.Forward]:!1}};var qH,YH;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(qH||(qH={})),function(e){e.Optimized="optimized"}(YH||(YH={}));const XH=new Map;function ZH(e,t){return PV(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function JH(e){let{callback:t,disabled:n}=e;const r=xV(t),o=(0,h.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)},[n]);return(0,h.useEffect)(()=>()=>null==o?void 0:o.disconnect(),[o]),o}function eG(e){return new OH(uH(e),e)}function tG(e,t,n){void 0===t&&(t=eG);const[r,o]=(0,h.useReducer)(function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i},null),i=function(e){let{callback:t,disabled:n}=e;const r=xV(t),o=(0,h.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,h.useEffect)(()=>()=>null==o?void 0:o.disconnect(),[o]),o}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),a=JH({callback:o});return OV(()=>{o(),e?(null==a||a.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==i||i.disconnect())},[e]),r}const nG=[];function rG(e,t){void 0===t&&(t=[]);const n=(0,h.useRef)(null);return(0,h.useEffect)(()=>{n.current=null},t),(0,h.useEffect)(()=>{const t=e!==ZV;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?LV(e,n.current):ZV}function oG(e){return(0,h.useMemo)(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const iG=[],aG=[{sensor:UH,options:{}},{sensor:kH,options:{}}],sG={current:{}},lG={draggable:{measure:dH},droppable:{measure:dH,strategy:qH.WhileDragging,frequency:YH.Optimized},dragOverlay:{measure:uH}};class cG extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const uG={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new cG,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:YV},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:lG,measureDroppableContainers:YV,windowRect:null,measuringScheduled:!1},dG={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:YV,draggableNodes:new Map,over:null,measureDroppableContainers:YV},pG=(0,h.createContext)(dG),hG=(0,h.createContext)(uG);function fG(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new cG}}}function gG(e,t){switch(t.type){case qV.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case qV.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case qV.DragEnd:case qV.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case qV.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new cG(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case qV.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new cG(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case qV.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new cG(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function mG(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=(0,h.useContext)(pG),i=TV(r),a=TV(null==n?void 0:n.id);return(0,h.useEffect)(()=>{if(!t&&!r&&i&&null!=a){if(!BV(i))return;if(document.activeElement===i.target)return;const e=o.get(a);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=VV(e);if(t){t.focus();break}}})}},[r,t,o,a,i]),null}const vG=(0,h.createContext)({...ZV,scaleX:1,scaleY:1});var yG;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(yG||(yG={}));const AG=(0,h.memo)(function(e){var t,n,r,o;let{id:i,accessibility:a,autoScroll:s=!0,children:l,sensors:c=aG,collisionDetection:u=sH,measuring:d,modifiers:p,...g}=e;const m=(0,h.useReducer)(gG,void 0,fG),[v,y]=m,[A,w]=function(){const[e]=(0,h.useState)(()=>new Set),t=(0,h.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]),n=(0,h.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]);return[n,t]}(),[b,_]=(0,h.useState)(yG.Uninitialized),C=b===yG.Initialized,{draggable:{active:E,nodes:S,translate:O},droppable:{containers:x}}=v,D=E?S.get(E):null,P=(0,h.useRef)({initial:null,translated:null}),M=(0,h.useMemo)(()=>{var e;return null!=E?{id:E,data:null!=(e=null==D?void 0:D.data)?e:sG,rect:P}:null},[E,D]),T=(0,h.useRef)(null),[R,I]=(0,h.useState)(null),[F,k]=(0,h.useState)(null),L=DV(g,Object.values(g)),B=IV("DndDescribedBy",i),N=(0,h.useMemo)(()=>x.getEnabled(),[x]),j=(K=d,(0,h.useMemo)(()=>({draggable:{...lG.draggable,...null==K?void 0:K.draggable},droppable:{...lG.droppable,...null==K?void 0:K.droppable},dragOverlay:{...lG.dragOverlay,...null==K?void 0:K.dragOverlay}}),[null==K?void 0:K.draggable,null==K?void 0:K.droppable,null==K?void 0:K.dragOverlay])),{droppableRects:U,measureDroppableContainers:V,measuringScheduled:H}=function(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=(0,h.useState)(null),{frequency:s,measure:l,strategy:c}=o,u=(0,h.useRef)(e),d=function(){switch(c){case qH.Always:return!1;case qH.BeforeDragging:return n;default:return!n}}(),p=DV(d),f=(0,h.useCallback)(function(e){void 0===e&&(e=[]),p.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[p]),g=(0,h.useRef)(null),m=PV(t=>{if(d&&!n)return XH;if(!t||t===XH||u.current!==e||null!=i){const t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new OH(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,i,n,d,l]);return(0,h.useEffect)(()=>{u.current=e},[e]),(0,h.useEffect)(()=>{d||f()},[n,d]),(0,h.useEffect)(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),(0,h.useEffect)(()=>{d||"number"!=typeof s||null!==g.current||(g.current=setTimeout(()=>{f(),g.current=null},s))},[s,d,f,...r]),{droppableRects:m,measureDroppableContainers:f,measuringScheduled:null!=i}}(N,{dragging:C,dependencies:[O.x,O.y],config:j.droppable}),G=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return PV(e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(S,E),W=(0,h.useMemo)(()=>F?NV(F):null,[F]),z=function(){const e=!1===(null==R?void 0:R.autoScrollEnabled),t="object"==typeof s?!1===s.enabled:!1===s,n=C&&!e&&!t;return"object"==typeof s?{...s,enabled:n}:{enabled:n}}(),$=function(e,t){return ZH(e,t)}(G,j.draggable.measure);var K;!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=(0,h.useRef)(!1),{x:a,y:s}="boolean"==typeof o?{x:o,y:o}:o;OV(()=>{if(!a&&!s||!t)return void(i.current=!1);if(i.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=lH(n(e),r);if(a||(o.x=0),s||(o.y=0),i.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=hH(e);t&&t.scrollBy({top:o.y,left:o.x})}},[t,a,s,r,n])}({activeNode:E?S.get(E):null,config:z.layoutShiftCompensation,initialRect:$,measure:j.draggable.measure});const Q=tG(G,j.draggable.measure,$),q=tG(G?G.parentElement:null),Y=(0,h.useRef)({activatorEvent:null,active:null,activeNode:G,collisionRect:null,collisions:null,droppableRects:U,draggableNodes:S,draggingNode:null,draggingNodeRect:null,droppableContainers:x,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),X=x.getNodeFor(null==(t=Y.current.over)?void 0:t.id),Z=function(e){let{measure:t}=e;const[n,r]=(0,h.useState)(null),o=(0,h.useCallback)(e=>{for(const{target:n}of e)if(CV(n)){r(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t]),i=JH({callback:o}),a=(0,h.useCallback)(e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return CV(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[s,l]=MV(a);return(0,h.useMemo)(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}({measure:j.dragOverlay.measure}),J=null!=(n=Z.nodeRef.current)?n:G,ee=C?null!=(r=Z.rect)?r:Q:null,te=Boolean(Z.nodeRef.current&&Z.rect),ne=lH(re=te?null:Q,ZH(re));var re;const oe=oG(J?bV(J):null),ie=function(e){const t=(0,h.useRef)(e),n=PV(n=>e?n&&n!==nG&&e&&t.current&&e.parentNode===t.current.parentNode?n:pH(e):nG,[e]);return(0,h.useEffect)(()=>{t.current=e},[e]),n}(C?null!=X?X:G:null),ae=function(e,t){void 0===t&&(t=uH);const[n]=e,r=oG(n?bV(n):null),[o,i]=(0,h.useReducer)(function(){return e.length?e.map(e=>AH(e)?r:new OH(t(e),e)):iG},iG),a=JH({callback:i});return e.length>0&&o===iG&&i(),OV(()=>{e.length?e.forEach(e=>null==a?void 0:a.observe(e)):(null==a||a.disconnect(),i())},[e]),o}(ie),se=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(p,{transform:{x:O.x-ne.x,y:O.y-ne.y,scaleX:1,scaleY:1},activatorEvent:F,active:M,activeNodeRect:Q,containerNodeRect:q,draggingNodeRect:ee,over:Y.current.over,overlayNodeRect:Z.rect,scrollableAncestors:ie,scrollableAncestorRects:ae,windowRect:oe}),le=W?kV(W,O):null,ce=function(e){const[t,n]=(0,h.useState)(null),r=(0,h.useRef)(e),o=(0,h.useCallback)(e=>{const t=fH(e.target);t&&n(e=>e?(e.set(t,vH(t)),new Map(e)):null)},[]);return(0,h.useEffect)(()=>{const t=r.current;if(e!==t){i(t);const a=e.map(e=>{const t=fH(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,vH(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{const t=fH(e);null==t||t.removeEventListener("scroll",o)})}},[o,e]),(0,h.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>kV(e,t),ZV):EH(e):ZV,[e,t])}(ie),ue=rG(ce),de=rG(ce,[Q]),pe=kV(se,ue),he=ee?function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((e,t)=>({...e,top:e.top+1*t.y,bottom:e.bottom+1*t.y,left:e.left+1*t.x,right:e.right+1*t.x}),{...e})}(ee,se):null,fe=M&&he?u({active:M,collisionRect:he,droppableRects:U,droppableContainers:N,pointerCoordinates:le}):null,ge=rH(fe,"id"),[me,ve]=(0,h.useState)(null),ye=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(te?se:kV(se,de),null!=(o=null==me?void 0:me.rect)?o:null,Q),Ae=(0,h.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==T.current)return;const o=S.get(T.current);if(!o)return;const i=e.nativeEvent,a=new n({active:T.current,activeNode:o,event:i,options:r,context:Y,onStart(e){const t=T.current;if(null==t)return;const n=S.get(t);if(!n)return;const{onDragStart:r}=L.current,o={active:{id:t,data:n.data,rect:P}};(0,Ls.unstable_batchedUpdates)(()=>{null==r||r(o),_(yG.Initializing),y({type:qV.DragStart,initialCoordinates:e,active:t}),A({type:"onDragStart",event:o})})},onMove(e){y({type:qV.DragMove,coordinates:e})},onEnd:s(qV.DragEnd),onCancel:s(qV.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=Y.current;let a=null;if(t&&o){const{cancelDrop:s}=L.current;a={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===qV.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=qV.DragCancel)}T.current=null,(0,Ls.unstable_batchedUpdates)(()=>{y({type:e}),_(yG.Uninitialized),ve(null),I(null),k(null);const t=e===qV.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=L.current[t];null==e||e(a),A({type:t,event:a})}})}}(0,Ls.unstable_batchedUpdates)(()=>{I(a),k(e.nativeEvent)})},[S]),we=(0,h.useCallback)((e,t)=>(n,r)=>{const o=n.nativeEvent,i=S.get(r);if(null!==T.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},T.current=r,Ae(n,t))},[S,Ae]),be=function(e,t){return(0,h.useMemo)(()=>e.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(c,we);!function(e){(0,h.useEffect)(()=>{if(!yV)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(c),OV(()=>{Q&&b===yG.Initializing&&_(yG.Initialized)},[Q,b]),(0,h.useEffect)(()=>{const{onDragMove:e}=L.current,{active:t,activatorEvent:n,collisions:r,over:o}=Y.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:pe.x,y:pe.y},over:o};(0,Ls.unstable_batchedUpdates)(()=>{null==e||e(i),A({type:"onDragMove",event:i})})},[pe.x,pe.y]),(0,h.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=Y.current;if(!e||null==T.current||!t||!o)return;const{onDragOver:i}=L.current,a=r.get(ge),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:s};(0,Ls.unstable_batchedUpdates)(()=>{ve(s),null==i||i(l),A({type:"onDragOver",event:l})})},[ge]),OV(()=>{Y.current={activatorEvent:F,active:M,activeNode:G,collisionRect:he,collisions:fe,droppableRects:U,draggableNodes:S,draggingNode:J,draggingNodeRect:ee,droppableContainers:x,over:me,scrollableAncestors:ie,scrollAdjustedTranslate:pe},P.current={initial:ee,translated:he}},[M,G,fe,he,S,J,ee,U,x,me,ie,pe]),function(e){let{acceleration:t,activator:n=$H.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:s=KH.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:p}=e;const f=function(e){let{delta:t,disabled:n}=e;const r=TV(t);return PV(e=>{if(n||!r||!e)return QH;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[yH.Backward]:e.x[yH.Backward]||-1===o,[yH.Forward]:e.x[yH.Forward]||1===o},y:{[yH.Backward]:e.y[yH.Backward]||-1===i,[yH.Forward]:e.y[yH.Forward]||1===i}}},[n,t,r])}({delta:d,disabled:!i}),[g,m]=function(){const e=(0,h.useRef)(null),t=(0,h.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]);return[t,(0,h.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),v=(0,h.useRef)({x:0,y:0}),y=(0,h.useRef)({x:0,y:0}),A=(0,h.useMemo)(()=>{switch(n){case $H.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case $H.DraggableRect:return o}},[n,o,l]),w=(0,h.useRef)(null),b=(0,h.useCallback)(()=>{const e=w.current;if(!e)return;const t=v.current.x*y.current.x,n=v.current.y*y.current.y;e.scrollBy(t,n)},[]),_=(0,h.useMemo)(()=>s===KH.TreeOrder?[...c].reverse():c,[s,c]);(0,h.useEffect)(()=>{if(i&&c.length&&A){for(const e of _){if(!1===(null==r?void 0:r(e)))continue;const n=c.indexOf(e),o=u[n];if(!o)continue;const{direction:i,speed:s}=_H(e,o,A,t,p);for(const e of["x","y"])f[e][i[e]]||(s[e]=0,i[e]=0);if(s.x>0||s.y>0)return m(),w.current=e,g(b,a),v.current=s,void(y.current=i)}v.current={x:0,y:0},y.current={x:0,y:0},m()}else m()},[t,b,r,m,i,a,JSON.stringify(A),JSON.stringify(f),g,c,_,u,JSON.stringify(p)])}({...z,delta:O,draggingRect:he,pointerCoordinates:le,scrollableAncestors:ie,scrollableAncestorRects:ae});const _e=(0,h.useMemo)(()=>({active:M,activeNode:G,activeNodeRect:Q,activatorEvent:F,collisions:fe,containerNodeRect:q,dragOverlay:Z,draggableNodes:S,droppableContainers:x,droppableRects:U,over:me,measureDroppableContainers:V,scrollableAncestors:ie,scrollableAncestorRects:ae,measuringConfiguration:j,measuringScheduled:H,windowRect:oe}),[M,G,Q,F,fe,q,Z,S,x,U,me,V,ie,ae,j,H,oe]),Ce=(0,h.useMemo)(()=>({activatorEvent:F,activators:be,active:M,activeNodeRect:Q,ariaDescribedById:{draggable:B},dispatch:y,draggableNodes:S,over:me,measureDroppableContainers:V}),[F,be,M,Q,y,B,S,me,V]);return f().createElement(zV.Provider,{value:w},f().createElement(pG.Provider,{value:Ce},f().createElement(hG.Provider,{value:_e},f().createElement(vG.Provider,{value:ye},l)),f().createElement(mG,{disabled:!1===(null==a?void 0:a.restoreFocus)})),f().createElement(QV,{...a,hiddenTextDescribedById:B}))}),wG=(0,h.createContext)(null),bG="button",_G={timeout:25},CG=e=>{let{transform:t}=e;return{...t,y:0}},EG=e=>{let{transform:t}=e;return{...t,x:0}};function SG(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function OG(e,t){return e.reduce((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e},Array(e.length))}function xG(e){return null!==e&&e>=0}const DG={scaleX:1,scaleY:1},PG=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:o,overIndex:i,index:a}=e;const s=null!=(t=n[o])?t:r;if(!s)return null;const l=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r&&(o||i)?n<t?o?r.left-(o.left+o.width):i.left-(r.left+r.width):i?i.left-(r.left+r.width):r.left-(o.left+o.width):0}(n,a,o);if(a===o){const e=n[i];return e?{x:o<i?e.left+e.width-(s.left+s.width):e.left-s.left,y:0,...DG}:null}return a>o&&a<=i?{x:-s.width-l,y:0,...DG}:a<o&&a>=i?{x:s.width+l,y:0,...DG}:{x:0,y:0,...DG}},MG=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=SG(t,r,n),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},TG={scaleX:1,scaleY:1},RG=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const s=null!=(t=i[n])?t:r;if(!s)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(s.top+s.height):e.top-s.top,...TG}:null}const l=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}(i,o,n);return o>n&&o<=a?{x:0,y:-s.height-l,...TG}:o<n&&o>=a?{x:0,y:s.height+l,...TG}:{x:0,y:0,...TG}},IG="Sortable",FG=f().createContext({activeIndex:-1,containerId:IG,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:MG,disabled:{draggable:!1,droppable:!1}});function kG(e){let{children:t,id:n,items:r,strategy:o=MG,disabled:i=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=(0,h.useContext)(hG),d=IV(IG,n),p=Boolean(null!==s.rect),g=(0,h.useMemo)(()=>r.map(e=>"object"==typeof e&&"id"in e?e.id:e),[r]),m=null!=a,v=a?g.indexOf(a.id):-1,y=c?g.indexOf(c.id):-1,A=(0,h.useRef)(g),w=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(g,A.current),b=-1!==y&&-1===v||w,_=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);OV(()=>{w&&m&&u(g)},[w,g,m,u]),(0,h.useEffect)(()=>{A.current=g},[g]);const C=(0,h.useMemo)(()=>({activeIndex:v,containerId:d,disabled:_,disableTransforms:b,items:g,overIndex:y,useDragOverlay:p,sortedRects:OG(g,l),strategy:o}),[v,d,_.draggable,_.droppable,b,g,y,l,p,o]);return f().createElement(FG.Provider,{value:C},t)}const LG=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return SG(n,r,o).indexOf(t)},BG=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!(!c||!r||s!==i&&o===a||!n&&(a===o||t!==l))},NG={duration:200,easing:"ease"},jG="transform",UG=jV.Transition.toString({property:jG,duration:0,easing:"linear"}),VG={roleDescription:"sortable"};function HG(e){let{animateLayoutChanges:t=BG,attributes:n,disabled:r,data:o,getNewIndex:i=LG,id:a,strategy:s,resizeObserverConfig:l,transition:c=NG}=e;const{items:u,containerId:d,activeIndex:p,disabled:f,disableTransforms:g,sortedRects:m,overIndex:v,useDragOverlay:y,strategy:A}=(0,h.useContext)(FG),w=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,f),b=u.indexOf(a),_=(0,h.useMemo)(()=>({sortable:{containerId:d,index:b,items:u},...o}),[d,o,b,u]),C=(0,h.useMemo)(()=>u.slice(u.indexOf(a)),[u,a]),{rect:E,node:S,isOver:O,setNodeRef:x}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=IV("Droppable"),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=(0,h.useContext)(pG),u=(0,h.useRef)({disabled:n}),d=(0,h.useRef)(!1),p=(0,h.useRef)(null),f=(0,h.useRef)(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={..._G,...o},y=DV(null!=m?m:r),A=JH({callback:(0,h.useCallback)(()=>{d.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),f.current=null},v)):d.current=!0},[v]),disabled:g||!a}),w=(0,h.useCallback)((e,t)=>{A&&(t&&(A.unobserve(t),d.current=!1),e&&A.observe(e))},[A]),[b,_]=MV(w),C=DV(t);return(0,h.useEffect)(()=>{A&&b.current&&(A.disconnect(),d.current=!1,A.observe(b.current))},[b,A]),OV(()=>(s({type:qV.RegisterDroppable,element:{id:r,key:i,disabled:n,node:b,rect:p,data:C}}),()=>s({type:qV.UnregisterDroppable,key:i,id:r})),[r]),(0,h.useEffect)(()=>{n!==u.current.disabled&&(s({type:qV.SetDroppableDisabled,id:r,key:i,disabled:n}),u.current.disabled=n)},[r,i,n,s]),{active:a,rect:p,isOver:(null==l?void 0:l.id)===r,node:b,over:l,setNodeRef:_}}({id:a,data:_,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...l}}),{active:D,activatorEvent:P,activeNodeRect:M,attributes:T,setNodeRef:R,listeners:I,isDragging:F,over:k,setActivatorNodeRef:L,transform:B}=function(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=IV("Droppable"),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:p}=(0,h.useContext)(pG),{role:f=bG,roleDescription:g="draggable",tabIndex:m=0}=null!=o?o:{},v=(null==l?void 0:l.id)===t,y=(0,h.useContext)(v?vG:wG),[A,w]=MV(),[b,_]=MV(),C=function(e,t){return(0,h.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e},{}),[e,t])}(a,t),E=DV(n);return OV(()=>(d.set(t,{id:t,key:i,node:A,activatorNode:b,data:E}),()=>{const e=d.get(t);e&&e.key===i&&d.delete(t)}),[d,t]),{active:l,activatorEvent:s,activeNodeRect:c,attributes:(0,h.useMemo)(()=>({role:f,tabIndex:m,"aria-disabled":r,"aria-pressed":!(!v||f!==bG)||void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[r,f,m,v,g,u.draggable]),isDragging:v,listeners:r?void 0:C,node:A,over:p,setNodeRef:w,setActivatorNodeRef:_,transform:y}}({id:a,data:_,attributes:{...VG,...n},disabled:w.draggable}),N=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,h.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}(x,R),j=Boolean(D),U=j&&!g&&xG(p)&&xG(v),V=!y&&F,H=V&&U?B:null,G=U?null!=H?H:(null!=s?s:A)({rects:m,activeNodeRect:M,activeIndex:p,overIndex:v,index:b}):null,W=xG(p)&&xG(v)?i({id:a,items:u,activeIndex:p,overIndex:v}):b,z=null==D?void 0:D.id,$=(0,h.useRef)({activeId:z,items:u,newIndex:W,containerId:d}),K=u!==$.current.items,Q=t({active:D,containerId:d,isDragging:F,isSorting:j,id:a,index:b,items:u,newIndex:$.current.newIndex,previousItems:$.current.items,previousContainerId:$.current.containerId,transition:c,wasDragging:null!=$.current.activeId}),q=function(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,a]=(0,h.useState)(null),s=(0,h.useRef)(n);return OV(()=>{if(!t&&n!==s.current&&r.current){const e=o.current;if(e){const t=uH(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}n!==s.current&&(s.current=n)},[t,n,r,o]),(0,h.useEffect)(()=>{i&&a(null)},[i]),i}({disabled:!Q,index:b,node:S,rect:E});return(0,h.useEffect)(()=>{j&&$.current.newIndex!==W&&($.current.newIndex=W),d!==$.current.containerId&&($.current.containerId=d),u!==$.current.items&&($.current.items=u)},[j,W,d,u]),(0,h.useEffect)(()=>{if(z===$.current.activeId)return;if(z&&!$.current.activeId)return void($.current.activeId=z);const e=setTimeout(()=>{$.current.activeId=z},50);return()=>clearTimeout(e)},[z]),{active:D,activeIndex:p,attributes:T,data:_,rect:E,index:b,newIndex:W,items:u,isOver:O,isSorting:j,isDragging:F,listeners:I,node:S,overIndex:v,over:k,setNodeRef:N,setActivatorNodeRef:L,setDroppableNodeRef:x,setDraggableNodeRef:R,transform:null!=q?q:G,transition:q||K&&$.current.newIndex===b?UG:V&&!BV(P)||!c?void 0:j||Q?jV.Transition.toString({...c,property:jG}):void 0}}function GG(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const WG=[MH.Down,MH.Right,MH.Up,MH.Left],zG=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:s}}=t;if(WG.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];i.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;const i=o.get(n.id);if(i)switch(e.code){case MH.Down:r.top<i.top&&t.push(n);break;case MH.Up:r.top>i.top&&t.push(n);break;case MH.Left:r.left>i.left&&t.push(n);break;case MH.Right:r.left<i.left&&t.push(n)}});const l=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=nH(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=nH(r),a=o.reduce((e,t,r)=>e+JV(n[r],t),0),s=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:s}})}}return i.sort(eH)})({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let c=rH(l,"id");if(c===(null==a?void 0:a.id)&&l.length>1&&(c=l[1].id),null!=c){const e=i.get(n.id),t=i.get(c),a=t?o.get(t.id):null,l=null==t?void 0:t.node.current;if(l&&a&&e&&t){const n=pH(l).some((e,t)=>s[t]!==e),o=$G(e,t),i=function(e,t){return!(!GG(e)||!GG(t))&&!!$G(e,t)&&e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=n||!o?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},u={x:a.left,y:a.top};return c.x&&c.y?u:LV(u,c)}}}};function $G(e,t){return!(!GG(e)||!GG(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}function KG(e,t){return"function"==typeof e?e(t):e}function QG(e,t){return n=>{t.setState(t=>({...t,[e]:KG(n,t[e])}))}}function qG(e){return e instanceof Function}function YG(e,t){const n=[],r=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)})};return r(e),n}function XG(e,t,n){let r,o=[];return i=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(i),l=s.length!==o.length||s.some((e,t)=>o[t]!==e);if(!l)return r;let c;if(o=s,n.key&&n.debug&&(c=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-a))/100,t=Math.round(100*(Date.now()-c))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n            font-size: .6rem;\n            font-weight: bold;\n            color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function ZG(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const JG="debugHeaders";function eW(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}const tW={createTable:e=>{e.getHeaderGroups=XG(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;const s=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],l=null!=(a=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?a:[];return nW(t,[...s,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...l],e)},ZG(e.options,JG)),e.getCenterHeaderGroups=XG(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>nW(t,n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),ZG(e.options,JG)),e.getLeftHeaderGroups=XG(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return nW(t,i,e,"left")},ZG(e.options,JG)),e.getRightHeaderGroups=XG(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return nW(t,i,e,"right")},ZG(e.options,JG)),e.getFooterGroups=XG(()=>[e.getHeaderGroups()],e=>[...e].reverse(),ZG(e.options,JG)),e.getLeftFooterGroups=XG(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),ZG(e.options,JG)),e.getCenterFooterGroups=XG(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),ZG(e.options,JG)),e.getRightFooterGroups=XG(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),ZG(e.options,JG)),e.getFlatHeaders=XG(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),ZG(e.options,JG)),e.getLeftFlatHeaders=XG(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),ZG(e.options,JG)),e.getCenterFlatHeaders=XG(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),ZG(e.options,JG)),e.getRightFlatHeaders=XG(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),ZG(e.options,JG)),e.getCenterLeafHeaders=XG(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),ZG(e.options,JG)),e.getLeftLeafHeaders=XG(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),ZG(e.options,JG)),e.getRightLeafHeaders=XG(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),ZG(e.options,JG)),e.getLeafHeaders=XG(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,a,s,l;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},ZG(e.options,JG))}};function nW(e,t,n,r){var o,i;let a=0;const s=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)},0)};s(e);let l=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{const a=[...i].reverse()[0];let s,l=!1;if(e.column.depth===o.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(e);else{const o=eW(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${i.filter(e=>e.column===s).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),l.push(o),t>0&&c(i,t-1)},u=t.map((e,t)=>eW(n,e,{depth:a,index:t}));c(u,a-1),l.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(i=l[0])?void 0:i.headers)?o:[]),l}const rW=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>YG(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:XG(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:XG(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),ZG(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,s,t,t.id)),ZG(e.options,"debugRows")),_getAllCellsByColumnId:XG(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),ZG(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s},oW={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},iW=(e,t,n)=>{var r,o;const i=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(i))};iW.autoRemove=e=>gW(e);const aW=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};aW.autoRemove=e=>gW(e);const sW=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};sW.autoRemove=e=>gW(e);const lW=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};lW.autoRemove=e=>gW(e)||!(null!=e&&e.length);const cW=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});cW.autoRemove=e=>gW(e)||!(null!=e&&e.length);const uW=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});uW.autoRemove=e=>gW(e)||!(null!=e&&e.length);const dW=(e,t,n)=>e.getValue(t)===n;dW.autoRemove=e=>gW(e);const pW=(e,t,n)=>e.getValue(t)==n;pW.autoRemove=e=>gW(e);const hW=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};hW.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(o)?1/0:o;if(i>a){const e=i;i=a,a=e}return[i,a]},hW.autoRemove=e=>gW(e)||gW(e[0])&&gW(e[1]);const fW={includesString:iW,includesStringSensitive:aW,equalsString:sW,arrIncludes:lW,arrIncludesAll:cW,arrIncludesSome:uW,equals:dW,weakEquals:pW,inNumberRange:hW};function gW(e){return null==e||""===e}const mW={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:QG("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?fW.includesString:"number"==typeof r?fW.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?fW.equals:Array.isArray(r)?fW.arrIncludes:fW.weakEquals},e.getFilterFn=()=>{var n,r;return qG(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:fW[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),i=KG(n,o?o.value:void 0);var a;if(vW(r,i,e))return null!=(a=null==t?void 0:t.filter(t=>t.id!==e.id))?a:[];const s={id:e.id,value:i};var l;return o?null!=(l=null==t?void 0:t.map(t=>t.id===e.id?s:t))?l:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=KG(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!vW(t.getFilterFn(),e.value,t)})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function vW(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const yW={sum:(e,t,n)=>n.reduce((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(!function(e){return Array.isArray(e)&&e.every(e=>"number"==typeof e)}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},AW={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:QG("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?yW.sum:"[object Date]"===Object.prototype.toString.call(r)?yW.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return qG(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:yW[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},wW={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:QG("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=XG(e=>[xW(t,e)],t=>t.findIndex(t=>t.id===e.id),ZG(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=xW(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=xW(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=XG(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter(e=>!t.includes(e.id));return"remove"===n?r:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...r]}(o,t,n)},ZG(e.options,"debugTable"))}},bW={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:QG("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,a,s,l;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=XG(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},ZG(t.options,"debugRows")),e.getLeftVisibleCells=XG(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),ZG(t.options,"debugRows")),e.getRightVisibleCells=XG(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),ZG(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},e.getLeftLeafColumns=XG(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),ZG(e.options,"debugColumns")),e.getRightLeafColumns=XG(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),ZG(e.options,"debugColumns")),e.getCenterLeafColumns=XG(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},ZG(e.options,"debugColumns"))}},_W={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},CW={getDefaultColumnDef:()=>_W,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:QG("columnSizing",e),onColumnSizingInfoChange:QG("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:_W.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:_W.size),null!=(o=e.columnDef.maxSize)?o:_W.maxSize)},e.getStart=XG(e=>[e,xW(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),ZG(t.options,"debugColumns")),e.getAfter=XG(e=>[e,xW(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),ZG(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o)return;if(null==i.persist||i.persist(),SW(i)&&i.touches&&i.touches.length>1)return;const a=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],l=SW(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,o;const i="rtl"===t.options.columnResizeDirection?-1:1,a=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,s=Math.max(a/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*s,0))/100}),{...e,deltaOffset:a,deltaPercentage:s}}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>({...e,...c})))},d=e=>u("move",e),p=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||"undefined"!=typeof document?document:null,f={moveHandler:e=>d(e.clientX),upHandler:e=>{null==h||h.removeEventListener("mousemove",f.moveHandler),null==h||h.removeEventListener("mouseup",f.upHandler),p(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==h||h.removeEventListener("touchmove",g.moveHandler),null==h||h.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof EW)return EW;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return EW=e,EW}()&&{passive:!1};SW(i)?(null==h||h.addEventListener("touchmove",g.moveHandler,m),null==h||h.addEventListener("touchend",g.upHandler,m)):(null==h||h.addEventListener("mousemove",f.moveHandler,m),null==h||h.addEventListener("mouseup",f.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let EW=null;function SW(e){return"touchstart"===e.type}const OW={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:QG("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=XG(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),ZG(t.options,"debugRows")),e.getVisibleCells=XG(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],ZG(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>XG(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),ZG(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function xW(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const DW={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:QG("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n=null!=(o=n)?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=a;return n}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},PW={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:QG("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>KG(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let r=KG(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,KG(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=KG(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=XG(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},ZG(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},MW={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:QG("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],a=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...a,e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,a,l;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=s&&s.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=s&&s.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=s&&s.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=s&&s.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(i=r.bottom)?void 0:i.length))},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=XG(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),ZG(e.options,"debugRows")),e.getBottomRows=XG(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),ZG(e.options,"debugRows")),e.getCenterRows=XG(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},ZG(e.options,"debugRows"))}},TW={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:QG("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{RW(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=XG(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?IW(e,n):{rows:[],flatRows:[],rowsById:{}},ZG(e.options,"debugTable")),e.getFilteredSelectedRowModel=XG(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?IW(e,n):{rows:[],flatRows:[],rowsById:{}},ZG(e.options,"debugTable")),e.getGroupedSelectedRowModel=XG(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?IW(e,n):{rows:[],flatRows:[],rowsById:{}},ZG(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var a;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const s={...i};return RW(s,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return FW(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===kW(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===kW(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},RW=(e,t,n,r,o)=>{var i;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=a.subRows)&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach(t=>RW(e,t.id,n,r,o))};function IW(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const a=FW(e,n);if(a&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function FW(e,t){var n;return null!=(n=t[e.id])&&n}function kW(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,i=!1;return e.subRows.forEach(e=>{if((!i||o)&&(e.getCanSelect()&&(FW(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=kW(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const LW=/([0-9]+)/gm;function BW(e,t){return e===t?0:e>t?1:-1}function NW(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function jW(e,t){const n=e.split(LW).filter(Boolean),r=t.split(LW).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),a=[o,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const UW={alphanumeric:(e,t,n)=>jW(NW(e.getValue(n)).toLowerCase(),NW(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>jW(NW(e.getValue(n)),NW(t.getValue(n))),text:(e,t,n)=>BW(NW(e.getValue(n)).toLowerCase(),NW(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>BW(NW(e.getValue(n)),NW(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>BW(e.getValue(n),t.getValue(n))},VW={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:QG("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return UW.datetime;if("string"==typeof n&&(r=!0,n.split(LW).length>1))return UW.alphanumeric}return r?UW.text:UW.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return qG(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:UW[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting(a=>{const s=null==a?void 0:a.find(t=>t.id===e.id),l=null==a?void 0:a.findIndex(t=>t.id===e.id);let c,u=[],d=i?n:"desc"===o;var p;return c=null!=a&&a.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===c&&(i||o||(c="remove")),"add"===c?(u=[...a,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):u="toggle"===c?a.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===c?a.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],u})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},HW=[tW,OW,wW,bW,oW,mW,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:QG("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>fW.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return qG(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:fW[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},VW,AW,DW,PW,MW,TW,CW];function GW(e){var t,n;const r=[...HW,...null!=(t=e._features)?t:[]];let o={_features:r};const i=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{});let a={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;a=null!=(t=null==e.getInitialState?void 0:e.getInitialState(a))?t:a});const s=[];let l=!1;const c={_features:r,options:{...i,...e},initialState:a,_queue:e=>{s.push(e),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=KG(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:XG(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},ZG(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:XG(()=>[o._getColumnDefs()],e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{const i=function(e,t,n,r){var o,i;const a={...e._getDefaultColumnDef(),...t},s=a.accessorKey;let l,c=null!=(o=null!=(i=a.id)?i:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?o:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[a.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:l,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:XG(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},ZG(e.options,"debugColumns")),getLeafColumns:XG(()=>[e._getOrderColumnsFn()],e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap(e=>e.getLeafColumns());return e(t)}return[u]},ZG(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),a=e;return i.columns=a.columns?t(a.columns,i,r+1):[],i})};return t(e)},ZG(e,"debugColumns")),getAllFlatColumns:XG(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),ZG(e,"debugColumns")),_getAllFlatColumnsById:XG(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),ZG(e,"debugColumns")),getAllLeafColumns:XG(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),ZG(e,"debugColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,c);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function WW(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?h.createElement(e,t):e:null;var n}const zW=e=>(0,p.jsx)("div",{style:e.style,children:(0,p.jsxs)("div",{className:"gv-loading",children:[(0,p.jsx)(Fo,{icon:"branding-gv2021",size:"60",active:!0}),(0,p.jsx)("div",{className:"gv-loading-text",children:e.text??"Loading..."})]})}),$W="qOR34",KW=({label:e,className:t,id:n,checked:r,disabled:o,inputRef:i,...a})=>(0,p.jsxs)("label",{htmlFor:n,className:Oo()("WCfUz",t,{[$W]:o}),children:[(0,p.jsx)(Fo,{color:r?"#438fdc":"#161e2a",icon:r?"checkbox-on":"checkbox-off",className:"tdpxu"}),(0,p.jsx)("input",{...a,checked:r,disabled:o,ref:i,id:n,type:"checkbox",className:"hFeUW",autoComplete:"off"}),e]}),QW=({debounced:e=!0,width:t,...n})=>{const[r,o]=(0,h.useState)(!1),[i,a]=(0,h.useState)(""),[s,l]=(0,h.useState)(n.value||0===n.value?n.value:""),[c,u]=(0,h.useState)(!1),d=(0,h.useRef)(n.value),f="number"==typeof n.min&&Number.isFinite(n.min)?n.min:void 0,g="number"==typeof n.max&&Number.isFinite(n.max)?n.max:void 0,m=e=>void 0!==g&&e>n.max?{boundedValue:n.max,clamped:!0,message:`Value would exceed the maximum of ${n.max}`}:void 0!==f&&e<n.min?{boundedValue:n.min,clamped:!0,message:`Value would be lower than the minimum of ${n.min}`}:{boundedValue:e,clamped:!1,message:""};(0,h.useEffect)(()=>{if(c)return;const e=n.value;if(null==e||""===e)return l(e??""),d.current=e??null,o(!1),void a("");const t="number"==typeof e?e:Number(e);if(Number.isNaN(t))return;const{boundedValue:r,clamped:i,message:s}=m(t);l(r),d.current=r,i?(o(!0),a(s)):(o(!1),a(""))},[n.value,n.min,n.max,c]);const v=t=>{d.current=t,u(!0),n.onUpdate&&n.onUpdate(t),n.onChange&&(e?y():n.onChange(t))},y=(0,Na.debounce)(()=>{n.onChange&&n.onChange(d.current),u(!1)},500),{style:A}=n,w=Oo()("gv-numericinput",`gv-numericinput-${A||"default"}`,{"gv-numericinput-warning":r},n.className,n.classNames),b=t?{width:t}:{};return(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"row",gap:"1%"},children:[(0,p.jsx)("input",{placeholder:n.placeholder,className:w,name:n.name,onChange:e=>{const t=e.target.value;if(""===t)return l(""),o(!1),a(""),void(n.nullable&&v(null));const r=parseFloat(t);if(Number.isNaN(r))return;const{boundedValue:i,clamped:s,message:c}=m(r);l(i),s?(o(!0),a(c)):(o(!1),a("")),d.current!==i&&v(i)},type:"number",onBlur:()=>{o(!1),a(""),n.onBlur?.(s)},value:s,ref:n.inputRef,min:n.min,max:n.max,step:n.step,id:n.id,tabIndex:n.tabIndex,onKeyUp:n.onKeyUp,disabled:n.disabled,title:r?i:"",autoComplete:"off",style:b}),n.unit&&(0,p.jsx)("span",{style:{display:"inline-block",alignSelf:"flex-end"},children:n.unit})]})},qW=(e,t,n,r)=>{const{row:o,getValue:i}=e,{tooltipValueGetter:a}=e.column.columnDef,s=r?r(n):i();return(0,p.jsxs)("div",{title:a?a(o):s,style:{paddingLeft:`${0!==t?0:o.depth}rem`,display:"flex",flexFlow:"row",maxWidth:"inherit",height:"100%"},children:[0===t&&(o.getCanExpand()?(0,p.jsx)("div",{onClick:e=>{e.stopPropagation(),o.getToggleExpandedHandler()()},style:{minWidth:"15px",cursor:"pointer"},children:(0,p.jsx)(Fo,{style:{bottom:"3px",position:"relative"},size:"10",icon:o.getIsExpanded()?"arrows-down":"arrows-right",className:"ag-menu-option-part ag-menu-option-popup-pointer"})}):(0,p.jsx)("div",{style:{minWidth:"15px"}})),(0,p.jsx)("div",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},children:s})]})},YW=(e,t,n,r,o)=>{const{row:i,getValue:a,column:s,setEditing:l,editingState:c,editMode:u,enterMovesDownAfterEdit:d,table:f}=e,g=s.columnDef,[m,v]=(0,h.useState)(!1),y=o?o(n):a(),A=i.getIsGrouped()&&i.getCanExpand(),w=(0,h.useRef)(),{editable:b,cellEditor:_,dataType:C}=g,[E,S]=(0,h.useState)(y),O=(0,h.useCallback)(e=>{null!=e&&c.columnId===s.id&&e.focus()},[c,s.id]),x=(0,h.useCallback)(e=>{switch(e){case"Enter":{const e={...c};w.current.focus(),w.current.blur(),d&&l({...e,rowIndex:e.rowIndex+1});break}case"Escape":l({rowIndex:void 0,columnId:void 0})}},[c,d,l]);(0,h.useEffect)(()=>{"fullRow"!==u&&c.rowIndex===i.index&&c.columnId===e.column.id&&w.current?.focus(),v("fullRow"===u&&c.rowIndex===i.index||"fullRow"!==u&&c.rowIndex===i.index&&c.columnId===e.column.id)},[c,u,i.index,e.column.id]);let D=(0,p.jsx)(pL,{onKeyUp:e=>x(e.key),inputRef:e=>{w.current=e,O(e)},value:E,onChange:S,className:"gv-table-input",style:"default",onBlur:()=>{f.options.meta?.updateData(i.index,s.id,E)}});switch(C){case"boolean":D=(0,p.jsx)("div",{ref:w,style:{width:"50%",height:"100%"},children:(0,p.jsx)(KW,{label:"",style:{width:"50%",height:"100%",background:"red"},onKeyUp:e=>x(e.key),checked:E,onChange:e=>{S(e.target.checked),f.options.meta?.updateData(i.index,s.id,e.target.checked)},className:"gv-table-input"})});break;case"number":D=(0,p.jsx)(QW,{onKeyUp:e=>x(e.key),inputRef:e=>{w.current=e,O(e)},value:E,onChange:S,className:"gv-table-input",style:"default",onBlur:()=>{f.options.meta?.updateData(i.index,s.id,E)}});break;case"other":_&&(D=_(e,t,n,o))}return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{style:{maxWidth:"inherit",height:"100%",display:b&&!A&&m?"block":"none"},children:_?_(e,t,n,o):D}),(0,p.jsx)("div",{style:{maxWidth:"inherit",height:"100%",display:b&&!A&&m?"none":"block"},onClick:()=>{!m&&!i.getCanExpand()&&g.singleClickEdit&&g.editable&&l({rowIndex:i.index,columnId:s.id}),m||g.singleClickEdit||l({rowIndex:void 0,columnId:void 0}),m&&i.index===c.rowIndex&&l({rowIndex:i.index,columnId:s.id})},onDoubleClick:()=>{m||i.getCanExpand()||g.singleClickEdit||!g.editable||l({rowIndex:i.index,columnId:s.id}),!m&&g.singleClickEdit&&l({rowIndex:void 0,columnId:void 0})},children:r?r(e,t,n,o):qW(e,t,n,o)})]})},XW={contains:"Contains",doesnotcontain:"Does not contain",eq:"Equals",ne:"Not equal",startswith:"Starts with",endswith:"Ends with"},ZW={option:"contains",value:""},JW=e=>{try{return JSON.parse(e)}catch(e){return{0:ZW,1:ZW,operand:null}}},ez=(e,t,n)=>{const r=e?.toString().toLowerCase(),o=n.toLowerCase();switch(t){case"eq":return r===o;case"ne":return r!==o;case"contains":return r.includes(o);case"doesnotcontain":return!r.includes(o);case"startswith":return r.startsWith(o);case"endswith":return r.endsWith(o);default:return!0}},tz=(e,t,n)=>{let r=n?n(e.original,t):e.original[t]?.toString();return e.subRows.forEach(e=>{null!=e.original[t]&&(r+=e.original[t].toString(),e.subRows.length>0&&(r+=tz(e,t)))}),r??""},nz=(e,t,n,r)=>{const o=r?r(e,t.id):e[t.id].toString(),i=ez(o,n[0].option,n[0].value);if(null==n.operand||null==n[1]||null==n[1].value||""===n[1].value)return i;const a=ez(o,n[1].option,n[1].value);return"and"===n.operand?i&&a:i||a},rz=(e,t)=>e*t.clientWidth/100,oz=(e,t,n)=>{const r=e.current?.getBoundingClientRect();let o=+n.left-r.width;return o>t&&(o-=o-t),o<0&&(o=0),{top:+n.top,left:o}},iz=(e,t,n,r,o)=>{const i=e.current?.getBoundingClientRect();if(t){const e=t?.current?.getBoundingClientRect(),a=n-10,s=r-15,l=e.x+e.width+i.width,c=e.y+e.height,u=Math.abs(c-s);if(c>s&&l>a)return{top:e.top-u-e.height,left:e.left-i.width};if(c>s)return{top:e.top-u-e.height,left:+o.left};if(l>a)return{top:e.top,left:e.left-i.width}}let a=+o.left,s=+o.top;const l=a+i.width,c=s+i.height;return l>n&&(a=n-i.width),c>r&&(s=r-i.height),{top:s,left:a}},az=e=>null==e||""===e,sz=(e,t)=>{if(null==e&&null==t)return!0;if(null==e&&null!=t)return!1;if(null!=e&&null==t)return!1;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>e[n]===t[n])},lz=(e,t)=>e.length===t.length&&e.every((e,n)=>sz(e,t[n])),cz=e=>{const t=[],n=e.length;if(1===n)return e;for(let r=n-1;r>=0;r--)t.push(e[r]);return t},uz=(e,t,n)=>n.indexOf(e)===t,dz=(e,t)=>0===e.length?e:e.map(e=>t.reduce((t,n)=>(t[n]=e[n],t),{})),pz=(e,t,n)=>e[n]<t[n]?-1:e[n]>t[n]?1:0,hz=(e,t,n,r=null)=>{const o=new Map;for(const t of e){const e=t[n];let r=o.get(e);r||(r=[],o.set(e,r)),r.push(t)}const i=e=>(o.get(e)??[]).map(e=>({...e,subRows:i(e[t])}));return i(r)},fz=(e,t,n,r,o)=>{if(0===e.length||t.some(e=>null!=e?.accessorFn))return{trimmedData:e,data:e};const i=[...t.map(e=>e.accessorKey),n,r,o?"id":null].filter(e=>!az(e));return{trimmedData:dz(e,i),data:e}},gz=(e,t,n,r)=>{let o=n.current,i=r.current;if(e.length>0)for(const n of e){const e=t.getColumn(n.id),r=e.columnDef,a=r.filterValueGetter??r?.valueGetter??((e,t)=>e[t]);if("string"==typeof n.value){const e=JW(n.value);o=o.filter(t=>nz(t,n,e,a)),i=i.filter(t=>nz(t,n,e,a))}else Array.isArray(n.value)&&(o=o.filter(t=>!n.value.includes(a(t,e.id))))}return{rowDataIntermediate:o,textFilteredDataIntermediate:i}},mz=(e,t,n,r)=>{if(e.length>0)for(const o of e){const e=(t??n?.columnDefs).find(e=>e.id===o.id),i=e?.comparator??pz;r=r.sort((e,t)=>i(e,t,o.id)),o.desc&&(r=cz(r))}return r},vz=e=>2===e.button||2===e.buttons,yz=e=>{const{item:t,tableRef:n,onClick:r}=e,[o,i]=(0,h.useState)(!1),[a,s]=(0,h.useState)(!1),l=(0,h.useRef)(null);if("separator"===t)return(0,p.jsx)("div",{className:"ag-menu-separator"});const{name:c,icon:u,shortcut:d,action:f,subMenu:g}=t,m=o?"ag-menu-option-active":"",v="string"==typeof u?(0,p.jsx)(Fo,{icon:u}):u,y=()=>{i(!o)},A=()=>{s(!a)};return(0,p.jsxs)("div",{ref:l,style:{overflow:"hidden",display:"flex",gap:"10px",flexFlow:"row",flexGrow:"1"},className:`ag-menu-option ${m}`,onMouseEnter:y,onMouseLeave:y,onClick:()=>{a||(f&&f(),r&&r())},children:[v&&(0,p.jsx)("span",{className:"ag-menu-option-part ag-menu-option-icon",children:v}),c&&(0,p.jsx)("span",{style:{marginRight:"10px"},className:"ag-menu-option-part ag-menu-option-text",children:c}),d&&(0,p.jsx)("span",{className:"ag-menu-option-part ag-menu-option-shortcut",children:d}),g&&(0,p.jsx)(Fo,{style:{position:"absolute",right:"0"},size:"10",icon:"arrows-right",className:"ag-menu-option-part ag-menu-option-popup-pointer"}),g&&l.current&&(0,Ls.createPortal)((0,p.jsx)("div",{onMouseEnter:A,onMouseLeave:A,className:"ag-theme-grassvalley",children:(0,p.jsx)(Az,{tableRef:n,style:{position:"absolute",...(()=>{const e=l.current?.getBoundingClientRect();return{top:e.top,left:e.right}})()},visible:o,contextMenuItems:g,onClick:r,parentMenuRef:l})}),document.body)]})},Az=e=>{const{style:t,visible:n,contextMenuItems:r,tableRef:o,onClick:i,parentMenuRef:a}=e,s=(0,h.useRef)(null),[l,c]=(0,h.useState)(null),{width:u,height:d}=A();return(0,h.useEffect)(()=>{s.current&&null==l&&c(iz(s,a,u,d,t))}),null!=n&&!n||!r.length?null:(0,p.jsx)("div",{ref:s,style:{position:"absolute",...t,...l??{top:0,left:0},overflow:"hidden",opacity:l?1:0},className:"ag-menu ag-ltr ag-popup-child ag-keyboard-focus",children:r.map((e,t)=>{if((0,h.isValidElement)(e))return e;const n=e;return"separator"!==n&&null==n.icon&&(n.icon=(0,p.jsx)(Fo,{icon:"player-create-snapshot",className:"gv-icon",style:{opacity:0}})),(0,p.jsx)("div",{style:{display:"flex"},children:(0,p.jsx)(yz,{item:n,tableRef:o,onClick:i})},t)})})},wz=e=>{const{tableRef:t,resetColumns:n,expandAll:r,collapseAll:o,header:i}=e,a=i.column.getIsPinned(),s=[{icon:"misc-pin",name:"Pin Column",subMenu:[{name:"No pin",action:()=>i.column.pin(!1),icon:(0,p.jsx)(Fo,{icon:"interface-tick",className:"gv-icon",style:{opacity:a?0:1}})},{name:"Pin left",action:()=>i.column.pin("left"),icon:(0,p.jsx)(Fo,{icon:"interface-tick",className:"gv-icon",style:{opacity:"left"===a?1:0}})},{name:"Pin right",action:()=>i.column.pin("right"),icon:(0,p.jsx)(Fo,{icon:"interface-tick",className:"gv-icon",style:{opacity:"right"===a?1:0}})}]},"separator",{name:"Reset Columns",action:n},{name:"Expand All",action:r},{name:"Collapse All",action:o}];return s.forEach(e=>{"separator"!==e&&null==e.icon&&(e.icon=(0,p.jsx)(Fo,{icon:"player-create-snapshot",className:"gv-icon",style:{opacity:0}}))}),(0,p.jsx)("div",{style:{marginTop:"4px",marginBottom:"4px"},children:s.map((e,n)=>(0,p.jsx)(yz,{tableRef:t,item:e},n))})},bz=e=>{const{tableApi:t}=e,[n,r]=(0,h.useState)(""),[o,i]=(0,h.useState)([]);return(0,h.useEffect)(()=>{const e=t.getAllColumns().slice(1);if(""===n)return void i(e);const r=e.filter(e=>e.id.toLowerCase().includes(n.toLowerCase()));i(r)},[n,t]),(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column",gap:"10px"},onClick:e=>e.stopPropagation(),children:[(0,p.jsxs)("div",{style:{margin:"4px",marginLeft:"8px",display:"flex",flexFlow:"row",gap:"10px"},children:[(0,p.jsx)("input",{type:"checkbox",checked:o.map(e=>e.getIsVisible()).every(Boolean),onChange:e=>o.forEach(t=>t.getToggleVisibilityHandler()(e)),autoComplete:"off"})," ",(0,p.jsx)(pL,{style:"default",type:"text",value:n,onChange:e=>r(e),placeholder:"Search...",className:"gv-table-header-text-input"})]}),(0,p.jsx)("div",{children:o.map(e=>{return(0,p.jsxs)("div",{style:{margin:"4px",marginLeft:"8px",display:"flex",gap:"10px"},children:[(0,p.jsx)("input",{type:"checkbox",checked:e.getIsVisible(),onChange:e.getToggleVisibilityHandler(),autoComplete:"off"})," ",(t=e.id,t.charAt(0).toUpperCase()+t.slice(1))]},e.id);var t})})]})},_z=e=>{const{header:t,handleHeaderClick:n,setHeaderRef:r,headerIndex:o,headerGroup:i,suppressMenu:a}=e,{attributes:s,isDragging:l,listeners:c,setNodeRef:u,transform:d}=HG({id:t.column.id}),{onMouseDown:f}=c,g=(0,h.useRef)(!1),m=(0,h.useRef)(!1),v={opacity:l?.8:1,position:"relative",cursor:l?"grabbing":"pointer",transform:jV.Translate.toString(d),transition:"width transform 0.2s ease-in-out",whiteSpace:"nowrap",zIndex:l?1:0};return(0,p.jsxs)("th",{ref:e=>{r(e),u(e)},colSpan:t.colSpan,id:t.column.id,style:{...v,display:"flex",width:t.getSize(),...o===i.headers.length-1&&{flex:1}},children:[(0,p.jsx)("div",{onMouseDown:e=>{vz(e)||(g.current=!1,m.current=!0)},onMouseUp:e=>{vz(e)||(m.current=!1,g.current||t.column.getToggleSortingHandler()(e))},onMouseMove:e=>{vz(e)||(g.current=!0,m.current&&f(e))},...s,style:{width:"100%"},children:t.isPlaceholder?null:(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"row",justifyContent:"center"},children:[t.column.getIsSorted()&&(0,p.jsx)("span",{className:`ag-icon ag-sort-icon ${{asc:"ag-icon-asc",desc:"ag-icon-desc"}[t.column.getIsSorted()]??null}`}),t.column.getIsFiltered()&&(0,p.jsx)("span",{className:"ag-icon "+(t.column.getIsFiltered()?"ag-icon-filter":"")}),(0,p.jsx)("div",{style:{maxWidth:"calc(85%)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:"string"==typeof t.column.columnDef.header?t.column.columnDef.header:"",children:WW(t.column.columnDef.header,t.getContext())})]})}),!l&&!a&&(0,p.jsx)("span",{className:"ag-icon ag-icon-menu gv-table-header-menu-icon",style:{position:"absolute",right:"20px",top:"5px"},onClick:e=>n(e,o,t)}),!l&&t.column.getCanResize()&&(0,p.jsx)("div",{onDoubleClick:()=>t.column.resetSize(),onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:"resizer "+(t.column.getIsResizing()?"isResizing":"")})]},t.column.id)},Cz=e=>{const{column:t,textFilteredValues:n}=e,[r,o]=(0,h.useState)(""),i=(0,h.useRef)(null),a=t.getFilterValue(),s=(0,h.useMemo)(()=>{const e=n.map(e=>((e,t)=>{const n=e.columnDef,r=n.filterValueGetter??n.valueGetter??null;return r?r(t,e.id):t[e.id]})(t,e)).filter(e=>e.toString().includes(r)).slice(0,5e3).filter(uz).sort().map(e=>e.toString());return e},[t,n,r]),l=t.getFilterValue();return(0,h.useEffect)(()=>{const e=t.getFilterValue(),n=s,o=n.filter(e=>e.includes(r)).filter(uz).sort().slice(0,5e3),a=o.every(t=>!e?.includes(t)),l=o.some(t=>!e?.includes(t));if(a)i.current.checked=!0;else{if(l)return void(i.current.indeterminate=!0);null==e?i.current.checked=!0:!e||lz(n,e)?i.current.checked=!1:null!=e&&0===e.length&&(i.current.checked=!0)}i.current.indeterminate=!1},[l,r,s,t]),(0,p.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{margin:"4px",display:"flex",flexFlow:"column",gap:"5px"},children:[(0,p.jsx)(pL,{style:"default",value:r,onChange:o,onKeyUp:e=>{"Enter"===e.key&&t.setFilterValue(s.filter(e=>!e.includes(r)))}}),(0,p.jsxs)("div",{style:{margin:"8px",display:"flex",flexFlow:"column",gap:"10px"},children:[(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"row",gap:"10px"},children:[(0,p.jsx)("input",{ref:i,type:"checkbox",onChange:()=>{i.current.checked?t.setFilterValue(void 0):t.setFilterValue(s)}}),"(Select All)"]}),(0,p.jsx)("div",{style:{maxHeight:"200px",display:"flex",flexFlow:"column",gap:"5px",overflow:"auto"},children:s.filter(e=>e.includes(r)).map((e,n)=>(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"row",gap:"10px"},children:[(0,p.jsx)("input",{type:"checkbox",checked:!a||!a?.includes(e),onChange:()=>(e=>{const n=a?.includes(e)?a.filter(t=>t!==e):[...a??[],e];t.setFilterValue(n)})(e),autoComplete:"off"}),e]},n))})]})]})},Ez=(e,t)=>e.flatMap(e=>e.options?Ez(e.options,e):[{...e,parentLabel:t?.label}]),Sz=(e,t)=>e.map(e=>e.options?{...e,options:Sz(e.options,e)}:{...e,parentLabel:t?.label}),Oz=(e,t,n="any")=>{if(!t)return e;const r=t.toLowerCase(),o=e=>"start"===n?e.toLowerCase().startsWith(r):e.toLowerCase().includes(r);return e.reduce((e,t)=>{const n=o(t.label);if(t.options){const r=t.options.filter(e=>o(e.label));n?e.push(t):r.length>0&&e.push({...t,options:r})}else n&&e.push(t);return e},[])},xz=(e,t=[],n=!1,r=[])=>{let o=null;const i=Ez(t).concat(r);if(null==e)return null;if(Array.isArray(e)){const t=i.filter(t=>e.includes(t.value));o=t.length?t:null}else"string"!=typeof e&&"number"!=typeof e||(o=i.find(t=>t.value===e)||null);return null===o&&n&&e&&(o={value:Array.isArray(e)?e[0]:e,label:String(Array.isArray(e)?e[0]:e)}),o},Dz=(e,t,n)=>(0,p.jsxs)("div",{className:Oo()(`${t}`,{[`${t}-with-status`]:e.statusIndicator&&e.statusIndicator.length>0},{"gv-select-overflow-label":n}),style:{display:"flex",alignItems:"center",minWidth:0},children:[(0,p.jsx)("span",{className:Oo()(`${t}-label`),style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1},title:e.label,children:e.label}),(0,p.jsx)("span",{className:Oo()(`${t}-status`,""===e.statusIndicator?"gv-select-overflow-no-label":"gv-select-overflow-with-label"),style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flexShrink:0},title:e.statusIndicator||void 0,children:e.statusIndicator||""})]}),Pz=({option:e,onRemove:t,showStatusIndicator:n,useFullWidthLabel:r,panel:o,actionIcon:i="interface-close",actionIconSize:a="10px"})=>(0,p.jsxs)("span",{className:"gv-select-multivalue",style:{background:"linear-gradient(180deg, #7C5FA8 0%, #7655A4 100%)",border:"1px solid #1E2631",borderRadius:4,color:"rgba(255,255,255,0.8)",padding:"2px 6px",fontSize:o?12:13,display:"flex",alignItems:"center",maxWidth:r?void 0:"150px",flexShrink:0,minWidth:0},title:e.label,children:[n?Dz({...e,value:String(e.value??"")},"gv-select-selected",r):(0,p.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1,display:"block"},title:e.label,children:e.label}),(0,p.jsx)("span",{className:"gv-select-multivalue-remove-btn",onClick:n=>{n.stopPropagation(),t(e)},title:"Remove",children:(0,p.jsx)(Fo,{icon:i,width:a,height:a})})]}),Mz=({option:e,showStatusIndicator:t,useFullWidthLabel:n})=>t?Dz({...e,value:String(e.value??"")},"gv-select-selected",n):n?(0,p.jsx)("span",{className:"gv-select-overflow-label",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,display:"inline-block",maxWidth:"100%"},title:e.label,children:e.label}):(0,p.jsx)("span",{style:{overflow:n?void 0:"hidden",textOverflow:n?void 0:"ellipsis",whiteSpace:n?void 0:"nowrap",maxWidth:n?void 0:"100%",display:"block"},title:e.label,children:e.label}),Tz=({onClear:e,actionIcon:t="interface-close",actionIconSize:n="10px"})=>(0,p.jsx)("span",{className:"gv-select-clear gv-select-clear-btn",onClick:e,title:"Clear",children:(0,p.jsx)(Fo,{icon:t,width:n,height:n})}),Rz=({option:e,selected:t,isMulti:n,onSelect:r,showStatusIndicator:o,useFullWidthLabel:i,panel:a,className:s=""})=>{const l=r=>n?Array.isArray(t)&&t.some(t=>t.value===r.value&&t.parentLabel===e.label):!Array.isArray(t)&&t&&t.value===r.value&&t.parentLabel===e.label;return(0,p.jsxs)("div",{className:"gv-select-option-group",children:[(0,p.jsx)("div",{className:"gv-select-option-group-label",style:{padding:"6px 12px",color:"rgba(255,255,255,0.8)",fontSize:"x-small",opacity:.6,textTransform:"uppercase"},children:e.label}),e.options?.map((t,n)=>(0,p.jsx)(Iz,{option:t,className:`${s} gv-select-suboption`,isSelected:l(t),onClick:e=>r(t,e),showStatusIndicator:o,useFullWidthLabel:i,panel:a},`${e.label}-${String(t.value)}-${n}-${t.parentLabel}`))]})},Iz=({option:e,isSelected:t,onClick:n,showStatusIndicator:r,useFullWidthLabel:o,panel:i,className:a="",onRemove:s,actionIcon:l="interface-close",actionIconSize:c="10px"})=>{const u=(0,h.useRef)();return(0,h.useEffect)(()=>{t&&u.current.scrollIntoView()},[t]),(0,p.jsxs)("div",{className:`gv-select-option${e.disabled?" disabled":""} ${a}`,ref:u,style:{padding:"6px 12px",cursor:e.disabled?"not-allowed":"pointer",color:e.disabled?"rgba(255,255,255,0.2)":t?"rgba(255,255,255,0.9)":"rgba(255,255,255,0.6)",background:t?"#408fe0":"transparent",borderRadius:2,fontSize:i?12:13,display:"flex",alignItems:"center",minWidth:0,width:"auto",whiteSpace:"nowrap"},title:e.label,onClick:t=>{e.disabled||n(t)},children:[r?Dz({...e,value:String(e.value??"")},"gv-select-option",o):(0,p.jsx)("span",{style:{minWidth:0,display:"block",flex:1,whiteSpace:"nowrap",overflow:o?"visible":"hidden",textOverflow:o?"clip":"ellipsis",maxWidth:o?"none":"100%"},children:e.label}),e.removable&&s&&!e.disabled&&(0,p.jsx)("span",{className:"gv-select-remove-btn",title:"Remove",onClick:e=>{e.stopPropagation(),s(e)},children:(0,p.jsx)(Fo,{icon:l,width:c,height:c})})]})},Fz=({search:e,onCreate:t})=>(0,p.jsx)("div",{className:"gv-select-option",style:{padding:"6px 12px",cursor:"pointer",color:"#408fe0"},onClick:n=>t(e,n),children:`Create "${e}"`}),kz=({isAllSelected:e,onSelectAll:t,panel:n})=>(0,p.jsx)("div",{className:"gv-select-option gv-select-all-option",style:{padding:"6px 12px",cursor:"pointer",color:e?"rgba(255,255,255,0.9)":"rgba(255,255,255,0.6)",background:e?"#408fe0":"transparent",borderRadius:2,fontSize:n?12:13,display:"flex",alignItems:"center",minWidth:0,width:"auto",whiteSpace:"nowrap",borderBottom:"1px solid #414854",marginBottom:2},onClick:e=>t(e),children:(0,p.jsx)("span",{children:"Select All"})}),Lz=e=>{const{className:t,style:n,options:r=[],value:o,onChange:i,isMulti:a,disabled:s,placeholder:l,id:c,tabIndex:u,isClearable:d,isSearchable:f=!0,showStatusIndicator:g,useFullWidthLabel:m=!0,showSelectAllButton:v=!1,maxWidth:y="600px",width:A,panel:w,addMissing:b,optionsLength:_,onMenuOpen:C,onMenuClose:E,onKeyDown:S,onOptionCreate:O,searchMatchFrom:x="any",alwaysShowCreateOption:D=!1,showCaretWhenEmpty:P=!1,onOptionRemove:M,actionIcon:T="interface-close",actionIconSize:R}=e,[I,F]=(0,h.useState)(!1),[k,L]=(0,h.useState)(""),[B,N]=(0,h.useState)([]),[j,U]=(0,h.useState)(xz(o,r,b,B)),[V,H]=(0,h.useState)(!1),[G,W]=(0,h.useState)(null),z=(0,h.useRef)(null),$=(0,h.useRef)(null),K=(0,h.useRef)(null),[Q,q]=(0,h.useState)(void 0),[Y,X]=(0,h.useState)(null);(0,h.useEffect)(()=>{if(z.current){const e=()=>{z.current&&q(z.current.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}return()=>{}},[y,j]),(0,h.useEffect)(()=>{U(xz(o,r,b,B))},[o,r,b,B]),(0,h.useEffect)(()=>{if(Array.isArray(j)&&j.every(e=>null!=e?.parentLabel)||null!=j?.parentLabel)return;const e=B.filter(e=>!r.some(t=>t.value===e.value)).map(e=>({...e,__isNew__:!0})),t=Array.isArray(j)?j.filter(t=>!r.some(e=>e.value===t.value)&&!e.some(e=>e.value===t.value)).map(e=>({...e,__isNew__:!0})):[],n=Array.isArray(o)?o.filter(n=>!e.some(e=>e.value===n)&&!t.some(e=>e.value===n)&&!r.some(e=>e.value===n)).map(e=>({label:String(e),value:e,__isNew__:!0})):[],i=[...e,...t,...n];ja().isEqual(ja().sortBy(i),ja().sortBy(B))||N(i)},[r,B,j,o]);const Z=(0,h.useCallback)(e=>{if(!z.current)return null;const t=z.current.getBoundingClientRect(),n=window.innerHeight,r=window.innerWidth,o=Math.min(220,28*e),i=n-t.bottom-10,a=t.top-10,s=i<o&&a>i,l=s?t.top-Math.min(o,a)-2:t.bottom+2,c=t.width,u=m?"none":y?"number"==typeof y?`${y}px`:y:`${c}px`,d=r-t.left-20;let p=t.left,h=c;if(m){const e=parseInt(u,10),n=Number.isNaN(e)?c:e,o=Math.min(n,d);t.left+o>r-20?(p=Math.max(20,r-o-20),h=o):h=o}return{top:l,left:p,width:h,maxWidth:u,openUpward:s}},[y,m]);function J(t,n){if(n&&(n.preventDefault(),n.stopPropagation()),a){const e=Array.isArray(j)?[...j]:[];if(V&&G){const n=r.findIndex(e=>G.value===e.value&&G.parentLabel===e.parentLabel),o=r.findIndex(e=>t.value===e.value&&t.parentLabel===e.parentLabel);-1!==n&&-1!==o&&r.slice(Math.min(n,o),Math.max(o+1,n+1)).forEach(t=>{e.find(e=>e.value===t.value&&e.parentLabel===t.parentLabel)||e.push(t)})}else{const n=e.findIndex(e=>e.value===t.value&&e.parentLabel===t.parentLabel);n>-1?e.splice(n,1):e.push(t)}U(e),W(t),"function"==typeof i&&i(e.map(e=>e.value))}else U(t),"function"==typeof i&&i(t.value),e.keepOpen||(F(!1),L(""))}function ee(){s||F(e=>!e)}(0,h.useEffect)(()=>{if(I){const e=Z(Oz(Sz(r).concat(B),k,x).length);X(e),C&&C()}else X(null),L(""),E&&E()},[I,C,E,m,y,r,B,k,x,Z]),(0,h.useEffect)(()=>{if(!I)return;const e=()=>{const e=Z(Oz(Sz(r).concat(B),k,x).length);X(e)},t=()=>e(),n=()=>e();return window.addEventListener("scroll",t,!0),window.addEventListener("resize",n),()=>{window.removeEventListener("scroll",t,!0),window.removeEventListener("resize",n)}},[I,m,y,r,B,k,x,Z]),(0,h.useEffect)(()=>{function e(e){z.current&&z.current.contains(e.target)||$.current&&$.current.contains(e.target)||(F(!1),L(""))}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,h.useEffect)(()=>{function e(e){H(e.shiftKey),!I||!f||k||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey||(e.preventDefault(),L(e.key),setTimeout(()=>{K.current?.focus()},0))}function t(e){H(e.shiftKey)}return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[I,f,k]);const te=Oo()("gv-select",`gv-select${n||"default"}`,t),ne=Oz(Sz(r).concat(B),k,x),re=ne.filter(e=>!e.disabled),oe=Array.isArray(j)?j:[],ie=a&&re.length>0&&re.every(e=>oe.some(t=>t.value===e.value)),ae=_&&a&&Array.isArray(j)&&j.length>0?`${j.length} selected`:null,se=A?{maxWidth:A,width:A}:w?{maxWidth:y,width:"90%"}:{maxWidth:y,width:"auto"};return(0,p.jsxs)("div",{className:te,style:{...se,minWidth:w?"unset":"152px",position:"relative"},ref:z,tabIndex:u?Number(u):void 0,id:c,onKeyDown:S,children:[(0,p.jsxs)("div",{className:Oo()("gv-select-control",{disabled:s}),onClick:ee,style:{background:"linear-gradient(180deg, #333B46 0%, #2E3641 100%)",border:"1px #1E2631 solid",borderRadius:4,minHeight:w?20:28,fontSize:w?12:14,color:"rgba(255,255,255,0.9)",opacity:s?.2:1,display:"flex",alignItems:"center",cursor:s?"not-allowed":"pointer",padding:"0 8px 0 8px",position:"relative",paddingRight:32+(d&&(a&&Array.isArray(j)&&j.length>0||!a&&j)?24:0)+8},children:[f&&I&&(k||P)?(0,p.jsx)("input",{ref:K,type:"text",value:k,onChange:function(e){L(e.target.value)},onClickCapture:ee,onKeyDown:function(e){"Escape"===e.key?(F(!1),L("")):"ArrowDown"===e.key&&e.preventDefault(),S&&S(e)},placeholder:l||"Search options...",style:{background:"transparent",border:"none",outline:"none",color:"rgba(255,255,255,0.9)",fontSize:w?12:14,flex:1,minWidth:0,fontStyle:"normal",fontFamily:"inherit"},onClick:e=>e.stopPropagation(),autoFocus:!0}):ae?(0,p.jsx)("span",{style:{color:"rgba(255,255,255,0.9)"},children:ae}):a&&Array.isArray(j)&&j.length>0?(0,p.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:4,flex:1,alignItems:"center"},children:j.map(e=>(0,p.jsx)(Pz,{option:e,onRemove:J,showStatusIndicator:g,useFullWidthLabel:m,panel:w,actionIcon:T,actionIconSize:R},String(e.value)))}):!a&&j?(0,p.jsx)(Mz,{option:j,showStatusIndicator:g,useFullWidthLabel:m}):(0,p.jsx)("span",{style:{color:"rgba(255,255,255,0.2)",fontStyle:"italic"},children:l||"Select a value..."}),d&&(a&&Array.isArray(j)&&j.length>0||!a&&j)&&(0,p.jsx)(Tz,{onClear:function(e){e.stopPropagation(),U(a?[]:null),W(null),"function"==typeof i&&i(a?[]:void 0)},actionIcon:T,actionIconSize:R}),(0,p.jsx)("span",{style:{position:"absolute",right:8,top:"50%",transform:"translateY(-50%)",pointerEvents:"none"},children:(0,p.jsx)(Fo,{icon:"arrows-down"})})]}),I&&Y&&(0,Ls.createPortal)((0,p.jsxs)("div",{className:"gv-select-menu",ref:$,style:{position:"fixed",top:Y.top,left:Y.left,width:m?"max-content":`${Y.width}px`,minWidth:`${Math.max(Y.width,Q||0)}px`,maxWidth:Y.maxWidth,zIndex:9999,background:"linear-gradient(180deg, #333B46 0%, #2E3641 100%)",border:"1px solid #414854",borderRadius:5,fontSize:13,maxHeight:220,overflowY:"auto",whiteSpace:"nowrap",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.3)"},children:[v&&a&&ne.length>0&&(0,p.jsx)(kz,{isAllSelected:ie,onSelectAll:function(e){if(e&&(e.preventDefault(),e.stopPropagation()),!a)return;let t=ne.filter(e=>!e.disabled);const n=Array.isArray(j)?j:[];t.some(e=>null!=e.options)&&(t=Ez(t));let r=[];t.every(e=>n.some(t=>t.value===e.value))||(r=[...t]),U(r),W(null),"function"==typeof i&&i(r.map(e=>e.value))},panel:w}),e.createable&&I&&f&&k.trim().length>0&&(D||0===ne.length&&k.trim().length>0)&&(0,p.jsx)(Fz,{search:k.trim(),onCreate:function(e,t){if(!e||!e.trim())return;t&&t.stopPropagation();const n={label:e,value:e,__isNew__:!0};N([...B,n]),J(n,t),L(""),O?.(n)}}),0===ne.length&&!e.createable&&(0,p.jsx)("div",{style:{padding:"6px 12px",color:"rgba(255,255,255,0.4)"},children:"No options"}),ne.map(e=>null!=e.options?(0,p.jsx)(Rz,{option:e,selected:j,isMulti:a,onSelect:J,showStatusIndicator:g,useFullWidthLabel:m,panel:w,className:t},`group-${e.label}`):(0,p.jsx)(Iz,{option:e,className:t,isSelected:a?Array.isArray(j)&&j.some(t=>t.value===e.value):j&&j.value===e.value,onClick:t=>J(e,t),showStatusIndicator:g,useFullWidthLabel:m,panel:w,isMulti:a,onRemove:e.removable&&M?t=>function(e,t){if(M){if(t&&(t.stopPropagation(),t.preventDefault()),a){if(Array.isArray(j)){const t=j.filter(t=>t.value!==e.value);U(t),"function"==typeof i&&i(t.map(e=>e.value))}}else!a&&j&&j.value===e.value&&(U(null),"function"==typeof i&&i(void 0));M(e.value)}}(e,t):void 0,actionIcon:T,actionIconSize:R},String(e.value)))]}),document.body)]})},Bz=e=>{const{column:t}=e,[n,r]=(0,h.useState)(JW(t.getFilterValue()?.toString()??"")),o=e=>{null!=e[0].value&&""!==e[0].value?t.setFilterValue(JSON.stringify(e)):t.setFilterValue(void 0)},i=(e,t,n)=>{r(r=>{const i={...r};return i[e]={...t,option:n},o(i),i})},a=(e,t,i)=>{JSON.stringify(n[e])!==JSON.stringify({...t,value:i})&&r(n=>{const r={...n};return r[e]={...t,value:i},o(r),r})},s=null!=n[0].value&&""!==n[0].value||(null==n[0].value||""===n[0].value)&&null!=n.operand;return(0,p.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{margin:"4px",display:"flex",flexFlow:"column",gap:"5px"},children:[(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column",gap:"5px"},children:[(0,p.jsx)(Lz,{options:Object.entries(XW).map(e=>({value:e[0],label:e[1]})),value:n[0].option,onChange:e=>i(0,n[0],e)}),(0,p.jsx)(pL,{style:"default",value:n[0].value,onChange:e=>a(0,n[0],e)}),s&&(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"row",flex:1},children:[(0,p.jsx)(ko,{style:"secondary",onClick:()=>r({...n,operand:"and"}),text:!0,className:"gv-table-filter-operator-button "+("and"===n.operand?"gv-table-filter-operator-button-active":""),children:"And"}),(0,p.jsx)(ko,{style:"secondary",onClick:()=>r({...n,operand:"or"}),text:!0,className:"gv-table-filter-operator-button "+("or"===n.operand?"gv-table-filter-operator-button-active":""),children:"Or"})]}),null!=n.operand&&(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column",gap:"5px"},children:[(0,p.jsx)(Lz,{options:Object.entries(XW).map(e=>({value:e[0],label:e[1]})),value:n[1].option,onChange:e=>i(1,n[1],e)}),(0,p.jsx)(pL,{style:"default",value:n[1].value,onChange:e=>a(1,n[1],e)})]})]}),(0,p.jsx)("div",{style:{display:"flex"},children:(0,p.jsx)(ko,{style:"secondary",onClick:()=>{JSON.stringify(n[1])!==JSON.stringify(ZW)?r(()=>{const e={...n,1:ZW,operand:null};return o(e),e}):r(()=>{const e={0:ZW,1:ZW,operand:null};return o(e),e})},text:!0,className:"gv-table-filter-operator-button",children:"Clear"})})]})},Nz=e=>{const{filterComponent:t}=e.column.columnDef.meta??{};return"text"===t?(0,p.jsx)(Bz,{...e}):(0,p.jsx)(Cz,{...e})},jz=e=>{const{selectedTab:t,setSelectedTab:n,menuTabs:r}=e;return(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"row"},children:[r.includes("filterTab")&&(0,p.jsx)("div",{className:"ag-tab gv-table-header-menu-tab "+(0===t?"gv-table-header-menu-tab-selected":""),onClick:e=>{e.stopPropagation(),n(0)},children:(0,p.jsx)(Fo,{icon:"interface-filter"})},"tab-0"),r.includes("columnsTab")&&(0,p.jsx)("div",{className:"ag-tab gv-table-header-menu-tab "+(1===t?"gv-table-header-menu-tab-selected":""),onClick:e=>{e.stopPropagation(),n(1)},children:(0,p.jsx)(Fo,{icon:"interface-options"})},"tab-1"),r.includes("generalTab")&&(0,p.jsx)("div",{className:"ag-tab gv-table-header-menu-tab "+(2===t?"gv-table-header-menu-tab-selected":""),onClick:e=>{e.stopPropagation(),n(2)},children:(0,p.jsx)(Fo,{icon:"settings-options-components"})},"tab-2")]})},Uz=e=>{const{header:t,tableRef:n,tableApi:r,allValues:o,textFilteredValues:i,menuTabs:a,onTabChange:s}=e,[l,c]=(0,h.useState)(0);(0,h.useEffect)(()=>{s(l)},[l,s]),(0,h.useEffect)(()=>{if(a.length>0)switch(a[0]){case"filterTab":c(0);break;case"columnsTab":c(1);break;case"generalTab":c(2)}},[a]);const u={0:(0,p.jsx)(Nz,{column:t.column,allValues:o,textFilteredValues:i}),1:(0,p.jsx)(wz,{header:t,tableRef:n,resetColumns:()=>{r.resetColumnFilters(!0),r.resetSorting(!0),r.resetExpanded(!0),r.resetRowSelection(!0),r.resetColumnOrder(!0),r.resetColumnSizing(!0),r.resetColumnVisibility(!0),r.resetColumnPinning(!0)},expandAll:()=>{r.getIsAllRowsExpanded()||r.toggleAllRowsExpanded()},collapseAll:()=>{r.getIsAllRowsExpanded()?r.toggleAllRowsExpanded():r.getIsSomeRowsExpanded()&&Promise.resolve(r.toggleAllRowsExpanded()).then(()=>r.toggleAllRowsExpanded())}}),2:(0,p.jsx)(bz,{tableApi:r})};return(0,p.jsxs)("div",{className:"ag-theme-grassvalley",style:{display:"flex",flexFlow:"column"},children:[a.length>1&&(0,p.jsx)(jz,{selectedTab:l,setSelectedTab:c,menuTabs:a}),u[l]]})},Vz=e=>{const{style:t,visible:n,tableRef:r,tableApi:o,header:i,allValues:a,textFilteredValues:s,menuTabs:l}=e,c=(0,h.useRef)(null),[u,d]=(0,h.useState)(null),[f,g]=(0,h.useState)(0),{width:m}=A();return(0,h.useEffect)(()=>{d(oz(c,m,t))},[f]),(0,h.useEffect)(()=>{c.current&&null==u&&d(oz(c,m,t))}),null==n||n?(0,p.jsx)("div",{ref:c,style:{position:"absolute",...t,...u??{top:0,left:0},overflow:"hidden",opacity:u?1:0},className:"ag-menu ag-ltr ag-popup-child ag-keyboard-focus",children:(0,p.jsx)(Uz,{tableApi:o,header:i,tableRef:r,allValues:a,textFilteredValues:s,menuTabs:l,onTabChange:g})}):null},Hz=(0,h.memo)(e=>{const{cell:t,style:n,cellStyle:r,row:o,renderPlaceholders:i,showAggregatedValues:a,editingState:s,editMode:l,enterMovesDownAfterEdit:c,setEditing:u}=e,{isDragging:d,setNodeRef:h,transform:f}=HG({id:t.column.id}),g=t.column.columnDef,m={...n,..."function"==typeof r?r(o,t):r,opacity:d?.8:1,position:"relative",transform:jV.Translate.toString(f),transition:"width transform 0.2s ease-in-out",width:t.column.getSize(),zIndex:d?1:0,...g.editable&&{padding:"0px 10px"}},v={...t.getContext(),editingState:s,setEditing:u,editMode:l,enterMovesDownAfterEdit:c};return(0,p.jsx)("td",{style:{...m},ref:h,children:t.getIsGrouped()?(0,p.jsxs)("div",{onClick:e=>{e.stopPropagation(),o.getToggleExpandedHandler()()},style:{minWidth:"15px",cursor:"pointer",display:"flex",flexFlow:"row",gap:"10px",maxWidth:"inherit"},children:[WW(t.column.columnDef.cell,v),a&&(0,p.jsxs)(p.Fragment,{children:["(",o.subRows.length,")"]})]}):t.getIsPlaceholder()&&!i||t.getIsAggregated()&&!a?null:WW(t.column.columnDef.cell,v)},t.id)},(e,t)=>!t.cell.column.getIsResizing()&&e.cell.column.getSize()===t.cell.column.getSize()&&e.columnVersion===t.columnVersion&&e.cell?.getValue()===t.cell?.getValue()&&e.editingState===t.editingState&&e.editMode===t.editMode&&e.enterMovesDownAfterEdit===t.enterMovesDownAfterEdit&&e.renderPlaceholders===t.renderPlaceholders&&e.showAggregatedValues===t.showAggregatedValues),Gz=e=>{const{dataIndex:t,onClick:n,onDblClick:r,onContextMenu:o,style:i,row:a,rowVirtualizer:s,virtualRowIndex:l,isSelected:c,headers:u,columns:d,renderPlaceholders:f,showAggregatedValues:g,editingState:m,editMode:v,enterMovesDownAfterEdit:y,setEditing:A,dragEnabled:w=!1,virtualRowTop:b,cellUpdateManager:_}=e,{attributes:C,isDragging:E,listeners:S,setNodeRef:O,transform:x}=HG({id:a.id,disabled:!w}),{onMouseDown:D}=S||{},P=(0,h.useRef)(!1),M=(0,h.useRef)(!1),T={...i,...w?{opacity:E?.8:1,transform:jV.Transform.toString(x),transition:E?"none":"transform 0.03s ease-in-out",zIndex:E?1e3:1,cursor:E?"grabbing":"grab",top:b,backgroundColor:E?"var(--ag-row-hover-color, rgba(0, 0, 0, 0.1))":void 0}:{}};return(0,p.jsx)("tr",{ref:e=>{e&&void 0!==l&&s.measureElement(e),w&&O(e)},"data-index":t,onClick:w?void 0:n,onDoubleClick:w?e=>{vz(e)||w&&!P.current&&r?.(e)}:r,onContextMenu:o,onMouseDown:w?e=>{vz(e)||(w?(P.current=!1,M.current=!0):n?.(e))}:void 0,onMouseMove:w?e=>{vz(e)||w&&M.current&&(P.current=!0,D&&D(e))}:void 0,onMouseUp:w?e=>{vz(e)||w&&(M.current=!1,P.current||n?.(e))}:void 0,style:T,className:`ag-row ${t%2?"ag-row-odd":"ag-row-even"} ${c&&"ag-row-selected"} ${E?"ag-row-dragging":""}`,...w?C:{},children:a.getVisibleCells().map((e,t)=>(0,p.jsx)(Hz,{row:a,renderPlaceholders:f,columnVersion:_.getColumnVersion(e.column.id),showAggregatedValues:g,cell:e,cellStyle:d[t%u.length].cellStyle,style:{...t===a.getVisibleCells().length-1&&{flex:1},...E&&{pointerEvents:"none"}},editMode:v,enterMovesDownAfterEdit:y,setEditing:A,editingState:m},e.id))},a.id)};var Wz;!function(e){e.csv="text/csv",e.tsv="text/tab-separated-values",e.plain="text/plain"}(Wz||(Wz={}));var zz=e=>e,$z=e=>e,Kz=zz,Qz=zz,qz=zz,Yz=zz,Xz=zz,Zz={fieldSeparator:",",decimalSeparator:".",quoteStrings:!0,quoteCharacter:'"',showTitle:!1,title:"My Generated Report",filename:"generated",showColumnHeaders:!0,useTextFile:!1,fileExtension:"csv",mediaType:Wz.csv,useBom:!0,columnHeaders:[],useKeysAsHeaders:!1,boolDisplay:{true:"TRUE",false:"FALSE"},replaceUndefinedWith:""},Jz=e=>Object.assign({},Zz,e);class e$ extends Error{constructor(e){super(e),this.name="CsvGenerationError"}}class t$ extends Error{constructor(e){super(e),this.name="EmptyHeadersError"}}class n$ extends Error{constructor(e){super(e),this.name="CsvDownloadEnvironmentError"}}class r$ extends Error{constructor(e){super(e),this.name="UnsupportedDataFormatError"}}var o$=e=>Yz("object"==typeof e?e.key:e),i$=e=>Xz("object"==typeof e?e.displayLabel:e),a$=e=>t=>Qz(e+t+"\r\n"),s$=e=>(t,n)=>l$(e)(qz(t+n)),l$=e=>t=>t+e.fieldSeparator,c$=(e,t)=>{let n=t;return(e.quoteStrings||e.fieldSeparator&&t.indexOf(e.fieldSeparator)>-1||e.quoteCharacter&&t.indexOf(e.quoteCharacter)>-1||t.indexOf("\n")>-1||t.indexOf("\r")>-1)&&(n=e.quoteCharacter+function(e,t){return'"'==t&&e.indexOf('"')>-1?e.replace(/"/g,'""'):e}(t,e.quoteCharacter)+e.quoteCharacter),Kz(n)},u$=(e,t)=>{if("number"==typeof t)return((e,t)=>{if((e=>+e===e&&(!isFinite(e)||Boolean(e%1)))(t)){if("locale"===e.decimalSeparator)return Kz(t.toLocaleString());if(e.decimalSeparator)return Kz(t.toString().replace(".",e.decimalSeparator))}return Kz(t.toString())})(e,t);if("string"==typeof t)return c$(e,t);if("boolean"==typeof t&&e.boolDisplay)return((e,t)=>{const n=t?"true":"false";return Kz(e.boolDisplay[n])})(e,t);if(null==t)return((e,t)=>void 0===t&&void 0!==e.replaceUndefinedWith?c$(e,e.replaceUndefinedWith+""):c$(e,null===t?"null":""))(e,t);throw new r$(`\n    typeof ${typeof t} isn't supported. Only number, string, boolean, null and undefined are supported.\n    Please convert the data in your object to one of those before generating the CSV.\n    `)},d$=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],p$={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},h$=function(e){-1!=d$.indexOf(e)&&(p$[0]=e)},f$=function(e){return String.fromCharCode(e)},g$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function m$(e){for(var t="",n=0,r=0,o=0,i=0,a=0,s=0,l=0,c=0;c<e.length;)i=(n=e.charCodeAt(c++))>>2,a=(3&n)<<4|(r=e.charCodeAt(c++))>>4,s=(15&r)<<2|(o=e.charCodeAt(c++))>>6,l=63&o,isNaN(r)?s=l=64:isNaN(o)&&(l=64),t+=g$.charAt(i)+g$.charAt(a)+g$.charAt(s)+g$.charAt(l);return t}function v$(e){var t="",n=0,r=0,o=0,i=0,a=0,s=0;"data:"==e.slice(0,5)&&(l=e.slice(0,1024).indexOf(";base64,"))>-1&&(e=e.slice(l+8)),e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)n=g$.indexOf(e.charAt(l++))<<2|(i=g$.indexOf(e.charAt(l++)))>>4,t+=String.fromCharCode(n),r=(15&i)<<4|(a=g$.indexOf(e.charAt(l++)))>>2,64!==a&&(t+=String.fromCharCode(r)),o=(3&a)<<6|(s=g$.indexOf(e.charAt(l++))),64!==s&&(t+=String.fromCharCode(o));return t}var y$=void 0!==Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node,A$=function(){if(void 0!==Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}(),w$=function(){if(void 0===Buffer)return!1;var e=A$([65,0]);return!!e&&1==e.toString("utf16le").length}();function b$(e){return y$?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function _$(e){return y$?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var C$=function(e){return y$?A$(e,"binary"):e.split("").map(function(e){return 255&e.charCodeAt(0)})};function E$(e){if("undefined"==typeof ArrayBuffer)return C$(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}var S$=y$?function(e){return Buffer.concat(e.map(function(e){return Buffer.isBuffer(e)?e:A$(e)}))}:function(e){if("undefined"!=typeof Uint8Array){var t=0,n=0;for(t=0;t<e.length;++t)n+=e[t].length;var r=new Uint8Array(n),o=0;for(t=0,n=0;t<e.length;n+=o,++t)o=e[t].length,e[t]instanceof Uint8Array?r.set(e[t],n):"string"==typeof e[t]?r.set(new Uint8Array(C$(e[t])),n):r.set(new Uint8Array(e[t]),n);return r}return[].concat.apply([],e.map(function(e){return Array.isArray(e)?e:[].slice.call(e)}))},O$=/\u0000/g,x$=/[\u0001-\u0006]/g;function D$(e){for(var t="",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function P$(e,t){var n=""+e;return n.length>=t?n:DK("0",t-n.length)+n}function M$(e,t){var n=""+e;return n.length>=t?n:DK(" ",t-n.length)+n}function T$(e,t){var n=""+e;return n.length>=t?n:n+DK(" ",t-n.length)}var R$=Math.pow(2,32);function I$(e,t){return e>R$||e<-R$?function(e,t){var n=""+Math.round(e);return n.length>=t?n:DK("0",t-n.length)+n}(e,t):function(e,t){var n=""+e;return n.length>=t?n:DK("0",t-n.length)+n}(Math.round(e),t)}function F$(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var k$=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],L$=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],B$={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},N$={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},j$={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function U$(e,t,n){for(var r=e<0?-1:1,o=e*r,i=0,a=1,s=0,l=1,c=0,u=0,d=Math.floor(o);c<t&&(s=(d=Math.floor(o))*a+i,u=d*c+l,!(o-d<5e-8));)o=1/(o-d),i=a,a=s,l=c,c=u;if(u>t&&(c>t?(u=l,s=i):(u=c,s=a)),!n)return[0,r*s,u];var p=Math.floor(r*s/u);return[p,r*s-p*u,u]}function V$(e,t,n){if(e>2958465||e<0)return null;e=function(e){var t=e.toPrecision(16);if(t.indexOf("e")>-1){var n=t.slice(0,t.indexOf("e"));return(n=n.indexOf(".")>-1?n.slice(0,"0."==n.slice(0,2)?17:16):n.slice(0,15)+DK("0",n.length-15))+t.slice(t.indexOf("e"))}var r=t.indexOf(".")>-1?t.slice(0,"0."==t.slice(0,2)?17:16):t.slice(0,15)+DK("0",t.length-15);return Number(r)}(e);var r=0|e,o=Math.floor(86400*(e-r)),i=0,a=[],s={D:r,T:o,u:86400*(e-r)-o,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++o&&(s.T=o=0,++r,++s.D)),60===r)a=n?[1317,10,29]:[1900,2,29],i=3;else if(0===r)a=n?[1317,8,29]:[1900,1,0],i=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),a=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),r<60&&(i=(i+6)%7),n&&(i=function(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}(l,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=o%60,o=Math.floor(o/60),s.M=o%60,o=Math.floor(o/60),s.H=o,s.q=i,s}function H$(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function G$(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):function(e){if(!isFinite(e))return isNaN(e)?"#NUM!":"#DIV/0!";var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?function(e){var t=e<0?12:11,n=H$(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(e):10===n?e.toFixed(10).substr(0,12):function(e){var t=H$(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),H$(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return cK(14,bK(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function W$(e,t,n,r){var o,i="",a=0,s=0,l=n.y,c=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:o=l%100,c=2;break;default:o=l%1e4,c=4}break;case 109:switch(t.length){case 1:case 2:o=n.m,c=t.length;break;case 3:return L$[n.m-1][1];case 5:return L$[n.m-1][0];default:return L$[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=n.d,c=t.length;break;case 3:return k$[n.q][0];default:return k$[n.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(n.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=n.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=n.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(s=r>=2?3===r?1e3:100:1===r?10:1,(a=Math.round(s*(n.S+n.u)))>=60*s&&(a=0),"s"===t?0===a?"0":""+a/s:(i=P$(a,2+r),"ss"===t?i.substr(0,2):"."+i.substr(2,t.length-1))):P$(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":o=24*n.D+n.H;break;case"[m]":case"[mm]":o=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":o=60*(60*(24*n.D+n.H)+n.M)+(0==r?Math.round(n.S+n.u):n.S);break;default:throw"bad abstime format: "+t}c=3===t.length?1:2;break;case 101:o=l,c=1}return c>0?P$(o,c):""}function z$(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?",":"")+e.substr(t,3);return n}var $$=/%/g;function K$(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+K$(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%o;if(i<0&&(i+=o),-1===(n=(t/Math.pow(10,i)).toPrecision(r+1+(o+i)%o)).indexOf("e")){var a=Math.floor(Math.log(t)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(a-n.length+i):n+="E+"+(a-i);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,o)+"."+n.substr(2+o)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"})}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var Q$=/# (\?+)( ?)\/( ?)(\d+)/,q$=/^#*0*\.([0#]+)/,Y$=/\)[^)]*[0#]/,X$=/\(###\) ###\\?-####/;function Z$(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function J$(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function eK(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function tK(e,t,n){if(40===e.charCodeAt(0)&&!t.match(Y$)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?tK("n",r,n):"("+tK("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return oK(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace($$,""),o=t.length-r.length;return oK(e,r,n*Math.pow(10,2*o))+DK("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return K$(t,n);if(36===t.charCodeAt(0))return"$"+tK(e,t.substr(" "==t.charAt(1)?2:1),n);var o,i,a,s,l=Math.abs(n),c=n<0?"-":"";if(t.match(/^00+$/))return c+I$(l,t.length);if(t.match(/^[#?]+$/))return"0"===(o=I$(n,0))&&(o=""),o.length>t.length?o:Z$(t.substr(0,t.length-o.length))+o;if(i=t.match(Q$))return function(e,t,n){var r=parseInt(e[4],10),o=Math.round(t*r),i=Math.floor(o/r),a=o-i*r,s=r;return n+(0===i?"":""+i)+" "+(0===a?DK(" ",e[1].length+1+e[4].length):M$(a,e[1].length)+e[2]+"/"+e[3]+P$(s,e[4].length))}(i,l,c);if(t.match(/^#+0+$/))return c+I$(l,t.length-t.indexOf("0"));if(i=t.match(q$))return o=J$(n,i[1].length).replace(/^([^\.]+)$/,"$1."+Z$(i[1])).replace(/\.$/,"."+Z$(i[1])).replace(/\.(\d*)$/,function(e,t){return"."+t+DK("0",Z$(i[1]).length-t.length)}),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return c+J$(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return c+z$(I$(l,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+tK(e,t,-n):z$(""+(Math.floor(n)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(n,i[1].length)))+"."+P$(eK(n,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return tK(e,t.replace(/^#,#*,/,""),n);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=D$(tK(e,t.replace(/[\\-]/g,""),n)),a=0,D$(D$(t.replace(/\\/g,"")).replace(/[0#]/g,function(e){return a<o.length?o.charAt(a++):"0"===e?"0":""}));if(t.match(X$))return"("+(o=tK(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var u="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(i[4].length,7),s=U$(l,Math.pow(10,a)-1,!1),o=""+c," "==(u=oK("n",i[1],s[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),o+=u+i[2]+"/"+i[3],(u=T$(s[2],a)).length<i[4].length&&(u=Z$(i[4].substr(i[4].length-u.length))+u),o+=u;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(i[1].length,i[4].length),7),c+((s=U$(l,Math.pow(10,a)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?M$(s[1],a)+i[2]+"/"+i[3]+T$(s[2],a):DK(" ",2*a+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return o=I$(n,0),t.length<=o.length?o:Z$(t.substr(0,t.length-o.length))+o;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),a=o.indexOf(".");var d=t.indexOf(".")-a,p=t.length-o.length-d;return Z$(t.substr(0,d)+o+t.substr(t.length-p))}if(i=t.match(/^00,000\.([#0]*0)$/))return a=eK(n,i[1].length),n<0?"-"+tK(e,t,-n):z$(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?P$(0,3-e.length):"")+e})+"."+P$(a,i[1].length);switch(t){case"###,##0.00":return tK(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var h=z$(I$(l,0));return"0"!==h?c+h:"";case"###,###.00":return tK(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return tK(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function nK(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+nK(e,-t);var o=e.indexOf(".");-1===o&&(o=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%o;if(i<0&&(i+=o),!(n=(t/Math.pow(10,i)).toPrecision(r+1+(o+i)%o)).match(/[Ee]/)){var a=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(a-n.length+i):n+="E+"+(a-i),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"})}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function rK(e,t,n){if(40===e.charCodeAt(0)&&!t.match(Y$)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?rK("n",r,n):"("+rK("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return oK(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace($$,""),o=t.length-r.length;return oK(e,r,n*Math.pow(10,2*o))+DK("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return nK(t,n);if(36===t.charCodeAt(0))return"$"+rK(e,t.substr(" "==t.charAt(1)?2:1),n);var o,i,a,s,l=Math.abs(n),c=n<0?"-":"";if(t.match(/^00+$/))return c+P$(l,t.length);if(t.match(/^[#?]+$/))return o=""+n,0===n&&(o=""),o.length>t.length?o:Z$(t.substr(0,t.length-o.length))+o;if(i=t.match(Q$))return function(e,t,n){return n+(0===t?"":""+t)+DK(" ",e[1].length+2+e[4].length)}(i,l,c);if(t.match(/^#+0+$/))return c+P$(l,t.length-t.indexOf("0"));if(i=t.match(q$))return o=(o=(""+n).replace(/^([^\.]+)$/,"$1."+Z$(i[1])).replace(/\.$/,"."+Z$(i[1]))).replace(/\.(\d*)$/,function(e,t){return"."+t+DK("0",Z$(i[1]).length-t.length)}),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return c+z$(""+l);if(i=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+rK(e,t,-n):z$(""+n)+"."+DK("0",i[1].length);if(i=t.match(/^#,#*,#0/))return rK(e,t.replace(/^#,#*,/,""),n);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=D$(rK(e,t.replace(/[\\-]/g,""),n)),a=0,D$(D$(t.replace(/\\/g,"")).replace(/[0#]/g,function(e){return a<o.length?o.charAt(a++):"0"===e?"0":""}));if(t.match(X$))return"("+(o=rK(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var u="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(i[4].length,7),s=U$(l,Math.pow(10,a)-1,!1),o=""+c," "==(u=oK("n",i[1],s[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),o+=u+i[2]+"/"+i[3],(u=T$(s[2],a)).length<i[4].length&&(u=Z$(i[4].substr(i[4].length-u.length))+u),o+=u;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(i[1].length,i[4].length),7),c+((s=U$(l,Math.pow(10,a)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?M$(s[1],a)+i[2]+"/"+i[3]+T$(s[2],a):DK(" ",2*a+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return o=""+n,t.length<=o.length?o:Z$(t.substr(0,t.length-o.length))+o;if(i=t.match(/^([#0]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),a=o.indexOf(".");var d=t.indexOf(".")-a,p=t.length-o.length-d;return Z$(t.substr(0,d)+o+t.substr(t.length-p))}if(i=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+rK(e,t,-n):z$(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?P$(0,3-e.length):"")+e})+"."+P$(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var h=z$(""+l);return"0"!==h?c+h:"";default:if(t.match(/\.[0#?]*$/))return rK(e,t.slice(0,t.lastIndexOf(".")),n)+Z$(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function oK(e,t,n){return(0|n)===n?rK(e,t,n):tK(e,t,n)}var iK=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function aK(e){for(var t=0,n="",r="";t<e.length;)switch(n=e.charAt(t)){case"G":F$(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(r=n;"]"!==e.charAt(t++)&&t<e.length;)r+=e.charAt(t);if(r.match(iK))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var sK=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function lK(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function cK(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:B$)[e])&&(r=n.table&&n.table[N$[e]]||B$[N$[e]]),null==r&&(r=j$[e]||"General")}if(F$(r,0))return G$(t,n);t instanceof Date&&(t=bK(t,n.date1904));var o=function(e,t){var n=function(e){for(var t=[],n=!1,r=0,o=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(o,r-o),o=r+1}if(t[t.length]=e.substr(o),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}(e),r=n.length,o=n[r-1].indexOf("@");if(r<4&&o>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||o>-1?n[n.length-1]:"@"];switch("number"!=typeof t||isFinite(t)||(t=0),n.length){case 1:n=o>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=o>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=o>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var i=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,i];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var a=n[0].match(sK),s=n[1].match(sK);return lK(t,a)?[r,n[0]]:lK(t,s)?[r,n[1]]:[r,n[null!=a&&null!=s?2:1]]}return[r,i]}(r,t);if(F$(o[1]))return G$(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else{if(""===t||null==t)return"";if(isNaN(t)&&o[1].indexOf("0")>-1)return"#NUM!";if(!isFinite(t)&&o[1].indexOf("0")>-1)return"#DIV/0!"}return function(e,t,n,r){for(var o,i,a,s=[],l="",c=0,u="",d="t",p="H";c<e.length;)switch(u=e.charAt(c)){case"G":if(!F$(e,c))throw new Error("unrecognized character "+u+" in "+e);s[s.length]={t:"G",v:"General"},c+=7;break;case'"':for(l="";34!==(a=e.charCodeAt(++c))&&c<e.length;)l+=String.fromCharCode(a);s[s.length]={t:"t",v:l},++c;break;case"\\":var h=e.charAt(++c),f="("===h||")"===h?h:"t";s[s.length]={t:f,v:h},++c;break;case"_":s[s.length]={t:"t",v:" "},c+=2;break;case"@":s[s.length]={t:"T",v:t},++c;break;case"B":case"b":if("1"===e.charAt(c+1)||"2"===e.charAt(c+1)){if(null==o&&null==(o=V$(t,n,"2"===e.charAt(c+1))))return"";s[s.length]={t:"X",v:e.substr(c,2)},d=u,c+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==o&&null==(o=V$(t,n)))return"";for(l=u;++c<e.length&&e.charAt(c).toLowerCase()===u;)l+=u;"m"===u&&"h"===d.toLowerCase()&&(u="M"),"h"===u&&(u=p),s[s.length]={t:u,v:l},d=u;break;case"A":case"a":case"上":var g={t:u,v:u};if(null==o&&(o=V$(t,n)),"A/P"===e.substr(c,3).toUpperCase()?(null!=o&&(g.v=o.H>=12?e.charAt(c+2):u),g.t="T",p="h",c+=3):"AM/PM"===e.substr(c,5).toUpperCase()?(null!=o&&(g.v=o.H>=12?"PM":"AM"),g.t="T",c+=5,p="h"):"上午/下午"===e.substr(c,5).toUpperCase()?(null!=o&&(g.v=o.H>=12?"下午":"上午"),g.t="T",c+=5,p="h"):(g.t="t",++c),null==o&&"T"===g.t)return"";s[s.length]=g,d=u;break;case"[":for(l=u;"]"!==e.charAt(c++)&&c<e.length;)l+=e.charAt(c);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(iK)){if(null==o&&null==(o=V$(t,n)))return"";s[s.length]={t:"Z",v:l.toLowerCase()},d=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",aK(e)||(s[s.length]={t:"t",v:l}));break;case".":if(null!=o){for(l=u;++c<e.length&&"0"===(u=e.charAt(c));)l+=u;s[s.length]={t:"s",v:l};break}case"0":case"#":for(l=u;++c<e.length&&"0#?.,E+-%".indexOf(u=e.charAt(c))>-1;)l+=u;s[s.length]={t:"n",v:l};break;case"?":for(l=u;e.charAt(++c)===u;)l+=u;s[s.length]={t:u,v:l},d=u;break;case"*":++c," "!=e.charAt(c)&&"*"!=e.charAt(c)||++c;break;case"(":case")":s[s.length]={t:1===r?"t":u,v:u},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=u;c<e.length&&"0123456789".indexOf(e.charAt(++c))>-1;)l+=e.charAt(c);s[s.length]={t:"D",v:l};break;case" ":s[s.length]={t:u,v:u},++c;break;case"$":s[s.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+e);s[s.length]={t:"t",v:u},++c}var m,v,y=0,A=0;for(c=s.length-1,d="t";c>=0;--c)switch(s[c].t){case"h":case"H":s[c].t=p,d="h",y<1&&(y=1);break;case"s":(m=s[c].v.match(/\.0+$/))&&(A=Math.max(A,m[0].length-1),y=4),y<3&&(y=3);case"d":case"y":case"e":d=s[c].t;break;case"M":d=s[c].t,y<2&&(y=2);break;case"m":"s"===d&&(s[c].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&s[c].v.match(/[Hh]/)&&(y=1),y<2&&s[c].v.match(/[Mm]/)&&(y=2),y<3&&s[c].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:case 2:case 3:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H),o.H>=24&&(o.H=0,++o.D,(v=V$(o.D)).u=o.u,v.S=o.S,v.M=o.M,v.H=o.H,o=v);break;case 4:switch(A){case 1:o.u=Math.round(10*o.u)/10;break;case 2:o.u=Math.round(100*o.u)/100;break;case 3:o.u=Math.round(1e3*o.u)/1e3}o.u>=1&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H),o.H>=24&&(o.H=0,++o.D,(v=V$(o.D)).u=o.u,v.S=o.S,v.M=o.M,v.H=o.H,o=v)}var w,b="";for(c=0;c<s.length;++c)switch(s[c].t){case"t":case"T":case" ":case"D":break;case"X":s[c].v="",s[c].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":s[c].v=W$(s[c].t.charCodeAt(0),s[c].v,o,A),s[c].t="t";break;case"n":case"?":for(w=c+1;null!=s[w]&&("?"===(u=s[w].t)||"D"===u||(" "===u||"t"===u)&&null!=s[w+1]&&("?"===s[w+1].t||"t"===s[w+1].t&&"/"===s[w+1].v)||"("===s[c].t&&(" "===u||"n"===u||")"===u)||"t"===u&&("/"===s[w].v||" "===s[w].v&&null!=s[w+1]&&"?"==s[w+1].t));)s[c].v+=s[w].v,s[w]={v:"",t:";"},++w;b+=s[c].v,c=w-1;break;case"G":s[c].t="t",s[c].v=G$(t,n)}var _,C,E="";if(b.length>0){40==b.charCodeAt(0)?(_=t<0&&45===b.charCodeAt(0)?-t:t,C=oK("n",b,_)):(C=oK("n",b,_=t<0&&r>1?-t:t),_<0&&s[0]&&"t"==s[0].t&&(C=C.substr(1),s[0].v="-"+s[0].v)),w=C.length-1;var S=s.length;for(c=0;c<s.length;++c)if(null!=s[c]&&"t"!=s[c].t&&s[c].v.indexOf(".")>-1){S=c;break}var O=s.length;if(S===s.length&&-1===C.indexOf("E")){for(c=s.length-1;c>=0;--c)null!=s[c]&&-1!=="n?".indexOf(s[c].t)&&(w>=s[c].v.length-1?(w-=s[c].v.length,s[c].v=C.substr(w+1,s[c].v.length)):w<0?s[c].v="":(s[c].v=C.substr(0,w+1),w=-1),s[c].t="t",O=c);w>=0&&O<s.length&&(s[O].v=C.substr(0,w+1)+s[O].v)}else if(S!==s.length&&-1===C.indexOf("E")){for(w=C.indexOf(".")-1,c=S;c>=0;--c)if(null!=s[c]&&-1!=="n?".indexOf(s[c].t)){for(i=s[c].v.indexOf(".")>-1&&c===S?s[c].v.indexOf(".")-1:s[c].v.length-1,E=s[c].v.substr(i+1);i>=0;--i)w>=0&&("0"===s[c].v.charAt(i)||"#"===s[c].v.charAt(i))&&(E=C.charAt(w--)+E);s[c].v=E,s[c].t="t",O=c}for(w>=0&&O<s.length&&(s[O].v=C.substr(0,w+1)+s[O].v),w=C.indexOf(".")+1,c=S;c<s.length;++c)if(null!=s[c]&&(-1!=="n?(".indexOf(s[c].t)||c===S)){for(i=s[c].v.indexOf(".")>-1&&c===S?s[c].v.indexOf(".")+1:0,E=s[c].v.substr(0,i);i<s[c].v.length;++i)w<C.length&&(E+=C.charAt(w++));s[c].v=E,s[c].t="t",O=c}}}for(c=0;c<s.length;++c)null!=s[c]&&"n?".indexOf(s[c].t)>-1&&(_=r>1&&t<0&&c>0&&"-"===s[c-1].v?-t:t,s[c].v=oK(s[c].t,s[c].v,_),s[c].t="t");var x="";for(c=0;c!==s.length;++c)null!=s[c]&&(x+=s[c].v);return x}(o[1],t,n,o[0])}function uK(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=B$[n]){if(B$[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return B$[t]=e,t}var dK={"d.m":"d\\.m"};function pK(e,t){return uK(dK[e]||e,t)}var hK=function(){var e={version:"1.2.0"},t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n=function(e){var t=0,n=0,r=0,o="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)o[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=o[t]=n>>>8^e[255&n];var i=[];for(r=1;16!=r;++r)i[r-1]="undefined"!=typeof Int32Array&&"function"==typeof o.subarray?o.subarray(256*r,256*r+256):o.slice(256*r,256*r+256);return i}(t),r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],c=n[6],u=n[7],d=n[8],p=n[9],h=n[10],f=n[11],g=n[12],m=n[13],v=n[14];return e.table=t,e.bstr=function(e,n){for(var r=-1^n,o=0,i=e.length;o<i;)r=r>>>8^t[255&(r^e.charCodeAt(o++))];return~r},e.buf=function(e,n){for(var y=-1^n,A=e.length-15,w=0;w<A;)y=v[e[w++]^255&y]^m[e[w++]^y>>8&255]^g[e[w++]^y>>16&255]^f[e[w++]^y>>>24]^h[e[w++]]^p[e[w++]]^d[e[w++]]^u[e[w++]]^c[e[w++]]^l[e[w++]]^s[e[w++]]^a[e[w++]]^i[e[w++]]^o[e[w++]]^r[e[w++]]^t[e[w++]];for(A+=15;w<A;)y=y>>>8^t[255&(y^e[w++])];return~y},e.str=function(e,n){for(var r=-1^n,o=0,i=e.length,a=0,s=0;o<i;)(a=e.charCodeAt(o++))<128?r=r>>>8^t[255&(r^a)]:a<2048?r=(r=r>>>8^t[255&(r^(192|a>>6&31))])>>>8^t[255&(r^(128|63&a))]:a>=55296&&a<57344?(a=64+(1023&a),s=1023&e.charCodeAt(o++),r=(r=(r=(r=r>>>8^t[255&(r^(240|a>>8&7))])>>>8^t[255&(r^(128|a>>2&63))])>>>8^t[255&(r^(128|s>>6&15|(3&a)<<4))])>>>8^t[255&(r^(128|63&s))]):r=(r=(r=r>>>8^t[255&(r^(224|a>>12&15))])>>>8^t[255&(r^(128|a>>6&63))])>>>8^t[255&(r^(128|63&a))];return~r},e}(),fK=function(){var e,t={};function n(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function r(e){if("/"==e.charAt(e.length-1))return r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function o(e,t){"string"==typeof t&&(t=new Date(t));var n=t.getHours();n=(n=n<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=(r=r<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,r)}function i(e){VQ(e,0);for(var t={},n=0;e.l<=e.length-4;){var r=e.read_shift(2),o=e.read_shift(2),i=e.l+o,a={};switch(r){case 21589:1&(n=e.read_shift(1))&&(a.mtime=e.read_shift(4)),o>5&&(2&n&&(a.atime=e.read_shift(4)),4&n&&(a.ctime=e.read_shift(4))),a.mtime&&(a.mt=new Date(1e3*a.mtime));break;case 1:var s=e.read_shift(4),l=e.read_shift(4);a.usz=l*Math.pow(2,32)+s,s=e.read_shift(4),l=e.read_shift(4),a.csz=l*Math.pow(2,32)+s}e.l=i,t[r]=a}return t}function a(){return e||(e=void 0)}function s(e,t){if(80==e[0]&&75==e[1])return re(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=_(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=t&&t.root||"",r=(y$&&Buffer.isBuffer(e)?e.toString("binary"):_(e)).split("\r\n"),o=0,i="";for(o=0;o<r.length;++o)if(i=r[o],/^Content-Location:/i.test(i)&&(i=i.slice(i.indexOf("file")),n||(n=i.slice(0,i.lastIndexOf("/")+1)),i.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),i.slice(0,n.length)!=n););var a=(r[1]||"").match(/boundary="(.*?)"/);if(!a)throw new Error("MAD cannot find boundary");var s="--"+(a[1]||""),l={FileIndex:[],FullPaths:[]};p(l);var c,u=0;for(o=0;o<r.length;++o){var d=r[o];d!==s&&d!==s+"--"||(u++&&ce(l,r.slice(c,o),n),c=o)}return l}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n,r,o,i,a,s,h=512,f=[],g=e.slice(0,512);VQ(g,0);var m=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(y,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(g);switch(n=m[0]){case 3:h=512;break;case 4:h=4096;break;case 0:if(0==m[1])return re(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==h&&VQ(g=e.slice(0,h),28);var A=e.slice(0,h);!function(e,t){var n;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(g,n);var w=g.read_shift(4,"i");if(3===n&&0!==w)throw new Error("# Directory Sectors: Expected 0 saw "+w);g.l+=4,i=g.read_shift(4,"i"),g.l+=4,g.chk("00100000","Mini Stream Cutoff Size: "),a=g.read_shift(4,"i"),r=g.read_shift(4,"i"),s=g.read_shift(4,"i"),o=g.read_shift(4,"i");for(var b=-1,C=0;C<109&&!((b=g.read_shift(4,"i"))<0);++C)f[C]=b;var E=function(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],o=1;o<n;++o)r[o-1]=e.slice(o*t,(o+1)*t);return r[n-1]=e.slice(n*t),r}(e,h);c(s,o,E,h,f);var S=function(e,t,n,r){var o=e.length,i=[],a=[],s=[],l=[],c=r-1,u=0,d=0,p=0,h=0;for(u=0;u<o;++u)if(s=[],(p=u+t)>=o&&(p-=o),!a[p]){l=[];var f=[];for(d=p;d>=0;){f[d]=!0,a[d]=!0,s[s.length]=d,l.push(e[d]);var g=n[Math.floor(4*d/r)];if(r<4+(h=4*d&c))throw new Error("FAT boundary crossed: "+d+" 4 "+r);if(!e[g])break;if(f[d=IQ(e[g],h)])break}i[p]={nodes:s,data:uQ([l])}}return i}(E,i,f,h);i<S.length&&(S[i].name="!Directory"),r>0&&a!==v&&(S[a].name="!MiniFAT"),S[f[0]].name="!FAT",S.fat_addrs=f,S.ssz=h;var O=[],x=[],D=[];!function(e,t,n,r,o,i,a,s){for(var c,p=0,h=r.length?2:0,f=t[e].data,g=0,m=0;g<f.length;g+=128){var y=f.slice(g,g+128);VQ(y,64),m=y.read_shift(2),c=pQ(y,0,m-h),r.push(c);var A={name:c,type:y.read_shift(1),color:y.read_shift(1),L:y.read_shift(4,"i"),R:y.read_shift(4,"i"),C:y.read_shift(4,"i"),clsid:y.read_shift(16),state:y.read_shift(4,"i"),start:0,size:0};0!==y.read_shift(2)+y.read_shift(2)+y.read_shift(2)+y.read_shift(2)&&(A.ct=d(y,y.l-8)),0!==y.read_shift(2)+y.read_shift(2)+y.read_shift(2)+y.read_shift(2)&&(A.mt=d(y,y.l-8)),A.start=y.read_shift(4,"i"),A.size=y.read_shift(4,"i"),A.size<0&&A.start<0&&(A.size=A.type=0,A.start=v,A.name=""),5===A.type?(p=A.start,o>0&&p!==v&&(t[p].name="!StreamData")):A.size>=4096?(A.storage="fat",void 0===t[A.start]&&(t[A.start]=u(n,A.start,t.fat_addrs,t.ssz)),t[A.start].name=A.name,A.content=t[A.start].data.slice(0,A.size)):(A.storage="minifat",A.size<0?A.size=0:p!==v&&A.start!==v&&t[p]&&(A.content=l(A,t[p].data,(t[s]||{}).data))),A.content&&VQ(A.content,0),i[c]=A,a.push(A)}}(i,S,E,O,r,{},x,a),function(e,t,n){for(var r=0,o=0,i=0,a=0,s=0,l=n.length,c=[],u=[];r<l;++r)c[r]=u[r]=r,t[r]=n[r];for(;s<u.length;++s)o=e[r=u[s]].L,i=e[r].R,a=e[r].C,c[r]===r&&(-1!==o&&c[o]!==o&&(c[r]=c[o]),-1!==i&&c[i]!==i&&(c[r]=c[i])),-1!==a&&(c[a]=r),-1!==o&&r!=c[r]&&(c[o]=c[r],u.lastIndexOf(o)<s&&u.push(o)),-1!==i&&r!=c[r]&&(c[i]=c[r],u.lastIndexOf(i)<s&&u.push(i));for(r=1;r<l;++r)c[r]===r&&(-1!==i&&c[i]!==i?c[r]=c[i]:-1!==o&&c[o]!==o&&(c[r]=c[o]));for(r=1;r<l;++r)if(0!==e[r].type){if((s=r)!=c[s])do{s=c[s],t[r]=t[s]+"/"+t[r]}while(0!==s&&-1!==c[s]&&s!=c[s]);c[r]=-1}for(t[0]+="/",r=1;r<l;++r)2!==e[r].type&&(t[r]+="/")}(x,D,O),O.shift();var P={FileIndex:x,FullPaths:D};return t&&t.raw&&(P.raw={header:A,sectors:E}),P}function l(e,t,n){for(var r=e.start,o=e.size,i=[],a=r;n&&o>0&&a>=0;)i.push(t.slice(a*m,a*m+m)),o-=m,a=IQ(n,4*a);return 0===i.length?HQ(0):S$(i).slice(0,e.size)}function c(e,t,n,r,o){var i=v;if(e===v){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var a=n[e],s=(r>>>2)-1;if(!a)return;for(var l=0;l<s&&(i=IQ(a,4*l))!==v;++l)o.push(i);t>=1&&c(IQ(a,r-4),t-1,n,r,o)}}function u(e,t,n,r,o){var i=[],a=[];o||(o=[]);var s=r-1,l=0,c=0;for(l=t;l>=0;){o[l]=!0,i[i.length]=l,a.push(e[l]);var u=n[Math.floor(4*l/r)];if(r<4+(c=4*l&s))throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[u])break;l=IQ(e[u],c)}return{nodes:i,data:uQ([a])}}function d(e,t){return new Date(1e3*(RQ(e,t+4)/1e7*Math.pow(2,32)+RQ(e,t)/1e7-11644473600))}function p(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),function(e){var t="Sh33tJ5";if(!fK.find(e,"/"+t)){var n=HQ(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),h(e)}}(e)}function h(e,t){p(e);for(var o=!1,i=!1,a=e.FullPaths.length-1;a>=0;--a){var s=e.FileIndex[a];switch(s.type){case 0:i?o=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:i=!0,isNaN(s.R*s.L*s.C)&&(o=!0),s.R>-1&&s.L>-1&&s.R==s.L&&(o=!0);break;default:o=!0}}if(o||t){var l=new Date(1987,1,19),c=0,u=Object.create?Object.create(null):{},d=[];for(a=0;a<e.FullPaths.length;++a)u[e.FullPaths[a]]=!0,0!==e.FileIndex[a].type&&d.push([e.FullPaths[a],e.FileIndex[a]]);for(a=0;a<d.length;++a){var h=n(d[a][0]);for(i=u[h];!i;){for(;n(h)&&!u[n(h)];)h=n(h);d.push([h,{name:r(h).replace("/",""),type:1,clsid:w,ct:l,mt:l,content:null}]),u[h]=!0,i=u[h=n(d[a][0])]}}for(d.sort(function(e,t){return function(e,t){for(var n=e.split("/"),r=t.split("/"),o=0,i=0,a=Math.min(n.length,r.length);o<a;++o){if(i=n[o].length-r[o].length)return i;if(n[o]!=r[o])return n[o]<r[o]?-1:1}return n.length-r.length}(e[0],t[0])}),e.FullPaths=[],e.FileIndex=[],a=0;a<d.length;++a)e.FullPaths[a]=d[a][0],e.FileIndex[a]=d[a][1];for(a=0;a<d.length;++a){var f=e.FileIndex[a],g=e.FullPaths[a];if(f.name=r(g).replace("/",""),f.L=f.R=f.C=-(f.color=1),f.size=f.content?f.content.length:0,f.start=0,f.clsid=f.clsid||w,0===a)f.C=d.length>1?1:-1,f.size=0,f.type=5;else if("/"==g.slice(-1)){for(c=a+1;c<d.length&&n(e.FullPaths[c])!=g;++c);for(f.C=c>=d.length?-1:c,c=a+1;c<d.length&&n(e.FullPaths[c])!=n(g);++c);f.R=c>=d.length?-1:c,f.type=1}else n(e.FullPaths[a+1]||"")==n(g)&&(f.R=a+1),f.type=2}}}function f(e,t){var n=t||{};if("mad"==n.fileType)return function(e,t){for(var n=t||{},r=n.boundary||"SheetJS",o=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(r="------="+r).slice(2)+'"',"","",""],i=e.FullPaths[0],a=i,s=e.FileIndex[0],l=1;l<e.FullPaths.length;++l)if(a=e.FullPaths[l].slice(i.length),(s=e.FileIndex[l]).size&&s.content&&"Sh33tJ5"!=a){a=a.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"});for(var c=s.content,u=y$&&Buffer.isBuffer(c)?c.toString("binary"):_(c),d=0,p=Math.min(1024,u.length),h=0,f=0;f<=p;++f)(h=u.charCodeAt(f))>=32&&h<128&&++d;var g=d>=4*p/5;o.push(r),o.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+a),o.push("Content-Transfer-Encoding: "+(g?"quoted-printable":"base64")),o.push("Content-Type: "+ae(s,a)),o.push(""),o.push(g?le(u):se(u))}return o.push(r+"--\r\n"),o.join("\r\n")}(e,n);if(h(e),"zip"===n.fileType)return function(e,t){var n=t||{},r=[],i=[],a=HQ(1),s=n.compression?8:0,l=0,c=0,u=0,d=0,p=e.FullPaths[0],h=p,f=e.FileIndex[0],g=[],m=0;for(l=1;l<e.FullPaths.length;++l)if(h=e.FullPaths[l].slice(p.length),(f=e.FileIndex[l]).size&&f.content&&(!Array.isArray(f.content)||0!=f.content.length)&&"Sh33tJ5"!=h){var v=u,y=HQ(h.length);for(c=0;c<h.length;++c)y.write_shift(1,127&h.charCodeAt(c));y=y.slice(0,y.l),g[d]="string"==typeof f.content?hK.bstr(f.content,0):hK.buf(f.content,0);var A="string"==typeof f.content?C$(f.content):f.content;8==s&&(A=C(A)),(a=HQ(30)).write_shift(4,67324752),a.write_shift(2,20),a.write_shift(2,0),a.write_shift(2,s),f.mt?o(a,f.mt):a.write_shift(4,0),a.write_shift(-4,g[d]),a.write_shift(4,A.length),a.write_shift(4,f.content.length),a.write_shift(2,y.length),a.write_shift(2,0),u+=a.length,r.push(a),u+=y.length,r.push(y),u+=A.length,r.push(A),(a=HQ(46)).write_shift(4,33639248),a.write_shift(2,0),a.write_shift(2,20),a.write_shift(2,0),a.write_shift(2,s),a.write_shift(4,0),a.write_shift(-4,g[d]),a.write_shift(4,A.length),a.write_shift(4,f.content.length),a.write_shift(2,y.length),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(4,0),a.write_shift(4,v),m+=a.l,i.push(a),m+=y.length,i.push(y),++d}return(a=HQ(22)).write_shift(4,101010256),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,d),a.write_shift(2,d),a.write_shift(4,m),a.write_shift(4,u),a.write_shift(2,0),S$([S$(r),S$(i),a])}(e,n);var r=function(e){for(var t=0,n=0,r=0;r<e.FileIndex.length;++r){var o=e.FileIndex[r];if(o.content){var i=o.content.length;i>0&&(i<4096?t+=i+63>>6:n+=i+511>>9)}}for(var a=e.FullPaths.length+3>>2,s=t+127>>7,l=(t+7>>3)+n+a+s,c=l+127>>7,u=c<=109?0:Math.ceil((c-109)/127);l+c+u+127>>7>c;)u=++c<=109?0:Math.ceil((c-109)/127);var d=[1,u,c,s,a,n,t,0];return e.FileIndex[0].size=t<<6,d[7]=(e.FileIndex[0].start=d[0]+d[1]+d[2]+d[3]+d[4]+d[5])+(d[6]+7>>3),d}(e),i=HQ(r[7]<<9),a=0,s=0;for(a=0;a<8;++a)i.write_shift(1,A[a]);for(a=0;a<8;++a)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),a=0;a<3;++a)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,r[2]),i.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:v),i.write_shift(4,r[3]),i.write_shift(-4,r[1]?r[0]-1:v),i.write_shift(4,r[1]),a=0;a<109;++a)i.write_shift(-4,a<r[2]?r[1]+a:-1);if(r[1])for(s=0;s<r[1];++s){for(;a<236+127*s;++a)i.write_shift(-4,a<r[2]?r[1]+a:-1);i.write_shift(-4,s===r[1]-1?v:s+1)}var l=function(e){for(s+=e;a<s-1;++a)i.write_shift(-4,a+1);e&&(++a,i.write_shift(-4,v))};for(s=a=0,s+=r[1];a<s;++a)i.write_shift(-4,b.DIFSECT);for(s+=r[2];a<s;++a)i.write_shift(-4,b.FATSECT);l(r[3]),l(r[4]);for(var c=0,u=0,d=e.FileIndex[0];c<e.FileIndex.length;++c)(d=e.FileIndex[c]).content&&((u=d.content.length)<4096||(d.start=s,l(u+511>>9)));for(l(r[6]+7>>3);511&i.l;)i.write_shift(-4,b.ENDOFCHAIN);for(s=a=0,c=0;c<e.FileIndex.length;++c)(d=e.FileIndex[c]).content&&(!(u=d.content.length)||u>=4096||(d.start=s,l(u+63>>6)));for(;511&i.l;)i.write_shift(-4,b.ENDOFCHAIN);for(a=0;a<r[4]<<2;++a){var p=e.FullPaths[a];if(p&&0!==p.length){d=e.FileIndex[a],0===a&&(d.start=d.size?d.start-1:v);var f=0===a&&n.root||d.name;if(f.length>31&&(console.error("Name "+f+" will be truncated to "+f.slice(0,31)),f=f.slice(0,31)),u=2*(f.length+1),i.write_shift(64,f,"utf16le"),i.write_shift(2,u),i.write_shift(1,d.type),i.write_shift(1,d.color),i.write_shift(-4,d.L),i.write_shift(-4,d.R),i.write_shift(-4,d.C),d.clsid)i.write_shift(16,d.clsid,"hex");else for(c=0;c<4;++c)i.write_shift(4,0);i.write_shift(4,d.state||0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,d.start),i.write_shift(4,d.size),i.write_shift(4,0)}else{for(c=0;c<17;++c)i.write_shift(4,0);for(c=0;c<3;++c)i.write_shift(4,-1);for(c=0;c<12;++c)i.write_shift(4,0)}}for(a=1;a<e.FileIndex.length;++a)if((d=e.FileIndex[a]).size>=4096)if(i.l=d.start+1<<9,y$&&Buffer.isBuffer(d.content))d.content.copy(i,i.l,0,d.size),i.l+=d.size+511&-512;else{for(c=0;c<d.size;++c)i.write_shift(1,d.content[c]);for(;511&c;++c)i.write_shift(1,0)}for(a=1;a<e.FileIndex.length;++a)if((d=e.FileIndex[a]).size>0&&d.size<4096)if(y$&&Buffer.isBuffer(d.content))d.content.copy(i,i.l,0,d.size),i.l+=d.size+63&-64;else{for(c=0;c<d.size;++c)i.write_shift(1,d.content[c]);for(;63&c;++c)i.write_shift(1,0)}if(y$)i.l=i.length;else for(;i.l<i.length;)i.write_shift(1,0);return i}t.version="1.2.2";var g,m=64,v=-2,y="d0cf11e0a1b11ae1",A=[208,207,17,224,161,177,26,225],w="00000000000000000000000000000000",b={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:v,FREESECT:-1,HEADER_SIGNATURE:y,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:w,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function _(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function C(e){return g?g.deflateRawSync(e):Q(e)}var E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],O=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function x(e){var t=139536&(e<<1|e<<11)|558144&(e<<5|e<<15);return 255&(t>>16|t>>8|t)}for(var D="undefined"!=typeof Uint8Array,P=D?new Uint8Array(256):[],M=0;M<256;++M)P[M]=x(M);function T(e,t){var n=P[255&e];return t<=8?n>>>8-t:(n=n<<8|P[e>>8&255],t<=16?n>>>16-t:(n=n<<8|P[e>>16&255])>>>24-t)}function R(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function I(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function F(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function k(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function L(e,t,n){var r=7&t,o=t>>>3,i=(1<<n)-1,a=e[o]>>>r;return n<8-r?a&i:(a|=e[o+1]<<8-r,n<16-r?a&i:(a|=e[o+2]<<16-r,n<24-r?a&i:(a|=e[o+3]<<24-r)&i))}function B(e,t,n){var r=7&t,o=t>>>3;return r<=5?e[o]|=(7&n)<<r:(e[o]|=n<<r&255,e[o+1]=(7&n)>>8-r),t+3}function N(e,t,n){return n=(1&n)<<(7&t),e[t>>>3]|=n,t+1}function j(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=n,t+8}function U(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=255&n,e[r+2]=n>>>8,t+16}function V(e,t){var n=e.length,r=2*n>t?2*n:t+5,o=0;if(n>=t)return e;if(y$){var i=_$(r);if(e.copy)e.copy(i);else for(;o<e.length;++o)i[o]=e[o];return i}if(D){var a=new Uint8Array(r);if(a.set)a.set(e);else for(;o<n;++o)a[o]=e[o];return a}return e.length=r,e}function H(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function G(e,t,n){var r=1,o=0,i=0,a=0,s=0,l=e.length,c=D?new Uint16Array(32):H(32);for(i=0;i<32;++i)c[i]=0;for(i=l;i<n;++i)e[i]=0;l=e.length;var u=D?new Uint16Array(l):H(l);for(i=0;i<l;++i)c[o=e[i]]++,r<o&&(r=o),u[i]=0;for(c[0]=0,i=1;i<=r;++i)c[i+16]=s=s+c[i-1]<<1;for(i=0;i<l;++i)0!=(s=e[i])&&(u[i]=c[s+16]++);var d=0;for(i=0;i<l;++i)if(0!=(d=e[i]))for(s=T(u[i],r)>>r-d,a=(1<<r+4-d)-1;a>=0;--a)t[s|a<<d]=15&d|i<<4;return r}var W=D?new Uint16Array(512):H(512),z=D?new Uint16Array(32):H(32);if(!D){for(var $=0;$<512;++$)W[$]=0;for($=0;$<32;++$)z[$]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);G(e,z,32);var n=[];for(t=0;t<=143;t++)n.push(8);for(;t<=255;t++)n.push(9);for(;t<=279;t++)n.push(7);for(;t<=287;t++)n.push(8);G(n,W,288)}();var K=function(){for(var e=D?new Uint8Array(32768):[],t=0,n=0;t<O.length-1;++t)for(;n<O[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var r=D?new Uint8Array(259):[];for(t=0,n=0;t<S.length-1;++t)for(;n<S[t+1];++n)r[n]=t;return function(t,n){return t.length<8?function(e,t){for(var n=0;n<e.length;){var r=Math.min(65535,e.length-n),o=n+r==e.length;for(t.write_shift(1,+o),t.write_shift(2,r),t.write_shift(2,65535&~r);r-- >0;)t[t.l++]=e[n++]}return t.l}(t,n):function(t,n){for(var o=0,i=0,a=D?new Uint16Array(32768):[];i<t.length;){var s=Math.min(65535,t.length-i);if(s<10){for(7&(o=B(n,o,+!(i+s!=t.length)))&&(o+=8-(7&o)),n.l=o/8|0,n.write_shift(2,s),n.write_shift(2,65535&~s);s-- >0;)n[n.l++]=t[i++];o=8*n.l}else{o=B(n,o,+!(i+s!=t.length)+2);for(var l=0;s-- >0;){var c=t[i],u=-1,d=0;if((u=a[l=32767&(l<<5^c)])&&((u|=-32768&i)>i&&(u-=32768),u<i))for(;t[u+d]==t[i+d]&&d<250;)++d;if(d>2){(c=r[d])<=22?o=j(n,o,P[c+1]>>1)-1:(j(n,o,3),j(n,o+=5,P[c-23]>>5),o+=3);var p=c<8?0:c-4>>2;p>0&&(U(n,o,d-S[c]),o+=p),c=e[i-u],o=j(n,o,P[c]>>3),o-=3;var h=c<4?0:c-2>>1;h>0&&(U(n,o,i-u-O[c]),o+=h);for(var f=0;f<d;++f)a[l]=32767&i,l=32767&(l<<5^t[i]),++i;s-=d-1}else c<=143?c+=48:o=N(n,o,1),o=j(n,o,P[c]),a[l]=32767&i,++i}o=j(n,o,0)-1}}return n.l=(o+7)/8|0,n.l}(t,n)}}();function Q(e){var t=HQ(50+Math.floor(1.1*e.length)),n=K(e,t);return t.slice(0,n)}var q=D?new Uint16Array(32768):H(32768),Y=D?new Uint16Array(32768):H(32768),X=D?new Uint16Array(128):H(128),Z=1,J=1;function ee(e,t){var n=F(e,t)+257,r=F(e,t+=5)+1,o=function(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}(e,t+=5)+4;t+=4;for(var i=0,a=D?new Uint8Array(19):H(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,c=D?new Uint8Array(8):H(8),u=D?new Uint8Array(8):H(8),d=a.length,p=0;p<o;++p)a[E[p]]=i=I(e,t),l<i&&(l=i),c[i]++,t+=3;var h=0;for(c[0]=0,p=1;p<=l;++p)u[p]=h=h+c[p-1]<<1;for(p=0;p<d;++p)0!=(h=a[p])&&(s[p]=u[h]++);var f=0;for(p=0;p<d;++p)if(0!=(f=a[p])){h=P[s[p]]>>8-f;for(var g=(1<<7-f)-1;g>=0;--g)X[h|g<<f]=7&f|p<<3}var m=[];for(l=1;m.length<n+r;)switch(t+=7&(h=X[k(e,t)]),h>>>=3){case 16:for(i=3+R(e,t),t+=2,h=m[m.length-1];i-- >0;)m.push(h);break;case 17:for(i=3+I(e,t),t+=3;i-- >0;)m.push(0);break;case 18:for(i=11+k(e,t),t+=7;i-- >0;)m.push(0);break;default:m.push(h),l<h&&(l=h)}var v=m.slice(0,n),y=m.slice(n);for(p=n;p<286;++p)v[p]=0;for(p=r;p<30;++p)y[p]=0;return Z=G(v,q,286),J=G(y,Y,30),t}function te(e,t){var n=function(e,t){if(3==e[0]&&!(3&e[1]))return[b$(t),2];for(var n=0,r=0,o=_$(t||1<<18),i=0,a=o.length>>>0,s=0,l=0;!(1&r);)if(r=I(e,n),n+=3,r>>>1!=0)for(r>>1==1?(s=9,l=5):(n=ee(e,n),s=Z,l=J);;){!t&&a<i+32767&&(a=(o=V(o,i+32767)).length);var c=L(e,n,s),u=r>>>1==1?W[c]:q[c];if(n+=15&u,(u>>>=4)>>>8&255){if(256==u)break;var d=(u-=257)<8?0:u-4>>2;d>5&&(d=0);var p=i+S[u];d>0&&(p+=L(e,n,d),n+=d),c=L(e,n,l),n+=15&(u=r>>>1==1?z[c]:Y[c]);var h=(u>>>=4)<4?0:u-2>>1,f=O[u];for(h>0&&(f+=L(e,n,h),n+=h),!t&&a<p&&(a=(o=V(o,p+100)).length);i<p;)o[i]=o[i-f],++i}else o[i++]=u}else{7&n&&(n+=8-(7&n));var g=e[n>>>3]|e[(n>>>3)+1]<<8;if(n+=32,g>0)for(!t&&a<i+g&&(a=(o=V(o,i+g)).length);g-- >0;)o[i++]=e[n>>>3],n+=8}return t?[o,n+7>>>3]:[o.slice(0,i),n+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function ne(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function re(e,t){var n=e;VQ(n,0);var r={FileIndex:[],FullPaths:[]};p(r,{root:t.root});for(var o=n.length-4;(80!=n[o]||75!=n[o+1]||5!=n[o+2]||6!=n[o+3])&&o>=0;)--o;n.l=o+4,n.l+=4;var a=n.read_shift(2);n.l+=6;var s=n.read_shift(4);for(n.l=s,o=0;o<a;++o){n.l+=20;var l=n.read_shift(4),c=n.read_shift(4),u=n.read_shift(2),d=n.read_shift(2),h=n.read_shift(2);n.l+=8;var f=n.read_shift(4),g=i(n.slice(n.l+u,n.l+u+d));n.l+=u+d+h;var m=n.l;n.l=f+4,g&&g[1]&&((g[1]||{}).usz&&(c=g[1].usz),(g[1]||{}).csz&&(l=g[1].csz)),oe(n,l,c,r,g),n.l=m}return r}function oe(e,t,n,r,o){e.l+=2;var a=e.read_shift(2),s=e.read_shift(2),l=function(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,o=31&n,i=15&(n>>>=5);n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(i-1),r.setDate(o);var a=31&t,s=63&(t>>>=5);return t>>>=6,r.setHours(t),r.setMinutes(s),r.setSeconds(a<<1),r}(e);if(8257&a)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var c=e.read_shift(4),u=e.read_shift(4),d=e.read_shift(2),p=e.read_shift(2),h="",f=0;f<d;++f)h+=String.fromCharCode(e[e.l++]);if(p){var m=i(e.slice(e.l,e.l+p));(m[21589]||{}).mt&&(l=m[21589].mt),(m[1]||{}).usz&&(u=m[1].usz),(m[1]||{}).csz&&(c=m[1].csz),o&&((o[21589]||{}).mt&&(l=o[21589].mt),(o[1]||{}).usz&&(u=o[1].usz),(o[1]||{}).csz&&(c=o[1].csz))}e.l+=p;var v=e.slice(e.l,e.l+c);switch(s){case 8:v=function(e,t){if(!g)return te(e,t);var n=new(0,g.InflateRaw),r=n._processChunk(e.slice(e.l),n._finishFlushFlag);return e.l+=n.bytesRead,r}(e,u);break;case 0:e.l+=c;break;default:throw new Error("Unsupported ZIP Compression method "+s)}var y=!1;8&a&&(134695760==e.read_shift(4)&&(e.read_shift(4),y=!0),c=e.read_shift(4),u=e.read_shift(4)),c!=t&&ne(y,"Bad compressed size: "+t+" != "+c),u!=n&&ne(y,"Bad uncompressed size: "+n+" != "+u),ue(r,h,v,{unsafe:!0,mt:l})}var ie={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ae(e,t){if(e.ctype)return e.ctype;var n=e.name||"",r=n.match(/\.([^\.]+)$/);return r&&ie[r[1]]||t&&(r=(n=t).match(/[\.\\]([^\.\\])+$/))&&ie[r[1]]?ie[r[1]]:"application/octet-stream"}function se(e){for(var t=m$(e),n=[],r=0;r<t.length;r+=76)n.push(t.slice(r,r+76));return n.join("\r\n")+"\r\n"}function le(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)});"\n"==(t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(t="=0D"+t.slice(1));for(var n=[],r=(t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),o=0;o<r.length;++o){var i=r[o];if(0!=i.length)for(var a=0;a<i.length;){var s=76,l=i.slice(a,a+s);"="==l.charAt(s-1)?s--:"="==l.charAt(s-2)?s-=2:"="==l.charAt(s-3)&&(s-=3),l=i.slice(a,a+s),(a+=s)<i.length&&(l+="="),n.push(l)}else n.push("")}return n.join("\r\n")}function ce(e,t,n){for(var r,o="",i="",a="",s=0;s<10;++s){var l=t[s];if(!l||l.match(/^\s*$/))break;var c=l.match(/^([^:]*?):\s*([^\s].*)$/);if(c)switch(c[1].toLowerCase()){case"content-location":o=c[2].trim();break;case"content-type":a=c[2].trim();break;case"content-transfer-encoding":i=c[2].trim()}}switch(++s,i.toLowerCase()){case"base64":r=C$(v$(t.slice(s).join("")));break;case"quoted-printable":r=function(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n];n<=e.length&&"="==r.charAt(r.length-1);)r=r.slice(0,r.length-1)+e[++n];t.push(r)}for(var o=0;o<t.length;++o)t[o]=t[o].replace(/[=][0-9A-Fa-f]{2}/g,function(e){return String.fromCharCode(parseInt(e.slice(1),16))});return C$(t.join("\r\n"))}(t.slice(s));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+i)}var u=ue(e,o.slice(n.length),r,{unsafe:!0});a&&(u.ctype=a)}function ue(e,t,n,o){var i=o&&o.unsafe;i||p(e);var a=!i&&fK.find(e,t);if(!a){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:("/"!=s.slice(-1)&&(s+="/"),s=(s+t).replace("//","/")),a={name:r(t),type:2},e.FileIndex.push(a),e.FullPaths.push(s),i||fK.utils.cfb_gc(e)}return a.content=n,a.size=n?n.length:0,o&&(o.CLSID&&(a.clsid=o.CLSID),o.mt&&(a.mt=o.mt),o.ct&&(a.ct=o.ct)),a}return t.find=function(e,t){var n=e.FullPaths.map(function(e){return e.toUpperCase()}),r=n.map(function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]}),o=!1;47===t.charCodeAt(0)?(o=!0,t=n[0].slice(0,-1)+t):o=-1!==t.indexOf("/");var i=t.toUpperCase(),a=!0===o?n.indexOf(i):r.indexOf(i);if(-1!==a)return e.FileIndex[a];var s=!i.match(x$);for(i=i.replace(O$,""),s&&(i=i.replace(x$,"!")),a=0;a<n.length;++a){if((s?n[a].replace(x$,"!"):n[a]).replace(O$,"")==i)return e.FileIndex[a];if((s?r[a].replace(x$,"!"):r[a]).replace(O$,"")==i)return e.FileIndex[a]}return null},t.read=function(t,n){var r=n&&n.type;switch(r||y$&&Buffer.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return function(t,n){return a(),s(e.readFileSync(t),n)}(t,n);case"base64":return s(C$(v$(t)),n);case"binary":return s(C$(t),n)}return s(t,n)},t.parse=s,t.write=function(t,n){var r=f(t,n);switch(n&&n.type||"buffer"){case"file":return a(),e.writeFileSync(n.filename,r),r;case"binary":return"string"==typeof r?r:_(r);case"base64":return m$("string"==typeof r?r:_(r));case"buffer":if(y$)return Buffer.isBuffer(r)?r:A$(r);case"array":return"string"==typeof r?C$(r):r}return r},t.writeFile=function(t,n,r){a();var o=f(t,r);e.writeFileSync(n,o)},t.utils={cfb_new:function(e){var t={};return p(t,e),t},cfb_add:ue,cfb_del:function(e,t){p(e);var n=fK.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1},cfb_mov:function(e,t,n){p(e);var o=fK.find(e,t);if(o)for(var i=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==o)return e.FileIndex[i].name=r(n),e.FullPaths[i]=n,!0;return!1},cfb_gc:function(e){h(e,!0)},ReadShift:kQ,CheckField:UQ,prep_blob:VQ,bconcat:S$,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");g=e}catch(e){console.error("cannot use native zlib: "+(e.message||e))}},_deflateRaw:Q,_inflateRaw:te,consts:b},t}();function gK(e){return"string"==typeof e?E$(e):Array.isArray(e)?function(e){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}(e):e}function mK(e,t,n){if("undefined"!=typeof Deno){if(n&&"string"==typeof t)switch(n){case"utf8":t=new TextEncoder(n).encode(t);break;case"binary":t=E$(t);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(e,t)}var r="utf8"==n?XK(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(r,e);if("undefined"!=typeof Blob){var o=new Blob([gK(r)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(o,e);if("undefined"!=typeof saveAs)return saveAs(o,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(o);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var a=document.createElement("a");if(null!=a.download)return a.download=e,a.href=i,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}else if("undefined"!=typeof URL&&!URL.createObjectURL&&"object"==typeof chrome){var s="data:application/octet-stream;base64,"+function(e){for(var t="",n=0,r=0,o=0,i=0,a=0,s=0,l=0,c=0;c<e.length;)i=(n=e[c++])>>2,a=(3&n)<<4|(r=e[c++])>>4,s=(15&r)<<2|(o=e[c++])>>6,l=63&o,isNaN(r)?s=l=64:isNaN(o)&&(l=64),t+=g$.charAt(i)+g$.charAt(a)+g$.charAt(s)+g$.charAt(l);return t}(new Uint8Array(gK(r)));return chrome.downloads.download({url:s,filename:e,saveAs:!0})}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var l=File(e);return l.open("w"),l.encoding="binary",Array.isArray(t)&&(t=function(e){if(Array.isArray(e))return e.map(function(e){return String.fromCharCode(e)}).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}(t)),l.write(t),l.close(),t}catch(e){if(!e.message||-1==e.message.indexOf("onstruct"))throw e}throw new Error("cannot save file "+e)}function vK(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}var yK=Date.UTC(1899,11,30,0,0,0),AK=Date.UTC(1899,11,31,0,0,0),wK=Date.UTC(1904,0,1,0,0,0);function bK(e,t){var n=(e.getTime()-yK)/864e5;return t?(n-=1462)<-1402?n-1:n:n<60?n-1:n}function _K(e){if(e>=60&&e<61)return e;var t=new Date;return t.setTime(24*(e>60?e:e+1)*60*60*1e3+yK),t}var CK=/^(\d+):(\d+)(:\d+)?(\.\d+)?$/,EK=/^(\d+)-(\d+)-(\d+)$/,SK=/^(\d+)-(\d+)-(\d+)[T ](\d+):(\d+)(:\d+)?(\.\d+)?$/;function OK(e,t){if(e instanceof Date)return e;var n=e.match(CK);return n?new Date((t?wK:AK)+1e3*(60*(60*parseInt(n[1],10)+parseInt(n[2],10))+(n[3]?parseInt(n[3].slice(1),10):0))+(n[4]?parseInt((n[4]+"000").slice(1,4),10):0)):(n=e.match(EK))?new Date(Date.UTC(+n[1],+n[2]-1,+n[3],0,0,0,0)):(n=e.match(SK))?new Date(Date.UTC(+n[1],+n[2]-1,+n[3],+n[4],+n[5],n[6]&&parseInt(n[6].slice(1),10)||0,n[7]&&parseInt((n[7]+"0000").slice(1,4),10)||0)):new Date(e)}function xK(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=xK(e[n]));return t}function DK(e,t){for(var n="";n.length<t;)n+=e;return n}function PK(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var n=1,r=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return n*=100,""});return isNaN(t=Number(r))?(r=r.replace(/[(]([^()]*)[)]/,function(e,t){return n=-n,t}),isNaN(t=Number(r))?t:t/n):t/n}var MK=/^(0?\d|1[0-2])(?:|:([0-5]?\d)(?:|(\.\d+)(?:|:([0-5]?\d))|:([0-5]?\d)(|\.\d+)))\s+([ap])m?$/,TK=/^([01]?\d|2[0-3])(?:|:([0-5]?\d)(?:|(\.\d+)(?:|:([0-5]?\d))|:([0-5]?\d)(|\.\d+)))$/,RK=/^(\d+)-(\d+)-(\d+)[T ](\d+):(\d+)(:\d+)(\.\d+)?[Z]?$/,IK=-177984e5==new Date("6/9/69 00:00 UTC").valueOf(),FK=["january","february","march","april","may","june","july","august","september","october","november","december"];function kK(e){if(RK.test(e))return-1==e.indexOf("Z")?BK(new Date(e)):new Date(e);var t=e.toLowerCase(),n=t.replace(/\s+/g," ").trim(),r=n.match(MK);if(r)return function(e){return e[2]?e[3]?e[4]?new Date(Date.UTC(1899,11,31,+e[1]%12+("p"==e[7]?12:0),+e[2],+e[4],1e3*parseFloat(e[3]))):new Date(Date.UTC(1899,11,31,"p"==e[7]?12:0,+e[1],+e[2],1e3*parseFloat(e[3]))):e[5]?new Date(Date.UTC(1899,11,31,+e[1]%12+("p"==e[7]?12:0),+e[2],+e[5],e[6]?1e3*parseFloat(e[6]):0)):new Date(Date.UTC(1899,11,31,+e[1]%12+("p"==e[7]?12:0),+e[2],0,0)):new Date(Date.UTC(1899,11,31,+e[1]%12+("p"==e[7]?12:0),0,0,0))}(r);if(r=n.match(TK))return function(e){return e[2]?e[3]?e[4]?new Date(Date.UTC(1899,11,31,+e[1],+e[2],+e[4],1e3*parseFloat(e[3]))):new Date(Date.UTC(1899,11,31,0,+e[1],+e[2],1e3*parseFloat(e[3]))):e[5]?new Date(Date.UTC(1899,11,31,+e[1],+e[2],+e[5],e[6]?1e3*parseFloat(e[6]):0)):new Date(Date.UTC(1899,11,31,+e[1],+e[2],0,0)):new Date(Date.UTC(1899,11,31,+e[1],0,0,0))}(r);if(r=n.match(SK))return new Date(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4],+r[5],r[6]&&parseInt(r[6].slice(1),10)||0,r[7]&&parseInt((r[7]+"0000").slice(1,4),10)||0));var o=new Date(IK&&-1==e.indexOf("UTC")?e+" UTC":e),i=new Date(NaN),a=o.getYear(),s=(o.getMonth(),o.getDate());if(isNaN(s))return i;if(t.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((t=t.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==FK.indexOf(t))return i}else if(t.replace(/[ap]m?/,"").match(/[a-z]/))return i;return a<0||a>8099||e.match(/[^-0-9:,\/\\\ ]/)?i:o}function LK(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function BK(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))}function NK(e,t,n){if(e.FullPaths){var r;if(Array.isArray(n)&&"string"==typeof n[0]&&(n=n.join("")),"string"==typeof n)return r=y$?A$(n):function(e){for(var t=[],n=0,r=e.length+250,o=b$(e.length+255),i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a<128)o[n++]=a;else if(a<2048)o[n++]=192|a>>6&31,o[n++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var s=1023&e.charCodeAt(++i);o[n++]=240|a>>8&7,o[n++]=128|a>>2&63,o[n++]=128|s>>6&15|(3&a)<<4,o[n++]=128|63&s}else o[n++]=224|a>>12&15,o[n++]=128|a>>6&63,o[n++]=128|63&a;n>r&&(t.push(o.slice(0,n)),n=0,o=b$(65535),r=65530)}return t.push(o.slice(0,n)),S$(t)}(n),fK.utils.cfb_add(e,t,r);fK.utils.cfb_add(e,t,n)}else e.file(t,n)}var jK='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',UK=function(e){for(var t=[],n=vK(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}({"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"}),VK=/[&<>'"]/g,HK=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function GK(e){return(e+"").replace(VK,function(e){return UK[e]}).replace(HK,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}var WK=/[\u0000-\u001f]/g;function zK(e){return(e+"").replace(VK,function(e){return UK[e]}).replace(/\n/g,"<br/>").replace(WK,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function $K(e){for(var t="",n=0,r=0,o=0,i=0,a=0,s=0;n<e.length;)(r=e.charCodeAt(n++))<128?t+=String.fromCharCode(r):(o=e.charCodeAt(n++),r>191&&r<224?(a=(31&r)<<6,a|=63&o,t+=String.fromCharCode(a)):(i=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&o)<<6|63&i):(s=((7&r)<<18|(63&o)<<12|(63&i)<<6|63&(a=e.charCodeAt(n++)))-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(1023&s)))));return t}function KK(e){var t,n,r,o=b$(2*e.length),i=1,a=0,s=0;for(n=0;n<e.length;n+=i)i=1,(r=e.charCodeAt(n))<128?t=r:r<224?(t=64*(31&r)+(63&e.charCodeAt(n+1)),i=2):r<240?(t=4096*(15&r)+64*(63&e.charCodeAt(n+1))+(63&e.charCodeAt(n+2)),i=3):(i=4,t=262144*(7&r)+4096*(63&e.charCodeAt(n+1))+64*(63&e.charCodeAt(n+2))+(63&e.charCodeAt(n+3)),s=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==s&&(o[a++]=255&s,o[a++]=s>>>8,s=0),o[a++]=t%256,o[a++]=t>>>8;return o.slice(0,a).toString("ucs2")}function QK(e){return A$(e,"binary").toString("utf8")}var qK="foo bar bazâð£",YK=y$&&(QK(qK)==$K(qK)&&QK||KK(qK)==$K(qK)&&KK)||$K,XK=y$?function(e){return A$(e,"utf8").toString("binary")}:function(e){for(var t=[],n=0,r=0,o=0;n<e.length;)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,o=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(o>>18&7))),t.push(String.fromCharCode(144+(o>>12&63))),t.push(String.fromCharCode(128+(o>>6&63))),t.push(String.fromCharCode(128+(63&o)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},ZK=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/(^|[^\t\n\r ])[\t\n\r ]+$/,"$1").replace(/>\s+/g,">").replace(/\b\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^<>]*>/g,""),r=0;r<e.length;++r)n=n.replace(e[r][0],e[r][1]);return n}}(),JK=/(^\s|\s$|\n)/;function eQ(e,t){return"<"+e+(t.match(JK)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function tQ(e){return vK(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function nQ(e,t,n){return"<"+e+(null!=n?tQ(n):"")+(null!=t?(t.match(JK)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function rQ(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(e){if(t)throw e}return""}var oQ="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",iQ="http://schemas.openxmlformats.org/officeDocument/2006/relationships",aQ="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",sQ="http://www.w3.org/2001/XMLSchema-instance",lQ=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],cQ=function(e){for(var t=[],n=0;n<e[0].length;++n)if(e[0][n])for(var r=0,o=e[0][n].length;r<o;r+=10240)t.push.apply(t,e[0][n].slice(r,r+10240));return t},uQ=y$?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(e){return Buffer.isBuffer(e)?e:A$(e)})):cQ(e)}:cQ,dQ=function(e,t,n){for(var r=[],o=t;o<n;o+=2)r.push(String.fromCharCode(MQ(e,o)));return r.join("").replace(O$,"")},pQ=y$?function(e,t,n){return Buffer.isBuffer(e)&&w$?e.toString("utf16le",t,n).replace(O$,""):dQ(e,t,n)}:dQ,hQ=function(e,t,n){for(var r=[],o=t;o<t+n;++o)r.push(("0"+e[o].toString(16)).slice(-2));return r.join("")},fQ=y$?function(e,t,n){return Buffer.isBuffer(e)?e.toString("hex",t,t+n):hQ(e,t,n)}:hQ,gQ=function(e,t,n){for(var r=[],o=t;o<n;o++)r.push(String.fromCharCode(PQ(e,o)));return r.join("")},mQ=y$?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf8",t,n):gQ(e,t,n)}:gQ,vQ=function(e,t){var n=RQ(e,t);return n>0?mQ(e,t+4,t+4+n-1):""},yQ=vQ,AQ=function(e,t){var n=RQ(e,t);return n>0?mQ(e,t+4,t+4+n-1):""},wQ=AQ,bQ=function(e,t){var n=2*RQ(e,t);return n>0?mQ(e,t+4,t+4+n-1):""},_Q=bQ,CQ=function(e,t){var n=RQ(e,t);return n>0?pQ(e,t+4,t+4+n):""},EQ=CQ,SQ=function(e,t){var n=RQ(e,t);return n>0?mQ(e,t+4,t+4+n):""},OQ=SQ,xQ=function(e,t){return function(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),o=15&e[t+6],i=5;i>=0;--i)o=256*o+e[t+i];return 2047==r?0==o?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,o+=Math.pow(2,52)),n*Math.pow(2,r-52)*o)}(e,t)},DQ=xQ;y$&&(yQ=function(e,t){if(!Buffer.isBuffer(e))return vQ(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},wQ=function(e,t){if(!Buffer.isBuffer(e))return AQ(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},_Q=function(e,t){if(!Buffer.isBuffer(e)||!w$)return bQ(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},EQ=function(e,t){if(!Buffer.isBuffer(e)||!w$)return CQ(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},OQ=function(e,t){if(!Buffer.isBuffer(e))return SQ(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},DQ=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):xQ(e,t)});var PQ=function(e,t){return e[t]},MQ=function(e,t){return 256*e[t+1]+e[t]},TQ=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},RQ=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},IQ=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},FQ=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function kQ(e,t){var n,r,o,i,a,s,l="",c=[];switch(t){case"dbcs":if(s=this.l,y$&&Buffer.isBuffer(this)&&w$)l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(a=0;a<e;++a)l+=String.fromCharCode(MQ(this,s)),s+=2;e*=2;break;case"utf8":l=mQ(this,this.l,this.l+e);break;case"utf16le":e*=2,l=pQ(this,this.l,this.l+e);break;case"wstr":return kQ.call(this,e,"dbcs");case"lpstr-ansi":l=yQ(this,this.l),e=4+RQ(this,this.l);break;case"lpstr-cp":l=wQ(this,this.l),e=4+RQ(this,this.l);break;case"lpwstr":l=_Q(this,this.l),e=4+2*RQ(this,this.l);break;case"lpp4":e=4+RQ(this,this.l),l=EQ(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+RQ(this,this.l),l=OQ(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,l="";0!==(o=PQ(this,this.l+e++));)c.push(f$(o));l=c.join("");break;case"_wstr":for(e=0,l="";0!==(o=MQ(this,this.l+e));)c.push(f$(o)),e+=2;e+=2,l=c.join("");break;case"dbcs-cont":for(l="",s=this.l,a=0;a<e;++a){if(this.lens&&-1!==this.lens.indexOf(s))return o=PQ(this,s),this.l=s+1,i=kQ.call(this,e-a,o?"dbcs-cont":"sbcs-cont"),c.join("")+i;c.push(f$(MQ(this,s))),s+=2}l=c.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(l="",s=this.l,a=0;a!=e;++a){if(this.lens&&-1!==this.lens.indexOf(s))return o=PQ(this,s),this.l=s+1,i=kQ.call(this,e-a,o?"dbcs-cont":"sbcs-cont"),c.join("")+i;c.push(f$(PQ(this,s))),s+=1}l=c.join("");break;default:switch(e){case 1:return n=PQ(this,this.l),this.l++,n;case 2:return n=("i"===t?TQ:MQ)(this,this.l),this.l+=2,n;case 4:case-4:return"i"!==t&&128&this[this.l+3]?(r=RQ(this,this.l),this.l+=4,r):(n=(e>0?IQ:FQ)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===t)return r=8==e?DQ(this,this.l):DQ([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:l=fQ(this,this.l,e)}}return this.l+=e,l}var LQ=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},BQ=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},NQ=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function jQ(e,t,n){var r=0,o=0;if("dbcs"===n){for(o=0;o!=t.length;++o)NQ(this,t.charCodeAt(o),this.l+2*o);r=2*t.length}else if("sbcs"===n||"cpstr"==n){for(t=t.replace(/[^\x00-\x7F]/g,"_"),o=0;o!=t.length;++o)this[this.l+o]=255&t.charCodeAt(o);r=t.length}else{if("hex"===n){for(;o<e;++o)this[this.l++]=parseInt(t.slice(2*o,2*o+2),16)||0;return this}if("utf16le"===n){var i=Math.min(this.l+e,this.length);for(o=0;o<Math.min(t.length,e);++o){var a=t.charCodeAt(o);this[this.l++]=255&a,this[this.l++]=a>>8}for(;this.l<i;)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,LQ(this,t,this.l);break;case 8:if(r=8,"f"===n){!function(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,o=0,i=0,a=r?-t:t;isFinite(a)?0==a?o=i=0:(o=Math.floor(Math.log(a)/Math.LN2),i=a*Math.pow(2,52-o),o<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?o=-1022:(i-=Math.pow(2,52),o+=1023)):(o=2047,i=isNaN(t)?26985:0);for(var s=0;s<=5;++s,i/=256)e[n+s]=255&i;e[n+6]=(15&o)<<4|15&i,e[n+7]=o>>4|r}(this,t,this.l);break}case 16:break;case-4:r=4,BQ(this,t,this.l)}}return this.l+=r,this}function UQ(e,t){var n=fQ(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function VQ(e,t){e.l=t,e.read_shift=kQ,e.chk=UQ,e.write_shift=jQ}function HQ(e){var t=b$(e);return VQ(t,0),t}function GQ(e){return""+(e+1)}function WQ(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function zQ(e){for(var t=0,n=0,r=0;r<e.length;++r){var o=e.charCodeAt(r);o>=48&&o<=57?t=10*t+(o-48):o>=65&&o<=90&&(n=26*n+(o-64))}return{c:n-1,r:t-1}}function $Q(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function KQ(e){var t=e.indexOf(":");return-1==t?{s:zQ(e),e:zQ(e)}:{s:zQ(e.slice(0,t)),e:zQ(e.slice(t+1))}}function QQ(e,t){return void 0===t||"number"==typeof t?QQ(e.s,e.e):("string"!=typeof e&&(e=$Q(e)),"string"!=typeof t&&(t=$Q(t)),e==t?e:e+":"+t)}function qQ(e){var t=KQ(e);return"$"+WQ(t.s.c)+"$"+GQ(t.s.r)+":$"+WQ(t.e.c)+"$"+GQ(t.e.r)}function YQ(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e.replace(/'/g,"''")+"'":e}function XQ(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,o=0,i=e.length;for(n=0;r<i&&!((o=e.charCodeAt(r)-64)<1||o>26);++r)n=26*n+o;for(t.s.c=--n,n=0;r<i&&!((o=e.charCodeAt(r)-48)<0||o>9);++r)n=10*n+o;if(t.s.r=--n,r===i||10!=o)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=i&&!((o=e.charCodeAt(r)-64)<1||o>26);++r)n=26*n+o;for(t.e.c=--n,n=0;r!=i&&!((o=e.charCodeAt(r)-48)<0||o>9);++r)n=10*n+o;return t.e.r=--n,t}function ZQ(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?eq[e.v]||e.v:function(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=cK(e.z,n?bK(t):t)}catch(e){}try{return e.w=cK((e.XF||{}).numFmtId||(n?14:0),n?bK(t):t)}catch(e){return""+t}}(e,null==t?e.v:t))}function JQ(e,t,n){var r=n||{},o=e?null!=e["!data"]:r.dense,i=e||(o?{"!data":[]}:{});o&&!i["!data"]&&(i["!data"]=[]);var a=0,s=0;if(i&&null!=r.origin)if("number"==typeof r.origin)a=r.origin;else{var l="string"==typeof r.origin?zQ(r.origin):r.origin;a=l.r,s=l.c}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var u=XQ(i["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),-1==a&&(c.e.r=a=i["!ref"]?u.e.r+1:0)}else c.s.c=c.e.c=c.s.r=c.e.r=0;for(var d=[],p=!1,h=0;h!=t.length;++h)if(t[h]){if(!Array.isArray(t[h]))throw new Error("aoa_to_sheet expects an array of arrays");var f=a+h;o&&(i["!data"][f]||(i["!data"][f]=[]),d=i["!data"][f]);for(var g=t[h],m=0;m!=g.length;++m)if(void 0!==g[m]){var v={v:g[m],t:""},y=s+m;if(c.s.r>f&&(c.s.r=f),c.s.c>y&&(c.s.c=y),c.e.r<f&&(c.e.r=f),c.e.c<y&&(c.e.c=y),p=!0,!g[m]||"object"!=typeof g[m]||Array.isArray(g[m])||g[m]instanceof Date)if(Array.isArray(v.v)&&(v.f=g[m][1],v.v=v.v[0]),null===v.v)if(v.f)v.t="n";else if(r.nullError)v.t="e",v.v=0;else{if(!r.sheetStubs)continue;v.t="z"}else"number"==typeof v.v?isFinite(v.v)?v.t="n":isNaN(v.v)?(v.t="e",v.v=15):(v.t="e",v.v=7):"boolean"==typeof v.v?v.t="b":v.v instanceof Date?(v.z=r.dateNF||B$[14],r.UTC||(v.v=BK(v.v)),r.cellDates?(v.t="d",v.w=cK(v.z,bK(v.v,r.date1904))):(v.t="n",v.v=bK(v.v,r.date1904),v.w=cK(v.z,v.v))):v.t="s";else v=g[m];if(o)d[y]&&d[y].z&&(v.z=d[y].z),d[y]=v;else{var A=WQ(y)+(f+1);i[A]&&i[A].z&&(v.z=i[A].z),i[A]=v}}}return p&&c.s.c<104e5&&(i["!ref"]=QQ(c)),i}var eq={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},tq={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},nq={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},rq={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}},oq={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",CONN:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function iq(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function aq(e){var t=[jK,nQ("Relationships",null,{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"})];return vK(e["!id"]).forEach(function(n){t[t.length]=nQ("Relationship",null,e["!id"][n])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function sq(e,t,n,r,o,i){if(o||(o={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,o.Id="rId"+t,o.Type=r,o.Target=n,i?o.TargetMode=i:[oq.HLINK,oq.XPATH,oq.XMISS].indexOf(o.Type)>-1&&(o.TargetMode="External"),e["!id"][o.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][o.Id]=o,e[("/"+o.Target).replace("//","/")]=o,t}var lq=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function cq(e,t,n,r,o){null==o[e]&&null!=t&&""!==t&&(o[e]=t,t=GK(t),r[r.length]=n?nQ(e,t,n):eQ(e,t))}var uq=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],dq=/^\s|\s$|[\t\n\r]/,pq=6;function hq(e){return 96*e/96}function fq(e,t,n){var r=[21600,21600],o=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[nQ("xml",null,{"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel","xmlns:mv":"http://macVmlSchemaUri"}).replace(/\/>/,">"),nQ("o:shapelayout",nQ("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"})],a=65536*e,s=t||[];return s.length>0&&i.push(nQ("v:shapetype",[nQ("v:stroke",null,{joinstyle:"miter"}),nQ("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202",coordsize:r.join(","),"o:spt":202,path:o})),s.forEach(function(e){++a,i.push(function(e,t){var n=zQ(e[0]),r={color2:"#BEFF82",type:"gradient"};"gradient"==r.type&&(r.angle="-180");var o="gradient"==r.type?nQ("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,i=nQ("v:fill",o,r);return["<v:shape"+tQ({id:"_x0000_s"+t,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",i,nQ("v:shadow",null,{on:"t",obscured:"t"}),nQ("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",eQ("x:Anchor",[n.c+1,0,n.r+1,0,n.c+3,20,n.r+5,20].join(",")),eQ("x:AutoFill","False"),eQ("x:Row",String(n.r)),eQ("x:Column",String(n.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"].join("")}(e,a))}),i.push("</xml>"),i.join("")}function gq(e){var t=[jK,nQ("comments",null,{xmlns:lQ[0]})],n=[];return t.push("<authors>"),e.forEach(function(e){e[1].forEach(function(e){var r=GK(e.a);-1==n.indexOf(r)&&(n.push(r),t.push("<author>"+r+"</author>")),e.T&&e.ID&&-1==n.indexOf("tc="+e.ID)&&(n.push("tc="+e.ID),t.push("<author>tc="+e.ID+"</author>"))})}),0==n.length&&(n.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(e){var r=0,o=[],i=0;if(e[1][0]&&e[1][0].T&&e[1][0].ID&&(r=n.indexOf("tc="+e[1][0].ID)),e[1].forEach(function(e){e.a&&(r=n.indexOf(GK(e.a))),e.T&&++i,o.push(null==e.t?"":GK(e.t))}),0===i)e[1].forEach(function(r){t.push('<comment ref="'+e[0]+'" authorId="'+n.indexOf(GK(r.a))+'"><text>'),t.push(eQ("t",null==r.t?"":GK(r.t))),t.push("</text></comment>")});else{e[1][0]&&e[1][0].T&&e[1][0].ID&&(r=n.indexOf("tc="+e[1][0].ID)),t.push('<comment ref="'+e[0]+'" authorId="'+r+'"><text>');for(var a="Comment:\n    "+o[0]+"\n",s=1;s<o.length;++s)a+="Reply:\n    "+o[s]+"\n";t.push(eQ("t",GK(a))),t.push("</text></comment>")}}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function mq(e,t,n){var r=[jK,nQ("ThreadedComments",null,{xmlns:oQ}).replace(/[\/]>/,">")];return e.forEach(function(e){var o="";(e[1]||[]).forEach(function(i,a){if(i.T){i.a&&-1==t.indexOf(i.a)&&t.push(i.a);var s={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==a?o=s.id:s.parentId=o,i.ID=s.id,i.a&&(s.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(i.a)).slice(-12)+"}"),r.push(nQ("threadedComment",eQ("text",i.t||""),s))}else delete i.ID})}),r.push("</ThreadedComments>"),r.join("")}var vq=["xlsb","xlsm","xlam","biff8","xla"],yq="undefined"!=typeof Map;function Aq(e,t){var n,r={min:e+1,max:e+1},o=-1;return t.MDW&&(pq=t.MDW),null!=t.width?r.customWidth=1:null!=t.wpx?o=function(e){return Math.floor((e-5)/pq*100+.5)/100}(t.wpx):null!=t.wch&&(o=t.wch),o>-1?(r.width=(n=o,Math.round((n*pq+5)/pq*256)/256),r.customWidth=1):null!=t.width&&(r.width=t.width),t.hidden&&(r.hidden=!0),null!=t.level&&(r.outlineLevel=r.level=t.level),r}function wq(e,t,n){var r=n.revssf[null!=t.z?t.z:"General"],o=60,i=e.length;if(null==r&&n.ssf)for(;o<392;++o)if(null==n.ssf[o]){pK(t.z,o),n.ssf[o]=t.z,n.revssf[t.z]=r=o;break}for(o=0;o!=i;++o)if(e[o].numFmtId===r)return o;return e[i]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function bq(e,t,n){if(e&&e["!ref"]){var r=XQ(e["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+n+"): "+e["!ref"])}}var _q=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Cq=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Eq(e,t,n,r,o,i,a){if(e.c&&n["!comments"].push([t,e.c]),(void 0===e.v||"z"===e.t&&!(r||{}).sheetStubs)&&"string"!=typeof e.f&&void 0===e.z)return"";var s="",l=e.t,c=e.v;if("z"!==e.t)switch(e.t){case"b":s=e.v?"1":"0";break;case"n":isNaN(e.v)?(e.t="e",s=eq[e.v=36]):isFinite(e.v)?s=""+e.v:(e.t="e",s=eq[e.v=7]);break;case"e":s=eq[e.v];break;case"d":if(r&&r.cellDates){var u=OK(e.v,a);s=u.toISOString(),u.getUTCFullYear()<1900&&(s=s.slice(s.indexOf("T")+1).replace("Z",""))}else(e=xK(e)).t="n",s=""+(e.v=bK(OK(e.v,a),a));void 0===e.z&&(e.z=B$[14]);break;default:s=e.v}var d="z"==e.t||null==e.v?"":eQ("v",GK(s)),p={r:t},h=wq(r.cellXfs,e,r);switch(0!==h&&(p.s=h),e.t){case"n":case"z":break;case"d":p.t="d";break;case"b":p.t="b";break;case"e":p.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){d=eQ("v",""+function(e,t,n){var r=0,o=e.length;if(n){if(yq?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var i=yq?n.get(t):n[t];r<i.length;++r)if(e[i[r]].t===t)return e.Count++,i[r]}else for(;r<o;++r)if(e[r].t===t)return e.Count++,r;return e[o]={t},e.Count++,e.Unique++,n&&(yq?(n.has(t)||n.set(t,[]),n.get(t).push(o)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(o))),o}(r.Strings,e.v,r.revStrings)),p.t="s";break}p.t="str"}if(e.t!=l&&(e.t=l,e.v=c),"string"==typeof e.f&&e.f){var f=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;d=nQ("f",GK(e.f),f)+(null!=e.v?d:"")}return e.l&&(e.l.display=GK(s),n["!links"].push([t,e.l])),e.D&&(p.cm=1),nQ("c",d,p)}function Sq(e,t,n,r){var o,i=[jK,nQ("worksheet",null,{xmlns:lQ[0],"xmlns:r":iQ})],a=n.SheetNames[e],s="",l=n.Sheets[a];null==l&&(l={});var c=l["!ref"]||"A1",u=XQ(c);if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=QQ(u)}r||(r={}),l["!comments"]=[];var d=[];!function(e,t,n,r,o){var i=!1,a={},s=null;if("xlsx"!==r.bookType&&t.vbaraw){var l=t.SheetNames[n];try{t.Workbook&&(l=t.Workbook.Sheets[n].CodeName||l)}catch(e){}i=!0,a.codeName=XK(GK(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),s=(s||"")+nQ("outlinePr",null,c)}(i||s)&&(o[o.length]=nQ("sheetPr",s,a))}(l,n,e,t,i),i[i.length]=nQ("dimension",null,{ref:c}),i[i.length]=function(e,t,n,r){var o={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(o.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),nQ("sheetViews",nQ("sheetView",null,o),{})}(0,0,0,n),t.sheetFormat&&(i[i.length]=nQ("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(i[i.length]=function(e,t){for(var n,r=["<cols>"],o=0;o!=t.length;++o)(n=t[o])&&(r[r.length]=nQ("col",null,Aq(o,n)));return r[r.length]="</cols>",r.join("")}(0,l["!cols"])),i[o=i.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(s=function(e,t,n,r){var o,i,a=[],s=[],l=XQ(e["!ref"]),c="",u="",d=[],p=0,h=0,f=e["!rows"],g=null!=e["!data"],m=g?e["!data"]:[],v={r:u},y=-1,A=(((r||{}).Workbook||{}).WBProps||{}).date1904;for(h=l.s.c;h<=l.e.c;++h)d[h]=WQ(h);for(p=l.s.r;p<=l.e.r;++p){s=[],u=GQ(p);var w=g?m[p]:[];for(h=l.s.c;h<=l.e.c;++h){o=d[h]+u;var b=g?w[h]:e[o];void 0!==b&&null!=(c=Eq(b,o,e,t,0,0,A))&&s.push(c)}(s.length>0||f&&f[p])&&(v={r:u},f&&f[p]&&((i=f[p]).hidden&&(v.hidden=1),y=-1,i.hpx?y=hq(i.hpx):i.hpt&&(y=i.hpt),y>-1&&(v.ht=y,v.customHeight=1),i.level&&(v.outlineLevel=i.level)),a[a.length]=nQ("row",s.join(""),v))}if(f)for(;p<f.length;++p)f&&f[p]&&(v={r:p+1},(i=f[p]).hidden&&(v.hidden=1),y=-1,i.hpx?y=hq(i.hpx):i.hpt&&(y=i.hpt),y>-1&&(v.ht=y,v.customHeight=1),i.level&&(v.outlineLevel=i.level),a[a.length]=nQ("row","",v));return a.join("")}(l,t,0,n),s.length>0&&(i[i.length]=s)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),l["!protect"]&&(i[i.length]=function(e){var t={sheet:1};return _q.forEach(function(n){null!=e[n]&&e[n]&&(t[n]="1")}),Cq.forEach(function(n){null==e[n]||e[n]||(t[n]="0")}),e.password&&(t.password=function(e){var t,n,r=0,o=function(e){for(var t=[],n=e.split(""),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}(e),i=o.length+1;for((t=b$(i))[0]=o.length,n=1;n!=i;++n)t[n]=o[n-1];for(n=i-1;n>=0;--n)r=((16384&r?1:0)|r<<1&32767)^t[n];return 52811^r}(e.password).toString(16).toUpperCase()),nQ("sheetProtection",null,t)}(l["!protect"])),null!=l["!autofilter"]&&(i[i.length]=function(e,t,n,r){var o="string"==typeof e.ref?e.ref:QQ(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var i=n.Workbook.Names,a=KQ(o);a.s.r==a.e.r&&(a.e.r=KQ(t["!ref"]).e.r,o=QQ(a));for(var s=0;s<i.length;++s){var l=i[s];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==r){l.Ref=YQ(n.SheetNames[r])+"!"+qQ(o);break}}return s==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+o}),nQ("autoFilter",null,{ref:o})}(l["!autofilter"],l,n,e)),null!=l["!merges"]&&l["!merges"].length>0&&(i[i.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',n=0;n!=e.length;++n)t+='<mergeCell ref="'+QQ(e[n])+'"/>';return t+"</mergeCells>"}(l["!merges"]));var p,h,f=-1,g=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(e){e[1].Target&&(p={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(g=sq(r,-1,GK(e[1].Target).replace(/#[\s\S]*$/,""),oq.HLINK),p["r:id"]="rId"+g),(f=e[1].Target.indexOf("#"))>-1&&(p.location=GK(e[1].Target.slice(f+1))),e[1].Tooltip&&(p.tooltip=GK(e[1].Tooltip)),p.display=e[1].display,i[i.length]=nQ("hyperlink",null,p))}),i[i.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(i[i.length]=(function(e){if(e){var t=[.7,.7,.75,.75,.3,.3];null==e.left&&(e.left=t[0]),null==e.right&&(e.right=t[1]),null==e.top&&(e.top=t[2]),null==e.bottom&&(e.bottom=t[3]),null==e.header&&(e.header=t[4]),null==e.footer&&(e.footer=t[5])}}(h=l["!margins"]),nQ("pageMargins",null,h))),t&&!t.ignoreEC&&null!=t.ignoreEC||(i[i.length]=eQ("ignoredErrors",nQ("ignoredError",null,{numberStoredAsText:1,sqref:c}))),d.length>0&&(g=sq(r,-1,"../drawings/drawing"+(e+1)+".xml",oq.DRAW),i[i.length]=nQ("drawing",null,{"r:id":"rId"+g}),l["!drawing"]=d),l["!comments"].length>0&&(g=sq(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",oq.VML),i[i.length]=nQ("legacyDrawing",null,{"r:id":"rId"+g}),l["!legacy"]=g),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}var Oq=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],xq=":][*?/\\".split("");function Dq(e,t){try{if(""==e)throw new Error("Sheet name cannot be blank");if(e.length>31)throw new Error("Sheet name cannot exceed 31 chars");if(39==e.charCodeAt(0)||39==e.charCodeAt(e.length-1))throw new Error("Sheet name cannot start or end with apostrophe (')");if("history"==e.toLowerCase())throw new Error("Sheet name cannot be 'History'");xq.forEach(function(t){if(-1!=e.indexOf(t))throw new Error("Sheet name cannot contain : \\ / ? * [ ]")})}catch(e){if(t)return!1;throw e}return!0}function Pq(e,t,n,r){for(var o=e["!merges"]||[],i=[],a={},s=null!=e["!data"],l=t.s.c;l<=t.e.c;++l){for(var c=0,u=0,d=0;d<o.length;++d)if(!(o[d].s.r>n||o[d].s.c>l||o[d].e.r<n||o[d].e.c<l)){if(o[d].s.r<n||o[d].s.c<l){c=-1;break}c=o[d].e.r-o[d].s.r+1,u=o[d].e.c-o[d].s.c+1;break}if(!(c<0)){var p=WQ(l)+GQ(n),h=s?(e["!data"][n]||[])[l]:e[p];h&&"n"==h.t&&null!=h.v&&!isFinite(h.v)&&(h=isNaN(h.v)?{t:"e",v:36,w:eq[36]}:{t:"e",v:7,w:eq[7]});var f=h&&null!=h.v&&(h.h||zK(h.w||(ZQ(h),h.w)||""))||"";a={},c>1&&(a.rowspan=c),u>1&&(a.colspan=u),r.editable?f='<span contenteditable="true">'+f+"</span>":h&&(a["data-t"]=h&&h.t||"z",null!=h.v&&(a["data-v"]=zK(h.v instanceof Date?h.v.toISOString():h.v)),null!=h.z&&(a["data-z"]=h.z),h.l&&"#"!=(h.l.Target||"#").charAt(0)&&(f='<a href="'+zK(h.l.Target)+'">'+f+"</a>")),a.id=(r.id||"sjs")+"-"+p,i.push(nQ("td",f,a))}}return"<tr>"+i.join("")+"</tr>"}function Mq(e,t,n){var r=t.rows;if(!r)throw"Unsupported origin when "+t.tagName+" is not a TABLE";var o=n||{},i=null!=e["!data"],a=0,s=0;if(null!=o.origin)if("number"==typeof o.origin)a=o.origin;else{var l="string"==typeof o.origin?zQ(o.origin):o.origin;a=l.r,s=l.c}var c=Math.min(o.sheetRows||1e7,r.length),u={s:{r:0,c:0},e:{r:a,c:s}};if(e["!ref"]){var d=KQ(e["!ref"]);u.s.r=Math.min(u.s.r,d.s.r),u.s.c=Math.min(u.s.c,d.s.c),u.e.r=Math.max(u.e.r,d.e.r),u.e.c=Math.max(u.e.c,d.e.c),-1==a&&(u.e.r=a=d.e.r+1)}var p=[],h=0,f=e["!rows"]||(e["!rows"]=[]),g=0,m=0,v=0,y=0,A=0,w=0;for(e["!cols"]||(e["!cols"]=[]);g<r.length&&m<c;++g){var b=r[g];if(Rq(b)){if(o.display)continue;f[m]={hidden:!0}}var _=b.cells;for(v=y=0;v<_.length;++v){var C=_[v];if(!o.display||!Rq(C)){var E=C.hasAttribute("data-v")?C.getAttribute("data-v"):C.hasAttribute("v")?C.getAttribute("v"):ZK(C.innerHTML),S=C.getAttribute("data-z")||C.getAttribute("z");for(h=0;h<p.length;++h){var O=p[h];O.s.c==y+s&&O.s.r<m+a&&m+a<=O.e.r&&(y=O.e.c+1-s,h=-1)}w=+C.getAttribute("colspan")||1,((A=+C.getAttribute("rowspan")||1)>1||w>1)&&p.push({s:{r:m+a,c:y+s},e:{r:m+a+(A||1)-1,c:y+s+(w||1)-1}});var x={t:"s",v:E},D=C.getAttribute("data-t")||C.getAttribute("t")||"";null!=E&&(0==E.length?x.t=D||"z":o.raw||0==E.trim().length||"s"==D||("e"==D&&eq[+E]?x={t:"e",v:+E,w:eq[+E]}:"TRUE"===E?x={t:"b",v:!0}:"FALSE"===E?x={t:"b",v:!1}:isNaN(PK(E))?isNaN(kK(E).getDate())?35==E.charCodeAt(0)&&null!=tq[E]&&(x={t:"e",v:tq[E],w:E}):(x={t:"d",v:OK(E)},o.UTC&&(x.v=BK(x.v)),o.cellDates||(x={t:"n",v:bK(x.v)}),x.z=o.dateNF||B$[14]):x={t:"n",v:PK(E)})),void 0===x.z&&null!=S&&(x.z=S);var P="",M=C.getElementsByTagName("A");if(M&&M.length)for(var T=0;T<M.length&&(!M[T].hasAttribute("href")||"#"==(P=M[T].getAttribute("href")).charAt(0));++T);P&&"#"!=P.charAt(0)&&"javascript:"!=P.slice(0,11).toLowerCase()&&(x.l={Target:P}),i?(e["!data"][m+a]||(e["!data"][m+a]=[]),e["!data"][m+a][y+s]=x):e[$Q({c:y+s,r:m+a})]=x,u.e.c<y+s&&(u.e.c=y+s),y+=w}}++m}return p.length&&(e["!merges"]=(e["!merges"]||[]).concat(p)),u.e.r=Math.max(u.e.r,m-1+a),e["!ref"]=QQ(u),m>=c&&(e["!fullref"]=QQ((u.e.r=r.length-g+m-1+a,u))),e}function Tq(e,t){var n={};return(t||{}).dense&&(n["!data"]=[]),Mq(n,e,t)}function Rq(e){var t="",n=function(e){return e.ownerDocument.defaultView&&"function"==typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}function Iq(e,t){h$(1200),h$(1252),function(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];!function(e,t,n){e.forEach(function(r,o){Dq(r);for(var i=0;i<o;++i)if(r==e[i])throw new Error("Duplicate Sheet Name: "+r);if(n){var a=t&&t[o]&&t[o].CodeName||r;if(95==a.charCodeAt(0)&&a.length>22)throw new Error("Bad Code Name: Worksheet"+a)}})}(e.SheetNames,t,!!e.vbaraw);for(var n=0;n<e.SheetNames.length;++n)bq(e.Sheets[e.SheetNames[n]],e.SheetNames[n],n);e.SheetNames.forEach(function(t,n){var r=e.Sheets[t];if(r&&r["!autofilter"]){var o;e.Workbook||(e.Workbook={}),e.Workbook.Names||(e.Workbook.Names=[]),e.Workbook.Names.forEach(function(e){"_xlnm._FilterDatabase"==e.Name&&e.Sheet==n&&(o=e)});var i=YQ(t)+"!"+qQ(r["!autofilter"].ref);o?o.Ref=i:e.Workbook.Names.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:i})}})}(e);var n=xK(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=Iq(e,n);return n.type="array",E$(r)}return function(e,t){var n=xK(t||{});return function(e,t){var n={},r=y$?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var o=e.FullPaths?fK.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if("undefined"!=typeof Deno&&"string"==typeof o){if("binary"==t.type||"base64"==t.type)return o;o=new Uint8Array(E$(o))}return t.password&&"undefined"!=typeof encrypt_agile?function(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return mK(t.file,fK.write(e,{type:y$?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return fK.write(e,t)}(encrypt_agile(o,t.password),t):"file"===t.type?mK(t.file,o):"string"==t.type?YK(o):o}(function(e,t){e&&!e.SSF&&(e.SSF=xK(B$)),e&&e.SSF&&(B$=function(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}(),function(e){for(var t=0;392!=t;++t)void 0!==e[t]&&uK(e[t],t)}(e.SSF),t.revssf=function(e){for(var t=[],n=vK(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,yq?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=vq.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};!function(e){!function(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),"n"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}(t=t||{});var i=fK.utils.cfb_new(),a="",s=0;if(t.cellXfs=[],wq(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),NK(i,a="docProps/core.xml",function(e,t){var n=t||{},r=[jK,nQ("cp:coreProperties",null,{"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":sQ})],o={};if(!e&&!n.Props)return r.join("");e&&(null!=e.CreatedDate&&cq("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:rQ(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,o),null!=e.ModifiedDate&&cq("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:rQ(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,o));for(var i=0;i!=lq.length;++i){var a=lq[i],s=n.Props&&null!=n.Props[a[1]]?n.Props[a[1]]:e?e[a[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&cq(a[0],s,null,r,o)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}(e.Props,t)),o.coreprops.push(a),sq(t.rels,2,a,oq.CORE_PROPS),a="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],c=0;c<e.SheetNames.length;++c)2!=(e.Workbook.Sheets[c]||{}).Hidden&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,NK(i,a,function(e){var t=[],n=nQ;return e||(e={}),e.Application="SheetJS",t[t.length]=jK,t[t.length]=nQ("Properties",null,{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":aQ}),uq.forEach(function(r){if(void 0!==e[r[1]]){var o;switch(r[2]){case"string":o=GK(String(e[r[1]]));break;case"bool":o=e[r[1]]?"true":"false"}void 0!==o&&(t[t.length]=n(r[0],o))}}),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map(function(e){return"<vt:lpstr>"+GK(e)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}(e.Props)),o.extprops.push(a),sq(t.rels,3,a,oq.EXT_PROPS),e.Custprops!==e.Props&&vK(e.Custprops||{}).length>0&&(NK(i,a="docProps/custom.xml",function(e){var t=[jK,nQ("Properties",null,{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties","xmlns:vt":aQ})];if(!e)return t.join("");var n=1;return vK(e).forEach(function(r){++n,t[t.length]=nQ("property",function(e){switch(typeof e){case"string":return nQ("vt:lpwstr",GK(e)).replace(/&quot;/g,"_x0022_");case"number":return nQ((0|e)==e?"vt:i4":"vt:r8",GK(String(e)));case"boolean":return nQ("vt:bool",e?"true":"false")}if(e instanceof Date)return nQ("vt:filetime",rQ(e));throw new Error("Unable to serialize "+e)}(e[r]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:GK(r)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}(e.Custprops)),o.custprops.push(a),sq(t.rels,4,a,oq.CUST_PROPS));var u=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var d={"!id":{}},p=e.Sheets[e.SheetNames[s-1]];if((p||{})["!type"],NK(i,a="xl/worksheets/sheet"+s+"."+n,Sq(s-1,t,e,d)),o.sheets.push(a),sq(t.wbrels,-1,"worksheets/sheet"+s+"."+n,oq.WS[0]),p){var h=p["!comments"],f=!1,g="";if(h&&h.length>0){var m=!1;h.forEach(function(e){e[1].forEach(function(e){1==e.T&&(m=!0)})}),m&&(NK(i,g="xl/threadedComments/threadedComment"+s+".xml",mq(h,u,t)),o.threadedcomments.push(g),sq(d,-1,"../threadedComments/threadedComment"+s+".xml",oq.TCMNT)),NK(i,g="xl/comments"+s+"."+n,gq(h)),o.comments.push(g),sq(d,-1,"../comments"+s+"."+n,oq.CMNT),f=!0}p["!legacy"]&&f&&NK(i,"xl/drawings/vmlDrawing"+s+".vml",fq(s,p["!comments"])),delete p["!comments"],delete p["!legacy"]}d["!id"].rId1&&NK(i,iq(a),aq(d))}return null!=t.Strings&&t.Strings.length>0&&(NK(i,a="xl/sharedStrings."+n,function(e,t){if(!t.bookSST)return"";var n=[jK];n[n.length]=nQ("sst",null,{xmlns:lQ[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(null!=e[r]){var o=e[r],i="<si>";o.r?i+=o.r:(i+="<t",o.t||(o.t=""),"string"!=typeof o.t&&(o.t=String(o.t)),o.t.match(dq)&&(i+=' xml:space="preserve"'),i+=">"+GK(o.t)+"</t>"),i+="</si>",n[n.length]=i}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}(t.Strings,t)),o.strs.push(a),sq(t.wbrels,-1,"sharedStrings."+n,oq.SST)),NK(i,a="xl/workbook."+n,function(e){var t=[jK];t[t.length]=nQ("workbook",null,{xmlns:lQ[0],"xmlns:r":iQ});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Oq.forEach(function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])}),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=nQ("workbookPr",null,r);var o=e.Workbook&&e.Workbook.Sheets||[],i=0;if(o&&o[0]&&o[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&o[i]&&o[i].Hidden;++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var a={name:GK(e.SheetNames[i].slice(0,31))};if(a.sheetId=""+(i+1),a["r:id"]="rId"+(i+1),o[i])switch(o[i].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden"}t[t.length]=nQ("sheet",null,a)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=nQ("definedName",GK(e.Ref),n))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}(e)),o.workbooks.push(a),sq(t.rels,1,a,oq.WB),NK(i,a="xl/theme/theme1.xml",function(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[jK];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}(e.Themes,t)),o.themes.push(a),sq(t.wbrels,-1,"theme/theme1.xml",oq.THEME),NK(i,a="xl/styles."+n,function(e,t){var n,r=[jK,nQ("styleSheet",null,{xmlns:lQ[0],"xmlns:vt":aQ})];return e.SSF&&null!=(n=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=e[r]&&(t[t.length]=nQ("numFmt",null,{numFmtId:r,formatCode:GK(e[r])}))}),1===t.length?"":(t[t.length]="</numFmts>",t[0]=nQ("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=function(e){var t=[];return t[t.length]=nQ("cellXfs",null),e.forEach(function(e){t[t.length]=nQ("xf",null,e)}),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=nQ("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}(e,t)),o.styles.push(a),sq(t.wbrels,-1,"styles."+n,oq.STY),e.vbaraw&&r&&(NK(i,a="xl/vbaProject.bin",e.vbaraw),o.vba.push(a),sq(t.wbrels,-1,"vbaProject.bin",oq.VBA)),NK(i,a="xl/metadata."+n,function(){var e=[jK];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n  <metadataTypes count="1">\n    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n  </metadataTypes>\n  <futureMetadata name="XLDAPR" count="1">\n    <bk>\n      <extLst>\n        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n        </ext>\n      </extLst>\n    </bk>\n  </futureMetadata>\n  <cellMetadata count="1">\n    <bk>\n      <rc t="1" v="0"/>\n    </bk>\n  </cellMetadata>\n</metadata>'),e.join("")}()),o.metadata.push(a),sq(t.wbrels,-1,"metadata."+n,oq.XLMETA),u.length>1&&(NK(i,a="xl/persons/person.xml",function(e){var t=[jK,nQ("personList",null,{xmlns:oQ,"xmlns:x":lQ[0]}).replace(/[\/]>/,">")];return e.forEach(function(e,n){t.push(nQ("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))}),t.push("</personList>"),t.join("")}(u)),o.people.push(a),sq(t.wbrels,-1,"persons/person.xml",oq.PEOPLE)),NK(i,"[Content_Types].xml",function(e,t){var n,r=function(e){for(var t=[],n=vK(e),r=0;r!==n.length;++r)null==t[e[n[r]]]&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}(nq),o=[];o[o.length]=jK,o[o.length]=nQ("Types",null,{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":sQ}),o=o.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(e){return nQ("Default",null,{Extension:e[0],ContentType:e[1]})}));var i=function(r){e[r]&&e[r].length>0&&(n=e[r][0],o[o.length]=nQ("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:rq[r][t.bookType]||rq[r].xlsx}))},a=function(n){(e[n]||[]).forEach(function(e){o[o.length]=nQ("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:rq[n][t.bookType]||rq[n].xlsx})})},s=function(t){(e[t]||[]).forEach(function(e){o[o.length]=nQ("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:r[t][0]})})};return i("workbooks"),a("sheets"),a("charts"),s("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),a("metadata"),s("people"),o.length>2&&(o[o.length]="</Types>",o[1]=o[1].replace("/>",">")),o.join("")}(o,t)),NK(i,"_rels/.rels",aq(t.rels)),NK(i,"xl/_rels/workbook.xml.rels",aq(t.wbrels)),delete t.revssf,delete t.ssf,i}(e,n),n)}(e,n)}function Fq(e,t,n,r,o,i,a){var s=GQ(n),l=a.defval,c=a.raw||!Object.prototype.hasOwnProperty.call(a,"raw"),u=!0,d=null!=e["!data"],p=1===o?[]:{};if(1!==o)if(Object.defineProperty)try{Object.defineProperty(p,"__rowNum__",{value:n,enumerable:!1})}catch(e){p.__rowNum__=n}else p.__rowNum__=n;if(!d||e["!data"][n])for(var h=t.s.c;h<=t.e.c;++h){var f=d?(e["!data"][n]||[])[h]:e[r[h]+s];if(null!=f&&void 0!==f.t){var g=f.v;switch(f.t){case"z":if(null==g)break;continue;case"e":g=0==g?null:void 0;break;case"s":case"b":case"n":if(!f.z||!aK(f.z))break;if("number"==typeof(g=_K(g)))break;case"d":a&&(a.UTC||!1===a.raw)||(g=LK(new Date(g)));break;default:throw new Error("unrecognized type "+f.t)}if(null!=i[h]){if(null==g)if("e"==f.t&&null===g)p[i[h]]=null;else if(void 0!==l)p[i[h]]=l;else{if(!c||null!==g)continue;p[i[h]]=null}else p[i[h]]=("n"===f.t&&"boolean"==typeof a.rawNumbers?a.rawNumbers:c)?g:ZQ(f,g,a);null!=g&&(u=!1)}}else{if(void 0===l)continue;null!=i[h]&&(p[i[h]]=l)}}return{row:p,isempty:u}}function kq(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,o=1,i=[],a=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=null!=c.range?c.range:e["!ref"];switch(1===c.header?r=1:"A"===c.header?r=2:Array.isArray(c.header)?r=3:null==c.header&&(r=0),typeof u){case"string":l=XQ(u);break;case"number":(l=XQ(e["!ref"])).s.r=u;break;default:l=u}r>0&&(o=0);var d=GQ(l.s.r),p=[],h=[],f=0,g=0,m=null!=e["!data"],v=l.s.r,y=0,A={};m&&!e["!data"][v]&&(e["!data"][v]=[]);var w=c.skipHidden&&e["!cols"]||[],b=c.skipHidden&&e["!rows"]||[];for(y=l.s.c;y<=l.e.c;++y)if(!(w[y]||{}).hidden)switch(p[y]=WQ(y),n=m?e["!data"][v][y]:e[p[y]+d],r){case 1:i[y]=y-l.s.c;break;case 2:i[y]=p[y];break;case 3:i[y]=c.header[y-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),s=a=ZQ(n,null,c),g=A[a]||0){do{s=a+"_"+g++}while(A[s]);A[a]=g,A[s]=1}else A[a]=1;i[y]=s}for(v=l.s.r+o;v<=l.e.r;++v)if(!(b[v]||{}).hidden){var _=Fq(e,l,v,p,r,i,c);(!1===_.isempty||(1===r?!1!==c.blankrows:c.blankrows))&&(h[f++]=_.row)}return h.length=f,h}!function(){try{return"undefined"==typeof Uint8Array||void 0===Uint8Array.prototype.subarray?"slice":void 0!==Buffer?void 0===Buffer.prototype.subarray?"slice":("function"==typeof Buffer.from?Buffer.from([72,62]):new Buffer([72,62]))instanceof Uint8Array?"subarray":"slice":"subarray"}catch(e){return"slice"}}();var Lq=/"/g;function Bq(e,t,n,r,o,i,a,s,l){for(var c=!0,u=[],d="",p=GQ(n),h=null!=e["!data"],f=h&&e["!data"][n]||[],g=t.s.c;g<=t.e.c;++g)if(r[g]){var m=h?f[g]:e[r[g]+p];if(null==m)d="";else if(null!=m.v){c=!1,d=""+(l.rawNumbers&&"n"==m.t?m.v:ZQ(m,null,l));for(var v=0,y=0;v!==d.length;++v)if((y=d.charCodeAt(v))===o||y===i||34===y||l.forceQuotes){d='"'+d.replace(Lq,'""')+'"';break}"ID"==d&&0==s&&0==u.length&&(d='"ID"')}else null==m.f||m.F?d="":(c=!1,(d="="+m.f).indexOf(",")>=0&&(d='"'+d.replace(Lq,'""')+'"'));u.push(d)}if(l.strip)for(;""===u[u.length-1];)--u.length;return!1===l.blankrows&&c?null:u.join(a)}function Nq(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";for(var o=XQ(e["!ref"]),i=void 0!==r.FS?r.FS:",",a=i.charCodeAt(0),s=void 0!==r.RS?r.RS:"\n",l=s.charCodeAt(0),c="",u=[],d=r.skipHidden&&e["!cols"]||[],p=r.skipHidden&&e["!rows"]||[],h=o.s.c;h<=o.e.c;++h)(d[h]||{}).hidden||(u[h]=WQ(h));for(var f=0,g=o.s.r;g<=o.e.r;++g)(p[g]||{}).hidden||null!=(c=Bq(e,o,g,u,a,l,i,f,r))&&(c||!1!==r.blankrows)&&n.push((f++?s:"")+c);return n.join("")}function jq(e,t,n){var r=n||{},o=e?null!=e["!data"]:r.dense,i=+!r.skipHeader,a=e||{};!e&&o&&(a["!data"]=[]);var s=0,l=0;if(a&&null!=r.origin)if("number"==typeof r.origin)s=r.origin;else{var c="string"==typeof r.origin?zQ(r.origin):r.origin;s=c.r,l=c.c}var u={s:{c:0,r:0},e:{c:l,r:s+t.length-1+i}};if(a["!ref"]){var d=XQ(a["!ref"]);u.e.c=Math.max(u.e.c,d.e.c),u.e.r=Math.max(u.e.r,d.e.r),-1==s&&(s=d.e.r+1,u.e.r=s+t.length-1+i)}else-1==s&&(s=0,u.e.r=t.length-1+i);var p=r.header||[],h=0,f=[];t.forEach(function(e,t){o&&!a["!data"][s+t+i]&&(a["!data"][s+t+i]=[]),o&&(f=a["!data"][s+t+i]),vK(e).forEach(function(n){-1==(h=p.indexOf(n))&&(p[h=p.length]=n);var c=e[n],u="z",d="",g=o?"":WQ(l+h)+GQ(s+t+i),m=o?f[l+h]:a[g];!c||"object"!=typeof c||c instanceof Date?("number"==typeof c?u="n":"boolean"==typeof c?u="b":"string"==typeof c?u="s":c instanceof Date?(u="d",r.UTC||(c=BK(c)),r.cellDates||(u="n",c=bK(c)),d=null!=m&&m.z&&aK(m.z)?m.z:r.dateNF||B$[14]):null===c&&r.nullError&&(u="e",c=0),m?(m.t=u,m.v=c,delete m.w,delete m.R,d&&(m.z=d)):o?f[l+h]=m={t:u,v:c}:a[g]=m={t:u,v:c},d&&(m.z=d)):o?f[l+h]=c:a[g]=c})}),u.e.c=Math.max(u.e.c,l+p.length-1);var g=GQ(s);if(o&&!a["!data"][s]&&(a["!data"][s]=[]),i)for(h=0;h<p.length;++h)o?a["!data"][s][h+l]={t:"s",v:p[h]}:a[WQ(h+l)+g]={t:"s",v:p[h]};return a["!ref"]=QQ(u),a}function Uq(e,t,n){if("string"==typeof t){if(null!=e["!data"]){var r=zQ(t);return e["!data"][r.r]||(e["!data"][r.r]=[]),e["!data"][r.r][r.c]||(e["!data"][r.r][r.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return Uq(e,"number"!=typeof t?$Q(t):WQ(n||0)+GQ(t))}function Vq(e,t,n,r){var o=1;if(!n)for(;o<=65535&&-1!=e.SheetNames.indexOf(n="Sheet"+o);++o,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0&&n.length<32){var i=n.match(/\d+$/);o=i&&+i[0]||0;var a=i&&n.slice(0,i.index)||n;for(++o;o<=65535&&-1!=e.SheetNames.indexOf(n=a+o);++o);}if(Dq(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function Hq(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var Gq={encode_col:WQ,encode_row:GQ,encode_cell:$Q,encode_range:QQ,decode_col:function(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1},decode_row:function(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1},split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:zQ,decode_range:KQ,format_cell:ZQ,sheet_new:function(e){var t={};return(e||{}).dense&&(t["!data"]=[]),t},sheet_add_aoa:JQ,sheet_add_json:jq,sheet_add_dom:Mq,aoa_to_sheet:function(e,t){return JQ(null,e,t)},json_to_sheet:function(e,t){return jq(null,e,t)},table_to_sheet:Tq,table_to_book:function(e,t){return function(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}(Tq(e,t),t)},sheet_to_csv:Nq,sheet_to_txt:function(e,t){return t||(t={}),t.FS="\t",t.RS="\n",Nq(e,t)},sheet_to_json:kq,sheet_to_html:function(e,t){var n=t||{},r=null!=n.header?n.header:'<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',o=null!=n.footer?n.footer:"</body></html>",i=[r],a=KQ(e["!ref"]||"A1");if(i.push(function(e,t,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}(0,0,n)),e["!ref"])for(var s=a.s.r;s<=a.e.r;++s)i.push(Pq(e,a,s,n));return i.push("</table>"+o),i.join("")},sheet_to_formulae:function(e,t){var n,r="",o="";if(null==e||null==e["!ref"])return[];var i,a=XQ(e["!ref"]),s="",l=[],c=[],u=null!=e["!data"];for(i=a.s.c;i<=a.e.c;++i)l[i]=WQ(i);for(var d=a.s.r;d<=a.e.r;++d)for(s=GQ(d),i=a.s.c;i<=a.e.c;++i)if(r=l[i]+s,o="",void 0!==(n=u?(e["!data"][d]||[])[i]:e[r])){if(null!=n.F){if(r=n.F,!n.f)continue;o=n.f,-1==r.indexOf(":")&&(r=r+":"+r)}if(null!=n.f)o=n.f;else{if(t&&!1===t.values)continue;if("z"==n.t)continue;if("n"==n.t&&null!=n.v)o=""+n.v;else if("b"==n.t)o=n.v?"TRUE":"FALSE";else if(void 0!==n.w)o="'"+n.w;else{if(void 0===n.v)continue;o="s"==n.t?"'"+n.v:""+n.v}}c[c.length]=r+"="+o}return c},sheet_to_row_object_array:kq,sheet_get_cell:Uq,book_new:function(e,t){var n={SheetNames:[],Sheets:{}};return e&&Vq(n,e,t||"Sheet1"),n},book_append_sheet:Vq,book_set_sheet_visibility:function(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:Hq,cell_set_internal_link:function(e,t,n){return Hq(e,"#"+t,n)},cell_add_comment:function(e,t,n){e.c||(e.c=[]),e.c.push({t,a:n||"SheetJS"})},sheet_set_array_formula:function(e,t,n,r){for(var o="string"!=typeof t?t:XQ(t),i="string"==typeof t?t:QQ(t),a=o.s.r;a<=o.e.r;++a)for(var s=o.s.c;s<=o.e.c;++s){var l=Uq(e,a,s);l.t="n",l.F=i,delete l.v,a==o.s.r&&s==o.s.c&&(l.f=n,r&&(l.D=!0))}var c=KQ(e["!ref"]);return c.s.r>o.s.r&&(c.s.r=o.s.r),c.s.c>o.s.c&&(c.s.c=o.s.c),c.e.r<o.e.r&&(c.e.r=o.e.r),c.e.c<o.e.c&&(c.e.c=o.e.c),e["!ref"]=QQ(c),e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const Wq=(e,t)=>{const n=e.getRowModel().rows,r=Object.keys(t);return n.filter(e=>r.includes(e.id))},zq=e=>e.getFilteredRowModel().rows.map(e=>e.original),$q=(e,t,n,r,o,i,a,s,l)=>({...e,getSelectedRowModel:()=>{const n=Wq(e,t),r=n.reduce((e,t)=>(e[t.id]=t,e),{});return{rows:n,flatRows:n,rowsById:r}},getCustomRowSelection:()=>Wq(e,t),deselectAllRows:()=>(e=>{e.setRowSelection({})})(e),exportDataAsCsv:()=>{(e=>{const t=Jz({fieldSeparator:",",filename:"export",decimalSeparator:".",useKeysAsHeaders:!0}),n=zq(e),r=(e=>t=>{const n=Jz(e),r=n.useKeysAsHeaders?Object.keys(t[0]):n.columnHeaders;let o=((e,...t)=>t.reduce((e,t)=>t(e),e))(Qz(""),(e=>t=>e.useBom?Qz(t+"\ufeff"):t)(n),(e=>t=>e.showTitle?a$(Qz(t+e.title))(qz("")):t)(n),((e,t)=>n=>{if(!e.showColumnHeaders)return n;if(t.length<1)throw new t$("Option to show headers but none supplied. Make sure there are keys in your collection or that you've supplied headers through the config options.");let r=qz("");for(let n=0;n<t.length;n++){const o=i$(t[n]);r=s$(e)(r,u$(e,$z(o)))}return r=qz(r.slice(0,-1)),a$(n)(r)})(n,r),((e,t,n)=>r=>{let o=r;for(var i=0;i<n.length;i++){let r=qz("");for(let o=0;o<t.length;o++){const a=o$(t[o]),s=n[i][$z(a)];r=s$(e)(r,u$(e,s))}r=qz($z(r).slice(0,-1)),o=a$(o)(r)}return o})(n,r,t));if(o.length<1)throw new e$("Output is empty. Is your data formatted correctly?");return o})(t)(n);(e=>t=>{if(!window)throw new n$("Downloading only supported in a browser environment.");const n=(e=>t=>{const n=Jz(e),r=t,o=n.useTextFile?"text/plain":n.mediaType;return new Blob([r],{type:`${o};charset=utf8;`})})(e)(t),r=Jz(e),o=r.useTextFile?"txt":r.fileExtension,i=`${r.filename}.${o}`,a=document.createElement("a");a.download=i,a.href=URL.createObjectURL(n),a.setAttribute("visibility","hidden"),document.body.appendChild(a),a.click(),document.body.removeChild(a)})(t)(r)})(e)},exportDataAsExcel:()=>{(e=>{const t=zq(e),n=Gq.json_to_sheet(t),r=Gq.book_new();Gq.book_append_sheet(r,n,"gv-table"),function(e){var t={type:"file",file:"export.xlsx"};(function(e){if(!e.bookType){var t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[e.bookType]||e.bookType}})(t),Iq(e,t)}(r)})(e)},showLoadingOverlay:()=>{i(!0)},hideOverlay:()=>{i(!1)},applyTransactionAsync:a,applyTransaction:l,setAsyncTransactionWaitMillis:e=>{s(e)}}),Kq=s.GVDebug.extend("gvtable"),Qq=e=>`${e}-aggregate`;function qq(e,t,n){let r,o=n.initialDeps??[];return()=>{var i,a,s,l;let c;n.key&&(null==(i=n.debug)?void 0:i.call(n))&&(c=Date.now());const u=e(),d=u.length!==o.length||u.some((e,t)=>o[t]!==e);if(!d)return r;let p;if(o=u,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(p=Date.now()),r=t(...u),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-p))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n            font-size: .6rem;\n            font-weight: bold;\n            color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,r),r}}function Yq(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const Xq=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},Zq=e=>e,Jq=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},eY=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(e=>{const t=e[0];if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return void o({width:e.inlineSize,height:e.blockSize})}o(n.getBoundingClientRect())});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},tY={passive:!0},nY="undefined"==typeof window||"onscrollend"in window,rY=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=nY?()=>{}:Xq(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),a=r=>()=>{const{horizontal:a,isRtl:s}=e.options;o=a?n.scrollLeft*(s?-1:1):n.scrollTop,i(),t(o,r)},s=a(!0),l=a(!1);return l(),n.addEventListener("scroll",s,tY),n.addEventListener("scrollend",l,tY),()=>{n.removeEventListener("scroll",s),n.removeEventListener("scrollend",l)}},oY=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},iY=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const a=e+t;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class aY{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{this._measureElement(e.target,e)})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Zq,rangeExtractor:Jq,onChange:()=>{},measureElement:oY,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=qq(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let o=t-1;o>=0;o--){const t=e[o];if(n.has(t.lane))continue;const i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=qq(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,r,o)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o}),{key:!1}),this.getMeasurements=qq(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o},i)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const s=this.measurementsCache.slice(0,a);for(let o=a;o<e;o++){const e=r(o),a=1===this.options.lanes?s[o-1]:this.getFurthestMeasurement(s,o),l=a?a.end+this.options.gap:t+n,c=i.get(e),u="number"==typeof c?c:this.options.estimateSize(o),d=l+u,p=a?a.lane:o%this.options.lanes;s[o]={index:o,start:l,size:u,end:d,key:e,lane:p}}return this.measurementsCache=s,s},{key:!1,debug:()=>this.options.debug}),this.calculateRange=qq(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,o=sY(0,r,t=>e[t].start,n);let i=o;for(;i<r&&e[i].end<n+t;)i++;return{startIndex:o,endIndex:i}}({measurements:e,outerSize:t,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=qq(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(e,t,n,r)=>null===t?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:n,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;const o=r.key,i=this.elementsCache.get(o);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(o,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const n=this.measurementsCache[e];if(!n)return;const r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=qq(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return Yq(t[sY(0,t.length-1,e=>Yq(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>{const n=this.getSize(),r=this.getScrollOffset();"auto"===t&&(t=e<=r?"start":e>=r+n?"end":"start"),"start"===t||("end"===t?e-=n:"center"===t&&(e-=n/2));const o=this.options.horizontal?"scrollWidth":"scrollHeight",i=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[o]:this.scrollElement[o]:0)-n;return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.measurementsCache[e];if(!n)return;const r=this.getSize(),o=this.getScrollOffset();if("auto"===t)if(n.end>=o+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=o+this.options.scrollPaddingStart))return[o,t];t="start"}const i="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const r=this.getOffsetForIndex(e,t);if(!r)return;const[o,i]=r;this._scrollToOffset(o,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){const[t]=Yq(this.getOffsetForIndex(e,i));((e,t)=>Math.abs(e-t)<1)(t,this.getScrollOffset())||this.scrollToIndex(e,{align:i,behavior:n})}else this.scrollToIndex(e,{align:i,behavior:n})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;return n=0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(e=>e.end)),Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const sY=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0},lY="undefined"!=typeof document?h.useLayoutEffect:h.useEffect,cY={filterFn:"textFilterFn",meta:{filterComponent:"text"}},uY={textFilterFn:(e,t,n,r)=>((e,t,n)=>{const r=JW(n);if(null==r[0].value||""===r[0].value)return!0;const o=tz(e,t,void 0),i=ez(o,r[0].option,r[0].value);if(null==r.operand||null==r[1]||null==r[1].value||""===r[1].value)return i;const a=ez(o,r[1].option,r[1].value);return"and"===r.operand?i&&a:i||a})(e,t,n),setFilterFn:(e,t,n)=>{const r=e.original[t],o=r?.toString()??String(r);return!n.includes(o)}},dY=s.GVDebug.extend("gvtable"),pY=e=>{const{children:t,onValue:n,enable:r}=e;return void 0!==n&&r?(0,p.jsx)("div",{className:"gv-animate-util",children:t},n):t},hY=(0,h.memo)(e=>{const t=function(e){const t=e.gridOptions,n=(0,h.useRef)(t?.onCellDataUpdated);n.current=t?.onCellDataUpdated;const r=(0,h.useRef)(t?.onRowDoubleClick);r.current=t?.onRowDoubleClick;const o=(0,h.useRef)(t?.onRowSelected);o.current=t?.onRowSelected;const i=(0,h.useRef)(t?.onRowDataUpdated);i.current=t?.onRowDataUpdated;const a=(0,h.useRef)(t?.getContextMenuItems);a.current=t?.getContextMenuItems;const s=(0,h.useRef)(t?.onTableReady);s.current=t?.onTableReady;const l=(0,h.useRef)(t?.onCellContextMenu);return l.current=t?.onCellContextMenu,(0,h.useMemo)(()=>({onCellDataUpdated:(...e)=>n.current?.(...e),onRowDoubleClick:(...e)=>r.current?.(...e),onRowSelected:(...e)=>o.current?.(...e),onRowDataUpdated:(...e)=>i.current?.(...e),getContextMenuItems:(...e)=>a.current?.(...e),onTableReady:(...e)=>s.current?.(...e),onCellContextMenu:(...e)=>l.current?.(...e)}),[])}(e),n=function(e){const t=(0,h.useRef)(new Map).current;e?.forEach(e=>{const n=e.id??e.accessorKey;if(!n)return;t.has(n)||t.set(n,{});const r=t.get(n);r.cellRenderer=e.cellRenderer,r.cellEditor=e.cellEditor,r.valueGetter=e.valueGetter,r.filterValueGetter=e.filterValueGetter,r.tooltipValueGetter=e.tooltipValueGetter,r.comparator=e.comparator,r.customAggregate=e.customAggregate});const n=(0,h.useMemo)(()=>JSON.stringify(e?.map(e=>({id:e.id,accessorKey:e.accessorKey,header:e.header,filter:e.filter,hide:e.hide,flex:e.flex,size:e.size,rowGroup:e.rowGroup,suppressMenu:e.suppressMenu,editable:e.editable,dataType:e.dataType,singleClickEdit:e.singleClickEdit,menuTabs:e.menuTabs,cellStyle:e.cellStyle}))),[e]);return(0,h.useMemo)(()=>e?.map(e=>{const n=e.id??e.accessorKey;if(!n)return e;const r=t.get(n);return r?{...e,cellRenderer:e.cellRenderer?(...e)=>r.cellRenderer?.(...e):void 0,cellEditor:e.cellEditor?(...e)=>r.cellEditor?.(...e):void 0,valueGetter:e.valueGetter?(...e)=>r.valueGetter?.(...e):void 0,filterValueGetter:e.filterValueGetter?(...e)=>r.filterValueGetter?.(...e):void 0,tooltipValueGetter:e.tooltipValueGetter?(...e)=>r.tooltipValueGetter?.(...e):void 0,comparator:e.comparator?(...e)=>r.comparator?.(...e):void 0,customAggregate:e.customAggregate?(...e)=>r.customAggregate?.(...e):void 0}:e}),[n])}(e.gridOptions?.columnDefs),r=(0,h.useMemo)(()=>({...e,gridOptions:{...e.gridOptions,columnDefs:n??e.gridOptions?.columnDefs,onCellDataUpdated:t.onCellDataUpdated,onRowDoubleClick:t.onRowDoubleClick,onRowSelected:t.onRowSelected,onRowDataUpdated:t.onRowDataUpdated,getContextMenuItems:t.getContextMenuItems,onTableReady:t.onTableReady,onCellContextMenu:t.onCellContextMenu}}),[e.gridOptions?.rowData,n,e.style,e.tableId]),{loading:o,rowSelection:i,enableRowSelection:a,columnDefs:l,defaultColDef:c,autoGroupColumnDef:u,rowData:d,getRowId:f,treeDataAccessors:g,onRowDragEnd:m,onColumnDragEnd:v,style:y,tableId:A,groupDefaultExpanded:w,onCellDataUpdated:b,onRowDoubleClick:_,onCellContextMenu:C,getContextMenuItems:E,onRowSelected:S,onRowDataUpdated:O,footer:x,showAggregatedValues:D,renderPlaceholders:P,rowHeight:M,asyncTransactionTimeoutMillis:T,headerHeight:R,editMode:I,enterMovesDownAfterEdit:F,rowDragging:k,enableCellChangeFlash:L,getSubRows:B,onTableReady:N}=(e=>{const{gridOptions:t}=e;return(0,h.useMemo)(()=>({style:e.style,rowData:e.rowData??t?.rowData??[],columnDefs:e.columnDefs??t?.columnDefs??[],defaultColDef:e.defaultColDef??t?.defaultColDef??{},autoGroupColumnDef:e.autoGroupColumnDef??t?.autoGroupColumnDef,getRowId:e.getRowId??t?.getRowId,enableRowSelection:e.enableRowSelection??t?.enableRowSelection??!0,enableCellChangeFlash:e.enableCellChangeFlash??t?.enableCellChangeFlash??!1,loading:e.loading??!1,showAggregatedValues:e.showAggregatedValues??t?.showAggregatedValues??!0,treeDataAccessors:e.treeDataAccessors??t?.treeDataAccessors,asyncTransactionTimeoutMillis:e.asyncTransactionTimeoutMillis??t?.asyncTransactionTimeoutMillis??50,rowHeight:e.rowHeight??t?.rowHeight,headerHeight:e.headerHeight??t?.headerHeight,rowSelection:e.rowSelection??t?.rowSelection,groupDefaultExpanded:e.groupDefaultExpanded??t?.groupDefaultExpanded,renderPlaceholders:e.renderPlaceholders??t?.renderPlaceholders??!1,editMode:e.editMode??t?.editMode,enterMovesDownAfterEdit:e.enterMovesDownAfterEdit??t?.enterMovesDownAfterEdit??!1,rowDragging:e.rowDragging??t?.rowDragging??!1,tableId:e.tableId,footer:e.footer??t?.footer,getSubRows:e.getSubRows??t?.getSubRows,onTableReady:e.onTableReady??t?.onTableReady,onRowSelected:e.onRowSelected??t?.onRowSelected,onRowDataUpdated:e.onRowDataUpdated??t?.onRowDataUpdated,onCellDataUpdated:e.onCellDataUpdated??t?.onCellDataUpdated,onRowDoubleClick:e.onRowDoubleClick??t?.onRowDoubleClick,onRowDragEnd:e.onRowDragEnd??t?.onRowDragEnd,onColumnDragEnd:e.onColumnDragEnd??t?.onColumnDragEnd,getContextMenuItems:e.getContextMenuItems??t?.getContextMenuItems,onCellContextMenu:e.onCellContextMenu??t?.onCellContextMenu}),[e,t])})(r),j=(0,h.useRef)(null),U=(0,h.useRef)(null),V=(0,h.useRef)(null),[H,G]=(0,h.useState)([]),[W,z]=(0,h.useState)({}),[$,K]=(0,h.useState)([]),[Q,q]=(0,h.useState)({}),[Y,X]=(0,h.useState)({}),[Z,J]=(0,h.useState)(o),[ee,te]=(0,h.useState)(!1),{editing:ne,setEditing:re}=(()=>{const[e,t]=(0,h.useState)({rowIndex:void 0,columnId:void 0});return{editing:e,setEditing:t}})(),{rowSelectionState:oe,setRowSelectionState:ie,lastClickedRowId:ae,handleRowClick:se}=(e=>{const{rowSelection:t,enableRowSelection:n}=e,[r,o]=(0,h.useState)({}),i=(0,h.useRef)(null),a=(0,h.useCallback)((e,a,s)=>{if(n&&("function"!=typeof n||n(a))){if("multiple"===t&&e.shiftKey&&null!==i.current){const e=s.getRowModel().rows,t=e.findIndex(e=>e.id===i.current),n=e.findIndex(e=>e.id===a.id),r=Math.min(t,n),l=Math.max(t,n),c=e.slice(r,l+1);o(e=>{const t={...e};return c.forEach(e=>{t[e.id]=!0}),t})}else Object.keys(r).length>1&&!e.ctrlKey?o({[a.id]:!0}):r[a.id]?r[a.id]&&e.ctrlKey&&"multiple"===t&&o(e=>{const t={...e};return delete t[a.id],t}):e.ctrlKey?o("multiple"===t?e=>({...e,[a.id]:!0}):{[a.id]:!0}):o({[a.id]:!0});i.current=a.id}},[t,r,n]),s=(0,h.useCallback)(e=>{o(t=>({...t,[e]:!0}))},[]),l=(0,h.useCallback)(e=>{o(t=>{const n={...t};return delete n[e],n})},[]),c=(0,h.useCallback)(()=>{o({})},[]),u=(0,h.useCallback)(e=>{o(t=>{const n={...t};return e.forEach(e=>{n[e]=!0}),n})},[]);return{rowSelectionState:r,setRowSelectionState:o,lastClickedRowId:i,handleRowClick:a,selectRow:s,deselectRow:l,clearSelection:c,selectRows:u}})({rowSelection:i,enableRowSelection:a}),le=(0,h.useRef)(oe);le.current=oe;const{contextMenuPosition:ce,contextMenuVisible:ue,contextMenuItems:de,setContextMenuVisible:pe,setContextMenuPosition:he,setContextMenuItems:fe,headerMenuVisible:ge,headerContextMenuIndex:me,headerContextMenuPosition:ve,setHeaderMenuVisible:ye,setHeaderContextMenuIndex:Ae,columnRef:we,headerRefs:be,handleHeaderClick:_e}=(()=>{const[e,t]=(0,h.useState)(null),[n,r]=(0,h.useState)(!1),[o,i]=(0,h.useState)([]),[a,s]=(0,h.useState)(!1),[l,c]=(0,h.useState)(null),[u,d]=(0,h.useState)(null),p=(0,h.useRef)(null),f=(0,h.useRef)({}),g=(0,h.useCallback)((e,t,n)=>{if(e.stopPropagation(),a&&l===t)return void s(!1);s(!1),p.current=n;const o=f.current[t].getBoundingClientRect();Promise.resolve(d({top:o.bottom,left:o.right})).then(()=>{c(t),s(!0),r(!1)})},[a,l]);return{contextMenuPosition:e,contextMenuVisible:n,contextMenuItems:o,setContextMenuVisible:r,setContextMenuPosition:t,setContextMenuItems:i,headerMenuVisible:a,headerContextMenuIndex:l,headerContextMenuPosition:u,setHeaderMenuVisible:s,setHeaderContextMenuIndex:c,setHeaderContextMenuPosition:d,columnRef:p,headerRefs:f,handleHeaderClick:g}})(),{sorting:Ce,setSorting:Ee,columnFilters:Se,setColumnFilters:Oe,debouncedSetColumnFilters:xe}=(()=>{const[e,t]=(0,h.useState)([]),[n,r]=(0,h.useState)([]),o=(0,h.useRef)(null),i=(0,h.useCallback)(e=>{null!=o.current&&(clearTimeout(o.current),o.current=null),o.current=setTimeout(()=>{r(e)},300)},[]),a=(0,h.useCallback)(()=>{o.current&&(clearTimeout(o.current),o.current=null)},[]);return(0,h.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]),{sorting:e,setSorting:t,columnFilters:n,setColumnFilters:r,debouncedSetColumnFilters:i,clearFilterTimeout:a}})(),{columns:De,getCustomAggregateFunctionName:Pe,cellUpdateManager:Me}=(e=>{const{columnDefs:t,defaultColDef:n,autoGroupColumnDef:r,getRowId:o,initialized:i,tableRef:a}=e,s=(()=>{const e=(0,h.useRef)(new Map),t=(0,h.useCallback)(t=>e.current.get(t)??0,[]),n=(0,h.useCallback)(t=>{for(const n of t){const t=e.current.get(n)??0;e.current.set(n,t+1)}},[]);return(0,h.useMemo)(()=>({invalidateColumns:n,getColumnVersion:t}),[n,t])})();(e=>{const{columnDefs:t,cellUpdateManager:n}=e,r=(0,h.useRef)(new Map);(0,h.useEffect)(()=>{const e=new Set,o=new Map;for(const n of t){const t=n.id??n.accessorKey?.toString()??"";o.set(t,n);const i=r.current.get(t);i&&(i.valueGetter===n.valueGetter&&i.cellRenderer===n.cellRenderer||e.add(t))}r.current=o,e.size>0&&n.invalidateColumns(Array.from(e))},[t,n])})({columnDefs:t,cellUpdateManager:s});const l=(0,h.useMemo)(()=>{const e=r??null,s=null!=e?{...n,...e}:null,l={...n,id:"id",header:"ID",accessorKey:"id",hide:!0},c=[s].filter(e=>null!=e),u=[...c,...t].map(e=>({...n,...e})),d=o&&!u.some(e=>"id"===e.id?.toLowerCase())?[l,...u]:u,p=d.reduce((e,t)=>e+(t?.flex??0),0);return d.map(e=>{const t=e.flex&&i?rz(e.flex/p*100,a.current)-25:void 0,n=e.size??t;return{...e,...n&&{size:n},aggregationFn:e.aggregationFn?e.aggregationFn:e.customAggregate?Qq(e.id):e.aggregationFn,dataType:e.dataType??"string"}})},[t,n,r,o,i,a]);return{columns:l,getCustomAggregateFunctionName:Qq,cellUpdateManager:s}})({columnDefs:l,defaultColDef:c,autoGroupColumnDef:u,getRowId:f,initialized:ee,tableRef:j}),{data:Te,setDataPage:Re,setRowDataArray:Ie,rowDataArrayRef:Fe,allDataRef:ke,textFilteredDataRef:Le,treeDataAccessorsRef:Be}=(e=>{const{rowData:t,columns:n,treeDataAccessors:r,getRowId:o}=e,[i,a]=(0,h.useState)(t??[]),[s,l]=(0,h.useState)(1),c=(0,h.useRef)([]),u=(0,h.useRef)([]),d=(0,h.useRef)([]),p=(0,h.useRef)({});(0,h.useEffect)(()=>{r&&(p.current=r)},[r]),(0,h.useEffect)(()=>{null!=t&&(u.current=t.map(e=>o?{...e,id:o(e)}:e),c.current=u.current,d.current=u.current,a(u.current))},[t,o]);const f=(0,h.useMemo)(()=>{const e=0===s?1:s,{trimmedData:t}=fz(u.current,n,p.current?.keyAccessor,p.current?.relationKeyAccessor,o);if(null==t||0===t.length)return t;if(p.current&&Object.keys(p.current).length){const e=p.current.keyAccessor?.toString(),n=p.current.relationKeyAccessor?.toString();if(!az(e)&&!az(n))return hz(t,e,n)}return t.slice(0,1e3*e)},[i,n,s]);return{data:f,dataPage:s,setDataPage:l,rowDataArray:i,setRowDataArray:a,rowDataArrayRef:u,allDataRef:c,textFilteredDataRef:d,treeDataAccessorsRef:p}})({rowData:d,columns:De,treeDataAccessors:g,getRowId:f}),Ne=(0,h.useMemo)(()=>De.map((e,t)=>({...e,cell:n=>(0,p.jsx)(pY,{enable:L,onValue:n.getValue(),children:YW(n,t,Fe.current[n.row.index],e.cellRenderer,e.valueGetter)})})),[De,L,Fe]),{sensors:je,handleColumnDragEnd:Ue,handleRowDragEnd:Ve}=(e=>{const{rowDataArrayRef:t,allDataRef:n,textFilteredDataRef:r,setRowDataArray:o,setColumnOrder:i,onRowDragEnd:a,onColumnDragEnd:s}=e;return{sensors:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,h.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}(XV(GH,{}),XV(zH,{}),XV(kH,{coordinateGetter:zG})),handleColumnDragEnd:(0,h.useCallback)(e=>{const{active:t,over:n}=e;t&&n&&t.id!==n.id&&i(e=>{const r=e.indexOf(t.id),o=e.indexOf(n.id);return s?.({fromIndex:r,toIndex:o}),SG(e,r,o)})},[i,s]),handleRowDragEnd:(0,h.useCallback)((e,i)=>{const{active:s,over:l}=e,c=i.getRowModel().rows;if(s&&l&&s.id!==l.id){const e=c.findIndex(e=>e.id===s.id),i=c.findIndex(e=>e.id===l.id);if(-1!==e&&-1!==i){const s=[...t.current],[l]=s.splice(e,1);s.splice(i,0,l),t.current=s,n.current=s,r.current=s,o(s),a?.({fromIndex:e,toIndex:i})}}},[t,n,r,o,a])}})({rowDataArrayRef:Fe,allDataRef:ke,textFilteredDataRef:Le,setRowDataArray:Ie,setColumnOrder:K,onRowDragEnd:m,onColumnDragEnd:v}),{addToTransactionQueue:He,applyTransaction:Ge,flushTransactions:We,setAsyncTransactionWaitMillis:ze,flushTransactionsTimeoutRef:$e}=(e=>{const{tableId:t,autoGroupColumnDef:n,columns:r,asyncTransactionTimeoutMillis:o,rowDataArrayRef:i,allDataRef:a,treeDataAccessorsRef:s,setRowDataArray:l,tableRef:c,rowVirtualizerRef:u}=e,d=(0,h.useRef)([]),p=(0,h.useRef)(o),f=(0,h.useRef)(),g=(0,h.useCallback)((e,r)=>{null!=n?d.current.push({rowDataTransaction:e,callback:r}):Kq("AutoGroupColumnDef not defined - transaction grid updates are not supported",t)},[n,t]),m=(0,h.useCallback)(e=>{const o={add:[],update:[],remove:[]};if(null==n)return Kq("AutoGroupColumnDef not defined - transaction grid updates are not supported",t),o;const c=n.id;if(!c)return Kq("No id accessor found in autoGroupColumnDef",t),o;const u=i.current.reduce((e,t,n)=>(e[String(t[c])]={data:t,index:n},e),{});let d=[],p={},h=[];if(e.add&&(d=[...e.add],o.add=e.add),e.update&&(p=e.update.reduce((e,t)=>{const n=String(t[c]),r=u[n];return null!=r?.index&&(e[r.index]=t),e},{}),o.update=e.update),e.remove&&(h=e.remove.map(e=>{const t=String(e[c]);return u[t]?.index}).filter(e=>null!=e),o.remove=e.remove),d.length>0||Object.keys(p).length>0||h.length>0){const{trimmedData:e,data:t}=fz([...i.current.map((e,t)=>p[t]??e).filter((e,t)=>!h.includes(t)),...d],r,s.current?.keyAccessor,s.current?.relationKeyAccessor);a.current=[...a.current.map(e=>{const t=String(e[c]),n=Object.values(p).find(e=>String(e[c])===t);return n??e}).filter((e,t)=>!h.includes(t)),...d],i.current=t,l(e)}return o},[n,t,r,i,a,s,l]),v=(0,h.useCallback)(()=>{if(null==n)return Kq("AutoGroupColumnDef not defined - transaction grid updates are not supported",t),void(f.current=setTimeout(v,p.current));if(d.current.length>0){let e=!1;const t=d.current;d.current=[];const o=n.id;let p=[],h={},f=[];const g=i.current.reduce((e,t,n)=>(e[String(t[o])]={data:t,index:n},e),{});for(const n of t){const{rowDataTransaction:t,callback:r}=n,i={};if(t.add&&(p=[...p,...t.add],i.add=t.add,e=!0),t.update){const n=t.update.reduce((e,t)=>{const n=String(t[o]);return null!=g[n]?.index&&(e[g[n].index]=t),e},{});h={...h,...n},i.update=t.update,e=!0}t.remove&&(f=[...f,...t.remove.map(e=>{const t=String(e[o]);return g[t]?.index}).filter(e=>null!=e)],i.remove=t.remove,e=!0),r?.(i)}if(e){const{trimmedData:e,data:t}=fz([...i.current.map((e,t)=>h[t]??e).filter((e,t)=>!f.includes(t)),...p],r,s.current?.keyAccessor,s.current?.relationKeyAccessor);a.current=[...a.current.map(e=>{const t=String(e[o]),n=Object.values(h).find(e=>String(e[o])===t);return n??e}).filter((e,t)=>!f.includes(t)),...p],i.current=t;const n=c.current,d=u.current;if(n&&d){const t=d.getVirtualItems().map(e=>e.index),r=n.getRowModel().rows,o=t.map(e=>r[e]?.index).filter(e=>null!=e),a=[...h&&Object.keys(h).map(Number),...p.map((e,t)=>t+i.current.length),...f.map(e=>g[String(e)]?.index)];(a.some(e=>o.includes(e))||a.some(e=>!r.includes(e)))&&l(e)}else l(e)}}f.current=setTimeout(v,p.current)},[n,t,r,i,a,s,l,c,u]),y=(0,h.useCallback)(e=>{p.current=e},[]);return{addToTransactionQueue:g,applyTransaction:m,flushTransactions:v,setAsyncTransactionWaitMillis:y,transactionsQueueRef:d,flushTransactionsTimeoutRef:f}})({tableId:A,autoGroupColumnDef:u,columns:Ne,asyncTransactionTimeoutMillis:T,rowDataArrayRef:Fe,allDataRef:ke,textFilteredDataRef:Le,treeDataAccessorsRef:Be,setRowDataArray:Ie,tableRef:U,rowVirtualizerRef:V}),Ke=(0,h.useCallback)(()=>U.current?$q(U.current,le.current,Ce,W,Se,J,He,ze,Ge):null,[Ce,W,Se,He,ze,Ge]),Qe=(0,h.useCallback)((e,t,n)=>{const r=Fe.current.map((r,o)=>o===e?{...r,[t]:n}:r);Fe.current=r,Ie(Fe.current),b?.({cellData:n,rowIndex:e,columnId:t,api:Ke()})},[Fe,Ie,b,Ke]),{tableOptions:qe}=(e=>{const{data:t,columns:n,rowSelectionState:r,sorting:o,grouping:i,columnFilters:a,columnOrder:s,columnPinning:l,columnVisibility:c,expanded:u,enableRowSelection:d,getRowId:p,getSubRows:f,getCustomAggregateFunctionName:g,onRowSelectionChange:m,onSortingChange:v,onGroupingChange:y,onColumnFiltersChange:A,onExpandedChange:w,onColumnOrderChange:b,onColumnPinningChange:_,onColumnVisibilityChange:C,updateData:E}=e,S=(0,h.useMemo)(()=>e=>e.subRows??[],[]),O=f??S,x=(0,h.useMemo)(()=>n.filter(e=>e.customAggregate).reduce((e,t)=>(e[g(t.id)]=t.customAggregate,e),{}),[n,g]),D=(0,h.useMemo)(()=>({rowSelection:r,sorting:o,grouping:i,columnFilters:a,columnOrder:s,columnPinning:l,columnVisibility:c,expanded:u}),[r,o,i,a,s,l,c,u]),P=(0,h.useMemo)(()=>({updateData:E}),[E]),M=(0,h.useMemo)(()=>e=>XG(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const a=[];for(let l=0;l<t.length;l++){const c=rW(e,e._getRowId(t[l],l,i),t[l],l,o,void 0,null==i?void 0:i.id);var s;n.flatRows.push(c),n.rowsById[c.id]=c,a.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=c.originalSubRows)&&s.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return a};return n.rows=r(t),n},ZG(e.options,"debugTable",0,()=>e._autoResetPageIndex())),[]),T=(0,h.useMemo)(()=>e=>XG(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],i=r.filter(t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()}),a={};i.forEach(t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});const s=e=>{const t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let r=0;r<i.length;r+=1){var n;const o=i[r],s=a[o.id],l=s.sortUndefined,c=null!=(n=null==o?void 0:o.desc)&&n;let u=0;if(l){const n=void 0===e.getValue(o.id),r=void 0===t.getValue(o.id);if(n||r){if("first"===l)return n?-1:1;if("last"===l)return n?1:-1;u=n&&r?0:n?l:-l}}if(0===u&&(u=s.sortingFn(e,t,o.id)),0!==u)return c&&(u*=-1),s.invertSorting&&(u*=-1),u}return e.index-t.index}),t.forEach(e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(n.rows),flatRows:o,rowsById:n.rowsById}},ZG(e.options,"debugTable",0,()=>e._autoResetPageIndex())),[]),R=(0,h.useMemo)(()=>e=>XG(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||(null==n||!n.length)&&!r){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const o=[],i=[];(null!=n?n:[]).forEach(t=>{var n;const r=e.getColumn(t.id);if(!r)return;const i=r.getFilterFn();i&&o.push({id:t.id,filterFn:i,resolvedValue:null!=(n=null==i.resolveFilterValue?void 0:i.resolveFilterValue(t.value))?n:t.value})});const a=(null!=n?n:[]).map(e=>e.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());let c,u;r&&s&&l.length&&(a.push("__global__"),l.forEach(e=>{var t;i.push({id:e.id,filterFn:s,resolvedValue:null!=(t=null==s.resolveFilterValue?void 0:s.resolveFilterValue(r))?t:r})}));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},o.length)for(let e=0;e<o.length;e++){c=o[e];const t=c.id;n.columnFilters[t]=c.filterFn(n,t,c.resolvedValue,e=>{n.columnFiltersMeta[t]=e})}if(i.length){for(let e=0;e<i.length;e++){u=i[e];const t=u.id;if(u.filterFn(n,t,u.resolvedValue,e=>{n.columnFiltersMeta[t]=e})){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return function(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var r;const o=[],i={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let u=0;u<e.length;u++){var c;let d=e[u];const p=rW(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(p.columnFilters=d.columnFilters,null!=(c=d.subRows)&&c.length&&r<a){if(p.subRows=s(d.subRows,r+1),d=p,t(d)&&!p.subRows.length){l.push(d),i[d.id]=d,o.push(d);continue}if(t(d)||p.subRows.length){l.push(d),i[d.id]=d,o.push(d);continue}}else d=p,t(d)&&(l.push(d),i[d.id]=d,o.push(d))}return l};return{rows:s(e),flatRows:o,rowsById:i}}(e,t,n):function(e,t,n){var r;const o=[],i={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let u=0;u<e.length;u++){let d=e[u];if(t(d)){var c;if(null!=(c=d.subRows)&&c.length&&r<a){const e=rW(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=s(d.subRows,r+1),d=e}l.push(d),o.push(d),i[d.id]=d}}return l};return{rows:s(e),flatRows:o,rowsById:i}}(e,t,n)}(t.rows,e=>{for(let t=0;t<a.length;t++)if(!1===e.columnFilters[a[t]])return!1;return!0},e)},ZG(e.options,"debugTable",0,()=>e._autoResetPageIndex())),[]),I=(0,h.useMemo)(()=>e=>XG(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?function(e){const t=[],n=e=>{var r;t.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}(t):t,ZG(e.options,"debugTable")),[]),F=(0,h.useMemo)(()=>e=>XG(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach(e=>{e.depth=0,e.parentId=void 0}),n;const r=t.filter(t=>e.getColumn(t)),o=[],i={},a=function(t,n,s){if(void 0===n&&(n=0),n>=r.length)return t.map(e=>(e.depth=n,o.push(e),i[e.id]=e,e.subRows&&(e.subRows=a(e.subRows,n+1,e.id)),e));const l=r[n],c=function(e,t){const n=new Map;return e.reduce((e,n)=>{const r=`${n.getGroupingValue(t)}`,o=e.get(r);return o?o.push(n):e.set(r,[n]),e},n)}(t,l),u=Array.from(c.entries()).map((t,c)=>{let[u,d]=t,p=`${l}:${u}`;p=s?`${s}>${p}`:p;const h=a(d,n+1,p);h.forEach(e=>{e.parentId=p});const f=n?YG(d,e=>e.subRows):d,g=rW(e,p,f[0].original,c,n,void 0,s);return Object.assign(g,{groupingColumnId:l,groupingValue:u,subRows:h,leafRows:f,getValue:t=>{var n;if(r.includes(t))return g._valuesCache.hasOwnProperty(t)||d[0]&&(g._valuesCache[t]=null!=(n=d[0].getValue(t))?n:void 0),g._valuesCache[t];if(g._groupingValuesCache.hasOwnProperty(t))return g._groupingValuesCache[t];const o=e.getColumn(t),i=null==o?void 0:o.getAggregationFn();return i?(g._groupingValuesCache[t]=i(t,f,d),g._groupingValuesCache[t]):void 0}}),h.forEach(e=>{o.push(e),i[e.id]=e}),g});return u},s=a(n.rows,0);return s.forEach(e=>{o.push(e),i[e.id]=e}),{rows:s,flatRows:o,rowsById:i}},ZG(e.options,"debugTable",0,()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})})),[]),k=(0,h.useMemo)(()=>(e,t)=>XG(()=>{var n;return[null==(n=e.getColumn(t))?void 0:n.getFacetedRowModel()]},e=>{if(!e)return new Map;let n=new Map;for(let o=0;o<e.flatRows.length;o++){const i=e.flatRows[o].getUniqueValues(t);for(let e=0;e<i.length;e++){const t=i[e];var r;n.has(t)?n.set(t,(null!=(r=n.get(t))?r:0)+1):n.set(t,1)}}return n},ZG(e.options,"debugTable")),[]);return{tableOptions:(0,h.useMemo)(()=>({data:t,columns:n,getCoreRowModel:M,columnResizeMode:"onChange",defaultColumn:cY,state:D,filterFns:uY,aggregationFns:x,enableColumnResizing:!0,enableRowSelection:d,enableMultiRowSelection:!0,enableColumnFilters:!0,manualFiltering:!0,manualSorting:!0,enableSorting:!0,enableColumnPinning:!0,enableExpanding:!0,enableSubRowSelection:!!d,enableHiding:!0,onRowSelectionChange:null!=d&&!1!==d?m:void 0,onSortingChange:v,onGroupingChange:y,onColumnFiltersChange:A,onExpandedChange:w,onColumnOrderChange:b,onColumnPinningChange:_,onColumnVisibilityChange:C,getRowId:p,getSortedRowModel:T,getFilteredRowModel:R,getExpandedRowModel:I,getGroupedRowModel:F,getSubRows:O,getFacetedUniqueValues:k,autoResetExpanded:!1,meta:P}),[t,n,M,D,x,d,m,v,y,A,w,b,_,C,p,T,R,I,F,O,k,P])}})({data:Te,columns:Ne,rowSelectionState:oe,sorting:Ce,grouping:H,columnFilters:Se,columnOrder:$,columnPinning:Q,columnVisibility:Y,expanded:W,enableRowSelection:a,getRowId:f,getSubRows:B,getCustomAggregateFunctionName:Pe,onRowSelectionChange:a?ie:void 0,onSortingChange:e=>{Ee(e),V.current&&V.current.scrollToIndex?.(0),Re(e=>0===e?1:0)},onGroupingChange:G,onColumnFiltersChange:e=>{xe(e),V.current&&V.current.scrollToIndex?.(0),Re(e=>0===e?1:0)},onExpandedChange:z,onColumnOrderChange:K,onColumnPinningChange:q,onColumnVisibilityChange:X,updateData:Qe}),Ye=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=h.useState(()=>({current:GW(t)})),[r,o]=h.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}(qe);U.current=Ye;const{rowVirtualizer:Xe,fetchMoreOnBottomReached:Ze}=(e=>{const{table:t,tableRef:n,rowHeight:r,rowDataArrayRef:o,setDataPage:i}=e,a=(0,h.useCallback)(e=>{const n=t.getRowModel().rows[e];return n?.id??e},[t]),s=function(e){return function(e){const t=h.useReducer(()=>({}),{})[1],n={...e,onChange:(n,r)=>{var o;r?(0,Ls.flushSync)(t):t(),null==(o=e.onChange)||o.call(e,n,r)}},[r]=h.useState(()=>new aY(n));return r.setOptions(n),h.useEffect(()=>r._didMount(),[]),lY(()=>r._willUpdate()),r}({observeElementRect:eY,observeElementOffset:rY,scrollToFn:iY,...e})}({count:t.getRowModel().rows.length,estimateSize:()=>r??25,getScrollElement:()=>n.current,getItemKey:a,measureElement:"undefined"!=typeof window&&-1===navigator.userAgent.indexOf("Firefox")?e=>e?.getBoundingClientRect().height:void 0,overscan:5}),l=(0,h.useCallback)(e=>{if(e){const{scrollHeight:n,scrollTop:r,clientHeight:a}=e;n-r-a<500&&t.getRowModel().rows.length<o.current.length&&i(e=>e+1)}},[t,o,i]);return(0,h.useEffect)(()=>{l(n.current)},[l,n]),{rowVirtualizer:s,fetchMoreOnBottomReached:l}})({table:Ye,tableRef:j,rowHeight:M,rowDataArrayRef:Fe,setDataPage:Re});V.current=Xe;const{handleRowDoubleClick:Je,handleContextMenuClick:et}=(e=>{const{getTableApi:t,onRowDoubleClick:n,onCellContextMenu:r,getContextMenuItems:o}=e,i=(0,h.useCallback)((e,t)=>{n?.(e,t)},[n]),a=(0,h.useCallback)(e=>{const{e:n,row:i,index:a,rowSelectionState:s,setContextMenuVisible:l,setContextMenuPosition:c,setContextMenuItems:u,setHeaderContextMenuIndex:d,setHeaderMenuVisible:p,setRowSelectionState:h,lastClickedRowId:f}=e;window.dispatchEvent(new Event("click")),n.preventDefault(),l(!1);let g=s;s[i.id]||(f.current=i.id,g={[i.id]:!0},h(g));const m=t();o?.({api:m,data:{rowData:i.original,rowIndex:a}}).then(e=>{c({top:n.clientY,left:n.clientX}),u(e),l(!0),d(null),p(!1)}),r?.({api:m,data:{rowData:i.original,rowIndex:a}})},[t,o,r]);return{handleRowDoubleClick:i,handleContextMenuClick:a}})({getTableApi:Ke,onRowDoubleClick:_,onCellContextMenu:C,getContextMenuItems:E}),{loadTableState:tt}=(e=>{const{tableId:t,table:n,initialized:r,sorting:o,columnFilters:i,columnOrder:a,columnPinning:l,columnVisibility:c,expanded:u,rowSelectionState:d}=e,p=(0,h.useRef)(s.GVDebug.extend("table")),f=(0,h.useRef)(0),g=(0,h.useRef)(null),m=(0,h.useCallback)(e=>{if(!t)return;const n=Date.now()-f.current;g.current&&(clearTimeout(g.current),g.current=null);const r=()=>{try{const n={...e.getState()};delete n.rowSelection,p.current("Saving table state",n),s.GVStorage.get("table").storage.setItem(`table_state_${t}`,JSON.stringify(n)),f.current=Date.now()}catch(e){p.current("Failed to save table state",e)}};n>=100?r():g.current=setTimeout(r,100-n)},[t]);(0,h.useEffect)(()=>()=>{g.current&&clearTimeout(g.current)},[]);const v=(0,h.useCallback)(()=>{if(!t)return{};try{const e=s.GVStorage.get("table").storage.getItem(`table_state_${t}`);if(e)return p.current("Loading saved table state",e),JSON.parse(e)}catch(e){p.current("Failed to load/parse saved state",e)}return{}},[t]);return(0,h.useEffect)(()=>{r&&n&&m(n)},[n,r,m,o,i,a,l,c,u,d]),{loadTableState:v}})({tableId:A,table:Ye,initialized:ee,sorting:Ce,columnFilters:Se,columnOrder:$,columnPinning:Q,columnVisibility:Y,expanded:W,rowSelectionState:oe}),nt=(0,h.useMemo)(()=>Ye.getRowModel().rows,[Ye,Ye.getState()]);(e=>{const{setContextMenuVisible:t,setHeaderContextMenuIndex:n,setHeaderMenuVisible:r}=e;(0,h.useEffect)(()=>{const e=()=>{t(!1),n(null),r(!1)},o=e=>{"Escape"===e.key&&(r(!1),t(!1))};return window.addEventListener("click",e),window.addEventListener("keydown",o),()=>{window.removeEventListener("click",e),window.removeEventListener("keydown",o)}},[t,n,r])})({setContextMenuVisible:pe,setHeaderContextMenuIndex:Ae,setHeaderMenuVisible:ye}),(e=>{const{columns:t,columnVisibility:n,setColumnVisibility:r}=e;(0,h.useEffect)(()=>{const e=t.reduce((e,t)=>{if(t.hide){const n=t.id??t.accessorKey;n&&(e[n]=!1)}return e},{});Object.entries(e).some(e=>n[e[0]]!==e[1])&&r(t=>({...t,...e}))},[t,n,r])})({columns:Ne,columnVisibility:Y,setColumnVisibility:X}),(e=>{const{table:t,sorting:n,columnFilters:r,setColumnFilters:o,rowData:i,columnDefs:a,gridOptions:s,rowDataArrayRef:l,allDataRef:c,textFilteredDataRef:u,setDataPage:d,getRowId:p}=e;(0,h.useEffect)(()=>{if(!t)return;if(r.some(e=>""===e.value||null==e.value||Array.isArray(e.value)&&0===e.value.length))return void o(e=>e.filter(e=>""!==e.value&&null!=e.value&&(!Array.isArray(e.value)||e.value.length>0)));const e=c.current.map(e=>p?{...e,id:p(e)}:e);if(l.current=e,0===r.length&&0===n.length)return void d(e=>0===e?1:0);const i=gz(r,t,l,u);let{rowDataIntermediate:h}=i;const{textFilteredDataIntermediate:f}=i;h=mz(n,a,s,h),l.current=h,u.current=f,d(e=>0===e?1:0)},[t,n,r,i,a,s,l,c,u,d,p,o])})({table:Ye,sorting:Ce,columnFilters:Se,setColumnFilters:Oe,rowData:d,columnDefs:l,gridOptions:e.gridOptions,rowDataArrayRef:Fe,allDataRef:ke,textFilteredDataRef:Le,setDataPage:Re,getRowId:f}),(e=>{const{table:t,columns:n,initialized:r,setInitialized:o,loadTableState:i,groupDefaultExpanded:a,setRowSelectionState:s,setSorting:l,setColumnFilters:c,setColumnOrder:u,setColumnPinning:d,setColumnVisibility:p,setExpanded:f,getTableApi:g,onTableReady:m}=e;(0,h.useEffect)(()=>{if(!t||r)return;const e=setTimeout(()=>{const e=n.map(e=>e.id),t=i();s(t.rowSelection??{}),l(t.sorting??[]),c(t.columnFilters??[]),u((t?.columnOrder?.length?t.columnOrder:e).filter(e=>null!=e)),d(t.columnPinning??{}),p(t.columnVisibility??{}),f(t.expanded??(!!a||{}));const r=g();r&&m?.(r),o(!0)},100);return()=>clearTimeout(e)},[t,r,n,i,a,s,l,c,u,d,p,f,g,m,o])})({table:Ye,columns:Ne,initialized:ee,setInitialized:te,loadTableState:tt,groupDefaultExpanded:w,setRowSelectionState:ie,setSorting:Ee,setColumnFilters:Oe,setColumnOrder:K,setColumnPinning:q,setColumnVisibility:X,setExpanded:z,getTableApi:Ke,onTableReady:N}),(e=>{const{table:t,data:n,rowSelectionState:r,loading:o,setLoadingOverlayVisible:i,getTableApi:a,onRowSelected:s,onRowDataUpdated:l}=e,c=(0,h.useRef)(s);c.current=s;const u=(0,h.useRef)(t);u.current=t;const d=(0,h.useRef)(a);d.current=a;const p=(0,h.useRef)(r);(0,h.useEffect)(()=>{const e=c.current,t=u.current;if(!e||!t)return;const n=Object.keys(p.current),o=Object.keys(r);n.length===o.length&&n.every(e=>r[e]===p.current[e])&&p.current===r||(p.current=r,e({rowsSelected:o.map(e=>t.getRowModel().rows.find(t=>t.id===e)?.original),api:d.current()}))},[r]);const f=(0,h.useRef)(l);f.current=l,(0,h.useEffect)(()=>{const e=f.current;e&&e({rowData:n,api:d.current()})},[n]),(0,h.useEffect)(()=>{i(o)},[o,i])})({table:Ye,data:Te,rowSelectionState:oe,loading:o,setLoadingOverlayVisible:J,getTableApi:Ke,onRowSelected:S,onRowDataUpdated:O}),(e=>{const{rows:t,rowVirtualizer:n,rowDataArrayRef:r,setRowDataArray:o,autoGroupColumnDef:i,tableId:a,flushTransactions:s,flushTransactionsTimeoutRef:l}=e;(0,h.useEffect)(()=>{s()},[]),(0,h.useEffect)(()=>()=>{const e=l.current;e&&clearTimeout(e)},[l]),(0,h.useEffect)(()=>{if(!i)return void dY("AutoGroupColumnDef not defined - transaction grid updates are not supported",a);if(!n)return;const e=n.getVirtualItems().map(e=>e.index),s=e.map(e=>t[e]?.original).filter(Boolean),l=e.map(e=>r.current[e]).filter(Boolean);lz(l,s)||o(r.current)},[n?.isScrolling])})({rows:nt,rowVirtualizer:Xe,rowDataArrayRef:Fe,setRowDataArray:Ie,autoGroupColumnDef:u,tableId:A,flushTransactions:We,flushTransactionsTimeoutRef:$e});const rt=(0,h.useCallback)((e,t)=>{se(e,t,Ye)},[se,Ye]),ot=(0,h.useCallback)(e=>{"function"==typeof e?ie(t=>{const n=e(t);return le.current=n,n}):(le.current=e,ie(e))},[ie]),it=(0,h.useCallback)((e,t,n)=>{et({e,row:t,index:n,rowSelectionState:oe,setContextMenuVisible:pe,setContextMenuPosition:he,setContextMenuItems:fe,setHeaderContextMenuIndex:Ae,setHeaderMenuVisible:ye,setRowSelectionState:ot,lastClickedRowId:ae})},[et,oe,pe,he,fe,Ae,ye,ot,ae]);return(0,p.jsx)(AG,{collisionDetection:iH,modifiers:[CG],onDragEnd:Ue,sensors:je,id:`${A}-columns`,children:(0,p.jsxs)("div",{className:"ag-theme-grassvalley gv-table-container",ref:j,style:{width:"100%",...y},onScroll:e=>Ze(e.currentTarget),children:[(0,p.jsxs)("table",{className:"gv-table",children:[(0,p.jsx)("thead",{className:"gv-table-head",style:{position:"sticky",top:0,zIndex:10},children:(0,p.jsx)("tr",{style:{minHeight:R??25},children:(0,p.jsx)(kG,{items:$,strategy:PG,children:Ye.getHeaderGroups().map(e=>e.headers.map((t,n)=>{const r=Ne[n];return r&&r.rowGroup&&!H.includes(t.id)&&G([...H,t.id]),(0,p.jsx)(_z,{setHeaderRef:e=>be.current[n]=e,header:t,headerContextMenuIndex:me,setHeaderContextMenuIndex:Ae,headerIndex:n,handleHeaderClick:_e,headerGroup:e,suppressMenu:t.column.columnDef.suppressMenu},t.column.id)}))})},"gv-table-headers")}),(0,p.jsx)(AG,{collisionDetection:iH,modifiers:[EG],onDragEnd:e=>Ve(e,Ye),sensors:je,id:`${A}-rows`,children:(0,p.jsx)("tbody",{className:"gv-table-body",style:{height:0!==Xe.getTotalSize()?`${Xe.getTotalSize()}px`:"100px",position:"relative"},children:(0,p.jsx)(kG,{items:nt.map(e=>e.id),strategy:RG,children:Z?(0,p.jsx)(zW,{}):Xe.getVirtualItems().map(e=>{const t=nt[e.index];return(0,p.jsx)(Gz,{dataIndex:e.index,columns:Ne,row:t,rowVirtualizer:Xe,virtualRowIndex:e.index,onClick:e=>rt(e,t),onDblClick:e=>Je(e,t),onContextMenu:n=>it(n,t,e.index),style:{minHeight:M??25,position:"absolute",transform:`translateY(${e.start}px)`,zIndex:1},isSelected:!!oe[t.id],headers:Ye.getFlatHeaders(),headersWidth:Ye.getFlatHeaders().map(e=>e.getSize()),renderPlaceholders:P,showAggregatedValues:D,editMode:I,enterMovesDownAfterEdit:F,setEditing:re,editingState:ne,dragEnabled:k,virtualRowTop:e.start,cellUpdateManager:Me},t.id)})})})}),(0,p.jsx)("tfoot",{children:x&&Ye.getFooterGroups().map(e=>(0,p.jsx)("tr",{children:e.headers.map((t,n)=>(0,p.jsx)("th",{style:{maxWidth:t.getSize(),width:t.getSize(),...n===e.headers.length-1&&{flex:1}},children:t.isPlaceholder?null:WW(t.column.columnDef.footer,t.getContext())},t.id))},e.id))})]}),ue&&(0,Ls.createPortal)((0,p.jsx)("div",{className:"ag-theme-grassvalley",children:(0,p.jsx)(Az,{tableRef:j,contextMenuItems:de,style:{top:ce?ce.top:0,left:ce?ce.left:0},onClick:()=>pe(!1)})}),document.body),ge&&(0,Ls.createPortal)((0,p.jsx)("div",{className:"ag-theme-grassvalley",children:(0,p.jsx)(Vz,{tableRef:j,tableApi:Ye,header:we.current,allValues:Fe.current,textFilteredValues:Le.current,menuTabs:we.current?.column.columnDef?.menuTabs??[],style:{top:ve?ve.top:0,left:ve?ve.left:0},onClick:()=>ye(!1)})}),document.body)]})})},(e,t)=>{const n=e.gridOptions?.rowData===t.gridOptions?.rowData,r=e.style===t.style,o=e.tableId===t.tableId,i=e.gridOptions?.columnDefs===t.gridOptions?.columnDefs;return n&&i&&r&&o}),fY=e=>{const[t,n]=(0,h.useState)([]),[r,o]=(0,h.useState)([]),{registry:i,schema:a,formData:s}=e,{items:l,properties:c,type:u}=a;(0,h.useEffect)(()=>{if("object"===u){const e=Object.keys(c);o(e.map(e=>({id:e,...s&&s[e]?s[e]:{}})))}else o("array"===u?s?.map((e,t)=>({id:t,...e})):[])},[c,u,s]),(0,h.useEffect)(()=>{let e;if("object"===u){const t=Object.keys(c);e=c[t[0]]}else"array"===u&&(e=l);"boolean"!=typeof e&&e?.$ref&&(e=hV()(i,`${e.$ref.replace(/\//g,".").replace("#.","")}.properties`));const t=gV()(e,(e,t)=>{let n="string";switch(e.type){case"integer":case"number":n="number";break;case"boolean":n="boolean"}return{id:t,accessorKey:t,header:e.title||vV()(t),dataType:n}});n([{id:"id",accessorKey:"id",header:"",hide:!0},...t])},[l,c,i,u]);const d=e.uiSchema["ui:height"]||"400px",f=e.uiSchema["ui:width"]||"600px",g={rowData:r,rowSelection:"multiple",columnDefs:t};return(0,p.jsx)("div",{style:{height:d,width:f},children:(0,p.jsx)(hY,{tableId:"gv-matrixfield",gridOptions:g})})};function gY(e){return gY="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},gY(e)}function mY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){vY(e,t,n[t])})}return e}function vY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}u(55620),u(42613),function(){var e=new(KN())({errorDataPath:"property",allErrors:!0,multipleOfPrecision:8,schemaId:"auto",unknownFormats:"ignore"});e.addFormat("data-url",/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/),e.addFormat("color",/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/)}();var yY="__additional_property";function AY(e){return Object.keys(e).filter(function(e){return 0===e.indexOf("ui:")}).reduce(function(t,n){var r=e[n];return"ui:widget"===n&&wY(r)?(console.warn("Setting options via ui:widget object is deprecated, use ui:options instead"),mY({},t,r.options||{},{widget:r.component})):"ui:options"===n&&wY(r)?mY({},t,r):mY({},t,vY({},n.substring(3),r))},{})}function wY(e){return!("undefined"!=typeof File&&e instanceof File||"object"!==gY(e)||null===e||Array.isArray(e))}const bY=e=>{const{id:t,classNames:n,disabled:r,label:o,onDropPropertyClick:i,readonly:a,schema:s,uiSchema:l,onKeyChange:c,children:u}=e,[d,f]=(0,h.useState)(o),g=(0,h.useCallback)(e=>{e&&Number.isNaN(parseInt(e,10))?c&&!e.startsWith("newKey")&&c(e??o):f(o)},[o,c]),m=(0,h.useCallback)(e=>{f(e)},[]);if(!s.hasOwnProperty(yY))return(0,p.jsx)("div",{className:n,children:u});const{keyPlaceholder:v="Enter a key...",options:y}=AY(l),A=(y??[]).map(e=>"string"==typeof e?{value:e,label:e}:e.const?{value:e.const,title:e.title??e.const}:e);return d.startsWith("newKey")||(y??[]).includes(d)||A.push({value:d,label:d}),(0,p.jsxs)("div",{className:n,children:[(0,p.jsx)("div",{className:"",children:(0,p.jsx)("div",{className:"form-group",children:y?(0,p.jsx)(Lz,{id:`${t}_select`,options:A,value:d.startsWith("newKey")?null:d,onChange:g,placeholder:v,createable:!0}):(0,p.jsx)(pL,{style:"key",id:`${t}_text`,value:d.startsWith("newKey")?"":d,onChange:m,onBlur:g,placeholder:v})})}),(0,p.jsxs)("div",{className:"gv-form-additional-property",children:[u,(0,p.jsx)("div",{className:"gv-form-additional-property-remove",children:(0,p.jsx)(ko,{id:`${t}_remove`,style:"danger",icon:"interface-minus",tabIndex:"-1",disabled:r||a,onClick:i(o)})})]})]})},_Y=e=>{const{classNames:t,label:n,required:r,children:o,uiSchema:i,schema:a}=e;if("hidden"===i["ui:widget"])return null;const s=a.hasOwnProperty(yY);return(0,p.jsxs)(bY,{...e,classNames:`${t} gv-form-field-template`,children:[!s&&n&&(0,p.jsx)(cV,{required:r,children:a.title??n}),(0,p.jsx)("div",{className:"gv-form-field-template-input",children:(0,p.jsx)("div",{className:"gv-form-field-template-input-child",children:o})})]})},CY=e=>{const{style:t,disabled:n}=e,r=Oo()({"gv-label":!0,[`gv-label-${t}`]:!!t,"gv-label--disabled":n,[e.className]:!!e.className},e.classNames);return(0,p.jsx)("label",{className:r,htmlFor:e.htmlFor,children:e.children})},EY=s.GVDebug.extend("form").extend("fields").extend("objectTemplate").extend("constructor"),SY=e=>{const{description:t,formContext:n,uiSchema:r}=e,{displayTitle:o}=n,{additionalTitle:i="Additional Properties"}=AY(r);return EY("props",e),(0,p.jsxs)("div",{children:[o&&(0,p.jsx)("h1",{children:e.title}),t,(0,p.jsxs)("div",{className:"gv-form-field-object",children:[e.properties.map(e=>e.content),function(){const{formData:t,schema:n,uiSchema:r}=e;if(!n.additionalProperties)return!1;const{expandable:o}=AY(r);return!1===o?o:void 0===n.maxProperties||Object.keys(t).length<n.maxProperties}()&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(CY,{children:i}),(0,p.jsx)("div",{children:(0,p.jsx)(ko,{className:"object-property-expand",onClick:e.onAddClick(e.schema),disabled:e.disabled||e.readonly,icon:"interface-plus"})})]})]})]})},OY=e=>{const{items:t,canAdd:n,onAddClick:r}=e;return(0,p.jsx)("div",{children:(0,p.jsxs)("div",{className:"gv-form-field-array",children:[t.map(e=>xY(e)),n&&(0,p.jsx)(ko,{onClick:r,icon:"interface-plus",style:"secondary"})]})})},xY=e=>(0,p.jsxs)("div",{className:`${e.className} gv-form-field-array-item`,children:[e.hasToolbar&&(0,p.jsx)("div",{children:(0,p.jsxs)("span",{className:"gv-buttons",children:[e.hasRemove&&(0,p.jsx)(ko,{style:"secondary",icon:"interface-close",groupStart:!0,group:!0,groupEnd:!e.hasMoveUp&&!e.hasMoveDown,tabIndex:"-1",disabled:!e.hasRemove||e.disabled||e.readonly,onClick:e.onDropIndexClick(e.index)}),(e.hasMoveUp||e.hasMoveDown)&&(0,p.jsx)(ko,{style:"secondary",icon:"arrows-up",groupStart:!e.hasRemove,group:!0,groupEnd:!1,tabIndex:"-1",disabled:e.disabled||e.readonly||!e.hasMoveUp,onClick:e.onReorderClick(e.index,e.index-1)}),(e.hasMoveUp||e.hasMoveDown)&&(0,p.jsx)(ko,{style:"secondary",group:!0,groupEnd:!e.hasRemove,icon:"arrows-down",tabIndex:"-1",disabled:e.disabled||e.readonly||!e.hasMoveDown,onClick:e.onReorderClick(e.index,e.index+1)})]})}),(0,p.jsx)("div",{className:"gv-form-field-array-item-content",children:e.children})]},`div-${e.key}`),DY=e=>{const t=rs()(({formData:t})=>{const n=((e,t)=>{e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,n,r)=>t+t+n+n+r+r);const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16)/255,g:parseInt(n[2],16)/255,b:parseInt(n[3],16)/255,a:t??1}:null})(t.color,t.opacity);e.onChange(n)},250,{trailing:!0}),{formData:n={r:0,g:0,b:0,a:1},idSchema:r,disabled:o}=e,i={color:((e,t,n)=>`#${((1<<24)+(255*e<<16)+(255*t<<8)+255*n).toString(16).slice(1)}`)(n?.r??0,n?.g??0,n?.b??0),opacity:n?.a??1};return(0,p.jsx)(gX,{tagName:"div",onChange:t,formData:i,disabled:o,schema:{type:"object",properties:{color:{type:"string",title:"Color",default:"#000000"},opacity:{type:"number",title:"Opacity",default:1,maximum:1,minimum:0,multipleOf:.05}}},uiSchema:{color:{"ui:widget":"color"},opacity:{"ui:widget":"range"}},id:r.$id,children:(0,p.jsx)("span",{})})};function PY(){return PY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PY.apply(this,arguments)}var MY=h.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},h.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),TY=h.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},h.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function RY(e){if(7===e.length)return e;for(var t="#",n=1;n<4;n+=1)t+=e[n]+e[n];return t}function IY(e,t,n,r,o){return function(e,t,n,r,o){var i=(e-n)/(t-n);if(0===i)return r;if(1===i)return o;for(var a="#",s=1;s<6;s+=2){var l=parseInt(r.substr(s,2),16),c=parseInt(o.substr(s,2),16),u=Math.round((1-i)*l+i*c).toString(16);1===u.length&&(u="0"+u),a+=u}return a}(e,t,n,RY(r),RY(o))}var FY=function(e){function t(t){e.call(this,t);var n=t.height,r=t.width,o=t.checked;this.t=t.handleDiameter||n-2,this.i=Math.max(r-n,r-(n+this.t)/2),this.o=Math.max(0,(n-this.t)/2),this.state={h:o?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.g=this.g.bind(this),this.k=this.k.bind(this),this.m=this.m.bind(this),this.M=this.M.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.D=this.D.bind(this),this.O=this.O.bind(this),this.S=this.S.bind(this)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.componentDidMount=function(){this.W=!0},t.prototype.componentDidUpdate=function(e){e.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o})},t.prototype.componentWillUnmount=function(){this.W=!1},t.prototype.I=function(e){this.H.focus(),this.setState({R:e,j:!0,B:Date.now()})},t.prototype.L=function(e){var t=this.state,n=t.R,r=t.h,o=(this.props.checked?this.i:this.o)+e-n;t.N||e===n||this.setState({N:!0});var i=Math.min(this.i,Math.max(this.o,o));i!==r&&this.setState({h:i})},t.prototype.U=function(e){var t=this.state,n=t.h,r=t.N,o=t.B,i=this.props.checked,a=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var s=Date.now()-o;(!r||s<250||i&&n<=a||!i&&n>=a)&&this.A(e),this.W&&this.setState({N:!1,j:!1}),this.l=Date.now()},t.prototype.p=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.I(e.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},t.prototype.v=function(e){e.preventDefault(),this.L(e.clientX)},t.prototype.g=function(e){this.U(e),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},t.prototype.k=function(e){this.X=null,this.I(e.touches[0].clientX)},t.prototype.m=function(e){this.L(e.touches[0].clientX)},t.prototype.M=function(e){e.preventDefault(),this.U(e)},t.prototype.$=function(e){Date.now()-this.l>50&&(this.A(e),Date.now()-this.u>50&&this.W&&this.setState({j:!1}))},t.prototype.C=function(){this.u=Date.now()},t.prototype.D=function(){this.setState({j:!0})},t.prototype.O=function(){this.setState({j:!1})},t.prototype.S=function(e){this.H=e},t.prototype.T=function(e){e.preventDefault(),this.H.focus(),this.A(e),this.W&&this.setState({j:!1})},t.prototype.A=function(e){var t=this.props;(0,t.onChange)(!t.checked,e,t.id)},t.prototype.render=function(){var e=this.props,t=e.checked,n=e.disabled,r=e.className,o=e.offColor,i=e.onColor,a=e.offHandleColor,s=e.onHandleColor,l=e.checkedIcon,c=e.uncheckedIcon,u=e.checkedHandleIcon,d=e.uncheckedHandleIcon,p=e.boxShadow,f=e.activeBoxShadow,g=e.height,m=e.width,v=e.borderRadius,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),A=this.state,w=A.h,b=A.N,_=A.j,C={position:"relative",display:"inline-block",textAlign:"left",opacity:n?.5:1,direction:"ltr",borderRadius:g/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},E={height:g,width:m,margin:Math.max(0,(this.t-g)/2),position:"relative",background:IY(w,this.i,this.o,o,i),borderRadius:"number"==typeof v?v:g/2,cursor:n?"default":"pointer",WebkitTransition:b?null:"background 0.25s",MozTransition:b?null:"background 0.25s",transition:b?null:"background 0.25s"},S={height:g,width:Math.min(1.5*g,m-(this.t+g)/2+1),position:"relative",opacity:(w-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:b?null:"opacity 0.25s",MozTransition:b?null:"opacity 0.25s",transition:b?null:"opacity 0.25s"},O={height:g,width:Math.min(1.5*g,m-(this.t+g)/2+1),position:"absolute",opacity:1-(w-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:b?null:"opacity 0.25s",MozTransition:b?null:"opacity 0.25s",transition:b?null:"opacity 0.25s"},x={height:this.t,width:this.t,background:IY(w,this.i,this.o,a,s),display:"inline-block",cursor:n?"default":"pointer",borderRadius:"number"==typeof v?v-1:"50%",position:"absolute",transform:"translateX("+w+"px)",top:Math.max(0,(g-this.t)/2),outline:0,boxShadow:_?f:p,border:0,WebkitTransition:b?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:b?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:b?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},D={height:this.t,width:this.t,opacity:Math.max(2*(1-(w-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:b?null:"opacity 0.25s",MozTransition:b?null:"opacity 0.25s",transition:b?null:"opacity 0.25s"},P={height:this.t,width:this.t,opacity:Math.max(2*((w-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:b?null:"opacity 0.25s",MozTransition:b?null:"opacity 0.25s",transition:b?null:"opacity 0.25s"};return h.createElement("div",{className:r,style:C},h.createElement("div",{className:"react-switch-bg",style:E,onClick:n?null:this.T,onMouseDown:function(e){return e.preventDefault()}},l&&h.createElement("div",{style:S},l),c&&h.createElement("div",{style:O},c)),h.createElement("div",{className:"react-switch-handle",style:x,onClick:function(e){return e.preventDefault()},onMouseDown:n?null:this.p,onTouchStart:n?null:this.k,onTouchMove:n?null:this.m,onTouchEnd:n?null:this.M,onTouchCancel:n?null:this.O},d&&h.createElement("div",{style:D},d),u&&h.createElement("div",{style:P},u)),h.createElement("input",PY({},{type:"checkbox",role:"switch","aria-checked":t,checked:t,disabled:n,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},y,{ref:this.S,onFocus:this.D,onBlur:this.O,onKeyUp:this.C,onChange:this.$})))},t}(h.Component);FY.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:MY,checkedIcon:TY,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56};const kY=e=>{const{id:t,theme:n="default",onChange:r,value:o=!1,disabled:i}=e;let{onHandleColor:a,offHandleColor:s}=e;return"default"===n?(a="#3685D6",s="#2B333E"):"light"===n&&(a="#00C389",s="#FF4452"),(0,p.jsx)(FY,{id:t,className:"gv-switch",onChange:r,checked:o,activeBoxShadow:"0",onHandleColor:a,offHandleColor:s,offColor:"#0A121D",onColor:"#0A121D",checkedIcon:!1,uncheckedIcon:!1,height:30,width:53,handleDiameter:24,disabled:i})};s.GVDebug.extend("form").extend("buttonInput").extend("constructor");const LY=s.GVDebug.extend("form").extend("inputs").extend("button").extend("constructor"),BY=e=>{const{options:t,onChange:n,disabled:r,value:o,keyBase:i,icon:a}=e;return(0,h.useEffect)(()=>{LY("constructor",e)},[e]),(0,p.jsx)(Lo,{children:gV()(t,(e,t)=>{const s=e.value===o?"secondaryLight":"secondary";return(0,p.jsx)(ko,{onClick:()=>n(e.value),disabled:!0===e.disabled||!0===r,text:!0,style:s,icon:a?e.label:void 0,children:e.label},`${i}-${t}`)})})},NY=e=>"number"===e.valueType?(0,p.jsx)(QW,{style:"default",debounced:!1,...e}):"password"===e.valueType?(0,p.jsx)(pL,{style:"default",type:"password",...e}):(0,p.jsx)(pL,{style:"default",...e,onBlur:t=>e.onChange(t.trim())});let jY=null,UY=0,VY=0;const HY=({handle:{id:e,value:t,percent:n},getHandleProps:r,changed:o})=>(null!=jY&&jY.startValue===t&&(UY=n),VY=n,(0,p.jsx)("div",{className:Oo()({"gv-slider-handle":!0,"gv-slider-handle-changed":o}),style:{left:`${n}%`},...r(e)})),GY=({source:e,target:t,getTrackProps:n,changed:r})=>jY&&jY.startValue>0&&jY.endValue>jY.startValue&&jY.endValue<jY.rangeValue?(0,p.jsx)("div",{className:Oo()({"gv-slider-track":!0,"gv-slider-track-changed":r}),style:{left:`${UY}%`,width:VY-UY+"%"},...n()}):(0,p.jsx)("div",{className:Oo()({"gv-slider-track":!0,"gv-slider-track-changed":r}),style:{left:`${e.percent}%`,width:t.percent-e.percent+"%"},...n()}),WY=e=>{const{value:t,onChange:n,onUpdate:r,onSlideStart:o,onSlideEnd:i,changed:a,disabled:s,default:l,min:c=0,max:u=100,step:d,sliderWidth:f,trackRange:g}=e,m=!Number.isInteger(c)||!Number.isInteger(u),v=Math.abs(c)<=1&&Math.abs(u)<=1,y=d??(m||v?.01*Math.abs(u-c):1);h.useEffect(()=>{jY=g},[g]);const A=h.useCallback(e=>Math.min(Math.max(e,c),u),[c,u]),w=h.useCallback(()=>null==t||isNaN(t)?null==l||isNaN(l)?c:A(l):A(t),[t,l,c,A]),[b,_]=h.useState(w);h.useEffect(()=>{const e=w();_(e)},[t,c,u,l,w]);const C=(e,t)=>{const n=(t.toString().split(".")[1]||"").length;return Number(e.toFixed(n))};return(0,p.jsx)("div",{className:"gv-slider",children:(0,p.jsxs)(ce,{disabled:s,className:"gv-slider-slider",domain:[c,u],values:[b],step:y,mode:2,onChange:e=>{if(null===e[0]||isNaN(e[0]))return;const t=C(e[0],y);return _(t),n(t)},onUpdate:e=>{if(null===e[0]||isNaN(e[0]))return;const t=C(e[0],y);return _(t),void 0!==r?r(t):null},onSlideStart:e=>{o&&o(C(e[0],y))},onSlideEnd:e=>{i&&i(C(e[0],y))},rootStyle:{width:f||"152px"},children:[(0,p.jsx)(X,{children:({getRailProps:e})=>(0,p.jsx)("div",{className:Oo()({"gv-slider-rail":!0,"gv-slider-rail-changed":a}),...e()})}),(0,p.jsx)(Z,{children:({handles:e,getHandleProps:t})=>(0,p.jsx)("div",{className:"gv-slider-handles",children:e.map(e=>(0,p.jsx)(HY,{changed:a,handle:e,getHandleProps:t},e.id))})}),(0,p.jsx)(re,{left:!0,right:!1,children:({tracks:e,getTrackProps:t})=>(0,p.jsx)("div",{className:"gv-slider-tracks",children:e.map(({id:e,source:n,target:r})=>(0,p.jsx)(GY,{changed:a,source:n,target:r,getTrackProps:t},e))})})]})})},zY=e=>{const{value:t,options:n,disabled:r,onChange:o,id:i}=e,a=n.enumOptions?n.enumOptions.map(e=>({...e,disabled:(n.enumDisabled||[]).indexOf(e.value)>-1})):[];return(0,p.jsx)(BY,{keyBase:i,value:t,onChange:o,options:a,disabled:r})},$Y=e=>{const{id:t,value:n,disabled:r,onChange:o}=e;return(0,p.jsx)(kY,{id:t,value:n,onChange:e=>o(e,void 0),disabled:r})},KY=e=>{const{id:t,value:n,options:r,placeholder:o,disabled:i,onChange:a,multiple:s}=e,l=r.enumOptions.map(e=>({...e,disabled:(r.enumDisabled||[]).includes(e.value)})),{keepOpen:c,autoHeight:u,maxWidth:d,width:h,hideSelected:f,createable:g,optionsLength:m,useFullWidthLabel:v=!0}=r||{},y=(0,p.jsx)(Lz,{id:t,isMulti:s,isClearable:!!r.clearable,value:n,placeholder:o||"Select a value",onChange:a,options:l,disabled:i,autoHeight:u,maxWidth:d,width:h,keepOpen:c,hideSelected:f,createable:g,optionsLength:m,useFullWidthLabel:v});if(h&&"boolean"!=typeof h){const e="number"==typeof h?`${h}px`:String(h);return(0,p.jsx)("div",{style:{width:e},children:y})}return y},QY=s.GVDebug.extend("form").extend("widgets").extend("text").extend("constructor"),qY=e=>{QY("constructor",e);const{id:t,value:n,placeholder:r,disabled:o,onChange:i,schema:a,rawErrors:s,options:l={},autofocus:c,uiSchema:u={}}=e,d={valueType:"string"},h=!!(s?.length>0&&n?.length>0);return["integer","float","number"].indexOf(a.type)>-1&&(d.valueType="number",d.step=a.multipleOf,d.min=a.maximum?a.minimum<a.maximum?a.minimum:null:a.minimum,d.max=a.minimum?a.maximum>a.minimum?a.maximum:null:a.maximum,d.unit=u.unit),(0,p.jsx)(NY,{id:t,value:n||0===n?n:"",placeholder:r||"Enter a value",className:l.className,onChange:i,hint:h?`${l.message}`:"",disabled:o,autoFocus:c,textSelectedOnFocus:l.textSelectedOnFocus,style:h?"error":"default",...d})},YY=s.GVDebug.extend("form").extend("widgets").extend("textarea").extend("constructor"),XY=e=>{const{id:t,options:n={},placeholder:r,value:o,required:i,disabled:a,readonly:s,autofocus:l=!1,onBlur:c,onFocus:u,onChange:d}=e;YY("constructor",e);const f=(0,h.useCallback)(e=>{d(""===e.target.value?n.emptyValue:e.target.value)},[d,n.emptyValue]);return(0,p.jsx)("textarea",{id:t,className:"gv-textarea",value:void 0===o?"":o,placeholder:r,required:i,disabled:a,readOnly:s,autoFocus:l,rows:n.rows,onBlur:c&&(e=>c(t,e.target.value)),onFocus:u&&(e=>u(t,e.target.value)),onChange:f})},ZY=s.GVDebug.extend("form").extend("widgets").extend("range"),JY=ZY.extend("constructor"),eX=ZY.extend("update"),tX=e=>{JY("constructor",e);const{value:t,schema:n,options:r,onChange:o,disabled:i,id:a,placeholder:s}=e,{minimum:l,maximum:c,default:u,multipleOf:d}=n;let f=u||r.emptyValue,g=t;f&&(l||c)&&(l&&c?f<l?f=l:f>c&&(f=c):null!=l?f=l<1?0:l:null!=c&&(f=c>0?0:c)),g&&(l||c)&&(l&&g<l?g=l:c&&g>c&&(g=c));const[m,v]=(0,h.useState)(null!=g&&void 0!==g?g:f),[y,A]=(0,h.useState)(!1),[w,b]=(0,h.useState)(""),[_,C]=(0,h.useState)(!1);(0,h.useEffect)(()=>{t===m||null===t||y||v(t)},[t]);const E=_,S=(e,t)=>{v(e),A(!0),b(t)},O=e=>{v(e),A(!1),b(""),C(!1),o(e)};return(0,p.jsxs)("div",{className:"field-range-wrapper range-dark "+(_?"range-active":"range-default"),style:{display:"flex"},children:[(0,p.jsx)("div",{className:"range-slider",children:(0,p.jsx)(WY,{id:`${a}-slider`,value:m,changed:E,onChange:e=>{"slider"!==w&&""!==w||(eX(`onChangeSlider ${a}`,e),O(e))},onUpdate:e=>{S(e,"slider"),C(!0)},disabled:i,default:u,step:d,min:l<c?l:null,max:c>l?c:null})}),(0,p.jsx)("div",{className:"range-view",children:(0,p.jsx)(NY,{id:`${a}-text`,value:m,placeholder:s||"Enter a value",onChange:e=>{"text"!==w&&""!==w||(eX(`onChangeText ${a}`,e),O(e))},onUpdate:e=>{S(e,"text")},disabled:i,default:u,valueType:"number",step:d,min:l<c?l:null,max:c>l?c:null,style:"default"})})]})},nX=s.GVDebug.extend("form").extend("widgets").extend("password").extend("constructor"),rX=e=>{nX("constructor",e);const{id:t,value:n,placeholder:r,disabled:o,onChange:i,options:a,rawErrors:s}=e,l=s&&s.length>0&&n&&n.length>0,{autoComplete:c}=a||{},[u,d]=(0,h.useState)(!1),f=(0,h.useRef)(null);return(0,h.useEffect)(()=>()=>{f.current&&clearTimeout(f.current)},[]),(0,p.jsxs)("div",{style:{display:"flex",minWidth:"300px"},className:"gv-buttons",children:[(0,p.jsx)(NY,{id:`${t}_password_text`,style:l?"password-error":"password",value:n||"",hint:s?`${a.message}`:"",placeholder:r||"Enter a value",onChange:i,disabled:o,valueType:u?"string":"password",autoComplete:c??"off"}),(0,p.jsx)(ko,{id:`${t}_password_show`,style:u?"secondaryLightIcon":"secondary",group:!0,groupEnd:!0,groupStart:!1,icon:"interface-eye",onClick:()=>{},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1)}),a.info?(0,p.jsx)("div",{title:`${a.message}`,style:{display:"flex",alignItems:"center"},children:(0,p.jsx)(Fo,{icon:"notifications-info"})}):null]})},oX=e=>{const{value:t,onChange:n,min:r,max:o,coarseStep:i,fineStep:a,fineOnly:s=!1,disabled:l,placeholder:c,inputRef:u,className:d}=e,f=(0,h.useRef)(null),g=(0,h.useRef)(null),[m,v]=(0,h.useState)(t??""),[y,A]=(0,h.useState)(a),[w,b]=(0,h.useState)(!1);(0,h.useEffect)(()=>{w||v(t??"")},[t,w]),(0,h.useEffect)(()=>()=>{clearTimeout(g.current)},[]);const _=e=>{const r=e??m;n&&""!==r&&r!==t&&n(r)},C=e=>{v(e)},E=e=>{const t=u?.current??f.current;"up"===e?t?.stepUp():"down"===e&&t?.stepDown();const n=parseFloat(t?.value??""),r=Number.isNaN(n)?"":n;C(r),_(r)},S=e=>{const t=()=>{E(e),g.current=setTimeout(t,100)};g.current=setTimeout(t,300)},O=()=>{clearTimeout(g.current)},x=e=>{l||E(e.deltaY>0?"down":"up")},D=e=>{e!==y&&A(e)};return(0,p.jsxs)("div",{style:{display:"inline-flex",maxHeight:"28px",position:"relative"},className:d,children:[(0,p.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:s?"0px":"17px",opacity:s?0:1,marginRight:"3px"},onMouseEnter:s?void 0:()=>D(i),onWheel:x,children:[(0,p.jsx)(ko,{style:"secondary",className:"trim-adjust trim-adjust-Up",onClick:()=>E("up"),onMouseDown:()=>S("up"),onMouseUp:O,onMouseLeave:O,disabled:l,children:(0,p.jsx)(Fo,{icon:"arrows-nudge-up"})}),(0,p.jsx)("div",{className:"buttonDivider buttonDivider-left"}),(0,p.jsx)(ko,{style:"secondary",className:"trim-adjust trim-adjust-Down",onClick:()=>E("down"),onMouseDown:()=>S("down"),onMouseUp:O,onMouseLeave:O,disabled:l,children:(0,p.jsx)(Fo,{icon:"arrows-nudge-down"})})]}),(0,p.jsx)("input",{className:"gv-numericinput-default gv-numericinput no-spinner",max:o??5,min:r??0,value:m,onChange:e=>{const t=parseFloat(e.target.value);C(Number.isNaN(t)?"":t)},onFocus:()=>{b(!0)},onBlur:()=>{b(!1),_()},step:y,ref:u??f,type:"number",disabled:l,autoComplete:"off",placeholder:c}),(0,p.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:"17px",marginLeft:"3px"},onMouseEnter:()=>D(a),onWheel:x,children:[(0,p.jsx)(ko,{style:"secondary",className:"trim-adjust trim-adjust-Up",onClick:()=>E("up"),onMouseDown:()=>S("up"),onMouseUp:O,onMouseLeave:O,disabled:l,children:(0,p.jsx)(Fo,{icon:"arrows-nudge-up"})}),(0,p.jsx)("div",{className:"buttonDivider buttonDivider-right"}),(0,p.jsx)(ko,{style:"secondary",className:"trim-adjust trim-adjust-Down",onClick:()=>E("down"),onMouseDown:()=>S("down"),onMouseUp:O,onMouseLeave:O,disabled:l,children:(0,p.jsx)(Fo,{icon:"arrows-nudge-down"})})]})]})},iX=s.GVDebug.extend("form").extend("widgets").extend("numericTrim").extend("constructor"),aX=e=>{iX("constructor",e);const{value:t,disabled:n,onChange:r,schema:o}=e;return(0,p.jsx)(oX,{value:t||"",onChange:r,disabled:n,min:o.minimum<o.maximum?o.minimum:null,max:o.maximum>o.minimum?o.maximum:null,fineStep:o.multipleOf,coarseStep:10*o.multipleOf})},sX=({options:e,onChange:t,disabled:n,value:r})=>Array.isArray(e.enumOptions)&&e.enumOptions.map(({value:e,label:o})=>(0,p.jsx)("div",{children:(0,p.jsx)(KW,{label:o,disabled:n,onChange:()=>{return n=e,Array.isArray(r)&&r.includes(n)?t(r.filter(e=>e!==n)):Array.isArray(r)?t(Array.from(new Set([...r,n]))):t(n);var n},checked:r.includes(e)})},e)),lX=s.GVDebug.extend("form").extend("widgets").extend("dateTime").extend("constructor"),cX=e=>(lX("constructor",e),(0,p.jsx)(ka,{id:e.id,readOnly:e.readonly,showTimeInput:!0,shouldCloseOnSelect:!0,onFormChange:e.onChange})),uX=(e,t=0)=>`${(Number.isFinite(e)?e:0).toFixed(t)}`,dX=(e,t,n)=>Math.max(t,Math.min(n,e)),pX=e=>{const{value:t,onChange:n,options:r={},schema:o,formContext:i,id:a}=e,s=i?.setYprEditing,l=r.min??o?.minimum??0,c=r.max??o?.maximum??100,u=r.sliderMinimum??o?.sliderMinimum??l,d=r.sliderMaximum??o?.sliderMaximum??c,f=r.step??o?.multipleOf??.01*Math.abs(c-l),g=r.precision??0,m=r.throttleMs??16,y=r.sliderWidth??o?.sliderWidth??null,A=r.numericInputStep??o?.numericInputStep??"0.01",w=r.numericInputWidth??o?.numericInputWidth??null,b="number"==typeof t?dX(t,l,c):o?.default??l,[_,C]=(0,h.useState)(b),E=(0,h.useRef)(!1),[S,O]=(0,h.useState)(!0),[x,D]=(0,h.useState)(!1),P=v(t,x),M=(0,h.useRef)(b),T=(0,h.useRef)(null),R=(0,h.useRef)(null),I=e=>{M.current=e,null==T.current&&(T.current=window.requestAnimationFrame(()=>{T.current=null,n(M.current)})),null==R.current&&(R.current=window.setTimeout(()=>{null!=R.current&&(window.clearTimeout(R.current),R.current=null)},m))};(0,h.useEffect)(()=>{void 0!==P&&t!==P&&void 0!==t&&x&&O(!1),D(!0)},[t,P,x]),(0,h.useEffect)(()=>{const e="number"==typeof t?dX(t,l,c):o?.default??l;E.current||(C(e),M.current=e)},[t,l,c,o?.default]),(0,h.useEffect)(()=>{const e=()=>{null!=T.current&&(cancelAnimationFrame(T.current),T.current=null),null!=R.current&&(clearTimeout(R.current),R.current=null),E.current=!1,s?.(!1)};return window.addEventListener("pointerup",e,{passive:!0}),window.addEventListener("pointercancel",e,{passive:!0}),()=>{window.removeEventListener("pointerup",e),window.removeEventListener("pointercancel",e),null!=T.current&&cancelAnimationFrame(T.current),null!=R.current&&clearTimeout(R.current)}},[s]);const F=(0,h.useCallback)(()=>{if(!a)return;const e=a.split("_").slice(1),t=i?.valuesBeforeMove?.[e[0]]?.[e[1]]??P;O(!0),C(t),n(t),D(!1)},[i?.valuesBeforeMove,P,n,a]),k=dX(_,u,d),L=(0,h.useCallback)(()=>{E.current=!0,s?.(!0)},[s]);return(0,p.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:"10px",justifyContent:"space-between"},children:[(0,p.jsx)("div",{onPointerDown:L,children:(0,p.jsx)(WY,{value:k,min:u,max:d,step:f,sliderWidth:y,disabled:e.disabled,onUpdate:e=>{C(e),I(e)},onChange:e=>{C(e),n(e),E.current=!1,setTimeout(()=>s?.(!1),0)}})}),(0,p.jsx)(QW,{style:"default",value:uX(_,g),disabled:e.disabled,min:l,max:c,width:w,step:A,onChange:e=>{s?.(!0);const t=dX(e??0,l,c);C(t),I(t),n(t)},onBlur:()=>s?.(!1)}),r.withReset&&(0,p.jsx)(ko,{onClick:()=>{s?.(!0);const e=dX(o.default,l,c);C(e),I(e),n(e),setTimeout(()=>s?.(!1),0)},icon:"animation-reset",hint:"Reset",disabled:e.disabled,children:"Reset"}),r.withUndo&&(0,p.jsx)(ko,{disabled:S||e.disabled,onClick:F,icon:"interface-undo",hint:"Undo",children:"Undo"})]})},hX=s.GVDebug.extend("form").extend("widgets").extend("dateTime").extend("constructor"),fX=e=>(hX("constructor",e),(0,p.jsx)(La,{style:"default",id:e.id,disabled:e.disabled,onFormChange:e.onChange,value:e.value})),gX=e=>{const{widgets:t,fields:n}=e,r={...s.GVRegistry.get().getFormWidgets(),CheckboxesWidget:sX,CheckboxWidget:$Y,RangeWidget:tX,SelectWidget:KY,TextWidget:qY,TextareaWidget:XY,SliderWidget:pX,button:zY,textarea:XY,password:rX,numericTrim:aX,DateTimeWidget:cX,TimeWidget:fX},o={...s.GVRegistry.get().getFormFields(),TitleField:dV,matrix:fY,color:DY};return(0,p.jsx)("div",{className:"gv-form",children:(0,p.jsx)(lV,{...e,widgets:mL()({},t||{},r),fields:mL()({},n||{},o),FieldTemplate:_Y,ObjectFieldTemplate:SY,ArrayFieldTemplate:OY})})},mX={button:{type:"string",widget:"button"},endpoint:{type:"string",validation:/^(?:[\/0-9A-z:]+)?$/,message:"Must be an 'Endpoint' in the format 'hostname:port'"},ipaddress:{type:"string",validation:/^(?:((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])(\.(?!$)|$)){4})?$/,message:"Must be an 'IP Address' in the format 'aaa.bbb.ccc.ddd'"},number:{type:"number"},option:{type:"string"},text:{type:"string"},textarea:{type:"string"},uri:{type:"string",validation:/^(?:([a-z]+):\/\/.+)?$/,message:"Must be a 'Uri' in the format 'scheme://hostname/...'"},version:{type:"string",validation:/^(?:[0-9]{1,8}\.[0-9]{1,8}\.[0-9]{1,8}((\.[0-9]{1,8})?|(-beta-|-alpha-)[0-9]{1,8}))?$/,message:"Must be a 'version' number"},path:{type:"string",validation:/^(?:(\/.*|[a-zA-Z]:\\(?:([^<>:"\/\\|?*]*[^<>:"\/\\|?*.]\\|..\\)*([^<>:"\/\\|?*]*[^<>:"\/\\|?*.]\\?|..\\))?))?$/,message:"Must be a valid Windows or Linux path"},boolean:{type:"boolean"},secret:{type:"string"}},vX=s.GVDebug.extend("form").extend("render"),yX={Button:BY,EndPoint:NY,IPAddress:NY,Number:NY,Option:Lz,Text:NY,Uri:NY},AX={EndPoint:"string",IPAddress:"string",Number:"number",Text:"string",Uri:"string"},wX={EndPoint:/^\/[0-9A-z:]+/,IPAddress:/^[1-255]\.[1-255]\.[1-255]\.[1-255]$/,Number:/^[0-9]+/,Uri:/^([a-z]+):\/\/.+/},bX={EndPoint:"Enter an endpoint (IPv4:Port)... ",IPAddress:"Enter an IP Address ... ",Number:"Enter a number ... ",Option:"Select a value ... ",Text:"Enter a value ... ",Uri:"Enter a URI ... "};var _X;!function(e){e.TEXT="Text",e.NUMBER="Number",e.URI="Uri",e.IPADDRESS="IPAddress",e.ENDPOINT="EndPoint",e.OPTION="Option",e.BUTTON="Button"}(_X||(_X={}));class CX extends h.Component{constructor(e){super(e),this.state={id:ds()}}render(){return vX("render",this.props),(0,p.jsx)("div",{style:{display:"grid",gridColumnGap:"10px",gridRowGap:"8px",gridTemplateColumns:"auto auto",justifyItems:"stretch"},children:this.renderFields()})}renderFields(){const e=[];for(const t of this.props.fields){const n=this.props.data[t.name],r=yX[t.type],o=wX[t.type],i=t.placeholder?t.placeholder:bX[t.placeholder],a=AX[t.type]?AX[t.type]:"string";e.push((0,p.jsx)(cV,{style:{placeSelf:"left"},disabled:t.disabled,required:t.required,children:hs()(t.label)?t.name:t.label},`${this.state.id}-label-${t.name}`)),e.push((0,p.jsx)("div",{style:{display:"flex"},children:r?(0,p.jsx)(r,{keyBase:`${this.state.id}-input-${t.name}`,value:void 0===n&&void 0!==t.default?t.default:n,onChange:this.onChange.bind(this,t.name),placeholder:i,options:t.options,validation:o,disabled:t.disabled,required:t.required,valueType:a,autoComplete:"off"}):(0,p.jsxs)("span",{children:["Unknown Field Type",t.type]})},`${this.state.id}-input-${t.name}`)),t.description&&e.push((0,p.jsx)("div",{style:{color:"#878E9A",fontSize:".95em",gridColumnEnd:"span 2",gridColumnStart:"1",marginBottom:"8px",marginTop:"-8px"},children:t.description}))}return e}onChange(e,t){this.props.onChange(e,t)}}const EX=e=>(0,p.jsx)("span",{children:!0===e.value?"True":"False"}),SX=e=>{const t=bo.fromJSDate(new Date(e.value));return(0,p.jsx)("span",{children:t.toFormat(e.format||"yyyy-MM-dd HH:mm:ss")})},OX=(0,h.forwardRef)((e,t)=>{const n=(0,h.useRef)(),[r,o]=(0,h.useState)(e.value);return(0,h.useImperativeHandle)(t,()=>({getValue:()=>r,focusIn:()=>{n.current&&(n.current.focus(),n.current.select())}}),[r]),(0,p.jsx)(QW,{onChange:e=>{o(e)},value:r,placeholder:"",style:"default",inputRef:n})});OX.displayName="GVNumericCellEditor";const xX=(0,h.forwardRef)((e,t)=>{const n=(0,h.useRef)(),[r,o]=(0,h.useState)(e.value);return(0,h.useImperativeHandle)(t,()=>({getValue:()=>r,focusIn:()=>{n.current&&(n.current.focus(),n.current.select())}}),[r]),(0,p.jsx)(pL,{onChange:e=>{o(e)},value:r,placeholder:"",style:"default",inputRef:n})});xX.displayName="GVTextCellEditor";const DX=(0,h.forwardRef)((e,t)=>{const n=(0,h.useRef)(),[r,o]=(0,h.useState)(e.value||!1);return(0,h.useImperativeHandle)(t,()=>({getValue:()=>r,focusIn:()=>{n.current&&(n.current.focus(),n.current.select())}}),[r]),(0,p.jsx)("input",{ref:n,type:"checkbox",checked:r,onChange:e=>{o(e.target.checked)}})});DX.displayName="GVBooleanCellEditor";var PX,MX=u(57293),TX=u(8469),RX=u(24015),IX=u.n(RX),FX=u(3326),kX=u.n(FX),LX=u(11743);!function(e){e.EMPTY="empty",e.EQUALS="equals",e.NOT_EQUAL="notEqual",e.LESS_THAN="lessThan",e.LESS_THAN_OR_EQUAL="lessThanOrEqual",e.GREATER_THAN="greaterThan",e.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",e.IN_RANGE="inRange",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.STARTS_WITH="startsWith",e.ENDS_WITH="endsWith"}(PX||(PX={}));const BX={[PX.EMPTY]:"Empty",[PX.EQUALS]:"Equal",[PX.NOT_EQUAL]:"Not Equal",[PX.LESS_THAN]:"Less",[PX.LESS_THAN_OR_EQUAL]:"Less or Equal",[PX.GREATER_THAN]:"Greater",[PX.GREATER_THAN_OR_EQUAL]:"Greater or Equal",[PX.IN_RANGE]:"In Range",[PX.CONTAINS]:"Contains",[PX.NOT_CONTAINS]:"Does Not Contain",[PX.STARTS_WITH]:"Starts With",[PX.ENDS_WITH]:"Ends With"},NX={filterOneType:PX.CONTAINS,filterOneValue:"",filterCondition:null,filterTwoType:PX.CONTAINS,filterTwoValue:""},jX=(e,t)=>e.filter===t.filter&&e.type===t.type,UX=(e,t,n,r,o)=>{const i=t.filter,a=t.type,s=o(e),l=n(s?.toLocaleLowerCase());return null==s?a===PX.NOT_EQUAL||a===PX.NOT_CONTAINS:r({filterOption:a,value:l,filterText:n(i?.toLocaleLowerCase())})};class VX{customFilterOptions={};filterOptions;defaultOption;init(e,t){this.filterOptions=(e.filterOptions||t)??[],this.mapCustomOptions(),this.selectDefaultItem(e)}getFilterOptions(){return this.filterOptions}mapCustomOptions(){this.filterOptions&&this.filterOptions.forEach(e=>{"string"!=typeof e&&function(e,t){if(null==e)return!0;for(let n=0;n<e.length;n++)if(!t(e[n]))return!1;return!0}(["displayKey","displayName","test"],t=>!!e[t]||(console.warn(`ag-Grid: ignoring FilterOptionDef as it doesn't contain a '${t}'`),!1))&&(this.customFilterOptions[e.displayKey]=e)})}selectDefaultItem(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){const e=this.filterOptions[0];"string"==typeof e?this.defaultOption=e:e.displayKey?this.defaultOption=e.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")}getDefaultOption(){return this.defaultOption}getCustomOption(e){return this.customFilterOptions[e]}}const HX=(0,h.forwardRef)((e,t)=>{const n=(0,h.useRef)(),{filterChangedCallback:r,maxNumConditions:o,valueGetter:i}=e,a=(0,h.useMemo)(()=>[PX.CONTAINS,PX.NOT_CONTAINS,PX.EQUALS,PX.NOT_EQUAL,PX.STARTS_WITH,PX.ENDS_WITH],[]),[s,l]=(0,h.useState)(NX),[c,u]=(0,h.useState)(),d=(0,h.useMemo)(()=>{const t=new VX;return t.init(e,a),t},[e,a]),f=LX.TextFilter.DEFAULT_MATCHER,g=LX.TextFilter.DEFAULT_FORMATTER,m=1!==o,v=(0,h.useCallback)(e=>{const t=d.getCustomOption(e);return t&&0===t.numberOfInputs},[d]),y=(0,h.useCallback)(e=>{let t="One"===e?s.filterOneValue:s.filterTwoValue;return(t&&""===t.trim()||null===t||""===t)&&(t=null),t},[s]),A=(0,h.useCallback)(e=>{const t="One"===e?s.filterOneType:s.filterTwoType,n=y(e),r={type:t};return v(t)||(r.filter=n),r},[s,y,v]),w=(0,h.useCallback)(e=>{const t="One"===e?s.filterOneType:s.filterTwoType;return t!==PX.EMPTY&&(!!v(t)||null!=y(e))},[s,y,v]),b=(0,h.useCallback)(()=>w("One")?m&&w("Two")?{filterType:"text",conditions:[A("One"),A("Two")]}:A("One"):null,[w,A,m]),_=(0,h.useCallback)(()=>{const e=b(),t=c;return u(e),!((e,t)=>{if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;const n=!e.conditions,r=!t.conditions;if(!n&&r||n&&!r)return!1;let o;if(n)o=jX(e,t);else{const n=e,r=t;o=jX(n.conditions[0],r.conditions[0])&&jX(n.conditions[1],r.conditions[1])}return o})(t,e)},[c,b]);(0,h.useEffect)(()=>{_()&&(0,Na.debounce)(r)()},[s,r]),(0,h.useImperativeHandle)(t,()=>({isFilterActive:()=>!!c,doesFilterPass(e){if(c.conditions&&c.conditions.length>1){const t=c,n=UX(e,t.conditions[0],g,f,i),r=UX(e,t.conditions[1],g,f,i);return"AND"===s.filterCondition?n&&r:n||r}return UX(e,c,g,f,i)},getModel:()=>s,getDefaultFilterOptions:()=>a,setModel(e){l(e?{...s,...e}:NX)},afterGuiAttached(){C()}}));const C=()=>{n.current&&(n.current.focus(),n.current.select())},E=(0,h.useCallback)(e=>{const t={...s};t.filterCondition=e,l(t)},[s]),S=(0,h.useCallback)(e=>t=>{const n={...s};"One"===e?n.filterOneValue=t:n.filterTwoValue=t,l(n)},[s]),O=(0,h.useCallback)(e=>t=>{const n={...s};"One"===e?n.filterOneType=t:n.filterTwoType=t,l(n)},[s]),x=(0,h.useCallback)(e=>{if(!d)return null;const t=d.getFilterOptions();return(0,p.jsx)(Lz,{className:"ag-custom-component-popup",options:t.map(e=>{let t,n;if("string"==typeof e)t=e,n=BX[t];else{t=e.displayKey;const r=d.getCustomOption(t);n=r?r.displayName:BX[t]}return{value:t,label:n}}),onChange:O(e),value:"One"===e?s.filterOneType:s.filterTwoType,agGrid:!0,isSearchable:!1,disabled:t.length<=1})},[d,s.filterOneType,s.filterTwoType,O]);return(0,p.jsxs)("div",{className:"gv-grid-filter gv-grid-filter-simple",children:[(0,p.jsxs)("div",{className:"gv-grid-filter-simple-filter gv-grid-filter-simple-filter-one",children:[x("One"),(0,p.jsx)(pL,{onChange:S("One"),value:s.filterOneValue,placeholder:"",style:"key",inputRef:n})]}),!!s.filterOneValue&&m&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(Lo,{children:[(0,p.jsx)(ko,{style:"AND"===s.filterCondition?"secondaryLight":"secondary",onClick:()=>E("AND"),children:"And"}),(0,p.jsx)(ko,{style:"OR"===s.filterCondition?"secondaryLight":"secondary",onClick:()=>E("OR"),children:"Or"})]}),s.filterCondition&&(0,p.jsxs)("div",{className:"gv-grid-filter-simple-filter gv-grid-filter-simple-filter-two",children:[x("Two"),(0,p.jsx)(pL,{onChange:S("Two"),value:s.filterTwoValue,placeholder:"",style:"key"})]})]}),(0,p.jsx)(ko,{onClick:()=>{l(NX)},style:"secondary",disabled:!s.filterOneValue,children:"Clear"})]})});HX.displayName="GVTextColumnFilter";const GX=e=>{const{column:t,enableSorting:n,setSort:r}=e,[o,i]=(0,h.useState)(!1),[a,s]=(0,h.useState)(t.isFilterActive()),[l,c]=(0,h.useState)(t.isMenuVisible()),[u,d]=(0,h.useState)(t.isSortAscending()),[f,g]=(0,h.useState)(t.isSortDescending()),[m,v]=(0,h.useState)(t.isSortNone()),y=(0,h.useRef)(),A=(0,h.useRef)(),w=(0,h.useRef)(),b=Oo()({"ag-icon ag-icon-menu":!0}),_=Oo()({"ag-icon ag-sort-icon":u||f,"ag-icon-desc":f,"ag-icon-asc":u}),C=Oo()({"ag-icon ag-icon-filter":a});return(0,h.useEffect)(()=>{const e=()=>{c(t.isMenuVisible())},n=()=>{s(t.isFilterActive())},r=()=>{d(t.isSortAscending()),g(t.isSortDescending()),v(t.isSortNone())};return t.addEventListener(LX.Column.EVENT_MENU_VISIBLE_CHANGED,e),t.addEventListener(LX.Column.EVENT_FILTER_CHANGED,n),t.addEventListener(LX.Column.EVENT_SORT_CHANGED,r),()=>{t.removeEventListener(LX.Column.EVENT_MENU_VISIBLE_CHANGED,e),t.removeEventListener(LX.Column.EVENT_FILTER_CHANGED,n),t.removeEventListener(LX.Column.EVENT_SORT_CHANGED,r)}},[t]),(0,p.jsxs)("div",{className:"ag-cell-label-container",role:"presentation",onClick:e=>{n&&(r(m?"asc":u?"desc":null),e.preventDefault(),e.stopPropagation())},onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[e.enableMenu&&(0,p.jsx)("span",{ref:y,className:"ag-header-icon ag-header-cell-menu-button",onClick:t=>{e.showColumnMenu(y.current),t.preventDefault(),t.stopPropagation()},style:{opacity:o||l?1:0},children:(0,p.jsx)("span",{className:b})}),(0,p.jsx)("div",{ref:A,className:"ag-header-cell-label",role:"presentation",children:(0,p.jsxs)("span",{ref:w,className:"ag-header-cell-text",role:"columnheader",unselectable:"on",children:[(0,p.jsx)("span",{className:_}),(0,p.jsx)("span",{className:C}),(0,p.jsx)("span",{children:e.displayName})]})})]})};MX.LicenseManager.setLicenseKey("CompanyName=Grass Valley Inc,LicensedGroup=Agile Media Processing Platform, AMPP,LicenseType=MultipleApplications,LicensedConcurrentDeveloperCount=25,LicensedProductionInstancesCount=10,AssetReference=AG-036506,SupportServicesEnd=18_March_2024_[v2]_MTcxMDcyMDAwMDAwMA==8e2a58eb3b14633c2b3585577664a501");const WX=(e,t,n)=>{if(n)try{const r=s.GVStorage.get("grid").storage.getItem(`filter_state_${n}`);if(r){t("Loading saved filter state",r);const n=JSON.parse(r);e.api.setFilterModel(n),e.api.onFilterChanged()}}catch(e){t("Failed to load/parse saved filter state",e)}},zX=is()((e,t,n)=>{if(n)try{const r=e.columnApi.getColumnState().map(e=>({colId:e.colId,width:e.width,hide:e.hide,pinned:e.pinned}));t("Saving column state",r),s.GVStorage.get("grid").storage.setItem(`column_state_${n}`,JSON.stringify(r))}catch(e){t("Failed to saving column state",e)}},100),$X=e=>{const[t,n]=(0,h.useState)(!1),r=(0,h.useRef)(e.gridOptions),o=(0,h.useRef)((e=>e?{onGridReady:e.onGridReady,onColumnMoved:e.onColumnMoved,onColumnPinned:e.onColumnPinned,onColumnResized:e.onColumnResized,onColumnVisible:e.onColumnVisible,onFilterChanged:e.onFilterChanged,onRowDataUpdated:e.onRowDataUpdated,onSortChanged:e.onSortChanged}:null)(e.gridOptions)),i=(0,h.useRef)(s.GVDebug.extend("grid")),a=(0,h.useCallback)(t=>{if(i.current(e.gridId),!r.current)return;const n=t.columnApi.getColumnState(),o={...r.current};o.api=IX()(r.current.api,{clearSort:()=>{t.columnApi.applyColumnState({defaultState:{sort:null}})},clearFilter:()=>{t.api.setFilterModel({})},resetColumns:()=>{t.columnApi.applyColumnState({state:n,defaultState:{sort:null},applyOrder:!0})&&t.api.sizeColumnsToFit()}}),r.current=o,e.onGridReady&&e.onGridReady(t)},[e]),l=(0,h.useCallback)(t=>{((e,t,n)=>{if(n)try{const r=s.GVStorage.get("grid").storage.getItem(`column_state_${n}`);if(r){t("Loading saved column state",r);const n=JSON.parse(r);(0,Na.keys)(n).forEach(e=>n[e].flex=null),e.columnApi.applyColumnState({state:n,applyOrder:!0})}else e.api.sizeColumnsToFit()}catch(e){t("Failed to load/parse saved column state",e)}else e.api.sizeColumnsToFit()})(t,i.current,e.gridId),((e,t,n)=>{if(n)try{const r=s.GVStorage.get("grid").storage.getItem(`sort_state_${n}`);if(r){t("Loading saved sort state",r);const n=JSON.parse(r);e.columnApi.applyColumnState({state:n,defaultState:{sort:null}})}}catch(e){t("Failed to load/parse saved sort state",e)}})(t,i.current,e.gridId),hs()(e.rowData)&&hs()(e.gridOptions.rowData)||WX(t,i.current,e.gridId)},[e]);return(0,h.useEffect)(()=>{i.current=i.current.extend(e.gridId||ds()),i.current=i.current.extend("ready"),i.current("created",e.gridId);const l=IX()(e.gridOptions||{},{loadingOverlayComponent:zW,animateRows:!0,rowSelection:"single",columnDefs:[...e?.columnDefs??[],...e.gridOptions?.columnDefs??[]],api:e.gridOptions?.api,sideBar:!1,suppressMenuHide:!1,suppressRowClickSelection:!1,...e.gridOptions,defaultColDef:{headerCheckboxSelection:!1,menuTabs:["filterMenuTab"],sortable:!0,resizable:!0,filter:!0,comparator:(e,t)=>"string"==typeof e?e.localeCompare(t):e>t?1:e<t?-1:0,...e.gridOptions&&e.gridOptions?.defaultColDef},onColumnMoved:t=>{e.onColumnMoved&&e.onColumnMoved(t),o.current?.onColumnMoved&&o.current.onColumnMoved(t),zX(t,i.current,e.gridId)},onColumnPinned:t=>{e.onColumnPinned&&e.onColumnPinned(t),o.current?.onColumnPinned&&o.current.onColumnPinned(t),zX(t,i.current,e.gridId)},onColumnVisible:t=>{e.onColumnVisible&&e.onColumnVisible(t),o.current?.onColumnVisible&&o.current.onColumnVisible(t),zX(t,i.current,e.gridId)},onColumnResized:t=>{e.onColumnResized&&e.onColumnResized(t),o.current?.onColumnResized&&o.current.onColumnResized(t),zX(t,i.current,e.gridId)},onFilterChanged:t=>{e.onRowDataUpdated&&e.onRowDataUpdated(t),o.current?.onFilterChanged&&o.current.onFilterChanged(t),((e,t,n)=>{if(n)try{const r=e.api.getFilterModel();t("Saving filter state",r),s.GVStorage.get("grid").storage.setItem(`filter_state_${n}`,JSON.stringify(r))}catch(e){t("Failed to saving filter state",e)}})(t,i.current,e.gridId)},onRowDataUpdated:r=>{o.current?.onRowDataUpdated&&o.current.onRowDataUpdated(r),!t&&r.api.getModel().getRowCount()>0&&(WX(r,i.current,e.gridId),n(!0))},onSortChanged:t=>{e.onSortChanged&&e.onSortChanged(t),o.current?.onSortChanged&&o.current.onSortChanged(t),((e,t,n)=>{if(n)try{const r=e.columnApi.getColumnState().filter(e=>null!=e.sort).map(e=>({colId:e.colId,sort:e.sort,sortIndex:e.sortIndex}));t("Saving sort state",r),s.GVStorage.get("grid").storage.setItem(`sort_state_${n}`,JSON.stringify(r))}catch(e){t("Failed to saving sort state",e)}})(t,i.current,e.gridId)},onGridReady:t=>{e.onGridReady&&e.onGridReady(t),o.current?.onGridReady&&o.current.onGridReady(t),a(t)},popupParent:document.querySelector("body"),postProcessPopup:e=>{if("columnMenu"!==e.type)return;const t=e.ePopup;let n=t.style.top,r=t.style.left;n=n.substring(0,n.indexOf("px")),r=r.substring(0,r.indexOf("px"));const o=parseInt(n,10)+25;t.style.top=`${o}px`;const i=t.clientWidth>0?t.clientWidth:265,a=parseInt(r,10);if(t.parentElement.parentElement.clientWidth<a+i){const e=t.parentElement.parentElement.clientWidth-i;t.style.left=`${e}px`}}});return r.current=l,()=>{i.current("unmounting")}},[e,t,a]),(0,p.jsx)("div",{className:"ag-theme-grassvalley",style:e.style||{height:"100%"},children:(0,p.jsx)(TX.AgGridReact,{...kX()(e,["style","gridOptions","children","onGridReady","gridId"]),onGridReady:a,onFirstDataRendered:l,gridOptions:r.current,components:{...e.gridOptions&&e.gridOptions.components||{},agCellEditor:xX,agColumnHeader:GX,agTextCellEditor:xX,agTextColumnFilter:HX,booleanCellEditor:DX,booleanCellRenderer:EX,numericCellEditor:OX,textCellEditor:xX,dateTimeCellRenderer:SX}})})},KX=({title:e,subtitle:t,description:n,background:r,image:o,button:i})=>{const a=(0,h.useRef)(null),[s,l]=(0,h.useState)(!1),[c,u]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{!c&&a.current&&a.current.scrollHeight>a.current.clientHeight&&(u(!0),l(!1))},[c]),(0,p.jsxs)("div",{className:"gv-hero-bar",style:{backgroundImage:`url(${r})`},children:[(0,p.jsxs)("div",{className:Oo()("gv-hero-bar-details",{"gv-hero-bar-details-bottom":s,"gv-hero-bar-details-scrollable":c}),children:[(0,p.jsx)("span",{className:"gv-hero-bar-details-title",children:e}),!!t&&(0,p.jsx)("span",{className:"gv-hero-bar-details-subtitle",children:t}),(0,p.jsx)("div",{className:Oo()({"gv-hero-bar-details-text":!0,"gv-hero-bar-details-text-button":!!i,"gv-hero-bar-details-text-subtitle":!!t,"gv-hero-bar-details-text-button-subtitle":i&&!!t}),children:(0,p.jsx)("div",{ref:a,className:Oo()("gv-hero-bar-details-text-scroll"),onScroll:e=>{const t=e.currentTarget;t.scrollHeight-t.scrollTop<t.clientHeight+10?s||l(!0):s&&l(!1)},children:n})}),i&&(0,p.jsx)("div",{className:"gv-hero-bar-details-button",children:(0,p.jsx)(ko,{...i})})]}),o&&(0,p.jsx)("div",{className:"gv-hero-bar-image",children:(0,p.jsx)("img",{src:o})})]})};function QX(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var qX="function"==typeof Symbol&&Symbol.observable||"@@observable",YX=function(){return Math.random().toString(36).substring(7).split("").join(".")},XX={INIT:"@@redux/INIT"+YX(),REPLACE:"@@redux/REPLACE"+YX(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+YX()}};function ZX(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(QX(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(QX(1));return n(ZX)(e,t)}if("function"!=typeof e)throw new Error(QX(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(QX(3));return i}function d(e){if("function"!=typeof e)throw new Error(QX(4));if(l)throw new Error(QX(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(QX(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(QX(7));if(void 0===e.type)throw new Error(QX(8));if(l)throw new Error(QX(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:XX.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(QX(10));o=e,p({type:XX.REPLACE})}})[qX]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(QX(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[qX]=function(){return this},e},r}function JX(e,t){return function(){return t(e.apply(this,arguments))}}function eZ(e,t){if("function"==typeof e)return JX(e,t);if("object"!=typeof e||null===e)throw new Error(QX(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=JX(o,t))}return n}function tZ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}var nZ=f().createContext(null),rZ=function(e){e()},oZ={notify:function(){},get:function(){return[]}};function iZ(e,t){var n,r=oZ;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=rZ,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=oZ)},getListeners:function(){return r}};return a}var aZ="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?h.useLayoutEffect:h.useEffect;const sZ=function(e){var t=e.store,n=e.context,r=e.children,o=(0,h.useMemo)(function(){var e=iZ(t);return{store:t,subscription:e}},[t]),i=(0,h.useMemo)(function(){return t.getState()},[t]);aZ(function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[o,i]);var a=n||nZ;return f().createElement(a.Provider,{value:o},r)};var lZ=u(3118),cZ=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],uZ=["reactReduxForwardedRef"],dZ=[],pZ=[null,null];function hZ(e,t){var n=e[1];return[t.payload,n+1]}function fZ(e,t,n){aZ(function(){return e.apply(void 0,t)},n)}function gZ(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function mZ(e,t,n,r,o,i,a,s,l,c){if(e){var u=!1,d=null,p=function(){if(!u){var e,n,p=t.getState();try{e=r(p,o.current)}catch(e){n=e,d=e}n||(d=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=p,n.trySubscribe(),p(),function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var vZ=function(){return[null,0]};function yZ(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,o=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,i=n.methodName,a=void 0===i?"connectAdvanced":i,s=n.renderCountProp,l=void 0===s?void 0:s,c=n.shouldHandleStateChanges,u=void 0===c||c,d=n.storeKey,p=void 0===d?"store":d,g=(n.withRef,n.forwardRef),m=void 0!==g&&g,v=n.context,y=void 0===v?nZ:v,A=Cc(n,cZ),w=y;return function(t){var n=t.displayName||t.name||"Component",r=o(n),i=Sc({},A,{getDisplayName:o,methodName:a,renderCountProp:l,shouldHandleStateChanges:u,storeKey:p,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=A.pure,c=s?h.useMemo:function(e){return e()};function d(n){var r=(0,h.useMemo)(function(){var e=n.reactReduxForwardedRef,t=Cc(n,uZ);return[n.context,e,t]},[n]),o=r[0],a=r[1],s=r[2],l=(0,h.useMemo)(function(){return o&&o.Consumer&&(0,lZ.isContextConsumer)(f().createElement(o.Consumer,null))?o:w},[o,w]),d=(0,h.useContext)(l),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var g=p?n.store:d.store,m=(0,h.useMemo)(function(){return function(t){return e(t.dispatch,i)}(g)},[g]),v=(0,h.useMemo)(function(){if(!u)return pZ;var e=iZ(g,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[g,p,d]),y=v[0],A=v[1],b=(0,h.useMemo)(function(){return p?d:Sc({},d,{subscription:y})},[p,d,y]),_=(0,h.useReducer)(hZ,dZ,vZ),C=_[0][0],E=_[1];if(C&&C.error)throw C.error;var S=(0,h.useRef)(),O=(0,h.useRef)(s),x=(0,h.useRef)(),D=(0,h.useRef)(!1),P=c(function(){return x.current&&s===O.current?x.current:m(g.getState(),s)},[g,C,s]);fZ(gZ,[O,S,D,s,P,x,A]),fZ(mZ,[u,g,y,m,O,S,D,x,A,E],[g,y,m]);var M=(0,h.useMemo)(function(){return f().createElement(t,Sc({},P,{ref:a}))},[a,t,P]);return(0,h.useMemo)(function(){return u?f().createElement(l.Provider,{value:b},M):M},[l,M,b])}var g=s?f().memo(d):d;if(g.WrappedComponent=t,g.displayName=d.displayName=r,m){var v=f().forwardRef(function(e,t){return f().createElement(g,Sc({},e,{reactReduxForwardedRef:t}))});return v.displayName=r,v.WrappedComponent=t,qp()(v,t)}return qp()(g,t)}}function AZ(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function wZ(e,t){if(AZ(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!AZ(e[n[o]],t[n[o]]))return!1;return!0}function bZ(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function _Z(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function CZ(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=_Z(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=_Z(o),o=r(t,n)),o},r}}const EZ=[function(e){return"function"==typeof e?CZ(e):void 0},function(e){return e?void 0:bZ(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?bZ(function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)}):void 0}],SZ=[function(e){return"function"==typeof e?CZ(e):void 0},function(e){return e?void 0:bZ(function(){return{}})}];function OZ(e,t,n){return Sc({},n,e,t)}const xZ=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return OZ}}];var DZ=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function PZ(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function MZ(e,t,n,r,o){var i,a,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,p=o.areStatePropsEqual,h=!1;return function(o,f){return h?function(o,h){var f,g,m=!d(h,a),v=!u(o,i,h,a);return i=o,a=h,m&&v?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):v?(f=e(i,a),g=!p(f,s),s=f,g&&(c=n(s,l,a)),c):c}(o,f):(s=e(i=o,a=f),l=t(r,a),c=n(s,l,a),h=!0,c)}}function TZ(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Cc(t,DZ),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?MZ:PZ)(a,s,l,e,i)}var RZ=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function IZ(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function FZ(e,t){return e===t}const kZ=function(){var e={},t=e.connectHOC,n=void 0===t?yZ:t,r=e.mapStateToPropsFactories,o=void 0===r?SZ:r,i=e.mapDispatchToPropsFactories,a=void 0===i?EZ:i,s=e.mergePropsFactories,l=void 0===s?xZ:s,c=e.selectorFactory,u=void 0===c?TZ:c;return function(e,t,r,i){void 0===i&&(i={});var s=i,c=s.pure,d=void 0===c||c,p=s.areStatesEqual,h=void 0===p?FZ:p,f=s.areOwnPropsEqual,g=void 0===f?wZ:f,m=s.areStatePropsEqual,v=void 0===m?wZ:m,y=s.areMergedPropsEqual,A=void 0===y?wZ:y,w=Cc(s,RZ),b=IZ(e,o,"mapStateToProps"),_=IZ(t,a,"mapDispatchToProps"),C=IZ(r,l,"mergeProps");return n(u,Sc({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:b,initMapDispatchToProps:_,initMergeProps:C,pure:d,areStatesEqual:h,areOwnPropsEqual:g,areStatePropsEqual:v,areMergedPropsEqual:A},w))}}();function LZ(e,t){var n=(0,h.useState)(function(){return{inputs:t,result:e()}})[0],r=(0,h.useRef)(!0),o=(0,h.useRef)(n),i=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs)),a=i?o.current:{inputs:t,result:e()};return(0,h.useEffect)(function(){r.current=!1,o.current=a},[a]),a.result}!function(e){rZ=e}(Ls.unstable_batchedUpdates);var BZ=LZ,NZ=function(e,t){return LZ(function(){return e},t)},jZ=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},UZ=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},VZ=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},HZ={top:0,right:0,bottom:0,left:0},GZ=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?HZ:n,o=e.border,i=void 0===o?HZ:o,a=e.padding,s=void 0===a?HZ:a,l=jZ(UZ(t,r)),c=jZ(VZ(t,i)),u=jZ(VZ(c,s));return{marginBox:l,borderBox:jZ(t),paddingBox:c,contentBox:u,margin:r,border:i,padding:s}},WZ=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(){throw new Error("Invariant failed")}(),n},zZ=function(e,t){var n=e.borderBox,r=e.border,o=e.margin,i=e.padding,a=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}}(n,t);return GZ({borderBox:a,border:r,margin:o,padding:i})},$Z=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),zZ(e,t)},KZ=function(e,t){var n={top:WZ(t.marginTop),right:WZ(t.marginRight),bottom:WZ(t.marginBottom),left:WZ(t.marginLeft)},r={top:WZ(t.paddingTop),right:WZ(t.paddingRight),bottom:WZ(t.paddingBottom),left:WZ(t.paddingLeft)},o={top:WZ(t.borderTopWidth),right:WZ(t.borderRightWidth),bottom:WZ(t.borderBottomWidth),left:WZ(t.borderLeftWidth)};return GZ({borderBox:e,margin:n,padding:r,border:o})},QZ=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return KZ(t,n)};const qZ=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame(function(){n=null,e.apply(void 0,t)}))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function YZ(e,t){}function XZ(){}function ZZ(e,t,n){var r=t.map(function(t){var r=function(e,t){return Sc({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}});return function(){r.forEach(function(e){e()})}}YZ.bind(null,"warn"),YZ.bind(null,"error");var JZ=!0,eJ="Invariant failed";function tJ(e){this.message=e}function nJ(e,t){if(!e)throw new tJ(JZ?eJ:eJ+": "+(t||""))}tJ.prototype.toString=function(){return this.message};var rJ=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=XZ,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof tJ&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}Rg(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=ZZ(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof tJ))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(f().Component),oJ=function(e){return e+1},iJ=function(e,t){var n=e.droppableId===t.droppableId,r=oJ(e.index),o=oJ(t.index);return n?"\n      You have moved the item from position "+r+"\n      to position "+o+"\n    ":"\n    You have moved the item from position "+r+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+o+"\n  "},aJ=function(e,t,n){return t.droppableId===n.droppableId?"\n      The item "+e+"\n      has been combined with "+n.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+n.draggableId+"\n      in list "+n.droppableId+"\n    "},sJ=function(e){return"\n  The item has returned to its starting position\n  of "+oJ(e.index)+"\n"},lJ={dragHandleUsageInstructions:"\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n  You have lifted an item in position "+oJ(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return iJ(e.source,t);var n=e.combine;return n?aJ(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+sJ(e.source)+"\n    ";var t=e.destination,n=e.combine;return t?"\n      You have dropped the item.\n      "+iJ(e.source,t)+"\n    ":n?"\n      You have dropped the item.\n      "+aJ(e.draggableId,e.source,n)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+sJ(e.source)+"\n  "}},cJ={x:0,y:0},uJ=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},dJ=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},pJ=function(e,t){return e.x===t.x&&e.y===t.y},hJ=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},fJ=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},gJ=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},mJ=function(e,t){return Math.min.apply(Math,t.map(function(t){return gJ(e,t)}))},vJ=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},yJ=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},AJ=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},wJ=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=jZ({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):jZ(e)},bJ=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t){return t?yJ(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,n){var r;return n&&n.increasedBy?Sc({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:wJ(a,o)}},_J=function(e,t){e.frame||nJ(!1);var n=e.frame,r=dJ(t,n.scroll.initial),o=hJ(r),i=Sc({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return Sc({},e,{frame:i,subject:bJ({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function CJ(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function EJ(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function SJ(e,t){if(e.find)return e.find(t);var n=EJ(e,t);return-1!==n?e[n]:void 0}function OJ(e){return Array.prototype.slice.call(e)}var xJ=gS(function(e){return e.reduce(function(e,t){return e[t.descriptor.id]=t,e},{})}),DJ=gS(function(e){return e.reduce(function(e,t){return e[t.descriptor.id]=t,e},{})}),PJ=gS(function(e){return CJ(e)}),MJ=gS(function(e){return CJ(e)}),TJ=gS(function(e,t){return MJ(t).filter(function(t){return e===t.descriptor.droppableId}).sort(function(e,t){return e.descriptor.index-t.descriptor.index})});function RJ(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function IJ(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var FJ=gS(function(e,t){return t.filter(function(t){return t.descriptor.id!==e.descriptor.id})}),kJ=function(e,t){return e.descriptor.droppableId===t.descriptor.id},LJ={point:cJ,value:0},BJ={invisible:{},visible:{},all:[]},NJ={displaced:BJ,displacedBy:LJ,at:null},jJ=function(e,t){return function(n){return e<=n&&n<=t}},UJ=function(e){var t=jJ(e.top,e.bottom),n=jJ(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||a&&i||s&&o}},VJ=function(e){var t=jJ(e.top,e.bottom),n=jJ(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},HJ={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},GJ={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},WJ=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:cJ;return yJ(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},zJ=function(e){return WJ(Sc({},e,{isVisibleThroughFrameFn:VJ}))};function $J(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce(function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return jZ(UZ(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!WJ(Sc({},{target:s,destination:n,viewport:o,withDroppableDisplacement:!0},{isVisibleThroughFrameFn:UJ})))return e.invisible[t.descriptor.id]=!0,e;var c=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(l,a,i),u={draggableId:l,shouldAnimate:c};return e.visible[l]=u,e},{all:[],visible:{},invisible:{}})}function KJ(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:BJ,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function QJ(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=kJ(t,r);if(null==s)return KJ({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var u=SJ(n,function(e){return e.descriptor.index===s});if(!u)return KJ({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var d=FJ(t,n),p=n.indexOf(u);return{displaced:$J({afterDragging:d.slice(p),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function qJ(e,t){return Boolean(t.effected[e])}var YJ=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},XJ=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},ZJ=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return fJ(t.line,n.marginBox[t.end]+YJ(t,r),XJ(t,n.marginBox,r))},JJ=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return fJ(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),XJ(t,n.marginBox,r))},e0=function(e,t){var n=e.frame;return n?uJ(t,n.scroll.diff.displacement):t},t0=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=TJ(o.descriptor.id,r),s=n.page,l=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return fJ(t.line,n.contentBox[t.start]+YJ(t,r),XJ(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var p=r[d];if(qJ(d,i))return JJ({axis:l,moveRelativeTo:p.page,isMoving:s});var h=zZ(p.page,u.point);return JJ({axis:l,moveRelativeTo:h,isMoving:s})}var f=a[a.length-1];if(f.descriptor.id===n.descriptor.id)return s.borderBox.center;if(qJ(f.descriptor.id,i)){var g=zZ(f.page,hJ(i.displacedBy.point));return ZJ({axis:l,moveRelativeTo:g,isMoving:s})}return ZJ({axis:l,moveRelativeTo:f.page,isMoving:s})}({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=IJ(n);o||nJ(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return qJ(r,n)?i?cJ:hJ(o.point):i?o.point:cJ}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return uJ(a,s)}({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?e0(n,t):t},n0=function(e,t){var n=dJ(t,e.scroll.initial),r=hJ(n);return{frame:jZ({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function r0(e,t){return e.map(function(e){return t[e]})}var o0=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return uJ(e.scroll.diff.displacement,t)}(e.viewport,t),o=dJ(r,n.page.borderBox.center);return uJ(n.client.borderBox.center,o)},i0=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,s=void 0!==a&&a,l=dJ(r,t.page.borderBox.center),c={target:yJ(t.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:o};return s?function(e){return WJ(Sc({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=jJ(e.top,e.bottom),r=jJ(e.left,e.right);return function(e){return t===HJ?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):zJ(c)},a0=function(e){var t=e.subject.active;return t||nJ(!1),t},s0=function(e,t){var n=e.page.borderBox.center;return qJ(e.descriptor.id,t)?dJ(n,t.displacedBy.point):n},l0=function(e,t){var n=e.page.borderBox;return qJ(e.descriptor.id,t)?yJ(n,hJ(t.displacedBy.point)):n},c0=gS(function(e,t){var n=t[e.line];return{value:n,point:fJ(e.line,n)}}),u0=function(e,t){return Sc({},e,{scroll:Sc({},e.scroll,{max:t})})},d0=function(e,t,n){var r=e.frame;kJ(t,e)&&nJ(!1),e.subject.withPlaceholder&&nJ(!1);var o=c0(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return fJ(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=TJ(e.descriptor.id,n).reduce(function(e,t){return e+t.client.marginBox[r.size]},0)+t[r.line]-o;return i<=0?null:fJ(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return Sc({},e,{subject:bJ({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var s=i?uJ(r.scroll.max,i):r.scroll.max,l=u0(r,s);return Sc({},e,{subject:bJ({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l}),frame:l})},p0=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null};function h0(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function f0(e){var t=jJ(e.top,e.bottom),n=jJ(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}var g0=function(e,t){return jZ(yJ(e,t))};function m0(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var v0=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=g0(n.page.borderBox,t),c=function(e){var t=e.pageBorderBox,n=e.draggable,r=PJ(e.droppables).filter(function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(f0(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],c=jJ(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)});return r.length?1===r.length?r[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.candidates,r=e.draggable.page.borderBox.center,o=n.map(function(e){var n=e.axis,o=fJ(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:gJ(r,o)}}).sort(function(e,t){return t.distance-e.distance});return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:r}):null}({pageBorderBox:l,draggable:n,droppables:o});if(!c)return NJ;var u=o[c],d=TJ(u.descriptor.id,r),p=function(e,t){var n=e.frame;return n?g0(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=c0(o.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],p=SJ(FJ(t,i),function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=qJ(t,a),l=m0({displaced:r.displaced,id:t});return i?l?d>n[s.start]+o&&d<n[s.end]-o:u>n[s.start]-c+o&&u<n[s.end]-c-o:l?d>n[s.start]+c+o&&d<n[s.end]+c-o:u>n[s.start]+o&&u<n[s.end]-o});return p?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:n,previousImpact:i,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=c0(r.axis,n.displaceBy),u=c.value,d=t[l.start],p=t[l.end],h=SJ(FJ(n,o),function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=qJ(t,s),o=m0({displaced:i,id:t});return r?o?p<=n:d<n-u:o?p<=n+u:d<n}),f=function(e){var t=e.draggable,n=e.closest;return n?e.inHomeList&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:h,inHomeList:kJ(n,r)});return QJ({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:c,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:n,destination:u,insideDestination:d,last:i.displaced,viewport:a,afterCritical:s})},y0=function(e,t){var n;return Sc({},e,((n={})[t.descriptor.id]=t,n))},A0=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,s=o||t.viewport,l=r||t.dimensions,c=n||t.current.client.selection,u=dJ(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:uJ(t.initial.client.borderBoxCenter,u)},p={selection:uJ(d.selection,s.scroll.current),borderBoxCenter:uJ(d.borderBoxCenter,s.scroll.current),offset:uJ(d.offset,s.scroll.diff.value)},h={client:d,page:p};if("COLLECTING"===t.phase)return Sc({phase:"COLLECTING"},t,{dimensions:l,viewport:s,current:h});var f=l.draggables[t.critical.draggable.id],g=i||v0({pageOffset:p.offset,draggable:f,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),m=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.impact,i=function(e){var t=e.impact,n=e.droppables,r=p0(e.previousImpact),o=p0(t);if(!r)return n;if(r===o)return n;var i=n[r];if(!i.subject.withPlaceholder)return n;var a=function(e){var t=e.subject.withPlaceholder;t||nJ(!1);var n=e.frame;if(!n)return Sc({},e,{subject:bJ({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||nJ(!1);var o=u0(n,r);return Sc({},e,{subject:bJ({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(i);return y0(n,a)}({previousImpact:e.previousImpact,impact:o,droppables:r}),a=p0(o);if(!a)return i;var s=r[a];if(kJ(t,s))return i;if(s.subject.withPlaceholder)return i;var l=d0(s,t,n);return y0(i,l)}({draggable:f,impact:g,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return Sc({},t,{current:h,dimensions:{draggables:l.draggables,droppables:m},impact:g,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})},w0=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,s=function(e,t){return e.map(function(e){return t[e]})}(a.all,r);return Sc({},t,{displaced:$J({afterDragging:s,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a})})},b0=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=t0({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return o0({pageBorderBoxCenter:s,draggable:n,viewport:i})},_0=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&nJ(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=p0(o);u||nJ(!1);var d=l[u],p=w0({impact:o,viewport:i,destination:d,draggables:s}),h=b0({impact:p,draggable:c,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return A0({impact:p,clientSelection:h,state:t,dimensions:a,viewport:i})},C0=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=c0(n.axis,t.displaceBy),a=TJ(n.descriptor.id,r),s=a.indexOf(t);-1===s&&nJ(!1);var l,c=a.slice(s+1),u=c.reduce(function(e,t){return e[t.descriptor.id]=!0,e},{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:$J({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},E0=function(e){return"SNAP"===e.movementMode},S0=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:y0(e.droppables,t)}}(e.dimensions,t);return!E0(e)||n?A0({state:e,dimensions:r}):_0({state:e,dimensions:r})};function O0(e){return e.isDragging&&"SNAP"===e.movementMode?Sc({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var x0={phase:"IDLE",completed:null,shouldFlush:!1},D0=function(e,t){if(void 0===e&&(e=x0),"FLUSH"===t.type)return Sc({},x0,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&nJ(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,s=n.movementMode,l=a.draggables[r.draggable.id],c=a.droppables[r.droppable.id],u={selection:o,borderBoxCenter:l.client.borderBox.center,offset:cJ},d={client:u,page:{selection:uJ(u.selection,i.scroll.initial),borderBoxCenter:uJ(u.selection,i.scroll.initial),offset:uJ(u.selection,i.scroll.diff.value)}},p=PJ(a.droppables).every(function(e){return!e.isFixedOnPage}),h=C0({draggable:l,home:c,draggables:a.draggables,viewport:i}),f=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:a,initial:d,current:d,isWindowScrollAllowed:p,impact:f,afterCritical:h.afterCritical,onLiftImpact:f,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&nJ(!1),Sc({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&nJ(!1),function(e){var t=e.state,n=e.published,r=n.modified.map(function(e){var n=t.dimensions.droppables[e.droppableId];return _J(n,e.scroll)}),o=Sc({},t.dimensions.droppables,{},xJ(r)),i=DJ(function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map(function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||nJ(!1),t}(n[t]),a=i.scroll.diff.value,s=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=zZ(t.client,n),i=$Z(o,r);return Sc({},t,{placeholder:Sc({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:uJ(o,a),initialWindowScroll:r.scroll.initial});return s})}({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=Sc({},t.dimensions.draggables,{},i);n.removals.forEach(function(e){delete a[e]});var s={droppables:o,draggables:a},l=p0(t.impact),c=l?s.droppables[l]:null,u=s.draggables[t.critical.draggable.id],d=s.droppables[t.critical.droppable.id],p=C0({draggable:u,home:d,draggables:a,viewport:t.viewport}),h=p.impact,f=p.afterCritical,g=c&&c.isCombineEnabled?t.impact:h,m=v0({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:g,viewport:t.viewport,afterCritical:f}),v=Sc({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:m,onLiftImpact:h,dimensions:s,afterCritical:f,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:Sc({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;h0(e)||nJ(!1);var g=t.payload.client;return pJ(g,e.current.client.selection)?e:A0({state:e,clientSelection:g,impact:E0(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return O0(e);if("COLLECTING"===e.phase)return O0(e);h0(e)||nJ(!1);var m=t.payload,v=m.id,y=m.newScroll,A=e.dimensions.droppables[v];if(!A)return e;var w=_J(A,y);return S0(e,w,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;h0(e)||nJ(!1);var b=t.payload,_=b.id,C=b.isEnabled,E=e.dimensions.droppables[_];E||nJ(!1),E.isEnabled===C&&nJ(!1);var S=Sc({},E,{isEnabled:C});return S0(e,S,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;h0(e)||nJ(!1);var O=t.payload,x=O.id,D=O.isCombineEnabled,P=e.dimensions.droppables[x];P||nJ(!1),P.isCombineEnabled===D&&nJ(!1);var M=Sc({},P,{isCombineEnabled:D});return S0(e,M,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;h0(e)||nJ(!1),e.isWindowScrollAllowed||nJ(!1);var T=t.payload.newScroll;if(pJ(e.viewport.scroll.current,T))return O0(e);var R=n0(e.viewport,T);return E0(e)?_0({state:e,viewport:R}):A0({state:e,viewport:R})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!h0(e))return e;var I=t.payload.maxScroll;if(pJ(I,e.viewport.scroll.max))return e;var F=Sc({},e.viewport,{scroll:Sc({},e.viewport.scroll,{max:I})});return Sc({phase:"DRAGGING"},e,{viewport:F})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&nJ(!1);var k=function(e){var t=e.state,n=e.type,r=function(e,t){var n=p0(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!o)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,p=t.dimensions,h=p.draggables,f=p.droppables;return l?function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,s=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var u=TJ(r.descriptor.id,o),d=kJ(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!RJ(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return Sc({},i,{at:t})}var s=i.displaced.all,l=s.length?s[0]:null;if(t)return l?a(l):null;var c=FJ(n,o);if(!l)return c.length?a(c[c.length-1].descriptor.id):null;var u=EJ(c,function(e){return e.descriptor.id===l});-1===u&&nJ(!1);var d=u-1;return d<0?null:a(c[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:i})||function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||nJ(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:QJ({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var p=function(e){var t=e.isMovingForward,n=e.draggables,r=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var i=r.draggableId,a=n[i].descriptor.index;return qJ(i,o)?t?a:a-1:t?a+1:a}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==p?null:QJ({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:p})}({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:u,previousImpact:i,viewport:a,afterCritical:c});if(!p)return null;var h=t0({impact:p,draggable:n,droppable:r,draggables:o,afterCritical:c});if(i0({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:o0({pageBorderBoxCenter:h,draggable:n,viewport:a}),impact:p,scrollJumpRequest:null};var f=dJ(h,s),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=n0(n,uJ(n.scroll.current,i)),s=r.frame?_J(r,uJ(r.frame.scroll.current,i)):r,l=t.displaced,c=$J({afterDragging:r0(l.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),u=$J({afterDragging:r0(l.all,o),destination:s,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),d={},p={},h=[l,c,u];return l.all.forEach(function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?p[e]=t:d[e]=!0}),Sc({},t,{displaced:{all:l.all,invisible:d,visible:p}})}({impact:p,viewport:a,destination:r,draggables:o,maxScrollChange:f});return{clientSelection:l,impact:g,scrollJumpRequest:f}}({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:h,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):function(e){var t=e.previousPageBorderBoxCenter,n=e.draggable,r=e.draggables,o=e.viewport,i=e.afterCritical,a=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=jJ(a[s.start],a[s.end]),c=PJ(o).filter(function(e){return e!==r}).filter(function(e){return e.isEnabled}).filter(function(e){return Boolean(e.subject.active)}).filter(function(e){return UJ(i.frame)(a0(e))}).filter(function(e){var n=a0(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]}).filter(function(e){var t=a0(e),n=jJ(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])}).sort(function(e,n){var r=a0(e)[s.crossAxisStart],o=a0(n)[s.crossAxisStart];return t?r-o:o-r}).filter(function(e,t,n){return a0(e)[s.crossAxisStart]===a0(n[0])[s.crossAxisStart]});if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter(function(e){return jJ(a0(e)[s.start],a0(e)[s.end])(n[s.line])});return 1===u.length?u[0]:u.length>1?u.sort(function(e,t){return a0(e)[s.start]-a0(t)[s.start]})[0]:c.sort(function(e,t){var r=mJ(n,AJ(a0(e))),o=mJ(n,AJ(a0(t)));return r!==o?r-o:a0(e)[s.start]-a0(t)[s.start]})[0]}({isMovingForward:e.isMovingForward,pageBorderBoxCenter:t,source:e.isOver,droppables:e.droppables,viewport:o});if(!a)return null;var s=TJ(a.descriptor.id,r),l=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.afterCritical,i=e.insideDestination.filter(function(e){return zJ({target:l0(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(e,n){var i=gJ(t,e0(r,s0(e,o))),a=gJ(t,e0(r,s0(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index});return i[0]||null}({pageBorderBoxCenter:t,viewport:o,destination:a,insideDestination:s,afterCritical:i}),c=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:BJ,displacedBy:LJ,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=t0({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:l}),d=kJ(o,a)?a:d0(a,o,i);return i0({draggable:o,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var p,h=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),f=(p=n.descriptor.index,n.descriptor.id===o.descriptor.id||h?p:p+1);return QJ({draggable:o,insideDestination:r,destination:a,viewport:s,displacedBy:c0(a.axis,o.displaceBy),last:BJ,index:f})}({previousPageBorderBoxCenter:t,destination:a,draggable:n,draggables:r,moveRelativeTo:l,insideDestination:s,viewport:o,afterCritical:i});if(!c)return null;var u=t0({impact:c,draggable:n,droppable:a,draggables:r,afterCritical:i});return{clientSelection:o0({pageBorderBoxCenter:u,draggable:n,viewport:o}),impact:c,scrollJumpRequest:null}}({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:h,droppables:f,viewport:t.viewport,afterCritical:t.afterCritical})}({state:e,type:t.type});return k?A0({state:e,impact:k.impact,clientSelection:k.clientSelection,scrollJumpRequest:k.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&nJ(!1),Sc({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var B=t.payload,N=B.completed,j=B.dropDuration,U=B.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&nJ(!1),{phase:"DROP_ANIMATING",completed:N,dropDuration:j,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},P0=function(e){return{type:"LIFT",payload:e}},M0=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},T0=function(){return{type:"COLLECTION_STARTING",payload:null}},R0=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},I0=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},F0=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},k0=function(e){return{type:"MOVE",payload:e}},L0=function(){return{type:"MOVE_UP",payload:null}},B0=function(){return{type:"MOVE_DOWN",payload:null}},N0=function(){return{type:"MOVE_RIGHT",payload:null}},j0=function(){return{type:"MOVE_LEFT",payload:null}},U0=function(){return{type:"FLUSH",payload:null}},V0=function(e){return{type:"DROP_COMPLETE",payload:e}},H0=function(e){return{type:"DROP",payload:e}},G0="cubic-bezier(.2,1,.1,1)",W0="0.2s cubic-bezier(0.2, 0, 0, 1)",z0={fluid:"opacity "+W0,snap:"transform "+W0+", opacity "+W0,drop:function(e){var t=e+"s "+G0;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+W0,placeholder:"height "+W0+", width "+W0+", margin "+W0},$0=function(e){return pJ(e,cJ)?null:"translate("+e.x+"px, "+e.y+"px)"},K0=$0,Q0=.33,q0=.55-Q0,Y0=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&nJ(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&nJ(!1);var a=o.critical,s=o.dimensions,l=s.draggables[o.critical.draggable.id],c=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:Sc({},r,{displaced:BJ}),didDropInsideDroppable:!0}:{impact:w0({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),u=c.impact,d=c.didDropInsideDroppable,p=d?RJ(u):null,h=d?IJ(u):null,f={index:a.draggable.index,droppableId:a.droppable.id},g={draggableId:l.descriptor.id,type:l.descriptor.type,source:f,reason:i,mode:o.movementMode,destination:p,combine:h},m=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,s=r.droppables,l=p0(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=b0({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:c||u,viewport:o});return dJ(d,n.client.borderBox.center)}({impact:u,draggable:l,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),v={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:u};if(!pJ(o.current.client.offset,m)||Boolean(g.combine)){var y=function(e){var t=e.reason,n=gJ(e.current,e.destination);if(n<=0)return Q0;if(n>=1500)return.55;var r=Q0+q0*(n/1500);return Number(("CANCEL"===t?.6*r:r).toFixed(2))}({current:o.current.client.offset,destination:m,reason:i});n({type:"DROP_ANIMATE",payload:{newHomeClientOffset:m,dropDuration:y,completed:v}})}else n(V0({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},X0=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Z0=function(e){var t=function(e){var t,n=e.onWindowScroll,r=qZ(function(){n(X0())}),o=(t=r,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||t()}}),i=XZ;function a(){return i!==XZ}return{start:function(){a()&&nJ(!1),i=ZZ(window,[o])},stop:function(){a()||nJ(!1),r.cancel(),i(),i=XZ},isActive:a}}({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},J0=function(e,t){t()},e1=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},t1=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout(function(){n=!0}),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},n1=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&nJ(!1),e.dispatch(V0({completed:r.completed}))}else t(n)}}},r1=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame(function(){n=null,t=ZZ(window,[i])})}}}},o1=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(H0({reason:r.reason})))}}}},i1=tZ,a1=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,s=e.autoScroller;return ZX(D0,i1(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(QX(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map(function(e){return e(o)});return r=tZ.apply(void 0,i)(n.dispatch),Du(Du({},n),{},{dispatch:r})}}}((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,l=i.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(V0({completed:c.completed})),"IDLE"!==n().phase&&nJ(!1),r(U0()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),p=d.critical,h=d.dimensions,f=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:p,dimensions:h,clientSelection:s,movementMode:l,viewport:f}})}else t(o)}}}}(n),Y0,n1,r1,o1,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&nJ(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(s),Z0,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),function(e,t){var n=function(e,t){var n,r=(n=[],{add:function(e){var t=setTimeout(function(){return function(e){var t=EJ(n,function(t){return t.timerId===e});-1===t&&nJ(!1),n.splice(t,1)[0].callback()}(t)}),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach(function(e){clearTimeout(e.timerId),e.callback()})}}}),o=null,i=function(n){o||nJ(!1),o=null,J0(0,function(){return t1(e().onDragEnd,n,t,lJ.onDragEnd)})};return{beforeCapture:function(t,n){o&&nJ(!1),J0(0,function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})})},beforeStart:function(t,n){o&&nJ(!1),J0(0,function(){var r=e().onBeforeDragStart;r&&r(e1(t,n))})},start:function(n,i){o&&nJ(!1);var a=e1(n,i);o={mode:i,lastCritical:n,lastLocation:a.source,lastCombine:null},r.add(function(){J0(0,function(){return t1(e().onDragStart,a,t,lJ.onDragStart)})})},update:function(n,i){var a=RJ(i),s=IJ(i);o||nJ(!1);var l=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(n,o.lastCritical);l&&(o.lastCritical=n);var c,u,d=(u=a,!(null==(c=o.lastLocation)&&null==u||null!=c&&null!=u&&c.droppableId===u.droppableId&&c.index===u.index));d&&(o.lastLocation=a);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,s);if(p&&(o.lastCombine=s),l||d||p){var h=Sc({},e1(n,o.mode),{combine:s,destination:a});r.add(function(){J0(0,function(){return t1(e().onDragUpdate,h,t,lJ.onDragUpdate)})})}},flush:function(){o||nJ(!1),r.flush()},drop:i,abort:function(){if(o){var e=Sc({},e1(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}}(i,a))))},s1=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=dJ({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},l1=function(){var e=document.documentElement;return e||nJ(!1),e},c1=function(){var e=l1();return s1({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function u1(e,t,n){return n.descriptor.id!==t.id&&n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var d1,p1,h1=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame(function(){o=null;var e=r,i=e.additions,a=e.removals,s=e.modified,l=Object.keys(i).map(function(e){return t.draggable.getById(e).getDimension(cJ)}).sort(function(e,t){return e.descriptor.index-t.descriptor.index}),c=Object.keys(s).map(function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}}),u={additions:l,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},n.publish(u)}))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||nJ(!1);var o=n.critical.draggable;"ADDITION"===t.type&&u1(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&u1(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||nJ(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||nJ(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||nJ(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&nJ(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,o=function(){var e=X0(),t=c1(),n=e.y,r=e.x,o=l1(),i=o.clientWidth,a=o.clientHeight;return{frame:jZ({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:cJ,displacement:cJ}}}}(),i=o.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map(function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)}),l=r.draggable.getAllByType(t.draggable.type).map(function(e){return e.getDimension(i)});return{dimensions:{draggables:DJ(l),droppables:xJ(s)},critical:t,viewport:o}}({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach(function(e){return e.callbacks.dragStopped()}),n.unsubscribe(),n=null}}};return i},f1=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},g1=function(e){window.scrollBy(e.x,e.y)},m1=gS(function(e){return PJ(e).filter(function(e){return!!e.isEnabled&&!!e.frame})}),v1=function(e){return Math.pow(e,2)},y1=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},A1=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var n=y1({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=28*v1(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=Date.now()-n;if(r>=1200)return e;if(r<360)return 1;var o=y1({startOfRange:360,endOfRange:1200,current:r}),i=e*v1(o);return Math.ceil(i)}(i,r),1):i},w1=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:.25*e[t.size],maxScrollValueAt:.05*e[t.size]}}(t,o);return n[o.end]<n[o.start]?A1({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*A1({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},b1=vJ(function(e){return 0===e?0:e}),_1=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=w1({container:n,distanceToEdges:a,dragStartTime:t,axis:HJ,shouldUseTimeDampening:i}),l=w1({container:n,distanceToEdges:a,dragStartTime:t,axis:GJ,shouldUseTimeDampening:i}),c=b1({x:l,y:s});if(pJ(c,cJ))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?pJ(u,cJ)?null:u:null},C1=vJ(function(e){return 0===e?0:e>0?1:-1}),E1=(d1=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=uJ(t,r),i={x:d1(o.x,n.x),y:d1(o.y,n.y)};return pJ(i,cJ)?null:i}),S1=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=C1(r),a=E1({max:o,current:n,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},O1=function(e,t){return S1({current:e.scroll.current,max:e.scroll.max,change:t})},x1=function(e,t){var n=e.frame;return!!n&&S1({current:n.scroll.current,max:n.scroll.max,change:t})},D1=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.shouldUseTimeDampening,i=_1({dragStartTime:e.dragStartTime,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return i&&O1(t,i)?i:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void o(l)}var c=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=SJ(m1(t),function(t){return t.frame||nJ(!1),f0(t.frame.pageMarginBox)(e)});return n}(t,r);return i}({center:a,destination:p0(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=_1({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&x1(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},P1=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollDroppable,n=qZ(e.scrollWindow),r=qZ(t),o=null,i=function(e){o||nJ(!1);var t=o,i=t.shouldUseTimeDampening,a=t.dragStartTime;D1({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:a,shouldUseTimeDampening:i})};return{start:function(e){o&&nJ(!1);var t=Date.now(),n=!1,r=function(){n=!0};D1({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},n&&i(e)},stop:function(){o&&(n.cancel(),r.cancel(),o=null)},scroll:i}}({scrollWindow:n,scrollDroppable:t}),i=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var i=p0(e.impact);i||nJ(!1);var a=function(e,t){if(!x1(e,t))return t;var r=function(e,t){var n=e.frame;return n&&x1(e,t)?E1({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=dJ(t,r);return n(e.descriptor.id,o),dJ(t,o)}(e.dimensions.droppables[i],o);if(a){var s=e.viewport,l=function(e,t,n){if(!e)return n;if(!O1(t,n))return n;var o=function(e,t){if(!O1(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return E1({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=dJ(n,o);return r(i),dJ(n,i)}(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=uJ(e.current.client.selection,n);t({client:r})}(e,l)}}}}({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},M1="data-rbd",T1={base:p1=M1+"-drag-handle",draggableId:p1+"-draggable-id",contextId:p1+"-context-id"},R1=function(){var e=M1+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),I1=function(){var e=M1+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),F1={contextId:M1+"-scroll-container-context-id"},k1=function(e,t){return e.map(function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""}).join(" ")},L1=function(e){var t,n=function(e){return function(t){return"["+t+'="'+e+'"]'}}(e),r=(t="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ",{selector:n(T1.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:t,dragging:"pointer-events: none;",dropAnimating:t}}),o=function(){var e="\n      transition: "+z0.outOfTheWay+";\n    ";return{selector:n(R1.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),i=[o,r,{selector:n(I1.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:k1(i,"always"),resting:k1(i,"resting"),dragging:k1(i,"dragging"),dropAnimating:k1(i,"dropAnimating"),userCancel:k1(i,"userCancel")}},B1="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?h.useLayoutEffect:h.useEffect,N1=function(){var e=document.querySelector("head");return e||nJ(!1),e},j1=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t},U1=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function V1(e){return e instanceof U1(e).HTMLElement}function H1(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach(function(t){return t(e)})}function r(t){return e.draggables[t]||null}var o={register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||nJ(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return CJ(e.draggables).filter(function(e){return e.descriptor.type===t})}};function i(t){return e.droppables[t]||null}var a={register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=i(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=i(e);return t||nJ(!1),t},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(t){return CJ(e.droppables).filter(function(e){return e.descriptor.type===t})}};return{draggable:o,droppable:a,subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var G1=f().createContext(null),W1=function(){var e=document.body;return e||nJ(!1),e},z1={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},$1=function(e){return"rbd-announcement-"+e},K1=0,Q1={separator:"::"};function q1(e,t){return void 0===t&&(t=Q1),BZ(function(){return""+e+t.separator+K1++},[t.separator,e])}var Y1=f().createContext(null);function X1(e){var t=(0,h.useRef)(e);return(0,h.useEffect)(function(){t.current=e}),t}var Z1,J1,e2=((Z1={})[13]=!0,Z1[9]=!0,Z1),t2=function(e){e2[e.keyCode]&&e.preventDefault()},n2=function(){var e="visibilitychange";return"undefined"==typeof document?e:SJ([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],function(e){return"on"+e in document})||e}(),r2={type:"IDLE"};function o2(){}var i2=((J1={})[34]=!0,J1[33]=!0,J1[36]=!0,J1[35]=!0,J1),a2={type:"IDLE"},s2={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function l2(e,t){if(null==t)return!1;if(Boolean(s2[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&l2(e,t.parentElement)}function c2(e,t){var n=t.target;return!!V1(n)&&l2(e,n)}var u2=function(e){return jZ(e.getBoundingClientRect()).center},d2=function(){var e="matches";return"undefined"==typeof document?e:SJ([e,"msMatchesSelector","webkitMatchesSelector"],function(e){return e in Element.prototype})||e}();function p2(e,t){return null==e?null:e[d2](t)?e:p2(e.parentElement,t)}function h2(e,t){return e.closest?e.closest(t):p2(e,t)}function f2(e){e.preventDefault()}function g2(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function m2(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&!!i.options.isEnabled&&!!f1(n.getState(),o)}var v2=[function(e){var t=(0,h.useRef)(r2),n=(0,h.useRef)(XZ),r=BZ(function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,a,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),c(o,i)}}}}}},[e]),o=BZ(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}},[e]),i=NZ(function(){n.current=ZZ(window,[o,r],{passive:!1,capture:!0})},[o,r]),a=NZ(function(){"IDLE"!==t.current.type&&(t.current=r2,n.current(),i())},[i]),s=NZ(function(){var e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[a]),l=NZ(function(){var e=function(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t,n,i=e.button,a=e.clientX,s=e.clientY;if(0===i){var l={x:a,y:s},c=r();if("DRAGGING"===c.type)return e.preventDefault(),void c.actions.move(l);if("PENDING"!==c.type&&nJ(!1),t=c.point,n=l,Math.abs(n.x-t.x)>=5||Math.abs(n.y-t.y)>=5){e.preventDefault();var u=c.actions.fluidLift(l);o({type:"DRAGGING",actions:u})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void t2(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&nJ(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:n2,fn:t}]}({cancel:s,completed:a,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=ZZ(window,e,{capture:!0,passive:!1})},[s,a]),c=NZ(function(e,n){"IDLE"!==t.current.type&&nJ(!1),t.current={type:"PENDING",point:n,actions:e},l()},[l]);B1(function(){return i(),function(){n.current()}},[i])},function(e){var t=(0,h.useRef)(o2),n=BZ(function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var o=e.findClosestDraggableId(n);if(o){var i=e.tryGetLock(o,l,{sourceEvent:n});if(i){n.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=ZZ(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(i2[r.keyCode]?r.preventDefault():t2(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:n2,fn:n}]}(s,l),{capture:!0,passive:!1})}}}function l(){a||nJ(!1),a=!1,t.current(),r()}}}},[e]),r=NZ(function(){t.current=ZZ(window,[n],{passive:!1,capture:!0})},[n]);B1(function(){return r(),function(){t.current()}},[r])},function(e){var t=(0,h.useRef)(a2),n=(0,h.useRef)(XZ),r=NZ(function(){return t.current},[]),o=NZ(function(e){t.current=e},[]),i=BZ(function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),d(o,a)}}}}}},[e]),a=NZ(function(){n.current=ZZ(window,[i],{capture:!0,passive:!1})},[i]),s=NZ(function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(a2),n.current(),a())},[a,o]),l=NZ(function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),c=NZ(function(){var e={capture:!0,passive:!1},t={cancel:l,completed:s,getPhase:r},o=ZZ(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&nJ(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:n2,fn:t}]}(t),e),i=ZZ(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:n2,fn:t}]}(t),e);n.current=function(){o(),i()}},[l,r,s]),u=NZ(function(){var e=r();"PENDING"!==e.type&&nJ(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})},[r,o]),d=NZ(function(e,t){"IDLE"!==r().type&&nJ(!1);var n=setTimeout(u,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()},[c,r,o,u]);B1(function(){return a(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(a2))}},[r,a,o]),B1(function(){return ZZ(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])},[])}],y2=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function A2(e){return e.current||nJ(!1),e.current}function w2(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,o=e.nonce,i=e.dragHandleUsageInstructions,a=(0,h.useRef)(null),s=X1(e),l=NZ(function(){return y2(s.current)},[s]),c=function(e){var t=BZ(function(){return $1(e)},[e]),n=(0,h.useRef)(null);(0,h.useEffect)(function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Sc(e.style,z1),W1().appendChild(e),function(){setTimeout(function(){var t=W1();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)})}},[t]);var r=NZ(function(e){var t=n.current;t&&(t.textContent=e)},[]);return r}(t),u=function(e){var t=e.contextId,n=e.text,r=q1("hidden-text",{separator:"-"}),o=BZ(function(){return function(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}({contextId:t,uniqueId:r})},[r,t]);return(0,h.useEffect)(function(){var e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",W1().appendChild(e),function(){var t=W1();t.contains(e)&&t.removeChild(e)}},[o,n]),o}({contextId:t,text:i}),d=function(e,t){var n=BZ(function(){return L1(e)},[e]),r=(0,h.useRef)(null),o=(0,h.useRef)(null),i=NZ(gS(function(e){var t=o.current;t||nJ(!1),t.textContent=e}),[]),a=NZ(function(e){var t=r.current;t||nJ(!1),t.textContent=e},[]);B1(function(){(r.current||o.current)&&nJ(!1);var s=j1(t),l=j1(t);return r.current=s,o.current=l,s.setAttribute(M1+"-always",e),l.setAttribute(M1+"-dynamic",e),N1().appendChild(s),N1().appendChild(l),a(n.always),i(n.resting),function(){var e=function(e){var t=e.current;t||nJ(!1),N1().removeChild(t),e.current=null};e(r),e(o)}},[t,a,i,n.always,n.resting,e]);var s=NZ(function(){return i(n.dragging)},[i,n.dragging]),l=NZ(function(e){i("DROP"!==e?n.userCancel:n.dropAnimating)},[i,n.dropAnimating,n.userCancel]),c=NZ(function(){o.current&&i(n.resting)},[i,n.resting]);return BZ(function(){return{dragging:s,dropping:l,resting:c}},[s,l,c])}(t,o),p=NZ(function(e){A2(a).dispatch(e)},[]),g=BZ(function(){return eZ({publishWhileDragging:M0,updateDroppableScroll:R0,updateDroppableIsEnabled:I0,updateDroppableIsCombineEnabled:F0,collectionStarting:T0},p)},[p]),m=function(){var e=BZ(H1,[]);return(0,h.useEffect)(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}(),v=BZ(function(){return h1(m,g)},[m,g]),y=BZ(function(){return P1(Sc({scrollWindow:g1,scrollDroppable:v.scrollDroppable},eZ({move:k0},p)))},[v.scrollDroppable,p]),A=function(e){var t=(0,h.useRef)({}),n=(0,h.useRef)(null),r=(0,h.useRef)(null),o=(0,h.useRef)(!1),i=NZ(function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}},[]),a=NZ(function(t){var n=function(e,t){var n="["+T1.contextId+'="'+e+'"]',r=OJ(document.querySelectorAll(n));if(!r.length)return null;var o=SJ(r,function(e){return e.getAttribute(T1.draggableId)===t});return o&&V1(o)?o:null}(e,t);n&&n!==document.activeElement&&n.focus()},[e]),s=NZ(function(e,t){n.current===e&&(n.current=t)},[]),l=NZ(function(){r.current||o.current&&(r.current=requestAnimationFrame(function(){r.current=null;var e=n.current;e&&a(e)}))},[a]),c=NZ(function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(T1.draggableId)===e&&(n.current=e)},[]);return B1(function(){return o.current=!0,function(){o.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}},[]),BZ(function(){return{register:i,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}},[i,c,l,s])}(t),w=BZ(function(){return a1({announce:c,autoScroller:y,dimensionMarshal:v,focusMarshal:A,getResponders:l,styleMarshal:d})},[c,y,v,A,l,d]);a.current=w;var b=NZ(function(){var e=A2(a);"IDLE"!==e.getState().phase&&e.dispatch(U0())},[]),_=NZ(function(){var e=A2(a).getState();return e.isDragging||"DROP_ANIMATING"===e.phase},[]);n(BZ(function(){return{isDragging:_,tryAbort:b}},[_,b]));var C=NZ(function(e){return f1(A2(a).getState(),e)},[]),E=NZ(function(){return h0(A2(a).getState())},[]),S=BZ(function(){return{marshal:v,focus:A,contextId:t,canLift:C,isMovementAllowed:E,dragHandleUsageInstructionsId:u,registry:m}},[t,v,u,A,C,E,m]);return function(e){var t=e.contextId,n=e.store,r=e.registry,o=[].concat(e.enableDefaultSensors?v2:[],e.customSensors||[]),i=(0,h.useState)(function(){return function(){var e=null;function t(){e||nJ(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&nJ(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()})[0],a=NZ(function(e,t){e.isDragging&&!t.isDragging&&i.tryAbandon()},[i]);B1(function(){var e=n.getState();return n.subscribe(function(){var t=n.getState();a(e,t),e=t})},[i,n,a]),B1(function(){return i.tryAbandon},[i.tryAbandon]);for(var s=NZ(function(e){return m2({lockAPI:i,registry:r,store:n,draggableId:e})},[i,r,n]),l=NZ(function(e,o,a){return function(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent;if(!m2({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var l=o.draggable.getById(i),c=function(e,t){var n="["+R1.contextId+'="'+e+'"]',r=SJ(OJ(document.querySelectorAll(n)),function(e){return e.getAttribute(R1.id)===t});return r&&V1(r)?r:null}(n,l.descriptor.id);if(!c)return null;if(s&&!l.options.canDragInteractiveElements&&c2(c,s))return null;var u=t.claim(a||XZ),d="PRE_DRAG";function p(){return l.options.shouldRespectForcePress}function h(){return t.isActive(u)}var f=function(e,t){g2({expected:e,phase:d,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=ZZ(window,[{eventName:"click",fn:f2,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(H0({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&nJ(!1)),r.dispatch(P0(e.liftActionArgs)),d="DRAGGING",Sc({isActive:function(){return g2({expected:"DRAGGING",phase:d,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}var m={isActive:function(){return g2({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=qZ(function(e){f(function(){return k0({client:e})})});return Sc({},g({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return f(L0)},moveRight:function(){return f(N0)},moveDown:function(){return f(B0)},moveLeft:function(){return f(j0)}};return g({liftActionArgs:{id:i,clientSelection:u2(c),movementMode:"SNAP"},cleanup:XZ,actions:e})},abort:function(){g2({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!0})&&t.release()}};return m}({lockAPI:i,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})},[t,i,r,n]),c=NZ(function(e){return function(e,t){var n=function(e,t){var n=t.target;if(!function(e){return e instanceof U1(e).Element}(n))return null;var r=function(e){return"["+T1.contextId+'="'+e+'"]'}(e),o=h2(n,r);return o&&V1(o)?o:null}(e,t);return n?n.getAttribute(T1.draggableId):null}(t,e)},[t]),u=NZ(function(e){var t=r.draggable.findById(e);return t?t.options:null},[r.draggable]),d=NZ(function(){i.isClaimed()&&(i.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(U0()))},[i,n]),p=NZ(i.isClaimed,[i]),f=BZ(function(){return{canGetLock:s,tryGetLock:l,findClosestDraggableId:c,findOptionsForDraggable:u,tryReleaseLock:d,isLockClaimed:p}},[s,l,c,u,d,p]),g=0;g<o.length;g++)o[g](f)}({contextId:t,store:w,registry:m,customSensors:r,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,h.useEffect)(function(){return b},[b]),f().createElement(Y1.Provider,{value:S},f().createElement(sZ,{context:G1,store:w},e.children))}var b2=0;function _2(e){var t=BZ(function(){return""+b2++},[]),n=e.dragHandleUsageInstructions||lJ.dragHandleUsageInstructions;return f().createElement(rJ,null,function(r){return f().createElement(w2,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)})}var C2=function(e){return function(t){return e===t}},E2=C2("scroll"),S2=C2("auto"),O2=(C2("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),x2=function e(t){return null==t||t===document.body||t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return O2(n,E2)||O2(n,S2)}(t)?t:e(t.parentElement)},D2=function(e){return{x:e.scrollLeft,y:e.scrollTop}},P2=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},M2={passive:!1},T2={passive:!0},R2=function(e){return e.shouldPublishImmediately?M2:T2};function I2(e){var t=(0,h.useContext)(e);return t||nJ(!1),t}var F2=function(e){return e&&e.env.closestScrollable||null};function k2(){}var L2={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},B2=f().memo(function(e){var t=(0,h.useRef)(null),n=NZ(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),r=e.animate,o=e.onTransitionEnd,i=e.onClose,a=e.contextId,s=(0,h.useState)("open"===e.animate),l=s[0],c=s[1];(0,h.useEffect)(function(){return l?"open"!==r?(n(),c(!1),k2):t.current?k2:(t.current=setTimeout(function(){t.current=null,c(!1)}),n):k2},[r,l,n]);var u=NZ(function(e){"height"===e.propertyName&&(o(),"close"===r&&i())},[r,i,o]),d=function(e){var t=e.placeholder,n=e.animate,r=function(e){var t=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?L2:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:e.isAnimatingOpenOnMount,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:r.width,height:r.height,marginTop:r.margin.top,marginRight:r.margin.right,marginBottom:r.margin.bottom,marginLeft:r.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?z0.placeholder:null}}({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return f().createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":a,onTransitionEnd:u,ref:e.innerRef})}),N2=f().createContext(null),j2=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Rg(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(f().PureComponent),U2=function(e,t){return t?z0.drop(t.duration):e?z0.snap:z0.fluid},V2=function(e,t){return e?t?0:.7:null};function H2(e){e.preventDefault()}var G2=function(e,t){return e===t},W2=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function z2(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var $2={mapped:{type:"SECONDARY",offset:cJ,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:z2(null)}},K2=kZ(function(){var e,t,n,r=(e=gS(function(e,t){return{x:e,y:t}}),t=gS(function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}}),n=gS(function(e,n,r,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}}),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],s=p0(r.impact),l=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==o.draggableId)return null;var p=o.isClone,h=r.dimensions.draggables[o.draggableId],f=d.result,g=f.mode,m=W2(f),v=function(e){return e.combine?e.combine.draggableId:null}(f),y={duration:r.dropDuration,curve:G0,moveTo:r.newHomeClientOffset,opacity:v?0:null,scale:v?.75:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:h,dropping:y,draggingOver:m,combineWith:v,mode:g,forceShouldAnimate:null,snapshot:t(g,p,m,v,y)}}}return null}),o=function(){var e=gS(function(e,t){return{x:e,y:t}}),t=gS(z2),n=gS(function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}}),r=function(e){return e?n(cJ,e,!0):null},o=function(t,o,i,a){var s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=IJ(i),u=c&&c.draggableId===t?o:null;if(!s){if(!l)return r(u);if(i.displaced.invisible[t])return null;var d=hJ(a.displacedBy.point),p=e(d.x,d.y);return n(p,u,!0)}if(l)return r(u);var h=i.displacedBy.point,f=e(h.x,h.y);return n(f,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||$2}},{dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:G1,pure:!0,areStatePropsEqual:G2})(function(e){var t=(0,h.useRef)(null),n=NZ(function(e){t.current=e},[]),r=NZ(function(){return t.current},[]),o=I2(Y1),i=o.contextId,a=o.dragHandleUsageInstructionsId,s=o.registry,l=I2(N2),c=l.type,u=l.droppableId,d=BZ(function(){return{id:e.draggableId,index:e.index,type:c,droppableId:u}},[e.draggableId,e.index,c,u]),p=e.children,f=e.draggableId,g=e.isEnabled,m=e.shouldRespectForcePress,v=e.canDragInteractiveElements,y=e.isClone,A=e.mapped,w=e.dropAnimationFinished;y||function(e){var t=q1("draggable"),n=e.descriptor,r=e.registry,o=e.getDraggableRef,i=e.canDragInteractiveElements,a=e.shouldRespectForcePress,s=e.isEnabled,l=BZ(function(){return{canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:s}},[i,s,a]),c=NZ(function(e){var t=o();return t||nJ(!1),function(e,t,n){void 0===n&&(n=cJ);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=KZ(o,r),a=$Z(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)},[n,o]),u=BZ(function(){return{uniqueId:t,descriptor:n,options:l,getDimension:c}},[n,c,l,t]),d=(0,h.useRef)(u),p=(0,h.useRef)(!0);B1(function(){return r.draggable.register(d.current),function(){return r.draggable.unregister(d.current)}},[r.draggable]),B1(function(){if(p.current)p.current=!1;else{var e=d.current;d.current=u,r.draggable.update(u,e)}},[u,r.draggable])}(BZ(function(){return{descriptor:d,registry:s,getDraggableRef:r,canDragInteractiveElements:v,shouldRespectForcePress:m,isEnabled:g}},[d,s,r,v,m,g]));var b=BZ(function(){return g?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":f,"data-rbd-drag-handle-context-id":i,draggable:!1,onDragStart:H2}:null},[i,a,f,g]),_=NZ(function(e){"DRAGGING"===A.type&&A.dropping&&"transform"===e.propertyName&&w()},[w,A]),C=BZ(function(){var e=function(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(o),l=s?function(e,t){var n=$0(e);return n?t?n+" scale(0.75)":n:null}(n,i):K0(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:U2(a,o),transform:l,opacity:V2(i,s),zIndex:s?4500:5e3,pointerEvents:"none"}}(e):{transform:K0((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}(A),t="DRAGGING"===A.type&&A.dropping?_:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":i,"data-rbd-draggable-id":f,style:e,onTransitionEnd:t},dragHandleProps:b}},[i,b,f,A,_,n]),E=BZ(function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}},[d.droppableId,d.id,d.index,d.type]);return p(C,A.snapshot,E)});function Q2(e){return I2(N2).isUsingCloneFor!==e.draggableId||e.isClone?f().createElement(K2,e):null}function q2(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return f().createElement(Q2,Sc({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var Y2=function(e,t){return e===t.droppable.type},X2=function(e,t){return t.draggables[e.draggable.id]},Z2={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||nJ(!1),document.body}},J2=kZ(function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=Sc({},e,{shouldAnimatePlaceholder:!1}),n=gS(function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}}),r=gS(function(r,o,i,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!o)return t;if(!a)return e;var p={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}});return function(n,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,l=o.renderClone;if(n.isDragging){var c=n.critical;if(!Y2(a,c))return t;var u=X2(c,n.dimensions),d=p0(n.impact)===i;return r(i,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var p=n.completed;if(!Y2(a,p.critical))return t;var h=X2(p.critical,n.dimensions);return r(i,s,W2(p.result)===i,p0(p.impact)===i,h,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var f=n.completed;if(!Y2(a,f.critical))return t;var g=p0(f.impact)===i,m=Boolean(f.impact.at&&"COMBINE"===f.impact.at.type),v=f.critical.droppable.id===i;return g?m?e:t:v?e:t}return t}},{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:G1,pure:!0,areStatePropsEqual:G2})(function(e){var t=(0,h.useContext)(Y1);t||nJ(!1);var n=t.contextId,r=t.isMovementAllowed,o=(0,h.useRef)(null),i=(0,h.useRef)(null),a=e.children,s=e.droppableId,l=e.type,c=e.mode,u=e.direction,d=e.ignoreContainerClipping,p=e.isDropDisabled,g=e.isCombineEnabled,m=e.snapshot,v=e.useClone,y=e.updateViewportMaxScroll,A=e.getContainerForClone,w=NZ(function(){return o.current},[]),b=NZ(function(e){o.current=e},[]),_=(NZ(function(){return i.current},[]),NZ(function(e){i.current=e},[])),C=NZ(function(){r()&&y({maxScroll:c1()})},[r,y]);!function(e){var t=(0,h.useRef)(null),n=I2(Y1),r=q1("droppable"),o=n.registry,i=n.marshal,a=X1(e),s=BZ(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),l=(0,h.useRef)(s),c=BZ(function(){return gS(function(e,n){t.current||nJ(!1);var r={x:e,y:n};i.updateDroppableScroll(s.id,r)})},[s.id,i]),u=NZ(function(){var e=t.current;return e&&e.env.closestScrollable?D2(e.env.closestScrollable):cJ},[]),d=NZ(function(){var e=u();c(e.x,e.y)},[u,c]),p=BZ(function(){return qZ(d)},[d]),f=NZ(function(){var e=t.current,n=F2(e);e&&n||nJ(!1),e.scrollOptions.shouldPublishImmediately?d():p()},[p,d]),g=NZ(function(e,r){t.current&&nJ(!1);var o=a.current,i=o.getDroppableRef();i||nJ(!1);var l=function(e){return{closestScrollable:x2(e),isFixedOnPage:P2(e)}}(i),c={ref:i,descriptor:s,env:l,scrollOptions:r};t.current=c;var u=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=QZ(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=UZ({top:r,right:a,bottom:i,left:o},n.border);return GZ({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=$Z(u,o),p=function(){if(!c)return null;var e=QZ(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:$Z(e,o),scroll:D2(c),scrollSize:t,shouldClipSubject:l}}(),h=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=s1({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:cJ,displacement:cJ}}}}(),u="vertical"===i?HJ:GJ;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:bJ({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:d,closest:p});return h}({ref:i,descriptor:s,env:l,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=l.closestScrollable;return d&&(d.setAttribute(F1.contextId,n.contextId),d.addEventListener("scroll",f,R2(c.scrollOptions))),u},[n.contextId,s,f,a]),m=NZ(function(){var e=t.current,n=F2(e);return e&&n||nJ(!1),D2(n)},[]),v=NZ(function(){var e=t.current;e||nJ(!1);var n=F2(e);t.current=null,n&&(p.cancel(),n.removeAttribute(F1.contextId),n.removeEventListener("scroll",f,R2(e.scrollOptions)))},[f,p]),y=NZ(function(e){var n=t.current;n||nJ(!1);var r=F2(n);r||nJ(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x},[]),A=BZ(function(){return{getDimensionAndWatchScroll:g,getScrollWhileDragging:m,dragStopped:v,scroll:y}},[v,g,m,y]),w=BZ(function(){return{uniqueId:r,descriptor:s,callbacks:A}},[A,s,r]);B1(function(){return l.current=w.descriptor,o.droppable.register(w),function(){t.current&&v(),o.droppable.unregister(w)}},[A,s,v,w,i,o.droppable]),B1(function(){t.current&&i.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),B1(function(){t.current&&i.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}({droppableId:s,type:l,mode:c,direction:u,isDropDisabled:p,isCombineEnabled:g,ignoreContainerClipping:d,getDroppableRef:w});var E=f().createElement(j2,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(e){var t=e.onClose,r=e.data,o=e.animate;return f().createElement(B2,{placeholder:r,onClose:t,innerRef:_,animate:o,contextId:n,onTransitionEnd:C})}),S=BZ(function(){return{innerRef:b,placeholder:E,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":n}}},[n,s,E,b]),O=v?v.dragging.draggableId:null,x=BZ(function(){return{droppableId:s,type:l,isUsingCloneFor:O}},[s,O,l]);return f().createElement(N2.Provider,{value:x},a(S,m),function(){if(!v)return null;var e=v.dragging,t=v.render,n=f().createElement(Q2,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(n,r){return t(n,r,e)});return Bs().createPortal(n,A())}())});J2.defaultProps=Z2;const e3=e=>{const{content:t,provided:n,snapshot:r}=e;return(0,p.jsx)("div",{ref:n.innerRef,className:Oo()("gv-list-item",{"gv-list-item-dragging":r.isDragging}),style:{...n.draggableProps.style},...n.draggableProps,...n.dragHandleProps,children:t})},t3=e=>{const t=(0,p.jsx)(_c,{children:e.children});return(0,p.jsx)("div",{ref:e.padded?null:e.bodyRef,...e.padded?{}:e.bodyProps,className:Oo()({"gv-panel-body":!0,[e.className]:!!e.className,"gv-panel-body-footer":!0===e.footer,"gv-panel-body-headless":!1===e.header}),style:e.style,children:e.padded?(0,p.jsx)("div",{...e.bodyProps,ref:e.bodyRef,style:{padding:"10px",height:"calc(100% - 20px)"},children:t}):t})},n3=e=>!!e&&"o"===e[0],r3=Ls.unstable_batchedUpdates||(e=>e()),o3=(Object.values,(e,t,n=1e-4)=>Math.abs(e-t)<n),i3=(e,t)=>!0===e||!(!e||!e[t]),a3=(e,t)=>"function"==typeof e?e(t):e,s3="_szhsinMenu",l3=(e,t)=>(t&&Object.keys(t).forEach(n=>{const r=e[n],o=t[n];e[n]="function"==typeof o&&r?(...e)=>{o(...e),r(...e)}:o}),e),c3=e=>{for(;e;){if(!(e=e.parentNode)||e===document.body||!e.parentNode)return;const{overflow:t,overflowX:n,overflowY:r}=getComputedStyle(e);if(/auto|scroll|overlay|hidden/.test(t+r+n))return e}};function u3(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function d3(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return n;return-1}const p3=({block:e,element:t,modifiers:n,className:r})=>(0,h.useMemo)(()=>{const o=t?`${e}__${t}`:e;let i=o;n&&Object.keys(n).forEach(e=>{const t=n[e];t&&(i+=` ${o}--${!0===t?e:`${e}-${t}`}`)});let a="function"==typeof r?r(n):r;return"string"==typeof a&&(a=a.trim(),a&&(i+=` ${a}`)),i},[e,t,n,r]),h3="szh-menu",f3=(0,h.createContext)(),g3=(0,h.createContext)({}),m3=(0,h.createContext)({}),v3=(0,h.createContext)({}),y3=(0,h.createContext)({}),A3=(0,h.createContext)({}),w3=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),b3=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),_3=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),C3=Object.freeze({FIRST:"first",LAST:"last"}),E3=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),S3="absolute",O3="menuitem",x3={"aria-hidden":!0,role:O3},D3=({className:e,containerRef:t,containerProps:n,children:r,isOpen:o,theming:i,transition:a,onClose:s})=>{const l=i3(a,"item");return(0,p.jsx)("div",{...l3({onKeyDown:({key:e})=>{e===w3.ESC&&a3(s,{key:e,reason:_3.CANCEL})},onBlur:e=>{o&&!e.currentTarget.contains(e.relatedTarget)&&a3(s,{reason:_3.BLUR})}},n),className:p3({block:"szh-menu-container",modifiers:(0,h.useMemo)(()=>({theme:i,itemTransition:l}),[i,l]),className:e}),style:{position:"absolute",...null==n?void 0:n.style},ref:t,children:r})},P3=()=>{let e,t=0;return{toggle:e=>{e?t++:t--,t=Math.max(t,0)},on:(n,r,o)=>{t?e||(e=setTimeout(()=>{e=0,r()},n)):null==o||o()},off:()=>{e&&(clearTimeout(e),e=0)}}},M3="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?h.useLayoutEffect:h.useEffect;function T3(e,t){"function"==typeof e?e(t):e.current=t}const R3=(e,t)=>(0,h.useMemo)(()=>e?t?n=>{T3(e,n),T3(t,n)}:e:t,[e,t]),I3=({ariaLabel:e,menuClassName:t,menuStyle:n,arrow:r,arrowProps:o={},anchorPoint:i,anchorRef:a,containerRef:s,containerProps:l,focusProps:c,externalRef:u,parentScrollingRef:d,align:f="start",direction:g="bottom",position:m="auto",overflow:v="visible",setDownOverflow:y,repositionFlag:A,captureFocus:w=!0,state:b,endTransition:_,isDisabled:C,menuItemFocus:E,gap:S=0,shift:O=0,children:x,onClose:D,...P})=>{const[M,T]=(0,h.useState)({x:-9999,y:-9999}),[R,I]=(0,h.useState)({}),[F,k]=(0,h.useState)(),[L,B]=(0,h.useState)(g),[N]=(0,h.useState)(P3),[j,U]=(0,h.useReducer)(e=>e+1,1),{transition:V,boundingBoxRef:H,boundingBoxPadding:G,rootMenuRef:W,rootAnchorRef:z,scrollNodesRef:$,reposition:K,viewScroll:Q,submenuCloseDelay:q}=(0,h.useContext)(A3),{submenuCtx:Y,reposSubmenu:X=A}=(0,h.useContext)(m3),Z=(0,h.useRef)(null),J=(0,h.useRef)(),ee=(0,h.useRef)(),te=(0,h.useRef)(!1),ne=(0,h.useRef)({width:0,height:0}),re=(0,h.useRef)(()=>{}),{hoverItem:oe,dispatch:ie,updateItems:ae}=((e,t)=>{const[n,r]=(0,h.useState)(),o=(0,h.useRef)({items:[],hoverIndex:-1,sorted:!1}).current,i=(0,h.useCallback)((e,n)=>{const{items:i}=o;if(e)if(n)i.push(e);else{const n=i.indexOf(e);n>-1&&(i.splice(n,1),e.contains(document.activeElement)&&(t.current.focus(),r()))}else o.items=[];o.hoverIndex=-1,o.sorted=!1},[o,t]),a=(0,h.useCallback)((t,n,i)=>{const{items:a,hoverIndex:s}=o,l=()=>{if(o.sorted)return;const t=e.current.querySelectorAll(".szh-menu__item");a.sort((e,n)=>d3(t,e)-d3(t,n)),o.sorted=!0};let c,u=-1;switch(t){case b3.RESET:break;case b3.SET:c=n;break;case b3.UNSET:c=e=>e===n?void 0:e;break;case b3.FIRST:l(),u=0,c=a[u];break;case b3.LAST:l(),u=a.length-1,c=a[u];break;case b3.SET_INDEX:l(),u=i,c=a[u];break;case b3.INCREASE:l(),u=s,u<0&&(u=a.indexOf(n)),u++,u>=a.length&&(u=0),c=a[u];break;case b3.DECREASE:l(),u=s,u<0&&(u=a.indexOf(n)),u--,u<0&&(u=a.length-1),c=a[u]}c||(u=-1),r(c),o.hoverIndex=u},[e,o]);return{hoverItem:n,dispatch:a,updateItems:i}})(Z,J),se=n3(b),le=i3(V,"open"),ce=i3(V,"close"),ue=$.current,de=(0,h.useCallback)(e=>{var t;const n=a?null==(t=a.current)?void 0:t.getBoundingClientRect():i?{left:i.x,right:i.x,top:i.y,bottom:i.y,width:0,height:0}:null;if(!n)return;ue.menu||(ue.menu=(H?H.current:c3(W.current))||window);const o=((e,t,n,r)=>{const o=t.current.getBoundingClientRect(),i=e.current.getBoundingClientRect(),a=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),s=(e=>{if("string"!=typeof e)return{top:0,right:0,bottom:0,left:0};const t=e.trim().split(/\s+/,4).map(parseFloat),n=isNaN(t[0])?0:t[0],r=isNaN(t[1])?n:t[1];return{top:n,right:r,bottom:isNaN(t[2])?n:t[2],left:isNaN(t[3])?r:t[3]}})(r),l=e=>e+i.left-a.left-s.left,c=e=>e+i.left+o.width-a.right+s.right,u=e=>e+i.top-a.top-s.top,d=e=>e+i.top+o.height-a.bottom+s.bottom;return{menuRect:o,containerRect:i,getLeftOverflow:l,getRightOverflow:c,getTopOverflow:u,getBottomOverflow:d,confineHorizontally:e=>{let t=l(e);if(t<0)e-=t;else{const n=c(e);n>0&&(t=l(e-=n),t<0&&(e-=t))}return e},confineVertically:e=>{let t=u(e);if(t<0)e-=t;else{const n=d(e);n>0&&(t=u(e-=n),t<0&&(e-=t))}return e}}})(s,Z,ue.menu,G);let{arrowX:l,arrowY:c,x:u,y:d,computedDirection:p}=(({arrow:e,align:t,direction:n,gap:r,shift:o,position:i,anchorRect:a,arrowRef:s,positionHelpers:l})=>{const{menuRect:c,containerRect:u}=l,d="left"===n||"right"===n;let p=d?r:o,h=d?o:r;if(e){const e=s.current;d?p+=e.offsetWidth:h+=e.offsetHeight}const f=a.left-u.left-c.width-p,g=a.right-u.left+p,m=a.top-u.top-c.height-h,v=a.bottom-u.top+h;let y,A;"end"===t?(y=a.right-u.left-c.width,A=a.bottom-u.top-c.height):"center"===t?(y=a.left-u.left-(c.width-a.width)/2,A=a.top-u.top-(c.height-a.height)/2):(y=a.left-u.left,A=a.top-u.top),y+=p,A+=h;const w={...l,anchorRect:a,placeLeftX:f,placeRightX:g,placeLeftorRightY:A,placeTopY:m,placeBottomY:v,placeToporBottomX:y,arrowRef:s,arrow:e,direction:n,position:i};switch(n){case"left":case"right":return(({anchorRect:e,containerRect:t,menuRect:n,placeLeftorRightY:r,placeLeftX:o,placeRightX:i,getLeftOverflow:a,getRightOverflow:s,confineHorizontally:l,confineVertically:c,arrowRef:u,arrow:d,direction:p,position:h})=>{let f,g,m,v=p,y=r;"initial"!==h&&(y=c(y),"anchor"===h&&(y=Math.min(y,e.bottom-t.top),y=Math.max(y,e.top-t.top-n.height))),"left"===v?(f=o,"initial"!==h&&(g=a(f),g<0&&(m=s(i),(m<=0||-g>m)&&(f=i,v="right")))):(f=i,"initial"!==h&&(m=s(f),m>0&&(g=a(o),(g>=0||-g<m)&&(f=o,v="left")))),"auto"===h&&(f=l(f));const A=d?(({arrowRef:e,menuY:t,anchorRect:n,containerRect:r,menuRect:o})=>{let i=n.top-r.top-t+n.height/2;const a=1.25*e.current.offsetHeight;return i=Math.max(a,i),i=Math.min(i,o.height-a),i})({menuY:y,arrowRef:u,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowY:A,x:f,y,computedDirection:v}})(w);default:return(({anchorRect:e,containerRect:t,menuRect:n,placeToporBottomX:r,placeTopY:o,placeBottomY:i,getTopOverflow:a,getBottomOverflow:s,confineHorizontally:l,confineVertically:c,arrowRef:u,arrow:d,direction:p,position:h})=>{let f,g,m,v="top"===p?"top":"bottom",y=r;"initial"!==h&&(y=l(y),"anchor"===h&&(y=Math.min(y,e.right-t.left),y=Math.max(y,e.left-t.left-n.width))),"top"===v?(f=o,"initial"!==h&&(g=a(f),g<0&&(m=s(i),(m<=0||-g>m)&&(f=i,v="bottom")))):(f=i,"initial"!==h&&(m=s(f),m>0&&(g=a(o),(g>=0||-g<m)&&(f=o,v="top")))),"auto"===h&&(f=c(f));const A=d?(({arrowRef:e,menuX:t,anchorRect:n,containerRect:r,menuRect:o})=>{let i=n.left-r.left-t+n.width/2;const a=1.25*e.current.offsetWidth;return i=Math.max(a,i),i=Math.min(i,o.width-a),i})({menuX:y,arrowRef:u,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowX:A,x:y,y:f,computedDirection:v}})(w)}})({arrow:r,align:f,direction:g,gap:S,shift:O,position:m,anchorRect:n,arrowRef:ee,positionHelpers:o});const{menuRect:h}=o;let y=h.height;if(!e&&"visible"!==v){const{getTopOverflow:e,getBottomOverflow:t}=o;let n,r;const i=ne.current.height,a=t(d);if(a>0||o3(a,0)&&o3(y,i))n=y-a,r=a;else{const t=e(d);(t<0||o3(t,0)&&o3(y,i))&&(n=y+t,r=0-t,n>=0&&(d-=t))}n>=0?(y=n,k({height:n,overflowAmt:r})):k()}r&&I({x:l,y:c}),T({x:u,y:d}),B(p),ne.current={width:h.width,height:y}},[r,f,G,g,S,O,m,v,i,a,s,H,W,ue]);M3(()=>{se&&(de(),te.current&&U()),te.current=se,re.current=de},[se,de,X]),M3(()=>{F&&!y&&(Z.current.scrollTop=0)},[F,y]),M3(()=>ae,[ae]),(0,h.useEffect)(()=>{let{menu:e}=ue;if(!se||!e)return;if(e=e.addEventListener?e:window,!ue.anchors){ue.anchors=[];let t=c3(z&&z.current);for(;t&&t!==e;)ue.anchors.push(t),t=c3(t)}let t=Q;if(ue.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const n=()=>{"auto"===t?r3(()=>de(!0)):a3(D,{reason:_3.SCROLL})},r=ue.anchors.concat("initial"!==Q?e:[]);return r.forEach(e=>e.addEventListener("scroll",n)),()=>r.forEach(e=>e.removeEventListener("scroll",n))},[z,ue,se,D,Q,de]);const pe=!!F&&F.overflowAmt>0;(0,h.useEffect)(()=>{if(pe||!se||!d)return;const e=()=>r3(de),t=d.current;return t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)},[se,pe,d,de]),(0,h.useEffect)(()=>{if("function"!=typeof ResizeObserver||"initial"===K)return;const e=new ResizeObserver(([e])=>{const{borderBoxSize:t,target:n}=e;let r,o;if(t){const{inlineSize:e,blockSize:n}=t[0]||t;r=e,o=n}else{const e=n.getBoundingClientRect();r=e.width,o=e.height}0!==r&&0!==o&&(o3(r,ne.current.width,1)&&o3(o,ne.current.height,1)||(0,Ls.flushSync)(()=>{re.current(),U()}))}),t=Z.current;return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)},[K]),(0,h.useEffect)(()=>{if(!se)return ie(b3.RESET),void(ce||k());const{position:e,alwaysUpdate:t}=E||{},n=()=>{e===C3.FIRST?ie(b3.FIRST):e===C3.LAST?ie(b3.LAST):e>=-1&&ie(b3.SET_INDEX,void 0,e)};if(t)n();else if(w){const e=setTimeout(()=>{const e=Z.current;e&&!e.contains(document.activeElement)&&(J.current.focus(),n())},le?170:100);return()=>clearTimeout(e)}},[se,le,ce,w,E,ie]);const he=(0,h.useMemo)(()=>({isParentOpen:se,submenuCtx:N,dispatch:ie,updateItems:ae}),[se,N,ie,ae]);let fe,ge;F&&(y?ge=F.overflowAmt:fe=F.height);const me=(0,h.useMemo)(()=>({reposSubmenu:j,submenuCtx:N,overflow:v,overflowAmt:ge,parentMenuRef:Z,parentDir:L}),[j,N,v,ge,L]),ve=fe>=0?{maxHeight:fe,overflow:v}:void 0,ye=(0,h.useMemo)(()=>({state:b,dir:L}),[b,L]),Ae=(0,h.useMemo)(()=>({dir:L}),[L]),we=p3({block:h3,element:"arrow",modifiers:Ae,className:o.className}),be=(0,p.jsxs)("ul",{role:"menu","aria-label":e,...u3(C),...l3({onPointerEnter:null==Y?void 0:Y.off,onPointerMove:e=>{e.stopPropagation(),N.on(q,()=>{ie(b3.RESET),J.current.focus()})},onPointerLeave:e=>{e.target===e.currentTarget&&N.off()},onKeyDown:e=>{switch(e.key){case w3.HOME:ie(b3.FIRST);break;case w3.END:ie(b3.LAST);break;case w3.UP:ie(b3.DECREASE,oe);break;case w3.DOWN:ie(b3.INCREASE,oe);break;case w3.SPACE:return void(e.target&&-1!==e.target.className.indexOf(h3)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===b&&k(),a3(_)}},P),ref:R3(u,Z),className:p3({block:h3,modifiers:ye,className:t}),style:{...n,...ve,margin:0,display:"closed"===b?"none":void 0,position:S3,left:M.x,top:M.y},children:[(0,p.jsx)("li",{tabIndex:-1,style:{position:S3,left:0,top:0,display:"block",outline:"none"},ref:J,...x3,...c}),r&&(0,p.jsx)("li",{...x3,...o,className:we,style:{display:"block",position:S3,left:R.x,top:R.y,...o.style},ref:ee}),(0,p.jsx)(m3.Provider,{value:me,children:(0,p.jsx)(g3.Provider,{value:he,children:(0,p.jsx)(f3.Provider,{value:oe,children:a3(x,ye)})})})]});return l?(0,p.jsx)(D3,{...l,isOpen:se,children:be}):be},F3=(0,h.forwardRef)(function({"aria-label":e,className:t,containerProps:n,initialMounted:r,unmountOnClose:o,transition:i,transitionTimeout:a,boundingBoxRef:s,boundingBoxPadding:l,reposition:c="auto",submenuOpenDelay:u=300,submenuCloseDelay:d=150,viewScroll:f="initial",portal:g,theming:m,onItemClick:v,...y},A){const w=(0,h.useRef)(null),b=(0,h.useRef)({}),{anchorRef:_,state:C,onClose:E}=y,S=(0,h.useMemo)(()=>({initialMounted:r,unmountOnClose:o,transition:i,transitionTimeout:a,boundingBoxRef:s,boundingBoxPadding:l,rootMenuRef:w,rootAnchorRef:_,scrollNodesRef:b,reposition:c,viewScroll:f,submenuOpenDelay:u,submenuCloseDelay:d}),[r,o,i,a,_,s,l,c,f,u,d]),O=(0,h.useMemo)(()=>({handleClick(e,t){e.stopPropagation||a3(v,e);let n=e.keepOpen;void 0===n&&(n=t&&e.key===w3.SPACE),n||a3(E,{value:e.value,key:e.key,reason:_3.CLICK})},handleClose(e){a3(E,{key:e,reason:_3.CLICK})}}),[v,E]);if(!C)return null;const x=(0,p.jsx)(A3.Provider,{value:S,children:(0,p.jsx)(v3.Provider,{value:O,children:(0,p.jsx)(I3,{...y,ariaLabel:e||"Menu",externalRef:A,containerRef:w,containerProps:{className:t,containerRef:w,containerProps:n,theming:m,transition:i,onClose:E}})})});return!0===g&&"undefined"!=typeof document?(0,Ls.createPortal)(x,document.body):g?g.target?(0,Ls.createPortal)(x,g.target):g.stablePosition?null:x:x}),k3=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],L3=e=>({_s:e,status:k3[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),B3=e=>e?6:5,N3=(...e)=>setTimeout(...e),j3=(e,t,n,r,o)=>{clearTimeout(r.current);const i=L3(e);t(i),n.current=i,o&&o({current:i})},U3=(0,h.forwardRef)(function({"aria-label":e,captureFocus:t,initialOpen:n,menuButton:r,instanceRef:o,onMenuChange:i,...a},s){const[l,c,u]=(e=>{const[t,n]=(({initialOpen:e,initialMounted:t,unmountOnClose:n,transition:r,transitionTimeout:o=500}={})=>{const[{status:i},a,s]=(({enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:o,initialEntered:i,mountOnEnter:a,unmountOnExit:s,onStateChange:l}={})=>{const[c,u]=(0,h.useState)(()=>L3(i?2:B3(a))),d=(0,h.useRef)(c),p=(0,h.useRef)(0),[f,g]=(e=>"object"==typeof e?[e.enter,e.exit]:[e,e])(o),m=(0,h.useCallback)(()=>{const e=((e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return B3(t)}})(d.current._s,s);e&&j3(e,u,d,p,l)},[l,s]);return[c,(0,h.useCallback)(o=>{const i=e=>{switch(j3(e,u,d,p,l),e){case 1:f>=0&&(p.current=N3(m,f));break;case 4:g>=0&&(p.current=N3(m,g));break;case 0:case 3:p.current=((e,t)=>N3(()=>{isNaN(document.body.offsetTop)||e(t+1)},0))(i,e)}},a=d.current.isEnter;"boolean"!=typeof o&&(o=!a),o?!a&&i(e?n?0:1:2):a&&i(t?r?3:4:B3(s))},[m,l,e,t,n,r,f,g,s]),m]})({initialEntered:e,mountOnEnter:!t,unmountOnExit:n,timeout:o,enter:i3(r,"open"),exit:i3(r,"close")});return[{state:E3[i],endTransition:s},a]})(e),[r,o]=(0,h.useState)();return[{menuItemFocus:r,...t},n,(e,t)=>{o({position:e,alwaysUpdate:t}),n(!0)}]})(a),{state:d}=l,f=n3(d),g=(0,h.useRef)(null),m=(e=>{const[t]=(0,h.useState)({});return{onMouseDown:()=>{t.v=e&&"closed"!==e},onClick:e=>t.v?t.v=!1:((e,t)=>u(t.detail?void 0:C3.FIRST))(0,e)}})(d),v=(0,h.useCallback)(e=>{c(!1),e.key&&g.current.focus()},[c]),y=a3(r,{open:f});if(!y||!y.type)throw new Error("Menu requires a menuButton prop.");const A={ref:R3(y.ref,g),...l3({onKeyDown:e=>{switch(e.key){case w3.UP:u(C3.LAST);break;case w3.DOWN:u(C3.FIRST);break;default:return}e.preventDefault()},...m},y.props)};"MenuButton"===y.type[s3]&&(A.isOpen=f);const w=(0,h.cloneElement)(y,A);return((e,t)=>{const n=(0,h.useRef)(t);(0,h.useEffect)(()=>{n.current!==t&&a3(e,{open:t}),n.current=t},[e,t])})(i,f),(0,h.useImperativeHandle)(o,()=>({openMenu:u,closeMenu:()=>c(!1)})),(0,p.jsxs)(h.Fragment,{children:[w,(0,p.jsx)(F3,{...a,...l,"aria-label":e||("string"==typeof y.props.children?y.props.children:"Menu"),anchorRef:g,ref:s,onClose:v})]})}),V3=(()=>{const e=(0,h.memo)(function({className:e,value:t,href:n,type:r,checked:o,disabled:i,children:a,onClick:s,isHovering:l,itemRef:c,externalRef:u,...d}){const f=!!i,{setHover:g,...m}=((e,t,n,r)=>{const{submenuCloseDelay:o}=(0,h.useContext)(A3),{isParentOpen:i,submenuCtx:a,dispatch:s,updateItems:l}=(0,h.useContext)(g3),c=()=>{!n&&!r&&s(b3.SET,e.current)},u=()=>{!r&&s(b3.UNSET,e.current)};return((e,t,n)=>{M3(()=>{if(e)return;const r=t.current;return n(r,!0),()=>{n(r)}},[e,t,n])})(r,e,l),(0,h.useEffect)(()=>{n&&i&&t.current&&t.current.focus()},[t,n,i]),{setHover:c,onBlur:e=>{n&&!e.currentTarget.contains(e.relatedTarget)&&u()},onPointerMove:e=>{r||(e.stopPropagation(),a.on(o,c,c))},onPointerLeave:(e,t)=>{a.off(),!t&&u()}}})(c,c,l,f),v=(0,h.useContext)(v3),y=(0,h.useContext)(y3),A="radio"===r,w="checkbox"===r,b=!(!n||f||A||w),_=A?y.value===t:!!w&&!!o,C=e=>{if(f)return e.stopPropagation(),void e.preventDefault();const n={value:t,syntheticEvent:e};void 0!==e.key&&(n.key=e.key),w&&(n.checked=!_),A&&(n.name=y.name),a3(s,n),A&&a3(y.onRadioChange,n),v.handleClick(n,w||A)},E=(0,h.useMemo)(()=>({type:r,disabled:f,hover:l,checked:_,anchor:b}),[r,f,l,_,b]),S=l3({...m,onPointerDown:g,onKeyDown:e=>{if(l)switch(e.key){case w3.ENTER:e.preventDefault();case w3.SPACE:b?c.current.click():C(e)}},onClick:C},d),O={role:A?"menuitemradio":w?"menuitemcheckbox":O3,"aria-checked":A||w?_:void 0,...u3(f,l),...S,ref:R3(u,c),className:p3({block:h3,element:"item",modifiers:E,className:e}),children:(0,h.useMemo)(()=>a3(a,E),[a,E])};return b?(0,p.jsx)("li",{role:"presentation",children:(0,p.jsx)("a",{href:n,...O})}):(0,p.jsx)("li",{...O})}),t=(0,h.forwardRef)((t,n)=>{const r=(0,h.useRef)(null);return(0,p.jsx)(e,{...t,itemRef:r,externalRef:n,isHovering:(0,h.useContext)(f3)===r.current})});return t.displayName="WithHovering(MenuItem)",t})(),H3="YQmpG",G3=e=>(0,p.jsx)(V3,{className:Oo()(e.className,"ZUAPD","gv-menu-item",{"gv-menu-item--disabled":e.disabled,[H3]:e.disabled}),...e}),W3=((e,t)=>Object.defineProperty(t,s3,{value:"MenuButton"}))(0,(0,h.forwardRef)(function({className:e,isOpen:t,disabled:n,children:r,...o},i){const a=(0,h.useMemo)(()=>({open:t}),[t]);return(0,p.jsx)("button",{"aria-haspopup":!0,"aria-expanded":t,"aria-disabled":n||void 0,type:"button",disabled:n,...o,ref:i,className:p3({block:"szh-menu-button",modifiers:a,className:e}),children:r})})),z3=(0,h.forwardRef)((e,t)=>(0,p.jsx)(W3,{ref:t,...e,className:Oo()(e.className,"Pxjhn","gv-button","gv-button-secondary","gv-menu-button")})),$3=(0,h.memo)((0,h.forwardRef)(function({className:e,...t},n){return(0,p.jsx)("li",{role:"separator",...t,ref:n,className:p3({block:h3,element:"divider",className:e})})})),K3=e=>(0,p.jsx)($3,{...e,className:Oo()(e.className,"G0Mx2","gv-menu-divider")}),Q3=e=>{const t=(0,h.useRef)();return(0,p.jsx)(U3,{ref:t,align:"end",menuClassName:Oo()(e.className,"j4drA","gv-menu"),...e})};Q3.GVMenuItem=G3,Q3.GVMenuButton=z3,Q3.GVMenuDivider=K3;var q3=u(81936),Y3=u.n(q3);function X3(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&&Tg(e,t)}function Z3(e,t){if(t&&("object"==Oc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ig(e)}function J3(e){return J3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},J3(e)}var e5=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();const t5=function(e){function t(e,r,l,c,p){for(var h,f,g,m,w,_=0,C=0,E=0,S=0,O=0,R=0,F=g=h=0,L=0,B=0,N=0,j=0,U=l.length,V=U-1,H="",G="",W="",z="";L<U;){if(f=l.charCodeAt(L),L===V&&0!==C+S+E+_&&(0!==C&&(f=47===C?10:47),S=E=_=0,U++,V++),0===C+S+E+_){if(L===V&&(0<B&&(H=H.replace(d,"")),0<H.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:H+=l.charAt(L)}f=59}switch(f){case 123:for(h=(H=H.trim()).charCodeAt(0),g=1,j=++L;L<U;){switch(f=l.charCodeAt(L)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(L+1)){case 42:case 47:e:{for(F=L+1;F<V;++F)switch(l.charCodeAt(F)){case 47:if(42===f&&42===l.charCodeAt(F-1)&&L+2!==F){L=F+1;break e}break;case 10:if(47===f){L=F+1;break e}}L=F}}break;case 91:f++;case 40:f++;case 34:case 39:for(;L++<V&&l.charCodeAt(L)!==f;);}if(0===g)break;L++}if(g=l.substring(j,L),0===h&&(h=(H=H.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<B&&(H=H.replace(d,"")),f=H.charCodeAt(1)){case 100:case 109:case 115:case 45:B=r;break;default:B=T}if(j=(g=t(r,B,g,f,p+1)).length,0<I&&(w=s(3,g,B=n(T,H,N),r,D,x,j,f,p,c),H=B.join(""),void 0!==w&&0===(j=(g=w.trim()).length)&&(f=0,g="")),0<j)switch(f){case 115:H=H.replace(b,a);case 100:case 109:case 45:g=H+"{"+g+"}";break;case 107:g=(H=H.replace(v,"$1 $2"))+"{"+g+"}",g=1===M||2===M&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=H+g,112===c&&(G+=g,g="")}else g=""}else g=t(r,n(r,H,N),g,c,p+1);W+=g,g=N=B=F=h=0,H="",f=l.charCodeAt(++L);break;case 125:case 59:if(1<(j=(H=(0<B?H.replace(d,""):H).trim()).length))switch(0===F&&(h=H.charCodeAt(0),45===h||96<h&&123>h)&&(j=(H=H.replace(" ",":")).length),0<I&&void 0!==(w=s(1,H,r,e,D,x,G.length,c,p,c))&&0===(j=(H=w.trim()).length)&&(H="\0\0"),h=H.charCodeAt(0),f=H.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){z+=H+l.charAt(L);break}default:58!==H.charCodeAt(j-1)&&(G+=o(H,h,f,H.charCodeAt(2)))}N=B=F=h=0,H="",f=l.charCodeAt(++L)}}switch(f){case 13:case 10:47===C?C=0:0===1+h&&107!==c&&0<H.length&&(B=1,H+="\0"),0<I*k&&s(0,H,r,e,D,x,G.length,c,p,c),x=1,D++;break;case 59:case 125:if(0===C+S+E+_){x++;break}default:switch(x++,m=l.charAt(L),f){case 9:case 32:if(0===S+_+C)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===S+C+_&&(B=N=1,m="\f"+m);break;case 108:if(0===S+C+_+P&&0<F)switch(L-F){case 2:112===O&&58===l.charCodeAt(L-3)&&(P=O);case 8:111===R&&(P=R)}break;case 58:0===S+C+_&&(F=L);break;case 44:0===C+E+S+_&&(B=1,m+="\r");break;case 34:case 39:0===C&&(S=S===f?0:0===S?f:S);break;case 91:0===S+C+E&&_++;break;case 93:0===S+C+E&&_--;break;case 41:0===S+C+_&&E--;break;case 40:0===S+C+_&&(0===h&&(2*O+3*R==533||(h=1)),E++);break;case 64:0===C+E+S+_+F+g&&(g=1);break;case 42:case 47:if(!(0<S+_+E))switch(C){case 0:switch(2*f+3*l.charCodeAt(L+1)){case 235:C=47;break;case 220:j=L,C=42}break;case 42:47===f&&42===O&&j+2!==L&&(33===l.charCodeAt(j+2)&&(G+=l.substring(j,L+1)),m="",C=0)}}0===C&&(H+=m)}R=O,O=f,L++}if(0<(j=G.length)){if(B=r,0<I&&void 0!==(w=s(2,G,B,e,D,x,j,c,p,c))&&0===(G=w).length)return z+G+W;if(G=B.join(",")+"{"+G+"}",0!==M*P){switch(2!==M||i(G,2)||(P=0),P){case 111:G=G.replace(A,":-moz-$1")+G;break;case 112:G=G.replace(y,"::-webkit-input-$1")+G.replace(y,"::-moz-$1")+G.replace(y,":-ms-input-$1")+G}P=0}}return z+G+W}function n(e,t,n){var o=t.trim().split(g);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){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 o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===M||2===M&&i(l,1)?"-webkit-"+l+l:l}if(0===M||2===M&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(O,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return h.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(w,"tb");break;case 232:l=a.replace(w,"tb-rl");break;case 220:l=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),F(2!==t?r:r.replace(E,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,l,u){for(var d,p=0,h=t;p<I;++p)switch(d=R[p].call(c,e,h,n,r,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(F=null,e?"function"!=typeof e?M=1:(M=2,F=e):M=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<I){var o=s(-1,n,r,r,D,x,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(T,r,n,0,0);return 0<I&&void 0!==(o=s(-2,i,r,r,D,x,i.length,0,0,0))&&(i=o),P=0,x=D=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */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,A=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,b=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,C=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,x=1,D=1,P=0,M=1,T=[],R=[],I=0,F=null,k=0;return c.use=function e(t){switch(t){case void 0:case null:I=R.length=0;break;default:if("function"==typeof t)R[I++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else k=0|!!t}return e},c.set=l,void 0!==e&&l(e),c};var n5="/*|*/",r5=n5+"}";function o5(e){e&&i5.current.insert(e+"}")}var i5={current:null},a5=function(e,t,n,r,o,i,a,s,l,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return i5.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+n5;break;case 3:switch(s){case 102:case 112:return i5.current.insert(n[0]+t),"";default:return t+(0===c?n5:"")}case-2:t.split(r5).forEach(o5)}};function s5(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "}),r}var l5=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0),o=o.next}while(void 0!==o)}};const c5=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},u5={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 d5=/[A-Z]|^ms/g,p5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,h5=function(e){return 45===e.charCodeAt(1)},f5=function(e){return null!=e&&"boolean"!=typeof e},g5=function(){var e={};return function(t){return void 0===e[t]&&(e[t]=function(e){return h5(e)?e:e.replace(d5,"-$&").toLowerCase()}(t)),e[t]}}(),m5=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(p5,function(e,t,n){return y5={name:t,styles:n,next:y5},t})}return 1===u5[e]||h5(e)||"number"!=typeof t||0===t?t:t+"px"};function v5(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return y5={name:n.name,styles:n.styles,next:y5},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)y5={name:o.name,styles:o.styles,next:y5},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=v5(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":f5(a)&&(r+=g5(i)+":"+m5(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=v5(e,t,a,!1);switch(i){case"animation":case"animationName":r+=g5(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)f5(a[l])&&(r+=g5(i)+":"+m5(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=y5,a=n(e);return y5=i,v5(e,t,a,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var y5,A5=/label:\s*([^\s;\n{]+)\s*;/g,w5=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";y5=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=v5(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=v5(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);A5.lastIndex=0;for(var s,l="";null!==(s=A5.exec(o));)l+="-"+s[1];return{name:c5(o)+l,styles:o,next:y5}},b5=Object.prototype.hasOwnProperty,_5=(0,h.createContext)("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,o=new t5(t),i={};r=e.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach(function(e){i[e]=!0}),e.parentNode!==r&&r.appendChild(e)}),o.use(e.stylisPlugins)(a5),a=function(e,t,n,r){var i=t.name;i5.current=n,o(e,t.styles),r&&(l.inserted[i]=!0)};var l={key:n,sheet:new e5({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return l}():null),C5=(0,h.createContext)({}),E5=(_5.Provider,function(e){return(0,h.forwardRef)(function(t,n){return(0,h.createElement)(_5.Consumer,null,function(r){return e(t,r,n)})})}),S5="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",O5=function(){return null},x5=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var i=t[S5],a=[o],s="";"string"==typeof t.className?s=s5(e.registered,a,t.className):null!=t.className&&(s=t.className+" ");var l=w5(a);l5(e,l,"string"==typeof i),s+=e.key+"-"+l.name;var c={};for(var u in t)b5.call(t,u)&&"css"!==u&&u!==S5&&(c[u]=t[u]);c.ref=r,c.className=s;var d=(0,h.createElement)(i,c),p=(0,h.createElement)(O5,null);return(0,h.createElement)(h.Fragment,null,p,d)},D5=E5(function(e,t,n){return"function"==typeof e.css?(0,h.createElement)(C5.Consumer,null,function(r){return x5(t,e,r,n)}):x5(t,e,null,n)});const P5=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w5(t)};var M5=function(e,t){var n=arguments;if(null==t||!b5.call(t,"css"))return h.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=D5,o[1]=function(e,t){var n={};for(var r in t)b5.call(t,r)&&(n[r]=t[r]);return n[S5]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return h.createElement.apply(null,o)},T5=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o},R5=function(){return null},I5=E5(function(e,t){return(0,h.createElement)(C5.Consumer,null,function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=w5(n,t.registered);return l5(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return function(e,t,n){var r=[],o=s5(e,r,n);return r.length<2?n:o+t(r)}(t.registered,r,T5(n))},theme:n},i=e.children(o),a=(0,h.createElement)(R5,null);return(0,h.createElement)(h.Fragment,null,a,i)})}),F5=u(21283),k5=function(){};function L5(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function B5(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(L5(e,o)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var N5=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Oc(e)&&null!==e?[e]:[]};function j5(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function U5(e){return j5(e)?window.pageYOffset:e.scrollTop}function V5(e,t){j5(e)?window.scrollTo(0,t):e.scrollTop=t}function H5(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k5,o=U5(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);V5(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function G5(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function W5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W5(Object(n),!0).forEach(function(t){Tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $5(e){var t=function(){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}}();return function(){var n,r=J3(e);if(t){var o=J3(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z3(this,n)}}var K5=function(e){return"auto"===e?"bottom":e},Q5=(0,h.createContext)({getPortalPlacement:null}),q5=function(e){X3(n,e);var t=$5(n);function n(){var e;iC(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var c="fixed"===a,u=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,h=d.height,f=d.top,g=n.offsetParent.getBoundingClientRect().top,m=window.innerHeight,v=U5(l),y=parseInt(getComputedStyle(n).marginBottom,10),A=parseInt(getComputedStyle(n).marginTop,10),w=g-A,b=m-f,_=w+v,C=u-v-f,E=p-m+v+y,S=v+f-A,O=160;switch(o){case"auto":case"bottom":if(b>=h)return{placement:"bottom",maxHeight:t};if(C>=h&&!a)return i&&H5(l,E,O),{placement:"bottom",maxHeight:t};if(!a&&C>=r||a&&b>=r)return i&&H5(l,E,O),{placement:"bottom",maxHeight:a?b-y:C-y};if("auto"===o||a){var x=t,D=a?w:_;return D>=r&&(x=Math.min(D-y-s.controlHeight,t)),{placement:"top",maxHeight:x}}if("bottom"===o)return V5(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(_>=h&&!a)return i&&H5(l,S,O),{placement:"top",maxHeight:t};if(!a&&_>=r||a&&w>=r){var P=t;return(!a&&_>=r||a&&w>=r)&&(P=a?w-A:_-A),i&&H5(l,S,O),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!c,isFixedPosition:c,theme:l}),d=e.context.getPortalPlacement;d&&d(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||K5(t);return z5(z5({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Mg(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(h.Component);q5.contextType=Q5;var Y5=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},X5=Y5,Z5=Y5,J5=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return M5("div",Sc({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};J5.defaultProps={children:"No options"};var e4=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return M5("div",Sc({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};e4.defaultProps={children:"Loading..."};var t4=function(e){X3(n,e);var t=$5(n);function n(){var e;iC(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==K5(e.props.menuPlacement)&&e.setState({placement:n})},e}return Mg(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,i=e.menuPosition,a=e.getStyles,s="fixed"===i;if(!t&&!s||!r)return null;var l=this.state.placement||K5(o),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),u=s?0:window.pageYOffset,d=c[l]+u,p=M5("div",{css:a("menuPortal",{offset:d,position:i,rect:c})},n);return M5(Q5.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Ls.createPortal)(p,t):p)}}]),n}(h.Component),n4=Array.isArray,r4=Object.keys,o4=Object.prototype.hasOwnProperty;function i4(e,t){if(e===t)return!0;if(e&&t&&"object"==Oc(e)&&"object"==Oc(t)){var n,r,o,i=n4(e),a=n4(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!==n--;)if(!i4(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=r4(e);if((r=d.length)!==r4(t).length)return!1;for(n=r;0!==n--;)if(!o4.call(t,d[n]))return!1;for(n=r;0!==n--;)if(!("_owner"===(o=d[n])&&e.$$typeof||i4(e[o],t[o])))return!1;return!0}return e!=e&&t!=t}function a4(e,t){try{return i4(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function s4(){var e=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]);return s4=function(){return e},e}var l4={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},c4=function(e){var t=e.size,n=Ec(e,["size"]);return M5("svg",Sc({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:l4},n))},u4=function(e){return M5(c4,Sc({size:20},e),M5("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},d4=function(e){return M5(c4,Sc({size:20},e),M5("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},p4=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},h4=p4,f4=p4,g4=function(){var e=P5.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(s4()),m4=function(e){var t=e.delay,n=e.offset;return M5("span",{css:P5({animation:"".concat(g4," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},v4=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return M5("div",Sc({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),M5(m4,{delay:0,offset:i}),M5(m4,{delay:160,offset:!0}),M5(m4,{delay:320,offset:!i}))};function y4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y4(Object(n),!0).forEach(function(t){Tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w4(Object(n),!0).forEach(function(t){Tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}v4.defaultProps={size:4};var _4=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function C4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C4(Object(n),!0).forEach(function(t){Tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var S4=function(e){var t=e.children,n=e.innerProps;return M5("div",n,t)},O4=S4,x4=S4,D4=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,d=r.Container,p=r.Label,h=r.Remove;return M5(I5,null,function(r){var f=r.css,g=r.cx;return M5(d,{data:i,innerProps:E4(E4({},s),{},{className:g(f(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))}),selectProps:u},M5(p,{data:i,innerProps:{className:g(f(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:u},t),M5(h,{data:i,innerProps:E4({className:g(f(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:u}))})};function P4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P4(Object(n),!0).forEach(function(t){Tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}D4.defaultProps={cropWithEllipsis:!0};for(var T4={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return M5("div",Sc({},i,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||M5(u4,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,s=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return M5("div",Sc({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":c},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return M5("div",Sc({},i,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||M5(d4,null))},DownChevron:d4,CrossIcon:u4,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,s=e.label,l=e.theme,c=e.selectProps;return M5("div",{css:o("group",e),className:r({group:!0},n)},M5(i,Sc({},a,{selectProps:c,theme:l,getStyles:o,cx:r}),s),M5("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,i=(e.selectProps,Ec(e,["className","cx","getStyles","theme","selectProps"]));return M5("div",Sc({css:r("groupHeading",A4({theme:o},i)),className:n({"group-heading":!0},t)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return M5("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return M5("span",Sc({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,i=e.isHidden,a=e.isDisabled,s=e.theme,l=(e.selectProps,Ec(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return M5("div",{css:r("input",b4({theme:s},l))},M5(F5.A,Sc({className:n({input:!0},t),inputRef:o,inputStyle:_4(i),disabled:a},l)))},LoadingIndicator:v4,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return M5("div",Sc({css:o("menu",e),className:r({menu:!0},n)},a,{ref:i}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isMulti,a=e.innerRef,s=e.innerProps;return M5("div",Sc({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":i},n),ref:a},s),t)},MenuPortal:t4,LoadingMessage:e4,NoOptionsMessage:J5,MultiValue:D4,MultiValueContainer:O4,MultiValueLabel:x4,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return M5("div",n,t||M5(u4,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,s=e.isSelected,l=e.innerRef,c=e.innerProps;return M5("div",Sc({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:l},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return M5("div",Sc({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,s=e.isRtl;return M5("div",Sc({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return M5("div",Sc({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,i=e.getStyles,a=e.hasValue;return M5("div",{css:i("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},t)}},R4=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],I4=new RegExp("["+R4.map(function(e){return e.letters}).join("")+"]","g"),F4={},k4=0;k4<R4.length;k4++)for(var L4=R4[k4],B4=0;B4<L4.letters.length;B4++)F4[L4.letters[B4]]=L4.base;var N4=function(e){return e.replace(I4,function(e){return F4[e]})};function j4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var U4=function(e){return e.replace(/^\s+|\s+$/g,"")},V4=function(e){return"".concat(e.label," ").concat(e.value)},H4={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},G4=function(e){return M5("span",Sc({css:H4},e))};function W4(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,Ec(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return M5("input",Sc({ref:t},n,{css:P5({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var z4=function(e){X3(o,e);var t,n,r=(t=o,n=function(){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(){var e,r=J3(t);if(n){var o=J3(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Z3(this,e)});function o(){return iC(this,o),r.apply(this,arguments)}return Mg(o,[{key:"componentDidMount",value:function(){this.props.innerRef((0,Ls.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),o}(h.Component),$4=["boxSizing","height","overflow","paddingRight","position"],K4={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Q4(e){e.preventDefault()}function q4(e){e.stopPropagation()}function Y4(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function X4(){return"ontouchstart"in window||navigator.maxTouchPoints}var Z4=!(!window.document||!window.document.createElement),J4=0,e6=function(e){X3(o,e);var t,n,r=(t=o,n=function(){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(){var e,r=J3(t);if(n){var o=J3(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Z3(this,e)});function o(){var e;iC(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return Mg(o,[{key:"componentDidMount",value:function(){var e=this;if(Z4){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;if(n&&$4.forEach(function(t){var n=i&&i[t];e.originalStyles[t]=n}),n&&J4<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,l=window.innerWidth-s+a||0;Object.keys(K4).forEach(function(e){var t=K4[e];i&&(i[e]=t)}),i&&(i.paddingRight="".concat(l,"px"))}o&&X4()&&(o.addEventListener("touchmove",Q4,this.listenerOptions),r&&(r.addEventListener("touchstart",Y4,this.listenerOptions),r.addEventListener("touchmove",q4,this.listenerOptions))),J4+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Z4){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;J4=Math.max(J4-1,0),n&&J4<1&&$4.forEach(function(t){var n=e.originalStyles[t];i&&(i[t]=n)}),o&&X4()&&(o.removeEventListener("touchmove",Q4,this.listenerOptions),r&&(r.removeEventListener("touchstart",Y4,this.listenerOptions),r.removeEventListener("touchmove",q4,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),o}(h.Component);e6.defaultProps={accountForScrollbars:!0};var t6={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},n6=function(e){X3(o,e);var t,n,r=(t=o,n=function(){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(){var e,r=J3(t);if(n){var o=J3(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Z3(this,e)});function o(){var e;iC(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return Mg(o,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?M5("div",null,M5("div",{onClick:this.blurSelectInput,css:t6}),M5(z4,{innerRef:this.getScrollTarget},t),r?M5(e6,{touchScrollTarget:r}):null):t}}]),o}(h.PureComponent),r6=function(e){X3(o,e);var t,n,r=(t=o,n=function(){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(){var e,r=J3(t);if(n){var o=J3(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Z3(this,e)});function o(){var e;iC(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,o=r.onBottomArrive,i=r.onBottomLeave,a=r.onTopArrive,s=r.onTopLeave,l=e.scrollTarget,c=l.scrollTop,u=l.scrollHeight,d=l.clientHeight,p=e.scrollTarget,h=n>0,f=u-d-c,g=!1;f>n&&e.isBottom&&(i&&i(t),e.isBottom=!1),h&&e.isTop&&(s&&s(t),e.isTop=!1),h&&n>f?(o&&!e.isBottom&&o(t),p.scrollTop=u,g=!0,e.isBottom=!0):!h&&-n>c&&(a&&!e.isTop&&a(t),p.scrollTop=0,g=!0,e.isTop=!0),g&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return Mg(o,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return f().createElement(z4,{innerRef:this.getScrollTarget},this.props.children)}}]),o}(h.Component);function o6(e){var t=e.isEnabled,n=void 0===t||t,r=Ec(e,["isEnabled"]);return n?f().createElement(r6,r):r.children}var i6=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,i=t.isDisabled,a=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},a6=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},s6=function(e){return!!e.isDisabled},l6={clearIndicator:f4,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:h4,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Z5,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return Tc(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Tc(t,"backgroundColor",a.neutral0),Tc(t,"borderRadius",o),Tc(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Tc(t,"marginBottom",i.menuGutter),Tc(t,"marginTop",i.menuGutter),Tc(t,"position","absolute"),Tc(t,"width","100%"),Tc(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:X5,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},c6={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function u6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u6(Object(n),!0).forEach(function(t){Tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var p6={backspaceRemovesValue:!0,blurInputOnSelect:G5(),captureMenuScroll:!G5(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j4(Object(n),!0).forEach(function(t){Tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:V4,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?U4(t):t,c=a?U4(i(e)):i(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=N4(l),c=N4(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:s6,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},h6=1,f6=function(e){X3(o,e);var t,n,r=(t=o,n=function(){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(){var e,r=J3(t);if(n){var o=J3(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Z3(this,e)});function o(e){var t;iC(this,o),(t=r.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},t.blockOptionHover=!1,t.isComposing=!1,t.clearFocusValueOnUpdate=!1,t.commonProps=void 0,t.components=void 0,t.hasGroups=!1,t.initialTouchX=0,t.initialTouchY=0,t.inputIsHiddenAfterUpdate=void 0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.cacheComponents=function(e){t.components=function(e){return M4(M4({},T4),e.components)}({components:e})},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;o(e,d6(d6({},n),{},{name:i}))},t.setValue=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,o=t.props,i=o.closeMenuOnSelect,a=o.isMulti;t.onInputChange("",{action:"set-value"}),i&&(t.inputIsHiddenAfterUpdate=!a,t.onMenuClose()),t.clearFocusValueOnUpdate=!0,t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=t.state.selectValue;if(o)if(t.isOptionSelected(e,i)){var a=t.getOptionValue(e);t.setValue(i.filter(function(e){return t.getOptionValue(e)!==a}),"deselect-option",e),t.announceAriaLiveSelection({event:"deselect-option",context:{value:t.getOptionLabel(e)}})}else t.isOptionDisabled(e,i)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue([].concat(Lv(i),[e]),"select-option",e),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));else t.isOptionDisabled(e,i)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue(e,"select-option"),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));r&&t.blurInput()},t.removeValue=function(e){var n=t.state.selectValue,r=t.getOptionValue(e),o=n.filter(function(e){return t.getOptionValue(e)!==r});t.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),t.announceAriaLiveSelection({event:"remove-value",context:{value:e?t.getOptionLabel(e):""}}),t.focusInput()},t.clearValue=function(){t.onChange(null,{action:"clear"})},t.popValue=function(){var e=t.state.selectValue,n=e[e.length-1],r=e.slice(0,e.length-1);t.announceAriaLiveSelection({event:"pop-value",context:{value:n?t.getOptionLabel(n):""}}),t.onChange(r.length?r:null,{action:"pop-value",removedValue:n})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return B5.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return t.props.getOptionLabel(e)},t.getOptionValue=function(e){return t.props.getOptionValue(e)},t.getStyles=function(e,n){var r=l6[e](n);r.boxSizing="border-box";var o=t.props.styles[e];return o?o(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getActiveDescendentId=function(){var e=t.props.menuIsOpen,n=t.state,r=n.menuOptions,o=n.focusedOption;if(o&&e){var i=r.focusable.indexOf(o),a=r.render[i];return a&&a.key}},t.announceAriaLiveSelection=function(e){var n=e.event,r=e.context;t.setState({ariaLiveSelection:a6(n,r)})},t.announceAriaLiveContext=function(e){var n=e.event,r=e.context;t.setState({ariaLiveContext:i6(n,d6(d6({},r),{},{label:t.props["aria-label"]}))})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.inputIsHiddenAfterUpdate=!r,t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&j5(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.inputIsHiddenAfterUpdate=!1,t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){var n=t.props,r=n.isSearchable,o=n.isMulti;t.props.onFocus&&t.props.onFocus(e),t.inputIsHiddenAfterUpdate=!1,t.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),t.setState({isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){var e=t.props,n=e.hideSelectedOptions,r=e.isMulti;return void 0===n?r:n},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,h=t.state,f=h.focusedOption,g=h.focusedValue,m=h.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)t.removeValue(g);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!f||p&&t.isOptionSelected(f,m))return;t.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(t.isComposing)return;t.selectOption(f);break}return;case"Escape":c?(t.inputIsHiddenAfterUpdate=!1,t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!f)return;t.selectOption(f);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.buildMenuOptions=function(e,n){var r=e.inputValue,o=void 0===r?"":r,i=e.options,a=function(e,r){var i=t.isOptionDisabled(e,n),a=t.isOptionSelected(e,n),s=t.getOptionLabel(e),l=t.getOptionValue(e);if(!(t.shouldHideSelectedOptions()&&a||!t.filterOption({label:s,value:l,data:e},o))){var c=i?void 0:function(){return t.onOptionHover(e)},u=i?void 0:function(){return t.selectOption(e)},d="".concat(t.getElementId("option"),"-").concat(r);return{innerProps:{id:d,onClick:u,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:i,isSelected:a,key:d,label:s,type:"option",value:l}}};return i.reduce(function(e,n,r){if(n.options){t.hasGroups||(t.hasGroups=!0);var o=n.options.map(function(t,n){var o=a(t,"".concat(r,"-").concat(n));return o&&e.focusable.push(t),o}).filter(Boolean);if(o.length){var i="".concat(t.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:i,data:n,options:o})}}else{var s=a(n,"".concat(r));s&&(e.render.push(s),e.focusable.push(n))}return e},{render:[],focusable:[]})};var n=e.value;t.cacheComponents=gS(t.cacheComponents,a4).bind(Ig(t)),t.cacheComponents(e.components),t.instancePrefix="react-select-"+(t.props.instanceId||++h6);var i=N5(n);t.buildMenuOptions=gS(t.buildMenuOptions,function(e,t){var n=nu(e,2),r=n[0],o=n[1],i=nu(t,2),a=i[0];return o===i[1]&&r.inputValue===a.inputValue&&r.options===a.options}).bind(Ig(t));var a=e.menuIsOpen?t.buildMenuOptions(e,i):{render:[],focusable:[]};return t.state.menuOptions=a,t.state.selectValue=i,t}return Mg(o,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,i=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==i){var a=N5(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},l=this.getNextFocusedValue(a),c=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:c,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,l=a.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?V5(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&V5(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildMenuOptions(this.props,r),a=this.props,s=a.isMulti,l=a.tabSelectsValue,c="first"===e?0:i.focusable.length-1;if(!s){var u=i.focusable.indexOf(r[0]);u>-1&&(c=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:i,focusedValue:null,focusedOption:i.focusable[c]},function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:l}})})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,i=o.selectValue,a=o.focusedValue;if(n){this.setState({focusedOption:null});var s=i.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=i.length-1,c=-1;if(i.length){switch(e){case"previous":c=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s<l&&(c=s+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:i[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,i=o.focusedOption,a=o.menuOptions.focusable;if(a.length){var s=0,l=a.indexOf(i);i||(l=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?s=l>0?l-1:a.length-1:"down"===e?s=(l+1)%a.length:"pageup"===e?(s=l-n)<0&&(s=0):"pagedown"===e?(s=l+n)>a.length-1&&(s=a.length-1):"last"===e&&(s=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[s],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:s6(a[s]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(c6):d6(d6({},c6),this.props.theme):c6}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,i=this.selectOption,a=this.props,s=a.isMulti,l=a.isRtl,c=a.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:i,setValue:o,selectProps:a,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some(function(e){return n.getOptionValue(e)===r})}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,i=this.props,a=i.options,s=i.menuIsOpen,l=i.inputValue,c=i.screenReaderStatus,u=r?function(e){var t=e.focusedValue,n=e.selectValue;return"value ".concat((0,e.getOptionLabel)(t)," focused, ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",d=o&&s?function(e){var t=e.focusedOption,n=e.options;return"option ".concat((0,e.getOptionLabel)(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"",p=function(e){var t=e.inputValue;return"".concat(e.screenReaderMessage).concat(t?" for search term "+t:"",".")}({inputValue:l,screenReaderMessage:c({count:this.countOptions()})});return"".concat(u," ").concat(d," ").concat(p," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=this.components.Input,l=this.state.inputIsHidden,c=r||this.getElementId("input"),u={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return f().createElement(W4,Sc({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:k5,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,form:a,value:""},u));var d=this.commonProps,p=d.cx,h=d.theme,g=d.selectProps;return f().createElement(s,Sc({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:g,spellCheck:"false",tabIndex:i,form:a,theme:h,type:"text",value:o},u))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,h=c.inputValue,g=c.placeholder,m=this.state,v=m.selectValue,y=m.focusedValue,A=m.isFocused;if(!this.hasValue()||!u)return h?null:f().createElement(s,Sc({},l,{key:"placeholder",isDisabled:d,isFocused:A}),g);if(p){var w=v.map(function(t,a){var s=t===y;return f().createElement(n,Sc({},l,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(a),index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))});return w}if(h)return null;var b=v[0];return f().createElement(a,Sc({},l,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return f().createElement(e,Sc({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?f().createElement(e,Sc({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return f().createElement(n,Sc({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return f().createElement(e,Sc({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,u=this.commonProps,d=this.state,p=d.focusedOption,h=d.menuOptions,g=this.props,m=g.captureMenuScroll,v=g.inputValue,y=g.isLoading,A=g.loadingMessage,w=g.minMenuHeight,b=g.maxMenuHeight,_=g.menuIsOpen,C=g.menuPlacement,E=g.menuPosition,S=g.menuPortalTarget,O=g.menuShouldBlockScroll,x=g.menuShouldScrollIntoView,D=g.noOptionsMessage,P=g.onMenuScrollToTop,M=g.onMenuScrollToBottom;if(!_)return null;var T,R=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,f().createElement(c,Sc({},u,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())T=h.render.map(function(t){if("group"===t.type){t.type;var o=Ec(t,["type"]),i="".concat(t.key,"-heading");return f().createElement(n,Sc({},u,o,{Heading:r,headingProps:{id:i,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return R(e)}))}if("option"===t.type)return R(t)});else if(y){var I=A({inputValue:v});if(null===I)return null;T=f().createElement(s,u,I)}else{var F=D({inputValue:v});if(null===F)return null;T=f().createElement(l,u,F)}var k={minMenuHeight:w,maxMenuHeight:b,menuPlacement:C,menuPosition:E,menuShouldScrollIntoView:x},L=f().createElement(q5,Sc({},u,k),function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return f().createElement(o,Sc({},u,k,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:a}),f().createElement(o6,{isEnabled:m,onTopArrive:P,onBottomArrive:M},f().createElement(n6,{isEnabled:O},f().createElement(i,Sc({},u,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:s}),T))))});return S||"fixed"===E?f().createElement(a,Sc({},u,{appendTo:S,controlElement:this.controlRef,menuPlacement:C,menuPosition:E}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var s=a.map(function(t){return e.getOptionValue(t)}).join(n);return f().createElement("input",{name:i,type:"hidden",value:s})}var l=a.length>0?a.map(function(t,n){return f().createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):f().createElement("input",{name:i,type:"hidden"});return f().createElement("div",null,l)}var c=a[0]?this.getOptionValue(a[0]):"";return f().createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?f().createElement(G4,{"aria-live":"polite"},f().createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),f().createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,c=i.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return f().createElement(r,Sc({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),f().createElement(t,Sc({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),f().createElement(o,Sc({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),f().createElement(n,Sc({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),o}(h.Component);f6.defaultProps=p6;var g6={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},m6=function(e){var t,n;return n=t=function(t){X3(i,t);var n,r,o=(n=i,r=function(){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(){var e,t=J3(n);if(r){var o=J3(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return Z3(this,e)});function i(){var e;iC(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Mg(i,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props,r=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,Ec(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return f().createElement(e,Sc({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),i}(h.Component),t.defaultProps=g6,n}(f6);const v6=m6,y6=(0,h.memo)(e=>{const[t,n]=(0,h.useState)(Y3()(e.items,{value:e.selected})),[r,o]=(0,h.useState)(!1),[i,a]=(0,h.useState)(void 0),[s,l]=(0,h.useState)(e.selected),{title:c,footer:u}=e;let{items:d}=e;i&&(d=i),(0,h.useEffect)(()=>{const r=Y3()(e.items,{value:e.selected})||null;(e.selected!==s||null===t||t&&t?.label!=r?.label)&&(n(r),l(e.selected))},[e.selected,s,e.items,t]);const f={neutral0:"#4B4B4B",primary:"#408fe0",primary25:"#4B535E",primary50:"#4B535E"},g=async t=>{let{items:n}=e;const{toggleOpenState:s}=e;"function"==typeof s&&s(!r),e.onItems&&(n=r?i:await e.onItems()),n&&n.length>0&&(o(!r),a(n),t&&t.preventDefault())},m=(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"gv-panel-header-title-select",children:r?(0,p.jsx)(v6,{autoFocus:!0,backspaceRemovesValue:!1,controlShouldRenderValue:!1,hideSelectedOptions:!1,isClearable:!1,menuIsOpen:!0,className:"gv-panel-header-title-select-control",onChange:t=>{n(t),g(),e.onChange(t)},value:t,options:d,placeholder:"Choose an item ...",menuPortalTarget:document.body,menuPlacement:!0===u?"top":"bottom",classNamePrefix:"rs2",theme:e=>({...e,colors:{...e.colors,...f},spacing:{baseUnit:3,controlHeight:14,menuGutter:2}}),components:{DropdownIndicator:e=>T4.DropdownIndicator&&(0,p.jsx)(T4.DropdownIndicator,{...e,children:(0,p.jsx)(Fo,{icon:"search",className:"gv-panel-header-title-select-dropdown",active:e.isFocused})}),IndicatorSeparator:null},styles:{container:(e,t)=>({...e,border:t.isFocused?"none":e.border,width:"100%",zIndex:2}),control:(e,t)=>({...e,background:"linear-gradient(180deg, #333B46 0%, #2E3641 100%)",border:0,borderRadius:"4px",boxShadow:"none",color:"#A5ACB8",opacity:t.isDisabled?.3:1,zIndex:3,marginTop:!0===u?"-32px":e.marginTop}),dropdownIndicator:e=>({...e}),indicatorSeparator:e=>({...e,backgroundColor:"#1E2631",marginBottom:0,marginTop:0}),input:e=>({...e,color:"white"}),menu:e=>({...e,background:"linear-gradient(180deg, #333B46 0%, #2E3641 100%)",border:"1px solid #414854",zIndex:5}),menuList:e=>({...e}),menuPortal:e=>({...e}),option:e=>({...e,color:"#ffffff"}),placeholder:e=>({...e,WebkitTransform:"none",color:"#878e9a",fontStyle:"italic",opacity:.4,position:"relative",transform:"none"}),singleValue:e=>({...e,WebkitTransform:"none",color:"#A5ACB8",display:"contents",paddingLeft:"6px",paddingRight:"6px",position:"relative",transform:"none"}),valueContainer:(e,t)=>({...e,border:t.isFocused?"none":e.border,fontSize:"12px",paddingBottom:"3px",paddingLeft:"6px",paddingRight:"6px",paddingTop:"3px"})}}):null}),r?(0,p.jsx)("div",{style:{bottom:0,left:0,position:"fixed",right:0,top:0,zIndex:2},onClick:g}):null]});return(0,p.jsxs)(p.Fragment,{children:[!0===e.footer&&r&&m,(0,p.jsxs)("span",{className:"gv-panel-header-title",children:[d&&(0,p.jsx)("span",{className:"gv-panel-header-title-label",children:e.title}),(0,p.jsx)("div",{className:"gv-panel-header-title-value "+(d?"gv-panel-header-title-pointer":""),onClick:g,children:d?t&&t.label||"Select an item...":c}),d&&(0,p.jsx)("div",{className:"gv-panel-header-title-items "+(d?"gv-panel-header-title-pointer":""),onClick:g,children:(0,p.jsx)(Fo,{icon:!0===e.footer?"arrows-up":"arrows-down",className:"gv-panel-header-title-items-icon",active:r})}),!0!==e.footer&&r&&m]})]})}),{GVMenuButton:A6,GVMenuDivider:w6,GVMenuItem:b6}=Q3,_6=e=>{const[t]=(0,h.useState)(ds()),[n]=(0,h.useState)(ds()),r=(0,h.useRef)(null);return(0,p.jsxs)("div",{className:"gv-panel-header",children:[e.buttons&&(0,p.jsx)("span",{className:"gv-panel-header-buttons",children:e.buttons?.map((e,n)=>(0,p.jsxs)("div",{className:"gv-panel-header-button",children:[(0,p.jsx)("div",{"data-tip":!0,"data-for":`gv-panel-header-button-tooltip-${t}-${n}`,ref:r,className:"gv-panel-header-button",children:(0,p.jsx)(ko,{hint:e.tooltip,onClick:e.action,icon:e.icon,style:e.style||"secondary",disabled:e.disabled,id:e.name},`gv-panel-header-button-${t}-${n}`)}),e.tooltipComponent&&e.componentOpen&&(0,p.jsx)(lL,{id:`gv-panel-header-button-tooltip-${t}-${n}`,place:"bottom",className:"component-tooltip",children:e.tooltipComponent})]},`gv-panel-header-button-div-${t}-${n}`))}),!1!==e.header&&(0,p.jsx)(y6,{title:e.title,items:e.items,onItems:e.onItems,toggleOpenState:e.toggleMenuOpen,footer:e.footer,selected:e.selected,onChange:e.itemsOnChange}),(e.rightButtons||e.rightContent)&&(0,p.jsxs)("span",{className:"gv-panel-header-right-buttons",children:[e.rightContent,e.rightButtons?.map((e,n)=>(0,p.jsx)("div",{className:"gv-panel-header-button",children:(0,p.jsx)(ko,{hint:e.tooltip,onClick:e.action,icon:e.icon,style:e.style||"secondary",disabled:e.disabled},`gv-panel-header-button-${t}-${n}`)},`gv-panel-header-button-div-${t}-${n}`))]}),e.leftContent&&(0,p.jsx)("span",{className:"gv-panel-header-left-buttons",children:e.leftContent}),e.options&&(0,p.jsx)("span",{className:"gv-panel-header-options",children:(0,p.jsx)(Q3,{menuButton:(0,p.jsx)(A6,{children:(0,p.jsx)(Fo,{tag:"span",style:{display:"flex"},size:"19px",icon:"interface-options"})},"gv-panel-header-options"),transition:!0,children:e.options?.map((e,t)=>"separator"===e?(0,p.jsx)(w6,{},t):"string"==typeof e?null:(0,p.jsx)(b6,{onClick:e.action,disabled:e.disabled,children:e.name},`panel-header-menu-${n}-${t}`))})})]})};class C6 extends h.PureComponent{render(){const e=(0,p.jsx)(t3,{bodyRef:this.props.bodyRef,header:this.props.header,footer:this.props.footer,className:this.props.bodyClassName,style:this.props.bodyStyle,padded:this.props.padded,children:this.props.children}),t=!1!==this.props.header?(0,p.jsx)(_6,{buttons:this.props.buttons,rightButtons:this.props.rightButtons,rightContent:this.props.rightContent,leftContent:this.props.leftContent,title:this.props.title,items:this.props.items,toggleMenuOpen:this.props.toggleMenuOpen,itemsOnChange:this.props.itemsOnChange,onItems:this.props.onItems,selected:this.props.selected,options:this.props.options,footer:this.props.footer}):null;return(0,p.jsxs)("div",{ref:this.props.panelRef,className:Oo()({"gv-panel":!0,[this.props.className]:!!this.props.className,"gv-panel--headless":!1===this.props.header}),style:this.props.style,children:[!0!==this.props.footer?t:e,!0!==this.props.footer?e:t]})}}const E6=e=>{const t=(t,n)=>e.listComponent?{}:{bodyRef:t.innerRef,bodyProps:t.droppableProps,bodyClassName:Oo()({"gv-panel-body-dragover":n.isDraggingOver}),title:e.title,padded:!0,options:e.options,buttons:e.buttons,style:{minWidth:"300px",height:"100%",...e.style}},{items:n,id:r,itemComponent:o,listComponent:i}=e,a=o||e3,s=i||C6;return(0,p.jsx)(J2,{droppableId:r,children:(e,r)=>(0,p.jsxs)(s,{...t(e,r),children:[n.map((e,t)=>(0,p.jsx)(q2,{draggableId:e.id,index:t,children:(t,n)=>(0,p.jsx)(a,{...e,provided:t,snapshot:n})},e.id)),e.placeholder]})})};function S6(){}function O6(){}const x6=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,D6=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,P6={};function M6(e,t){return((t||P6).jsx?D6:x6).test(e)}const T6=/[ \t\n\f\r]/g;function R6(e){return""===e.replace(T6,"")}class I6{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function F6(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new I6(n,r,t)}function k6(e){return e.toLowerCase()}I6.prototype.normal={},I6.prototype.property={},I6.prototype.space=void 0;class L6{constructor(e,t){this.attribute=t,this.property=e}}L6.prototype.attribute="",L6.prototype.booleanish=!1,L6.prototype.boolean=!1,L6.prototype.commaOrSpaceSeparated=!1,L6.prototype.commaSeparated=!1,L6.prototype.defined=!1,L6.prototype.mustUseProperty=!1,L6.prototype.number=!1,L6.prototype.overloadedBoolean=!1,L6.prototype.property="",L6.prototype.spaceSeparated=!1,L6.prototype.space=void 0;let B6=0;const N6=z6(),j6=z6(),U6=z6(),V6=z6(),H6=z6(),G6=z6(),W6=z6();function z6(){return 2**++B6}const $6=Object.keys(i);class K6 extends L6{constructor(e,t,n,r){let o=-1;if(super(e,t),Q6(this,"space",r),"number"==typeof n)for(;++o<$6.length;){const e=$6[o];Q6(this,$6[o],(n&i[e])===i[e])}}}function Q6(e,t,n){n&&(e[t]=n)}function q6(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new K6(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[k6(r)]=r,n[k6(i.attribute)]=r}return new I6(t,n,e.space)}K6.prototype.defined=!0;const Y6=q6({properties:{ariaActiveDescendant:null,ariaAtomic:j6,ariaAutoComplete:null,ariaBusy:j6,ariaChecked:j6,ariaColCount:V6,ariaColIndex:V6,ariaColSpan:V6,ariaControls:H6,ariaCurrent:null,ariaDescribedBy:H6,ariaDetails:null,ariaDisabled:j6,ariaDropEffect:H6,ariaErrorMessage:null,ariaExpanded:j6,ariaFlowTo:H6,ariaGrabbed:j6,ariaHasPopup:null,ariaHidden:j6,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:H6,ariaLevel:V6,ariaLive:null,ariaModal:j6,ariaMultiLine:j6,ariaMultiSelectable:j6,ariaOrientation:null,ariaOwns:H6,ariaPlaceholder:null,ariaPosInSet:V6,ariaPressed:j6,ariaReadOnly:j6,ariaRelevant:null,ariaRequired:j6,ariaRoleDescription:H6,ariaRowCount:V6,ariaRowIndex:V6,ariaRowSpan:V6,ariaSelected:j6,ariaSetSize:V6,ariaSort:null,ariaValueMax:V6,ariaValueMin:V6,ariaValueNow:V6,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function X6(e,t){return t in e?e[t]:t}function Z6(e,t){return X6(e,t.toLowerCase())}const J6=q6({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:G6,acceptCharset:H6,accessKey:H6,action:null,allow:null,allowFullScreen:N6,allowPaymentRequest:N6,allowUserMedia:N6,alt:null,as:null,async:N6,autoCapitalize:null,autoComplete:H6,autoFocus:N6,autoPlay:N6,blocking:H6,capture:null,charSet:null,checked:N6,cite:null,className:H6,cols:V6,colSpan:null,content:null,contentEditable:j6,controls:N6,controlsList:H6,coords:V6|G6,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N6,defer:N6,dir:null,dirName:null,disabled:N6,download:U6,draggable:j6,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N6,formTarget:null,headers:H6,height:V6,hidden:U6,high:V6,href:null,hrefLang:null,htmlFor:H6,httpEquiv:H6,id:null,imageSizes:null,imageSrcSet:null,inert:N6,inputMode:null,integrity:null,is:null,isMap:N6,itemId:null,itemProp:H6,itemRef:H6,itemScope:N6,itemType:H6,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N6,low:V6,manifest:null,max:null,maxLength:V6,media:null,method:null,min:null,minLength:V6,multiple:N6,muted:N6,name:null,nonce:null,noModule:N6,noValidate:N6,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:N6,optimum:V6,pattern:null,ping:H6,placeholder:null,playsInline:N6,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N6,referrerPolicy:null,rel:H6,required:N6,reversed:N6,rows:V6,rowSpan:V6,sandbox:H6,scope:null,scoped:N6,seamless:N6,selected:N6,shadowRootClonable:N6,shadowRootDelegatesFocus:N6,shadowRootMode:null,shape:null,size:V6,sizes:null,slot:null,span:V6,spellCheck:j6,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V6,step:null,style:null,tabIndex:V6,target:null,title:null,translate:null,type:null,typeMustMatch:N6,useMap:null,value:j6,width:V6,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:H6,axis:null,background:null,bgColor:null,border:V6,borderColor:null,bottomMargin:V6,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:N6,declare:N6,event:null,face:null,frame:null,frameBorder:null,hSpace:V6,leftMargin:V6,link:null,longDesc:null,lowSrc:null,marginHeight:V6,marginWidth:V6,noResize:N6,noHref:N6,noShade:N6,noWrap:N6,object:null,profile:null,prompt:null,rev:null,rightMargin:V6,rules:null,scheme:null,scrolling:j6,standby:null,summary:null,text:null,topMargin:V6,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V6,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:N6,disableRemotePlayback:N6,prefix:null,property:null,results:V6,security:null,unselectable:null},space:"html",transform:Z6}),e8=q6({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:W6,accentHeight:V6,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V6,amplitude:V6,arabicForm:null,ascent:V6,attributeName:null,attributeType:null,azimuth:V6,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V6,by:null,calcMode:null,capHeight:V6,className:H6,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V6,diffuseConstant:V6,direction:null,display:null,dur:null,divisor:V6,dominantBaseline:null,download:N6,dx:null,dy:null,edgeMode:null,editable:null,elevation:V6,enableBackground:null,end:null,event:null,exponent:V6,externalResourcesRequired:null,fill:null,fillOpacity:V6,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:G6,g2:G6,glyphName:G6,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V6,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V6,horizOriginX:V6,horizOriginY:V6,id:null,ideographic:V6,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V6,k:V6,k1:V6,k2:V6,k3:V6,k4:V6,kernelMatrix:W6,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V6,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V6,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V6,overlineThickness:V6,paintOrder:null,panose1:null,path:null,pathLength:V6,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:H6,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V6,pointsAtY:V6,pointsAtZ:V6,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:W6,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:W6,rev:W6,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:W6,requiredFeatures:W6,requiredFonts:W6,requiredFormats:W6,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V6,specularExponent:V6,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V6,strikethroughThickness:V6,string:null,stroke:null,strokeDashArray:W6,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V6,strokeOpacity:V6,strokeWidth:null,style:null,surfaceScale:V6,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:W6,tabIndex:V6,tableValues:null,target:null,targetX:V6,targetY:V6,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:W6,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V6,underlineThickness:V6,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V6,values:null,vAlphabetic:V6,vMathematical:V6,vectorEffect:null,vHanging:V6,vIdeographic:V6,version:null,vertAdvY:V6,vertOriginX:V6,vertOriginY:V6,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V6,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:X6}),t8=q6({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),n8=q6({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Z6}),r8=q6({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),o8=F6([Y6,J6,t8,n8,r8],"html"),i8=F6([Y6,e8,t8,n8,r8],"svg"),a8=/[A-Z]/g,s8=/-[a-z]/g,l8=/^data[-\w.:]+$/i;function c8(e){return"-"+e.toLowerCase()}function u8(e){return e.charAt(1).toUpperCase()}const d8={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var p8=u(51020);const h8=g8("end"),f8=g8("start");function g8(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function m8(e){return e&&"object"==typeof e?"position"in e||"type"in e?y8(e.position):"start"in e||"end"in e?y8(e):"line"in e||"column"in e?v8(e):"":""}function v8(e){return A8(e&&e.line)+":"+A8(e&&e.column)}function y8(e){return v8(e&&e.start)+"-"+v8(e&&e.end)}function A8(e){return e&&"number"==typeof e?e:1}class w8 extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=m8(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}w8.prototype.file="",w8.prototype.name="",w8.prototype.reason="",w8.prototype.message="",w8.prototype.stack="",w8.prototype.column=void 0,w8.prototype.line=void 0,w8.prototype.ancestors=void 0,w8.prototype.cause=void 0,w8.prototype.fatal=void 0,w8.prototype.place=void 0,w8.prototype.ruleId=void 0,w8.prototype.source=void 0;const b8={}.hasOwnProperty,_8=new Map,C8=/[A-Z]/g,E8=new Set(["table","tbody","thead","tfoot","tr"]),S8=new Set(["td","th"]),O8="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function x8(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=i8,e.schema=o),e.ancestors.push(t);const i=R8(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&b8.call(t.properties,o)){const i=T8(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&S8.has(t.tagName)?r=a:n[o]=a}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let s=M8(e,t);return E8.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&R6(t.value):R6(t));var t})),D8(e,a,i,t),P8(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}I8(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=i8,e.schema=o),e.ancestors.push(t);const i=null===t.name?e.Fragment:R8(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];S6(t.type);const o=t.expression;S6(o.type);const i=o.properties[0];S6(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else I8(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];S6(t.type),i=e.evaluater.evaluateExpression(t.expression)}else I8(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=M8(e,t);return D8(e,a,i,t),P8(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);I8(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return P8(r,M8(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function D8(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function P8(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function M8(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:_8;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const s=x8(e,i,a);void 0!==s&&n.push(s)}return n}function T8(e,t,n){const r=function(e,t){const n=k6(t);let r=t,o=L6;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&l8.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(s8,u8);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!s8.test(e)){let n=e.replace(a8,c8);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=K6}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return p8(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new w8("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=O8+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)b8.call(e,n)&&(t[F8(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?d8[r.property]||r.property:r.attribute,n]}}function R8(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=M6(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=M6(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return b8.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);I8(e)}function I8(e,t){const n=new w8("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=O8+"#cannot-handle-mdx-estrees-without-createevaluater",n}function F8(e){let t=e.replace(C8,k8);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function k8(e){return"-"+e.toLowerCase()}const L8={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},B8={};function N8(e,t){const n=t||B8;return j8(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function j8(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return U8(e.children,t,n)}return Array.isArray(e)?U8(e,t,n):""}function U8(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=j8(e[o],t,n);return r.join("")}function V8(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function H8(e,t){return e.length>0?(V8(e,e.length,0,t),e):t}class G8{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&W8(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),W8(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),W8(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);W8(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);W8(this.left,t.reverse())}}}function W8(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function z8(e){const t={};let n,r,o,i,a,s,l,c=-1;const u=new G8(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,$8(u,c)),c=t[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return V8(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function $8(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let u,d,p=-1,h=n,f=0,g=0;const m=[g];for(;h;){for(;e.get(++o)[1]!==h;);i.push(o),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(g=p+1,m.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),p=m.length;p--;){const t=s.slice(m[p],m[p+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const K8={}.hasOwnProperty;function Q8(e){const t={};let n=-1;for(;++n<e.length;)q8(t,e[n]);return t}function q8(e,t){let n;for(n in t){const r=(K8.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){K8.call(r,i)||(r[i]=[]);const e=o[i];Y8(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Y8(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);V8(e,0,0,r)}const X8=c7(/[A-Za-z]/),Z8=c7(/[\dA-Za-z]/),J8=c7(/[#-'*+\--9=?A-Z^-~]/);function e7(e){return null!==e&&(e<32||127===e)}const t7=c7(/\d/),n7=c7(/[\dA-Fa-f]/),r7=c7(/[!-/:-@[-`{-~]/);function o7(e){return null!==e&&e<-2}function i7(e){return null!==e&&(e<0||32===e)}function a7(e){return-2===e||-1===e||32===e}const s7=c7(/\p{P}|\p{S}/u),l7=c7(/\s/);function c7(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function u7(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){return a7(r)?(e.enter(n),a(r)):t(r)};function a(r){return a7(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const d7={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),u7(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):o7(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}},p7={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}v(a);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return V8(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(o){if(a===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return f(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(h7,u,d)(o)}function u(e){return r&&y(),v(a),p(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(h7,h,f)(n)}function h(e){return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&y(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):o7(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),g)}function m(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(v(a),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;V8(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},h7={tokenize:function(e,t,n){return u7(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},f7={partial:!0,tokenize:function(e,t,n){return function(t){return a7(t)?u7(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||o7(e)?t(e):n(e)}}},g7={resolve:function(e){return z8(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):o7(t)?e.check(m7,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},m7={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u7(e,o,"linePrefix")};function o(o){if(null===o||o7(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}},v7={tokenize:function(e){const t=this,n=e.attempt(f7,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,u7(e,e.attempt(this.parser.constructs.flow,r,e.attempt(g7,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},y7={resolveAll:_7()},A7=b7("string"),w7=b7("text");function b7(e){return{resolveAll:_7("text"===e?C7:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function _7(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function C7(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const E7={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||o7(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),a7(t)?u7(e,i,"whitespace")(t):i(t))}}},S7={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(f7,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,u7(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!a7(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(x7,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,u7(e,e.attempt(S7,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:t7(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(E7,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return t7(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(f7,r.interrupt?n:c,e.attempt(O7,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return a7(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},O7={partial:!0,tokenize:function(e,t,n){const r=this;return u7(e,function(e){const o=r.events[r.events.length-1];return!a7(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},x7={partial:!0,tokenize:function(e,t,n){const r=this;return u7(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},D7={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return a7(t)?u7(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(D7,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return a7(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function P7(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||e7(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||o7(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(o){return u||null!==o&&41!==o&&!i7(o)?u<c&&40===o?(e.consume(o),u++,f):41===o?(e.consume(o),u--,f):null===o||32===o||40===o||e7(o)?n(o):(e.consume(o),92===o?g:f):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function g(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function M7(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):o7(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||o7(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!a7(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function T7(e,t,n,r,o,i){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):o7(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u7(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||o7(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function R7(e,t){let n;return function r(o){return o7(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):a7(o)?u7(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function I7(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const F7={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return M7.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=I7(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return i7(t)?R7(e,s)(t):s(t)}function s(t){return P7(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(k7,c,c)(t)}function c(t){return a7(t)?u7(e,u,"whitespace")(t):u(t)}function u(i){return null===i||o7(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},k7={partial:!0,tokenize:function(e,t,n){return function(t){return i7(t)?R7(e,r)(t):n(t)};function r(t){return T7(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return a7(t)?u7(e,i,"whitespace")(t):i(t)}function i(e){return null===e||o7(e)?t(e):n(e)}}},L7={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),u7(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):o7(t)?e.attempt(B7,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||o7(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},B7={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):o7(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):u7(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):o7(e)?o(e):n(e)}}},N7={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;return"whitespace"===e[i][1].type&&(i+=2),o-2>i&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},V8(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||i7(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||o7(n)?(e.exit("atxHeading"),t(n)):a7(n)?u7(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||i7(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}},j7={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t))};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),a7(t)?u7(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||o7(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},U7=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],V7=["pre","script","style","textarea"],H7={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,h):63===s?(e.consume(s),o=3,r.interrupt?t:F):X8(s)?(e.consume(s),a=String.fromCharCode(s),f):n(s)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,p):X8(i)?(e.consume(i),o=4,r.interrupt?t:F):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:F):n(o)}function p(o){return o==="CDATA[".charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:O:p):n(o)}function h(t){return X8(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||i7(s)){const l=47===s,c=a.toLowerCase();return l||i||!V7.includes(c)?U7.includes(a.toLowerCase())?(o=6,l?(e.consume(s),g):r.interrupt?t(s):O(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?m(s):v(s)):(o=1,r.interrupt?t(s):O(s))}return 45===s||Z8(s)?(e.consume(s),a+=String.fromCharCode(s),f):n(s)}function g(o){return 62===o?(e.consume(o),r.interrupt?t:O):n(o)}function m(t){return a7(t)?(e.consume(t),m):E(t)}function v(t){return 47===t?(e.consume(t),E):58===t||95===t||X8(t)?(e.consume(t),y):a7(t)?(e.consume(t),v):E(t)}function y(t){return 45===t||46===t||58===t||95===t||Z8(t)?(e.consume(t),y):A(t)}function A(t){return 61===t?(e.consume(t),w):a7(t)?(e.consume(t),A):v(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,b):a7(t)?(e.consume(t),w):_(t)}function b(t){return t===l?(e.consume(t),l=null,C):null===t||o7(t)?n(t):(e.consume(t),b)}function _(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||i7(t)?A(t):(e.consume(t),_)}function C(e){return 47===e||62===e||a7(e)?v(e):n(e)}function E(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||o7(t)?O(t):a7(t)?(e.consume(t),S):n(t)}function O(t){return 45===t&&2===o?(e.consume(t),M):60===t&&1===o?(e.consume(t),T):62===t&&4===o?(e.consume(t),k):63===t&&3===o?(e.consume(t),F):93===t&&5===o?(e.consume(t),I):!o7(t)||6!==o&&7!==o?null===t||o7(t)?(e.exit("htmlFlowData"),x(t)):(e.consume(t),O):(e.exit("htmlFlowData"),e.check(G7,L,x)(t))}function x(t){return e.check(W7,D,L)(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||o7(t)?x(t):(e.enter("htmlFlowData"),O(t))}function M(t){return 45===t?(e.consume(t),F):O(t)}function T(t){return 47===t?(e.consume(t),a="",R):O(t)}function R(t){if(62===t){const n=a.toLowerCase();return V7.includes(n)?(e.consume(t),k):O(t)}return X8(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):O(t)}function I(t){return 93===t?(e.consume(t),F):O(t)}function F(t){return 62===t?(e.consume(t),k):45===t&&2===o?(e.consume(t),F):O(t)}function k(t){return null===t||o7(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),k)}function L(n){return e.exit("htmlFlow"),t(n)}}},G7={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(f7,t,n)}}},W7={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return o7(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},z7={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},$7={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),a7(t)?u7(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=s?(e.exit("codeFencedFenceSequence"),a7(t)?u7(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||o7(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),a7(t)?u7(e,c,"whitespace")(t):c(t))}function c(n){return null===n||o7(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(z7,h,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||o7(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):a7(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u7(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||o7(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||o7(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function h(t){return e.attempt(o,y,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return a>0&&a7(t)?u7(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||o7(t)?e.check(z7,h,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||o7(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}}},K7=document.createElement("i");function Q7(e){const t="&"+e+";";K7.innerHTML=t;const n=K7.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const q7={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=Z8,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=n7,c):(e.enter("characterReferenceValue"),o=7,i=t7,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==Z8||Q7(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),c):n(s)}}},Y7={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return r7(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},X7={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),u7(e,t,"linePrefix")}}};function Z7(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const J7={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&V8(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",l,t],["enter",c,t]],i=H8(i,e.slice(r+1,r+s+3)),i=H8(i,[["enter",u,t]]),i=H8(i,Z7(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=H8(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=H8(i,e.slice(o+1)),i=H8(i,[["exit",l,t]]),V8(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){return o?o._inactive?u(t):(i=r.parser.defined.includes(I7(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(e9,c,i?c:u)(t):91===t?e.attempt(t9,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(n9,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},e9={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return i7(t)?R7(e,o)(t):o(t)}function o(t){return 41===t?c(t):P7(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return i7(t)?R7(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?T7(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return i7(t)?R7(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},t9={tokenize:function(e,t,n){const r=this;return function(t){return M7.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(I7(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},n9={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},r9={name:"labelStartImage",resolveAll:J7.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function o9(e){return null===e||i7(e)||l7(e)?1:s7(e)?2:void 0}const i9={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};a9(d,-s),a9(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=H8(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=H8(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=H8(l,Z7(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=H8(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=H8(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,V8(e,n-1,u-n+3,l),u=n+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=o9(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),c=o9(s),u=!c||2===c&&o||n.includes(s),d=!o||2===o&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(o||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}}};function a9(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const s9={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return X8(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||Z8(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Z8(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||e7(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):J8(t)?(e.consume(t),l):n(t)}function c(e){return Z8(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Z8(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},l9={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),y):X8(t)?(e.consume(t),C):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,h):X8(t)?(e.consume(t),v):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):o7(t)?(a=u,R(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?T(e):45===e?d(e):u(e)}function h(t){return t==="CDATA[".charCodeAt(i++)?(e.consume(t),6===i?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),g):o7(t)?(a=f,R(t)):(e.consume(t),f)}function g(t){return 93===t?(e.consume(t),m):f(t)}function m(t){return 62===t?T(t):93===t?(e.consume(t),m):f(t)}function v(t){return null===t||62===t?T(t):o7(t)?(a=v,R(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),A):o7(t)?(a=y,R(t)):(e.consume(t),y)}function A(e){return 62===e?T(e):y(e)}function w(t){return X8(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||Z8(t)?(e.consume(t),b):_(t)}function _(t){return o7(t)?(a=_,R(t)):a7(t)?(e.consume(t),_):T(t)}function C(t){return 45===t||Z8(t)?(e.consume(t),C):47===t||62===t||i7(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),T):58===t||95===t||X8(t)?(e.consume(t),S):o7(t)?(a=E,R(t)):a7(t)?(e.consume(t),E):T(t)}function S(t){return 45===t||46===t||58===t||95===t||Z8(t)?(e.consume(t),S):O(t)}function O(t){return 61===t?(e.consume(t),x):o7(t)?(a=O,R(t)):a7(t)?(e.consume(t),O):E(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,D):o7(t)?(a=x,R(t)):a7(t)?(e.consume(t),x):(e.consume(t),P)}function D(t){return t===o?(e.consume(t),o=void 0,M):null===t?n(t):o7(t)?(a=D,R(t)):(e.consume(t),D)}function P(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||i7(t)?E(t):(e.consume(t),P)}function M(e){return 47===e||62===e||i7(e)?E(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return a7(t)?u7(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):F(t)}function F(t){return e.enter("htmlTextData"),a(t)}}},c9={name:"labelStartLink",resolveAll:J7.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},u9={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return o7(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},d9={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):o7(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||o7(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}}},p9={42:S7,43:S7,45:S7,48:S7,49:S7,50:S7,51:S7,52:S7,53:S7,54:S7,55:S7,56:S7,57:S7,62:D7},h9={91:F7},f9={[-2]:L7,[-1]:L7,32:L7},g9={35:N7,42:E7,45:[j7,E7],60:H7,61:j7,95:E7,96:$7,126:$7},m9={38:q7,92:Y7},v9={[-5]:X7,[-4]:X7,[-3]:X7,33:r9,38:q7,42:i9,60:[s9,l9],91:c9,92:[u9,Y7],93:J7,95:i9,96:d9},y9={null:[i9,y7]},A9={null:[42,95]},w9={null:[]},b9=/[\0\t\n\r]/g;function _9(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const C9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function E9(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return _9(n.slice(t?2:1),t?16:10)}return Q7(n)||e}const S9={}.hasOwnProperty;function O9(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:o(g),blockQuote:o(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:o(f),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(f,i),codeText:o(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:o(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:o(m),hardBreakTrailing:o(m),htmlFlow:o(v,i),htmlFlowData:u,htmlText:o(v,i),htmlTextData:u,image:o(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:o(y),listItem:o(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:o(A,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:o(A),paragraph:o(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(g),strong:o(function(){return{type:"strong",children:[]}}),thematicBreak:o(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=_9(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=Q7(t),this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=x9(e.end)},codeFenced:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=I7(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(C9,E9)}(t),n.identifier=I7(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=x9(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),d.call(this,e))},link:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=I7(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};D9(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let o={type:"root",children:[]};const s={stack:[o],tokenStack:[],config:t,enter:a,exit:l,buffer:i,resume:c,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];S9.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||M9).call(s,void 0,e[0])}for(o.position={start:x9(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:x9(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)o=t.transforms[d](o)||o;return o};function r(e,t,n){let r,o,i,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(s,0,["enter",o,t[2]]),s++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function o(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:x9(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+m8({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||M9).call(this,e,r[0])),n.position.end=x9(e.end)}function c(){return N8(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:x9(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=x9(e.end)}function p(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function g(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function v(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function A(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!z8(e););return e}(function(e){const t={constructs:Q8([a,...(e||{}).extensions||[]]),content:n(d7),defined:[],document:n(p7),flow:n(v7),lazy:{},string:n(A7),text:n(w7)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],s=[],l=!0;const c={attempt:v(function(e,t){y(e,t.from)}),check:v(m),consume:function(e){o7(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,A()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:v(m,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,A()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(h(e),t)},sliceStream:h,write:function(e){return a=H8(a,e),function(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}(),null!==a[a.length-1]?[]:(y(t,0),u.events=Z7(i,u.events,u),u.events)}};let d,p=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function g(e){l=void 0,d=e,p=p(e)}function m(e,t){t.restore()}function v(e,t){return function(n,o,i){let a,d,p,h;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return g([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function g(e){return a=e,d=0,0===e.length?i:m(e[d])}function m(e){return function(n){return h=function(){const e=f(),t=u.previous,n=u.currentConstruct,o=u.events.length,i=Array.from(s);return{from:o,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,s=i,A()}}}(),p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name)?y():e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,v,y)(n)}}function v(t){return l=!0,e(p,h),o}function y(e){return l=!0,h.restore(),++d<a.length?m(a[d]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&V8(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function A(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,c,u,d,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(b9.lastIndex=u,l=b9.exec(o),d=l&&void 0!==l.index?l.index:o.length,p=o.charCodeAt(d),!l){n=o.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function x9(e){return{line:e.line,column:e.column,offset:e.offset}}function D9(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?D9(e,r):P9(e,r)}}function P9(e,t){let n;for(n in t)if(S9.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function M9(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+m8({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+m8({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+m8({start:t.start,end:t.end})+") is still open")}function T9(e){const t=this;t.parser=function(n){return O9(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const R9="object"==typeof self?self:globalThis,I9=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new R9[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new R9[i](a),o)};return r})(new Map,e)(0),F9="",{toString:k9}={},{keys:L9}=Object,B9=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=k9.call(e).slice(8,-1);switch(n){case"Array":return[1,F9];case"Object":return[2,F9];case"Date":return[3,F9];case"RegExp":return[4,F9];case"Map":return[5,F9];case"Set":return[6,F9];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},N9=([e,t])=>0===e&&("function"===t||"symbol"===t),j9=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,s]=B9(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),o([s,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(s)switch(s){case"BigInt":return o([s,r.toString()],r);case"Boolean":case"Number":case"String":return o([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=o([a,n],r);for(const t of L9(r))!e&&N9(B9(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!N9(B9(n))&&!N9(B9(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&N9(B9(n))||t.push(i(n));return n}}const{message:l}=r;return o([a,{name:s,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},U9="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?I9(j9(e,t)):structuredClone(e):(e,t)=>I9(j9(e,t));function V9(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&Z8(e.charCodeAt(n+1))&&Z8(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function H9(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function G9(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const W9=function(e){if(null==e)return $9;if("function"==typeof e)return z9(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=W9(e[n]);return z9(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return z9(function(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0})}(e);if("string"==typeof e)return function(e){return z9(function(t){return t&&t.type===e})}(e);throw new Error("Expected function, string, or object as test")};function z9(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function $9(){return!0}const K9=[],Q9=!1;function q9(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=W9(o),a=r?-1:1;!function e(o,s,l){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=K9;if((!t||i(o,s,l[l.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:null==e?K9:[e]}(n(o,l)),p[0]===Q9))return p;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+a,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Q9)return c;u="number"==typeof c[1]?c[1]:u+a}}return p}}(e,void 0,[])()}function Y9(e,t,n,r){let o,i,a;"function"==typeof t&&"function"!=typeof n?(i=void 0,a=t,o=n):(i=t,a=n,o=r),q9(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},o)}function X9(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Z9(e){const t=e.spread;return null==t?e.children.length>1:t}function J9(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(eee(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(eee(t.slice(o),o>0,!1)),i.join("")}function eee(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const tee={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=V9(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return X9(e,t);const o={src:V9(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:V9(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return X9(e,t);const o={href:V9(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:V9(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Z9(n[r])}return t}(n):Z9(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=f8(t.children[1]),a=h8(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:J9(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:nee,yaml:nee,definition:nee,footnoteDefinition:nee};function nee(){}const ree={}.hasOwnProperty,oee={};function iee(e,t){e.position&&(t.position=function(e){const t=f8(e),n=h8(e);if(t&&n)return{start:t,end:n}}(e))}function aee(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,U9(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function see(e,t){const n=t.data||{},r=!("value"in t)||ree.call(n,"hProperties")||ree.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function lee(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function cee(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function uee(e,t){const n=function(e,t){const n=t||oee,r=new Map,o=new Map,i=new Map,a={...tee,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=s.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=cee(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=cee(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:aee,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(ree.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=U9(n);return r.children=s.all(e),r}return U9(e)}return(s.options.unknownHandler||see)(s,e,t)},options:n,patch:iee,wrap:lee};return Y9(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||H9,r=e.options.footnoteBackLabel||G9,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=V9(a.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(a);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=i[i.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else i.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...U9(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function dee(e,t){return e&&"run"in e?async function(n,r){const o=uee(n,{file:r,...t});await e.run(o,r)}:function(n,r){return uee(n,{file:r,...e||t})}}function pee(e){if(e)throw e}var hee=u(89710);function fee(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const gee=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');vee(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));return r===o?o=a:o<0&&(o=e.length),e.slice(r,o)},mee=function(...e){let t,n=-1;for(;++n<e.length;)vee(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){vee(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)};function vee(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function yee(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const Aee=["history","path","basename","stem","extname","dirname"];class wee{constructor(e){let t;t=e?yee(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Aee.length;){const e=Aee[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Aee.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?gee(this.path):void 0}set basename(e){_ee(e,"basename"),bee(e,"basename"),this.path=mee(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?function(e){if(vee(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)}(this.path):void 0}set dirname(e){Cee(this.basename,"dirname"),this.path=mee(e||"",this.basename)}get extname(){return"string"==typeof this.path?function(e){vee(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}return i<0||r<0||0===a||1===a&&i===r-1&&i===o+1?"":e.slice(i,r)}(this.path):void 0}set extname(e){if(bee(e,"extname"),Cee(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=mee(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){yee(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!yee(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),_ee(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?gee(this.path,this.extname):void 0}set stem(e){_ee(e,"stem"),bee(e,"stem"),this.path=mee(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new w8(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function bee(e,t){if(e&&e.includes("/"))throw new Error("`"+t+"` cannot be a path: did not expect `/`")}function _ee(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Cee(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Eee=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},See={}.hasOwnProperty;class Oee extends Eee{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return function(...t){const i=e.length>t.length;let a;i&&t.push(r);try{a=e.apply(this,t)}catch(e){if(i&&n)throw e;return r(e)}i||(a&&a.then&&"function"==typeof a.then?a.then(o,r):a instanceof Error?r(a):o(a))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(s,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new Oee;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(hee(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Mee("data",this.frozen),this.namespace[e]=t,this):See.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Mee("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Iee(e),n=this.parser||this.Parser;return Dee("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Dee("process",this.parser||this.Parser),Pee("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=Iee(e),a=n.parse(i);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,function(e,t,r){if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);!function(e){return"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(i)?r.result=i:r.value=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Dee("processSync",this.parser||this.Parser),Pee("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,pee(e),t=r}),Ree("processSync","process",n),t}run(e,t,n){Tee(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=Iee(t);r.run(e,a,function(t,r,a){const s=r||e;t?i(t):o?o(s):n(void 0,s,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){pee(e),n=t,r=!0}),Ree("runSync","run",r),n}stringify(e,t){this.freeze();const n=Iee(t),r=this.compiler||this.Compiler;return Pee("stringify",r),Tee(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Mee("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=hee(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)o(e[t])}}function s(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];fee(a)&&fee(r)&&(r=hee(!0,a,r)),n[o]=[e,r,...i]}}}}const xee=(new Oee).freeze();function Dee(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Pee(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Mee(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tee(e){if(!fee(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ree(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Iee(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new wee(e)}const Fee=[],kee={allowDangerousHtml:!0},Lee=/^(https?|ircs?|mailto|xmpp)$/i,Bee=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Nee(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,a=e.disallowedElements,s=e.rehypePlugins||Fee,l=e.remarkPlugins||Fee,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...kee}:kee,u=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||jee,f=xee().use(T9).use(l).use(dee,c).use(s),g=new wee;"string"==typeof r&&(g.value=r);for(const t of Bee)Object.hasOwn(e,t.from)&&O6((t.from,t.to&&t.to,t.id));const m=f.parse(g);let v=f.runSync(m,g);return o&&(v={type:"element",tagName:"div",properties:{className:o},children:"root"===v.type?v.children:[v]}),Y9(v,function(e,r,o){if("raw"===e.type&&o&&"number"==typeof r)return u?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in L8)if(Object.hasOwn(L8,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=L8[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=h(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!i&&n&&"number"==typeof r&&(i=!n(e,r,o)),i&&o&&"number"==typeof r)return d&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,o,i){const a=Array.isArray(o.children),s=f8(n);return t(r,o,i,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");o=t.jsx,i=t.jsxs,r=function(e,t,n,r){const a=Array.isArray(n.children)?i:o;return r?a(t,n,r):a(t,n)}}var o,i;const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?i8:o8,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=x8(a,e,void 0);return s&&"string"!=typeof s?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}(v,{Fragment:p.Fragment,components:i,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0})}function jee(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||n>-1&&t>n||r>-1&&t>r||Lee.test(e.slice(0,t))?e:""}function Uee(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function Vee(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Hee(e){return"function"==typeof e?e:function(){return e}}const Gee="phrasing",Wee=["autolink","link","image","label"];function zee(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function $ee(e){this.config.enter.autolinkProtocol.call(this,e)}function Kee(e){this.config.exit.autolinkProtocol.call(this,e)}function Qee(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function qee(e){this.config.exit.autolinkEmail.call(this,e)}function Yee(e){this.exit(e)}function Xee(e){!function(e,t){const n=W9(({ignore:["link","linkReference"]}||{}).ignore||[]),r=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Vee(e[0]),Hee(e[1])])}return t}(t);let o=-1;for(;++o<r.length;)q9(e,"text",i);function i(e,t){let i,a=-1;for(;++a<t.length;){const e=t[a],r=i?i.children:void 0;if(n(e,r?r.indexOf(e):void 0,i))return;i=e}if(i)return function(e,t){const n=t[t.length-1],i=r[o][0],a=r[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];i.lastIndex=0;let d=i.exec(e.value);for(;d;){const n=d.index,r={index:d.index,input:d.input,stack:[...t,e]};let o=a(...d,r);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?i.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,c=!0),!i.global)break;d=i.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Zee],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Jee]])}function Zee(e,t,n,r,o){let i="";if(!ete(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=Uee(e,"(");let i=Uee(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function Jee(e,t,n,r){return!(!ete(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ete(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||l7(n)||s7(n))&&(!t||47!==n)}function tte(){this.buffer()}function nte(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rte(){this.buffer()}function ote(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ite(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=I7(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ate(e){this.exit(e)}function ste(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=I7(this.sliceSerialize(e)).toLowerCase(),n.label=t}function lte(e){this.exit(e)}function cte(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),a(),i+=o.move("]"),i}function ute(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");return a+=i.move(r.safe(r.associationId(e),{before:a,after:"]"})),l(),a+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),a+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?pte:dte))),s(),a},footnoteReference:cte},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function dte(e,t,n){return 0===t?e:pte(e,0,n)}function pte(e,t,n){return(n?"":"    ")+e}cte.peek=function(){return"["};const hte=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function fte(e){this.enter({type:"delete",children:[]},e)}function gte(e){this.exit(e)}function mte(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function vte(e){return e.length}function yte(e){return null==e?"":String(e)}function Ate(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function wte(e,t,n){return">"+(n?"":" ")+e}function bte(e,t){return _te(e,t.inConstruct,!0)&&!_te(e,t.notInConstruct,!1)}function _te(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Cte(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&bte(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function Ete(e,t,n){return(n?"":"    ")+e}function Ste(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ote(e){return"&#x"+e.toString(16).toUpperCase()+";"}function xte(e,t,n){const r=o9(e),o=o9(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Dte(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r),s=a.move(o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const c=l.charCodeAt(0),u=xte(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=Ote(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=xte(r.after.charCodeAt(0),d,o);p.inside&&(l=l.slice(0,-1)+Ote(d));const h=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}function Pte(e){return e.value||""}function Mte(e,t,n,r){const o=Ste(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function Tte(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Rte(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function Ite(e,t){const n=N8(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Fte(e,t,n,r){const o=Ste(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Ite(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),l()),c+=a.move(")"),s(),c}function kte(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Lte(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Bte(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}mte.peek=function(){return"~"},Dte.peek=function(e,t,n){return n.options.emphasis||"*"},Pte.peek=function(){return"<"},Mte.peek=function(){return"!"},Tte.peek=function(){return"!"},Rte.peek=function(){return"`"},Fte.peek=function(e,t,n){return Ite(e,n)?"<":"["},kte.peek=function(){return"["};const Nte=W9(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function jte(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r),s=a.move(o+o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const c=l.charCodeAt(0),u=xte(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=Ote(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=xte(r.after.charCodeAt(0),d,o);p.inside&&(l=l.slice(0,-1)+Ote(d));const h=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}jte.peek=function(e,t,n){return n.options.strong||"*"};const Ute={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),wte);return o(),a},break:Cte,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,Ete);return e(),t}const s=n.createTracker(r),l=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const o=Ste(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),a(),c},emphasis:Dte,hardBreak:Cte,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return Y9(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Q9}),Boolean((!e.depth||e.depth<3)&&N8(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=Ote(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:Pte,image:Mte,imageReference:Tte,inlineCode:Rte,link:Fte,linkReference:kte,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Lte(n);const s=e.ordered?"."===a?")":".":function(e){const t=Lte(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Bte(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||Lte(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?i:i+" ".repeat(a-i.length))+e});return l(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some(function(e){return Nte(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:jte,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Bte(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Vte(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Hte(e){this.exit(e),this.data.inTable=void 0}function Gte(e){this.enter({type:"tableRow",children:[]},e)}function Wte(e){this.exit(e)}function zte(e){this.enter({type:"tableCell",children:[]},e)}function $te(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Kte));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Kte(e,t){return"|"===t?t:e}function Qte(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Ute.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=l(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=s([l(e,n,r)]);return o.slice(0,o.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||vte,i=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const a=yte(e[u][i]);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===l[i]||e>l[i])&&(l[i]=e)}t.push(a)}a[u]=t,s[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)i[d]=Ate(r[d]);else{const e=Ate(r);for(;++d<c;)i[d]=e}d=-1;const p=[],h=[];for(;++d<c;){const e=i[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>l[d]&&(l[d]=o),h[d]=o),p[d]=a}a.splice(1,0,p),s.splice(1,0,h),u=-1;const f=[];for(;++u<a.length;){const e=a[u],t=s[u];d=-1;const r=[];for(;++d<c;){const o=e[d]||"";let a="",s="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=i[d];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===c-1||r.push("|")}f.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function l(e,t,n){const r=e.children;let o=-1;const i=[],s=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return s(),i}}function qte(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Yte(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Xte(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(a);let l=Ute.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}const Zte={tokenize:function(e,t,n){let r=0;return function t(i){return(87===i||119===i)&&r<3?(r++,e.consume(i),t):46===i&&3===r?(e.consume(i),o):n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},Jte={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(tne,l,s)(t):null===t||i7(t)||l7(t)||45!==t&&s7(t)?l(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function l(e){return o||r||!i?n(e):t(e)}},partial:!0},ene={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(tne,t,i)(a):null===a||i7(a)||l7(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},tne={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||i7(a)||l7(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||i7(e)||l7(e)?t(e):r(e)}function i(e){return X8(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):X8(t)?(e.consume(t),a):n(t)}},partial:!0},nne={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Z8(e)?n(e):t(e)}},partial:!0},rne={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!lne.call(r,r.previous)||pne(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Zte,e.attempt(Jte,e.attempt(ene,o),n),n)(t))};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:lne},one={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){return 72!==t&&104!==t||!cne.call(r,r.previous)||pne(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a)};function a(t){if(X8(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){return null===t||e7(t)||i7(t)||l7(t)||s7(t)?n(t):e.attempt(Jte,e.attempt(ene,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:cne},ine={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){return dne(t)&&une.call(r,r.previous)&&!pne(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)):n(t)};function a(t){return dne(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(nne,c,l)(t):45===t||95===t||Z8(t)?(i=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),o=!0,s}function c(a){return i&&o&&X8(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:une},ane={};let sne=48;for(;sne<123;)ane[sne]=ine,sne++,58===sne?sne=65:91===sne&&(sne=97);function lne(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||i7(e)}function cne(e){return!X8(e)}function une(e){return!(47===e||dne(e))}function dne(e){return 43===e||45===e||46===e||95===e||Z8(e)}function pne(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}ane[43]=ine,ane[45]=ine,ane[46]=ine,ane[95]=ine,ane[72]=[ine,one],ane[104]=[ine,one],ane[87]=[ine,rne],ane[119]=[ine,rne];const hne={tokenize:function(e,t,n){const r=this;return u7(e,function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function fne(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const s=I7(r.sliceSerialize({start:a.end,end:r.now()}));return 94===s.codePointAt(0)&&i.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function gne(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...l),e}function mne(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!i||null===s||91===s||i7(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(I7(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return i7(s)||(i=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function vne(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||i7(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=I7(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return i7(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),u7(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function yne(e,t,n){return e.check(f7,t,e.attempt(hne,t,n))}function Ane(e){e.exit("gfmFootnoteDefinition")}function wne(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){return 126===o&&"characterEscape"!==i[i.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(i){const l=o9(o);if(126===i)return a>1?r(i):(e.consume(i),a++,s);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=o9(i);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&V8(a,a.length,0,Z7(s,e.slice(r+1,n),t)),V8(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),V8(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class bne{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0!==n||0!==r.length){for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function _ne(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function Cne(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?w:s;return i===w&&r.parser.lazy[r.now().line]?n(e):i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(o=!0,a+=1),l(e)}(t)}function l(t){return null===t?n(t):o7(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):a7(t)?u7(e,l,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||i7(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,a7(t)?u7(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?f(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):A(t)}function h(t){return a7(t)?u7(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(a+=1,g(t)):null===t||o7(t)?y(t):A(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):A(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return a7(t)?u7(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?p(n):(null===n||o7(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):A(n)}function A(e){return n(e)}function w(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||o7(n)?(e.exit("tableRow"),t(n)):a7(n)?u7(e,b,"whitespace")(n):(e.enter("data"),_(n))}function _(t){return null===t||124===t||i7(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?C:_)}function C(t){return 92===t||124===t?(e.consume(t),_):_(t)}}function Ene(e,t){let n,r,o,i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new bne;for(;++i<e.length;){const h=e[i],f=h[1];"enter"===h[0]?"tableHead"===f.type?(u=!1,0!==d&&(One(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(a=!0,o=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],o=Sne(p,t,l,s,void 0,o)),l=c,c=[l[1],i,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],o=Sne(p,t,l,s,void 0,o),l=[0,0,0,0]),c[2]=i)):"tableHead"===f.type?(u=!0,d=i):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=i,0!==l[1]?(c[0]=c[1],o=Sne(p,t,l,s,i,o)):0!==c[1]&&(o=Sne(p,t,c,s,i,o)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=i)}for(0!==d&&One(p,t,d,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=_ne(t.events,i))}return e}function Sne(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},xne(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=xne(t.events,n[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=xne(t.events,n[2]),i=xne(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},xne(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function One(e,t,n,r,o){const i=[],a=xne(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function xne(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Dne={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o):n(t)};function o(t){return i7(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return o7(r)?t(r):a7(r)?e.check({tokenize:Pne},t,n)(r):n(r)}}};function Pne(e,t,n){return u7(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Mne={};function Tne(e){const t=e||Mne,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Q8([{text:ane},{document:{91:{name:"gfmFootnoteDefinition",tokenize:vne,continuation:{tokenize:yne},exit:Ane}},text:{91:{name:"gfmFootnoteCall",tokenize:mne},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:fne,resolveTo:gne}}},wne(e),{flow:{null:{name:"table",tokenize:Cne,resolveAll:Ene}}},{text:{91:Dne}}])}(t)),o.push([{transforms:[Xee],enter:{literalAutolink:zee,literalAutolinkEmail:$ee,literalAutolinkHttp:$ee,literalAutolinkWww:$ee},exit:{literalAutolink:Yee,literalAutolinkEmail:qee,literalAutolinkHttp:Kee,literalAutolinkWww:Qee}},{enter:{gfmFootnoteCallString:tte,gfmFootnoteCall:nte,gfmFootnoteDefinitionLabelString:rte,gfmFootnoteDefinition:ote},exit:{gfmFootnoteCallString:ite,gfmFootnoteCall:ate,gfmFootnoteDefinitionLabelString:ste,gfmFootnoteDefinition:lte}},{canContainEols:["delete"],enter:{strikethrough:fte},exit:{strikethrough:gte}},{enter:{table:Vte,tableData:zte,tableHeader:zte,tableRow:Gte},exit:{codeText:$te,table:Hte,tableData:Wte,tableHeader:Wte,tableRow:Wte}},{exit:{taskListCheckValueChecked:qte,taskListCheckValueUnchecked:qte,paragraph:Yte}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Gee,notInConstruct:Wee},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Gee,notInConstruct:Wee},{character:":",before:"[ps]",after:"\\/",inConstruct:Gee,notInConstruct:Wee}]},ute(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:hte}],handlers:{delete:mte}},Qte(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Xte}}]}}(t))}const Rne=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Ine=Object.hasOwnProperty;function Fne(e){return"text"===e.type?e.value:"children"in e?kne(e):""}function kne(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=Fne(e.children[t]);return n.join("")}const Lne={},Bne=new class{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let r=function(e,t){return"string"!=typeof e?"":(t||(e=e.toLowerCase()),e.replace(Rne,"").replace(/ /g,"-"))}(e,!0===t);const o=r;for(;Ine.call(n.occurrences,r);)n.occurrences[o]++,r=o+"-"+n.occurrences[o];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};function Nne(e){const t=(e||Lne).prefix||"";return function(e){Bne.reset(),Y9(e,"element",function(e){(function(e){const t="element"===e.type?e.tagName.toLowerCase():"",n=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0})(e)&&!e.properties.id&&(e.properties.id=t+Bne.slug(function(e){return"children"in e?kne(e):"value"in e?e.value:""}(e)))})}}const jne=()=>e=>{const t={};Y9(e,"definition",e=>{t[e.identifier]=e.url}),Y9(e,"image",e=>{e.url.startsWith("image_ref_")&&t[e.url.toLowerCase()]&&(e.url=t[e.url.toLowerCase()])})},Une=/(@((gv)?icon)-([^\s\[]+))(\[.*?\])*/g;function Vne(e,t,n){const r=e.slice(0,t).split("\n"),o=e.slice(0,n).split("\n");return{type:"text",value:e.slice(t,n),position:{start:{line:r.length,column:r[r.length-1].length+1},end:{line:o.length,column:o[o.length-1].length+1}}}}const Hne=()=>e=>{Y9(e,"text",(e,t,n)=>{if("code"==n.tagName||"pre"==n.tagName)return;const r=[];let o,i,a,s=0;for(;null!==(o=Une.exec(e.value));){o.index!==s&&r.push(Vne(e.value,s,o.index)),s=o.index+o[0].length;const t=/(@((gv)?icon)-([^\s\[]+))((\[.*?\])*)/g.exec(o[0]);i=t[4];let n={};try{n=t[5]?.replace(/^\[(.*)\]$/,"$1").split("][").reduce((e,t)=>{const n=t.split("=");let r=n[1];return r?.indexOf(";")>-1&&(r=r.split(";").reduce((e,t)=>{const n=t.split(":");return e[n[0]]=n[1],e},{})),e[n[0]]=r??!0,e},{})}catch(e){console.error("Error parsing markdown props for icon",e)}if(Do.includes(i)){const e={properties:{icon:i,tag:"i",size:"20",style:{opacity:"0.8"},...n},type:"element",tagName:"icon",value:o[0],children:[]};r.push(e)}else r.push({type:"element",tagName:"del",properties:{className:"icon"},children:[{type:"text",value:t[1]}]})}s!==e.value.length&&(a=Vne(e.value,s,e.value.length),r.push(a));const l=n.children.slice(t+1);n.children=n.children.slice(0,t),n.children=n.children.concat(r),n.children=n.children.concat(l)})},Gne=({children:e,href:t})=>t.startsWith("#")?window.location.pathname.includes("mocha")?(0,p.jsx)("a",{href:`${window.location.pathname}${t}`,children:e}):window.location.pathname.includes("wrapper")?(0,p.jsx)("a",{href:`${window.top.location.pathname}${t}`,children:e}):(0,p.jsx)("a",{href:t,children:e}):(0,p.jsx)("a",{href:t,target:"_blank",rel:"noreferrer",children:e}),Wne=({source:e})=>(0,p.jsx)("div",{className:"gv-markdown",children:(0,p.jsx)(Nee,{skipHtml:!0,components:{icon:Fo,a:Gne},remarkPlugins:[[Tne,{}],[jne,{}]],rehypePlugins:[Hne,Nne],urlTransform:e=>e,children:e})}),zne=s.GVDebug.extend("modal"),$ne=[{label:"Cancel",style:"secondary",result:!1},{label:"OK",style:"primary2",result:!0}],Kne=e=>{const[t,n]=(0,h.useState)(!0),r=(0,h.useRef)(zne.extend(e.id));let{style:o,type:i="default"}=e;const{id:a,children:s,className:l,footer:c,title:u,buttons:d}=e;"string"==typeof o&&(i=o,o={});const g=Oo()({"gv-modal":!0,[`gv-modal-${i||"default"}`]:!0,[l]:l}),m=(0,h.useCallback)((e,t)=>{r.current("setValid",e,t),n(e)},[]),v=(0,h.useCallback)(async(t,n=null)=>(r.current("onClose",t,n),e.onClose&&e.onClose(t,e,null,n)),[e]),y=(0,h.useCallback)(t=>(r.current("addChildClose",t),e.addChildClose&&e.addChildClose(t)),[e]),A=f().Children.map(s,e=>"string"==typeof e?e:f().isValidElement(e)?f().cloneElement(e,{setValid:m,close:v,onClose:y}):e),w=f().Children.map(c,e=>"string"==typeof e?e:f().isValidElement(e)?f().cloneElement(e,{close:v}):e);return(0,p.jsx)(_c,{children:(0,p.jsxs)("div",{className:g,style:o,children:[(0,p.jsx)("header",{children:(0,p.jsxs)(_c,{children:[u,(0,p.jsx)(ko,{onClick:()=>v(!1,!1),id:`${a}_modal_close`,icon:"interface-close",className:"gv-button-close",style:"close"})]})}),(0,p.jsx)("main",{children:(0,p.jsx)(_c,{children:A})}),(0,p.jsx)("footer",{children:(0,p.jsxs)(_c,{children:[d&&(0,p.jsx)("div",{className:"gv-modal-buttons",children:d.map((e,n)=>(0,p.jsx)(ko,{id:`${a}_modal_${n}`,onClick:()=>v(e.result),style:e.style,text:!0,disabled:!1!==e.result&&!t,children:e.label},`model-${n}`))}),c&&(0,p.jsx)("div",{className:"gv-modal-footer",children:w})]})})]})})},Qne=e=>{const{code:t,setValid:n,confirmText:r,additionalContent:o,close:i}=e,[a]=(0,h.useState)(()=>`0000${crypto.getRandomValues(new Uint32Array(1))[0]}`.slice(-4)),[s,l]=(0,h.useState)(""),c=(0,h.useRef)(null);return(0,h.useEffect)(()=>{n(!t)},[t,n]),(0,h.useEffect)(()=>{t&&c.current&&c.current.focus()},[t]),(0,p.jsxs)("div",{className:"gv-modal-confirm",children:[o,(0,p.jsxs)("div",{style:{marginBottom:"10px"},children:["Are you sure you want to ",(0,p.jsx)("strong",{children:r}),"?"]}),t&&(0,p.jsxs)("div",{children:["Please enter code ",(0,p.jsx)("strong",{children:a})," to confirm",(0,p.jsx)("form",{onSubmit:e=>(a===s&&i(!0),e.preventDefault(),!1),style:{marginTop:"10px"},children:(0,p.jsx)(pL,{inputRef:c,value:s,onChange:e=>{l(e),n(e===a)},style:"single",placeholder:"Enter code..."})})]})]})},qne=e=>{const{style:t,label:n,value:r,secondaryValue1:o,secondaryValue2:i}=e,a="string"==typeof r?r:`${r}%`,s="100%"===a?"meterBar-success":`meterBar-${t||"default"}`,l="string"==typeof r?o:`${o}%`,c="string"==typeof r?i:`${i}%`;return(0,p.jsxs)("div",{className:"gv-progressBar",children:[(0,p.jsxs)("div",{className:"multiContainer",children:[(0,p.jsx)("div",{className:i?"gv-multi-progressBar-sml":"gv-multi-progressBar",children:(0,p.jsx)("span",{className:"secondaryBar",style:{width:l}})}),(0,p.jsx)("div",{className:i?"gv-multi-progressBar-sml":"",children:(0,p.jsx)("span",{className:"secondaryBar",style:{width:c}})})]}),(0,p.jsx)("span",{className:s,style:{width:a}}),(0,p.jsx)("div",{className:"meterTextContainer",children:(0,p.jsx)("span",{className:"meterText",children:n||a})})]})},Yne={success:{icon:"notifications-success-colour",color:"#000"},warning:{icon:"notifications-warning",color:"#fff"},danger:{icon:"notifications-warning",color:"#fff"}},Xne=({className:e,style:t,variant:n=t,message:r,showConfirmation:o,confirmationProps:i})=>{const{onConfirm:a,onCancel:s,customIcons:l}=i||{},c=ds(),u=(0,h.useRef)(null);return(0,h.useEffect)(()=>{const e=document.getElementById("unbound-confirm-toast");e&&null==u.current&&(e.id=`bound-confirm-toast-${c}`,u.current=e)}),(0,p.jsxs)("div",{className:"gv-notification",children:[(0,p.jsx)(lL,{id:`tooltip-${c}-ok`,children:i?.tooltips?.ok??"OK"}),(0,p.jsx)(lL,{id:`tooltip-${c}-cancel`,children:i?.tooltips?.cancel??"Cancel"}),(0,p.jsx)("div",{className:Oo()("icon",`icon-${n}`,e),children:(0,p.jsx)(Fo,{active:!0,size:"30",...Yne[n]})}),(0,p.jsx)("div",{className:"message",children:r}),o&&(0,p.jsxs)("div",{style:{display:"flex",gap:"5%",margin:"auto",padding:"0 10px 0 0"},children:[(0,p.jsx)("span",{"data-tip":!0,"data-for":`tooltip-${c}-ok`,children:(0,p.jsx)(ko,{style:"success",icon:l?.ok??"interface-tick",onClick:()=>{a?.(),u.current?.click()}})}),(0,p.jsx)("span",{"data-tip":!0,"data-for":`tooltip-${c}-cancel`,children:(0,p.jsx)(ko,{style:"danger",icon:l?.cancel??"interface-close",onClick:()=>{s?.(),u.current?.click()}})})]})]})};function Zne(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Zne(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Jne=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zne(e))&&(r&&(r+=" "),r+=t);return r},ere=e=>"number"==typeof e&&!isNaN(e),tre=e=>"string"==typeof e,nre=e=>"function"==typeof e,rre=e=>tre(e)||nre(e)?e:null,ore=e=>(0,h.isValidElement)(e)||tre(e)||nre(e)||ere(e);function ire(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(e){let{children:a,position:s,preventExitTransition:l,done:c,nodeRef:u,isIn:d,playToast:p}=e;const f=r?`${t}--${s}`:t,g=r?`${n}--${s}`:n,m=(0,h.useRef)(0);return(0,h.useLayoutEffect)(()=>{const e=u.current,t=f.split(" "),n=r=>{r.target===u.current&&(p(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,h.useEffect)(()=>{const e=u.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}(e,c,i):c()};d||(l?t():(m.current=1,e.className+=` ${g}`,e.addEventListener("animationend",t)))},[d]),h.createElement(h.Fragment,null,a)}}function are(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const sre=new Map;let lre=[];const cre=new Set,ure=e=>cre.forEach(t=>t(e)),dre=()=>sre.size>0;function pre(e,t){var n;if(t)return!(null==(n=sre.get(t))||!n.isToastActive(e));let r=!1;return sre.forEach(t=>{t.isToastActive(e)&&(r=!0)}),r}function hre(e,t){ore(e)&&(dre()||lre.push({content:e,options:t}),sre.forEach(n=>{n.buildToast(e,t)}))}function fre(e,t){sre.forEach(n=>{null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===n.id&&n.toggle(e,null==t?void 0:t.id):n.toggle(e,null==t?void 0:t.id)})}function gre(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:i,className:a,style:s,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:p}=e;const f=i||l&&0===c,g={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${c})`);const m=Jne("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),v=nre(a)?a({rtl:u,type:o,defaultClassName:m}):Jne(m,a),y={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&r()}};return h.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},h.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${o}`}),h.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:v,style:g,...y}))}let mre=1;const vre=()=>""+mre++;function yre(e){return e&&(tre(e.toastId)||ere(e.toastId))?e.toastId:vre()}function Are(e,t){return hre(e,t),t.toastId}function wre(e,t){return{...t,type:t&&t.type||e,toastId:yre(t)}}function bre(e){return(t,n)=>Are(t,wre(e,n))}function _re(e,t){return Are(e,wre("default",t))}_re.loading=(e,t)=>Are(e,wre("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),_re.promise=function(e,t,n){let r,{pending:o,error:i,success:a}=t;o&&(r=tre(o)?_re.loading(o,n):_re.loading(o.render,{...n,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,o)=>{if(null==t)return void _re.dismiss(r);const i={type:e,...s,...n,data:o},a=tre(t)?{render:t}:t;return r?_re.update(r,{...i,...a}):_re(a.render,{...i,...a}),o},c=nre(e)?e():e;return c.then(e=>l("success",a,e)).catch(e=>l("error",i,e)),c},_re.success=bre("success"),_re.info=bre("info"),_re.error=bre("error"),_re.warning=bre("warning"),_re.warn=_re.warning,_re.dark=(e,t)=>Are(e,wre("default",{theme:"dark",...t})),_re.dismiss=function(e){!function(e){var t;if(dre()){if(null==e||tre(t=e)||ere(t))sre.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var n;(null==(n=sre.get(e.containerId))?void 0:n.removeToast(e.id))||sre.forEach(t=>{t.removeToast(e.id)})}}else lre=lre.filter(t=>null!=e&&t.options.toastId!==e)}(e)},_re.clearWaitingQueue=function(e){void 0===e&&(e={}),sre.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},_re.isActive=pre,_re.update=function(e,t){void 0===t&&(t={});const n=((e,t)=>{var n;let{containerId:r}=t;return null==(n=sre.get(r||1))?void 0:n.toasts.get(e)})(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:vre()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,Are(a,i)}},_re.done=e=>{_re.update(e,{progress:1})},_re.onChange=function(e){return cre.add(e),()=>{cre.delete(e)}},_re.play=e=>fre(!0,e),_re.pause=e=>fre(!1,e);const Cre="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,Ere=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return h.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},Sre={info:function(e){return h.createElement(Ere,{...e},h.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return h.createElement(Ere,{...e},h.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return h.createElement(Ere,{...e},h.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return h.createElement(Ere,{...e},h.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return h.createElement("div",{className:"Toastify__spinner"})}},Ore=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:i}=function(e){const[t,n]=(0,h.useState)(!1),[r,o]=(0,h.useState)(!1),i=(0,h.useRef)(null),a=(0,h.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:c,onClick:u,closeOnClick:d}=e;var p,f;function g(){n(!0)}function m(){n(!1)}function v(n){const r=i.current;a.canDrag&&r&&(a.didMove=!0,t&&m(),a.delta="x"===e.draggableDirection?n.clientX-a.start:n.clientY-a.start,a.start!==n.clientX&&(a.canCloseOnClick=!1),r.style.transform=`translate3d(${"x"===e.draggableDirection?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,r.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function y(){document.removeEventListener("pointermove",v),document.removeEventListener("pointerup",y);const t=i.current;if(a.canDrag&&a.didMove&&t){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}null==(f=sre.get((p={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))||f.setToggle(p.id,p.fn),(0,h.useEffect)(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);const A={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){a.didMove=!1,document.addEventListener("pointermove",v),document.addEventListener("pointerup",y);const n=i.current;a.canCloseOnClick=!0,a.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(a.start=t.clientX,a.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(a.start=t.clientY,a.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){const{top:n,bottom:r,left:o,right:a}=i.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=o&&t.clientX<=a&&t.clientY>=n&&t.clientY<=r?m():g()}};return s&&l&&(A.onMouseEnter=m,e.stacked||(A.onMouseLeave=g)),d&&(A.onClick=e=>{u&&u(e),a.canCloseOnClick&&c()}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:A}}(e),{closeButton:a,children:s,autoClose:l,onClick:c,type:u,hideProgressBar:d,closeToast:p,transition:f,position:g,className:m,style:v,bodyClassName:y,bodyStyle:A,progressClassName:w,progressStyle:b,updateId:_,role:C,progress:E,rtl:S,toastId:O,deleteToast:x,isIn:D,isLoading:P,closeOnClick:M,theme:T}=e,R=Jne("Toastify__toast",`Toastify__toast-theme--${T}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":S},{"Toastify__toast--close-on-click":M}),I=nre(m)?m({rtl:S,position:g,type:u,defaultClassName:R}):Jne(R,m),F=function(e){let{theme:t,type:n,isLoading:r,icon:o}=e,i=null;const a={theme:t,type:n};return!1===o||(nre(o)?i=o({...a,isLoading:r}):(0,h.isValidElement)(o)?i=(0,h.cloneElement)(o,a):r?i=Sre.spinner():(e=>e in Sre)(n)&&(i=Sre[n](a))),i}(e),k=!!E||!l,L={closeToast:p,type:u,theme:T};let B=null;return!1===a||(B=nre(a)?a(L):(0,h.isValidElement)(a)?(0,h.cloneElement)(a,L):function(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return h.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},h.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},h.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(L)),h.createElement(f,{isIn:D,done:x,position:g,preventExitTransition:n,nodeRef:r,playToast:i},h.createElement("div",{id:O,onClick:c,"data-in":D,className:I,...o,style:v,ref:r},h.createElement("div",{...D&&{role:C},className:nre(y)?y({type:u}):Jne("Toastify__toast-body",y),style:A},null!=F&&h.createElement("div",{className:Jne("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!P})},F),h.createElement("div",null,s)),B,h.createElement(gre,{..._&&!k?{key:`pb-${_}`}:{},rtl:S,theme:T,delay:l,isRunning:t,isIn:D,closeToast:p,hide:d,type:u,style:b,className:w,controlledProgress:k,progress:E||0})))},xre=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Dre=ire(xre("bounce",!0)),Pre=(ire(xre("slide",!0)),ire(xre("zoom")),ire(xre("flip")),{position:"top-right",transition:Dre,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"});function Mre(e){let t={...Pre,...e};const n=e.stacked,[r,o]=(0,h.useState)(!0),i=(0,h.useRef)(null),{getToastToRender:a,isToastActive:s,count:l}=function(e){const{subscribe:t,getSnapshot:n,setProps:r}=(0,h.useRef)(function(e){const t=e.containerId||1;return{subscribe(n){const r=function(e,t,n){let r=1,o=0,i=[],a=[],s=[],l=t;const c=new Map,u=new Set,d=()=>{s=Array.from(c.values()),u.forEach(e=>e())},p=e=>{a=null==e?[]:a.filter(t=>t!==e),d()},f=e=>{const{toastId:t,onOpen:r,updateId:o,children:i}=e.props,s=null==o;e.staleId&&c.delete(e.staleId),c.set(t,e),a=[...a,e.props.toastId].filter(t=>t!==e.staleId),d(),n(are(e,s?"added":"updated")),s&&nre(r)&&r((0,h.isValidElement)(i)&&i.props)};return{id:e,props:l,observe:e=>(u.add(e),()=>u.delete(e)),toggle:(e,t)=>{c.forEach(n=>{null!=t&&t!==n.props.toastId||nre(n.toggle)&&n.toggle(e)})},removeToast:p,toasts:c,clearQueue:()=>{o-=i.length,i=[]},buildToast:(t,a)=>{if((t=>{let{containerId:n,toastId:r,updateId:o}=t;const i=n?n!==e:1!==e,a=c.has(r)&&null==o;return i||a})(a))return;const{toastId:s,updateId:u,data:g,staleId:m,delay:v}=a,y=()=>{p(s)},A=null==u;A&&o++;const w={...l,style:l.toastStyle,key:r++,...Object.fromEntries(Object.entries(a).filter(e=>{let[t,n]=e;return null!=n})),toastId:s,updateId:u,data:g,closeToast:y,isIn:!1,className:rre(a.className||l.toastClassName),bodyClassName:rre(a.bodyClassName||l.bodyClassName),progressClassName:rre(a.progressClassName||l.progressClassName),autoClose:!a.isLoading&&(b=a.autoClose,_=l.autoClose,!1===b||ere(b)&&b>0?b:_),deleteToast(){const e=c.get(s),{onClose:t,children:r}=e.props;nre(t)&&t((0,h.isValidElement)(r)&&r.props),n(are(e,"removed")),c.delete(s),o--,o<0&&(o=0),i.length>0?f(i.shift()):d()}};var b,_;w.closeButton=l.closeButton,!1===a.closeButton||ore(a.closeButton)?w.closeButton=a.closeButton:!0===a.closeButton&&(w.closeButton=!ore(l.closeButton)||l.closeButton);let C=t;(0,h.isValidElement)(t)&&!tre(t.type)?C=(0,h.cloneElement)(t,{closeToast:y,toastProps:w,data:g}):nre(t)&&(C=t({closeToast:y,toastProps:w,data:g}));const E={content:C,props:w,staleId:m};l.limit&&l.limit>0&&o>l.limit&&A?i.push(E):ere(v)?setTimeout(()=>{f(E)},v):f(E)},setProps(e){l=e},setToggle:(e,t)=>{c.get(e).toggle=t},isToastActive:e=>a.some(t=>t===e),getSnapshot:()=>l.newestOnTop?s.reverse():s}}(t,e,ure);sre.set(t,r);const o=r.observe(n);return lre.forEach(e=>hre(e.content,e.options)),lre=[],()=>{o(),sre.delete(t)}},setProps(e){var n;null==(n=sre.get(t))||n.setProps(e)},getSnapshot(){var e;return null==(e=sre.get(t))?void 0:e.getSnapshot()}}}(e)).current;r(e);const o=(0,h.useSyncExternalStore)(t,n,n);return{getToastToRender:function(e){if(!o)return[];const t=new Map;return o.forEach(e=>{const{position:n}=e.props;t.has(n)||t.set(n,[]),t.get(n).push(e)}),Array.from(t,t=>e(t[0],t[1]))},isToastActive:pre,count:null==o?void 0:o.length}}(t),{className:c,style:u,rtl:d,containerId:p}=t;function f(e){const t=Jne("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return nre(c)?c({position:e,rtl:d,defaultClassName:t}):Jne(t,rre(c))}function g(){n&&(o(!0),_re.play())}return Cre(()=>{if(n){var e;const n=i.current.querySelectorAll('[data-in="true"]'),o=12,a=null==(e=t.position)?void 0:e.includes("top");let s=0,l=0;Array.from(n).reverse().forEach((e,t)=>{const n=e;n.classList.add("Toastify__toast--stacked"),t>0&&(n.dataset.collapsed=`${r}`),n.dataset.pos||(n.dataset.pos=a?"top":"bot");const i=s*(r?.2:1)+(r?0:o*t);n.style.setProperty("--y",`${a?i:-1*i}px`),n.style.setProperty("--g",`${o}`),n.style.setProperty("--s",""+(1-(r?l:0))),s+=n.offsetHeight,l+=.025})}},[r,l,n]),h.createElement("div",{ref:i,className:"Toastify",id:p,onMouseEnter:()=>{n&&(o(!1),_re.pause())},onMouseLeave:g},a((e,t)=>{const r=t.length?{...u}:{...u,pointerEvents:"none"};return h.createElement("div",{className:f(e),style:r,key:`container-${e}`},t.map(e=>{let{content:t,props:r}=e;return h.createElement(Ore,{...r,stacked:n,collapseAll:g,isIn:s(r.toastId,r.containerId),style:r.style,key:`toast-${r.key}`},t)}))}))}const Tre=e=>{const t=(0,h.useRef)(null);return(0,p.jsx)(Mre,{...e,closeButton:e=>(0,p.jsx)("input",{id:"unbound-confirm-toast",hidden:!0,ref:t,onClick:t=>e.closeToast(t)})})},Rre=(e,t=!1)=>({error:(n,r,o)=>_re((0,p.jsx)(Xne,{variant:"danger",message:n,confirmationProps:r,showConfirmation:t}),{...o,containerId:e}),success:(n,r,o)=>_re((0,p.jsx)(Xne,{variant:"success",message:n,confirmationProps:r,showConfirmation:t}),{...o,containerId:e}),warning:(n,r,o)=>_re((0,p.jsx)(Xne,{variant:"warning",message:n,confirmationProps:r,showConfirmation:t}),{...o,containerId:e})}),Ire=Rre("gv-layout-toast-container"),Fre=Rre("gv-layout-toast-confirm-container",!0);var kre;!function(e){e.Off="Off",e.Low="Low",e.High="High"}(kre||(kre={}));const Lre=e=>{const{style:t,className:n,panelText:r,onAir:o}=e,i=Oo()({"gv-onAir-display":!0,[`gv-onAir-display-${t}`]:t,"gv-onAir-display-high":o===kre.High,"gv-onAir-display-low":o===kre.Low,[n]:n});return(0,p.jsx)("div",{className:i,children:(0,p.jsx)("div",{className:"panelText",children:r??"ON AIR"})})},Bre=e=>{const{title:t,children:n,type:r,cellHeight:o,cellWidth:i,rowGap:a,columnGap:s}=e,l={cellHeight:o,cellWidth:i,rowGap:a,columnGap:s,children:n,column:"column"===r};return(0,p.jsxs)("div",{className:Oo()("gv-pane",`gv-pane-${r??"default"}`,e.className),children:[(0,p.jsx)("div",{className:"gv-pane-title",children:t}),(0,p.jsx)("div",{className:Oo()("gv-pane-content",`gv-pane-content-${r??"default"}`),children:"grid"===r||"column"===r?(0,p.jsx)(Ra,{...l}):n})]})},Nre=({panels:e})=>{const[t,n]=(0,h.useState)(()=>{const t={};for(const n of e)n&&(t[n.id]=!!n.open||!1);return t}),r=(0,h.useCallback)(e=>{n(t=>({...t,[e]:!t[e]}))},[]);return(0,p.jsx)("div",{children:e.map(e=>{if(!e)return null;const{children:n,id:o,buttons:i=[],...a}=e,s=[{action:()=>r(o),icon:!0===t[o]?"arrows-up":"arrows-down"},...i];return(0,p.jsx)(C6,{...a,buttons:s,className:Oo()({"gv-panel-collapsable":!0,["gv-panel-collapsable-"+(!0===t[o]?"expanded":"collapsed")]:!0}),children:n},`collapsable-${o}`)})})},jre=e=>(0,p.jsxs)("div",{className:Oo()({"gv-panel-input":!0,"gv-panel-input-fill":e.fill}),children:[e.label&&(0,p.jsx)("div",{className:"gv-panel-input-label",children:e.label}),(0,p.jsx)("div",{className:"gv-panel-input-body",style:{maxWidth:e.maxWidth},children:e.children})]}),Ure=e=>(0,p.jsx)("div",{className:"gv-panel-inputs",children:e.children}),Vre=e=>{const{src:t,alt:n,children:r}=e,o=h.Children.map(r,e=>(0,h.cloneElement)(e,{className:"thumb"}));return(0,p.jsx)("div",{className:"gv-panel-keyframe",children:r?o:(0,p.jsx)("img",{className:"thumb",src:t,alt:n})})},Hre=e=>{const{style:t,label:n,className:r,isProgressBar:o=!0}=e,i="string"==typeof e.value?e.value:`${e.value}%`,a="100%"===i&&o?"meterBar-success":`meterBar-${t||"default"}`;return(0,p.jsxs)("div",{className:`gv-progressBar ${r??""}`,children:[(0,p.jsx)("span",{className:a,style:{width:i}}),(0,p.jsx)("div",{className:"meterTextContainer",children:(0,p.jsx)("span",{className:"meterText",children:n||i})})]})},Gre=[{blue:["#408Fe0","#3685D6"]},{red:["#D35B66","#C95166"]},{green:["#4FA86B","#3B9457"]},{grey:["#414954","#3C444F"]},{purple:["#39578B","#2F4D81"]},{yellow:["#FFCB75","#FAAB7C"]},{darkBlue:["#39578B","#2F4D81"]}],Wre=e=>{const{currentValue:t,min:n,max:r,diameter:o,onChange:i,onMouseUp:a,step:s,theme:l="blue",subText:c,onUpdate:u,default:d,title:f,fontSize:g,disabled:m,onWheelAdjustOnly:v=!1,interactionDelay:y=100,multiplier:A=1,displayValue:w,action:b}=e,_=h.useRef(null),C=h.useRef(null),E=h.useRef(null),S=h.useRef(Math.random()),[O,x]=h.useState((()=>{let e=t;return null==e&&(void 0!==d?void 0!==n&&void 0!==r?e=d>n&&d<r?d:n:void 0!==n&&d<n?e=n:void 0!==r&&d>r&&(e=r):e=0),e})()),[D,P]=h.useState(!1),M=h.useRef(O),T=h.useRef(D);h.useEffect(()=>{M.current=O},[O]),h.useEffect(()=>{T.current=D},[D]),h.useEffect(()=>{D||x(null!=t?t:d??(n+r)/2)},[t,d,n,r]),h.useEffect(()=>{_.current&&_.current.focus()},[O]);const R=h.useRef(null);R.current=(0,Na.throttle)(e=>{if(!T.current)return;const t=M.current;e.movementX>0?j(t)<135&&N("up"):e.movementX<0?j(t)>-135&&N("down"):e.movementY<0?N("up"):N("down")},50);const I=h.useRef(null);I.current=()=>{a&&a(b,M.current),F()};const F=()=>{$(),window.removeEventListener("pointermove",k),window.removeEventListener("pointerup",L),window.removeEventListener("blur",B)},k=h.useCallback(e=>{R.current&&R.current(e)},[]),L=h.useCallback(()=>{I.current&&I.current()},[]),B=h.useCallback(()=>{I.current&&I.current()},[]),N=e=>{"up"===e?_.current?.stepUp():"down"===e&&_.current?.stepDown(),z(_.current?.value)},j=e=>{const t=(n+r)/2,o=r-t;return e>t?(e-t)/o*135:e<t?(t-e)/o*-135:0},U=e=>{e.stopPropagation(),P(!0),$(),e.deltaY>0?j(O)>-135&&N("down"):j(O)<135&&N("up")},V=e=>{try{e.currentTarget.setPointerCapture?.(e.pointerId)}catch{}P(!0),window.addEventListener("pointermove",k),window.addEventListener("pointerup",L),window.addEventListener("blur",B),E.current&&(clearTimeout(E.current),E.current=null)},H=e=>{e.ctrlKey&&(z(d),_.current&&(_.current.value=d?d.toString():"0"))},G=()=>{_.current&&(_.current.style.width=.75*o+"px",_.current.style.border="none",_.current.style.margin="0",_.current.style.padding="0",_.current.style.color="black",_.current.style.position="absolute",_.current.style.zIndex="2",_.current.style.fontSize="10px",_.current.style.textAlign="center",_.current.style.fontWeight="bold",_.current?.removeAttribute("hidden")),C.current&&(C.current.style.display="none")},W=(0,Na.debounce)(e=>{const t=e.target,n=t.validity.rangeUnderflow,r=t.validity.rangeOverflow,o=t.validity.typeMismatch;n||r||o?t.reportValidity():(_.current&&(_.current.value=O.toString(),_.current?.removeAttribute("style"),_.current?.setAttribute("hidden","true")),C.current&&(C.current.style.display="block"))},500),z=e=>{let t=e;"string"==typeof e&&(t=parseFloat(e),isNaN(t)&&(t=0)),x(t),u&&u(t),i&&i(t)},$=()=>{E.current&&clearTimeout(E.current),E.current=setTimeout(()=>P(!1),y)};h.useEffect(()=>()=>{F(),E.current&&clearTimeout(E.current)},[]);const K=Gre.find(e=>e[l])||Gre[0];return(0,p.jsxs)("div",{className:m?"gv-radio-dial gv-radio-dial-disabled":"gv-radio-dial",children:[(0,p.jsx)("div",{className:"gv-radio-dial-title",style:{fontSize:`${g||o/4}px`},children:f}),(0,p.jsxs)("div",{className:"gv-radio-dial-svgParent",children:[(0,p.jsx)("svg",{onClick:H,onDoubleClick:G,onPointerUp:v?void 0:()=>I.current&&I.current(),onPointerDown:v?void 0:V,onWheel:U,width:o,height:o,style:{transform:`rotate(${j(O)}deg)`,zIndex:2},children:(0,p.jsx)("line",{x1:o/2,y1:o/10,x2:o/2,y2:o/3,style:{stroke:"#232b36",strokeWidth:"2%"}})}),(0,p.jsx)("svg",{width:o,height:o,style:{position:"absolute",zIndex:1,transform:`rotate(${j(d??(n+r)/2)}deg)`},children:(0,p.jsx)("line",{x1:o/2,y1:o/10,x2:o/2,y2:o/3,style:{stroke:"red",strokeOpacity:.5,strokeWidth:"2%"}})}),(0,p.jsxs)("svg",{width:o,height:o,style:{position:"absolute",zIndex:0},children:[(0,p.jsx)("defs",{children:(0,p.jsxs)("linearGradient",{id:`grad${S.current}`,gradientTransform:"rotate(90)",children:[(0,p.jsx)("stop",{offset:"50%",stopColor:K[l][0]}),(0,p.jsx)("stop",{offset:"50%",stopColor:K[l][1]})]})}),(0,p.jsx)("circle",{cx:o/2,cy:o/2,r:o/2,fill:"#232b36"}),(0,p.jsx)("circle",{cx:o/2,cy:o/2,r:o/2-o/20,stroke:"white",fill:"none",strokeWidth:"5%",strokeDasharray:"3%",className:"dashes"}),(0,p.jsx)("circle",{cx:o/2,cy:o/2,r:o/2-o/20,stroke:"#232b36",fill:"none",strokeWidth:"10%",strokeDasharray:"72%,237%",strokeDashoffset:"-35%"}),(0,p.jsx)("circle",{cx:o/2,cy:o/2,r:o/2-o/10,fill:`url(#grad${S.current})`}),(0,p.jsx)("circle",{cx:o/2,cy:o/2,r:o/2-o/9,fill:"none",stroke:"white",strokeWidth:"2px",strokeOpacity:.2})]}),(0,p.jsx)("input",{type:"number",ref:_,onChange:e=>{const t=e.target;t.value.length>t.maxLength&&(t.value=t.value.slice(0,t.maxLength));let n="";try{n=parseFloat(t.value),isNaN(n)&&(n="")}catch{n=""}finally{z(n)}},onClick:H,onDoubleClick:G,onKeyDown:e=>{"Enter"===e.key&&_.current?.blur()},onBlur:W,onFocus:e=>{e.target.select()},defaultValue:O,hidden:!0,step:s,max:r,min:n,maxLength:5}),(0,p.jsx)("div",{ref:C,onClick:H,onDoubleClick:G,onPointerUp:v?void 0:()=>I.current&&I.current(),onPointerDown:v?void 0:V,onWheel:U,style:{position:"absolute",zIndex:2,color:"black",fontSize:o/4+"px",fontWeight:"bold",cursor:"default",userSelect:"none"},children:w??Math.trunc(A*O*10)/10})]}),(0,p.jsx)("div",{className:"gv-radio-dial-subText",style:{marginTop:`-${o/4}px`,fontSize:`${g||o/4}px`},children:c})]})},zre=class{onAngleChange;onValueChange;onInteractionChange;min;max;step;diameter;spaceMaxFromZero;refElement;windowEventListeners;_isInteracting;_value;_angle;_locationX;_locationY;constructor(e,t){this.onAngleChange=t.onAngleChange,this.onValueChange=t.onValueChange,this.onInteractionChange=t.onInteractionChange,this._locationX=0,this._locationY=0,this.refElement=e,this._isInteracting=!1,this.windowEventListeners={mouse:[["mousemove",this.handleOnMouseMove],["mouseup",this.handleOnMouseUp]],touch:[["touchmove",this.handleOnTouchMove],["touchend",this.handleOnTouchEnd]]},this.updateFromProps(t)}updateFromProps(e){if(e.max<=e.min||e.max<e.min+e.step)throw new Error("Max value should be bigger or equal to min+step value.");if(this.min=e.min,this.max=e.max,this.step=e.step,this.diameter=e.diameter,this.onAngleChange=e.onAngleChange||this.onAngleChange,this.onValueChange=e.onValueChange||this.onValueChange,this.onInteractionChange=e.onInteractionChange||this.onInteractionChange,this.spaceMaxFromZero=void 0===e.spaceMaxFromZero||e.spaceMaxFromZero,e.value!==this.value&&(e.min>this.value||e.value<e.min?this.value=e.min:e.max<this.value||e.value>e.max?this.value=e.max:this.value=e.value,this.angle=this.angleFromValue(this.value)),this.value%this.step||(this.max-this.min)%this.step)throw new Error("Value and (max - min) should be divisible by step.")}get angle(){return this._angle}set angle(e){this._angle!==e&&(this._angle=e,this.onAngleChange&&this.onAngleChange(this._angle))}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.onValueChange&&this.onValueChange(this._value))}get isInteracting(){return this._isInteracting}set isInteracting(e){this._isInteracting!==e&&(this._isInteracting=e,this.onInteractionChange&&this.onInteractionChange(this._isInteracting))}get numSteps(){return(this.max-this.min)/this.step}get valsDistribution(){return this.spaceMaxFromZero?360/(this.numSteps+1):360/this.numSteps}getComputedTransformXY(e){if(!window.getComputedStyle||!e)return{x:0,y:0,scaleX:1,scaleY:1};const t=window.getComputedStyle(e),n=t.transform||t.webkitTransform;if(!n)return{x:0,y:0,scaleX:1,scaleY:1};let r=n.match(/^matrix3d\((.+)\)$/);if(r){const e=parseFloat(r[1].split(", ")[0]),t=parseFloat(r[1].split(", ")[5]);return{x:parseFloat(r[1].split(", ")[12]),y:parseFloat(r[1].split(", ")[13]),scaleX:e,scaleY:t}}r=n.match(/^matrix\((.+)\)$/);const o=r?parseFloat(r[1].split(", ")[0]):1,i=r?parseFloat(r[1].split(", ")[3]):1;return{x:r?parseFloat(r[1].split(", ")[4]):0,y:r?parseFloat(r[1].split(", ")[5]):0,scaleX:o,scaleY:i}}updateAreaLocation(e){const t=this.diameter/2;let n=0,r=0,o=this.refElement.current,i=this.getComputedTransformXY(o);for(;o;){if("BODY"===o.tagName.toUpperCase()){const e=o.scrollLeft||document.documentElement.scrollLeft,t=o.scrollTop||document.documentElement.scrollTop;n+=o.offsetLeft-e+o.clientLeft,r+=o.offsetTop-t+o.clientTop}else n+=o.offsetLeft-o.scrollLeft+o.clientLeft,r+=o.offsetTop-o.scrollTop+o.clientTop;n+=i.x,r+=i.y,o=o.offsetParent,i=this.getComputedTransformXY(o)}this._locationX=n+t,this._locationY=r+t,this._locationX+=e.pageX-e.clientX,this._locationY+=e.pageY-e.clientY}calcDegreeOfRotation(e,t){const n=Math.atan2(e-this._locationX,t-this._locationY);return Math.abs(n*(180/Math.PI)-180)}valueFromAngle(e){const t=e/(this.numSteps*this.valsDistribution),n=this.numSteps*this.step,r=this.min+t*n;if(r>this.max+this.step/2)return this.min;const o=Array.from(new Array(this.numSteps+1)).map((e,t)=>this.min+t*this.step);return o.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e)}angleFromValue(e){return Math.ceil((e-this.min)/this.step*this.valsDistribution)}updateAngleValue(e,t){requestAnimationFrame(()=>{const n=this.calcDegreeOfRotation(e,t);this.value=this.valueFromAngle(n),this.angle=this.angleFromValue(this.value)})}handleOnMouseDown=e=>{this.addWindowEventListeners("mouse");const{pageX:t,pageY:n,clientX:r,clientY:o}=e;this.updateAreaLocation({pageX:t,pageY:n,clientX:r,clientY:o}),this.updateAngleValue(t,n)};handleOnMouseMove=e=>{if(!this.isInteracting)return;const{pageX:t,pageY:n}=e;this.updateAngleValue(t,n)};handleOnMouseUp=()=>{this.removeWindowEventListeners("mouse")};handleOnTouchStart=e=>{if(this.addWindowEventListeners("touch"),"changedTouches"in e&&1===e.changedTouches.length){const{pageX:t,pageY:n,clientX:r,clientY:o}=e.changedTouches[0];this.updateAreaLocation({pageX:t,pageY:n,clientX:r,clientY:o}),this.updateAngleValue(t,n)}};handleOnTouchMove=e=>{if(this.isInteracting&&"changedTouches"in e&&1===e.changedTouches.length){const{pageX:t,pageY:n}=e.changedTouches[0];this.updateAngleValue(t,n)}};handleOnTouchEnd=()=>{this.removeWindowEventListeners("touch")};handleOnFocus=()=>{this.isInteracting=!0};handleOnBlur=()=>{this.isInteracting=!1};handleOnKeyDown=e=>{38===e.keyCode&&this.value+this.step<=this.max?(this.value+=this.step,this.angle=this.angleFromValue(this.value)):40===e.keyCode&&this.value-this.step>=this.min&&(this.value-=this.step,this.angle=this.angleFromValue(this.value))};addWindowEventListeners(e){this.isInteracting=!0,this.windowEventListeners[e].forEach(e=>{const[t,n]=e;window.addEventListener(t,n)})}removeWindowEventListeners(e){this.isInteracting=!1,this.windowEventListeners[e].forEach(e=>{const[t,n]=e;window.removeEventListener(t,n)})}},$re=e=>{const[t,n]=function(e){const t=(0,h.useRef)(null),n=(0,h.useRef)(null);let r=null;try{n.current?n.current.updateFromProps(e):n.current=new zre(t,e)}catch(e){r=e}return[t,n.current,r]}(e),r={width:`${e.diameter}px`,height:`${e.diameter}px`,borderRadius:e.diameter/2+"px",position:"relative",outline:"none",boxSizing:"border-box",overflow:"hidden",...e.style||{},...e.disabled?{pointerEvents:"none",opacity:.3}:{}};return(0,p.jsx)("div",{ref:t,onMouseDown:n&&n.handleOnMouseDown,onTouchStart:n&&n.handleOnTouchStart,onKeyDown:n&&n.handleOnKeyDown,onFocus:n&&n.handleOnFocus,onBlur:n&&n.handleOnBlur,style:r,tabIndex:0,"aria-valuenow":e.value,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuetext":e.ariaValueText,"aria-labelledby":e.ariaLabelledBy,children:e.children})};var Kre;function Qre(e,t){return function(...n){e(...n),t&&t(...n)}}!function(e){e.blue="#408fe0",e.red="#ff4452",e.green="#00c389",e.purple="#9b5ba4",e.yellow="#ffcb75"}(Kre||(Kre={}));const qre=e=>{const[t,n]=(0,h.useState)(0),[r,o]=(0,h.useState)("gv-rotaryDial-center"),[i,a]=(0,h.useState)("gv-rotaryDial"),[s,l]=(0,h.useState)("gv-rotaryDial-text"),[c,u]=(0,h.useState)("solid 1px #414854"),d=Qre(n,e.onAngleChange),f=Qre(e=>e?[o("gv-rotaryDial-center-active"),a("gv-rotaryDial-active"),l("gv-rotaryDial-text gv-rotaryDial-text-active"),u("1px solid #408fe0")]:[o("gv-rotaryDial-center"),a("gv-rotaryDial"),l("gv-rotaryDial-text"),u("solid 1px #414854")],e.onInteractionChange),g=`${Kre[e.colour||"blue"]}`,m=e.diameter/5,v="#161E2B";let y=v,A=g,w=g,b=90,_=t;return t<180&&(y=g,A=v,w=v,b=t+90,_=0),(0,p.jsx)($re,{diameter:e.diameter,value:e.value,min:e.min,max:e.max,disabled:e.disabled,colour:e.colour,step:e.step,spaceMaxFromZero:e.spaceMaxFromZero,ariaLabelledBy:e.ariaLabelledBy,ariaValueText:e.ariaValueText,style:{cursor:"pointer",border:`${c}`,...e.style},onAngleChange:d,onInteractionChange:f,onValueChange:e.onValueChange,children:(0,p.jsxs)("div",{style:{position:"relative",width:e.diameter,height:e.diameter,userSelect:"none"},children:[(0,p.jsxs)("div",{className:i,style:{width:`${e.diameter}px`,height:`${e.diameter}px`,background:y},children:[(0,p.jsx)("div",{className:"gv-rotaryDial-slice-one",style:{clip:`rect(0 ${e.diameter}px ${e.diameter/2}px 0)`,transform:`rotate(${b}deg)`,background:A}}),(0,p.jsx)("div",{className:"gv-rotaryDial-slice-two",style:{clip:`rect(0 ${e.diameter/2}px ${e.diameter}px 0)`,transform:`rotate(${_}deg)`,background:w}}),(0,p.jsx)("div",{className:r,style:{top:`${m}px`,left:`${m}px`,width:e.diameter-2*m+"px",height:e.diameter-2*m+"px"}})]}),(0,p.jsx)("div",{className:s,style:{fontSize:`${Math.ceil(e.diameter/5)}px`},children:e.value})]})})},Yre=e=>{const{label:t,levelLines:n=!1,value:r,warningLevel:o=70,dangerLevel:i=90,colour1:a="success",colour2:s="warning",colour3:l="danger",vertical:c}=e,u=`${r}%`;let d=r-o,h=r-i;r<=o&&r<=i&&(d=0,h=0);const f=r>=o?`${o}%`:u,g=r>o&&r<i?`${d}%`:d-h+"%",m=r>i?`${h}%`:"0%";return(0,p.jsxs)("div",{className:"gv-segmentProgressBar",style:{transform:c?"rotate(-90deg)":"",overflow:c?"visible":""},children:[(0,p.jsxs)("span",{className:"parentBar",style:{width:"100%"},children:[(0,p.jsx)("span",{className:`segment segment-gv${a}`,style:{width:f,borderTopRightRadius:r>o||i?"0px":"2px",borderBottomRightRadius:r>o||i?"0px":"2px"}}),(0,p.jsx)("span",{className:`segment segment-gv${s}`,style:{width:g,borderTopRightRadius:r>i?"0px":"2px",borderBottomRightRadius:r>i?"0px":"2px",borderBottomLeftRadius:o>0?"0px":"2px",borderTopLeftRadius:o>0?"0px":"2px"}}),(0,p.jsx)("span",{className:`segment segment-gv${l}`,style:{width:m,borderBottomLeftRadius:i>0?"0px":"2px",borderTopLeftRadius:i>0?"0px":"2px"}})]}),(0,p.jsxs)("div",{className:"meterTextContainer",children:[(0,p.jsx)("span",{className:"meterText",style:{transform:c?"rotate(90deg)":""},children:t||u}),(0,p.jsx)("div",{className:`segment segment-${s}`,style:{position:"absolute",width:"1px",height:"100%",left:o-1+"%",background:0==n?"transparent":""}}),(0,p.jsx)("div",{className:`segment segment-gv${l}`,style:{position:"absolute",width:"1px",height:"100%",left:i-1+"%",background:0==n?"transparent":""}})]})]})},Xre=e=>{const{active:t,icons:n,icon:r,label:o,disabled:i,id:a,onClick:s}=e;return(0,p.jsx)("div",{className:Oo()({"gv-tabs-tab":!0,"gv-tabs-tab--icons":n,"gv-tabs-tab--disabled":i}),onClick:()=>{i||s(a)},children:(0,p.jsxs)("div",{className:Oo()({"gv-tabs-tab-internal":!0,"gv-tabs-tab-active":t}),children:[n&&r&&(0,p.jsx)("div",{className:"gv-tabs-tab-icon",children:(0,p.jsx)(Fo,{color:t&&"#408FE0",icon:r,active:t})}),(0,p.jsx)("span",{className:Oo()({"gv-tabs-tab-text":!0,"gv-tabs-tab-text--icon":n&&!!r}),children:o})]})})},Zre=e=>{const{tabs:t,icons:n,disabled:r,center:o,active:i,onSelect:a}=e;return(0,p.jsx)("div",{className:Oo()({"gv-tabs-bar":!0,"gv-tabs-bar--center":o,"gv-tabs-bar--icons":n,"gv-tabs-bar--disabled":r}),children:(0,p.jsx)("div",{className:Oo()({"gv-tabs-bar-items":!0,"gv-tabs-bar-tabs":!0}),children:t?.map((e,t)=>(0,h.createElement)(Xre,{...e,disabled:r||e.disabled,idx:t,key:`tab-${t}`,icons:n,active:e.id===i,onClick:a}))})})};var Jre=u(82438),eoe=u.n(Jre);const toe=e=>{const{tabs:t,icons:n,center:r,activeTabId:o,onChange:i}=e,a=o??t[0]?.id,[s,l]=(0,h.useState)(a),[c,u]=(0,h.useState)([a]);return(0,h.useEffect)(()=>{void 0!==o&&(l(o),u(e=>eoe()([...e,o])))},[o]),(0,p.jsxs)("div",{className:Oo()({"gv-tabs":!0,"gv-tabs--icons":n}),children:[(0,p.jsx)(Zre,{tabs:t,active:s,onSelect:e=>{l(e),u(t=>eoe()([...t,e])),i?.(e)},icons:n,center:r}),(0,p.jsx)("div",{className:"gv-tabs-content",children:t.map(e=>s===e.id&&c.includes(e.id)?(0,p.jsx)("div",{style:{display:s===e.id?"block":"none",height:"inherit"},children:e.content},`tab-content-${e.id}`):null)})]})};var noe,roe;!function(e){e.Default="default",e.Primary="primary",e.Success="success",e.Warning="warning",e.Danger="danger"}(noe||(noe={})),function(e){e.Small="small",e.Medium="medium",e.Large="large"}(roe||(roe={}));const ooe=e=>{const{style:t=noe.Default,size:n=roe.Medium,disabled:r,onClick:o,children:i}=e,a=Oo()({"gv-tag":!0,[`gv-tag--${t}`]:!!t,[`gv-tag--${n}`]:!!n,"gv-tag--disabled":r,"gv-tag--clickable":!!o,[e.className]:!!e.className},e.classNames);return(0,p.jsx)("span",{className:a,onClick:r?void 0:o,role:o?"button":void 0,children:i})};function ioe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),r.forEach(function(t){Tc(e,t,n[t])})}return e}var aoe=u(78958),soe=u.n(aoe),loe=function(){function e(){iC(this,e),Tc(this,"refs",{})}return Mg(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find(function(t){return t.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(coe)}}]),e}();function coe(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function uoe(e,t){return Object.keys(e).reduce(function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n},{})}var doe={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},poe=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function hoe(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function foe(e,t){e.style["".concat(poe,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function goe(e,t){e.style["".concat(poe,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function moe(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function voe(e,t,n){return Math.max(e,Math.min(n,t))}function yoe(e){return"px"===e.substr(-2)?parseFloat(e):0}function Aoe(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function woe(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function boe(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function _oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:_oe(e.parentNode,t,r)}}function Coe(e){var t=e.lockOffset,n=e.width,r=e.height,o=t,i=t,a="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);soe()(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),o=parseFloat(t),i=parseFloat(t),a=s[1]}return soe()(isFinite(o)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===a&&(o=o*n/100,i=i*r/100),{x:o,y:i}}function Eoe(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find(function(e){return n.test(t[e])})}(e)?e:Eoe(e.parentNode):null}var Soe="BUTTON",Ooe="INPUT",xoe="OPTION",Doe="TEXTAREA",Poe="SELECT";function Moe(e){return null!=e.sortableHandle}var Toe=function(){function e(t,n){iC(this,e),this.container=t,this.onScrollCallback=n}return Mg(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,o=e.maxTranslate,i=e.width,a=e.height,s={x:0,y:0},l={x:1,y:1},c=this.container,u=c.scrollTop,d=c.scrollLeft,p=c.scrollHeight,h=c.scrollWidth,f=0===u,g=p-u-c.clientHeight===0,m=0===d,v=h-d-c.clientWidth===0;n.y>=o.y-a/2&&!g?(s.y=1,l.y=10*Math.abs((o.y-a/2-n.y)/a)):n.x>=o.x-i/2&&!v?(s.x=1,l.x=10*Math.abs((o.x-i/2-n.x)/i)):n.y<=r.y+a/2&&!f?(s.y=-1,l.y=10*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+i/2&&!m&&(s.x=-1,l.x=10*Math.abs((n.x-i/2-r.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===s.x&&0===s.y||(this.interval=setInterval(function(){t.isAutoScrolling=!0;var e={left:l.x*s.x,top:l.y*s.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)},5))}}]),e}(),Roe={axis:bP().oneOf(["x","y","xy"]),contentWindow:bP().any,disableAutoscroll:bP().bool,distance:bP().number,getContainer:bP().func,getHelperDimensions:bP().func,helperClass:bP().string,helperContainer:bP().oneOfType([bP().func,"undefined"==typeof HTMLElement?bP().any:bP().instanceOf(HTMLElement)]),hideSortableGhost:bP().bool,keyboardSortingTransitionDuration:bP().number,lockAxis:bP().string,lockOffset:bP().oneOfType([bP().number,bP().string,bP().arrayOf(bP().oneOfType([bP().number,bP().string]))]),lockToContainerEdges:bP().bool,onSortEnd:bP().func,onSortMove:bP().func,onSortOver:bP().func,onSortStart:bP().func,pressDelay:bP().number,pressThreshold:bP().number,keyCodes:bP().shape({lift:bP().arrayOf(bP().number),drop:bP().arrayOf(bP().number),cancel:bP().arrayOf(bP().number),up:bP().arrayOf(bP().number),down:bP().arrayOf(bP().number)}),shouldCancelStart:bP().func,transitionDuration:bP().number,updateBeforeSortStart:bP().func,useDragHandle:bP().bool,useWindowAsScrollContainer:bP().bool},Ioe={lift:[32],drop:[32],cancel:[27],up:[38,37],down:[40,39]},Foe={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Ioe,shouldCancelStart:function(e){return-1!==[Ooe,Doe,Poe,xoe,Soe].indexOf(e.target.tagName)||!!moe(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1},koe=Object.keys(Roe),Loe=(0,h.createContext)({manager:{}}),Boe={index:bP().number.isRequired,collection:bP().oneOfType([bP().number,bP().string]),disabled:bP().bool},Noe=Object.keys(Boe);const joe=e=>{const{background:t,label:n,image:r,selected:o,disabled:i,active:a,preserveAspect:s,size:l,sorting:c,overlay:u,element:d,fabricType:f,tooltip:g,onClick:m,onHeadingClick:v}=e,y=(0,h.useRef)(null),[A,w]=(0,h.useState)(0),b=e.value||"99";return(0,h.useEffect)(()=>{g&&w(y.current?y.current.offsetWidth:0)},[g,n]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:Oo()({"gv-thumbnail":!0,"gv-thumbnail-sorting":c,"gv-thumbnail-transition":!c,"gv-thumbnail-disabled":i,[`gv-thumbnail-${l.toLowerCase()}`]:!0}),onClick:()=>{m()},children:[(0,p.jsx)("div",{className:Oo()({"gv-thumbnail-header":!0,"gv-thumbnail-header-active":a,"gv-thumbnail-header-selected":!a&&o,"gv-thumbnail-header-inactive":!a&&!o,[`gv-thumbnail-header-${l.toLowerCase()}`]:!0}),onClick:e=>{v(),e.stopPropagation()},"data-tip":!0,"data-for":b,children:(0,p.jsx)("span",{className:Oo()({"gv-thumbnail-label":!0,[`gv-thumbnail-label-${l.toLowerCase()}`]:!0}),ref:y,children:n})}),(0,p.jsxs)("div",{className:`gv-thumbnail-image-${l.toLowerCase()}`,style:{background:t},children:[u&&(0,p.jsx)("div",{className:"gv-thumbnail-image-overlay",children:u}),r?(0,p.jsx)("img",{src:r,className:Oo()({"gv-thumbnail-image-preserve":s,"gv-thumbnail-disabled":f&&"SMPTE2110"===f&&!a&&!o,[`gv-thumbnail-image-${l.toLowerCase()}-img`]:!0}),style:"TVU"===f?{objectFit:"contain",padding:"10px",boxSizing:"border-box"}:void 0,alt:n}):d]})]}),g&&A>135?(0,p.jsx)(lL,{id:b,place:"top",children:(0,p.jsx)("span",{children:n})}):null]})},Uoe=({thumbnailComponent:e,name:t,item:n,active:r,selected:o,disabled2:i,size:a,onClick:s,onHeadingClick:l,sorting:c})=>{const u=e||joe;return(0,p.jsx)("li",{className:Oo()({"gv-thumbnails-item":!0,"gv-thumbnails-item-transition":!c}),children:(0,p.jsx)(u,{id:`thumbnail-${t}-${n.value}`,...n,active:r,selected:o,disabled:i,size:a||"Normal",sorting:c,onClick:()=>s(n),onHeadingClick:()=>l?l(n):s(n)},`thumbnail-item-${t}-${n.value}`)})},Voe=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;iC(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Tc(Ig(Ig(t=Z3(this,(e=J3(n)).call.apply(e,[this].concat(o))))),"wrappedInstance",(0,h.createRef)()),t}return X3(n,t),Mg(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,o=(0,Ls.findDOMNode)(this);o.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return soe()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=r.withRef?this.wrappedInstance:null;return(0,h.createElement)(e,Sc({ref:t},uoe(this.props,Noe)))}}]),n}(h.Component),Tc(t,"displayName",Aoe("sortableElement",e)),Tc(t,"contextType",Loe),Tc(t,"propTypes",Boe),Tc(t,"defaultProps",{collection:0}),n}(Uoe),Hoe=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;iC(this,n),Tc(Ig(Ig(t=Z3(this,J3(n).call(this,e)))),"state",{}),Tc(Ig(Ig(t)),"handleStart",function(e){var n=t.props,r=n.distance,o=n.shouldCancelStart;if(2!==e.button&&!o(e)){t.touched=!0,t.position=boe(e);var i=moe(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var a=t.props.useDragHandle,s=i.sortableInfo,l=s.index,c=s.collection;if(s.disabled)return;if(a&&!moe(e.target,Moe))return;t.manager.active={collection:c,index:l},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||"A"!==e.target.tagName||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}}}),Tc(Ig(Ig(t)),"nodeIsChild",function(e){return e.sortableInfo.manager===t.manager}),Tc(Ig(Ig(t)),"handleMove",function(e){var n=t.props,r=n.distance,o=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=boe(e),a={x:t.position.x-i.x,y:t.position.y-i.y},s=Math.abs(a.x)+Math.abs(a.y);t.delta=a,r||o&&!(s>=o)?r&&s>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}}),Tc(Ig(Ig(t)),"handleEnd",function(){t.touched=!1,t.cancel()}),Tc(Ig(Ig(t)),"cancel",function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)}),Tc(Ig(Ig(t)),"handlePress",function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n=p.sortableInfo.index,r=function(e){var t=window.getComputedStyle(e);return{bottom:yoe(t.marginBottom),left:yoe(t.marginLeft),right:yoe(t.marginRight),top:yoe(t.marginTop)}}(p),o=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:yoe(t.gridColumnGap),y:yoe(t.gridRowGap)}:{x:0,y:0}}(t.container),c=t.scrollContainer.getBoundingClientRect(),g=a({index:n,node:p,collection:h});if(t.node=p,t.margin=r,t.gridGap=o,t.width=g.width,t.height=g.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=p.getBoundingClientRect(),t.containerBoundingRect=c,t.index=n,t.newIndex=n,t.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},t.offsetEdge=_oe(p,t.container),t.initialOffset=boe(f?ioe({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(function(e){var t="input, textarea, select, canvas, [contenteditable]",n=e.querySelectorAll(t),r=e.cloneNode(!0);return Lv(r.querySelectorAll(t)).forEach(function(e,t){"file"!==e.type&&(e.value=n[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),"CANVAS"===e.tagName&&n[t].width>0&&n[t].height>0&&e.getContext("2d").drawImage(n[t],0,0)}),r}(p)),hoe(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-r.top,"px"),width:"".concat(t.width,"px")}),f&&t.helper.focus(),l&&(t.sortableGhost=p,hoe(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},f){var m=d?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,v=m.top,y=m.left,A=m.width,w=v+m.height,b=y+A;t.axis.x&&(t.minTranslate.x=y-t.boundingClientRect.left,t.maxTranslate.x=b-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=v-t.boundingClientRect.top,t.maxTranslate.y=w-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(d?0:c.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(d?t.contentWindow.innerWidth:c.left+c.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(d?0:c.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(d?t.contentWindow.innerHeight:c.top+c.height)-t.boundingClientRect.top-t.height/2);s&&s.split(" ").forEach(function(e){return t.helper.classList.add(e)}),t.listenerNode=e.touches?e.target:t.contentWindow,f?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(doe.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),doe.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)})),t.setState({sorting:!0,sortingIndex:n}),u&&u({node:p,index:n,collection:h,isKeySorting:f,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),f&&t.keyMove(0)},o=t.props,i=o.axis,a=o.getHelperDimensions,s=o.helperClass,l=o.hideSortableGhost,c=o.updateBeforeSortStart,u=o.onSortStart,d=o.useWindowAsScrollContainer,p=n.node,h=n.collection,f=t.manager.isKeySorting,g=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var n=function(t,n){try{var r=function(){var t=p.sortableInfo.index;return Promise.resolve(c({collection:h,index:t,node:p,isKeySorting:f},e)).then(function(){})}()}catch(e){return n(!0,e)}return r&&r.then?r.then(n.bind(null,!1),n.bind(null,!0)):n(!1,value)}(0,function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n});if(n&&n.then)return n.then(function(){})}}();return g&&g.then?g.then(r):r()}}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),Tc(Ig(Ig(t)),"handleSortMove",function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)}),Tc(Ig(Ig(t)),"handleSortEnd",function(e){var n=t.props,r=n.hideSortableGhost,o=n.onSortEnd,i=t.manager,a=i.active.collection,s=i.isKeySorting,l=t.manager.getOrderedRefs();t.listenerNode&&(s?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(doe.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),doe.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)}))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&hoe(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,u=l.length;c<u;c++){var d=l[c],p=d.node;d.edgeOffset=null,d.boundingClientRect=null,foe(p,null),goe(p,null),d.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof o&&o({collection:a,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:s,nodes:l},e),t.touched=!1}),Tc(Ig(Ig(t)),"autoscroll",function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var r=ioe({},t.translate),o=0,i=0;return t.axis.x&&(r.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),o=t.translate.x-r.x),t.axis.y&&(r.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),i=t.translate.y-r.y),t.translate=r,foe(t.helper,t.translate),t.scrollContainer.scrollLeft+=o,void(t.scrollContainer.scrollTop+=i)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}}),Tc(Ig(Ig(t)),"onAutoScroll",function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()}),Tc(Ig(Ig(t)),"handleKeyDown",function(e){var n=e.keyCode,r=t.props,o=r.shouldCancelStart,i=r.keyCodes,a=ioe({},Ioe,void 0===i?{}:i);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||a.lift.includes(n)&&!o(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),a.lift.includes(n)&&!t.manager.active?t.keyLift(e):a.drop.includes(n)&&t.manager.active?t.keyDrop(e):a.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):a.up.includes(n)?t.keyMove(-1):a.down.includes(n)&&t.keyMove(1))}),Tc(Ig(Ig(t)),"keyLift",function(e){var n=e.target,r=moe(n,function(e){return null!=e.sortableInfo}),o=r.sortableInfo,i=o.index,a=o.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:i,collection:a},t.handlePress(e)}),Tc(Ig(Ig(t)),"keyMove",function(e){var n=t.manager.getOrderedRefs(),r=n[n.length-1].node.sortableInfo.index,o=t.newIndex+e,i=t.newIndex;if(!(o<0||o>r)){t.prevIndex=i,t.newIndex=o;var a=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),s=n.find(function(e){return e.node.sortableInfo.index===a}),l=s.node,c=t.containerScrollDelta,u=s.boundingClientRect||woe(l,c),d=s.translate||{x:0,y:0},p=u.top+d.y-c.top,h=u.left+d.x-c.left,f=i<o,g=f&&t.axis.x?l.offsetWidth-t.width:0,m=f&&t.axis.y?l.offsetHeight-t.height:0;t.handleSortMove({pageX:h+g,pageY:p+m,ignoreTransition:0===e})}}),Tc(Ig(Ig(t)),"keyDrop",function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()}),Tc(Ig(Ig(t)),"handleKeyEnd",function(e){t.manager.active&&t.keyDrop(e)}),Tc(Ig(Ig(t)),"isValidSortingTarget",function(e){var n=t.props.useDragHandle,r=e.target,o=moe(r,function(e){return null!=e.sortableInfo});return o&&o.sortableInfo&&!o.sortableInfo.disabled&&(n?Moe(r):r.sortableInfo)});var r=new loe;return function(e){soe()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=r,t.wrappedInstance=(0,h.createRef)(),t.sortableContextValue={manager:r},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return X3(n,t),Mg(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then(function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:Eoe(e.container)||e.container,e.autoScroller=new Toe(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(t){return doe[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})}),e.container.addEventListener("keydown",e.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(t){return doe[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,o=t.lockToContainerEdges,i=t.transitionDuration,a=t.keyboardSortingTransitionDuration,s=void 0===a?i:a,l=this.manager.isKeySorting,c=e.ignoreTransition,u=boe(e),d={x:u.x-this.initialOffset.x,y:u.y-this.initialOffset.y};if(d.y-=window.pageYOffset-this.initialWindowScroll.top,d.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=d,o){var p=function(e){var t=e.height,n=e.width,r=e.lockOffset,o=Array.isArray(r)?r:[r,r];soe()(2===o.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var i=nu(o,2),a=i[0],s=i[1];return[Coe({height:t,lockOffset:a,width:n}),Coe({height:t,lockOffset:s,width:n})]}({height:this.height,lockOffset:r,width:this.width}),h=nu(p,2),f=h[0],g=h[1],m={x:this.width/2-f.x,y:this.height/2-f.y},v={x:this.width/2-g.x,y:this.height/2-g.y};d.x=voe(this.minTranslate.x+m.x,this.maxTranslate.x-v.x,d.x),d.y=voe(this.minTranslate.y+m.y,this.maxTranslate.y-v.y,d.y)}"x"===n?d.y=0:"y"===n&&(d.x=0),l&&s&&!c&&goe(this.helper,s),foe(this.helper,d)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,o=this.containerScrollDelta,i=this.windowScrollDelta,a=this.manager.getOrderedRefs(),s=this.offsetEdge.left+this.translate.x+o.left,l=this.offsetEdge.top+this.translate.y+o.top,c=this.manager.isKeySorting,u=this.newIndex;this.newIndex=null;for(var d=0,p=a.length;d<p;d++){var h=a[d].node,f=h.sortableInfo.index,g=h.offsetWidth,m=h.offsetHeight,v={height:this.height>m?m/2:this.height/2,width:this.width>g?g/2:this.width/2},y=c&&f>this.index&&f<=u,A=c&&f<this.index&&f>=u,w={x:0,y:0},b=a[d].edgeOffset;b||(b=_oe(h,this.container),a[d].edgeOffset=b,c&&(a[d].boundingClientRect=woe(h,o)));var _=d<a.length-1&&a[d+1],C=d>0&&a[d-1];_&&!_.edgeOffset&&(_.edgeOffset=_oe(_.node,this.container),c&&(_.boundingClientRect=woe(_.node,o))),f!==this.index?(t&&goe(h,t),this.axis.x?this.axis.y?A||f<this.index&&(s+i.left-v.width<=b.left&&l+i.top<=b.top+v.height||l+i.top+v.height<=b.top)?(w.x=this.width+this.marginOffset.x,b.left+w.x>this.containerBoundingRect.width-v.width&&_&&(w.x=_.edgeOffset.left-b.left,w.y=_.edgeOffset.top-b.top),null===this.newIndex&&(this.newIndex=f)):(y||f>this.index&&(s+i.left+v.width>=b.left&&l+i.top+v.height>=b.top||l+i.top+v.height>=b.top+m))&&(w.x=-(this.width+this.marginOffset.x),b.left+w.x<this.containerBoundingRect.left+v.width&&C&&(w.x=C.edgeOffset.left-b.left,w.y=C.edgeOffset.top-b.top),this.newIndex=f):y||f>this.index&&s+i.left+v.width>=b.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=f):(A||f<this.index&&s+i.left<=b.left+v.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=f)):this.axis.y&&(y||f>this.index&&l+i.top+v.height>=b.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=f):(A||f<this.index&&l+i.top<=b.top+v.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=f))),foe(h,w),a[d].translate=w):n&&(this.sortableGhost=h,hoe(h,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=u);var E=c?this.prevIndex:u;r&&this.newIndex!==E&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:E,isKeySorting:c,nodes:a,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return soe()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,Ls.findDOMNode)(this):e(r.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=r.withRef?this.wrappedInstance:null;return(0,h.createElement)(Loe.Provider,{value:this.sortableContextValue},(0,h.createElement)(e,Sc({ref:t},uoe(this.props,koe))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(h.Component),Tc(t,"displayName",Aoe("sortableList",e)),Tc(t,"defaultProps",Foe),Tc(t,"propTypes",Roe),n}(({thumbnailComponent:e,items:t,name:n,active:r,selected:o,disabled:i,size:a,onHeadingClick:s,onClick:l,sortable:c,sorting:u})=>(0,p.jsx)("ul",{className:"gv-thumbnails-list",children:t.map((t,d)=>c?(0,p.jsx)(Voe,{index:d,name:n,item:t,active:(r||[]).indexOf(t.value)>-1,selected:(o||[]).indexOf(t.value)>-1,disabled2:(i||[]).indexOf(t.value)>-1,size:a,sorting:u===d,onClick:l,onHeadingClick:s,thumbnailComponent:e},`item-${n}-${t.value}`):(0,p.jsx)(Uoe,{name:n,item:t,active:(r||[]).indexOf(t.value)>-1,selected:(o||[]).indexOf(t.value)>-1,disabled2:(i||[]).indexOf(t.value)>-1,size:a,sorting:u===d,onClick:l,onHeadingClick:s,thumbnailComponent:e},`item-${n}-${t.value}`))})),Goe=e=>{const[t,n]=(0,h.useState)(-1),{thumbnailComponent:r,name:o,columns:i,items:a,rows:s,size:l,selected:c,active:u,disabled:d,onClick:f,onHeadingClick:g,sortable:m,onSortEnd:v}=e;return(0,p.jsxs)("div",{className:Oo()({"gv-thumbnails-grid":!0,[`gv-thumbnails-grid-${(l||"Normal").toLowerCase()}`]:!0,"gv-thumbnails-grid-overflow-x":!s,"gv-thumbnails-grid-overflow-y":!i}),style:{height:("small"===(l||"Normal").toLowerCase()?80*s+10:124*s+10)+"px",width:("small"===(l||"Normal").toLowerCase()?90*i+10:156*i+10)+"px"},children:[(0,p.jsx)(Hoe,{axis:"xy",pressDelay:200,items:a||[],name:o,active:u,selected:c,disabled:d,size:l||"normal",sortable:m,sorting:t,onClick:f,onHeadingClick:g,onSortEnd:(e,t)=>{n(-1),v&&v(e,t)},updateBeforeSortStart:({index:e})=>{n(e)},thumbnailComponent:r}),t>-1&&(a||[]).map(e=>e.tooltip?(0,p.jsx)(lL,{id:`thumbnail-${o}-${e.value}`,effect:"solid",children:(0,p.jsx)("span",{children:e.tooltip})},`thumbnail-${o}-${e.value}`):null)]})},Woe=new s.CounterMode("stopped");var zoe;!function(e){e[e.Frames=0]="Frames",e[e.Seconds=1]="Seconds",e[e.Minutes=2]="Minutes",e[e.Hours=3]="Hours"}(zoe||(zoe={}));const $oe=e=>{const t=bo.utc(),n=e.timecode?e.timecode:new s.BDateTime(t.set({hour:0,minute:0,second:0,millisecond:0}),e.frames??0,e.frameRate??s.FrameRate.ndf25);return{counter:n&&n.getAsCounter(e.reference??s.BDateTime.utcNow(n?.getFrameRate()??e.frameRate),e.mode??Woe,e.rate??1,"countDownToZero"===e.mode?.getLabel()?new s.BDuration(n.getFrames(),n.getFrameRate()):void 0),timecode:n}},Koe=e=>{const[t,n]=(0,h.useState)(()=>$oe(e)),[r,o]=(0,h.useState)(void 0),i=(0,h.useRef)(null),a=(0,h.useRef)(e);return(0,h.useEffect)(()=>{n($oe(e))},[e.timecode,e.reference,e.mode,e.rate,e.frames,e.frameRate]),(0,h.useEffect)(()=>{function n(){const{timecode:r,counter:a}=t,l=r&&r.getFrameRate();let c=r&&a&&a.getBDateTime(s.BDateTime.utcNow(l??s.FrameRate.ndf25));if(o(c&&e.startTimecode?function(t,n){return t?t.addDuration(s.BDuration.fromTcString(e.startTimecode??"00:00:00:00",n)).getComponents(!0):s.BDateTime.fromTimecode(e.startTimecode??"00:00:00:00",n).getComponents()}(c,l??s.FrameRate.ndf25):c&&c.getComponents(!0)),!document.hidden)if("stopped"!==(e.mode??Woe).getLabel()){const t=e.frameRate?1/e.frameRate.getFramesPerSecond()*1e3:10;i.current=setTimeout(n,t)}else clearTimeout(i.current)}function r(){document.hidden?clearTimeout(i.current):n()}return document.addEventListener("visibilitychange",r),n(),()=>{clearTimeout(i.current),document.removeEventListener("visibilitychange",r)}},[t,e.mode,e.frames,e.startTimecode,e.timecode,e.frameRate]),(0,h.useEffect)(()=>{const t=e.mode??Woe,r=a.current.mode??Woe;t.getLabel()!==r.getLabel()?n($oe(e)):"stopped"===t.getLabel()&&(e.frames===a.current.frames&&e.startTimecode===a.current.startTimecode&&e.timecode===a.current.timecode||n($oe(e))),a.current=e},[e.mode,e.frames,e.startTimecode,e.timecode]),(0,p.jsx)("div",{className:Oo()({"gv-timecode":!0,[e.className]:!!e.className}),children:function(){const{dimmed:n,paddedSeparators:o,canExpand:i=!0,resolution:a=zoe.Hours,hideFrames:s,hideSign:l=!1}=e,{timecode:c}=t,u=c&&c.getFrameRate(),d=r||{},h=(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n}),children:"--"}),f=(0,p.jsxs)("span",{id:"hours","data-testid":"hours-span",children:[d.hours<10&&(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n}),children:"0"}),(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n&&0===d.hours}),children:d.hours})]}),g=(0,p.jsxs)("span",{id:"mins","data-testid":"mins-span",children:[d.minutes<10&&(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n&&0===d.hours}),children:"0"}),(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n&&0==d.hours&&0===d.minutes}),children:d.minutes})]}),m=(0,p.jsxs)("span",{id:"seconds","data-testid":"seconds-span",children:[d.seconds<10&&(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n&&0===d.hours&&0===d.minutes}),children:"0"}),(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n&&0===d.hours&&0===d.minutes&&0===d.seconds}),children:d.seconds})]}),v=(0,p.jsxs)("span",{id:"frames","data-testid":"frames-span",children:[u&&"milli"===u.getLabel()&&d.frames<100&&(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n&&0===d.hours&&0===d.minutes&&0===d.seconds}),children:"0"}),d.frames<10&&(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n&&0===d.hours&&0===d.minutes&&0===d.seconds}),children:"0"}),(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n&&0===d.hours&&0===d.minutes&&0===d.seconds&&0===d.frames}),children:d.frames})]}),y=a===zoe.Hours||i&&d?.hours>0,A=a>=zoe.Minutes||y||i&&d?.minutes>0,w=a>=zoe.Seconds||y||A||i&&d?.seconds>0,b=(a>=zoe.Frames||y||A||w||i&&d?.seconds>0)&&!s;return(0,p.jsxs)("span",{children:[l?"":d.sign??"",y&&(0,p.jsxs)(p.Fragment,{children:[r?f:h,(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n&&(0===d.hours||!r),"gv-timecode-padded":o}),children:":"})]}),A&&(0,p.jsxs)(p.Fragment,{children:[r?g:h,(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n&&(0===d.hours&&0===d.minutes||!r),"gv-timecode-padded":o}),children:":"})]}),w&&(0,p.jsx)(p.Fragment,{children:r?m:h}),b&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:Oo()({"gv-timecode-dimmed":n&&(0===d.hours&&0===d.minutes&&0===d.seconds||!r),"gv-timecode-padded":o}),children:u?u.getSeparator():":"}),r?v:h]})]})}()})};Koe.defaultProps={mode:new s.CounterMode("stopped")};const Qoe=()=>(0,p.jsx)("div",{className:"gv-unauthorised",children:(0,p.jsxs)("div",{style:{padding:"3% 3% 5% 3%",backgroundColor:"#232b36",borderRadius:"4px"},children:[(0,p.jsx)("h2",{children:"You do not have access to this page"}),(0,p.jsx)("hr",{className:"hr"}),"You do not have authorisation to navigate to the page you have selected.",(0,p.jsx)("br",{}),"Please check with your system administrator if you believe you have arrived here in error."]})}),qoe=[-.100644,-.338572,.439216,.501961],Yoe=[.439216,-.398942,-.040274,.501961],Xoe="\nattribute vec2 c;\n\nvoid main() {\n  gl_Position = vec4(c, 0.0, 1.0);\n}",Zoe="\nprecision highp float;\n\nuniform vec4 cb_v4;\nuniform vec4 cr_v4;\n\nuniform sampler2D tex;\nuniform sampler2D alphaTex;\nuniform float texWidth;\nuniform float texHeight;\n\nuniform float contrast;\nuniform float brightness;\nuniform float gamma;\n\nuniform vec2 chroma_key;\nuniform vec2 pixel_size;\nuniform float tolerance;\nuniform float smoothness;\nuniform float spill;\n\nuniform bool chroma;\nuniform bool alpha;\n\nvec4 CalcColor(vec4 rgba)\n{\n  return vec4(pow(rgba.rgb, vec3(gamma, gamma, gamma)) * contrast + brightness, rgba.a);\n}\n\nfloat GetChromaDist(vec3 rgb){\n  float cb = dot(rgb.rgb, cb_v4.xyz) + cb_v4.w;\n  float cr = dot(rgb.rgb, cr_v4.xyz) + cr_v4.w;\n  return distance(chroma_key, vec2(cb, cr));\n}\n\nfloat GetNonlinearChannel(float u) {\n  return (u <= 0.0031308) ? (12.92 * u) : ((1.055 * pow(u, 1.0 / 2.4)) - 0.055);\n}\n\nvec3 GetNonlinearColor(vec3 rgb) {\n  return vec3(GetNonlinearChannel(rgb.r), GetNonlinearChannel(rgb.g), GetNonlinearChannel(rgb.b));\n}\n\nvec3 SampleTexture(vec2 uv) {\n  vec3 rgb = texture2D(tex, uv).rgb;\n  return GetNonlinearColor(rgb);\n}\n\nfloat GetBoxFilteredChromaDist(vec3 rgb, vec2 texCoord) {\n  vec2 h_pixel_size = pixel_size / 2.0;\n  vec2 point_0 = vec2(pixel_size.x, h_pixel_size.y);\n  vec2 point_1 = vec2(h_pixel_size.x, -pixel_size.y);\n  float distVal = GetChromaDist(SampleTexture(texCoord-point_0));\n  distVal += GetChromaDist(SampleTexture(texCoord+point_0));\n  distVal += GetChromaDist(SampleTexture(texCoord-point_1));\n  distVal += GetChromaDist(SampleTexture(texCoord+point_1));\n  distVal *= 2.0;\n  distVal += GetChromaDist(GetNonlinearColor(rgb));\n  return distVal / 9.0;\n}\n\nvec4 ProcessChromaKey(vec4 rgba, vec2 texCoord) {\n  float chromaDist = GetBoxFilteredChromaDist(rgba.rgb, texCoord);\n\n  float baseMask = chromaDist - tolerance;\n  float fullMask = pow(clamp(baseMask / smoothness, 0., 1.), 1.5);\n  rgba.a = fullMask;\n\n  float spillVal = pow(clamp(baseMask / spill, 0., 1.), 1.5);\n  float desat = dot(rgba.rgb, vec3(0.2126, 0.7152, 0.0722));\n  rgba.rgb = mix(vec3(desat, desat, desat), rgba.rgb, spillVal);\n\n  return CalcColor(rgba);\n}\n\nvoid main(void) {\n  vec2 texCoord = vec2(gl_FragCoord.x/texWidth, 1.0 - (gl_FragCoord.y/texHeight));\n\n  vec4 rgba = texture2D(tex, texCoord);\n  rgba.rgb = max(vec3(0.0, 0.0, 0.0), rgba.rgb / rgba.a);\n\n  if (chroma) {\n    rgba = ProcessChromaKey(rgba, texCoord);\n  }\n\n  if (alpha) {\n    vec4 alphaRgba = texture2D(alphaTex, texCoord);\n    float a = (alphaRgba.r + alphaRgba.g + alphaRgba.b) / 3.;\n    rgba.a = a;\n  }\n  \n  rgba.rgb *= rgba.a;\n\n  gl_FragColor = rgba;\n}",Joe=(e,t)=>e.reduce((e,n,r)=>e+n*(t[r]??0),0),eie=e=>{const{src:t,alphaSrc:n,chromaKey:r,...o}=e,i=(0,h.useRef)(null),a=(0,h.useRef)(null),s=(0,h.useRef)(null),l=(0,h.useRef)(null),c=(0,h.useRef)(null),u=(0,h.useRef)(null),d=(0,h.useRef)(null),f=(0,h.useRef)(null),g=(0,h.useRef)({}),m=(0,h.useRef)(null),v=(0,h.useRef)(null);(0,h.useEffect)(()=>()=>{if(l.current){const e=l.current;d.current&&e.deleteProgram(d.current),v.current&&e.deleteShader(v.current),m.current&&e.deleteShader(m.current),f.current&&e.deleteBuffer(f.current),c.current&&e.deleteTexture(c.current),u.current&&e.deleteTexture(u.current)}},[]),(0,h.useEffect)(()=>{(async()=>{if(!i.current)return;l.current=i.current.getContext("webgl");const e=l.current;if(!e)return;if(m.current=e.createShader(e.VERTEX_SHADER),e.shaderSource(m.current,Xoe),e.compileShader(m.current),!e.getShaderParameter(m.current,e.COMPILE_STATUS))throw console.error(e.getShaderInfoLog(m.current)),e.deleteShader(m.current),new Error;if(v.current=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(v.current,Zoe),e.compileShader(v.current),!e.getShaderParameter(v.current,e.COMPILE_STATUS))throw console.error(e.getShaderInfoLog(v.current)),e.deleteShader(v.current),new Error;if(d.current=e.createProgram(),e.attachShader(d.current,m.current),e.attachShader(d.current,v.current),e.linkProgram(d.current),e.useProgram(d.current),e.enable(e.BLEND),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA),!e.getProgramParameter(d.current,e.LINK_STATUS))throw console.error(e.getProgramInfoLog(d.current)),e.deleteProgram(d.current),new Error;f.current=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,f.current),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1]),e.STATIC_DRAW);const t=e.getAttribLocation(d.current,"c");e.vertexAttribPointer(t,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(t),c.current=e.createTexture(),e.bindTexture(e.TEXTURE_2D,c.current),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),u.current=e.createTexture(),e.bindTexture(e.TEXTURE_2D,u.current),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR);const n=g.current;n.tex=e.getUniformLocation(d.current,"tex"),n.alphaTex=e.getUniformLocation(d.current,"alphaTex"),n.texWidth=e.getUniformLocation(d.current,"texWidth"),n.texHeight=e.getUniformLocation(d.current,"texHeight"),n.chromaKey=e.getUniformLocation(d.current,"chroma_key"),n.pixelSize=e.getUniformLocation(d.current,"pixel_size"),n.tolerance=e.getUniformLocation(d.current,"tolerance"),n.smoothness=e.getUniformLocation(d.current,"smoothness"),n.spill=e.getUniformLocation(d.current,"spill"),n.contrast=e.getUniformLocation(d.current,"contrast"),n.brightness=e.getUniformLocation(d.current,"brightness"),n.gamma=e.getUniformLocation(d.current,"gamma"),n.alphaFlag=e.getUniformLocation(d.current,"alpha"),n.chromaFlag=e.getUniformLocation(d.current,"chroma"),e.uniform1f(n.contrast,1),e.uniform1f(n.brightness,0),e.uniform1f(n.gamma,1),n.cbv4=e.getUniformLocation(d.current,"cb_v4"),n.crv4=e.getUniformLocation(d.current,"cr_v4"),e.uniform4f(n.cbv4,...qoe),e.uniform4f(n.crv4,...Yoe)})()},[]);const y=()=>{if(!a.current||!i.current||!l.current)return;const e=a.current.width,t=a.current.height;try{i.current.width=e,i.current.height=t;const o=l.current;o.viewport(0,0,e,t),o.clearColor(0,0,0,0),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT);const d=g.current;if(o.uniform1i(d.chromaFlag,r?1:0),o.uniform1i(d.alphaFlag,n?1:0),r){const{color:n,spill:i,tolerance:a,smoothness:s,gamma:l=1,brightness:c=0,contrast:u=1}=r,p=[Joe([n.r,n.g,n.b,1],qoe),Joe([n.r,n.g,n.b,1],Yoe)];o.uniform2f(d.chromaKey,p[0],p[1]),o.uniform2f(d.pixelSize,1/e,1/t),o.uniform1f(d.texWidth,e),o.uniform1f(d.texHeight,t),o.uniform1f(d.tolerance,a-.055),o.uniform1f(d.smoothness,s),o.uniform1f(d.spill,i),o.uniform1f(d.contrast,u),o.uniform1f(d.brightness,c),o.uniform1f(d.gamma,l)}o.uniform1i(d.tex,0),s.current&&o.uniform1i(d.alphaTex,1),o.activeTexture(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,c.current),o.texImage2D(o.TEXTURE_2D,0,o.RGBA,o.RGBA,o.UNSIGNED_BYTE,a.current),s.current&&(o.activeTexture(o.TEXTURE1),o.bindTexture(o.TEXTURE_2D,u.current),o.texImage2D(o.TEXTURE_2D,0,o.RGBA,o.RGBA,o.UNSIGNED_BYTE,s.current)),o.drawArrays(o.TRIANGLE_FAN,0,6)}catch(e){console.error(e)}};return(0,h.useEffect)(()=>{y()},[t,n,r]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("img",{src:t,ref:a,onLoad:y,style:{display:"none"}}),(0,p.jsx)("img",{src:n??"data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",ref:s,onLoad:y,style:{display:"none"}}),(0,p.jsx)("canvas",{...o,ref:i})]})},tie="\nattribute vec2 c;\n\nvoid main() {\n  gl_Position = vec4(c, 0.0, 1.0);\n}",nie="\nprecision highp float;\n\nuniform sampler2D tex;\nuniform float texWidth;\nuniform float texHeight;\nuniform float threshold;\nuniform float softness;\nuniform float invert;\n\nvoid main(void) {\n  vec2 texCoord = vec2(gl_FragCoord.x/texWidth, 1.0 - (gl_FragCoord.y/texHeight));\n  vec4 color = texture2D(tex, texCoord);\n  \n  // Calculate luminance using Rec. 709 coefficients\n  float luminance = dot(color.rgb, vec3(0.2126, 0.7152, 0.0722));\n  \n  // Apply threshold and softness (matches CUDA LuminanceKeyerUYVY logic):\n  // - threshold is the hard cut point (alpha=0 below threshold in normal mode)\n  // - transition zone is [threshold, threshold + softness] (linear ramp, not S-curve)\n  float dist = invert > 0.5 ? threshold - luminance : luminance - threshold;\n  float alpha = softness > 0.0 ? clamp(dist / softness, 0.0, 1.0) : step(0.0, dist);\n  \n  // Apply alpha to premultiplied RGBA\n  gl_FragColor = vec4(color.rgb * alpha, alpha);\n}",rie=e=>{const t=e.className?e.className.split(" "):"",n=Oo()("gv-textarea",t);return(0,p.jsx)("textarea",{id:e.id,className:n,value:e.value,placeholder:e.placeholder,rows:e.rows||5,onChange:e.onChange,spellCheck:e.spellCheck})},oie=e=>{const{disabled:t,inactive:n,value:r,style:o,size:i="16px",maxValue:a=5,onChange:s}=e,[l,c]=h.useState(null),u=(e,t,n)=>null!==e?t<=e:null!=n&&t<=n,d=(e,t,n)=>null!==e?t>e:null==n||t>n,f=()=>{c(null)};return(0,p.jsx)("div",{tabIndex:t?-1:0,className:Oo()("gv-rating","gv-rating-input",{"gv-rating-disabled":!0===t,"gv-rating-inactive":!0===n}),style:o,onKeyDown:e=>{"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),s&&r&&r>1&&s(r-1)):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),s&&r&&r<(a??5)&&s(r+1))},children:(g=a,Array.from({length:g},(e,t)=>t+1)).map(e=>(0,p.jsx)("svg",{viewBox:"0 0 16 16",style:{"--size":i},className:"gv-rating-star",onMouseUp:()=>(e=>{e!==r&&s&&s(e)})(e),onMouseEnter:()=>(e=>{c(e)})(e),onMouseLeave:f,children:(0,p.jsx)("path",{className:Oo()({"gv-rating-star-on":u(l,e,r),"gv-rating-star-off":d(l,e,r)}),d:"M8,11.8l-4.8,2.7l1.3-5.2L1,5.9l4.8-0.7L8,0.5l2.2,4.7L15,5.9l-3.5,3.3l1.3,5.2L8,11.8z"})},e))});var g},iie=e=>{const t=m("popout"),[n]=(0,h.useState)(e.title),[r]=(0,h.useState)(e.children),[o]=(0,h.useState)(()=>e.closeWindow),i=(0,h.useRef)(null);return(0,h.useEffect)(()=>(i.current||(i.current=window.open("","","width=800, height=500, left=300, top=200, location=no"),i.current.document.body.appendChild(t),Array.from(document.styleSheets).forEach(e=>{const t=e;if(e.href){const t=document.createElement("link");t.rel="stylesheet",t.href=e.href,i.current.document.head.appendChild(t)}else if(t&&t.cssRules&&t.cssRules.length>0){const e=document.createElement("style");Array.from(t.cssRules).forEach(t=>{e.appendChild(document.createTextNode(t.cssText))}),i.current.document.head.appendChild(e)}}),i.current.document.title=n,i.current.addEventListener("beforeunload",()=>{o()})),()=>{i.current&&i.current.close()}),[t,n,o]),t?Ls.createPortal(r,t):null},aie=e=>{const{muted:t,min:n,max:r,volume:o,onVolumeChange:i,onToggleAudioMute:a}=e;return(0,p.jsxs)("div",{className:"I9eeQ",children:[(0,p.jsx)(ko,{style:t?"primary2":"secondary",disabled:!1,onClick:a,icon:"audio-audio-disable"}),(0,p.jsx)("div",{className:"r5tY4",children:(0,p.jsx)(WY,{min:n,max:r,value:t?0:o,onChange:e=>i(e),disabled:!1})})]})},sie="UKg6K",lie="Wf3QM";var cie;!function(e){e.Absolute="absolute",e.RelativeFwd="fwd",e.RelativeBack="back"}(cie||(cie={}));const uie=e=>{const{numberEntryVal:t,timecodeEntryVal:n,timecodeType:r,displayClass:o,onSetGVTimecodeNavigationType:i}=e;return null!=t||null!=n?(0,p.jsxs)("div",{className:o??Oo()("q1WZ5",n&&sie),onClick:e=>e.stopPropagation(),style:(()=>{if(null!=t){const e=parseInt(t,10);if(!e||e>999)return{border:"2px solid red",borderRadius:"10px"}}return{}})(),children:[n?(0,p.jsxs)("div",{className:"ffk7l",children:[(0,p.jsx)(AP,{buttonStyle:"blue",primaryIcon:"time-date-position",onClick:e=>{e.stopPropagation(),i(cie.Absolute)},state:r==cie.Absolute}),(0,p.jsx)(AP,{buttonStyle:"blue",primaryIcon:"interface-plus-simple",onClick:e=>{e.stopPropagation(),i(cie.RelativeFwd)},state:r==cie.RelativeFwd}),(0,p.jsx)(AP,{buttonStyle:"blue",primaryIcon:"interface-minus",onClick:e=>{e.stopPropagation(),i(cie.RelativeBack)},state:r==cie.RelativeBack})]}):null,(0,p.jsx)("div",{className:o??Oo()("CPxru",n&&sie),children:(()=>{if(!n)return t;if(r!=cie.Absolute){let e=n.search(/\d/);return e<0&&(e=11),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:lie,children:n.substring(0,e).replace(/-/g,"0")}),e<11?(0,p.jsx)("span",{children:n.substring(e)}):null]})}let e=n.indexOf("-");return e<0&&(e=11),(0,p.jsxs)(p.Fragment,{children:[e>0?(0,p.jsx)("span",{children:n.substring(0,e)}):null,e>=0&&e<11?(0,p.jsx)("span",{className:lie,children:n.substring(e).replace(/-/g,"0")}):null]})})()})]}):null},die={placeholder:"Select icon...",isSearchable:!0,isClearable:!0,showNoneOption:!0,noneOptionLabel:"None",minWidth:"152px",maxWidth:"500px",isDisabled:!1,isRequired:!1,error:!1,isLoading:!1,loadingMessage:"Loading icons...",useEllipsis:!1},pie=e=>{const t={...die,...e},{onChange:n,value:r,placeholder:o,isDisabled:i,isRequired:a,customStyles:s,minWidth:l,maxWidth:c,isSearchable:u,isClearable:d,showNoneOption:f,noneOptionLabel:g,allowedIcons:m,excludedIcons:v,id:y,error:A,errorMessage:w,isLoading:b,loadingMessage:_,useEllipsis:C}=t,[E,S]=(0,h.useState)({searchValue:"",isOpen:!1,focusedOption:null}),O=e=>(0,p.jsxs)("div",{className:"gv-icon-select__option-content",style:{...C&&{maxWidth:"100%"}},children:[e.value&&(0,p.jsx)(Fo,{icon:e.value}),(0,p.jsx)("span",{style:{...C&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},title:e.label,children:e.label})]}),x=(0,h.useMemo)(()=>{let e=[...Do];return m?.length&&(e=e.filter(e=>m.includes(e))),v?.length&&(e=e.filter(e=>!v.includes(e))),e},[m,v]),D=(0,h.useMemo)(()=>{const e=x.map(e=>({value:e,label:e}));return f?[{value:"",label:g}].concat(e):e},[x,f,g]);return b?(0,p.jsx)("div",{className:Oo()("gv-icon-select-loading"),children:_}):(0,p.jsxs)("div",{className:Oo()("gv-icon-select"),style:{minWidth:l,maxWidth:c},children:[(0,p.jsx)(v6,{inputId:y,"aria-required":a,"aria-invalid":A,classNamePrefix:"gv-icon-select",className:Oo()({"gv-icon-select--error":A}),value:r?{value:r,label:r}:null,onChange:e=>n(e?.value||""),options:D,placeholder:o,isSearchable:u,isClearable:d,isDisabled:i,inputValue:E.searchValue,onInputChange:(e,{action:t})=>{switch(t){case"input-change":S(t=>({...t,searchValue:e}));break;case"menu-close":S(e=>({...e,searchValue:""}))}},menuPortalTarget:document.body,...s&&{styles:s},styles:{singleValue:e=>({...e,...C&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),valueContainer:e=>({...e,...C&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexWrap:"nowrap"}}),container:e=>({...e,...C&&{minWidth:"unset"}}),control:e=>({...e,...!C&&{minWidth:"max-content"}}),...s||{}},formatOptionLabel:O,getOptionLabel:e=>O(e)}),A&&w&&(0,p.jsx)("div",{className:Oo()("gv-icon-select-error"),role:"alert",children:w})]})},hie=async(e,t,n,r,o="An error occurred")=>{const i=e?.response?.json?await e.response.json().catch(()=>null):null;let a="";r&&(a+=r),a+=`\n${(0,Na.get)(e,["response","data","message"],i?.message??o)}`,i?.title&&(a+=`\n${i.title}`);for(const e in i?.errors)i.errors.hasOwnProperty(e)&&(a+=`\n${i.errors[e]}`);t&&t(a),n||Ire.error(a)}})(),d})(),e.exports=r(n(188),n(777),n(983),n(22),n(155),n(514))},188(e){var t;t=()=>(()=>{var e={833(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736(e,t,n){e.exports=function(e){function t(e){let n,o,i,a=null;function s(...e){if(!s.enabled)return;const r=s,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];n=i.call(r,t),e.splice(a,1),a--}return n}),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},585(e){var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o;function a(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,s){s=s||{};var l,c,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*i;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===u&&isFinite(e))return s.long?(l=e,(c=Math.abs(l))>=o?a(l,c,o,"day"):c>=r?a(l,c,r,"hour"):c>=n?a(l,c,n,"minute"):c>=t?a(l,c,t,"second"):l+" ms"):function(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=r?Math.round(e/r)+"h":i>=n?Math.round(e/n)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{BDateTime:()=>Ar,BDateTimeCount:()=>o,BDateTimeError:()=>mr,BDuration:()=>l,BDurationCount:()=>wr,BTiming:()=>i,Counter:()=>t,CounterMode:()=>e,FrameRate:()=>a,GVDebug:()=>Or,GVRegistry:()=>xr,GVStorage:()=>Dr,GVUtils:()=>Pr,calculateMillisecondsFromTimecode:()=>br,calculateTimecodeFromMilliseconds:()=>_r});class e{mode;constructor(e){this.mode=e}getLabel(){return this.mode}}class t{static fromJson(n){return new t(new e(n.mode),Ar.fromJson(n.reference))}rate;mode;reference;autoStop;countFrames;constructor(e,t,n=1,r){this.mode=e,this.reference=t,this.autoStop=r,this.countFrames=0,this.rate=n}toJson(){const e={};return e.mode=this.mode.getLabel(),e.reference=this.reference.toJson(),e}getOffset(t){return"countDown"===this.mode.getLabel()?this.countFrames=this.framesDifference(t)*this.rate:"countDownToZero"===this.mode.getLabel()?(this.countFrames=this.framesDifference(t),this.autoStop.getFrames()+this.countFrames<0&&(this.mode=new e("stopped"),this.countFrames=-1*this.autoStop.getFrames()*this.rate)):"countUp"===this.mode.getLabel()&&(this.countFrames=-1*this.framesDifference(t)*this.rate),this.countFrames}framesDifference(e){return this.reference.framesDifference(e)}}class o{static fromJson(t){const n=Ar.fromJson(t),r=Ar.fromJson(t.counter.reference),i=new e(t.counter.mode),a=t.counter&&t.counter.rate||1;return new o(n,r,i,a)}bDateTime;counter;constructor(e,n,r,o,i){o<0&&(o=-o),this.bDateTime=e,this.counter=new t(r,n,o,i)}getBDateTime(e){return this.bDateTime.addFrames(this.counter.getOffset(e))}toJson(){const e=this.bDateTime.toJson();return e.counter=this.counter.toJson(),e}getTimeString(e){return this.getBDateTime(e).getTimeString()}getDateString(e){return this.getBDateTime(e).getDateString()}toString(e){return this.getBDateTime(e).toString()}toLocalString(e,t){return this.bDateTime.addFrames(this.counter.getOffset(e)+t.getFrames()).toString()}getAsCounter(e,t,n){return new o(this.getBDateTime(e),e,t,n)}equals(e,t){return this.getBDateTime(e).equals(t.getBDateTime(e))}getComponents(e){return this.getBDateTime(e).getComponents()}}class i{static intDiv(e,t){return Math.trunc(e/t)}static decodeTcString(e,t,n){let r=!1;"-"===e[0]&&(e=e.substr(1),r=!0);const o=parseInt(e.substring(0,2)),i=parseInt(e.substring(3,5)),a=parseInt(e.substring(6,8));let s=0;s="milli"===t.getFrtype()?e.length>8?parseInt(e.substring(9,12)):0:e.length>8?parseInt(e.substring(9,11)):0;const l=this.calcFrame(o,i,a,s,t,n);return r?-l:l}static decodeIsoTime(e,t,n){const r=parseInt(e.substring(0,2)),o=parseInt(e.substring(3,5)),i=parseInt(e.substring(6,8)),a=(e.length>9?1e3*parseInt(e.substring(9,12).padEnd(3,"0")):0)/t.getUsPerFrame();return this.calcFrame(r,o,i,a,t,n)}static decodeGvAmppString(e,t,n){if("string"!=typeof e)throw new TypeError("tcString is not a string: "+typeof e);const r=/^(?<sign>[-+]?)((?<day>[0-9]{1,4})\.)?(?<hour>[0-9]{2}):(?<minute>[0-9]{2}):(?<second>[0-9]{2})(\.(?<millisecond>[0-9]+)?)?Z?$/.exec(e);if(!r)throw new TypeError(`invalid flex timecode string ${e}`);const o="-"===r.groups.sign,i=24*parseInt(r.groups.day??"0")*60*60,a=60*parseInt(r.groups.hour??"0")*60,s=60*parseInt(r.groups.minute??"0"),l=parseInt(r.groups.second??"0"),c=(r.groups.millisecond??"0").padEnd(7,"0"),u=parseInt(c),d=(i+a+s+l)*Math.pow(10,7)+u+.1,p=t.getFramesPerSecond()/Math.pow(10,7),h=Math.round(d*p+1e-7);return o?-h:h}static calcFrame(e,t,n,r,o,a){let s=0;switch(o.getLabel()){case"ndf24":s=(r+24*n+24*t*60+24*e*60*60)%2073600;break;case"ndf25":s=(r+25*n+25*t*60+25*e*60*60)%216e4;break;case"ndf30":s=(r+30*n+30*t*60+30*e*60*60)%2592e3;break;case"ndf50":s=(r+50*n+50*t*60+50*e*60*60)%432e4;break;case"ndf60":s=(r+60*n+60*t*60+60*e*60*60)%5184e3;break;case"df30":s=a?108e3*e+1800*t+30*n+r-2*(60*e+t-this.intDiv(60*e+t,10)):i.nonFodDecode(e,t,n,r,o);break;case"df24":s=i.nonFodDecode(e,t,n,r,o);break;case"df60":s=a?216e3*e+3600*t+60*n+r-4*(60*e+t-this.intDiv(60*e+t,10)):i.nonFodDecode(e,t,n,r,o);break;case"milli":s=(r+1e3*n+1e3*t*60+1e3*e*60*60)%864e5}return s}static toComp(e,t,n){let r={hours:0,minutes:0,seconds:0,frames:0};switch(n&&(r.days=0),e<0?(e*=-1,r.sign="-"):r.sign="",t.getLabel()){case"ndf24":r.days=i.intDiv(e,2073600),r.hours=i.intDiv(e,86400)%24,r.minutes=i.intDiv(e,1440)%60,r.seconds=i.intDiv(e,24)%60,r.frames=Math.trunc(e%24);break;case"ndf25":r.days=i.intDiv(e,216e4),r.hours=i.intDiv(e,9e4)%24,r.minutes=i.intDiv(e,1500)%60,r.seconds=i.intDiv(e,25)%60,r.frames=Math.trunc(e%25);break;case"ndf30":r.days=i.intDiv(e,2592e3),r.hours=i.intDiv(e,108e3)%24,r.minutes=i.intDiv(e,1800)%60,r.seconds=i.intDiv(e,30)%60,r.frames=Math.trunc(e%30);break;case"ndf50":r.days=i.intDiv(e,432e4),r.hours=i.intDiv(e,18e4)%24,r.minutes=i.intDiv(e,3e3)%60,r.seconds=i.intDiv(e,50)%60,r.frames=Math.trunc(e%50);break;case"ndf60":r.days=i.intDiv(e,5184e3),r.hours=i.intDiv(e,216e3)%24,r.minutes=i.intDiv(e,3600)%60,r.seconds=i.intDiv(e,60)%60,r.frames=Math.trunc(e%60);break;case"df30":r=n?i.convertDropToComponents(30,e,r):i.nonFodEncode(e,t);break;case"df24":r=i.nonFodEncode(e,t);break;case"df60":r=n?i.convertDropToComponents(60,e,r):i.nonFodEncode(e,t);break;case"milli":r.days=i.intDiv(e,864e5),r.hours=i.intDiv(e,36e5)%24,r.minutes=i.intDiv(e,6e4)%60,r.seconds=i.intDiv(e,1e3)%60,r.frames=Math.trunc(e%1e3)}return n||delete r.days,r}static convertDropToComponents(e,t,n){t=Math.floor(t),t=i.convertDropToNonDrop(t,e);const r=86400*e,o=3600*e,a=60*e;return n.days=i.intDiv(t,r),t-=n.days*r,n.hours=i.intDiv(t,o),t-=n.hours*o,n.minutes=i.intDiv(t,a),t-=n.minutes*a,n.seconds=i.intDiv(t,e),t-=n.seconds*e,n.frames=Math.round(t),n}static convertDropToNonDrop(e,t){const n=30==t?2:4,r=60*t,o=10*r,a=i.convertNonDropToDrop(r,t),s=i.convertNonDropToDrop(o,t),l=n*i.intDiv(e-n,s);let c=e;return c+=n*i.intDiv(e-n-l,a),c-=n*i.intDiv(c,o+n),c}static convertNonDropToDrop(e,t){const n=30==t?2:4,r=60*t,o=10*r;let a=e;return a-=n*i.intDiv(e,r),a+=n*i.intDiv(e,o),a}static encodeTcString(e,t,n,r,o){const a=i.toComp(e,t,n);let s="";if(o&&a.days>0?s+=a.days+".":!o&&!n&&a.days>0&&(a.hours+=24*a.days),s+=this.pad(a.hours,2)+":"+this.pad(a.minutes,2)+":"+this.pad(a.seconds,2),r){const n=t.getFramesPerSecond(),o="number"==typeof r?r:3,i=e%n/n,a=(e-e%n)/n,l=(a-Math.trunc(a)+i)*Math.pow(10,o);s+="."+`${Math.trunc(l)}`.padStart(o,"0")}else s=(a.sign||"")+s+t.getSeparator()+this.pad(Math.trunc(a.frames),2);return s}static nonFodDecode(e,t,n,r,o){const i=o.getFramesPerSecond();let a=Math.trunc(i)<i?1/i*.5:0;return a+=n,a+=60*t,a+=60*e*60,a=a*i+r,Math.trunc(a)}static nonFodEncode(e,t){const n={},r=t.getFramesPerSecond(),o=e/r,a=Math.trunc(o+1e-7);return n.frames=Math.trunc((o-a)/(1/r)+1e-7),n.days=i.intDiv(a,86400),n.hours=i.intDiv(a,3600)%24,n.minutes=i.intDiv(a,60)%60,n.seconds=a%60,n}static pad(e,t){let n=String(e);for(;n.length<(t||2);)n="0"+n;return n}_frameRate;fodMode;constructor(e,t){this._frameRate=e,this.fodMode=t}get frameRate(){return this._frameRate.getFrtype()}getFrameRate(){return this._frameRate}addToJson(e){e.frameRate=this._frameRate.getLabel()}}class a{static ndf25=new a("ndf25");static df30=new a("df30");static ndf30=new a("ndf30");static ndf50=new a("ndf50");static df60=new a("df60");static ndf60=new a("ndf60");static ndf24=new a("ndf24");static df24=new a("df24");static milli=new a("milli");static ratio(e){switch(e){case"1x1":default:return this.milli;case"24x1":return this.ndf24;case"25x1":return this.ndf25;case"30x1":return this.ndf30;case"50x1":return this.ndf50;case"60x1":return this.ndf60;case"24000x1001":return this.df24;case"30000x1001":return this.df30;case"60000x1001":return this.df60}}static ampp(e){switch(e){case"FPS24":return this.ndf24;case"FPS25":return this.ndf25;case"FPS30":return this.ndf30;case"FPS50":return this.ndf50;case"FPS60":return this.ndf60;case"FPS24DF":return this.df24;case"FPS30DF":return this.df30;case"FPS60DF":return this.df60;default:return this.milli}}fr;framesInDay;framesPerSecond;usPerFrame;separator;constructor(e){switch(this.fr=e,e){case"ndf25":this.framesInDay=216e4,this.framesPerSecond=25,this.usPerFrame=4e4,this.separator=":";break;case"df30":this.framesInDay=2589411,this.framesPerSecond=3e4/1001,this.usPerFrame=33366,this.separator=";";break;case"ndf30":this.framesInDay=2592e3,this.framesPerSecond=30,this.usPerFrame=1e6/30,this.separator=":";break;case"ndf50":this.framesInDay=432e4,this.framesPerSecond=50,this.usPerFrame=2e4,this.separator=":";break;case"df60":this.framesInDay=5178821,this.framesPerSecond=6e4/1001,this.usPerFrame=16683,this.separator=";";break;case"ndf60":this.framesInDay=5184e3,this.framesPerSecond=60,this.usPerFrame=1e6/60,this.separator=":";break;case"ndf24":this.framesInDay=2073600,this.framesPerSecond=24,this.usPerFrame=41666,this.separator=":";break;case"df24":this.framesInDay=2071528,this.framesPerSecond=24e3/1001,this.usPerFrame=41083,this.separator=";";break;case"milli":this.framesInDay=864e5,this.framesPerSecond=1e3,this.usPerFrame=1e3,this.separator="."}}getSeparator(){return this.separator}getLabel(){return this.fr}getFramesInDay(){return this.framesInDay}getFramesPerSecond(){return this.framesPerSecond}getUsPerFrame(){return this.usPerFrame}getFrtype(){return this.fr}}class s extends Error{constructor(e){super(e),this.name="BDurationError"}}class l extends i{_frames;get duration(){return this._frames}static fromJson(e){if(!e)return;const t=new a(e?.frameRate||"ndf25"),n="string"==typeof e.duration?i.decodeTcString(e.duration,t,!1):e.duration;return new l(n,t)}static fromTcString(e,t){const n="string"==typeof t?new a(t):t;return new l(i.decodeTcString(e,n,!1),n)}static fromFrames(e,t){const n="string"==typeof t?new a(t):t;return new l(e,n)}static fromGvAmpp(e,t){const n="string"==typeof t?new a(t):t,r=i.decodeGvAmppString(e,n,!1);return new l(r,n)}static zero(e){return new l(0,"string"==typeof e?new a(e):e)}constructor(e,t){if(super(t,!1),isNaN(e))throw new s("Invalid duration");this._frames=e}toJson(e,t){const n={};return this.addToJson(n),n.duration=e?this._frames:this.toString(!1,t),n.frameRate=this._frameRate.getFrtype(),n}addFrames(e){return new l(e+this._frames,this._frameRate)}addHours(e){const t=60*this._frameRate.getFramesPerSecond()*60*e;return this.addFrames(t)}plus(e,t){const n=this._frameRate.getFramesPerSecond();let r=0;"number"==typeof e&&(e={[t]:e});for(const[t,o]of Object.entries(e))switch(t){case"day":case"days":r+=24*n*60*60*o;break;case"hour":case"hours":r+=60*n*60*o;break;case"minute":case"minutes":r+=60*n*o;break;case"second":case"seconds":r+=n*o;break;case"frame":case"frames":r+=o}return this.addFrames(Math.round(r))}toString(e,t){return i.encodeTcString(this._frames,this._frameRate,this.fodMode,e,t)}getFrames(){return this._frames}getSeconds(){return this._frames*this._frameRate.getFramesPerSecond()}getMilliseconds(){return 1e3*this.getSeconds()}getMinutes(){return this.getSeconds()/60}getHours(){return this.getMinutes()/60}equals(e){return this._frames===e.getFrames()&&this._frameRate.getFrtype()===e._frameRate.getFrtype()}isGreaterThan(e){return this.getMilliseconds()>e.getMilliseconds()}isLessThan(e){return this.getMilliseconds()<e.getMilliseconds()}isGreaterThanOrEqual(e){return this.getMilliseconds()>=e.getMilliseconds()}isLessThanOrEqual(e){return this.getMilliseconds()<=e.getMilliseconds()}getComponents(){return i.toComp(this._frames,this._frameRate,!1)}getNegativeDuration(){return new l(-this._frames,this._frameRate)}}class c extends Error{}class u extends c{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class d extends c{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class p extends c{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class h extends c{}class f extends c{constructor(e){super(`Invalid unit ${e}`)}}class g extends c{}class m extends c{constructor(){super("Zone is an abstract class")}}const v="numeric",y="short",A="long",w={year:v,month:v,day:v},b={year:v,month:y,day:v},_={year:v,month:y,day:v,weekday:y},C={year:v,month:A,day:v},E={year:v,month:A,day:v,weekday:A},S={hour:v,minute:v},O={hour:v,minute:v,second:v},x={hour:v,minute:v,second:v,timeZoneName:y},D={hour:v,minute:v,second:v,timeZoneName:A},P={hour:v,minute:v,hourCycle:"h23"},M={hour:v,minute:v,second:v,hourCycle:"h23"},T={hour:v,minute:v,second:v,hourCycle:"h23",timeZoneName:y},R={hour:v,minute:v,second:v,hourCycle:"h23",timeZoneName:A},I={year:v,month:v,day:v,hour:v,minute:v},F={year:v,month:v,day:v,hour:v,minute:v,second:v},k={year:v,month:y,day:v,hour:v,minute:v},L={year:v,month:y,day:v,hour:v,minute:v,second:v},B={year:v,month:y,day:v,weekday:y,hour:v,minute:v},N={year:v,month:A,day:v,hour:v,minute:v,timeZoneName:y},j={year:v,month:A,day:v,hour:v,minute:v,second:v,timeZoneName:y},U={year:v,month:A,day:v,weekday:A,hour:v,minute:v,timeZoneName:A},V={year:v,month:A,day:v,weekday:A,hour:v,minute:v,second:v,timeZoneName:A};class H{get type(){throw new m}get name(){throw new m}get ianaName(){return this.name}get isUniversal(){throw new m}offsetName(e,t){throw new m}formatOffset(e,t){throw new m}offset(e){throw new m}equals(e){throw new m}get isValid(){throw new m}}let G=null;class W extends H{static get instance(){return null===G&&(G=new W),G}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return rt(e,t,n)}formatOffset(e,t){return st(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let z={};const $={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let K={};class Q extends H{static create(e){return K[e]||(K[e]=new Q(e)),K[e]}static resetCache(){K={},z={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Q.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return rt(e,t,n,this.name)}formatOffset(e,t){return st(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(r=this.name,z[r]||(z[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),z[r]);var r;let[o,i,a,s,l,c,u]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const{type:t,value:o}=n[e],i=$[t];"era"===t?r[i]=o:Le(i)||(r[i]=parseInt(o,10))}return r}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,i,a,s,l,c,u]=r;return[a,o,i,s,l,c,u]}(n,t);"BC"===s&&(o=1-Math.abs(o));let d=+t;const p=d%1e3;return d-=p>=0?p:1e3+p,(Je({year:o,month:i,day:a,hour:24===l?0:l,minute:c,second:u,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let q={},Y={};function X(e,t={}){const n=JSON.stringify([e,t]);let r=Y[n];return r||(r=new Intl.DateTimeFormat(e,t),Y[n]=r),r}let Z={},J={},ee=null,te={};function ne(e,t,n,r){const o=e.listingMode();return"error"===o?null:"en"===o?n(t):r(t)}class re{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:o,...i}=n;if(!t||Object.keys(i).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=Z[n];return r||(r=new Intl.NumberFormat(e,t),Z[n]=r),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ze(this.floor?Math.floor(e):qe(e,3),this.padTo)}}class oe{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Q.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||r,this.dtf=X(t,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ie{constructor(e,t,n){this.opts={style:"long",...n},!t&&je()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,o=JSON.stringify([e,r]);let i=J[o];return i||(i=new Intl.RelativeTimeFormat(e,t),J[o]=i),i}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&i){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${o[e][0]}`;case-1:return n?"yesterday":`last ${o[e][0]}`;case 0:return n?"today":`this ${o[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,c=o[e],u=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return a?`${s} ${u} ago`:`in ${s} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const ae={firstDay:1,minimalDays:4,weekend:[6,7]};class se{static fromOpts(e){return se.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,o=!1){const i=e||we.defaultLocale,a=i||(o?"en-US":ee||(ee=(new Intl.DateTimeFormat).resolvedOptions().locale,ee)),s=t||we.defaultNumberingSystem,l=n||we.defaultOutputCalendar,c=Ge(r)||we.defaultWeekSettings;return new se(a,s,l,c,i)}static resetCache(){ee=null,Y={},Z={},J={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return se.create(e,t,n,r)}constructor(e,t,n,r,o){const[i,a,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=X(e).resolvedOptions(),r=e}catch(o){const i=e.substring(0,n);t=X(i).resolvedOptions(),r=i}const{numberingSystem:o,calendar:i}=t;return[r,o,i]}}(e);this.locale=i,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?se.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Ge(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return ne(this,e,pt,()=>{const n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=fr.utc(2009,n,1);t.push(e(r))}return t}(e=>this.extract(e,n,"month"))),this.monthsCache[r][e]})}weekdays(e,t=!1){return ne(this,e,mt,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=fr.utc(2016,11,13+n);t.push(e(r))}return t}(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return ne(this,void 0,()=>vt,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[fr.utc(2016,11,13,9),fr.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ne(this,e,bt,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[fr.utc(-40,1,1),fr.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new re(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new oe(e,this.intl,t)}relFormatter(e={}){return new ie(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=q[n];return r||(r=new Intl.ListFormat(e,t),q[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Ue()?function(e){let t=te[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,te[e]=t}return t}(this.locale):ae}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let le=null;class ce extends H{static get utcInstance(){return null===le&&(le=new ce(0)),le}static instance(e){return 0===e?ce.utcInstance:new ce(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new ce(ot(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${st(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${st(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return st(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class ue extends H{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function de(e,t){if(Le(e)||null===e)return t;if(e instanceof H)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?W.instance:"utc"===n||"gmt"===n?ce.utcInstance:ce.parseSpecifier(n)||Q.create(e)}return Be(e)?ce.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new ue(e)}let pe,he=()=>Date.now(),fe="system",ge=null,me=null,ve=null,ye=60,Ae=null;class we{static get now(){return he}static set now(e){he=e}static set defaultZone(e){fe=e}static get defaultZone(){return de(fe,W.instance)}static get defaultLocale(){return ge}static set defaultLocale(e){ge=e}static get defaultNumberingSystem(){return me}static set defaultNumberingSystem(e){me=e}static get defaultOutputCalendar(){return ve}static set defaultOutputCalendar(e){ve=e}static get defaultWeekSettings(){return Ae}static set defaultWeekSettings(e){Ae=Ge(e)}static get twoDigitCutoffYear(){return ye}static set twoDigitCutoffYear(e){ye=e%100}static get throwOnInvalid(){return pe}static set throwOnInvalid(e){pe=e}static resetCaches(){se.resetCache(),Q.resetCache()}}class be{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const _e=[0,31,59,90,120,151,181,212,243,273,304,334],Ce=[0,31,60,91,121,152,182,213,244,274,305,335];function Ee(e,t){return new be("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Se(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return 0===o?7:o}function Oe(e,t,n){return n+(Ye(e)?Ce:_e)[t-1]}function xe(e,t){const n=Ye(e)?Ce:_e,r=n.findIndex(e=>e<t);return{month:r+1,day:t-n[r]}}function De(e,t){return(e-t+7)%7+1}function Pe(e,t=4,n=1){const{year:r,month:o,day:i}=e,a=Oe(r,o,i),s=De(Se(r,o,i),n);let l,c=Math.floor((a-s+14-t)/7);return c<1?(l=r-1,c=tt(l,t,n)):c>tt(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:s,...lt(e)}}function Me(e,t=4,n=1){const{weekYear:r,weekNumber:o,weekday:i}=e,a=De(Se(r,1,t),n),s=Xe(r);let l,c=7*o+i-a-7+t;c<1?(l=r-1,c+=Xe(l)):c>s?(l=r+1,c-=Xe(r)):l=r;const{month:u,day:d}=xe(l,c);return{year:l,month:u,day:d,...lt(e)}}function Te(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:Oe(t,n,r),...lt(e)}}function Re(e){const{year:t,ordinal:n}=e,{month:r,day:o}=xe(t,n);return{year:t,month:r,day:o,...lt(e)}}function Ie(e,t){if(!Le(e.localWeekday)||!Le(e.localWeekNumber)||!Le(e.localWeekYear)){if(!Le(e.weekday)||!Le(e.weekNumber)||!Le(e.weekYear))throw new h("Cannot mix locale-based week fields with ISO-based week fields");return Le(e.localWeekday)||(e.weekday=e.localWeekday),Le(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Le(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Fe(e){const t=Ne(e.year),n=We(e.month,1,12),r=We(e.day,1,Ze(e.year,e.month));return t?n?!r&&Ee("day",e.day):Ee("month",e.month):Ee("year",e.year)}function ke(e){const{hour:t,minute:n,second:r,millisecond:o}=e,i=We(t,0,23)||24===t&&0===n&&0===r&&0===o,a=We(n,0,59),s=We(r,0,59),l=We(o,0,999);return i?a?s?!l&&Ee("millisecond",o):Ee("second",r):Ee("minute",n):Ee("hour",t)}function Le(e){return void 0===e}function Be(e){return"number"==typeof e}function Ne(e){return"number"==typeof e&&e%1==0}function je(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Ue(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function Ve(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{const o=[t(r),r];return e&&n(e[0],o[0])===e[0]?e:o},null)[1]}function He(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ge(e){if(null==e)return null;if("object"!=typeof e)throw new g("Week settings must be an object");if(!We(e.firstDay,1,7)||!We(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!We(e,1,7)))throw new g("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function We(e,t,n){return Ne(e)&&e>=t&&e<=n}function ze(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function $e(e){return Le(e)||null===e||""===e?void 0:parseInt(e,10)}function Ke(e){return Le(e)||null===e||""===e?void 0:parseFloat(e)}function Qe(e){if(!Le(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function qe(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function Ye(e){return e%4==0&&(e%100!=0||e%400==0)}function Xe(e){return Ye(e)?366:365}function Ze(e,t){const n=(r=t-1)-12*Math.floor(r/12)+1;var r;return 2===n?Ye(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Je(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function et(e,t,n){return-De(Se(e,1,t),n)+t-1}function tt(e,t=4,n=1){const r=et(e,t,n),o=et(e+1,t,n);return(Xe(e)-r+o)/7}function nt(e){return e>99?e:e>we.twoDigitCutoffYear?1900+e:2e3+e}function rt(e,t,n,r=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:t,...i},s=new Intl.DateTimeFormat(n,a).formatToParts(o).find(e=>"timezonename"===e.type.toLowerCase());return s?s.value:null}function ot(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function it(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new g(`Invalid unit value ${e}`);return t}function at(e,t){const n={};for(const r in e)if(He(e,r)){const o=e[r];if(null==o)continue;n[t(r)]=it(o)}return n}function st(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${ze(n,2)}:${ze(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${ze(n,2)}${ze(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function lt(e){return function(e){return["hour","minute","second","millisecond"].reduce((t,n)=>(t[n]=e[n],t),{})}(e)}const ct=["January","February","March","April","May","June","July","August","September","October","November","December"],ut=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dt=["J","F","M","A","M","J","J","A","S","O","N","D"];function pt(e){switch(e){case"narrow":return[...dt];case"short":return[...ut];case"long":return[...ct];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ht=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ft=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],gt=["M","T","W","T","F","S","S"];function mt(e){switch(e){case"narrow":return[...gt];case"short":return[...ft];case"long":return[...ht];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const vt=["AM","PM"],yt=["Before Christ","Anno Domini"],At=["BC","AD"],wt=["B","A"];function bt(e){switch(e){case"narrow":return[...wt];case"short":return[...At];case"long":return[...yt];default:return null}}function _t(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Ct={D:w,DD:b,DDD:C,DDDD:E,t:S,tt:O,ttt:x,tttt:D,T:P,TT:M,TTT:T,TTTT:R,f:I,ff:k,fff:N,ffff:U,F,FF:L,FFF:j,FFFF:V};class Et{static create(e,t={}){return new Et(e,t)}static parseFormat(e){let t=null,n="",r=!1;const o=[];for(let i=0;i<e.length;i++){const a=e.charAt(i);"'"===a?(n.length>0&&o.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&o.push({literal:r||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(e){return Ct[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return ze(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(t,n)=>this.loc.extract(e,t,n),i=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=(t,r)=>n?function(e,t){return pt(t)[e.month-1]}(e,t):o(r?{month:t}:{month:t,day:"numeric"},"month"),s=(t,r)=>n?function(e,t){return mt(t)[e.weekday-1]}(e,t):o(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=Et.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?function(e,t){return bt(t)[e.year<0?0:1]}(e,t):o({era:t},"era");return _t(Et.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return n?function(e){return vt[e.hour<12?0:1]}(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?o({day:"numeric"},"day"):this.num(e.day);case"dd":return r?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return s("short",!0);case"cccc":return s("long",!0);case"ccccc":return s("narrow",!0);case"EEE":return s("short",!1);case"EEEE":return s("long",!1);case"EEEEE":return s("narrow",!1);case"L":return r?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return r?o({month:"numeric"},"month"):this.num(e.month);case"MM":return r?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return r?o({year:"numeric"},"year"):this.num(e.year);case"yy":return r?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}})}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=Et.parseFormat(t),o=r.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]);return _t(r,(e=>t=>{const r=n(t);return r?this.num(e.get(r),t.length):t})(e.shiftTo(...o.map(n).filter(e=>e))))}}const St=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ot(...e){const t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function xt(...e){return t=>e.reduce(([e,n,r],o)=>{const[i,a,s]=o(t,r);return[{...e,...i},a||n,s]},[{},null,1]).slice(0,2)}function Dt(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function Pt(...e){return(t,n)=>{const r={};let o;for(o=0;o<e.length;o++)r[e[o]]=$e(t[n+o]);return[r,null,n+o]}}const Mt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Tt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Rt=RegExp(`${Tt.source}(?:${Mt.source}?(?:\\[(${St.source})\\])?)?`),It=RegExp(`(?:T${Rt.source})?`),Ft=Pt("weekYear","weekNumber","weekDay"),kt=Pt("year","ordinal"),Lt=RegExp(`${Tt.source} ?(?:${Mt.source}|(${St.source}))?`),Bt=RegExp(`(?: ${Lt.source})?`);function Nt(e,t,n){const r=e[t];return Le(r)?n:$e(r)}function jt(e,t){return[{hours:Nt(e,t,0),minutes:Nt(e,t+1,0),seconds:Nt(e,t+2,0),milliseconds:Qe(e[t+3])},null,t+4]}function Ut(e,t){const n=!e[t]&&!e[t+1],r=ot(e[t+1],e[t+2]);return[{},n?null:ce.instance(r),t+3]}function Vt(e,t){return[{},e[t]?Q.create(e[t]):null,t+1]}const Ht=RegExp(`^T?${Tt.source}$`),Gt=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Wt(e){const[t,n,r,o,i,a,s,l,c]=e,u="-"===t[0],d=l&&"-"===l[0],p=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:p(Ke(n)),months:p(Ke(r)),weeks:p(Ke(o)),days:p(Ke(i)),hours:p(Ke(a)),minutes:p(Ke(s)),seconds:p(Ke(l),"-0"===l),milliseconds:p(Qe(c),d)}]}const zt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function $t(e,t,n,r,o,i,a){const s={year:2===t.length?nt($e(t)):$e(t),month:ut.indexOf(n)+1,day:$e(r),hour:$e(o),minute:$e(i)};return a&&(s.second=$e(a)),e&&(s.weekday=e.length>3?ht.indexOf(e)+1:ft.indexOf(e)+1),s}const Kt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Qt(e){const[,t,n,r,o,i,a,s,l,c,u,d]=e,p=$t(t,o,r,n,i,a,s);let h;return h=l?zt[l]:c?0:ot(u,d),[p,new ce(h)]}const qt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Yt=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Xt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Zt(e){const[,t,n,r,o,i,a,s]=e;return[$t(t,o,r,n,i,a,s),ce.utcInstance]}function Jt(e){const[,t,n,r,o,i,a,s]=e;return[$t(t,s,n,r,o,i,a),ce.utcInstance]}const en=Ot(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,It),tn=Ot(/(\d{4})-?W(\d\d)(?:-?(\d))?/,It),nn=Ot(/(\d{4})-?(\d{3})/,It),rn=Ot(Rt),on=xt(function(e,t){return[{year:Nt(e,t),month:Nt(e,t+1,1),day:Nt(e,t+2,1)},null,t+3]},jt,Ut,Vt),an=xt(Ft,jt,Ut,Vt),sn=xt(kt,jt,Ut,Vt),ln=xt(jt,Ut,Vt),cn=xt(jt),un=Ot(/(\d{4})-(\d\d)-(\d\d)/,Bt),dn=Ot(Lt),pn=xt(jt,Ut,Vt),hn="Invalid Duration",fn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},gn={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...fn},mn={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...fn},vn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],yn=vn.slice(0).reverse();function An(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new _n(r)}function wn(e,t){let n=t.milliseconds??0;for(const r of yn.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function bn(e,t){const n=wn(e,t)<0?-1:1;vn.reduceRight((r,o)=>{if(Le(t[o]))return r;if(r){const i=t[r]*n,a=e[o][r],s=Math.floor(i/a);t[o]+=s*n,t[r]-=s*a*n}return o},null),vn.reduce((n,r)=>{if(Le(t[r]))return n;if(n){const o=t[n]%1;t[n]-=o,t[r]+=o*e[n][r]}return r},null)}class _n{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?mn:gn;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||se.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return _n.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new g("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new _n({values:at(e,_n.normalizeUnit),loc:se.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Be(e))return _n.fromMillis(e);if(_n.isDuration(e))return e;if("object"==typeof e)return _n.fromObject(e);throw new g(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return Dt(e,[Gt,Wt])}(e);return n?_n.fromObject(n,t):_n.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return Dt(e,[Ht,cn])}(e);return n?_n.fromObject(n,t):_n.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new g("need to specify a reason the Duration is invalid");const n=e instanceof be?e:new be(e,t);if(we.throwOnInvalid)throw new p(n);return new _n({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new f(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Et.create(this.loc,n).formatDurationFromString(this,e):hn}toHuman(e={}){if(!this.isValid)return hn;const t=vn.map(t=>{const n=this.values[t];return Le(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=qe(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},fr.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?wn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=_n.fromDurationLike(e),n={};for(const e of vn)(He(t.values,e)||He(this.values,e))&&(n[e]=t.get(e)+this.get(e));return An(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=_n.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=it(e(this.values[n],n));return An(this,{values:t},!0)}get(e){return this[_n.normalizeUnit(e)]}set(e){return this.isValid?An(this,{values:{...this.values,...at(e,_n.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return An(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return bn(this.matrix,e),An(this,{values:e},!0)}rescale(){return this.isValid?An(this,{values:function(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map(e=>_n.normalizeUnit(e));const t={},n={},r=this.toObject();let o;for(const i of vn)if(e.indexOf(i)>=0){o=i;let e=0;for(const t in n)e+=this.matrix[t][i]*n[t],n[t]=0;Be(r[i])&&(e+=r[i]);const a=Math.trunc(e);t[i]=a,n[i]=(1e3*e-1e3*a)/1e3}else Be(r[i])&&(n[i]=r[i]);for(const e in n)0!==n[e]&&(t[o]+=e===o?n[e]:n[e]/this.matrix[o][e]);return bn(this.matrix,t),An(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return An(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(const n of vn)if(!t(this.values[n],e.values[n]))return!1;return!0}}const Cn="Invalid Interval";class En{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new g("need to specify a reason the Interval is invalid");const n=e instanceof be?e:new be(e,t);if(we.throwOnInvalid)throw new d(n);return new En({invalid:n})}static fromDateTimes(e,t){const n=gr(e),r=gr(t),o=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?En.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:En.invalid("missing or invalid end"):En.invalid("missing or invalid start")}(n,r);return null==o?new En({start:n,end:r}):o}static after(e,t){const n=_n.fromDurationLike(t),r=gr(e);return En.fromDateTimes(r,r.plus(n))}static before(e,t){const n=_n.fromDurationLike(t),r=gr(e);return En.fromDateTimes(r.minus(n),r)}static fromISO(e,t){const[n,r]=(e||"").split("/",2);if(n&&r){let e,o,i,a;try{e=fr.fromISO(n,t),o=e.isValid}catch(r){o=!1}try{i=fr.fromISO(r,t),a=i.isValid}catch(r){a=!1}if(o&&a)return En.fromDateTimes(e,i);if(o){const n=_n.fromISO(r,t);if(n.isValid)return En.after(e,n)}else if(a){const e=_n.fromISO(n,t);if(e.isValid)return En.before(i,e)}}return En.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?En.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(gr).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),n=[];let{s:r}=this,o=0;for(;r<this.e;){const e=t[o]||this.e,i=+e>+this.e?this.e:e;n.push(En.fromDateTimes(r,i)),r=i,o+=1}return n}splitBy(e){const t=_n.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,o=1;const i=[];for(;r<this.e;){const e=this.start.plus(t.mapUnits(e=>e*o));n=+e>+this.e?this.e:e,i.push(En.fromDateTimes(r,n)),r=n,o+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e===+e.s}abutsEnd(e){return!!this.isValid&&+e.e===+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:En.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return En.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],o=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),i=Array.prototype.concat(...o).sort((e,t)=>e.time-t.time);for(const e of i)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!==+e.time&&r.push(En.fromDateTimes(t,e.time)),t=null);return En.merge(r)}difference(...e){return En.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Cn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=w,t={}){return this.isValid?Et.create(this.s.loc.clone(t),e).formatInterval(this):Cn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Cn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Cn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Cn}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Cn}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):_n.invalid(this.invalidReason)}mapEndpoints(e){return En.fromDateTimes(e(this.s),e(this.e))}}class Sn{static hasDST(e=we.defaultZone){const t=fr.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Q.isValidZone(e)}static normalizeZone(e){return de(e,we.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||se.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||se.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||se.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||se.create(t,n,o)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||se.create(t,n,o)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||se.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||se.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return se.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return se.create(t,null,"gregory").eras(e)}static features(){return{relative:je(),localeWeek:Ue()}}}function On(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(_n.fromMillis(r).as("days"))}const xn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Dn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Pn=xn.hanidec.replace(/[\[|\]]/g,"").split("");function Mn({numberingSystem:e},t=""){return new RegExp(`${xn[e||"latn"]}${t}`)}function Tn(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(-1!==e[n].search(xn.hanidec))t+=Pn.indexOf(e[n]);else for(const e in Dn){const[n,o]=Dn[e];r>=n&&r<=o&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const Rn=`[ ${String.fromCharCode(160)}]`,In=new RegExp(Rn,"g");function Fn(e){return e.replace(/\./g,"\\.?").replace(In,Rn)}function kn(e){return e.replace(/\./g,"").replace(In," ").toLowerCase()}function Ln(e,t){return null===e?null:{regex:RegExp(e.map(Fn).join("|")),deser:([n])=>e.findIndex(e=>kn(n)===kn(e))+t}}function Bn(e,t){return{regex:e,deser:([,e,t])=>ot(e,t),groups:t}}function Nn(e){return{regex:e,deser:([e])=>e}}const jn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Un=null;function Vn(e,t){return Array.prototype.concat(...e.map(e=>function(e,t){if(e.literal)return e;const n=Gn(Et.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t)))}function Hn(e,t,n){const r=Vn(Et.parseFormat(n),e),o=r.map(t=>function(e,t){const n=Mn(t),r=Mn(t,"{2}"),o=Mn(t,"{3}"),i=Mn(t,"{4}"),a=Mn(t,"{6}"),s=Mn(t,"{1,2}"),l=Mn(t,"{1,3}"),c=Mn(t,"{1,6}"),u=Mn(t,"{1,9}"),d=Mn(t,"{2,4}"),p=Mn(t,"{4,6}"),h=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},f=(f=>{if(e.literal)return h(f);switch(f.val){case"G":return Ln(t.eras("short"),0);case"GG":return Ln(t.eras("long"),0);case"y":return Tn(c);case"yy":case"kk":return Tn(d,nt);case"yyyy":case"kkkk":return Tn(i);case"yyyyy":return Tn(p);case"yyyyyy":return Tn(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Tn(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Tn(r);case"MMM":return Ln(t.months("short",!0),1);case"MMMM":return Ln(t.months("long",!0),1);case"LLL":return Ln(t.months("short",!1),1);case"LLLL":return Ln(t.months("long",!1),1);case"o":case"S":return Tn(l);case"ooo":case"SSS":return Tn(o);case"u":return Nn(u);case"uu":return Nn(s);case"uuu":case"E":case"c":return Tn(n);case"a":return Ln(t.meridiems(),0);case"EEE":return Ln(t.weekdays("short",!1),1);case"EEEE":return Ln(t.weekdays("long",!1),1);case"ccc":return Ln(t.weekdays("short",!0),1);case"cccc":return Ln(t.weekdays("long",!0),1);case"Z":case"ZZ":return Bn(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return Bn(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return Nn(/[a-z_+-/]{1,256}?/i);case" ":return Nn(/[^\S\n\r]/);default:return h(f)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=e,f}(t,e)),i=o.find(e=>e.invalidReason);if(i)return{input:t,tokens:r,invalidReason:i.invalidReason};{const[e,n]=function(e){return[`^${e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"")}$`,e]}(o),i=RegExp(e,"i"),[a,s]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const o in n)if(He(n,o)){const i=n[o],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(r.slice(t,t+a))),t+=a}return[r,e]}return[r,{}]}(t,i,n),[l,c,u]=s?function(e){let t,n=null;return Le(e.z)||(n=Q.create(e.z)),Le(e.Z)||(n||(n=new ce(e.Z)),t=e.Z),Le(e.q)||(e.M=3*(e.q-1)+1),Le(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Le(e.u)||(e.S=Qe(e.u)),[Object.keys(e).reduce((t,n)=>{const r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t},{}),n,t]}(s):[null,null,void 0];if(He(s,"a")&&He(s,"H"))throw new h("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:i,rawMatches:a,matches:s,result:l,zone:c,specificOffset:u}}}function Gn(e,t){if(!e)return null;const n=Et.create(t,e).dtFormatter((Un||(Un=fr.fromMillis(1555555555555)),Un)),r=n.formatToParts(),o=n.resolvedOptions();return r.map(t=>function(e,t,n){const{type:r,value:o}=e;if("literal"===r){const e=/^\s+$/.test(o);return{literal:!e,val:e?" ":o}}const i=t[r];let a=r;"hour"===r&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=jn[a];if("object"==typeof s&&(s=s[i]),s)return{literal:!1,val:s}}(t,e,o))}const Wn="Invalid DateTime",zn=864e13;function $n(e){return new be("unsupported zone",`the zone "${e.name}" is not supported`)}function Kn(e){return null===e.weekData&&(e.weekData=Pe(e.c)),e.weekData}function Qn(e){return null===e.localWeekData&&(e.localWeekData=Pe(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function qn(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new fr({...n,...t,old:n})}function Yn(e,t,n){let r=e-60*t*1e3;const o=n.offset(r);if(t===o)return[r,t];r-=60*(o-t)*1e3;const i=n.offset(r);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}function Xn(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Zn(e,t,n){return Yn(Je(e),t,n)}function Jn(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:r,month:o,day:Math.min(e.c.day,Ze(r,o))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=_n.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Je(i);let[l,c]=Yn(s,n,e.zone);return 0!==a&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function er(e,t,n,r,o,i){const{setZone:a,zone:s}=n;if(e&&0!==Object.keys(e).length||t){const r=t||s,o=fr.fromObject(e,{...n,zone:r,specificOffset:i});return a?o:o.setZone(s)}return fr.invalid(new be("unparsable",`the input "${o}" can't be parsed as ${r}`))}function tr(e,t,n=!0){return e.isValid?Et.create(se.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function nr(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=ze(e.c.year,n?6:4),t?(r+="-",r+=ze(e.c.month),r+="-",r+=ze(e.c.day)):(r+=ze(e.c.month),r+=ze(e.c.day)),r}function rr(e,t,n,r,o,i){let a=ze(e.c.hour);return t?(a+=":",a+=ze(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=":")):a+=ze(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=ze(e.c.second),0===e.c.millisecond&&r||(a+=".",a+=ze(e.c.millisecond,3))),o&&(e.isOffsetFixed&&0===e.offset&&!i?a+="Z":e.o<0?(a+="-",a+=ze(Math.trunc(-e.o/60)),a+=":",a+=ze(Math.trunc(-e.o%60))):(a+="+",a+=ze(Math.trunc(e.o/60)),a+=":",a+=ze(Math.trunc(e.o%60)))),i&&(a+="["+e.zone.ianaName+"]"),a}const or={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ir={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ar={ordinal:1,hour:0,minute:0,second:0,millisecond:0},sr=["year","month","day","hour","minute","second","millisecond"],lr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],cr=["year","ordinal","hour","minute","second","millisecond"];function ur(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new f(e);return t}(e)}}function dr(e,t){const n=de(t.zone,we.defaultZone),r=se.fromObject(t),o=we.now();let i,a;if(Le(e.year))i=o;else{for(const t of sr)Le(e[t])&&(e[t]=or[t]);const t=Fe(e)||ke(e);if(t)return fr.invalid(t);const r=n.offset(o);[i,a]=Zn(e,r,n)}return new fr({ts:i,zone:n,loc:r,o:a})}function pr(e,t,n){const r=!!Le(n.round)||n.round,o=(e,o)=>(e=qe(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,o)),i=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return o(i(n.unit),n.unit);for(const e of n.units){const t=i(e);if(Math.abs(t)>=1)return o(t,e)}return o(e>t?-0:0,n.units[n.units.length-1])}function hr(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class fr{constructor(e){const t=e.zone||we.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new be("invalid input"):null)||(t.isValid?null:$n(t));this.ts=Le(e.ts)?we.now():e.ts;let r=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,o]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);r=Xn(this.ts,e),n=Number.isNaN(r.year)?new be("invalid input"):null,r=n?null:r,o=n?null:e}this._zone=t,this.loc=e.loc||se.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}static now(){return new fr({})}static local(){const[e,t]=hr(arguments),[n,r,o,i,a,s,l]=t;return dr({year:n,month:r,day:o,hour:i,minute:a,second:s,millisecond:l},e)}static utc(){const[e,t]=hr(arguments),[n,r,o,i,a,s,l]=t;return e.zone=ce.utcInstance,dr({year:n,month:r,day:o,hour:i,minute:a,second:s,millisecond:l},e)}static fromJSDate(e,t={}){const n=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);var r;if(Number.isNaN(n))return fr.invalid("invalid input");const o=de(t.zone,we.defaultZone);return o.isValid?new fr({ts:n,zone:o,loc:se.fromObject(t)}):fr.invalid($n(o))}static fromMillis(e,t={}){if(Be(e))return e<-zn||e>zn?fr.invalid("Timestamp out of range"):new fr({ts:e,zone:de(t.zone,we.defaultZone),loc:se.fromObject(t)});throw new g(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Be(e))return new fr({ts:1e3*e,zone:de(t.zone,we.defaultZone),loc:se.fromObject(t)});throw new g("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=de(t.zone,we.defaultZone);if(!n.isValid)return fr.invalid($n(n));const r=se.fromObject(t),o=at(e,ur),{minDaysInFirstWeek:i,startOfWeek:a}=Ie(o,r),s=we.now(),l=Le(t.specificOffset)?n.offset(s):t.specificOffset,c=!Le(o.ordinal),u=!Le(o.year),d=!Le(o.month)||!Le(o.day),p=u||d,f=o.weekYear||o.weekNumber;if((p||c)&&f)throw new h("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new h("Can't mix ordinal dates with month/day");const g=f||o.weekday&&!p;let m,v,y=Xn(s,l);g?(m=lr,v=ir,y=Pe(y,i,a)):c?(m=cr,v=ar,y=Te(y)):(m=sr,v=or);let A=!1;for(const e of m)Le(o[e])?o[e]=A?v[e]:y[e]:A=!0;const w=g?function(e,t=4,n=1){const r=Ne(e.weekYear),o=We(e.weekNumber,1,tt(e.weekYear,t,n)),i=We(e.weekday,1,7);return r?o?!i&&Ee("weekday",e.weekday):Ee("week",e.weekNumber):Ee("weekYear",e.weekYear)}(o,i,a):c?function(e){const t=Ne(e.year),n=We(e.ordinal,1,Xe(e.year));return t?!n&&Ee("ordinal",e.ordinal):Ee("year",e.year)}(o):Fe(o),b=w||ke(o);if(b)return fr.invalid(b);const _=g?Me(o,i,a):c?Re(o):o,[C,E]=Zn(_,l,n),S=new fr({ts:C,zone:n,o:E,loc:r});return o.weekday&&p&&e.weekday!==S.weekday?fr.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${S.toISO()}`):S}static fromISO(e,t={}){const[n,r]=function(e){return Dt(e,[en,on],[tn,an],[nn,sn],[rn,ln])}(e);return er(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return Dt(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Kt,Qt])}(e);return er(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return Dt(e,[qt,Zt],[Yt,Zt],[Xt,Jt])}(e);return er(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(Le(e)||Le(t))throw new g("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:o=null}=n,i=se.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),[a,s,l,c]=function(e,t,n){const{result:r,zone:o,specificOffset:i,invalidReason:a}=Hn(e,t,n);return[r,o,i,a]}(i,e,t);return c?fr.invalid(c):er(a,s,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return fr.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return Dt(e,[un,on],[dn,pn])}(e);return er(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new g("need to specify a reason the DateTime is invalid");const n=e instanceof be?e:new be(e,t);if(we.throwOnInvalid)throw new u(n);return new fr({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=Gn(e,se.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return Vn(Et.parseFormat(e),se.fromObject(t)).map(e=>e.val).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Kn(this).weekYear:NaN}get weekNumber(){return this.isValid?Kn(this).weekNumber:NaN}get weekday(){return this.isValid?Kn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Qn(this).weekday:NaN}get localWeekNumber(){return this.isValid?Qn(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Qn(this).weekYear:NaN}get ordinal(){return this.isValid?Te(this.c).ordinal:NaN}get monthShort(){return this.isValid?Sn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Sn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Sn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Sn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=Je(this.c),r=this.zone.offset(n-e),o=this.zone.offset(n+e),i=this.zone.offset(n-r*t),a=this.zone.offset(n-o*t);if(i===a)return[this];const s=n-i*t,l=n-a*t,c=Xn(s,i),u=Xn(l,a);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[qn(this,{ts:s}),qn(this,{ts:l})]:[this]}get isInLeapYear(){return Ye(this.year)}get daysInMonth(){return Ze(this.year,this.month)}get daysInYear(){return this.isValid?Xe(this.year):NaN}get weeksInWeekYear(){return this.isValid?tt(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?tt(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=Et.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(ce.instance(e),t)}toLocal(){return this.setZone(we.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=de(e,we.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=Zn(n,t,e)}return qn(this,{ts:r,zone:e})}return fr.invalid($n(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return qn(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=at(e,ur),{minDaysInFirstWeek:n,startOfWeek:r}=Ie(t,this.loc),o=!Le(t.weekYear)||!Le(t.weekNumber)||!Le(t.weekday),i=!Le(t.ordinal),a=!Le(t.year),s=!Le(t.month)||!Le(t.day),l=a||s,c=t.weekYear||t.weekNumber;if((l||i)&&c)throw new h("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new h("Can't mix ordinal dates with month/day");let u;o?u=Me({...Pe(this.c,n,r),...t},n,r):Le(t.ordinal)?(u={...this.toObject(),...t},Le(t.day)&&(u.day=Math.min(Ze(u.year,u.month),u.day))):u=Re({...Te(this.c),...t});const[d,p]=Zn(u,this.o,this.zone);return qn(this,{ts:d,o:p})}plus(e){return this.isValid?qn(this,Jn(this,_n.fromDurationLike(e))):this}minus(e){return this.isValid?qn(this,Jn(this,_n.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},r=_n.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===r){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?Et.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Wn}toLocaleString(e=w,t={}){return this.isValid?Et.create(this.loc.clone(t),e).formatDateTime(this):Wn}toLocaleParts(e={}){return this.isValid?Et.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const i="extended"===e;let a=nr(this,i);return a+="T",a+=rr(this,i,t,n,r,o),a}toISODate({format:e="extended"}={}){return this.isValid?nr(this,"extended"===e):null}toISOWeekDate(){return tr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:o=!1,format:i="extended"}={}){return this.isValid?(r?"T":"")+rr(this,"extended"===i,t,e,n,o):null}toRFC2822(){return tr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return tr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?nr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),tr(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Wn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return _n.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=(s=t,Array.isArray(s)?s:[s]).map(_n.normalizeUnit),i=e.valueOf()>this.valueOf(),a=function(e,t,n,r){let[o,i,a,s]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=On(e,t);return(n-n%7)/7}],["days",On]],o={},i=e;let a,s;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,o[l]=c(e,t),s=i.plus(o),s>t?(o[l]--,(e=i.plus(o))>t&&(s=e,o[l]--,e=i.plus(o))):e=s);return[e,o,s,a]}(e,t,n);const l=t-o,c=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===c.length&&(a<t&&(a=o.plus({[s]:1})),a!==o&&(i[s]=(i[s]||0)+l/(a-o)));const u=_n.fromObject(i,r);return c.length>0?_n.fromMillis(l,r).shiftTo(...c).plus(u):u}(i?this:e,i?e:this,o,r);var s;return i?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(fr.now(),e,t)}until(e){return this.isValid?En.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const r=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(t,n)<=r&&r<=o.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||fr.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(r=e.unit,o=void 0),pr(t,this.plus(n),{...e,numeric:"always",units:r,unit:o})}toRelativeCalendar(e={}){return this.isValid?pr(e.base||fr.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(fr.isDateTime))throw new g("min requires all arguments be DateTimes");return Ve(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(fr.isDateTime))throw new g("max requires all arguments be DateTimes");return Ve(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:o=null}=n;return Hn(se.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return fr.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return w}static get DATE_MED(){return b}static get DATE_MED_WITH_WEEKDAY(){return _}static get DATE_FULL(){return C}static get DATE_HUGE(){return E}static get TIME_SIMPLE(){return S}static get TIME_WITH_SECONDS(){return O}static get TIME_WITH_SHORT_OFFSET(){return x}static get TIME_WITH_LONG_OFFSET(){return D}static get TIME_24_SIMPLE(){return P}static get TIME_24_WITH_SECONDS(){return M}static get TIME_24_WITH_SHORT_OFFSET(){return T}static get TIME_24_WITH_LONG_OFFSET(){return R}static get DATETIME_SHORT(){return I}static get DATETIME_SHORT_WITH_SECONDS(){return F}static get DATETIME_MED(){return k}static get DATETIME_MED_WITH_SECONDS(){return L}static get DATETIME_MED_WITH_WEEKDAY(){return B}static get DATETIME_FULL(){return N}static get DATETIME_FULL_WITH_SECONDS(){return j}static get DATETIME_HUGE(){return U}static get DATETIME_HUGE_WITH_SECONDS(){return V}}function gr(e){if(fr.isDateTime(e))return e;if(e&&e.valueOf&&Be(e.valueOf()))return fr.fromJSDate(e);if(e&&"object"==typeof e)return fr.fromObject(e);throw new g(`Unknown datetime argument: ${e}, of type ${typeof e}`)}class mr extends Error{constructor(e){super(e),this.name="BDateTimeError"}}const vr=9466848e5,yr=315576e7;class Ar extends i{static utcNow(e){const t=fr.utc(),n=Math.round(t.valueOf()%864e5/1e3*e.getFramesPerSecond());return new Ar(t.set({hour:0,minute:0,second:0,millisecond:0}),n,e)}static fromJson(e){if(!e||null==e.time)return;const t=new a(e.frameRate||"ndf25"),n="string"==typeof e.time?i.decodeTcString(e.time,t,!0):e.time;return new Ar(fr.fromISO(e.date||"1970-01-01T00:00:00",{zone:"UTC"}),n,t)}static fromIso(e,t){const n=e.match(/T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,3})?(Z|[+-][0-9]{2}:[0-9]{2})$/),r=e.match(/T([0-9]{2}:[0-9]{2}:[0-9]{2})([:;][0-9]{2})(Z|[+-][0-9]{2}:[0-9]{2})$/);let o=n?fr.fromISO(e,{setZone:!0}).setZone("UTC"):fr.fromISO(e.substr(0,10),{zone:"UTC"}),s=0;r&&(s=fr.fromISO(e.replace(/^([^T]+T)([0-9]{2}:[0-9]{2}:[0-9]{2})([;:][0-9]{2})(.*)/,"$1$2$4"),{setZone:!0}).offset);let l=0,c="string"==typeof t?new a(t):t;if(e.length>10)if("."===e[19]||n)if(n){const e=o.toISOTime();o=o.set({hour:0,minute:0,second:0,millisecond:0}),l=i.decodeIsoTime(e,c,!0)}else l=i.decodeIsoTime(e.substr(11,12),c,!0);else l=i.decodeTcString(e.substr(11,11),c,!0),0!==s&&(l-=60*c.getFramesPerSecond()*s);if(!o.isValid||isNaN(l))throw new mr(`Invalid ISO string ${e}`);return new Ar(o,l,c)}static fromFrames(e,t){"string"==typeof t&&(t=new a(t));const n=fr.utc().set({hour:0,minute:0,second:0,millisecond:0});return new Ar(n,e,t)}static fromTimecode(e,t){return"string"==typeof t&&(t=new a(t)),new Ar(fr.utc().set({hour:0,minute:0,second:0,millisecond:0}),i.decodeTcString(e,t,!0),t)}static fromGvAmpp(e,t){const n=new Date(0),r="string"==typeof t?new a(t):t,o=i.decodeGvAmppString(e,r,!0);return new Ar(n,o,r)}static fromPriority(e,t="milli"){let n="string"==typeof t?new a(t):t;const r=e*yr+vr,o=fr.fromMillis(r,{zone:"UTC"}),i=o.set({hour:0,minute:0,second:0,millisecond:0}),s=this.decodeIsoTime(o.toISOTime(),n,!0);return new Ar(i,s,n)}static fromSmpte(e,t){const n=fr.fromFormat(e.substr(0,10),"yyyy-MM-dd",{zone:"UTC"});let r=0,o="string"==typeof t?new a(t):t;if(e.length>10){if("."===e[19]&&"milli"!==o.getLabel())throw new mr(`Incorrect SMPTE fromat (${e})`);r=i.decodeTcString(e.substr(11,11),o,!0)}return new Ar(n,r,o)}static fromBroadcastDayDateTime(e,t,n){let r="string"==typeof n?new a(n):n,o=Number.parseInt(t.substr(0,2),10);o>23&&(o-=24,t=(o<10?"0":"")+o+t.substr(2),e instanceof fr?e=e.plus({day:1}):e.setDate(e.getDate()+1)),e instanceof fr&&(e=e.set({hour:0,minute:0,second:0,millisecond:0}));let s=i.decodeTcString(t,r,!0);return new Ar(e,s,r)}_frameInDay;_date;get date(){return this.getDateString()}get time(){return this._frameInDay}constructor(e,t,n){if(super(n,!0),isNaN(t))throw new mr("Invalid time");if(isNaN(e.valueOf()))throw new mr("Invalid date");if(this._frameInDay=t,this._date=e instanceof Date?fr.fromJSDate(e):e,t<0){let e=this._frameInDay,t=this._date;for(;e>this._frameRate.getFramesInDay();)e-=this._frameRate.getFramesInDay(),t=this._date.plus({day:1});for(;e<0;)e+=this._frameRate.getFramesInDay(),t=this._date.minus({day:1});this._frameInDay=e,this._date=t}}toJson(e){const t={};return this.addToJson(t),this._date.valueOf()>0&&(t.date=this.getDateString()),t.time=e?this._frameInDay:this.getTimeString(),t.frameRate=this._frameRate.getFrtype(),t}diff(e){const t=this.framesDifference(e);return new l(t,this._frameRate)}diffNow(){const e=this.framesDifference(Ar.utcNow(this._frameRate));return new l(e,this._frameRate)}framesDifference(e){const t=this._date.diff(e._date).as("days");return Math.floor(t)*this._frameRate.getFramesInDay()+(this._frameInDay-e._frameInDay)}addFrames(e){let t=this._frameInDay+e,n=this._date;for(;t>this._frameRate.getFramesInDay();)t-=this._frameRate.getFramesInDay(),n=this._date.plus({day:1});for(;t<0;)t+=this._frameRate.getFramesInDay(),n=this._date.minus({day:1});return new Ar(n,t,this._frameRate)}addDuration(e){return this.addFrames(e.getFrames())}subtractDuration(e){const t=e.getNegativeDuration();return this.addFrames(t.getFrames())}getTimeString(e){return i.encodeTcString(this._frameInDay,this._frameRate,!0,e)}getGvTimeString(){return this.getTimeString(7)}getDateString(){return this._date.toFormat("yyyy-MM-dd")}toString(){return this.getDateString()+" "+this.getTimeString()}toIsoString(e){return this.getDateString()+"T"+this.getTimeString(e)+(e?"Z":"")}toGvAmppString(){return this.getTimeString(7)}toPriority(){return(this.toLuxon().valueOf()-vr)/yr}toDate(){return this._date.plus(_n.fromMillis(this.getMillis())).toJSDate()}toLuxon(){return this._date.plus(_n.fromMillis(this.getMillis()))}getMillis(){return this._frameInDay*(1e3/this._frameRate.getFramesPerSecond())}equals(e){return this._frameInDay===e._frameInDay&&this._frameRate.getFrtype()===e._frameRate.getFrtype()&&this._date.valueOf()===e._date.valueOf()}getComponents(e=!1){const t=i.toComp(this._frameInDay,this._frameRate,e);return t.day=this._date.day,t.month=this._date.month,t.year=this._date.year,t}getAsCounter(e,t,n,r){return new o(this,e,t,n,r)}getFrames(){return this._frameInDay}getDate(){return this._date.toJSDate()}valueOf(){return this._date.valueOf()+this.getMillis()}}class wr{static fromJson(t){const n=l.fromJson(t),r=Ar.fromJson(t.counter.reference),o=new e(t.counter.mode),i=t.rate||1;return new wr(n,r,o,i)}bDuration;counter;constructor(e,n,r,o){o<0&&(o=-o),this.bDuration=e,this.counter=new t(r,n,o,e)}getBDuration(e){return this.bDuration.addFrames(this.counter.getOffset(e))}toJson(){const e=this.bDuration.toJson();return e.counter=this.counter.toJson(),e}toString(e){return this.getBDuration(e).toString()}getAsCounter(e,t,n){return new wr(this.getBDuration(e),e,t,n)}equals(e,t){return this.getBDuration(e).equals(t.getBDuration(e))}getComponents(e){return this.getBDuration(e).getComponents()}}const br=(e,t,n)=>{const{hours:r,minutes:o,seconds:i,frames:a}=l.fromTcString(e,t).getComponents();let s=0;const c=n??"ss:ff";return c?.includes("ff")&&(s+=1e3*a/t.getFramesPerSecond()),c?.includes("ss")&&(s+=1e3*i),c?.includes("mm")&&(s+=6e4*o),c?.includes("hh")&&(s+=36e5*r),Math.ceil(s)},_r=(e,t,n,r="")=>{const o=[],i=n??"ss:ff";return i?.includes("hh")&&o.push((Math.floor(e/36e5)%24).toString().padStart(2,"0")),i?.includes("mm")&&o.push((Math.floor(e/6e4)%60).toString().padStart(2,"0")),i?.includes("ss")&&o.push((Math.floor(e/1e3)%60).toString().padStart(2,"0")),i?.includes("ff")&&o.push(Math.floor(e%1e3/(1e3/t.getFramesPerSecond())).toString().padStart(2,"0")),o.join(r)};var Cr=n(833),Er=n.n(Cr);let Sr="";"object"==typeof process&&process?.env?.GVDEBUG?Sr=process.env.GVDEBUG:"object"==typeof process&&process?.env?.GVDebug?Sr=process.env.GVDebug:"object"==typeof process&&process?.env?.DEBUG&&(Sr=process.env.DEBUG);const Or=Er()("GV");"undefined"!=typeof window&&(window.__DEBUG__=Er(),window.__GVDEBUG__=Or,Sr=localStorage.getItem("debug")),void 0!==n.g&&(n.g.__DEBUG__=Er(),n.g.__GVDEBUG__=Or),("undefined"!=typeof localStorage&&!localStorage.getItem("debug")||"undefined"==typeof localStorage&&""===Sr)&&Er().enable("GV:logging:info,GV:logging:warning,GV:logging:error,GV:logging:fatal");class xr{static registry;static get(){return this.registry||(this.registry=new xr),this.registry}formFields;formWidgets;reduxReducers;reduxMiddleware;constructor(){this.formFields={},this.formWidgets={},this.reduxReducers={},this.reduxMiddleware=[]}addFormWidget(e,t){this.formWidgets[e]=t}getFormWidgets(){return this.formWidgets}addFormField(e,t){this.formFields[e]=t}getFormFields(){return this.formFields}addReduxMiddleware(e){this.reduxMiddleware.push(e)}getReduxMiddleware(){return this.reduxMiddleware}addReduxReducer(e,t){this.reduxReducers[e]||(this.reduxReducers[e]=t)}getReduxReducers(){return this.reduxReducers}}class Dr{static storage={};static base;static get(e,t,n){return this.storage[e]||(this.storage[e]=new Dr(e,t,n)),this.storage[e]}static setBase(e){this.base=e+"-"}global;storage;session;storageProvider;sessionProvider;baseKey;constructor(e,t,n){this.baseKey=e,t?(this.storageProvider=t,this.sessionProvider=n||t):"undefined"!=typeof window?(this.storageProvider=localStorage,this.sessionProvider=n):(this.storageProvider={data:{},getItem:e=>this.storageProvider.data[e],removeItem:e=>delete this.storageProvider.data[e],setItem:(e,t)=>this.storageProvider.data[e]=t},this.sessionProvider={data:{},getItem:e=>this.sessionProvider.data[e],removeItem:e=>delete this.sessionProvider.data[e],setItem:(e,t)=>this.sessionProvider.data[e]=t}),this.global={getItem:e=>this.storageProvider.getItem(`${this.baseKey?this.baseKey+"-":""}${e}`),removeItem:e=>this.storageProvider.removeItem(`${this.baseKey?this.baseKey+"-":""}${e}`),setItem:(e,t)=>this.storageProvider.setItem(`${this.baseKey?this.baseKey+"-":""}${e}`,t)},this.storage={getItem:e=>this.storageProvider.getItem(`${this.baseKey?(Dr.base?Dr.base+this.baseKey:this.baseKey)+"-":""}${e}`),removeItem:e=>this.storageProvider.removeItem(`${this.baseKey?(Dr.base?Dr.base+this.baseKey:this.baseKey)+"-":""}${e}`),setItem:(e,t)=>this.storageProvider.setItem(`${this.baseKey?(Dr.base?Dr.base+this.baseKey:this.baseKey)+"-":""}${e}`,t)},this.session={getItem:e=>this.sessionProvider.getItem(`${this.baseKey?(Dr.base?Dr.base+this.baseKey:this.baseKey)+"-":""}${e}`),removeItem:e=>this.sessionProvider.removeItem(`${this.baseKey?(Dr.base?Dr.base+this.baseKey:this.baseKey)+"-":""}${e}`),setItem:(e,t)=>this.sessionProvider.setItem(`${this.baseKey?(Dr.base?Dr.base+this.baseKey:this.baseKey)+"-":""}${e}`,t)}}}const Pr={objectKeysToLowerCase:e=>"object"!=typeof e||null==e?e:Array.isArray(e)?e.map(Pr.objectKeysToLowerCase):Object.keys(e).reduce((t,n)=>{const r=e[n];return t[n.toLowerCase()]="object"==typeof r?Pr.objectKeysToLowerCase(r):r,t},{}),copyToClipboard:e=>{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t);const n=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))}}})(),r})(),e.exports=t()},155(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__155__},514(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__514__}},__webpack_module_cache__={},leafPrototypes,getProto;function __nested_webpack_require_7692920__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__nested_webpack_require_7692920__),n.loaded=!0,n.exports}__nested_webpack_require_7692920__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __nested_webpack_require_7692920__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__nested_webpack_require_7692920__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);__nested_webpack_require_7692920__.r(n);var r={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~leafPrototypes.indexOf(o);o=getProto(o))Object.getOwnPropertyNames(o).forEach(t=>r[t]=()=>e[t]);return r.default=()=>e,__nested_webpack_require_7692920__.d(n,r),n},__nested_webpack_require_7692920__.d=(e,t)=>{for(var n in t)__nested_webpack_require_7692920__.o(t,n)&&!__nested_webpack_require_7692920__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__nested_webpack_require_7692920__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__nested_webpack_require_7692920__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__nested_webpack_require_7692920__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__nested_webpack_require_7692920__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __nested_webpack_exports__={};return(()=>{"use strict";__nested_webpack_require_7692920__.r(__nested_webpack_exports__);var e=__nested_webpack_require_7692920__(143),t={};for(const n in e)"default"!==n&&(t[n]=()=>e[n]);__nested_webpack_require_7692920__.d(__nested_webpack_exports__,t);var n=__nested_webpack_require_7692920__(120);t={};for(const e in n)["default","GVModuleVersions"].indexOf(e)<0&&(t[e]=()=>n[e]);__nested_webpack_require_7692920__.d(__nested_webpack_exports__,t);var r=__nested_webpack_require_7692920__(513);t={};for(const e in r)["default","GVModuleVersions"].indexOf(e)<0&&(t[e]=()=>r[e]);__nested_webpack_require_7692920__.d(__nested_webpack_exports__,t)})(),__nested_webpack_exports__})(),module.exports=t(__webpack_require__(6540),__webpack_require__(961))},7526(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],l=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,l=r-o;s<l;s+=a)i.push(c(e,s,s+a>l?l:s+a));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function c(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(l(r));return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8287(e,t,n){"use strict";var r=n(7526),o=n(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;var a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|g(e,t),r=s(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(V(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(V(e,SharedArrayBuffer)||e&&V(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);var o=function(e){if(l.isBuffer(e)){var t=0|f(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||H(e.length)?s(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|f(e))}function p(e){for(var t=e.length<0?0:0|f(e.length),n=s(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(o)return r?-1:N(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),H(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:A(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):A(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function A(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,p=0;p<l;p++)if(c(e,i+p)!==c(t,p)){d=!1;break}if(d)return i}return-1}function w(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(H(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return U(N(t,e.length-n),e,n,r)}function _(e,t,n,r){return U(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function C(e,t,n,r){return U(j(t),e,n,r)}function E(e,t,n,r){return U(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=x));return n}(r)}l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(V(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),V(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(V(i,Uint8Array))o+i.length>r.length?l.from(i).copy(r,o):Uint8Array.prototype.set.call(r,i,o);else{if(!l.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o)}o+=i.length}return r},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):m.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,o){if(V(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){i=c[d],a=u[d];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":case"latin1":case"binary":return _(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function D(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=G[e[i]];return o}function T(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function F(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(e,t,n,r,i){return t=+t,n>>>=0,i||F(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return t=+t,n>>>=0,i||F(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:l.from(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var B=/[^+/0-9A-Za-z-_]/g;function N(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function H(e){return e!=e}var G=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()},251(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,p=n?-1:1,h=e[t+d];for(d+=p,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=f,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+h]=255&a,h+=f,a/=256,c-=8);e[n+h-f]|=128*g}},2551(e,t,n){"use strict";var r=n(6540),o=n(9982);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 a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}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 A(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(f,e)||!d.call(h,e)&&(p.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(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=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),_=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),x=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var F=Symbol.iterator;function k(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=F&&e[F]||e["@@iterator"])?e:null}var L,B=Object.assign;function N(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var j=!1;function U(e,t){if(!e||j)return"";j=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function V(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return U(e.type,!1);case 11:return U(e.type.render,!1);case 1:return U(e.type,!0);default:return""}}function H(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 C:return"Fragment";case _:return"Portal";case S:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case M:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case x:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function G(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 H(t);case 8:return t===E?"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 W(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 $(e){e._valueTracker||(e._valueTracker=function(e){var t=z(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=z(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&A(e,"checked",t,!1)}function Z(e,t){X(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(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,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(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:W(n)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ue(e,t)})}:ue);function pe(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 r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}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=B({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 Ae(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 be(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Ce=null,Ee=null;function Se(e){if(e=wo(e)){if("function"!=typeof _e)throw Error(i(280));var t=e.stateNode;t&&(t=_o(t),_e(e.stateNode,e.type,t))}}function Oe(e){Ce?Ee?Ee.push(e):Ee=[e]:Ce=e}function xe(){if(Ce){var e=Ce,t=Ee;if(Ee=Ce=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function De(e,t){return e(t)}function Pe(){}var Me=!1;function Te(e,t,n){if(Me)return e(t,n);Me=!0;try{return De(e,t,n)}finally{Me=!1,(null!==Ce||null!==Ee)&&(Pe(),xe())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=_o(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Ie=!1;if(u)try{var Fe={};Object.defineProperty(Fe,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Fe,Fe),window.removeEventListener("test",Fe,Fe)}catch(ue){Ie=!1}function ke(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Le=!1,Be=null,Ne=!1,je=null,Ue={onError:function(e){Le=!0,Be=e}};function Ve(e,t,n,r,o,i,a,s,l){Le=!1,Be=null,ke.apply(Ue,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(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 We(e){if(He(e)!==e)throw Error(i(188))}function ze(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return We(o),e;if(a===r)return We(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,Qe=o.unstable_cancelCallback,qe=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Xe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ct=64,ut=4194304;function dt(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 pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}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=ct;return!(4194240&(ct<<=1))&&(ct=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-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var At=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var bt,_t,Ct,Et,St,Ot=!1,xt=[],Dt=null,Pt=null,Mt=null,Tt=new Map,Rt=new Map,It=[],Ft="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 kt(e,t){switch(e){case"focusin":case"focusout":Dt=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Lt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&_t(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Bt(e){var t=Ao(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void St(e.priority,function(){Ct(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 Nt(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=wo(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function jt(e,t,n){Nt(e)&&n.delete(t)}function Ut(){Ot=!1,null!==Dt&&Nt(Dt)&&(Dt=null),null!==Pt&&Nt(Pt)&&(Pt=null),null!==Mt&&Nt(Mt)&&(Mt=null),Tt.forEach(jt),Rt.forEach(jt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ut)))}function Ht(e){function t(t){return Vt(t,e)}if(0<xt.length){Vt(xt[0],e);for(var n=1;n<xt.length;n++){var r=xt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Dt&&Vt(Dt,e),null!==Pt&&Vt(Pt,e),null!==Mt&&Vt(Mt,e),Tt.forEach(t),Rt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Bt(n),null===n.blockedOn&&It.shift()}var Gt=w.ReactCurrentBatchConfig,Wt=!0;function zt(e,t,n,r){var o=At,i=Gt.transition;Gt.transition=null;try{At=1,Kt(e,t,n,r)}finally{At=o,Gt.transition=i}}function $t(e,t,n,r){var o=At,i=Gt.transition;Gt.transition=null;try{At=4,Kt(e,t,n,r)}finally{At=o,Gt.transition=i}}function Kt(e,t,n,r){if(Wt){var o=qt(e,t,n,r);if(null===o)Wr(e,t,r,Qt,n),kt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Dt=Lt(Dt,e,t,n,r,o),!0;case"dragenter":return Pt=Lt(Pt,e,t,n,r,o),!0;case"mouseover":return Mt=Lt(Mt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Tt.set(i,Lt(Tt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rt.set(i,Lt(Rt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(kt(e,r),4&t&&-1<Ft.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&bt(i),null===(i=qt(e,t,n,r))&&Wr(e,t,r,Qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Qt=null;function qt(e,t,n,r){if(Qt=null,null!==(e=Ao(e=be(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ge(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 Qt=e,null}function Yt(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(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.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 rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return B(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 an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=B({},cn,{view:0,detail:0}),pn=on(dn),hn=B({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,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?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),fn=on(hn),gn=on(B({},hn,{dataTransfer:0})),mn=on(B({},dn,{relatedTarget:0})),vn=on(B({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=B({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),An=on(yn),wn=on(B({},cn,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={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"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function Sn(){return En}var On=B({},dn,{key:function(e){if(e.key){var t=bn[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?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,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}}),xn=on(On),Dn=on(B({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(B({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Mn=on(B({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=B({},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}),Rn=on(Tn),In=[9,13,27,32],Fn=u&&"CompositionEvent"in window,kn=null;u&&"documentMode"in document&&(kn=document.documentMode);var Ln=u&&"TextEvent"in window&&!kn,Bn=u&&(!Fn||kn&&8<kn&&11>=kn),Nn=String.fromCharCode(32),jn=!1;function Un(e,t){switch(e){case"keyup":return-1!==In.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 Hn=!1,Gn={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 Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function zn(e,t,n,r){Oe(r),0<(t=$r(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Kn=null;function Qn(e){Nr(e,0)}function qn(e){if(K(bo(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(u){var Zn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Xn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),Kn=$n=null)}function nr(e){if("value"===e.propertyName&&qn(Kn)){var t=[];zn(t,Kn,e,be(e)),Te(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Kn)}function ir(e,t){if("click"===e)return qn(t)}function ar(e,t){if("input"===e||"change"===e)return qn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function hr(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 fr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 gr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,yr=null,Ar=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Ar||null==mr||mr!==Q(r)||(r="selectionStart"in(r=mr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=$r(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},Cr={},Er={};function Sr(e){if(Cr[e])return Cr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Cr[e]=n[t];return e}u&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Or=Sr("animationend"),xr=Sr("animationiteration"),Dr=Sr("animationstart"),Pr=Sr("transitionend"),Mr=new Map,Tr="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 Rr(e,t){Mr.set(e,t),l(t,[e])}for(var Ir=0;Ir<Tr.length;Ir++){var Fr=Tr[Ir];Rr(Fr.toLowerCase(),"on"+(Fr[0].toUpperCase()+Fr.slice(1)))}Rr(Or,"onAnimationEnd"),Rr(xr,"onAnimationIteration"),Rr(Dr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Pr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("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 kr="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(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Br(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(Ve.apply(this,arguments),Le){if(!Le)throw Error(i(198));var u=Be;Le=!1,Be=null,Ne||(Ne=!0,je=u)}}(r,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Br(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Br(o,s,c),i=l}}}if(Ne)throw e=je,Ne=!1,je=null,e}function jr(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Gr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Gr(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Vr]){e[Vr]=!0,a.forEach(function(t){"selectionchange"!==t&&(Lr.has(t)||Ur(t,!1,e),Ur(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Ur("selectionchange",!1,t))}}function Gr(e,t,n,r){switch(Yt(t)){case 1:var o=zt;break;case 4:o=$t;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=Ao(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Te(function(){var r=i,o=be(n),a=[];e:{var s=Mr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=xn;break;case"focusin":c="focus",l=mn;break;case"focusout":c="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=Pn;break;case Or:case xr:case Dr:l=vn;break;case Pr:l=Mn;break;case"scroll":l=pn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=An;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Dn}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var h,f=r;null!==f;){var g=(h=f).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==p&&null!=(g=Re(f,p))&&u.push(zr(f,g,h))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!Ao(c)&&!c[go])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ao(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=fn,g="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=Dn,g="onPointerLeave",p="onPointerEnter",f="pointer"),d=null==l?s:bo(l),h=null==c?s:bo(c),(s=new u(g,f+"leave",l,n,o)).target=d,s.relatedTarget=h,g=null,Ao(o)===r&&((u=new u(p,f+"enter",c,n,o)).target=h,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(p=c,f=0,h=u=l;h;h=Kr(h))f++;for(h=0,g=p;g;g=Kr(g))h++;for(;0<f-h;)u=Kr(u),f--;for(;0<h-f;)p=Kr(p),h--;for(;f--;){if(u===p||null!==p&&u===p.alternate)break e;u=Kr(u),p=Kr(p)}u=null}else u=null;null!==l&&Qr(a,s,l,u,!1),null!==c&&null!==d&&Qr(a,d,c,u,!0)}if("select"===(l=(s=r?bo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Yn;else if(Wn(s))if(Xn)m=ar;else{m=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ir);switch(m&&(m=m(e,r))?zn(a,m,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?bo(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(mr=v,vr=r,yr=null);break;case"focusout":yr=vr=mr=null;break;case"mousedown":Ar=!0;break;case"contextmenu":case"mouseup":case"dragend":Ar=!1,wr(a,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Fn)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Hn?Un(e,n)&&(A="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(A="onCompositionStart");A&&(Bn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==A?"onCompositionEnd"===A&&Hn&&(y=en()):(Zt="value"in(Xt=o)?Xt.value:Xt.textContent,Hn=!0)),0<(v=$r(r,A)).length&&(A=new wn(A,e,null,n,o),a.push({event:A,listeners:v}),(y||null!==(y=Vn(n)))&&(A.data=y))),(y=Ln?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(jn=!0,Nn);case"textInput":return(e=t.data)===Nn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Fn&&Un(e,t)?(e=en(),Jt=Zt=Xt=null,Hn=!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 Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=$r(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y)}Nr(a,t)})}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Re(e,n))&&r.unshift(zr(e,i,o)),null!=(i=Re(e,t))&&r.push(zr(e,i,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Re(n,i))&&a.unshift(zr(n,l,s)):o||null!=(l=Re(n,i))&&a.push(zr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Yr,"")}function Zr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(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 ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout(function(){throw e})}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function co(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 uo(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 po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,fo="__reactProps$"+po,go="__reactContainer$"+po,mo="__reactEvents$"+po,vo="__reactListeners$"+po,yo="__reactHandles$"+po;function Ao(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[ho])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[ho]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function _o(e){return e[fo]||null}var Co=[],Eo=-1;function So(e){return{current:e}}function Oo(e){0>Eo||(e.current=Co[Eo],Co[Eo]=null,Eo--)}function xo(e,t){Eo++,Co[Eo]=e.current,e.current=t}var Do={},Po=So(Do),Mo=So(!1),To=Do;function Ro(e,t){var n=e.type.contextTypes;if(!n)return Do;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Io(e){return null!=e.childContextTypes}function Fo(){Oo(Mo),Oo(Po)}function ko(e,t,n){if(Po.current!==Do)throw Error(i(168));xo(Po,t),xo(Mo,n)}function Lo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,G(e)||"Unknown",o));return B({},n,r)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Do,To=Po.current,xo(Po,e),xo(Mo,Mo.current),!0}function No(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Lo(e,t,To),r.__reactInternalMemoizedMergedChildContext=e,Oo(Mo),Oo(Po),xo(Po,e)):Oo(Mo),xo(Mo,n)}var jo=null,Uo=!1,Vo=!1;function Ho(e){null===jo?jo=[e]:jo.push(e)}function Go(){if(!Vo&&null!==jo){Vo=!0;var e=0,t=At;try{var n=jo;for(At=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}jo=null,Uo=!1}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),Ke(Je,Go),t}finally{At=t,Vo=!1}}return null}var Wo=[],zo=0,$o=null,Ko=0,Qo=[],qo=0,Yo=null,Xo=1,Zo="";function Jo(e,t){Wo[zo++]=Ko,Wo[zo++]=$o,$o=e,Ko=t}function ei(e,t,n){Qo[qo++]=Xo,Qo[qo++]=Zo,Qo[qo++]=Yo,Yo=e;var r=Xo;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Xo=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===$o;)$o=Wo[--zo],Wo[zo]=null,Ko=Wo[--zo],Wo[zo]=null;for(;e===Yo;)Yo=Qo[--qo],Qo[qo]=null,Zo=Qo[--qo],Qo[qo]=null,Xo=Qo[--qo],Qo[qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Mc(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,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Xo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return!(!(1&e.mode)||128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function pi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw hi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(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){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=co(e.nextSibling)}function fi(){oi=ri=null,ii=!1}function gi(e){null===ai?ai=[e]:ai.push(e)}var mi=w.ReactCurrentBatchConfig;function vi(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 r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ai(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Rc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===R&&Ai(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Ic(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Fc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=Ic(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case _:return(t=Bc(t,e.mode,n)).return=e,t;case R:return p(e,(0,t._init)(t._payload),n)}if(te(t)||k(t))return(t=Fc(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===o?c(e,t,n,r):null;case _:return n.key===o?u(e,t,n,r):null;case R:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||k(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return f(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||k(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function g(o,i,s,l){for(var c=null,u=null,d=i,g=i=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=h(o,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,g),null===u?c=v:u.sibling=v,u=v,d=m}if(g===s.length)return n(o,d),ii&&Jo(o,g),c;if(null===d){for(;g<s.length;g++)null!==(d=p(o,s[g],l))&&(i=a(d,i,g),null===u?c=d:u.sibling=d,u=d);return ii&&Jo(o,g),c}for(d=r(o,d);g<s.length;g++)null!==(m=f(d,o,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=a(m,i,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach(function(e){return t(o,e)}),ii&&Jo(o,g),c}function m(o,s,l,c){var u=k(l);if("function"!=typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,g=s,m=s=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 A=h(o,g,y.value,c);if(null===A){null===g&&(g=v);break}e&&g&&null===A.alternate&&t(o,g),s=a(A,s,m),null===d?u=A:d.sibling=A,d=A,g=v}if(y.done)return n(o,g),ii&&Jo(o,m),u;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=p(o,y.value,c))&&(s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return ii&&Jo(o,m),u}for(g=r(o,g);!y.done;m++,y=l.next())null!==(y=f(g,o,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach(function(e){return t(o,e)}),ii&&Jo(o,m),u}return function e(r,i,a,l){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case b:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===C){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===R&&Ai(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=vi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===C?((i=Fc(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Ic(a.type,a.key,a.props,null,r.mode,l)).ref=vi(r,i,a),l.return=r,r=l)}return s(r);case _:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Bc(a,r.mode,l)).return=r,r=i}return s(r);case R:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return g(r,i,a,l);if(k(a))return m(r,i,a,l);yi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Lc(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var bi=wi(!0),_i=wi(!1),Ci=So(null),Ei=null,Si=null,Oi=null;function xi(){Oi=Si=Ei=null}function Di(e){var t=Ci.current;Oo(Ci),e._currentValue=t}function Pi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mi(e,t){Ei=e,Oi=Si=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(As=!0),e.firstContext=null)}function Ti(e){var t=e._currentValue;if(Oi!==e)if(e={context:e,memoizedValue:t,next:null},null===Si){if(null===Ei)throw Error(i(308));Si=e,Ei.dependencies={lanes:0,firstContext:e}}else Si=Si.next=e;return t}var Ri=null;function Ii(e){null===Ri?Ri=[e]:Ri.push(e)}function Fi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ii(t)):(n.next=o.next,o.next=n),t.interleaved=n,ki(e,r)}function ki(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 Li=!1;function Bi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ni(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 ji(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ui(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&xl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ki(e,n)}return null===(o=r.interleaved)?(t.next=t,Ii(r)):(t.next=o.next,o.next=t),r.interleaved=t,ki(e,n)}function Vi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gi(e,t,n,r){var o=e.updateQueue;Li=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&(s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l)}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var p=s.lane,h=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,g=s;switch(p=t,h=n,g.tag){case 1:if("function"==typeof(f=g.payload)){d=f.call(h,d,p);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(p="function"==typeof(f=g.payload)?f.call(h,d,p):f))break e;d=B({},d,p);break e;case 2:Li=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);kl|=a,e.lanes=a,e.memoizedState=d}}function Wi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var zi={},$i=So(zi),Ki=So(zi),Qi=So(zi);function qi(e){if(e===zi)throw Error(i(174));return e}function Yi(e,t){switch(xo(Qi,t),xo(Ki,e),xo($i,zi),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)}Oo($i),xo($i,t)}function Xi(){Oo($i),Oo(Ki),Oo(Qi)}function Zi(e){qi(Qi.current);var t=qi($i.current),n=le(t,e.type);t!==n&&(xo(Ki,e),xo($i,n))}function Ji(e){Ki.current===e&&(Oo($i),Oo(Ki))}var ea=So(0);function ta(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(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 na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,pa=0,ha=0;function fa(){throw Error(i(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:es,e=n(r,o),da){a=0;do{if(da=!1,pa=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Za,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(300));return e}function va(){var e=0!==pa;return pa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function Aa(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"==typeof t?t(e):t}function ba(e){var t=Aa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,sa.lanes|=d,kl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(As=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,kl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _a(e){var t=Aa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(As=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ca(){}function Ea(e,t){var n=sa,r=Aa(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,As=!0),r=r.queue,La(xa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Ta(9,Oa.bind(null,n,r,o,t),void 0,null),null===Dl)throw Error(i(349));30&aa||Sa(n,t,o)}return o}function Sa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oa(e,t,n,r){t.value=n,t.getSnapshot=r,Da(t)&&Pa(e)}function xa(e,t,n){return n(function(){Da(t)&&Pa(e)})}function Da(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Pa(e){var t=ki(e,1);null!==t&&tc(t,e,1,-1)}function Ma(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Qa.bind(null,sa,e),[t.memoizedState,e]}function Ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ra(){return Aa().memoizedState}function Ia(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Ta(1|t,n,void 0,void 0===r?null:r)}function Fa(e,t,n,r){var o=Aa();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Ta(t,n,i,r))}sa.flags|=e,o.memoizedState=Ta(1|t,n,i,r)}function ka(e,t){return Ia(8390656,8,e,t)}function La(e,t){return Fa(2048,8,e,t)}function Ba(e,t){return Fa(4,2,e,t)}function Na(e,t){return Fa(4,4,e,t)}function ja(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ua(e,t,n){return n=null!=n?n.concat([e]):null,Fa(4,4,ja.bind(null,t,e),n)}function Va(){}function Ha(e,t){var n=Aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ga(e,t){var n=Aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 21&aa?(sr(n,t)||(n=gt(),sa.lanes|=n,kl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,As=!0),e.memoizedState=n)}function za(e,t){var n=At;At=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{At=n,ia.transition=r}}function $a(){return Aa().memoizedState}function Ka(e,t,n){var r=ec(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e)?Ya(t,n):null!==(n=Fi(e,t,n,r))&&(tc(n,e,r,Jl()),Xa(n,t,r))}function Qa(e,t,n){var r=ec(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))Ya(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Ii(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Fi(e,t,o,r))&&(tc(n,e,r,o=Jl()),Xa(n,t,r))}}function qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ya(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Za={readContext:Ti,useCallback:fa,useContext:fa,useEffect:fa,useImperativeHandle:fa,useInsertionEffect:fa,useLayoutEffect:fa,useMemo:fa,useReducer:fa,useRef:fa,useState:fa,useDebugValue:fa,useDeferredValue:fa,useTransition:fa,useMutableSource:fa,useSyncExternalStore:fa,useId:fa,unstable_isNewReconciler:!1},Ja={readContext:Ti,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ti,useEffect:ka,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ia(4194308,4,ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ia(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ia(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Ma,useDebugValue:Va,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Ma(!1),t=e[0];return e=za.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Dl)throw Error(i(349));30&aa||Sa(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ka(xa.bind(null,r,a,e),[e]),r.flags|=2048,Ta(9,Oa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Dl.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ti,useCallback:Ha,useContext:Ti,useEffect:La,useImperativeHandle:Ua,useInsertionEffect:Ba,useLayoutEffect:Na,useMemo:Ga,useReducer:ba,useRef:Ra,useState:function(){return ba(wa)},useDebugValue:Va,useDeferredValue:function(e){return Wa(Aa(),la.memoizedState,e)},useTransition:function(){return[ba(wa)[0],Aa().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Ea,useId:$a,unstable_isNewReconciler:!1},ts={readContext:Ti,useCallback:Ha,useContext:Ti,useEffect:La,useImperativeHandle:Ua,useInsertionEffect:Ba,useLayoutEffect:Na,useMemo:Ga,useReducer:_a,useRef:Ra,useState:function(){return _a(wa)},useDebugValue:Va,useDeferredValue:function(e){var t=Aa();return null===la?t.memoizedState=e:Wa(t,la.memoizedState,e)},useTransition:function(){return[_a(wa)[0],Aa().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Ea,useId:$a,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Jl(),o=ec(e),i=ji(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ui(e,i,o))&&(tc(t,e,o,r),Vi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Jl(),o=ec(e),i=ji(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ui(e,i,o))&&(tc(t,e,o,r),Vi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jl(),r=ec(e),o=ji(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ui(e,o,r))&&(tc(t,e,r,n),Vi(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function as(e,t,n){var r=!1,o=Do,i=t.contextType;return"object"==typeof i&&null!==i?i=Ti(i):(o=Io(t)?To:Po.current,i=(r=null!=(r=t.contextTypes))?Ro(e,o):Do),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Bi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ti(i):(i=Io(t)?To:Po.current,o.context=Ro(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Gi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=ji(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gl||(Gl=!0,Wl=r),ds(0,t)},n}function fs(e,t,n){(n=ji(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===zl?zl=new Set([this]):zl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function ms(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 vs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ji(-1,1)).tag=2,Ui(n,t,1))),n.lanes|=1),e)}var ys=w.ReactCurrentOwner,As=!1;function ws(e,t,n,r){t.child=null===e?_i(t,null,n,r):bi(t,e.child,n,r)}function bs(e,t,n,r,o){n=n.render;var i=t.ref;return Mi(t,o),r=ma(e,t,n,r,i,o),n=va(),null===e||As?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gs(e,t,o))}function _s(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Tc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ic(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cs(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Gs(e,t,o)}return t.flags|=1,(e=Rc(i,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(As=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Gs(e,t,o);131072&e.flags&&(As=!0)}}return Os(e,t,n,r,o)}function Es(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(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,xo(Rl,Tl),Tl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,xo(Rl,Tl),Tl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xo(Rl,Tl),Tl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,xo(Rl,Tl),Tl|=r;return ws(e,t,o,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Os(e,t,n,r,o){var i=Io(n)?To:Po.current;return i=Ro(t,i),Mi(t,o),n=ma(e,t,n,r,i,o),r=va(),null===e||As?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gs(e,t,o))}function xs(e,t,n,r,o){if(Io(n)){var i=!0;Bo(t)}else i=!1;if(Mi(t,o),null===t.stateNode)Hs(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;c="object"==typeof c&&null!==c?Ti(c):Ro(t,c=Io(n)?To:Po.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Li=!1;var p=t.memoizedState;a.state=p,Gi(t,r,a,o),l=t.memoizedState,s!==r||p!==l||Mo.current||Li?("function"==typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Li||is(t,n,s,r,p,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ni(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,p=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Ti(l):Ro(t,l=Io(n)?To:Po.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&ss(t,a,r,l),Li=!1,p=t.memoizedState,a.state=p,Gi(t,r,a,o);var f=t.memoizedState;s!==d||p!==f||Mo.current||Li?("function"==typeof h&&(rs(t,n,h,r),f=t.memoizedState),(c=Li||is(t,n,c,r,p,f,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ds(e,t,n,r,i,o)}function Ds(e,t,n,r,o,i){Ss(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&No(t,n,!1),Gs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=bi(t,e.child,null,i),t.child=bi(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&No(t,n,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?ko(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ko(0,t.context,!1),Yi(e,t.containerInfo)}function Ms(e,t,n,r,o){return fi(),gi(o),t.flags|=256,ws(e,t,n,r),t.child}var Ts,Rs,Is,Fs={dehydrated:null,treeContext:null,retryLane:0};function ks(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),xo(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=kc(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Fc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ks(n),t.memoizedState=Fs,e):Bs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Ns(e,t,s,r=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=kc({mode:"visible",children:r.children},o,0,null),(a=Fc(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&bi(t,e.child,null,s),t.child.memoizedState=ks(s),t.memoizedState=Fs,a);if(!(1&t.mode))return Ns(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Ns(e,t,s,r=us(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),As||l){if(null!==(r=Dl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,ki(e,o),tc(r,e,o,-1))}return fc(),Ns(e,t,s,r=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Qo[qo++]=Xo,Qo[qo++]=Zo,Qo[qo++]=Yo,Xo=e.id,Zo=e.overflow,Yo=t),(t=Bs(t,r.children)).flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Rc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==r?s=Rc(r,s):(s=Fc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?ks(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Fs,o}return e=(s=e.child).sibling,o=Rc(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Bs(e,t){return(t=kc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ns(e,t,n,r){return null!==r&&gi(r),bi(t,e.child,null,n),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function js(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Pi(e.return,t,n)}function Us(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Vs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&js(e,n,t);else if(19===e.tag)js(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(xo(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Us(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Us(t,!0,n,null,i);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),kl|=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=Rc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(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 r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function zs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $s(e,t,n){var r=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 zs(t),null;case 1:case 17:return Io(t.type)&&Fo(),zs(t),null;case 3:return r=t.stateNode,Xi(),Oo(Mo),Oo(Po),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(ic(ai),ai=null))),zs(t),null;case 5:Ji(t);var o=qi(Qi.current);if(n=t.type,null!==e&&null!=t.stateNode)Rs(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return zs(t),null}if(e=qi($i.current),pi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ho]=t,r[fo]=a,e=!!(1&t.mode),n){case"dialog":jr("cancel",r),jr("close",r);break;case"iframe":case"object":case"embed":jr("load",r);break;case"video":case"audio":for(o=0;o<kr.length;o++)jr(kr[o],r);break;case"source":jr("error",r);break;case"img":case"image":case"link":jr("error",r),jr("load",r);break;case"details":jr("toggle",r);break;case"input":Y(r,a),jr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},jr("invalid",r);break;case"textarea":oe(r,a),jr("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&jr("scroll",r)}switch(n){case"input":$(r),J(r,a,!0);break;case"textarea":$(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[fo]=r,Ts(e,t),t.stateNode=e;e:{switch(l=Ae(n,r),n){case"dialog":jr("cancel",e),jr("close",e),o=r;break;case"iframe":case"object":case"embed":jr("load",e),o=r;break;case"video":case"audio":for(o=0;o<kr.length;o++)jr(kr[o],e);o=r;break;case"source":jr("error",e),o=r;break;case"img":case"image":case"link":jr("error",e),jr("load",e),o=r;break;case"details":jr("toggle",e),o=r;break;case"input":Y(e,r),o=q(e,r),jr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=B({},r,{value:void 0}),jr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),jr("invalid",e)}for(a in ye(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?me(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&jr("scroll",e):null!=u&&A(e,a,u,l))}switch(n){case"input":$(e),J(e,r,!1);break;case"textarea":$(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return zs(t),null;case 6:if(e&&null!=t.stateNode)Is(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=qi(Qi.current),qi($i.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return zs(t),null;case 13:if(Oo(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))hi(),fi(),t.flags|=98560,a=!1;else if(a=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[ho]=t}else fi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;zs(t),a=!1}else null!==ai&&(ic(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Il&&(Il=3):fc())),null!==t.updateQueue&&(t.flags|=4),zs(t),null);case 4:return Xi(),null===e&&Hr(t.stateNode.containerInfo),zs(t),null;case 10:return Di(t.type._context),zs(t),null;case 19:if(Oo(ea),null===(a=t.memoizedState))return zs(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Ws(a,!1);else{if(0!==Il||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ws(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Vl&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return zs(t),null}else 2*Xe()-a.renderingStartTime>Vl&&1073741824!==n&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ea.current,xo(ea,r?1&n|2:1&n),t):(zs(t),null);case 22:case 23:return uc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Tl)&&(zs(t),6&t.subtreeFlags&&(t.flags|=8192)):zs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ks(e,t){switch(ni(t),t.tag){case 1:return Io(t.type)&&Fo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xi(),Oo(Mo),Oo(Po),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Oo(ea),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 Oo(ea),null;case 4:return Xi(),null;case 10:return Di(t.type._context),null;case 22:case 23:return uc(),null;default:return null}}Ts=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}},Rs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,qi($i.current);var i,a=null;switch(n){case"input":o=q(e,o),r=q(e,r),a=[];break;case"select":o=B({},o,{value:void 0}),r=B({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Is=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qs=!1,qs=!1,Ys="function"==typeof WeakSet?WeakSet:Set,Xs=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cc(e,t,n)}else n.current=null}function Js(e,t,n){try{n()}catch(n){Cc(e,t,n)}}var el=!1;function tl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Js(t,n,i)}o=o.next}while(o!==r)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function 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 ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[fo],delete t[mo],delete t[vo],delete t[yo]),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 il(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||il(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 sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(sl(e,t,n),e=e.sibling;null!==e;)sl(e,t,n),e=e.sibling}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}var cl=null,ul=!1;function dl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:qs||Zs(n,t);case 6:var r=cl,o=ul;cl=null,dl(e,t,n),ul=o,null!==(cl=r)&&(ul?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(ul?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ht(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=ul,cl=n.stateNode.containerInfo,ul=!0,dl(e,t,n),cl=r,ul=o;break;case 0:case 11:case 14:case 15:if(!qs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&Js(n,t,a),o=o.next}while(o!==r)}dl(e,t,n);break;case 1:if(!qs&&(Zs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cc(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(qs=(r=qs)||null!==n.memoizedState,dl(e,t,n),qs=r):dl(e,t,n);break;default:dl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach(function(t){var r=xc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function fl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,ul=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,ul=!0;break e}l=l.return}if(null===cl)throw Error(i(160));pl(a,s,o),cl=null,ul=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){Cc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fl(t,e),ml(e),4&r){try{tl(3,e,e.return),nl(3,e)}catch(t){Cc(e,e.return,t)}try{tl(5,e,e.return)}catch(t){Cc(e,e.return,t)}}break;case 1:fl(t,e),ml(e),512&r&&null!==n&&Zs(n,n.return);break;case 5:if(fl(t,e),ml(e),512&r&&null!==n&&Zs(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){Cc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(o,a),Ae(l,s);var u=Ae(l,a);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?me(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):A(o,d,p,u)}switch(l){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?ne(o,!!a.multiple,f,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[fo]=a}catch(t){Cc(e,e.return,t)}}break;case 6:if(fl(t,e),ml(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Cc(e,e.return,t)}}break;case 3:if(fl(t,e),ml(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Cc(e,e.return,t)}break;case 4:default:fl(t,e),ml(e);break;case 13:fl(t,e),ml(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Xe())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(qs=(u=qs)||d,fl(t,e),qs=u):fl(t,e),ml(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Xs=e,d=e.child;null!==d;){for(p=Xs=d;null!==Xs;){switch(f=(h=Xs).child,h.tag){case 0:case 11:case 14:case 15:tl(4,h,h.return);break;case 1:Zs(h,h.return);var g=h.stateNode;if("function"==typeof g.componentWillUnmount){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){Cc(r,n,e)}}break;case 5:Zs(h,h.return);break;case 22:if(null!==h.memoizedState){wl(p);continue}}null!==f?(f.return=h,Xs=f):wl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(t){Cc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Cc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:fl(t,e),ml(e),4&r&&hl(e);case 21:}}function ml(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(il(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),ll(e,al(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;sl(e,al(e),a);break;default:throw Error(i(161))}}catch(t){Cc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Xs=e,yl(e,t,n)}function yl(e,t,n){for(var r=!!(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||qs;s=Qs;var c=qs;if(Qs=a,(qs=l)&&!c)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?bl(o):null!==l?(l.return=a,Xs=l):bl(o);for(;null!==i;)Xs=i,yl(i,t,n),i=i.sibling;Xs=o,Qs=s,qs=c}Al(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Xs=i):Al(e)}}function Al(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:qs||nl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!qs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.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 u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ht(p)}}}break;default:throw Error(i(163))}qs||512&t.flags&&rl(t)}catch(e){Cc(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xs=n;break}Xs=t.return}}function wl(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function bl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nl(4,t)}catch(e){Cc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cc(t,o,e)}}var i=t.return;try{rl(t)}catch(e){Cc(t,i,e)}break;case 5:var a=t.return;try{rl(t)}catch(e){Cc(t,a,e)}}}catch(e){Cc(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var _l,Cl=Math.ceil,El=w.ReactCurrentDispatcher,Sl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,xl=0,Dl=null,Pl=null,Ml=0,Tl=0,Rl=So(0),Il=0,Fl=null,kl=0,Ll=0,Bl=0,Nl=null,jl=null,Ul=0,Vl=1/0,Hl=null,Gl=!1,Wl=null,zl=null,$l=!1,Kl=null,Ql=0,ql=0,Yl=null,Xl=-1,Zl=0;function Jl(){return 6&xl?Xe():-1!==Xl?Xl:Xl=Xe()}function ec(e){return 1&e.mode?2&xl&&0!==Ml?Ml&-Ml:null!==mi.transition?(0===Zl&&(Zl=gt()),Zl):0!==(e=At)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function tc(e,t,n,r){if(50<ql)throw ql=0,Yl=null,Error(i(185));vt(e,n,r),2&xl&&e===Dl||(e===Dl&&(!(2&xl)&&(Ll|=n),4===Il&&ac(e,Ml)),nc(e,r),1===n&&0===xl&&!(1&t.mode)&&(Vl=Xe()+500,Uo&&Go()))}function nc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=pt(e,e===Dl?Ml:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Uo=!0,Ho(e)}(sc.bind(null,e)):Ho(sc.bind(null,e)),ao(function(){!(6&xl)&&Go()}),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Dc(n,rc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rc(e,t){if(Xl=-1,Zl=0,6&xl)throw Error(i(327));var n=e.callbackNode;if(bc()&&e.callbackNode!==n)return null;var r=pt(e,e===Dl?Ml:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var o=xl;xl|=2;var a=hc();for(Dl===e&&Ml===t||(Hl=null,Vl=Xe()+500,dc(e,t));;)try{vc();break}catch(t){pc(e,t)}xi(),El.current=a,xl=o,null!==Pl?t=0:(Dl=null,Ml=0,t=Il)}if(0!==t){if(2===t&&0!==(o=ft(e))&&(r=o,t=oc(e,o)),1===t)throw n=Fl,dc(e,0),ac(e,r),nc(e,Xe()),n;if(6===t)ac(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=gc(e,r),2===t&&(a=ft(e),0!==a&&(r=a,t=oc(e,a))),1!==t)))throw n=Fl,dc(e,0),ac(e,r),nc(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:wc(e,jl,Hl);break;case 3:if(ac(e,r),(130023424&r)===r&&10<(t=Ul+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Jl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(wc.bind(null,e,jl,Hl),t);break}wc(e,jl,Hl);break;case 4:if(ac(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ro(wc.bind(null,e,jl,Hl),r);break}wc(e,jl,Hl);break;default:throw Error(i(329))}}}return nc(e,Xe()),e.callbackNode===n?rc.bind(null,e):null}function oc(e,t){var n=Nl;return e.current.memoizedState.isDehydrated&&(dc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=jl,jl=n,null!==t&&ic(t)),e}function ic(e){null===jl?jl=e:jl.push.apply(jl,e)}function ac(e,t){for(t&=~Bl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function sc(e){if(6&xl)throw Error(i(327));bc();var t=pt(e,0);if(!(1&t))return nc(e,Xe()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=oc(e,r))}if(1===n)throw n=Fl,dc(e,0),ac(e,t),nc(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,jl,Hl),nc(e,Xe()),null}function lc(e,t){var n=xl;xl|=1;try{return e(t)}finally{0===(xl=n)&&(Vl=Xe()+500,Uo&&Go())}}function cc(e){null!==Kl&&0===Kl.tag&&!(6&xl)&&bc();var t=xl;xl|=1;var n=Ol.transition,r=At;try{if(Ol.transition=null,At=1,e)return e()}finally{At=r,Ol.transition=n,!(6&(xl=t))&&Go()}}function uc(){Tl=Rl.current,Oo(Rl)}function dc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Pl)for(n=Pl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Fo();break;case 3:Xi(),Oo(Mo),Oo(Po),ra();break;case 5:Ji(r);break;case 4:Xi();break;case 13:case 19:Oo(ea);break;case 10:Di(r.type._context);break;case 22:case 23:uc()}n=n.return}if(Dl=e,Pl=e=Rc(e.current,null),Ml=Tl=t,Il=0,Fl=null,Bl=Ll=kl=0,jl=Nl=null,null!==Ri){for(t=0;t<Ri.length;t++)if(null!==(r=(n=Ri[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ri=null}return e}function pc(e,t){for(;;){var n=Pl;try{if(xi(),oa.current=Za,ua){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,pa=0,Sl.current=null,null===n||null===n.return){Il=1,Fl=t,Pl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Ml,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=ms(s);if(null!==f){f.flags&=-257,vs(f,s,l,0,t),1&f.mode&&gs(a,u,t),c=u;var g=(t=f).updateQueue;if(null===g){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}if(!(1&t)){gs(a,u,t),fc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=ms(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),gi(cs(c,l));break e}}a=c=cs(c,l),4!==Il&&(Il=2),null===Nl?Nl=[a]:Nl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,hs(0,c,t));break e;case 1:l=c;var y=a.type,A=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===A||"function"!=typeof A.componentDidCatch||null!==zl&&zl.has(A)))){a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,fs(a,l,t));break e}}a=a.return}while(null!==a)}Ac(n)}catch(e){t=e,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function hc(){var e=El.current;return El.current=Za,null===e?Za:e}function fc(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===Dl||!(268435455&kl)&&!(268435455&Ll)||ac(Dl,Ml)}function gc(e,t){var n=xl;xl|=2;var r=hc();for(Dl===e&&Ml===t||(Hl=null,dc(e,t));;)try{mc();break}catch(t){pc(e,t)}if(xi(),xl=n,El.current=r,null!==Pl)throw Error(i(261));return Dl=null,Ml=0,Il}function mc(){for(;null!==Pl;)yc(Pl)}function vc(){for(;null!==Pl&&!qe();)yc(Pl)}function yc(e){var t=_l(e.alternate,e,Tl);e.memoizedProps=e.pendingProps,null===t?Ac(e):Pl=t,Sl.current=null}function Ac(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Pl=n);if(null===e)return Il=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=$s(n,t,Tl)))return void(Pl=n);if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Il&&(Il=5)}function wc(e,t,n){var r=At,o=Ol.transition;try{Ol.transition=null,At=1,function(e,t,n,r){do{bc()}while(null!==Kl);if(6&xl)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Dl&&(Pl=Dl=null,Ml=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||$l||($l=!0,Dc(tt,function(){return bc(),null})),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Ol.transition,Ol.transition=null;var s=At;At=1;var l=xl;xl|=4,Sl.current=null,function(e,t){if(eo=Wt,hr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var f;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==a||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(f=p.firstChild);)h=p,p=f;for(;;){if(p===e)break t;if(h===n&&++u===o&&(l=s),h===a&&++d===r&&(c=s),null!==(f=p.nextSibling))break;h=(p=h).parentNode}p=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var g=t.alternate;if(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,A=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=A}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(e){Cc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}g=el,el=!1}(e,n),gl(n,e),fr(to),Wt=!!eo,to=eo=null,e.current=n,vl(n,e,o),Ye(),xl=l,At=s,Ol.transition=a}else e.current=n;if($l&&($l=!1,Kl=e,Ql=o),0===(a=e.pendingLanes)&&(zl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),nc(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Gl)throw Gl=!1,e=Wl,Wl=null,e;!!(1&Ql)&&0!==e.tag&&bc(),1&(a=e.pendingLanes)?e===Yl?ql++:(ql=0,Yl=e):ql=0,Go()}(e,t,n,r)}finally{Ol.transition=o,At=r}return null}function bc(){if(null!==Kl){var e=wt(Ql),t=Ol.transition,n=At;try{if(Ol.transition=null,At=16>e?16:e,null===Kl)var r=!1;else{if(e=Kl,Kl=null,Ql=0,6&xl)throw Error(i(331));var o=xl;for(xl|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(16&Xs.flags){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Xs=u;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:tl(8,d,a)}var p=d.child;if(null!==p)p.return=d,Xs=p;else for(;null!==Xs;){var h=(d=Xs).sibling,f=d.return;if(ol(d),d===u){Xs=null;break}if(null!==h){h.return=f,Xs=h;break}Xs=f}}}var g=a.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)}}Xs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(2048&(a=Xs).flags)switch(a.tag){case 0:case 11:case 15:tl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var A=e.current;for(Xs=A;null!==Xs;){var w=(s=Xs).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Xs=w;else e:for(s=A;null!==Xs;){if(2048&(l=Xs).flags)try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(e){Cc(l,l.return,e)}if(l===s){Xs=null;break e}var b=l.sibling;if(null!==b){b.return=l.return,Xs=b;break e}Xs=l.return}}if(xl=o,Go(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{At=n,Ol.transition=t}}return!1}function _c(e,t,n){e=Ui(e,t=hs(0,t=cs(n,t),1),1),t=Jl(),null!==e&&(vt(e,1,t),nc(e,t))}function Cc(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===zl||!zl.has(r))){t=Ui(t,e=fs(t,e=cs(n,e),1),1),e=Jl(),null!==t&&(vt(t,1,e),nc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Jl(),e.pingedLanes|=e.suspendedLanes&n,Dl===e&&(Ml&n)===n&&(4===Il||3===Il&&(130023424&Ml)===Ml&&500>Xe()-Ul?dc(e,0):Bl|=n),nc(e,t)}function Sc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=Jl();null!==(e=ki(e,t))&&(vt(e,t,n),nc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Sc(e,n)}function xc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Sc(e,n)}function Dc(e,t){return Ke(e,t)}function Pc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mc(e,t,n,r){return new Pc(e,t,n,r)}function Tc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(e,t){var n=e.alternate;return null===n?((n=Mc(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 Ic(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Tc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return Fc(n.children,o,a,t);case E:s=8,o|=8;break;case S:return(e=Mc(12,n,t,2|o)).elementType=S,e.lanes=a,e;case P:return(e=Mc(13,n,t,o)).elementType=P,e.lanes=a,e;case M:return(e=Mc(19,n,t,o)).elementType=M,e.lanes=a,e;case I:return kc(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case x:s=9;break e;case D:s=11;break e;case T:s=14;break e;case R:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Mc(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Fc(e,t,n,r){return(e=Mc(7,e,r,t)).lanes=n,e}function kc(e,t,n,r){return(e=Mc(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Mc(6,e,null,t)).lanes=n,e}function Bc(e,t,n){return(t=Mc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=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=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function jc(e,t,n,r,o,i,a,s,l){return e=new Nc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Mc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bi(i),e}function Uc(e){if(!e)return Do;e:{if(He(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(Io(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(Io(n))return Lo(e,n,t)}return t}function Vc(e,t,n,r,o,i,a,s,l){return(e=jc(n,r,!0,e,0,i,0,s,l)).context=Uc(null),n=e.current,(i=ji(r=Jl(),o=ec(n))).callback=null!=t?t:null,Ui(n,i,o),e.current.lanes=o,vt(e,o,r),nc(e,r),e}function Hc(e,t,n,r){var o=t.current,i=Jl(),a=ec(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=ji(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ui(o,t,a))&&(tc(e,o,a,i),Vi(e,o,a)),a}function Gc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function zc(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}_l=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Mo.current)As=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return As=!1,function(e,t,n){switch(t.tag){case 3:Ps(t),fi();break;case 5:Zi(t);break;case 1:Io(t.type)&&Bo(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xo(Ci,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(xo(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(xo(ea,1&ea.current),null!==(e=Gs(e,t,n))?e.sibling:null);xo(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Vs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),xo(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Gs(e,t,n)}(e,t,n);As=!!(131072&e.flags)}else As=!1,ii&&1048576&t.flags&&ei(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var o=Ro(t,Po.current);Mi(t,n),o=ma(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Io(r)?(a=!0,Bo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Bi(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ds(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Tc(e)?1:0;if(null!=e){if((e=e.$$typeof)===D)return 11;if(e===T)return 14}return 2}(r),e=ns(r,e),o){case 0:t=Os(null,t,r,e,n);break e;case 1:t=xs(null,t,r,e,n);break e;case 11:t=bs(null,t,r,e,n);break e;case 14:t=_s(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Os(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Ps(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ni(e,t),Gi(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ms(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=Ms(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=_i(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fi(),r===o){t=Gs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Ss(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Ls(e,t,n);case 4:return Yi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=bi(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,bs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,xo(Ci,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Mo.current){t=Gs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=ji(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Pi(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Pi(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mi(t,n),r=r(o=Ti(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),_s(e,t,r,o=ns(r.type,o),n);case 15:return Cs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),Hs(e,t),t.tag=1,Io(r)?(e=!0,Bo(t)):e=!1,Mi(t,n),as(t,r,o),ls(t,r,o,n),Ds(null,t,r,!0,e,n);case 19:return Vs(e,t,n);case 22:return Es(e,t,n)}throw Error(i(156,t.tag))};var $c="function"==typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xc(){}function Zc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Gc(a);s.call(e)}}Hc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Gc(a);i.call(e)}}var a=Vc(t,r,e,0,null,!1,0,"",Xc);return e._reactRootContainer=a,e[go]=a.current,Hr(8===e.nodeType?e.parentNode:e),cc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Gc(l);s.call(e)}}var l=jc(e,0,!1,null,0,!1,0,"",Xc);return e._reactRootContainer=l,e[go]=l.current,Hr(8===e.nodeType?e.parentNode:e),cc(function(){Hc(t,l,n,r)}),l}(n,t,e,o,r);return Gc(a)}Qc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hc(e,t,null,null)},Qc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cc(function(){Hc(null,e,null,null)}),t[go]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Bt(e)}},bt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),nc(t,Xe()),!(6&xl)&&(Vl=Xe()+500,Go()))}break;case 13:cc(function(){var t=ki(e,1);if(null!==t){var n=Jl();tc(t,e,1,n)}}),zc(e,1)}},_t=function(e){if(13===e.tag){var t=ki(e,134217728);null!==t&&tc(t,e,134217728,Jl()),zc(e,134217728)}},Ct=function(e){if(13===e.tag){var t=ec(e),n=ki(e,t);null!==n&&tc(n,e,t,Jl()),zc(e,t)}},Et=function(){return At},St=function(e,t){var n=At;try{return At=e,t()}finally{At=n}},_e=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=_o(r);if(!o)throw Error(i(90));K(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},De=lc,Pe=cc;var Jc={usingClientEntryPoint:!1,Events:[wo,bo,_o,Oe,xe,lc]},eu={findFiberByHostInstance:Ao,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tu={bundleType:eu.bundleType,version:eu.version,rendererPackageName:eu.rendererPackageName,rendererConfig:eu.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:eu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{ot=nu.inject(tu),it=nu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!qc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!qc(e))throw Error(i(299));var n=!1,r="",o=$c;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=jc(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Kc(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 null===(e=ze(t))?null:e.stateNode},t.flushSync=function(e){return cc(e)},t.hydrate=function(e,t,n){if(!Yc(t))throw Error(i(200));return Zc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!qc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=$c;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Vc(t,null,e,1,null!=n?n:null,o,0,a,s),e[go]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qc(t)},t.render=function(e,t,n){if(!Yc(t))throw Error(i(200));return Zc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yc(e))throw Error(i(40));return!!e._reactRootContainer&&(cc(function(){Zc(null,null,e,!1,function(){e._reactRootContainer=null,e[go]=null})}),!0)},t.unstable_batchedUpdates=lc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Zc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338(e,t,n){"use strict";var r=n(961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},961(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(e){console.error(e)}}(),e.exports=n(2551)},1020(e,t,n){"use strict";var r=n(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},5287(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator,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 A(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=A.prototype=new y;w.constructor=A,g(w,v.prototype),w.isPureReactComponent=!0;var b=Array.isArray,_=Object.prototype.hasOwnProperty,C={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,o)&&!E.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:C.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var x=/\/+/g;function D(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 P(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+D(l,0):i,b(a)?(o="",null!=e&&(o=e.replace(x,"$&/")+"/"),P(a,t,o,"",function(e){return e})):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",b(e))for(var c=0;c<e.length;c++){var u=i+D(s=e[c],c);l+=P(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=P(s=s.value,t,o,u=i+D(s,c++),a);else if("object"===s)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 M(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",function(e){return t.call(n,e,o++)}),r}function T(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 R={current:null},I={transition:null},F={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:I,ReactCurrentOwner:C};function k(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(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=o,t.Profiler=a,t.PureComponent=A,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.act=k,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=C.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!E.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=k,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},6540(e,t,n){"use strict";e.exports=n(5287)},4848(e,t,n){"use strict";e.exports=n(1020)},7463(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}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 a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,h=3,f=!1,g=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,A="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function b(e){if(m=!1,w(e),!g)if(null!==r(c))g=!0,I(_);else{var t=r(u);null!==t&&F(b,t.startTime-e)}}function _(e,n){g=!1,m&&(m=!1,y(O),O=-1),f=!0;var i=h;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!P());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&o(c),w(n)}else o(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&F(b,d.startTime-n),l=!1}return l}finally{p=null,h=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,E=!1,S=null,O=-1,x=5,D=-1;function P(){return!(t.unstable_now()-D<x)}function M(){if(null!==S){var e=t.unstable_now();D=e;var n=!0;try{n=S(!0,e)}finally{n?C():(E=!1,S=null)}}else E=!1}if("function"==typeof A)C=function(){A(M)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,R=T.port2;T.port1.onmessage=M,C=function(){R.postMessage(null)}}else C=function(){v(M,0)};function I(e){S=e,E||(E=!0,C())}function F(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,I(_))},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"):x=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},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,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(m?(y(O),O=-1):m=!0,F(b,i-a))):(e.sortIndex=s,n(c,e),g||f||(g=!0,I(_))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},9982(e,t,n){"use strict";e.exports=n(7463)}}]);
/tmp/bundle.js:(()=>{var e,o={6116(e,o,t){"use strict";t.r(o)},2276(e,o,t){"use strict";var i=this&&this.__awaiter||function(e,o,t,i){return new(t||(t=Promise))(function(n,s){function r(e){try{a(i.next(e))}catch(e){s(e)}}function l(e){try{a(i.throw(e))}catch(e){s(e)}}function a(e){var o;e.done?n(e.value):(o=e.value,o instanceof t?o:new t(function(e){e(o)})).then(r,l)}a((i=i.apply(e,o||[])).next())})};Object.defineProperty(o,"__esModule",{value:!0}),o.Ampp=o.debug=void 0;const n=t(4848),s=t(6675),r=t(6540),l=t(5845),a=t(7860);o.debug=s.GVDebug.extend("ampp"),o.Ampp=e=>{const o=window.__GVCONFIG__.platformUri,d=window.__GVCONFIG__.remotePlatformUri,c=window.__GVCONFIG__.features,p=null==c?void 0:c.frameLight,[g,u]=(0,r.useState)("");(0,r.useEffect)(()=>{f()},[]);const f=()=>i(void 0,void 0,void 0,function*(){try{const e=yield s.GVPlatform.get().identity.getAccount();u(e.accountType)}catch(e){(0,s.handleHttpError)(e,null,!1,null,"Failed to get account")}});return(0,n.jsxs)("div",{children:[(0,n.jsx)(s.GVConnectionIndicator,{}),(0,n.jsx)("div",{className:"userControls",children:(0,n.jsx)(s.GVUserControls,{})}),(0,n.jsx)("div",{className:"previousPageHeader",children:(0,n.jsx)(s.GVLink,{to:"/universe",children:(0,n.jsxs)("div",{className:"previousPageHeader-text",children:[(0,n.jsx)(s.GVIcon,{className:"pageHeaderIcon",icon:"settings-home"}),"Home"]})})}),(0,n.jsxs)("div",{className:"pageContainer",children:[(0,n.jsx)("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)("img",{style:{opacity:.9,height:"80px"},src:t(5291)})}),(0,n.jsxs)("div",{className:"tileContainer",children:[(0,n.jsx)(l.GVLinkTile,{logo:"RM",title:"Resource Manager",description:"Create, start, stop, update and configure all applications. Snapshots for recurring productions",linkedPage:`${o}/management/cluster`}),(0,n.jsx)(l.GVLinkTile,{logo:"GVUI",title:"GV UI Web",description:"View and interact with your GV UI layouts in a web browser",linkedPage:`${o}/gvui/desktop`}),(0,n.jsx)(l.GVLinkTile,{logo:"healthmonitor",title:"Health Dashboard",description:"Monitor the health of all the apps and services on the system",linkedPage:`${o}/discoverymonitor`}),(0,n.jsx)(l.GVLinkTile,{logo:"SystemDashboard",title:"System Dashboard",description:"Design and monitor the state of your system with powerful visualisations",linkedPage:`${o}/cluster/systemdashboard`}),(0,n.jsx)(l.GVLinkTile,{logo:"UserManagement",title:"Identity Management",description:"Add/Remove/Edit users and clients",linkedPage:`${o}/management/identity`}),(0,n.jsx)(l.GVLinkTile,{logo:"RouterPanel",title:"Router Panel Manager",description:"Design flexible router panel layouts",linkedPage:`${o}/cluster/routing`}),(0,n.jsx)(l.GVLinkTile,{logo:"MVLayout",title:"MultiViewer Layout Editor",description:"Design layouts for the Multiviewer",linkedPage:`${o}/cluster/multiviewer`}),(0,n.jsx)(l.GVLinkTile,{logo:"SystemManager",title:"System Manager",description:"Manage nodes and fabrics",linkedPage:`${o}/management/system`}),(0,n.jsx)(l.GVLinkTile,{logo:"LogViewer",title:"Log Viewer",description:"Check logs on the AMPP system with customisable filters",linkedPage:`${o}/logviewer2`}),"Development"==g&&(0,n.jsx)(l.GVLinkTile,{logo:"PackageViewer",title:"Package Manager",description:"View and approve packages on your AMPP system",linkedPage:`${o}/management/packages`}),(0,n.jsx)(l.GVLinkTile,{logo:"BillingPortal",title:"Billing Portal",description:"View usage and costing of AMPP products",linkedPage:`${a.Helper.getPlatformUri()}/management/billing`}),(0,n.jsx)(l.GVLinkTile,{logo:"AMPPControl",title:"AMPP Control",description:"Build macros, control and configure workloads using the AMPP Control Protocol",linkedPage:`${o}/ampp/control`}),(0,n.jsx)(l.GVLinkTile,{logo:"computeControl",disabled:!!d,title:"Compute Control",description:"Allows control of cloud compute nodes",linkedPage:`${o}/computecontrol`}),(0,n.jsx)(l.GVLinkTile,{logo:"localState",disabled:!!d,title:"AMPP Local Monitor",description:"View AMPP Local deployments status",linkedPage:`${o}/local-state`}),(0,n.jsx)(l.GVLinkTile,{logo:"GraphicsEditor",disabled:!!d&&!p,title:"Graphics Editor",description:"View and edit graphics layouts",linkedPage:`${o}/cluster/graphicseditor`}),(0,n.jsx)(l.GVLinkTile,{logo:"AutomationBuilder",disabled:!!d,title:"Automation Builder",description:"Build events using the AMPP Control Protocol",linkedPage:`${o}/cluster/automationbuilder`})]}),(0,n.jsx)("div",{style:{flex:1}}),(0,n.jsx)("div",{className:"graphic-footer graphic-footer-gv2021 fade-in"})]})]})}},8577(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.App=void 0;const i=t(4848),n=t(6675);t(6116);const s=t(2276),r=t(8947),l=t(859),a=t(3480),d=t(1925),c=t(7873),p=t(6307),g=t(9730),u=t(3299),f=n.GVStore.setupStore((e={})=>e),m={product:"Platform",disableMenuBar:!0,tabs:[{component:u.Universe,link:"universe",text:""},{component:s.Ampp,link:"ampp",text:""},{component:g.Playout,link:"playout",text:""},{component:p.MAM,link:"mam",text:""},{component:r.Downloads,link:"downloads",text:""},{component:l.MonitorDownloads,link:"monitordownloads",text:""},{component:l.EdiusDownloads,link:"ediusdownloads",text:""},{component:d.GVUIDownloads,link:"gvuidownloads",text:""},{component:a.AMPPOperatorDownloads,link:"amppoperatordownloads",text:""},{component:c.NodeManagerDownloads,link:"nodemanagerdownloads",text:""},{component:l.PremiereDownloads,link:"premieredownloads",text:""},{component:l.SDIDownloads,link:"sdidownloads",text:""}],store:f};o.App=()=>(0,i.jsx)(n.GVAMPPApp,Object.assign({},m))},3480(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.AMPPOperatorDownloads=o.debug=void 0;const i=t(4848),n=t(6675),s=t(6614);o.debug=n.GVDebug.extend("amppoperatordownloads"),o.AMPPOperatorDownloads=()=>(0,i.jsx)(s.DownloadPageTemplate,{title:"AMPP Operator",tiles:[{logo:"keyboard-mac",title:"AMPP Operator",file:"atp-mac",description:"Download the AMPP Operator for MacOS"},{logo:"keyboard-windows",title:"AMPP Operator",file:"atp-windows",description:"Download the AMPP Operator for Windows"}]})},6614(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.DownloadPageTemplate=void 0;const i=t(4848),n=t(6675),s=t(5845);o.DownloadPageTemplate=({title:e,tiles:o})=>(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"userControls",children:(0,i.jsx)(n.GVUserControls,{})}),(0,i.jsxs)("div",{className:"previousPageHeader",children:[(0,i.jsx)(n.GVLink,{to:"/universe",children:(0,i.jsxs)("div",{className:"previousPageHeader-text",children:[(0,i.jsx)(n.GVIcon,{className:"pageHeaderIcon",icon:"settings-home"}),"Home"]})}),(0,i.jsx)("div",{className:"previousPageHeader-text",style:{marginLeft:"10px",marginRight:"10px"},children:"|"}),(0,i.jsx)(n.GVLink,{to:"/downloads",children:(0,i.jsx)("div",{children:"Downloads"})})]}),(0,i.jsxs)("div",{className:"pageContainer",children:[(0,i.jsx)("div",{style:{height:"100px",marginBottom:"30px"},children:(0,i.jsx)("img",{style:{width:"inherit",height:"inherit"},src:t(5291)})}),(0,i.jsxs)("h1",{style:{margin:"0.1em",marginBottom:"1em",fontWeight:900,display:"flex"},children:[(0,i.jsx)("div",{style:{width:"7px",height:"50px",marginRight:"20px",background:"#FFC845",borderRadius:"5px"}}),e]}),(0,i.jsx)("div",{className:"tileContainer",children:o.map(e=>(0,i.jsx)(s.GVLinkTile,{logo:e.logo,title:e.title,file:e.file,description:e.version?`${e.description} - ${e.version}`:e.description,download:!0,version:e.version},e.file))})]}),(0,i.jsx)("div",{className:"graphic-footer graphic-footer-gv2021 fade-in"})]})},8806(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.EdiusDownloads=o.debug=void 0;const i=t(4848),n=t(6675),s=t(6614);o.debug=n.GVDebug.extend("ediusdownloads"),o.EdiusDownloads=()=>(0,i.jsx)(s.DownloadPageTemplate,{title:"EDIUS/Mync 11",tiles:[{logo:"EdiusWindows",title:"EDIUS 11 Broadcast",file:"ediusbroadcast",description:"Download EDIUS 11 Broadcast for Framelight X"},{logo:"MyncWindows",title:"Mync 11 Broadcast",file:"myncbroadcast",description:"Download Mync 11 Broadcast for Framelight X"},{logo:"EdiusWindows",title:"EDIUS Framelight X Plugin",file:"ediusframelight",description:"Download EDIUS Framelight X Plugin for preinstalled EDIUS 11 Broadcast"}]})},1925(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.GVUIDownloads=o.debug=void 0;const i=t(4848),n=t(6675),s=t(6614);o.debug=n.GVDebug.extend("gvuidownloads"),o.GVUIDownloads=()=>(0,i.jsx)(s.DownloadPageTemplate,{title:"GV UI Downloads",tiles:[{logo:"gvui-mac",title:"GVUI",file:"gvui-mac",description:"Download GVUI for Mac"},{logo:"gvui-windows",title:"GVUI",file:"gvui-windows",description:"Download GVUI for Windows"}]})},8216(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.MonitorDownloads=o.debug=void 0;const i=t(4848),n=t(6675),s=t(6614);o.debug=n.GVDebug.extend("monitordownloads"),o.MonitorDownloads=()=>(0,i.jsx)(s.DownloadPageTemplate,{title:"AMPP Monitor",tiles:[{logo:"AMPPMonitorMac",title:"macOS - Apple Silicon",file:"amppmonitormacOSSilicon",description:"Download the AMPP Monitor software"},{logo:"AMPPMonitorLinux",title:"Linux - arm64",file:"amppmonitorLinuxArm64",description:"Download the AMPP Monitor software"},{logo:"AMPPMonitorLinux",title:"Linux - Intel x64",file:"amppmonitorLinuxIntel",description:"Download the AMPP Monitor software"},{logo:"AMPPMonitorWindows",title:"Windows - Intel x64",file:"amppmonitorWindows",description:"Download the AMPP Monitor software"}]})},7873(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.NodeManagerDownloads=void 0;const i=t(4848),n=t(6614);o.NodeManagerDownloads=()=>(0,i.jsx)(n.DownloadPageTemplate,{title:"Node manager downloads",tiles:[{logo:"node-manager-windows",title:"Node Manager",file:"nodemanager-windows",description:"Download Node Manager for Windows"},{logo:"node-manager-linux",title:"Node Manager",file:"nodemanager-linuxx64-debian",description:"Download Node Manager for Linux"},{logo:"node-manager-linux",title:"Node Manager Scripts",file:"gv-ampp-node-setup",description:"Download Node Manager scripts for Linux"}]})},3929(e,o,t){"use strict";var i=this&&this.__awaiter||function(e,o,t,i){return new(t||(t=Promise))(function(n,s){function r(e){try{a(i.next(e))}catch(e){s(e)}}function l(e){try{a(i.throw(e))}catch(e){s(e)}}function a(e){var o;e.done?n(e.value):(o=e.value,o instanceof t?o:new t(function(e){e(o)})).then(r,l)}a((i=i.apply(e,o||[])).next())})};Object.defineProperty(o,"__esModule",{value:!0}),o.PremiereDownloads=o.debug=void 0;const n=t(4848),s=t(6675),r=t(6540),l=t(6614);o.debug=s.GVDebug.extend("ediusdownloads"),o.PremiereDownloads=()=>{const[e,t]=(0,r.useState)([{logo:"premiere-plugin-windows",title:"Windows - Intel x64 (legacy)",file:"AdobePremier",description:"Download FramelightX CEP Panel for Adobe Premiere Windows (legacy)"},{logo:"premiere-plugin-windows",title:"Windows - Intel x64 (CEP)",file:"adobePremierrevamped",description:"Download FramelightX CEP Panel for Adobe Premiere Windows (CEP)"},{logo:"premiere-plugin-mac",title:"MacOS ARM (CEP)",file:"AdobePremierMac",description:"Download FramelightX CEP Panel for Adobe Premiere MacOS (CEP)"}]);return(0,r.useEffect)(()=>{i(void 0,void 0,void 0,function*(){try{const n=yield Promise.all(e.map(e=>i(void 0,void 0,void 0,function*(){try{const o=(e=>{const o=e.match(/\d+(?:\.\d+)+/g);return o?o[o.length-1]:void 0})((yield s.GVPlatform.get().cluster.packages.getFile(e.file)).downloadUrl);return o?Object.assign(Object.assign({},e),{version:o}):e}catch(t){return(0,o.debug)("Failed to fetch version for",e.file,t),e}})));t(n)}catch(e){(0,o.debug)("Error fetching package versions:",e)}})},[]),(0,n.jsx)(l.DownloadPageTemplate,{title:"Premiere Plugin",tiles:e})}},2008(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.SDIDownloads=o.debug=void 0;const i=t(4848),n=t(6675),s=t(6614);o.debug=n.GVDebug.extend("sdidownloads"),o.SDIDownloads=()=>(0,i.jsx)(s.DownloadPageTemplate,{title:"SDI",tiles:[{logo:"SDIWindows",title:"SDI - Windows",file:"sdi-windows",description:"Download SDI Driver for Windows"},{logo:"SDILinux",title:"SDI - Linux",file:"sdi-linux",description:"Download SDI Driver for Linux"}]})},859(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.SDIDownloads=o.PremiereDownloads=o.MonitorDownloads=o.EdiusDownloads=void 0;var i=t(8806);Object.defineProperty(o,"EdiusDownloads",{enumerable:!0,get:function(){return i.EdiusDownloads}});var n=t(8216);Object.defineProperty(o,"MonitorDownloads",{enumerable:!0,get:function(){return n.MonitorDownloads}});var s=t(3929);Object.defineProperty(o,"PremiereDownloads",{enumerable:!0,get:function(){return s.PremiereDownloads}});var r=t(2008);Object.defineProperty(o,"SDIDownloads",{enumerable:!0,get:function(){return r.SDIDownloads}})},8947(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Downloads=o.debug=void 0;const i=t(4848),n=t(6675),s=t(5845);o.debug=n.GVDebug.extend("downloads"),o.Downloads=()=>(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"userControls",children:(0,i.jsx)(n.GVUserControls,{})}),(0,i.jsx)("div",{className:"previousPageHeader",children:(0,i.jsx)(n.GVLink,{to:"/universe",children:(0,i.jsxs)("div",{className:"previousPageHeader-text",children:[(0,i.jsx)(n.GVIcon,{className:"pageHeaderIcon",icon:"settings-home"}),"Home"]})})}),(0,i.jsxs)("div",{className:"pageContainer",children:[(0,i.jsx)("div",{style:{height:"100px",marginBottom:"30px"},children:(0,i.jsx)("img",{style:{width:"inherit",height:"inherit"},src:t(5291)})}),(0,i.jsxs)("div",{className:"tileContainer",children:[(0,i.jsx)(s.GVLinkTile,{logo:"keyboard-windows",title:"AMPP Keyboard",file:"amppcontrolkeyboardsetup-windows",description:"Download AMPP Control Keyboard for Windows",download:!0}),(0,i.jsx)(s.GVLinkTile,{logo:"kframeinstaller",title:"K-Frame Installer",file:"k-frame-windows",description:"Download the K-Frame installer for Windows",download:!0}),(0,i.jsx)(s.GVLinkTile,{logo:"midi-windows",title:"AMPP Midi",file:"amppcontrolmidisetup-windows",description:"Download AMPP Control MIDI for Windows",download:!0}),(0,i.jsx)(s.GVLinkTile,{logo:"streamdeck",title:"AMPP Stream Deck",file:"amppcontrolstreamdeckplugin",description:"Download Ampp Control Stream Deck",download:!0}),(0,i.jsx)(s.GVLinkTile,{logo:"gvui-simple",title:"GVUI Downloads",description:"Download GVUI for mac or windows",local:!0,linkedPage:"/gvuidownloads"}),(0,i.jsx)(s.GVLinkTile,{logo:"keyboard-simple",title:"AMPP Operator",description:"Download AMPP Operator for MacOS or Windows",local:!0,linkedPage:"/amppoperatordownloads"}),(0,i.jsx)(s.GVLinkTile,{logo:"node-manager",title:"Node Manager",local:!0,description:"Node manager downloads and utilities",linkedPage:"/nodemanagerdownloads"}),(0,i.jsx)(s.GVLinkTile,{logo:"premiere-plugin",title:"AMPP Premiere Plugin",description:"Download the latest Adobe Premiere AMPP Plugin or the legacy version",linkedPage:"/premieredownloads",local:!0}),(0,i.jsx)(s.GVLinkTile,{logo:"live-touch-x",title:"LiveTouch X",file:"LiveTouch-X-Panel",description:"Download the LiveTouchX panel software",download:!0}),(0,i.jsx)(s.GVLinkTile,{logo:"OBSPlugin",title:"OBS Plugin",file:"obs-gvas",description:"Download the OBS Plugin",download:!0}),(0,i.jsx)(s.GVLinkTile,{logo:"AMPPMonitor",local:!0,title:"AMPP Monitor",description:"Select which package OS for AMPP Monitor",linkedPage:"/monitordownloads"}),(0,i.jsx)(s.GVLinkTile,{logo:"Edius",local:!0,title:"EDIUS/Mync 11",description:"Download EDIUS/Mync Plugin for Framelight X",linkedPage:"/ediusdownloads"}),(0,i.jsx)(s.GVLinkTile,{logo:"SDI",local:!0,title:"SDI",description:"Download SDI Driver for Windows or Linux",linkedPage:"/sdidownloads"}),(0,i.jsx)(s.GVLinkTile,{logo:"rivermax-license",title:"Rivermax License",file:"gv-rivermax-license",description:"Download Grass Valley Rivermax License",download:!0})]})]}),(0,i.jsx)("div",{className:"graphic-footer graphic-footer-gv2021 fade-in"})]})},5845(e,o,t){"use strict";var i=this&&this.__awaiter||function(e,o,t,i){return new(t||(t=Promise))(function(n,s){function r(e){try{a(i.next(e))}catch(e){s(e)}}function l(e){try{a(i.throw(e))}catch(e){s(e)}}function a(e){var o;e.done?n(e.value):(o=e.value,o instanceof t?o:new t(function(e){e(o)})).then(r,l)}a((i=i.apply(e,o||[])).next())})};Object.defineProperty(o,"__esModule",{value:!0}),o.GVLinkTile=void 0;const n=t(4848),s=t(6675),r=t(6540);o.GVLinkTile=e=>{const[o,l]=(0,r.useState)(!1);return e.local?(0,n.jsx)("div",{className:1==e.disabled?"gv-link-tile disabled":"gv-link-tile",onMouseOver:()=>l(!0),onFocus:()=>{},onMouseLeave:()=>l(!1),children:(0,n.jsxs)(s.GVLink,{to:e.linkedPage,children:[(0,n.jsx)("div",{style:{height:"100%",position:"absolute"},children:(0,n.jsx)("img",{style:{width:"100%",borderRadius:"20px"},src:t(2536)(`./${e.logo}.png`)})}),(0,n.jsx)("div",{className:"gv-link-tile-header",children:e.title}),(0,n.jsx)("span",{className:"gv-link-tile-overlay"}),(0,n.jsx)("div",{className:"gv-link-tile-footer",children:e.description})]})}):(0,n.jsxs)("div",{onClick:()=>i(void 0,void 0,void 0,function*(){if(e.download){const o=e.version?` v${e.version}`:"";s.GVNotificationActions.success(`Download started for ${e.title}${o}`),yield s.GVPlatform.get().cluster.packages.getFile(e.file).then(e=>{window.open(e.downloadUrl,"_self")}).catch(e=>{(0,s.handleHttpError)(e,null,!1,null,"An error occurred")})}else window.open(e.linkedPage,"_blank")}),onKeyDown:()=>{},className:1==e.disabled?"gv-link-tile disabled":"gv-link-tile",onMouseOver:()=>l(!0),onFocus:()=>{},onMouseLeave:()=>l(!1),children:[(0,n.jsx)("div",{style:{height:"100%",position:"absolute"},children:(0,n.jsx)("img",{style:{width:"100%",borderRadius:"20px"},src:t(2536)(`./${e.logo}.png`)})}),(0,n.jsx)("div",{className:"gv-link-tile-header",children:e.title}),(0,n.jsx)("span",{className:"gv-link-tile-overlay"}),(0,n.jsx)("div",{className:"gv-link-tile-footer",children:e.description})]})},o.GVLinkTile.defaultProps={local:!1,logo:"AMPP"}},6307(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.MAM=o.debug=void 0;const i=t(4848),n=t(6675);o.debug=n.GVDebug.extend("mam"),o.MAM=()=>(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"previousPageHeader",children:(0,i.jsx)(n.GVLink,{to:"amppnative",children:(0,i.jsxs)("div",{className:"previousPageHeader-text",children:[(0,i.jsx)(n.GVIcon,{className:"pageHeaderIcon",icon:"arrows-back-button"}),"Back"]})})}),(0,i.jsxs)("div",{className:"pageContainer",children:[(0,i.jsx)("div",{style:{height:"100px"},children:(0,i.jsx)("img",{style:{width:"inherit",height:"inherit"},src:t(2947)})}),(0,i.jsx)("h1",{style:{margin:"0.1em",marginBottom:"0em",fontWeight:600},children:"AMPP"}),(0,i.jsxs)("p",{style:{margin:"0.1em",marginBottom:"1em"},children:["Please select a ",(0,i.jsx)("strong",{children:"service"})," below"]}),(0,i.jsx)("div",{className:"tileContainer"})]}),(0,i.jsx)("div",{className:"graphic-footer fade-in"})]})},9730(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Playout=o.debug=void 0;const i=t(4848),n=t(6675);o.debug=n.GVDebug.extend("playout"),o.Playout=()=>(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"previousPageHeader",children:(0,i.jsx)(n.GVLink,{to:"amppnative",children:(0,i.jsxs)("div",{className:"previousPageHeader-text",children:[(0,i.jsx)(n.GVIcon,{className:"pageHeaderIcon",icon:"arrows-back-button"}),"Back"]})})}),(0,i.jsxs)("div",{className:"pageContainer",children:[(0,i.jsx)("div",{style:{height:"100px"},children:(0,i.jsx)("img",{style:{width:"inherit",height:"inherit"},src:t(2947)})}),(0,i.jsx)("h1",{style:{margin:"0.1em",marginBottom:"0em",fontWeight:600},children:"AMPP"}),(0,i.jsxs)("p",{style:{margin:"0.1em",marginBottom:"1em"},children:["Please select a ",(0,i.jsx)("strong",{children:"service"})," below"]}),(0,i.jsx)("div",{className:"tileContainer"})]}),(0,i.jsx)("div",{className:"graphic-footer fade-in"})]})},3299(e,o,t){"use strict";var i=this&&this.__awaiter||function(e,o,t,i){return new(t||(t=Promise))(function(n,s){function r(e){try{a(i.next(e))}catch(e){s(e)}}function l(e){try{a(i.throw(e))}catch(e){s(e)}}function a(e){var o;e.done?n(e.value):(o=e.value,o instanceof t?o:new t(function(e){e(o)})).then(r,l)}a((i=i.apply(e,o||[])).next())})};Object.defineProperty(o,"__esModule",{value:!0}),o.Universe=o.debug=void 0;const n=t(4848),s=t(6675),r=t(5845),l=t(7860),a=t(6540),d=t(6675);o.debug=s.GVDebug.extend("overview"),o.Universe=()=>{var e;const o=window.__GVCONFIG__.platformUri,c=window.__GVCONFIG__.remotePlatformUri,p=window.__GVCONFIG__.amppLocalReleaseNumber,g=window.__GVCONFIG__.features,u=null==g?void 0:g.playout,f=null==g?void 0:g.frameLight,[m,x]=(0,a.useState)(null),[w,h]=(0,a.useState)(null),[v,P]=(0,a.useState)(!1);(0,a.useEffect)(()=>{c&&(b(),j())},[]);const b=()=>i(void 0,void 0,void 0,function*(){try{const e=yield s.GVPlatform.get().identity.getRemoteConnectionStatus();x(null!=e.lastSuccessfulConnectionDate?new Date(e.lastSuccessfulConnectionDate):null),h(e.daysOffline)}catch(e){(0,d.handleHttpError)(e,null,!1,null,"Cannot get information about remote synchronization from identity service")}}),j=()=>i(void 0,void 0,void 0,function*(){try{const e=yield s.GVPlatform.get().identity.getAccount();P(e.watermarking)}catch(e){(0,d.handleHttpError)(e,null,!1,null,"Failed to get account")}});return(0,n.jsxs)("div",{className:"home pageContainer",children:[(0,n.jsx)(s.GVConnectionIndicator,{}),(0,n.jsx)("div",{className:"userControls",children:(0,n.jsx)(s.GVUserControls,{})}),(0,n.jsx)("div",{style:{height:"80px"},children:(0,n.jsx)("img",{style:{width:"inherit",height:"inherit"},src:t(5291)})}),(0,n.jsxs)("h1",{style:{margin:"0.1em",marginBottom:"0.5em",fontWeight:900,display:"flex"},children:[(0,n.jsx)("div",{style:{width:"7px",height:"50px",marginRight:"20px",background:"#FFC845",borderRadius:"5px"}}),"Please select an option below to get started"]}),(0,n.jsxs)("div",{className:"tileContainer",children:[(0,n.jsx)(r.GVLinkTile,{logo:"platformTools",local:!0,title:"Platform Tools",description:"Build the first cloud-based Saas platform for broadcast with the power of elastic compute",linkedPage:"/ampp"}),(0,n.jsx)(r.GVLinkTile,{logo:"playout",disabled:!!c&&!u,title:"Playout",description:"Edit, monitor and control all your playout channels from one place",linkedPage:`${o}/playout/channel-control`}),(0,n.jsx)(r.GVLinkTile,{logo:"asset-management",disabled:!!c&&!f,title:"Asset Management",description:"Content workflow tools for search, preview, edit, record and process automation",linkedPage:`${o}/framelight`}),(0,n.jsx)(r.GVLinkTile,{logo:"AppStore",title:"App Store",description:"Browse and download GV AMPP apps through the online marketplace",linkedPage:`${l.Helper.getPlatformUri()}/cluster/store/apps`}),(0,n.jsx)(r.GVLinkTile,{logo:"Announcements",title:"Announcements",description:"See all the latest announcements and the platform's status",linkedPage:`${l.Helper.getPlatformUri()}/cluster/store/announcements`}),(0,n.jsx)(r.GVLinkTile,{logo:"Downloads",local:!c,title:"Downloads",description:"Download extra GV tools",linkedPage:c?`${c}/portal/downloads`:"/downloads"}),(0,n.jsx)(r.GVLinkTile,{logo:"documentation",title:"Documentation Hub",description:"View the help documentation for all applications and services",linkedPage:`${l.Helper.getPlatformUri()}/cluster/store/docshub`}),(0,n.jsx)(r.GVLinkTile,{logo:"Intercom",title:"Intercom",description:"Create rooms and talk with other users in real time",linkedPage:`${o}/intercom`})]}),c||p?(0,n.jsxs)("div",{className:"sync-info-footer",children:[p&&(0,n.jsxs)(n.Fragment,{children:["AMPP.Local Release: ",p,(0,n.jsx)("br",{})]}),c&&(0,n.jsxs)(n.Fragment,{children:[w?`Days offline: ${w} `:"","Last sync:"," ",null!==(e=null==m?void 0:m.toLocaleString())&&void 0!==e?e:"Never",(0,n.jsx)("br",{}),v?"Watermarking: Enabled":""]})]}):null,(0,n.jsx)("div",{className:"graphic-footer graphic-footer-gv2021 fade-in"})]})}},3900(e,o,t){"use strict";const i=t(4848),n=t(5338),s=t(8577);t(6116);const r=document.getElementById("app");r&&(0,n.createRoot)(r).render((0,i.jsx)(s.App,{}))},7860(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Helper=void 0;class t{static getPlatformUri(){return this.remotePlatformUri?this.remotePlatformUri:this.platformUri}}o.Helper=t,t.platformUri=window.__GVCONFIG__.platformUri,t.remotePlatformUri=window.__GVCONFIG__.remotePlatformUri},2536(e,o,t){var i={"./AMPP.png":5096,"./AMPPControl.png":1165,"./AMPPMonitor.png":668,"./AMPPMonitorLinux.png":1380,"./AMPPMonitorMac.png":4403,"./AMPPMonitorWindows.png":2685,"./AMPPNative.png":7065,"./Announcements.png":8136,"./AppStore.png":3262,"./AutomationBuilder.png":2130,"./BillingPortal.png":5411,"./Downloads.png":3767,"./Edius.png":516,"./EdiusWindows.png":885,"./GVUI.png":3659,"./GraphicsEditor.png":7214,"./Intercom.png":6027,"./Layout/background-graphic.png":618,"./LogViewer.png":4520,"./MVLayout.png":7037,"./Mync.png":9461,"./MyncWindows.png":6246,"./OBSPlugin.png":6563,"./PackageViewer.png":3890,"./RM.png":9669,"./RouterPanel.png":4463,"./RouterPanelManager.png":9410,"./SDI.png":4958,"./SDILinux.png":9022,"./SDIWindows.png":7231,"./SystemDashboard.png":901,"./SystemManager.png":5352,"./UserManagement.png":5626,"./asset-management.png":2682,"./computeControl.png":9464,"./documentation.png":2254,"./gvui-mac.png":5245,"./gvui-simple.png":8796,"./gvui-windows.png":9559,"./healthmonitor.png":8200,"./keyboard-mac.png":9499,"./keyboard-simple.png":1342,"./keyboard-windows.png":5461,"./kframeinstaller.png":6302,"./live-touch-x.png":1825,"./localState.png":3446,"./mac.png":7193,"./midi-windows.png":5405,"./node-manager-linux.png":9221,"./node-manager-windows.png":1968,"./node-manager.png":6944,"./platformTools.png":7486,"./playout.png":266,"./premiere-plugin-mac.png":8701,"./premiere-plugin-windows.png":6119,"./premiere-plugin.png":8875,"./rivermax-license.png":8872,"./streamdeck.png":7593,"./tally-windows.png":610,"./windows.png":4755};function n(e){var o=s(e);return t(o)}function s(e){if(!t.o(i,e)){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}return i[e]}n.keys=function(){return Object.keys(i)},n.resolve=s,e.exports=n,n.id=2536},5096(e,o,t){"use strict";e.exports=t.p+"./file/e296949ab17afccc565d.png"},1165(e,o,t){"use strict";e.exports=t.p+"./file/17846616a0ca55c37d8c.png"},668(e,o,t){"use strict";e.exports=t.p+"./file/e7d9856d21ad5a950c9e.png"},1380(e,o,t){"use strict";e.exports=t.p+"./file/8079ba714282b8900094.png"},4403(e,o,t){"use strict";e.exports=t.p+"./file/602ec43ac49fae5b7764.png"},2685(e,o,t){"use strict";e.exports=t.p+"./file/47e3066637530cd7e5d2.png"},7065(e,o,t){"use strict";e.exports=t.p+"./file/da3732718f31ae45f786.png"},8136(e,o,t){"use strict";e.exports=t.p+"./file/7171a1a6c56768618df4.png"},3262(e,o,t){"use strict";e.exports=t.p+"./file/c4be5ba66c335cbb7a83.png"},2130(e,o,t){"use strict";e.exports=t.p+"./file/3b208ad5fe3e7f4cbe28.png"},5411(e,o,t){"use strict";e.exports=t.p+"./file/d18f8db1813199fcbafe.png"},3767(e,o,t){"use strict";e.exports=t.p+"./file/bd13b38aa2df96e30d94.png"},516(e,o,t){"use strict";e.exports=t.p+"./file/184dd0852d1f88c5c468.png"},885(e,o,t){"use strict";e.exports=t.p+"./file/17487ba818b1a4014f6b.png"},3659(e,o,t){"use strict";e.exports=t.p+"./file/45c79c1cc582c9ea27b0.png"},7214(e,o,t){"use strict";e.exports=t.p+"./file/18a663d7790ccba22263.png"},6027(e,o,t){"use strict";e.exports=t.p+"./file/84bf50c1ad524377a2d3.png"},5291(e,o,t){"use strict";e.exports=t.p+"./file/d539331f962f95924ef6.svg"},618(e,o,t){"use strict";e.exports=t.p+"./file/1b091c06c2204d7fb213.png"},2947(e,o,t){"use strict";e.exports=t.p+"./file/0cfda215b04484c5003f.svg"},4520(e,o,t){"use strict";e.exports=t.p+"./file/c06f88bd66007106d606.png"},7037(e,o,t){"use strict";e.exports=t.p+"./file/b5a3c2fff6776ebbeb43.png"},9461(e,o,t){"use strict";e.exports=t.p+"./file/e4e5a653a40a1d48a4af.png"},6246(e,o,t){"use strict";e.exports=t.p+"./file/aec03d098b811e3ced09.png"},6563(e,o,t){"use strict";e.exports=t.p+"./file/bef1bc55aef714d4fc82.png"},3890(e,o,t){"use strict";e.exports=t.p+"./file/4d294fdbb2718ef3882f.png"},9669(e,o,t){"use strict";e.exports=t.p+"./file/7f74b81c8567b5892e69.png"},4463(e,o,t){"use strict";e.exports=t.p+"./file/6c00c7899782cb2dcef0.png"},9410(e,o,t){"use strict";e.exports=t.p+"./file/6e5ea6b3328456def635.png"},4958(e,o,t){"use strict";e.exports=t.p+"./file/c84f004f8866d1218d09.png"},9022(e,o,t){"use strict";e.exports=t.p+"./file/ce5d3038b8aad2ecc023.png"},7231(e,o,t){"use strict";e.exports=t.p+"./file/448ac9944034fe641029.png"},901(e,o,t){"use strict";e.exports=t.p+"./file/ff7324596d8985fc1d5d.png"},5352(e,o,t){"use strict";e.exports=t.p+"./file/bce6c9224b7e701124b4.png"},5626(e,o,t){"use strict";e.exports=t.p+"./file/c0e7985ffc38427cb5c3.png"},2682(e,o,t){"use strict";e.exports=t.p+"./file/e9821301a393cfcf0054.png"},9464(e,o,t){"use strict";e.exports=t.p+"./file/ffbc8330cfc0ce125748.png"},2254(e,o,t){"use strict";e.exports=t.p+"./file/ad2e6e18c7749e74e369.png"},5245(e,o,t){"use strict";e.exports=t.p+"./file/01c16ff1bd603e3b16d1.png"},8796(e,o,t){"use strict";e.exports=t.p+"./file/8609f2542afb45fad6ba.png"},9559(e,o,t){"use strict";e.exports=t.p+"./file/2ac54cc747c9d940669b.png"},8200(e,o,t){"use strict";e.exports=t.p+"./file/a83d7e0b2551a5c2920a.png"},9499(e,o,t){"use strict";e.exports=t.p+"./file/fb2ddf91f90dfe3011b1.png"},1342(e,o,t){"use strict";e.exports=t.p+"./file/7faa299b14f3e1cf4664.png"},5461(e,o,t){"use strict";e.exports=t.p+"./file/fe6f5a20b9bd62bd3d18.png"},6302(e,o,t){"use strict";e.exports=t.p+"./file/e3fb26f91e2ec17cc5ba.png"},1825(e,o,t){"use strict";e.exports=t.p+"./file/ca5f098b1d7db82cc9ff.png"},3446(e,o,t){"use strict";e.exports=t.p+"./file/8ab12e919513b171e2fc.png"},7193(e,o,t){"use strict";e.exports=t.p+"./file/4a1ec17987c940b52d1a.png"},5405(e,o,t){"use strict";e.exports=t.p+"./file/b8475cf90dc02443d818.png"},9221(e,o,t){"use strict";e.exports=t.p+"./file/6bd19f207c81e32e1681.png"},1968(e,o,t){"use strict";e.exports=t.p+"./file/75d0b83d9d5d2e6055de.png"},6944(e,o,t){"use strict";e.exports=t.p+"./file/62190ad206edb40320f7.png"},7486(e,o,t){"use strict";e.exports=t.p+"./file/ad7b83292de7797202d3.png"},266(e,o,t){"use strict";e.exports=t.p+"./file/be1939262fe225bd0270.png"},8701(e,o,t){"use strict";e.exports=t.p+"./file/a412860a548cf21aaf39.png"},6119(e,o,t){"use strict";e.exports=t.p+"./file/31fe6308658a0e003e18.png"},8875(e,o,t){"use strict";e.exports=t.p+"./file/c7a3aa5c815978abedd1.png"},8872(e,o,t){"use strict";e.exports=t.p+"./file/62190ad206edb40320f7.png"},7593(e,o,t){"use strict";e.exports=t.p+"./file/b62decd0fd5b6ccd0749.png"},610(e,o,t){"use strict";e.exports=t.p+"./file/93422dd21a670b9a6c78.png"},4755(e,o,t){"use strict";e.exports=t.p+"./file/8dab7a0225ab5d000388.png"}},t={};function i(e){var n=t[e];if(void 0!==n)return n.exports;var s=t[e]={exports:{}};return o[e].call(s.exports,s,s.exports,i),s.exports}i.m=o,e=[],i.O=(o,t,n,s)=>{if(!t){var r=1/0;for(c=0;c<e.length;c++){for(var[t,n,s]=e[c],l=!0,a=0;a<t.length;a++)(!1&s||r>=s)&&Object.keys(i.O).every(e=>i.O[e](t[a]))?t.splice(a--,1):(l=!1,s<r&&(r=s));if(l){e.splice(c--,1);var d=n();void 0!==d&&(o=d)}}return o}s=s||0;for(var c=e.length;c>0&&e[c-1][2]>s;c--)e[c]=e[c-1];e[c]=[t,n,s]},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var o=i.g.document;if(!e&&o&&(o.currentScript&&"SCRIPT"===o.currentScript.tagName.toUpperCase()&&(e=o.currentScript.src),!e)){var t=o.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={792:0};i.O.j=o=>0===e[o];var o=(o,t)=>{var n,s,[r,l,a]=t,d=0;if(r.some(o=>0!==e[o])){for(n in l)i.o(l,n)&&(i.m[n]=l[n]);if(a)var c=a(i)}for(o&&o(t);d<r.length;d++)s=r[d],i.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return i.O(c)},t=self.webpackChunkportal_ui=self.webpackChunkportal_ui||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var n=i.O(void 0,[121],()=>i(3900));n=i.O(n)})();
